Skip to content

Commit

Permalink
Merge pull request #73834 from dibarbet/typescript_workspace_diag_wor…
Browse files Browse the repository at this point in the history
…karound

Also include cshtml in file paths to ignore
  • Loading branch information
dibarbet authored Jun 4, 2024
2 parents d6adff2 + a81288a commit bef690d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bef690d

Please sign in to comment.