We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d6b53b commit 08ab6ebCopy full SHA for 08ab6eb
src/server/scriptInfo.ts
@@ -176,8 +176,13 @@ namespace ts.server {
176
return this.switchToScriptVersionCache();
177
}
178
179
- // Else if the svc is uptodate with the text, we are good
180
- return !this.pendingReloadFromDisk && this.svc;
+ // If there is pending reload from the disk then, reload the text
+ if (this.pendingReloadFromDisk) {
181
+ this.reloadWithFileText();
182
+ }
183
+
184
+ // At this point if svc is present its valid
185
+ return this.svc;
186
187
188
private getOrLoadText() {
0 commit comments