mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Minor cleanups to ScriptVersionCache (#16983)
This commit is contained in:
1 parent
dcc3e72636
commit
31ce6cfba6
3 files changed
+10
-22
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user