microsoft / microsoft/vscode-pull-request-github

[feature] mark/deprioritize generated files by default in Tree View

オープン
#4,331 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

feature-request
主要言語
TypeScript
スター
2.6k
フォーク
795
平均マージ
1日 4時間
マージ済み PR(30日)
46

説明

When reviewing pull requests in GitHub web UI, it does a great job of collapsing/hiding generated content by default:

image

Users can do so by adding linguist-generated to these files .gitattributes as shown here: https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github

However, this experience does not translate well into VS Code, either from the desktop editor, or the www.github.dev UI.
I suggest graying out these entries as well in:

  1. The "Source Control" container (local changes tree view)
  2. The "Github Pull Request" container (active PR tree view)
  3. The active text editor file name (title).
  4. Possibly collapse these files/folder trees by default.

This seems to be possible via the new FileDecorationProvider VS Code API: https://code.visualstudio.com/api/references/vscode-api#FileDecorationProvider

This is especially important in projects that rely on code generation, where pull requests can contain a single file (source change), and many (tens) of other affected/generated files.

Any thoughts/suggestions welcomed.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

FileDecorationProvider API から始め、Source Control と GitHub Pull Request のツリービュー、およびアクティブなエディターのタイトルの挙動を調査します。完了の条件は、linguist-generated とマークされたファイルが、要求されたサーフェスで視覚的に優先度を下げて表示されることです。ツリーをデフォルトで折りたたむことが実現可能かどうかは、別途判断してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
github, typescript, vscode
領域
developer-experience, tooling
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。