Diagnostics published for `git:` documents in the diff editor: project usings faded as unnecessary (IDE0005)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- csharp, typescript, vscode
調査の方向性
Start with the repro in FreHu/csharp-diff-usings-repro and its README, then open a C# file in a working-tree diff to compare the file: and git: sides. Read the earlier fix in dotnet/roslyn#85886 and the related issue #9831 to see how git: documents are currently analysed. Done when git: documents publish no diagnostics, the file: side still does, and hover and colouring still work on the historical side.
索引モデルが issue の本文から書いたものです。
説明
Issue Description
When a C# file is opened in the diff editor, the historical side (a git: document) is analysed as a miscellaneous file: framework references only, no project. Every using of a project namespace then fails to resolve and is faded as Using directive is unnecessary. (IDE0005). In a real codebase, where most usings are project namespaces, nearly every using on the historical side of every diff is faded.
The working-tree (file:) side of the same diff is analysed correctly.
Same root cause as #9831. Its fix (dotnet/roslyn#85886) stopped the Razor syntax errors on these documents but diagnostics are still published for them.
Steps to Reproduce
Repro: https://github.com/FreHu/csharp-diff-usings-repro. Steps are in its README.
I originally noticed this with C# Dev Kit installed; the repro uses a profile with only the C# extension to rule it out.
Expected Behavior
No diagnostics on git: documents. They are past, read-only versions: nothing reported on them can be acted on, and without project context the analysis is wrong. The file: side of a working-tree diff keeps normal diagnostics. Hover, navigation and semantic colouring on the historical side are welcome to stay.
Actual Behavior
using Repro.Models;(project namespace) is faded with IDE0005 on everygit:side;using System.Text;(framework) is not.- The
file:side of a working-tree diff is correct.Invoicegets type colouring only there.
Environment
- VS Code: 1.144.1
- C#: 2.160.4
- .NET SDK: 10.0.203
- OS: Windows 10 Pro 10.0.19045
- 主要言語
- TypeScript
- スター
- 3.1k
- フォーク
- 742
- 平均マージ
- 1日 3時間
- マージ済み PR(30日)
- 53
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dotnet/vscode-csharp のほかの issue
-
Remove temporary .NET 11 CI container digest pin再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンInfrastructure Test
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
dotnet/vscode-csharp#9791 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
untriaged
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
dotnet/vscode-csharp#9940 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Bug C#DK
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
dotnet/vscode-csharp#9910 ·
メンテナーはふだん 1 日以内に返信
-
aオープンC#DK untriaged
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
dotnet/vscode-csharp#9901 ·
メンテナーはふだん 1 日以内に返信
-
Debugger untriaged
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
dotnet/vscode-csharp#9891 · コメント 9 件 ·
メンテナーはふだん 1 日以内に返信
dotnet/vscode-csharp の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
shoelace-style/webawesome#2979 ·
メンテナーはふだん 1 日以内に返信
-
Chip source filter and denial markers miss Storage rows when a Storage activity source is pickedオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
omdsh-dev/DSH-better-sidebar#1141 ·
メンテナーはふだん 2 日以内に返信