diff --git a/src/services/shims.ts b/src/services/shims.ts index 48026856d14..53e44b262e7 100644 --- a/src/services/shims.ts +++ b/src/services/shims.ts @@ -317,7 +317,15 @@ module TypeScript.Services { throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings"); return null; } - return compilationSettingsToCompilerOptions(JSON.parse(settingsJson)); + var options = compilationSettingsToCompilerOptions(JSON.parse(settingsJson)); + + /// TODO: this should be pushed into VS. + /// We can not ask the LS instance to resolve, as this will lead to asking the host about files it does not know about, + /// something it is not desinged to handle. for now make sure we never get a noresolve=true. + /// This value should not matter, as the host runs resolution logic independentlly + options.noResolve = true; + + return options; } public getScriptFileNames(): string[] {