microsoft / microsoft/vscode-pull-request-github
[feature] mark/deprioritize generated files by default in Tree View
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.6k
- 派生
- 796
- 平均合并
- 1 天 4 小时
- 30 天内合并 PR
- 46
描述
When reviewing pull requests in GitHub web UI, it does a great job of collapsing/hiding generated content by default:
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:
- The "Source Control" container (local changes tree view)
- The "Github Pull Request" container (active PR tree view)
- The active text editor file name (title).
- 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.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 FileDecorationProvider API 开始,检查 Source Control 和 GitHub Pull Request 树视图,以及活动编辑器标题的行为。完成的标准是:在所请求的界面中,标记为 linguist-generated 的文件在视觉上被降低优先级;分别确定默认折叠树是否可行。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- github, typescript, vscode
- 领域
- developer-experience, tooling
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100