Finalize CodeActionTriggerKind

Fixes #118084
This commit is contained in:
Matt Bierner 2021-03-30 15:38:32 -07:00
parent caa03cd52f
commit 16cff9cff9
2 changed files with 23 additions and 29 deletions

23
src/vs/vscode.d.ts vendored
View file

@ -2157,11 +2157,34 @@ declare module 'vscode' {
contains(other: CodeActionKind): boolean;
}
/**
* The reason why code actions were requested.
*/
export enum CodeActionTriggerKind {
/**
* Code actions were explicitly requested by the user or by an extension.
*/
Invoke = 1,
/**
* Code actions were requested automatically.
*
* This typically happens when current selection in a file changes, but can
* also be triggered when file content changes.
*/
Automatic = 2,
}
/**
* Contains additional diagnostic information about the context in which
* a [code action](#CodeActionProvider.provideCodeActions) is run.
*/
export interface CodeActionContext {
/**
* The reason why code actions were requested.
*/
readonly triggerKind: CodeActionTriggerKind;
/**
* An array of diagnostics.
*/

View file

@ -2824,35 +2824,6 @@ declare module 'vscode' {
//#endregion
//#region https://github.com/microsoft/vscode/issues/118084
/**
* The reason why code actions were requested.
*/
export enum CodeActionTriggerKind {
/**
* Code actions were explicitly requested by the user or by an extension.
*/
Invoke = 1,
/**
* Code actions were requested automatically.
*
* This typically happens when current selection in a file changes, but can
* also be triggered when file content changes.
*/
Automatic = 2,
}
export interface CodeActionContext {
/**
* The reason why code actions were requested.
*/
readonly triggerKind: CodeActionTriggerKind;
}
//#endregion
//#region https://github.com/microsoft/vscode/issues/115807
export interface Webview {