Hi. is it possible to add extract variables/functions to LSP?
Activity
yaohaizh commentedon Jan 21, 2019
In our Java implementation, base on code action kind of ""refactor.extract, we added the following kinds in this files to differentiate variables/functions.
https://github.com/eclipse/eclipse.jdt.ls/blob/master/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/JavaCodeActionKind.java
dbaeumer commentedon Jan 21, 2019
SOmething like extract variable / function should be provided via code actions. LinArcX objection to close this issue.
LinArcX commentedon Jan 21, 2019
Dirk Bäumer (@dbaeumer) who should provide this functionality? Yes it will be added to code actions.
rcjsuen commentedon Jan 21, 2019
LinArcX The server should make it known to the client that it supports such kinds of refactoring code actions.
dbaeumer commentedon Jan 25, 2019
Remy Suen (@rcjsuen) is correct. See the
CodeActionKindswhich have support for refactorings without user input.OK to close ?
vscodebot commentedon Feb 1, 2019
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!