You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rying to create DocumentContext for razor/languageQuery for file:///home/thomas/dev/netcore/notes-core/src/Notes/Views/Note/Notebook.cshtml
[Warn - 10:40:04] Could not create a document context for razor/languageQuery for file:///home/thomas/dev/netcore/notes-core/src/Notes/Views/Note/Notebook.cshtml. Endpoint may crash later if it calls GetRequiredDocumentContext.
[Error - 10:40:04] System.ArgumentNullException: Value cannot be null. (Parameter 'DocumentContext')
at Microsoft.AspNetCore.Razor.LanguageServer.EndpointContracts.RazorRequestContext.GetRequiredDocumentContext() in /_/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/EndpointContracts/RazorRequestContext.cs:line 47
at Microsoft.AspNetCore.Razor.LanguageServer.RazorLanguageQueryEndpoint.HandleRequestAsync(RazorLanguageQueryParams request, RazorRequestContext requestContext, CancellationToken cancellationToken) in /_/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorLanguageQueryEndpoint.cs:line 35
at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`3.StartRequestAsync(TRequestContext context, CancellationToken cancellationToken)
Steps to reproduce
I want to disable the razor (formatting) completely, because with every save a cshtml page is completely broken formatted or errors come or everything is marked red.
The option razor.format.enable: false still has no effect and the option razor.disabled: true seems to have been removed completely.
This bug exists since the beginning of the year. Why is more and more broken on this plugin?
Expected behavior
A working plugin.
Actual behavior
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Thanks for the report, opened #9240 to fix support for the razor.format.enable setting. No plans at this point for razor.disable, but if you still feel that is needed, feel free to log a different issue.
Environment data
dotnet --info
output:VS Code version: 1.81.1
C# Extension version: v2.0.436
OmniSharp log
Steps to reproduce
I want to disable the razor (formatting) completely, because with every save a cshtml page is completely broken formatted or errors come or everything is marked red.
The option
razor.format.enable: false
still has no effect and the optionrazor.disabled: true
seems to have been removed completely.This bug exists since the beginning of the year. Why is more and more broken on this plugin?
Expected behavior
A working plugin.
Actual behavior
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: