Replies: 1 comment 1 reply
-
Hey @movalz, good question, though I'm not sure how easily possible it is to perform hot code replacement in node.js/VS Code at all. The error you're running into specifically is due to the fact that you cannot run a VS Code extension on its own. You need to run a development host instance of VS Code and instruct it to load your extension (which is done in the default launch config). AFAIK VS Code doesn't support hot reloading of its extensions. Instead, the whole extension host needs to be restarted. I believe this might rather be a question for the guys over at the vscode-languageserver-node or vscode repo directly. This is probably out of scope of Langium. Note that the way we do iterative manual testing on language servers is by having a watch script recompile the language server+extension on every change and then reloading the VS Code instance manually using the debug controlls: |
Beta Was this translation helpful? Give feedback.
-
Using VSCode I want to debug the language server with "hot code replacement" like I'm used to when developing with Xtext in Eclipse.
I have tried a configuration in launch.json to start the language server with a
"runtimeExecutable": "nodemon"
:When I...
Is it possible to get something like the hot code replacement of Eclipse with Langium development with VSCode?
Beta Was this translation helpful? Give feedback.
All reactions