【发布时间】:2019-01-23 12:06:17
【问题描述】:
我正在编写一个 vsCode 扩展程序,并且从他们的所有 API 中我都找不到如何编辑颜色,无论是活动选项卡还是标题栏。我所看到的只是添加一个状态栏项目。
我有什么:
let disposable = vscode.window.onDidChangeActiveTextEditor((e: vscode.TextEditor | undefined) => {
if (!e) return null;
var currentlyOpenTabfilePath = e.document.fileName;
const color = 'green';
changeColorInTitleBar(color) // This is what I need
})
package.json:
"menus": {
"editor/title": [{
"when": "textInputFocus == true",
"command": "extension.sayHello",
"group": "navigation"
}]
}
我应该从扩展程序中编辑 workspace.settings 吗?还是有一个 vscode API 的方式来做到这一点?
【问题讨论】:
标签: visual-studio-code vscode-extensions