This commit is contained in:
Zhengbo Li 2016-09-21 16:52:02 -07:00 committed by GitHub
parent dd77c8c139
commit 3c4786d542

View file

@ -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;
}