Replies: 5 comments 5 replies
-
|
Beta Was this translation helpful? Give feedback.
-
👋 I work on the Deno LSP. It has some strong opinions in it when it comes to how Deno handles JavaScript and TypeScript that might not work as general purpose as some other integration. Deno resolves modules as fully qualified module names with no "magic" resolution, where as the far more common Node.js has a fairly complex module resolution algorithm and extensions are optional (and quite uncommon). In the internals of the LSP, we basically "drop" all the diagnostics related to module resolution and quite a few others that aren't meaningful to a Deno context that come back from the TypeScript compiler, and we replace the module resolution ones with our own. Currently the Deno LSP is missing a few features that language servers provide. The roadmap is here: denoland/deno#8643. |
Beta Was this translation helpful? Give feedback.
-
Similar to the treatment of Node.js Deno should have its own layer instead of being a part of Typescript. |
Beta Was this translation helpful? Give feedback.
-
Apparently lsp-deno exists! |
Beta Was this translation helpful? Give feedback.
-
I'm having trouble getting Deno working as my Typescript backend. I'm running the latest
And in my
Even though the Deno LSP is running and Spacemacs is connected to it, I only get timeout messages if I try any actual LSP actions. I can't tell what's doing on and I'm not sure how to go about debugging it. I'd appreciate any help. |
Beta Was this translation helpful? Give feedback.
-
So I just got Deno working as the LSP backend for the
typescript
layer. I only had to tweak my own config - luckily no deeper elisp alteration was necessary. I just added the following two variable changes to mylsp
layer:lsp-javascript
thinks it's runningtypescript-language-server
, but the above config seems to be enough to trick it.I notice that a number of other language layers have the ability to (somewhat) trivially switch between LSP providers. Should we do the same for typescript?
Beta Was this translation helpful? Give feedback.
All reactions