Skip to content

Commit 7350e2c

Browse files
authored
Expose source actions in light bulb (#3714)
1 parent 4d8492f commit 7350e2c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/codeActionProvider.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ export const javaRefactorKinds: Map<CodeActionKind, string> = new Map([
1919

2020
export class RefactorDocumentProvider implements CodeActionProvider {
2121
provideCodeActions() {
22-
return [];
22+
return [{
23+
// The aim of this is to expose the source actions in the light bulb.
24+
title: "Source Actions...",
25+
command: "editor.action.sourceAction",
26+
kind: CodeActionKind.Empty,
27+
}];
2328
}
2429

2530
public static readonly metadata: CodeActionProviderMetadata = {

0 commit comments

Comments
 (0)