mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-07-04 14:56:16 -05:00
Merge pull request #19222 from Microsoft/projectCompilerOptions
Add getCompilerOptions method to project
This commit is contained in:
@@ -242,10 +242,16 @@ namespace ts.server {
|
||||
this.markAsDirty();
|
||||
}
|
||||
|
||||
// Method of LanguageServiceHost
|
||||
getCompilationSettings() {
|
||||
return this.compilerOptions;
|
||||
}
|
||||
|
||||
// Method to support public API
|
||||
getCompilerOptions() {
|
||||
return this.getCompilationSettings();
|
||||
}
|
||||
|
||||
getNewLine() {
|
||||
return this.directoryStructureHost.newLine;
|
||||
}
|
||||
|
||||
@@ -7109,6 +7109,7 @@ declare namespace ts.server {
|
||||
getCachedUnresolvedImportsPerFile_TestOnly(): UnresolvedImportsMap;
|
||||
static resolveModule(moduleName: string, initialDir: string, host: ServerHost, log: (message: string) => void): {};
|
||||
getCompilationSettings(): CompilerOptions;
|
||||
getCompilerOptions(): CompilerOptions;
|
||||
getNewLine(): string;
|
||||
getProjectVersion(): string;
|
||||
getScriptFileNames(): string[];
|
||||
|
||||
Reference in New Issue
Block a user