Minor cleanups to ScriptVersionCache (#16983)

This commit is contained in:
Andy
2017-07-07 10:49:59 -07:00
committed by GitHub
parent dcc3e72636
commit 31ce6cfba6
3 changed files with 10 additions and 22 deletions

View File

@@ -126,7 +126,7 @@ namespace ts.server {
private switchToScriptVersionCache(newText?: string): ScriptVersionCache {
if (!this.svc) {
this.svc = ScriptVersionCache.fromString(this.host, newText !== undefined ? newText : this.getOrLoadText());
this.svc = ScriptVersionCache.fromString(newText !== undefined ? newText : this.getOrLoadText());
this.svcVersion++;
this.text = undefined;
}