typescript-language-server does not work with @typescript/typescript6
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 88/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- tooling
Research direction
Start in the @typescript/typescript6 compatibility package's lib directory and compare the existing tsc.js wrapper with the missing tsserver.js entry point. Add the corresponding tsserver.js compatibility entry point and verify that typescript-language-server starts with the package.
Written by the indexing model from the issue text.
Description
🔎 Search Terms
lsp language server tsserver.js
🕗 Version & Regression Information
- This is an issue with the new @typescript/typescript6 package
⏯ Playground Link
No response
💻 Code
No response
🙁 Actual behavior
I have installed both TypeScript 6 and 7 side to side following the blog post.
Unfortunately, typescript-language-server (which is a LSP wrapper around tsserver from TypeScript 6) does not work in this setup. It is looking for a tsserver.js file in node_modules/typescript/lib, which does not exist in @typescript/typescript6.
🙂 Expected behavior
The @typescript/typescript6 package is for compatibility with software based on TypeScript 6, so it should include a tsserver.js executable. I believe the only thing needed is to add a tsserver.js file in the lib directory containing:
require("@typescript/old/lib/tsserver.js");
(same pattern as the existing tsc.js file)
I tested it and typescript-language-server does start when adding this file.
Additional information about the issue
I know that TypeScript 7 includes a new native LSP server, but it does not have all the features that tsserver had. In particular the lack of code actions like "Move to file" make it so that I want to be able to switch between the old and the new server until the new server reaches feature parity.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.4k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 115
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/TypeScript
-
Possible Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/TypeScript#64278 · 1 comment · 1 reaction ·
-
Docs
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
microsoft/TypeScript#64118 · 1 comment ·
-
Docs
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
microsoft/TypeScript#63959 · 5 comments ·
-
Domain: lib.d.ts Help Wanted
Difficulty 1/5 Under an hour Newbie friendliness 91/100
microsoft/TypeScript#63722 · 4 comments · 1 reaction ·
-
Domain: lib.d.ts Possible Improvement
Difficulty 1/5 Under an hour Newbie friendliness 90/100
microsoft/TypeScript#63710 ·
All issues in microsoft/TypeScript
Similar issues
-
feature-request helm
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gravitational/teleport#69785 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
crossplane/crossplane#7859 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100