do not use ScriptVersionCache for closed files (#12777)

This commit is contained in:
Vladimir Matveev authored and GitHub committed 2016-12-08 16:17:42 -08:00
1 parent 9dd769dc3c
commit 7da3383504
10 files changed
+304 -77

No files matched your search

+1 -1
View File
@@ -448,7 +448,7 @@ namespace ts.server {
containsFile(filename: NormalizedPath, requireOpen?: boolean) {
const info = this.projectService.getScriptInfoForNormalizedPath(filename);
if (info && (info.isOpen || !requireOpen)) {
if (info && (info.isScriptOpen() || !requireOpen)) {
return this.containsScriptInfo(info);
}
}