mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
feat(vscode): use icon to represent enabled status (#1675)
This commit is contained in:
parent
e5752a5462
commit
37d5152cce
1 changed files with 3 additions and 1 deletions
|
|
@ -172,7 +172,9 @@ export async function activate(context: ExtensionContext) {
|
||||||
? "statusBarItem.activeBackground"
|
? "statusBarItem.activeBackground"
|
||||||
: "statusBarItem.errorBackground",
|
: "statusBarItem.errorBackground",
|
||||||
);
|
);
|
||||||
myStatusBarItem.text = `oxc: ${enable ? "on" : "off"}`;
|
myStatusBarItem.text = `oxc: ${enable ? "$(check-all)" : "$(circle-slash)"}`;
|
||||||
|
|
||||||
|
|
||||||
myStatusBarItem.backgroundColor = bgColor;
|
myStatusBarItem.backgroundColor = bgColor;
|
||||||
}
|
}
|
||||||
updateStatsBar(clientConfig.enable);
|
updateStatsBar(clientConfig.enable);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue