-
Notifications
You must be signed in to change notification settings - Fork 178
Add support for the "Move to file" interactive code action #987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for the "Move to file" interactive code action #987
Conversation
…on + check kind instead of name
|
I noticed that the client actually only receives the kind |
This adds support for the "Move to file" code action, fixing #863.
This pull request does the following:
supportsMoveToFileCodeActioninitialization option so that the change is opt-inmoveToFileCodeActionSupportflag infeaturesincludeInteractiveCodeActionsflag totrueingetRefactors, provided that the client does support the "Move to file" code actionprovideRefactors(as there could be other interactive code actions that would require separate opt-in)notApplicableReason(this is specific to interactive code actions as for instance "Move to file" may fail if you provide an invalid file name, which is only known when applying the code action).See also emacs-lsp/lsp-mode#4866 for an implementation of it in Emacs'
lsp-mode.