在TextEditor上的hide帮助中,它说:
TextEditor
hide
<strong i="8">@deprecated</strong> **This method is deprecated.** Use the command 'workbench.action.closeActiveEditor' instead.
但是closeActiveEditor未列在复杂命令 API页面上。 这只是一个疏忽,还是该页面不是我们允许调用的完整命令列表?
closeActiveEditor
我们有以下
commands.getCommand(true)
最有用的评论
我们有以下
commands.getCommand(true)
获取所有已知(非内部)命令的列表https://github.com/Microsoft/vscode/blob/master/src/vs/vscode.d.ts#L3285 ,或