Kai Salmen
Kai Salmen
Hi @bguo3 thank for reporting the issue and for supplying an example. That helps a lot!
@bguo3 sorry for the delay, but I was able to re-produce it: https://github.com/TypeFox/monaco-components/blob/vscode-config/packages/examples/src/langium/wrapperLangium.ts ⬆️ This is the branch for v2. It now contains a Langium example with two editors and...
@bguo3 this currently happens because there is no logic preventing the same worker/connection being created twice for the same language identifier. You end up with two Language Servers answering your...
> Hi, I am facing the same issue, would this be addressed in future version / is there a workaround for this? Hi @wa8f7192 No, there is no workaround for...
Hi @bguo3 and @kaisalmen I have finally started to solve this issue on this branch: https://github.com/TypeFox/monaco-languageclient/tree/issue-620 I now use two editors with just one language server worker and this removes...
> but both editor contents get mixed up with a completion request. This may be a Langium Language Server bug. I will come back with more info. The observed behavior...
Hi @apathoid thank you for reporting this. Can you share a repository, so I can re-produce this? Have you tried this without the proxy (reduce the complexity first and see...
@xueerli see here: https://github.com/CodinGame/monaco-vscode-api#if-you-use-webpack
@xueerli we even have a utility for loading locales available: https://github.com/TypeFox/monaco-languageclient/blob/main/packages/examples/wrapper_statemachine.html#L18-L22 It must be loaded before anything else. Usage is demonstrate here: https://github.com/TypeFox/monaco-languageclient/blob/main/index.html#L41
https://github.com/TypeFox/monaco-languageclient/issues/655#issuecomment-2144469817 describes the best way forward.