-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tsserver should implement the Language Server Protocol #11274
Comments
Been 2 monthts, any updates? |
We did some work at Sourcegraph in wrapping the TS language service as a language server, but hit some limitations with the current API. Specifically, the I would be very interested in help or improvements in the TS server to solve this use case. |
@felixfbecker Would it be possible to overcome the limitations if you interfaced with an instance of tsserver instead? |
@masaeedu I don't understand the question - the TS language server is using the |
@felixfbecker Sorry, I'll try to clarify what I mean. Instead of implementing |
@masaeedu wouldn't the tsserver try to read from the file system directly? |
@felixfbecker Yeah, it would read the files directly. I don't think that would affect your language server process in any way though. If/when they make performance improvements to tsserver you don't need to make any changes. |
@masaeedu That is a dealbreaker unfortunately, because the files are not available locally in the container. |
I have implemented the initial version of language server protocol for typescript which can be found at https://github.com/prabirshrestha/typescript-language-server. It acts as a proxy for In the long term I would definitely love to see LSP shipping as part of the official typescript installation. |
Here is another LSP implementation of Typescript based on my original tsserver proxy idea. https://github.com/theia-ide/typescript-language-server. They have added more protocol feature support. It is maintained by folks at TypeFox. I have also handed over the |
https://github.com/Microsoft/TypeScript/wiki/Roadmap#30-july-2018 |
Can we get an update on whether there are plans for this issue? The two existing TS LSP servers both have big issues. If the TS team wants TypeScript to be used outside of VSCode / VStudio, they should resolve this issue. |
6 months from the time last comment was written. Any updates on this? LSP is promoted by Microsoft, yet TypeScript seems to ignore it. Weird :-) |
You can use https://github.com/theia-ide/typescript-language-server which more or less does the work of wrapping tsserver messages as LSP ones. |
I am using https://github.com/theia-ide/typescript-language-server too and it has lots of problems. Problems that I think wouldn't exist if the official server spoke LSP. |
The library of theia-ide seems to be not bad, but as felixbecker said, indeed has problems, unfortunately. For instance it does not raise errors on unused variables when |
Make sure those bugs are reported to typescript-language-server andthey'll
evntually be fixed.
…--
Mickael Istria
Eclipse IDE <https://www.eclipse.org/downloads/eclipse-packages/>
developer, for Red Hat Developers <https://developers.redhat.com/>
|
One more anecdote is microsoft/vscode#70239 |
I'm also using https://github.com/theia-ide/typescript-language-server . But I found it's looking for maintainers. typescript-language-server/typescript-language-server#141 I think it shows we can't rely on it so long time. Is it the time to reconsider this issue? |
It would be great if typescript embraces LSP and makes sure that features are available through it when they are added. That's VS Code uses tsserver directly without using LSP put all other tools to disadvantage. That's one of reasons for Theia to use VS Code extensions instead of trying to align https://github.com/theia-ide/typescript-language-server with VS Code extension each release. |
This request means additional work for the TS team, and VSCode's tight integration with TSServer makes a subtle to hint to use another Microsoft product. But not doing it leaves influence on the table. There are many people that can't or won't use VSCode, but will use LSP. Neovim's upcoming LSP client for example. |
So, what's the status of this? There isn't any updated and maintained language server for JS / TS currently, as far I know
|
See #39459 which revives this issue in this new context. |
As the language server protocol ( https://github.com/Microsoft/language-server-protocol ) is getting more and more popularity and clients ( https://github.com/Microsoft/language-server-protocol/wiki/Protocol-Implementations ), it would be very useful to have the tsserver implement this protocol.
The text was updated successfully, but these errors were encountered: