Skip to content

error codeLens/resolve #8577

@quo1

Description

@quo1

Type: Bug

Issue Description

Errors and warnings are not displayed in the background.

Steps to Reproduce

Open the file with the error, and then close

Expected Behavior

After closing the file, the error should remain in the "Problems" tab.

Actual Behavior

After closing the file, the error for this file disappears in the "Problems" tab.

Logs

2025-08-30 09:37:30.979 [info] [Error - 9:37:30 AM] [codeLens/resolve] [LSP] StreamJsonRpc.LocalRpcException: Resolve version '2025-08-30T06:37:28.3787908Z-10189-0' does not match current version '2025-08-30T06:37:30.9009940Z-10192-0'
   at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeLens.CodeLensResolveHandler.HandleRequestAsync(CodeLens request, RequestContext context, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/CodeLens/CodeLensResolveHandler.cs:line 56
   at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)

C# log

2025-08-30 09:37:30.979 [info] [Error - 9:37:30 AM] [codeLens/resolve] [LSP] StreamJsonRpc.LocalRpcException: Resolve version '2025-08-30T06:37:28.3787908Z-10189-0' does not match current version '2025-08-30T06:37:30.9009940Z-10192-0' at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeLens.CodeLensResolveHandler.HandleRequestAsync(CodeLens request, RequestContext context, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/CodeLens/CodeLensResolveHandler.cs:line 56 at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)

C# LSP Trace Logs

empty

Environment information

VSCode version: 1.103.2
C# Extension: 2.87.31
Using OmniSharp: false

Dotnet Information .NET SDK: Version: 9.0.304 Commit: f12f5f689e Workload version: 9.0.300-manifests.ad61bb1c MSBuild version: 17.14.16+5d8159c5f

Runtime Environment:
OS Name: Windows
OS Version: 10.0.26100
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.304\

.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.

Host:
Version: 9.0.8
Architecture: x64
Commit: aae90fa090

