Skip to content

Commit 3c4786d

Browse files
authored
fix 9610 (#11042)
1 parent dd77c8c commit 3c4786d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/scriptVersionCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ namespace ts.server {
526526
}
527527
if (this.root.charCount() === 0) {
528528
// TODO: assert deleteLength === 0
529-
if (newText) {
529+
if (newText !== undefined) {
530530
this.load(LineIndex.linesFromText(newText).lines);
531531
return this;
532532
}

0 commit comments

Comments
 (0)