Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are Language servers remote or local processes

A lot of IDE's and plugins talk about language servers that provide some of the IDE features like auto-completion, linting, and highlighting. Is the language server just some local process that is also running on my machine or is my code being sent somewhere for analysis (would features stop working if I have no internet). Also if the code is being sent somewhere how is that safe?

like image 370
HashBr0wn Avatar asked May 27 '26 01:05

HashBr0wn


1 Answers

The process is nicely explained here. In case of VSCode extensions, 99% of all LSP will be local. But at least in theory, it might as well run over network.

Also if the code is being sent somewhere how is that safe?

Language server protocol only defines the protocol itself, no encryption details or permission constraints. If you use some client to interact with it (say, an IDE extension), the client itself can already do what it wants without you noticing. The server is only yet another implementation detail.

like image 98
phil294 Avatar answered May 30 '26 09:05

phil294



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!