- Notifications
You must be signed in to change notification settings - Fork102
In-browser editors#274
-
Great work. Thank you very much for such a great project. Would you consider adding the LSP toMonaco editor and/orCodeMirror? I believe there is an intention to provide awasm integration. Would this allow such use? Thank you. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 2 comments 3 replies
-
I still need to look into this properly, but afaik Monaco can connect to a remote language server and that would make it possible already today. The Wasm build would enable us to run the server within the browser too. However, we cannot connect to a real database due to browser restriction. My goal here is to connect to a Pglite instance eventually. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
New to lsp implementation but I tried connecting it with Codemirror and could not get autocomplete to work. Would love if you can share a small snippet for CodeMirror or Monaco. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Did you check this repo?https://github.com/TypeFox/monaco-languageclient It seems to provide exactly the bridge you need. |
BetaWas this translation helpful?Give feedback.
All reactions
-
You may find this useful for codemirror6 Also, this implements TypeScript autocomplete, lint and hover info for codemirror6. However they did not use LSP |
BetaWas this translation helpful?Give feedback.
All reactions
-
for whatever it's worth, as soon as a wasm build is published I plan to integrate it intohttps://postgres.garden |
BetaWas this translation helpful?Give feedback.