You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// demo5 自定义菜单import*asvscodefrom'vscode'module.exports=function(context: vscode.ExtensionContext){letdisposable=vscode.commands.registerCommand('beehive.customMenu',()=>{vscode.window.showInformationMessage("I' am custom menu !")})context.subscriptions.push(disposable)}
// extension.tsimport*asvscodefrom'vscode'exportfunctionactivate(context: vscode.ExtensionContext){console.log('your extension "sugar-demo-vscode" is now active!')require('./beehive-customMenu')(context)// demo5 自定义菜单}exportfunctiondeactivate(){}
场景
适用于一些快捷按钮的自定义,可通过Menu操作
代码展示
效果展示
点击之后,触发事件
源码展示
The text was updated successfully, but these errors were encountered: