Add getCompilerOptions method to project

Fixes #19218
This commit is contained in:
Sheetal Nandi 2017-10-16 11:22:49 -07:00
parent 8d47ef60a9
commit 3c27e782da
2 changed files with 5 additions and 0 deletions

View File

@ -246,6 +246,10 @@ namespace ts.server {
return this.compilerOptions;
}
getCompilerOptions() {
return this.compilerOptions;
}
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[];