feat(vscode): use icon to represent enabled status (#1675)

This commit is contained in:
IWANABETHATGUY 2023-12-14 20:59:26 +08:00 committed by GitHub
parent e5752a5462
commit 37d5152cce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,7 +172,9 @@ export async function activate(context: ExtensionContext) {
? "statusBarItem.activeBackground"
: "statusBarItem.errorBackground",
);
myStatusBarItem.text = `oxc: ${enable ? "on" : "off"}`;
myStatusBarItem.text = `oxc: ${enable ? "$(check-all)" : "$(circle-slash)"}`;
myStatusBarItem.backgroundColor = bgColor;
}
updateStatsBar(clientConfig.enable);