.NET SDKs installed:
8.0.411 [C:\Program Files\dotnet\sdk]
9.0.301 [C:\Program Files\dotnet\sdk]
9.0.304 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.19 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.19 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.19 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Visual Studio Code Extensions
Extension Author Version Folder Name
a-file-icon-vscode atommaterial 2.0.1 atommaterial.a-file-icon-vscode-2.0.1
autodocstring njpwerner 0.6.1 njpwerner.autodocstring-0.6.1
azure-repos ms-vscode 0.40.0 ms-vscode.azure-repos-0.40.0
Bookmarks alefragnani 13.5.0 alefragnani.bookmarks-13.5.0
code-runner formulahendry 0.12.2 formulahendry.code-runner-0.12.2
csdevkit ms-dotnettools 1.41.11 ms-dotnettools.csdevkit-1.41.11-win32-x64
csharp ms-dotnettools 2.87.31 ms-dotnettools.csharp-2.87.31-win32-x64
docker docker 0.16.0 docker.docker-0.16.0-win32-x64
dotnet-interactive-vscode ms-dotnettools 1.0.6323010 ms-dotnettools.dotnet-interactive-vscode-1.0.6323010
EditorConfig EditorConfig 0.17.4 editorconfig.editorconfig-0.17.4
fluent-icons miguelsolorio 0.0.19 miguelsolorio.fluent-icons-0.0.19
github-markdown-preview bierner 0.3.0 bierner.github-markdown-preview-0.3.0
gruvbox jdinhlife 1.29.0 jdinhlife.gruvbox-1.29.0
intellicode-api-usage-examples VisualStudioExptTeam 0.2.9 visualstudioexptteam.intellicode-api-usage-examples-0.2.9
Ionide-fsharp Ionide 7.26.6 ionide.ionide-fsharp-7.26.6
jupyter ms-toolsai 2025.7.0 ms-toolsai.jupyter-2025.7.0-win32-x64
jupyter-keymap ms-toolsai 1.1.2 ms-toolsai.jupyter-keymap-1.1.2
jupyter-renderers ms-toolsai 1.3.0 ms-toolsai.jupyter-renderers-1.3.0
markdown-checkbox bierner 0.4.0 bierner.markdown-checkbox-0.4.0
markdown-emoji bierner 0.3.1 bierner.markdown-emoji-0.3.1
markdown-footnotes bierner 0.1.1 bierner.markdown-footnotes-0.1.1
markdown-mermaid bierner 1.28.0 bierner.markdown-mermaid-1.28.0
markdown-preview-github-styles bierner 2.2.0 bierner.markdown-preview-github-styles-2.2.0
markdown-yaml-preamble bierner 0.1.0 bierner.markdown-yaml-preamble-0.1.0
material-palenight-theme whizkydee 2.0.4 whizkydee.material-palenight-theme-2.0.4
material-product-icons PKief 1.7.1 pkief.material-product-icons-1.7.1
materialiconic-product-icons nyxb 0.0.2 nyxb.materialiconic-product-icons-0.0.2
mysql-shell-for-vs-code Oracle 1.19.16 oracle.mysql-shell-for-vs-code-1.19.16-win32-x64
powershell ms-vscode 2025.2.0 ms-vscode.powershell-2025.2.0
remote-repositories ms-vscode 0.42.0 ms-vscode.remote-repositories-0.42.0
remote-ssh-edit ms-vscode-remote 0.87.0 ms-vscode-remote.remote-ssh-edit-0.87.0
symbols miguelsolorio 0.0.24 miguelsolorio.symbols-0.0.24
todo-tree Gruntfuggly 0.0.226 gruntfuggly.todo-tree-0.0.226
vscode-containers ms-azuretools 2.1.0 ms-azuretools.vscode-containers-2.1.0
vscode-docker ms-azuretools 2.0.0 ms-azuretools.vscode-docker-2.0.0
vscode-dotnet-pack ms-dotnettools 1.0.13 ms-dotnettools.vscode-dotnet-pack-1.0.13
vscode-dotnet-runtime ms-dotnettools 2.3.7 ms-dotnettools.vscode-dotnet-runtime-2.3.7
vscode-github-actions github 0.27.2 github.vscode-github-actions-0.27.2
vscode-great-icons emmanuelbeziat 2.1.119 emmanuelbeziat.vscode-great-icons-2.1.119
vscode-html-css ecmel 2.0.13 ecmel.vscode-html-css-2.0.13
vscode-jupyter-cell-tags ms-toolsai 0.1.9 ms-toolsai.vscode-jupyter-cell-tags-0.1.9
vscode-jupyter-slideshow ms-toolsai 0.1.6 ms-toolsai.vscode-jupyter-slideshow-0.1.6
vscode-openapi 42Crunch 4.38.0 42crunch.vscode-openapi-4.38.0
vscode-pull-request-github GitHub 0.116.2 github.vscode-pull-request-github-0.116.2
vscode-react-native msjsdiag 1.13.0 msjsdiag.vscode-react-native-1.13.0
vscode-speech ms-vscode 0.16.0 ms-vscode.vscode-speech-0.16.0-win32-x64
vscode-speech-language-pack-ru-ru ms-vscode 0.5.0 ms-vscode.vscode-speech-language-pack-ru-ru-0.5.0
vscode-yaml redhat 1.18.0 redhat.vscode-yaml-1.18.0
vscodeintellicode VisualStudioExptTeam 1.3.2 visualstudioexptteam.vscodeintellicode-1.3.2
vscodeintellicode-completions VisualStudioExptTeam 2.0.1 visualstudioexptteam.vscodeintellicode-completions-2.0.1
vscodeintellicode-csharp ms-dotnettools 2.2.3 ms-dotnettools.vscodeintellicode-csharp-2.2.3-win32-x64

Extension version: 2.87.31
VS Code version: Code 1.103.2 (6f17636121051a53c88d3e605c491d22af2ba755, 2025-08-20T16:45:34.255Z)
OS version: Windows_NT x64 10.0.26100
Modes:

System Info
Item Value
CPUs AMD Ryzen 5 4500 6-Core Processor (12 x 3593)
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) 31.87GB (20.07GB free)
Process Argv --folder-uri file:///d%3A/Work/work%20repositories/parse_master/Backend --crash-reporter-id c400a65c-6ca3-4722-9add-658dd5b3957e
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
pythonvspyt551cf:31249601
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
747dc170:31275177
aj953862:31281341
9d2cg352:31346308
nesew2to5:31336538
agentclaude:31350858
nes-set-on:31351930
6abeh943:31336334
0927b901:31350571
f76d9909:31348711
custommodelcf:31371783
45650338:31358607
0cj2b977:31352657
justeven_python:31371804
gaj49834:31362110
cloudbuttont:31374192
retryenabled:31370050
3efgi100_wstrepl:31374188

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions