我正在进行扩展,我正在检查设置是否有值,如果没有,我想显示错误并提供启动设置编辑器的按钮,以便用户可以添加这些设置。
我认为我的前进方向是使用executeCommand
并提供一个内置命令来执行此操作,但我一直无法找到内置可用命令的列表。
答案 0 :(得分:0)
隐藏在key-bindings section of the documentation中,我找到了我要找的命令 - workbench.action.openGlobalSettings
完整的解决方案看起来像
commands.executeCommand('workbench.action.openGlobalSettings');