Skip to content

Commit

Permalink
add missing 'source' as default code action kinds
Browse files Browse the repository at this point in the history
Signed-off-by: Yan Zhang <yanzh@microsoft.com>
  • Loading branch information
Eskibear authored and fbricon committed Nov 7, 2019
1 parent e7ccfc4 commit ebb4658
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -96,7 +96,12 @@ public List<Either<Command, CodeAction>> getCodeActionCommands(CodeActionParams
if (params.getContext().getOnly() != null && !params.getContext().getOnly().isEmpty()) {
codeActionKinds.addAll(params.getContext().getOnly());
} else {
List<String> defaultCodeActionKinds = Arrays.asList(CodeActionKind.QuickFix, CodeActionKind.Refactor, CODE_ACTION_KIND_QUICK_ASSIST);
List<String> defaultCodeActionKinds = Arrays.asList(
CodeActionKind.QuickFix,
CodeActionKind.Refactor,
CODE_ACTION_KIND_QUICK_ASSIST,
CodeActionKind.Source
);
codeActionKinds.addAll(defaultCodeActionKinds);
}

Expand Down

0 comments on commit ebb4658

Please sign in to comment.