From bb68ba65d2d7129ef1174614d50ead9b81da8a87 Mon Sep 17 00:00:00 2001 From: William Killerud Date: Tue, 17 Sep 2024 20:20:07 +0200 Subject: [PATCH] fix: skip upstream diagnostics for svelte --- packages/language-services/src/features/do-diagnostics.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/language-services/src/features/do-diagnostics.ts b/packages/language-services/src/features/do-diagnostics.ts index abf2b5ba..b7ea6edb 100644 --- a/packages/language-services/src/features/do-diagnostics.ts +++ b/packages/language-services/src/features/do-diagnostics.ts @@ -66,9 +66,9 @@ export class DoDiagnostics extends LanguageFeature { private async doUpstreamDiagnostics(document: TextDocument) { if ( - document.languageId === "vue" || - document.languageId === "astro" || - document.languageId === "svelte" + document.uri.endsWith(".vue") || + document.uri.endsWith(".astro") || + document.uri.endsWith(".svelte") ) { return []; }