Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Commit

Permalink
Merge pull request #40 from vladima/program-getSourceFile
Browse files Browse the repository at this point in the history
switch from LS.getSourceFile to Program.getSourceFile
  • Loading branch information
jrieken committed Apr 28, 2016
2 parents e28375a + 08b754a commit 73b1d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 73b1d4b

Please sign in to comment.