-
-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't understant this parameter #845
Comments
Hi @wudicom520 yes the example code does not check if the command |
Thank you for your feedback @kaisalmen |
@wudicom520 then the best way out is to not configure the language clients in your wrapper, but to start and dispose them independently of your editor. The language registration is done globally (monaco-editor, vscode do it like that) and this is beyond our control. Another approach is to either just update the editor model or use something like this to show a file: |
Thank you for your feedback @kaisalmen . Your suggestion is every good, but I how to cerate and use this independent language wrapper. Do you have an example? |
Hi @kaisalmen good morning.
only this test fun, introducing how to init LanguageClientWrapper object, but I can't how to use. other test examples, mainly tell me how to configure wrapper. create wrapper and configure wrapper json. now, I have new a LanguageClientWrapper, and if I were to use it by MonacoEditorLanguageClientWrapper.
|
@wudicom520 you need to start them as well. Then they register. We have a bit more complex example that allows that allows to use the language clients in an integrate and independent way: |
Thank your for you reply @kaisalmen .
like this, I can avoid to repeatedly |
@wudicom520 if you want to dynamically update the editor content, then just do it. Once the wrapper runs, you can use all the means available via its api. I showed you that you can losen the coupling between editor and language client(s). so you can independently manage them. Now you have to define your application logic. All building blocks are there. |
Hi @kaisalmen |
@wudicom520 do you want to open a PR and add this function? A unit test that deals with this error case could helpful. |
Hi


Now, Every time I initialize for the second time, Even browsers will report errors.
The report errors message is as follows:
My code 38line and 39line is as follows:
I hope you can provide the meaning and guidance of these parameters. Thank you!
The text was updated successfully, but these errors were encountered: