Releases: AnWeber/vscode-statusbar-command
Releases · AnWeber/vscode-statusbar-command
v2.8.0
v2.7.0
v2.6.1
v2.6.0
v2.5.0
- script is embedded in an async function to allow await
- use
onStartupFinished
Activation Event instead of*
to allow faster startup of VSCode
v2.4.0
v2.3.1
v2.3.0
v2.2.1
v2.2.0
-
add script and scriptEvents support
- scriptsEvents is a list ov vscode events to which is subscribed to
- script is a Javascript funtion which is executed for every subscribed event. The following properties can be accessed.
name description vscode VSCode API statusBarItem current StatusBarItem -
example:
{ "alignment": "left", "command": "github.copilot.toggleCopilot", "id": "sbc.copilot", "text": "Github Copilot", "scriptEvents": ["vscode.workspace.onDidChangeConfiguration"], "script": "statusBarItem.text = vscode.workspace.getConfiguration('github.copilot.inlineSuggest').enable ? '$(github)' : '$(github-inverted)'" }
-
feature only available in NodeJS Environment (not in vscode.dev or github.dev)