更改VS Code建议小部件中的右侧文本。

huangapple go评论73阅读模式
英文:

Change the right hand text in the VS Code suggest widget

问题

我正在为VS Code制作一个主题(如果你感兴趣,可以在这里找到它),但有一个特定的部分让我很困惑。我可以很好地更改开始输入时出现的建议小部件的其余部分。

但是,我找不到任何地方可以更改建议小部件文本右侧的值在VS Code API文档中。

如果有人能指点我正确的方向,那就太好了。

更改VS Code建议小部件中的右侧文本。

英文:

I'm making a theme for VS Code (you can find it here if you're curious but it's not overly important for this question), but one part in particular is driving me up a wall. I can change the rest of the suggest widget that shows up when you start typing just fine.

// Editor widget
"editorWidget.background": eC.bgSideBar,
"editorWidget.foreground": eC.fg,
"editorWidget.resizeBorder": eC.borderBright,
"editorSuggestWidget.foreground": eC.fg,
"editorSuggestWidget.background": eC.bgStatusBar,
"editorSuggestWidget.border": eC.borderDim,
"editorSuggestWidget.selectedBackground": eC.selectionBright,
"editorSuggestWidget.selectedForeground": eC.fgTertiary,
"editorSuggestWidget.highlightForeground": eC.fgFourth,
"editorSuggestWidget.focusHighlightForeground": eC.fgFourth,
"editorGhostText.foreground": eC.fgDisabled,

But I can't find the value to change the right hand side of the suggest widget text anywhere in the VS Code API docs.

更改VS Code建议小部件中的右侧文本。

If anyone can point me in the right direction, that'd be great.

答案1

得分: 1

看起来它与主要选定文本的前景色相同的ThemeColor是:

"editorSuggestWidget.selectedForeground": "#fff",

它似乎不是一个单独的可主题化的项目。我没有找到相关的问题,所以你可能需要自己提交一个问题。

英文:

Looks like it is the same ThemeColor as the main selected text foreground:

"editorSuggestWidget.selectedForeground": "#fff",

It does not appear to be a separate themeable item. And I don't see a relevant issue so you may have to file one yourself.

huangapple
  • 本文由 发表于 2023年8月8日 23:51:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/76861223.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定