fix 9610 (#11042)
This commit is contained in:
parent
dd77c8c139
commit
3c4786d542
1 changed files with 1 additions and 1 deletions
|
@ -526,7 +526,7 @@ namespace ts.server {
|
||||||
}
|
}
|
||||||
if (this.root.charCount() === 0) {
|
if (this.root.charCount() === 0) {
|
||||||
// TODO: assert deleteLength === 0
|
// TODO: assert deleteLength === 0
|
||||||
if (newText) {
|
if (newText !== undefined) {
|
||||||
this.load(LineIndex.linesFromText(newText).lines);
|
this.load(LineIndex.linesFromText(newText).lines);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue