Fixes #78098: Return isPreferred from vscode.executeCodeActionProvider

This commit is contained in:
Yuya Tanaka
2019-07-29 23:20:40 +09:00
parent bb27a11386
commit 46c702b118
3 changed files with 30 additions and 0 deletions

View File

@@ -506,6 +506,7 @@ export class ExtHostApiCommands {
if (codeAction.command) {
ret.command = this._commands.converter.fromInternal(codeAction.command);
}
ret.isPreferred = codeAction.isPreferred;
return ret;
}
}));

View File

@@ -1075,6 +1075,8 @@ export class CodeAction {
kind?: CodeActionKind;
isPreferred?: boolean;
constructor(title: string, kind?: CodeActionKind) {
this.title = title;
this.kind = kind;