dotnet / dotnet/vscode-csharp

Improvement: Re-generate diagnostics when change active text editor

Open
#4,086 6 comments 1 reaction 0 assignees View on GitHub
OmniSharp Triaged
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
18h 40m
Merged PRs (30d)
31

Description

Looks like diagnostics are only generated when text document is changed. However, the following pattern is very common:
1. Change file A and save. You get diagnostics information for file A.
2. Switch to file B, for example delete a class that used in A, and then save.
3. Switch to file A. **Diagnostics such as errors and warnings should be regenerated**

I am using vscode 1.49.2 and OmniSharp 1.23.2.

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.