You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Overriding the organize-imports code action is going to affect non-typescript projects. My workaround is to create a new code action called organize-imports-ts, for example:
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
organize-imports doesn't work with ts-ls.
Steps to reproduce
run
lsp-organize-imports
Expected behavior
Imports should be organized
Which Language Server did you use?
ts-ls
OS
MacOS
Error callstack
No response
Anything else?
The fix is to put
(lsp-make-interactive-code-action organize-imports "source.organizeImports.ts-ls")
In your config file. I think it'd be good to have it in the docs site somewhere. I'm happy to open a PR with that change.
The text was updated successfully, but these errors were encountered: