We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8489af commit 4720c35Copy full SHA for 4720c35
1 file changed
src/services/services.ts
@@ -2847,8 +2847,11 @@ namespace ts {
2847
}
2848
2849
function sourceFileUpToDate(sourceFile: SourceFile): boolean {
2850
+ if (!sourceFile) {
2851
+ return false;
2852
+ }
2853
let path = sourceFile.path || toPath(sourceFile.fileName, currentDirectory, getCanonicalFileName);
- return sourceFile && sourceFile.version === hostCache.getVersion(path);
2854
+ return sourceFile.version === hostCache.getVersion(path);
2855
2856
2857
function programUpToDate(): boolean {
0 commit comments