Fix extract variable with replace all occurrences

Adds extractVariableAllOccurrence to inferSelectionSupport to make the
"Extract to local variable (replace all occurrences)" code action work

Closes https://github.com/mfussenegger/nvim-jdtls/issues/371
This commit is contained in:
Mathias Fussenegger 2022-12-08 12:00:14 +01:00 committed by Mathias Fußenegger
parent 82e9feb6eb
commit 38ac798fe5

View file

@ -128,7 +128,12 @@ M.extendedClientCapabilities = {
generateDelegateMethodsPromptSupport = true;
moveRefactoringSupport = true;
overrideMethodsPromptSupport = true;
inferSelectionSupport = {"extractMethod", "extractVariable", "extractConstant"};
inferSelectionSupport = {
"extractMethod",
"extractVariable",
"extractConstant",
"extractVariableAllOccurrence"
};
};