Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Language server creation in Monaco Editor

I have gone through the docs and found out that in order to provide diagnostics for a custom language in Monaco editor, we need to write our own language server/client. In example [1], it is written in Typescript. Can we write the server in Javascript itself?

[1] https://github.com/Microsoft/vscode-languageserver-node-example/tree/master/client

like image 561
user2894296 Avatar asked Feb 28 '26 08:02

user2894296


1 Answers

I know this question is years old, but in the interest of anyone else who stumbles by... Typescript is fully backwards compatible to JavaScript. Because of this, any valid JavaScript is in fact, valid Typescript.

So, anything that needs to be written in Typescript can in fact be written in JavaScript.

like image 147
Adam Hoffman Avatar answered Mar 02 '26 05:03

Adam Hoffman