Skip to content

Commit

Permalink
Fix mistake in initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
gabro committed Jan 11, 2020
1 parent 262c1d0 commit 7e6135a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -507,13 +507,13 @@ class MetalsLanguageServer(
capabilities.setDocumentSymbolProvider(true)
capabilities.setDocumentFormattingProvider(true)
if (initializeParams.supportsCodeActionLiterals) {
capabilities.setCodeActionProvider(true)
} else {
capabilities.setCodeActionProvider(
new CodeActionOptions(
List(CodeActionKind.QuickFix, CodeActionKind.Refactor).asJava
)
)
} else {
capabilities.setCodeActionProvider(true)
}
capabilities.setTextDocumentSync(TextDocumentSyncKind.Full)
capabilities.setExperimental(MetalsExperimental())
Expand Down

0 comments on commit 7e6135a

Please sign in to comment.