Open JulianCataldo opened 8 months ago
Works great! Thanks for posting this.
I noticed that the vue worker in this repo is not compatable with lastest @vue/language-service
and volar-service-typescript
, is there any reference or example that I can make the update?
After some tinkering to install matched package version, I got this: https://github.com/c8se/monaco-volar-vue-demo There are still problems with ts support in vue files,but I have no idea how to resolve them:
Hi, I tried to follow this example to set it up for another languageservice then vue (basically replacing vue all together). My experience is the same, the intellisense is broken for the newer version of volar-service-typescript, and in my scenario i had some import-statements that i injected in the top of the virtual document (in my languageService). This lead to the same errormsg you have above, 'process is not defined'.
So i guess this just doesn't work, unless @c8se has made some progress since last comment (?)
I have no further progress yet. @johnsoncodehk Could you please take a look at this?
Could probably move this issue to @volar/monaco instead, as it seems to be the package and not this implementation that fails (?)
Just in case someone want to copy the test and make it work with the latest
volar
etc.Changed:
volar.editor.activateAutoInsertion
=>volar.activateAutoInsertion
, etc.monaco-editor-core
imports =>monaco-editor
for typings mismatchesCan confirm it works with:Sorry, just tried again and using
monaco-editor
, while it fixes the typings issue, breaks the IntelliSense. Will post updates if needed.