Skip to content

Commit

Permalink
expand client capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
artur-shaik committed Nov 8, 2024
1 parent a6b0a58 commit 82b9bca
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions lua/jc/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,22 @@ local function lspconfig_setup(paths)
init_options = {
bundles = bundles,
extendedClientCapabilities = {
actionableRuntimeNotificationSupport = true,
advancedGenerateAccessorsSupport = true,
advancedIntroduceParameterRefactoringSupport = true,
advancedUpgradeGradleSupport = true,
clientHoverProvider = false,
extractInterfaceSupport = true,
gradleChecksumWrapperPromptSupport = true,
inferSelectionSupport = {
"extractConstant",
"extractField",
"extractInterface",
"extractMethod",
"extractVariableAllOccurrence",
"extractVariable",
},
onCompletionItemSelectedCommand = "editor.action.triggerParameterHints",
classFileContentsSupport = true,
generateToStringPromptSupport = true,
hashCodeEqualsPromptSupport = true,
Expand All @@ -250,12 +266,6 @@ local function lspconfig_setup(paths)
moveRefactoringSupport = true,
overrideMethodsPromptSupport = true,
executeClientCommandSupport = true,
inferSelectionSupport = {
"extractMethod",
"extractVariable",
"extractConstant",
"extractVariableAllOccurrence",
},
},
capabilities = caps,
workspace = path.get_project_dirs().workspace_dir,
Expand Down

0 comments on commit 82b9bca

Please sign in to comment.