dotnet / dotnet/vscode-csharp

Add support for 'Current Document' option for background execution of analyzers

Open
#5,949 0 comments 1 reaction 0 assignees View on GitHub
Editor-Diagnostics Feature Request
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
17h 56m
Merged PRs (30d)
21

Description

Visual Studio supports these 4 values for background analysis scope option: `Current Document`, `Open Documents`, `Full Solution`, `Disabled or None`

VSCode C# extension does not support the `Current Document` option. Note that this value was added and made the default for background execution of analyzers as running all analyzers on all open documents was performance intensive on larger solutions with large number of files open in the session, and did not seem to be of any significant value add to the user.

This issue tracks adding `Current Document` support in the C# extension and make it the default for analyzer execution in background. I believe @dibarbet mentioned this would need some LSP work to be able to know the active document context in the extension.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.