Handle walkThroughSnippet:/ and untitled:/ as dynamic files (#36722)

Handle walkThroughSnippet:/ and untitled:/ as dynamic files
Fixes #36681
This commit is contained in:
Sheetal Nandi authored and GitHub committed 2020-02-10 13:55:43 -08:00
1 parent fa3173f8f6
commit 70e6f5b8a0
5 files changed
+217 -199

No files matched your search

+2
View File
@@ -273,6 +273,8 @@ namespace ts.server {
/*@internal*/
export function isDynamicFileName(fileName: NormalizedPath) {
return fileName[0] === "^" ||
((stringContains(fileName, "walkThroughSnippet:/") || stringContains(fileName, "untitled:/")) &&
getBaseFileName(fileName)[0] === "^") ||
(stringContains(fileName, ":^") && !stringContains(fileName, directorySeparator));
}