Skip to content

Show error diagnostics for full solution by default #8145

Open
@AArnott

Description

@AArnott

Type: Bug

For over a year, I've dabbled with the C# and C# Dev Kit extensions, and I always wondered why C# provided an incomplete list of errors in my open solution. Visual Studio has no problem with this.

I finally figured out over the weekend that there's a setting that controls this:

Extensions -> C# -> Text Editor -> "dotnet > Background analysis: compiler diagnostics scope"
(and "Analyzer diagnostics scope")

Image

Changing this from openFiles to fullSolution did the trick. Now I'm much more likely to use C# Dev Kit in VS Code since I can rely on the Problems tab to give me an exhaustive look at issues, like VS does by default

My complaint though, is that this isn't very discoverable. VS and VS Code have different defaults for this, and I don't find that intuitive. The only reason I even went looking in VS Code settings was because I happened to know that VS has a similarly buried feature that lets me turn up or down the analyzer diagnostic scope.

Can VS Code's default for C# errors be changed to report on the whole solution?

Environment information

VSCode version: 1.99.0
C# Extension: 2.73.16
Using OmniSharp: false

Dotnet Information .NET SDK: Version: 9.0.300-preview.0.25177.5 Commit: 3d5b396331 Workload version: 9.0.300-manifests.edbc8486 MSBuild version: 17.14.0-preview-25175-08+5880e1c75

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.300-preview.0.25177.5\

.NET workloads installed:
[aspire]
Installation Source: VS 17.14.36002.4, VS 17.14.36001.265
Manifest Version: 8.2.2/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.aspire\8.2.2\WorkloadManifest.json
Install Type: Msi

[wasm-tools-net6]
Installation Source: VS 17.14.36002.4, VS 17.14.36001.265
Manifest Version: 9.0.3/9.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100\microsoft.net.workload.mono.toolchain.net6\9.0.3\WorkloadManifest.json
Install Type: Msi

[wasm-tools-net7]
Installation Source: VS 17.14.36002.4, VS 17.14.36001.265
Manifest Version: 9.0.3/9.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100\microsoft.net.workload.mono.toolchain.net7\9.0.3\WorkloadManifest.json
Install Type: Msi

[wasm-tools-net8]
Installation Source: VS 17.14.36002.4, VS 17.14.36001.265
Manifest Version: 9.0.3/9.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100\microsoft.net.workload.mono.toolchain.net8\9.0.3\WorkloadManifest.json
Install Type: Msi

[wasm-tools]
Installation Source: VS 17.14.36002.4, VS 17.14.36001.265
Manifest Version: 9.0.3/9.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100\microsoft.net.workload.mono.toolchain.current\9.0.3\WorkloadManifest.json
Install Type: Msi

Configured to use loose manifests when installing new manifests.

Host:
Version: 9.0.3
Architecture: x64
Commit: 831d23e561

