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

switch from LS.getSourceFile to Program.getSourceFile #40

Merged
merged 1 commit into from
Apr 28, 2016
Merged
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
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