-
I am currently giving lsp-mode a try for editing my typescript-project. I've installed it, it starts up, gives me syntax highlighting, information about errors, and so on. But I seem to be unable to get any kind of organizing imports. When executing lsp-organize-imports, I get "source.organizeImports action not available". I found #3317, and as advised there, executed (lsp-make-interactive-code-action organize-imports "source.organizeImports.ts-ls"). However, then I get "source.organizeImports.ts-ls action not available". Given the contents of lsp-log (see below) I would assume that ts-ls is present. Reading the docs of lsp-mode and specifically ts-ls, I don't see any specific hints regarding organizing imports. Questions:
Versions: emacs 28.2 Contents of lsp-log: Command "typescript-language-server --stdio" is present on the path. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Additionally:
Does this project have the claim of being usable out of the box, or should I have the expectation that I have to learn a lot about its inner details before being able to do productive work? As I unfortunately saved the above changes, I now have to correct my imports a second time manually... Or do I miss something very basic? |
Beta Was this translation helpful? Give feedback.
-
I just noticed about lsp-start-plain, and then I have lsp-organize-imports. Thus probably I indeed seem to have caused it myself. Sorry for the noise, I seem to need to inspect things more deeply on my side. |
Beta Was this translation helpful? Give feedback.
I just noticed about lsp-start-plain, and then I have lsp-organize-imports.
Thus probably I indeed seem to have caused it myself.
Sorry for the noise, I seem to need to inspect things more deeply on my side.