-
Notifications
You must be signed in to change notification settings - Fork 147
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
Support "Move to file" code action #863
Labels
Comments
It would have to be an opt-in and would require some custom glue code on the client. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Typescript 5.1 introduced a new "Move to file" code action in June 2023 (https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-1.html#move-declarations-to-existing-files), allowing moving a declaration to an existing file.
I can’t manage to get it to show up in Emacs, it only shows the "Move to a new file" code action which is a different (older) one. Is it supported by
typescript-language-server
? Looking at the logs, Emacs doesn’t get the code action at all:It might also be that Emacs'
lsp-mode
doesn’t send the right capabilities, I guess, as it is a code action that requires showing a file picker of some sort.The text was updated successfully, but these errors were encountered: