提交 cd620d7e 编写于 作者: M Matt Bierner

Note how exceptions from code action commands are handled

上级 ce550648
......@@ -2116,6 +2116,9 @@ declare module 'vscode' {
/**
* A [command](#Command) this code action executes.
*
* If this command throws an exception, VS Code displays the exception message to users in the editor at the
* current cursor position.
*/
command?: Command;
......@@ -2145,8 +2148,8 @@ declare module 'vscode' {
* of code action, such as refactorings.
*
* - If the user has a [keybinding](https://code.visualstudio.com/docs/editor/refactoring#_keybindings-for-code-actions)
* that auto applies a code action and only a disabled code actions are returned, VS Code will show the user a
* message with `reason` in the editor.
* that auto applies a code action and only a disabled code actions are returned, VS Code will show the user an
* error message with `reason` in the editor.
*/
disabled?: {
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册