Skip to content

Commit 2e057fe

Browse files
author
Andrew Hall
authored
[main] [PRERELEASE] If SupportDiagnostics then dynamic files don't report diagnostics... (#11810)
Backport of #11808 to main /cc @ryzngard ## Customer Impact ## Regression - [x] Yes - [ ] No dotnet/roslyn#78266 ## Testing Manual testing. Tests impending in dotnet/vscode-razor ## Risk Low
2 parents e0af43a + 569b670 commit 2e057fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Razor/src/Microsoft.VisualStudioCode.RazorExtension/Services/EmptyServiceProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ internal sealed class EmptyServiceProvider : IRazorDocumentServiceProvider
1111

1212
public bool CanApplyChange => false;
1313

14-
public bool SupportDiagnostics => false;
14+
public bool SupportDiagnostics => true;
1515

1616
public TService? GetService<TService>() where TService : class
1717
{

0 commit comments

Comments
 (0)