Skip to content
Merged

Fix 9610 #11042

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/server/scriptVersionCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ namespace ts.server {
}
if (this.root.charCount() === 0) {
// TODO: assert deleteLength === 0
if (newText) {
if (newText !== undefined) {
this.load(LineIndex.linesFromText(newText).lines);
return this;
}
Expand Down