mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
Fixes #78098: Return isPreferred from vscode.executeCodeActionProvider
This commit is contained in:
@@ -506,6 +506,7 @@ export class ExtHostApiCommands {
|
||||
if (codeAction.command) {
|
||||
ret.command = this._commands.converter.fromInternal(codeAction.command);
|
||||
}
|
||||
ret.isPreferred = codeAction.isPreferred;
|
||||
return ret;
|
||||
}
|
||||
}));
|
||||
|
||||
@@ -1075,6 +1075,8 @@ export class CodeAction {
|
||||
|
||||
kind?: CodeActionKind;
|
||||
|
||||
isPreferred?: boolean;
|
||||
|
||||
constructor(title: string, kind?: CodeActionKind) {
|
||||
this.title = title;
|
||||
this.kind = kind;
|
||||
|
||||
Reference in New Issue
Block a user