dotnet / dotnet/vscode-csharp

[Feature] Reread BannedApiAnalyzers analyser's config file when modified

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

Description

## Environment data
dotnet: 6.0.202
VS Code version: 1.66.2
C# Extension version: 1.24.4
OS: linux

## OmniSharp log
none

## Steps to reproduce
- Add [`Microsoft.CodeAnalysis.BannedApiAnalyzers`](https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.BannedApiAnalyzers/BannedApiAnalyzers.Help.md) analyser to `Directory.Build.props` or `Project.csproj`
- Add `BannedSymbols.txt` to `Directory.Build.props` or `Project.csproj`
- Edit `BannedSymbols.txt`

## Expected behavior
File to be reread and used.

## Actual behavior
File is not reread. Must restart vscode.

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.