Skip to content

How to run the LSP Server (newbie) #1901

Answered by msujew
ianh9999 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @ianh9999,

I would recommend you to start with the yeoman generator for Langium (requires yeoman) and select the vscode extension option. That will generate you some setup that produces a .js bundle that contains the whole language server. You can start this file with node <file> --stdio to start the language server in stdio mode. The vscode-languageclient library used by the generated extension automatically does under the hood to start the language server.

Now you just need a language client that is capable of connecting to this language server. Note that not every editor library is automatically capable of communication within the language server protocol.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ianh9999
Comment options

Answer selected by ianh9999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants