Skip to content

Commit 6b5d9dc

Browse files
committed
Return CodeActions instead of Commands
1 parent 5366059 commit 6b5d9dc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/features/codeActionProvider.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default class CodeActionProvider extends AbstractProvider implements vsco
2424
this.addDisposables(new CompositeDisposable(registerCommandDisposable));
2525
}
2626

27-
public async provideCodeActions(document: vscode.TextDocument, range: vscode.Range, context: vscode.CodeActionContext, token: vscode.CancellationToken): Promise<vscode.Command[]> {
27+
public async provideCodeActions(document: vscode.TextDocument, range: vscode.Range, context: vscode.CodeActionContext, token: vscode.CancellationToken): Promise<vscode.CodeAction[]> {
2828
let options = this.optionProvider.GetLatestOptions();
2929
if (options.disableCodeActions) {
3030
return;
@@ -88,8 +88,11 @@ export default class CodeActionProvider extends AbstractProvider implements vsco
8888

8989
return {
9090
title: codeAction.Name,
91-
command: this._commandId,
92-
arguments: [runRequest, token]
91+
command: {
92+
title: codeAction.Name,
93+
command: this._commandId,
94+
arguments: [runRequest, token]
95+
},
9396
};
9497
});
9598
}

0 commit comments

Comments
 (0)