Merge pull request #19222 from Microsoft/projectCompilerOptions

Add getCompilerOptions method to project
This commit is contained in:
Sheetal Nandi
2017-10-16 14:23:35 -07:00
committed by GitHub
2 changed files with 7 additions and 0 deletions

View File

@@ -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;
}

View File

@@ -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[];