Allow extensions to provide language servers for the use of other extensions via LanguageClient. Provide native language servers by default. #56873
Labels
*dev-question
VS Code Extension Development Question
The extension development utilities in VS Code are great, but may require extension authors to build up their own language server from scratch. At least in regards to generic information about one's code base such as definitions, references, and nav trees, it would be much easier if an extension author could talk to a language server provided by another extension or native to VS Code itself (e.g. Typescript).
Here's how it could work:
In order for this to really be useful first and foremost the native language servers in VS Code would need to be available. Then contributors could create extensions that exclusively provide a language client and server. Then extensions that wish to leverage these language servers can focus on their own extension specific functionality.
I think this would change the approach to language tooling a bit, but ultimately for the better. Right now my own team is developing an extension that needs definition and reference info for Typescript and there doesn't seem to be any way to piggy back off of the native Typescript server. As a result we spin up another Typescript server within our extension. This feels unnecessary and computationally wasteful (not to mention cumbersome).
The text was updated successfully, but these errors were encountered: