We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46ff0db commit 1a2a9e0Copy full SHA for 1a2a9e0
src/upgrade/upgradeCodeActionProvider.ts
@@ -28,11 +28,12 @@ export default class UpgradeCodeActionProvider implements CodeActionProvider {
28
if (!metadata) {
29
continue;
30
}
31
- const action = new CodeAction(
32
- `Fix: Upgrade ${metadata.name}`,
33
- CodeActionKind.QuickFix
34
- );
+ const actionName = `Fix: Upgrade ${metadata.name}`;
+ if (actions.findIndex(x => x.title === actionName) !== -1) {
+ continue;
+ }
35
36
+ const action = new CodeAction(actionName, CodeActionKind.QuickFix);
37
action.command = {
38
title: "Upgrade",
39
command: Commands.VIEW_TRIGGER_JAVA_UPGRADE_TOOL,
0 commit comments