From 734bda833c2236ab2360e798b9465425e80f62ab Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 16 Oct 2017 13:06:15 -0700 Subject: [PATCH] Add comments about why we need two methods that return compilerOptions --- src/server/project.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/server/project.ts b/src/server/project.ts index ca6e82ec4be..9c3fab63d23 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -242,12 +242,14 @@ namespace ts.server { this.markAsDirty(); } + // Method of LanguageServiceHost getCompilationSettings() { return this.compilerOptions; } + // Method to support public API getCompilerOptions() { - return this.compilerOptions; + return this.getCompilationSettings(); } getNewLine() {