Skip to content

Commit

Permalink
fix update logic introduced in #2160
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Sep 19, 2023
1 parent fdb8fa5 commit 1d53bdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/typescript-plugin/src/language-service/sveltekit.ts
Expand Up @@ -613,8 +613,8 @@ function getProxiedLanguageService(info: ts.server.PluginCreateInfo, ts: _ts, lo
const scriptVersion = this.getScriptVersion(fileName);
if (
!this.files[fileName] ||
(scriptVersion !== originalLanguageServiceHost.getScriptVersion(fileName) &&
scriptVersion !== FORCE_UPDATE_VERSION)
scriptVersion !== originalLanguageServiceHost.getScriptVersion(fileName) ||
scriptVersion === FORCE_UPDATE_VERSION
) {
return undefined;
}
Expand Down

0 comments on commit 1d53bdc

Please sign in to comment.