mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Vendored
+23
@@ -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.
|
||||
*/
|
||||
|
||||
Vendored
-29
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user