.NET SDKs installed:
6.0.428 [C:\Program Files\dotnet\sdk]
8.0.310 [C:\Program Files\dotnet\sdk]
8.0.407 [C:\Program Files\dotnet\sdk]
9.0.104 [C:\Program Files\dotnet\sdk]
9.0.202 [C:\Program Files\dotnet\sdk]
9.0.300-preview.0.25177.5 [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.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.3 [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 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.3 [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 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.3 [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
azure-pipelines ms-azure-devops 1.249.0 ms-azure-devops.azure-pipelines-1.249.0
azure-repos ms-vscode 0.40.0 ms-vscode.azure-repos-0.40.0
codespaces GitHub 1.17.3 github.codespaces-1.17.3
copilot GitHub 1.297.0 github.copilot-1.297.0
copilot-chat GitHub 0.26.0 github.copilot-chat-0.26.0
copilot-workspace github 0.5.4 github.copilot-workspace-0.5.4
cpptools ms-vscode 1.24.5 ms-vscode.cpptools-1.24.5-win32-x64
crates-completer jedeop 1.2.1 jedeop.crates-completer-1.2.1
csdevkit ms-dotnettools 1.18.21 ms-dotnettools.csdevkit-1.18.21-win32-x64
csharp ms-dotnettools 2.73.16 ms-dotnettools.csharp-2.73.16-win32-x64
debugpy ms-python 2025.6.0 ms-python.debugpy-2025.6.0-win32-x64
dependi fill-labs 0.7.13 fill-labs.dependi-0.7.13
docker-linter henriiik 0.5.0 henriiik.docker-linter-0.5.0
docomment k--kato 1.0.0 k--kato.docomment-1.0.0
docs-article-templates docsmsft 1.0.8 docsmsft.docs-article-templates-1.0.8
docs-authoring-pack docsmsft 1.0.2 docsmsft.docs-authoring-pack-1.0.2
docs-build docsmsft 0.4.6 docsmsft.docs-build-0.4.6
docs-images docsmsft 1.0.4 docsmsft.docs-images-1.0.4
docs-markdown docsmsft 1.0.13 docsmsft.docs-markdown-1.0.13
docs-preview docsmsft 1.0.9 docsmsft.docs-preview-1.0.9
docs-scaffolding docsmsft 1.0.8 docsmsft.docs-scaffolding-1.0.8
docs-yaml docsmsft 1.0.5 docsmsft.docs-yaml-1.0.5
EditorConfig EditorConfig 0.17.2 editorconfig.editorconfig-0.17.2
es7-react-js-snippets dsznajder 4.4.3 dsznajder.es7-react-js-snippets-4.4.3
even-better-toml tamasfe 0.21.2 tamasfe.even-better-toml-0.21.2
format-json ClemensPeters 1.0.3 clemenspeters.format-json-1.0.3
git-project-manager felipecaputo 1.8.2 felipecaputo.git-project-manager-1.8.2
gitconfig sidneys1 2.0.1 sidneys1.gitconfig-2.0.1
githistory donjayamanne 0.6.20 donjayamanne.githistory-0.6.20
gitlens eamodio 17.0.1 eamodio.gitlens-17.0.1
intellicode-api-usage-examples VisualStudioExptTeam 0.2.9 visualstudioexptteam.intellicode-api-usage-examples-0.2.9
isort ms-python 2025.0.0 ms-python.isort-2025.0.0
json Meezilla 0.1.2 meezilla.json-0.1.2
json-pretty-printer euskadi31 1.1.0 euskadi31.json-pretty-printer-1.1.0
JsonLint wekex 0.0.7 wekex.jsonlint-0.0.7
jupyter ms-toolsai 2025.3.0 ms-toolsai.jupyter-2025.3.0-win32-x64
jupyter-keymap ms-toolsai 1.1.2 ms-toolsai.jupyter-keymap-1.1.2
jupyter-renderers ms-toolsai 1.1.0 ms-toolsai.jupyter-renderers-1.1.0
Learn-Training-AI-Assistant LearningEngineeringOperations 1.1.53 learningengineeringoperations.learn-training-ai-assistant-1.1.53
LinkCheckMD blackmist 0.3.1 blackmist.linkcheckmd-0.3.1
markdown-mermaid bierner 1.27.0 bierner.markdown-mermaid-1.27.0
msbuild-project-tools tintoy 0.6.6 tintoy.msbuild-project-tools-0.6.6
npm-intellisense christian-kohler 1.4.5 christian-kohler.npm-intellisense-1.4.5
path-intellisense christian-kohler 2.10.0 christian-kohler.path-intellisense-2.10.0
php-debug xdebug 1.35.0 xdebug.php-debug-1.35.0
php-intellisense zobo 1.3.3 zobo.php-intellisense-1.3.3
php-pack xdebug 1.0.3 xdebug.php-pack-1.0.3
powershell ms-vscode 2025.0.0 ms-vscode.powershell-2025.0.0
prettier-vscode esbenp 11.0.0 esbenp.prettier-vscode-11.0.0
python ms-python 2025.4.0 ms-python.python-2025.4.0-win32-x64
remote-containers ms-vscode-remote 0.409.0 ms-vscode-remote.remote-containers-0.409.0
remote-explorer ms-vscode 0.4.3 ms-vscode.remote-explorer-0.4.3
remote-repositories ms-vscode 0.42.0 ms-vscode.remote-repositories-0.42.0
remote-server ms-vscode 1.5.2 ms-vscode.remote-server-1.5.2
remote-ssh ms-vscode-remote 0.119.0 ms-vscode-remote.remote-ssh-0.119.0
remote-ssh-edit ms-vscode-remote 0.87.0 ms-vscode-remote.remote-ssh-edit-0.87.0
remote-wsl ms-vscode-remote 0.88.5 ms-vscode-remote.remote-wsl-0.88.5
remotehub GitHub 0.64.0 github.remotehub-0.64.0
rust-analyzer rust-lang 0.3.2370 rust-lang.rust-analyzer-0.3.2370-win32-x64
rust-pack Swellaby 0.3.38 swellaby.rust-pack-0.3.38
search-crates-io belfz 1.2.1 belfz.search-crates-io-1.2.1
test-adapter-converter ms-vscode 0.2.1 ms-vscode.test-adapter-converter-0.2.1
theme-cobalt2 wesbos 2.5.0 wesbos.theme-cobalt2-2.5.0
tsl-problem-matcher amodio 0.6.2 amodio.tsl-problem-matcher-0.6.2
vsc-docker Zim 0.50.1 zim.vsc-docker-0.50.1
vscode-azureresourcegroups ms-azuretools 0.10.9 ms-azuretools.vscode-azureresourcegroups-0.10.9
vscode-docker ms-azuretools 1.29.4 ms-azuretools.vscode-docker-1.29.4
vscode-dotnet-runtime ms-dotnettools 2.3.1 ms-dotnettools.vscode-dotnet-runtime-2.3.1
vscode-eslint dbaeumer 3.0.10 dbaeumer.vscode-eslint-3.0.10
vscode-github-actions github 0.27.1 github.vscode-github-actions-0.27.1
vscode-icons vscode-icons-team 12.12.0 vscode-icons-team.vscode-icons-12.12.0
vscode-jest Orta 6.4.0 orta.vscode-jest-6.4.0
vscode-jest-runner firsttris 0.4.80 firsttris.vscode-jest-runner-0.4.80
vscode-json5 mrmlnc 1.0.0 mrmlnc.vscode-json5-1.0.0
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-language-pack-es MS-CEINTL 1.99.2025040209 ms-ceintl.vscode-language-pack-es-1.99.2025040209
vscode-lldb vadimcn 1.11.4 vadimcn.vscode-lldb-1.11.4
vscode-markdownlint DavidAnson 0.59.0 davidanson.vscode-markdownlint-0.59.0
vscode-mocha-test-adapter hbenl 2.14.1 hbenl.vscode-mocha-test-adapter-2.14.1
vscode-pull-request-github GitHub 0.108.0 github.vscode-pull-request-github-0.108.0
vscode-pylance ms-python 2025.4.1 ms-python.vscode-pylance-2025.4.1
vscode-remote-extensionpack ms-vscode-remote 0.26.0 ms-vscode-remote.vscode-remote-extensionpack-0.26.0
vscode-rust-test-adapter Swellaby 0.11.0 swellaby.vscode-rust-test-adapter-0.11.0
vscode-sidebar Acrolinx 1.2.3 acrolinx.vscode-sidebar-1.2.3
vscode-speech ms-vscode 0.12.1 ms-vscode.vscode-speech-0.12.1-win32-x64
vscode-test-explorer hbenl 2.22.1 hbenl.vscode-test-explorer-2.22.1
vscode-versionlens pflannery 1.16.3 pflannery.vscode-versionlens-1.16.3
vscode-xml redhat 0.28.0 redhat.vscode-xml-0.28.0
vscode-yaml redhat 1.17.0 redhat.vscode-yaml-1.17.0
vscode-zipfs arcanis 3.0.0 arcanis.vscode-zipfs-3.0.0
vscodeintellicode VisualStudioExptTeam 1.3.2 visualstudioexptteam.vscodeintellicode-1.3.2
vsliveshare ms-vsliveshare 1.0.5948 ms-vsliveshare.vsliveshare-1.0.5948
vstuc visualstudiotoolsforunity 1.1.1 visualstudiotoolsforunity.vstuc-1.1.1
xml DotJoshJohnson 2.5.1 dotjoshjohnson.xml-2.5.1

Extension version: 2.73.16
VS Code version: Code 1.99.0 (4437686ffebaf200fa4a6e6e67f735f3edf24ada, 2025-04-02T21:35:19.530Z)
OS version: Windows_NT x64 10.0.26100
Modes:

System Info
Item Value
CPUs Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz (16 x 2793)
GPU Status 2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software
webnn: unavailable_software
Load (avg) undefined
Memory (System) 63.95GB (22.04GB free)
Process Argv -n --crash-reporter-id 46fef00a-56cd-4621-ba62-e063df266658
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vscod805cf:30301675
binariesv615:30325510
vscaat:30438848
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
pythonrstrctxt:31112756
nativeloc1:31192215
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
fiia8375:31277807
pythoneinst12:31262605
bgtreat:31268568
fh1c7952:31258891
4gafe986:31271826
31787653:31262186
3e8i5726:31271747
ceih0514:31264451
49da9784:31264548
747dc170:31275177
88f85491:31278030
9b362824:31278654
aj496949:31278748

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions