From 08b754a7e14e6eba9bb443ddb6e3c3604057adbd Mon Sep 17 00:00:00 2001 From: Vladimir Matveev Date: Tue, 19 Apr 2016 10:34:34 -0700 Subject: [PATCH] switch from LS.getSourceFile to Program.getSourceFile --- src/builder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builder.ts b/src/builder.ts index 4a7816e..eb777a4 100644 --- a/src/builder.ts +++ b/src/builder.ts @@ -297,7 +297,7 @@ export function createTypeScriptBuilder(config: IConfiguration, compilerOptions: while (filesWithChangedSignature.length) { let fileName = filesWithChangedSignature.pop(); - if (!isExternalModule(service.getSourceFile(fileName))) { + if (!isExternalModule(service.getProgram().getSourceFile(fileName))) { _log('[check semantics*]', fileName + ' is an internal module and it has changed shape -> check whatever hasn\'t been checked yet'); toBeCheckedSemantically.push(...host.getScriptFileNames()); filesWithChangedSignature.length = 0;