From: Wolfgang Pausch <wolfgang.pausch@iteg.at>
To: help-gnu-emacs@gnu.org
Subject: lsp-mode / Typescript / organize imports
Date: Wed, 31 Jan 2024 08:48:02 +0200 [thread overview]
Message-ID: <bb0ca34c-db4d-4f42-a3e2-1f1428db98ca@iteg.at> (raw)
Hello,
(I'm not sure wether this is the best place to ask questions regarding
lsp-mode, if there is a better one please tell me...)
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 https://github.com/emacs-lsp/lsp-mode/issues/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:
- is organizing imports supported at all for typescript based on
https://emacs-lsp.github.io/lsp-mode/page/lsp-typescript/ ?
- if yes, how can I make it running?
- do I miss something I have to install also?
Versions:
emacs 28.2
lsp-mode 20240130.417
Contents of *lsp-log*:
Command "typescript-language-server --stdio" is present on the path.
Command "deno lsp" is not present on the path.
Command "semgrep lsp" is not present on the path.
Command "typescript-language-server --stdio" is present on the path.
Command "deno lsp" is not present on the path.
Command "semgrep lsp" is not present on the path.
Found the following clients for
/home/wpausch/tisgraph-ts/src/tisgraph/sketch/base/shape/AbstractIdLessShape.ts:
(server-id ts-ls, priority -2)
The following clients were selected based on priority: (server-id ts-ls,
priority -2)
Using Typescript version (user-setting) 5.3.3 from path
"/home/wpausch/tis/tisgraph/v2/tisgraph-ts/node_modules/typescript/lib/tsserver.js"
Thank you for any hints,
Wolfgang
next reply other threads:[~2024-01-31 6:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-31 6:48 Wolfgang Pausch [this message]
2024-01-31 7:10 ` lsp-mode / Typescript / organize imports Wolfgang Pausch
2024-01-31 16:31 ` Vagn Johansen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bb0ca34c-db4d-4f42-a3e2-1f1428db98ca@iteg.at \
--to=wolfgang.pausch@iteg.at \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).