Skip to content

Commit

Permalink
fix: cannot update relate vue document diagnostics
Browse files Browse the repository at this point in the history
close #1163
  • Loading branch information
johnsoncodehk committed Apr 20, 2022
1 parent 14ad214 commit dadf4e1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -103,7 +103,7 @@ export function register(context: LanguageServiceRuntimeContext) {

const pluginCache = cacheMap.get(plugin.id) ?? cacheMap.set(plugin.id, new Map()).get(plugin.id)!;
const cache = pluginCache.get(document.uri);
const tsProjectVersion = isTs ? undefined : context.getTsLs().__internal__.host.getProjectVersion?.();
const tsProjectVersion = isTs ? context.getTsLs().__internal__.host.getProjectVersion?.() : undefined;

if (!isTs) {
if (cache && cache.documentVersion === document.version) {
Expand Down

0 comments on commit dadf4e1

Please sign in to comment.