fix 9610 (#11042)
This commit is contained in:
parent
dd77c8c139
commit
3c4786d542
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue