I am developing a vs-code extension in which i want set the icons in the status bar but i am facing issue.
import * as vscode from 'vscode';
...
export function activate(context: vscode.ExtensionContext) {
...
let disposable = vscode.commands.registerCommand('extension.helloWorld', () => {
....
//on the place of icon i want the icon to get display in the status bar
vscode.window.setStatusBarMessage(
"icon "+" icon "+
data1 +
" icon " +
data2 +
" icon" +
data3
);
...
...
});
...
}
export function deactivate() {}
You can find a list of available icons here (custom icons are not supported):
https://code.visualstudio.com/api/references/icons-in-labels
They are used via $(icon-name)
syntax, for instance $(alert)
which will produce.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.