Skip to content
This repository was archived by the owner on Jan 18, 2019. It is now read-only.

Commit 0fe933c

Browse files
author
roman.vasilev
committed
fix: Update program when sourceFile was updated
1 parent fb099c7 commit 0fe933c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/custom-linter.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export class CustomLinter extends TSLintLinter {
1818
return super.getSourceFile(fileName, source);
1919
}
2020
const service = typescriptService();
21-
return service.getSourceFile(fileName, source);
21+
const result = service.getSourceFile(fileName, source);
22+
this.program = service.getProgram();
23+
return result;
2224
}
2325
}

0 commit comments

Comments
 (0)