-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Type: Bug
Every time I open a razor file, it produces several errors and the IntelliSense and code navigation in razor files do not work. It's worse than working with a simple text editor because not only is there no helpers, I am constantly getting toast messages.

2025-07-25 08:46:19.348 [info] [Error - 8:46:19 AM] [razor/documentClosed] [LSP] System.NotImplementedException: Unrecognized IMethodHandler implementation Microsoft.VisualStudioCode.RazorExtension.Endpoints.RazorDocumentClosedEndpoint.
at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken) in /_/src/LanguageServer/Microsoft.CommonLanguageServerProtocol.Framework/QueueItem.cs:line 217
2025-07-25 08:46:19.349 [error] Error making razor/documentClosed request Unrecognized IMethodHandler implementation Microsoft.VisualStudioCode.RazorExtension.Endpoints.RazorDocumentClosedEndpoint.
2025-07-25 08:46:52.254 [info] [Error - 8:46:52 AM] Request textDocument/documentSymbol failed.
2025-07-25 08:46:52.254 [info] Message: Could not get the generated document
Code: -32000
[object Object]
2025-07-25 08:46:52.258 [info] [Error - 8:46:52 AM] Request textDocument/codeAction failed.
2025-07-25 08:46:52.258 [info] Message: Could not get the code document
Code: -32000
[object Object]
2025-07-25 08:46:52.341 [info] [Error - 8:46:52 AM] Request textDocument/documentHighlight failed.
2025-07-25 08:46:52.342 [info] Message: Could not get the code document
Code: -32000
[object Object]
2025-07-25 08:46:52.582 [info] [Error - 8:46:52 AM] Request textDocument/inlayHint failed.
2025-07-25 08:46:52.582 [info] Message: Could not get the code document
Code: -32000
[object Object]
2025-07-25 08:46:52.742 [info] [Error - 8:46:52 AM] Request textDocument/semanticTokens/range failed.
2025-07-25 08:46:52.742 [info] Message: Could not get the code document
Code: -32000
[object Object]
2025-07-25 08:46:59.457 [info] [Error - 8:46:59 AM] Request textDocument/documentHighlight failed.
2025-07-25 08:46:59.457 [info] Message: Could not get the code document
Code: -32000
[object Object]
2025-07-25 08:47:00.005 [info] [Error - 8:47:00 AM] Request textDocument/hover failed.
2025-07-25 08:47:00.005 [info] Message: Could not get the code document
Code: -32000
[object Object]
Then it starts to repeat ...
Extension version: 1.41.5
VS Code version: Code - Insiders 1.103.0-insider (d8361fecca3b53536de8f7a949b107fb7451e5e6, 2025-07-25T05:03:31.984Z)
OS version: Windows_NT x64 10.0.26120
Modes:
System Info
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) Ultra 7 165H (22 x 3072) |
GPU Status | 2d_canvas: enabled direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off trees_in_viz: disabled_off video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
Load (avg) | undefined |
Memory (System) | 15.64GB (1.23GB free) |
Process Argv | --crash-reporter-id df9569b1-4056-47ee-b1a6-521ad1c587e3 |
Screen Reader | no |
VM | 0% |
A/B Experiments
vsliv368cf:30146710
pythonvspyt551cf:31249598
h48ei257:31000450
nativeloc1:31118317
dwcopilot:31158714
6074i472:31201624
dwoutputs:31242946
hdaa2157:31222309
copilot_t_ci:31333650
g012b348:31231168
pythoneinst12:31251391
c7cif404:31309980
pythonpulldiag:31287486
6gi0g917:31259950
996jf627:31264550
pythonrdcb7:31268811
usemplatestapi:31297334
e6194696:31317039
747dc170:31275146
pythonpcpt1cf:31345881
6518g693:31302842
generatesymbolt:31280541
convertfstringf:31280702
nes-only-ctrl:31352931
9d2cg352:31346308
b99bg931:31349649
usemarketplace:31343026
0g1h6703:31329154
nes-emitfast-1:31333560
replacestringexc:31350595
testaa123:31335226
6abeh943:31336334
envsactivate1:31349248
0927b901:31340060
nb18600_tf:31354296
editstats-enabled:31346256
ja2e5747:31349955