From a81288a19b0033897f9989290d43310dca5970cd Mon Sep 17 00:00:00 2001 From: David Barbet Date: Mon, 3 Jun 2024 19:31:37 -0700 Subject: [PATCH] Also ignore cshtml JS files --- .../Diagnostics/AbstractWorkspacePullDiagnosticsHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Features/LanguageServer/Protocol/Handler/Diagnostics/AbstractWorkspacePullDiagnosticsHandler.cs b/src/Features/LanguageServer/Protocol/Handler/Diagnostics/AbstractWorkspacePullDiagnosticsHandler.cs index ab91b1e607a3..c168f13ce36b 100644 --- a/src/Features/LanguageServer/Protocol/Handler/Diagnostics/AbstractWorkspacePullDiagnosticsHandler.cs +++ b/src/Features/LanguageServer/Protocol/Handler/Diagnostics/AbstractWorkspacePullDiagnosticsHandler.cs @@ -252,7 +252,7 @@ private static bool ShouldSkipDocument(RequestContext context, TextDocument docu // Razor is responsible for handling diagnostics for the virtual JS file and should not be returned here. // This workaround should be removed in 17.11 as JS diagnostics are no longer returned via Roslyn in 17.11 if (context.ServerKind == WellKnownLspServerKinds.RoslynTypeScriptLspServer && - (document.FilePath?.EndsWith("__virtual.js") == true || document.FilePath?.EndsWith(".razor") == true)) + (document.FilePath?.EndsWith("__virtual.js") == true || document.FilePath?.EndsWith(".razor") == true || document.FilePath?.EndsWith(".cshtml") == true)) { return true; }