Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/server/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions tests/baselines/reference/api/tsserverlibrary.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down