vscode 在树视图中,视觉上区分阶段性更改和更改

gj3fmq9x  于 4个月前  发布在  Vscode
关注(0)|答案(4)|浏览(107)

当所有扩展都被禁用时,是否会出现这个问题?:是的

  • VS Code 版本:1.82.2
  • OS 版本:macOS 13.5.2

在树视图中,很难区分暂存更改和源代码控制侧边栏中的更改。此前已经提过几次;最相关的是 #102473 ,但它被纳入了关于一个更大更改的现有讨论中,而这个更改只是部分相关。
最简单的建议:

[role="treeitem"][aria-level="1"] {
    font-weight: bold;
}

区别微妙;其他调整可以改进它。例如,在它之前添加一行(甚至半行)垂直空间。或者,移除 .monaco-tl-twistie 上的 8px 左内边距也可以使其视觉上离树更远。对我来说,旧的全大写 CHANGES 感觉有点太强烈了,但它可以解决这个问题。
其他方法包括 #140343 建议添加可主题化的元素。

n53p2ov0

n53p2ov01#

研究这个导致我创建了#194068,所以SCM视图特定的颜色并不是什么新鲜事。

jpfvwuh4

jpfvwuh42#

Tagging @daviddossett, and @hbons to get their thoughts on this.

zqry0prt

zqry0prt3#

The old all-caps CHANGES feels a bit too strong to me, but it would fix the issue.
This is probably the easiest. Originally all ResourceGroup labels got styled uppercase unconditionally. I raised an issue about this because my SCM extension uses those groups in a way that means case is important. I had expected the built-in Git extension to uppercase its own labels so as to retain the familiar appearance, but maybe it was a conscious decision to adopt the change.
When there's more than one SCM repository displayed for a workspace I think the repository headers get bolded. Perhaps resource groups would benefit from being in italics? Alternatively, add a new color name such as scm.resourceGroupBackground .

ikfrs5lh

ikfrs5lh4#

@joaomoreno,因为我确信他对这个问题有更多的了解。

相关问题