Closed candiedoperation closed 4 months ago
I made sure that all of the packages are on the same version (either 7.0.0 or 6.0.3).
monaco-languageclient wasn't updated to use the v7, so I doubt you don't have duplicated dependencies.
What is the result of npm list vscode
?
Project...
├─┬ @codingame/monaco-vscode-configuration-service-override@7.0.0
│ ├─┬ @codingame/monaco-vscode-files-service-override@7.0.0
│ │ └── vscode@npm:@codingame/monaco-vscode-api@7.0.0 deduped
│ └── vscode@npm:@codingame/monaco-vscode-api@7.0.0 deduped
├─┬ @codingame/monaco-vscode-cpp-default-extension@7.0.0
│ └── vscode@npm:@codingame/monaco-vscode-api@7.0.0 deduped
├─┬ @codingame/monaco-vscode-editor-service-override@7.0.0
│ └── vscode@npm:@codingame/monaco-vscode-api@7.0.0 deduped
├─┬ @codingame/monaco-vscode-keybindings-service-override@7.0.0
│ ├─┬ @codingame/monaco-vscode-files-service-override@7.0.0
│ │ └── vscode@npm:@codingame/monaco-vscode-api@7.0.0 deduped
│ └── vscode@npm:@codingame/monaco-vscode-api@7.0.0 deduped
├─┬ @codingame/monaco-vscode-textmate-service-override@7.0.0
│ ├─┬ @codingame/monaco-vscode-files-service-override@7.0.0
│ │ └── vscode@npm:@codingame/monaco-vscode-api@7.0.0 deduped
│ └── vscode@npm:@codingame/monaco-vscode-api@7.0.0 deduped
├─┬ @codingame/monaco-vscode-theme-defaults-default-extension@7.0.0
│ └── vscode@npm:@codingame/monaco-vscode-api@7.0.0 deduped
├─┬ @codingame/monaco-vscode-theme-service-override@7.0.0
│ ├─┬ @codingame/monaco-vscode-files-service-override@7.0.0
│ │ └── vscode@npm:@codingame/monaco-vscode-api@7.0.0 deduped
│ └── vscode@npm:@codingame/monaco-vscode-api@7.0.0 deduped
├─┬ monaco-editor@npm:@codingame/monaco-vscode-editor-api@7.0.0
│ └── vscode@npm:@codingame/monaco-vscode-api@7.0.0 deduped
├─┬ monaco-languageclient@8.6.0
│ ├─┬ @codingame/monaco-vscode-extensions-service-override@6.0.3
│ │ ├─┬ @codingame/monaco-vscode-files-service-override@6.0.3
│ │ │ └─┬ vscode@npm:@codingame/monaco-vscode-api@6.0.3
│ │ │ ├─┬ @codingame/monaco-vscode-base-service-override@6.0.3
│ │ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ │ ├─┬ @codingame/monaco-vscode-environment-service-override@6.0.3
│ │ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ │ ├─┬ @codingame/monaco-vscode-host-service-override@6.0.3
│ │ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ │ ├─┬ @codingame/monaco-vscode-layout-service-override@6.0.3
│ │ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ │ └─┬ @codingame/monaco-vscode-quickaccess-service-override@6.0.3
│ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ └─┬ vscode@npm:@codingame/monaco-vscode-api@6.0.3
│ │ ├─┬ @codingame/monaco-vscode-base-service-override@6.0.3
│ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ ├─┬ @codingame/monaco-vscode-environment-service-override@6.0.3
│ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ ├─┬ @codingame/monaco-vscode-host-service-override@6.0.3
│ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ ├─┬ @codingame/monaco-vscode-layout-service-override@6.0.3
│ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ └─┬ @codingame/monaco-vscode-quickaccess-service-override@6.0.3
│ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ ├─┬ @codingame/monaco-vscode-languages-service-override@6.0.3
│ │ └─┬ vscode@npm:@codingame/monaco-vscode-api@6.0.3
│ │ ├─┬ @codingame/monaco-vscode-base-service-override@6.0.3
│ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ ├─┬ @codingame/monaco-vscode-environment-service-override@6.0.3
│ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ ├─┬ @codingame/monaco-vscode-host-service-override@6.0.3
│ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ ├─┬ @codingame/monaco-vscode-layout-service-override@6.0.3
│ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ └─┬ @codingame/monaco-vscode-quickaccess-service-override@6.0.3
│ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ ├─┬ @codingame/monaco-vscode-localization-service-override@6.0.3
│ │ └─┬ vscode@npm:@codingame/monaco-vscode-api@6.0.3
│ │ ├─┬ @codingame/monaco-vscode-base-service-override@6.0.3
│ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ ├─┬ @codingame/monaco-vscode-environment-service-override@6.0.3
│ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ ├─┬ @codingame/monaco-vscode-host-service-override@6.0.3
│ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ ├─┬ @codingame/monaco-vscode-layout-service-override@6.0.3
│ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ └─┬ @codingame/monaco-vscode-quickaccess-service-override@6.0.3
│ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ ├─┬ @codingame/monaco-vscode-model-service-override@6.0.3
│ │ └─┬ vscode@npm:@codingame/monaco-vscode-api@6.0.3
│ │ ├─┬ @codingame/monaco-vscode-base-service-override@6.0.3
│ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ ├─┬ @codingame/monaco-vscode-environment-service-override@6.0.3
│ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ ├─┬ @codingame/monaco-vscode-host-service-override@6.0.3
│ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ ├─┬ @codingame/monaco-vscode-layout-service-override@6.0.3
│ │ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ │ └─┬ @codingame/monaco-vscode-quickaccess-service-override@6.0.3
│ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ ├─┬ monaco-editor@npm:@codingame/monaco-vscode-editor-api@6.0.3
│ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ └─┬ vscode@npm:@codingame/monaco-vscode-api@6.0.3
│ ├─┬ @codingame/monaco-vscode-base-service-override@6.0.3
│ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ ├─┬ @codingame/monaco-vscode-environment-service-override@6.0.3
│ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ ├─┬ @codingame/monaco-vscode-host-service-override@6.0.3
│ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ ├─┬ @codingame/monaco-vscode-layout-service-override@6.0.3
│ │ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
│ └─┬ @codingame/monaco-vscode-quickaccess-service-override@6.0.3
│ └── vscode@npm:@codingame/monaco-vscode-api@6.0.3 deduped
└─┬ vscode@npm:@codingame/monaco-vscode-api@7.0.0
├─┬ @codingame/monaco-vscode-base-service-override@7.0.0
│ └── vscode@npm:@codingame/monaco-vscode-api@7.0.0 deduped
├─┬ @codingame/monaco-vscode-environment-service-override@7.0.0
│ └── vscode@npm:@codingame/monaco-vscode-api@7.0.0 deduped
├─┬ @codingame/monaco-vscode-extensions-service-override@7.0.0
│ └── vscode@npm:@codingame/monaco-vscode-api@7.0.0 deduped
├─┬ @codingame/monaco-vscode-files-service-override@7.0.0
│ └── vscode@npm:@codingame/monaco-vscode-api@7.0.0 deduped
├─┬ @codingame/monaco-vscode-host-service-override@7.0.0
│ └── vscode@npm:@codingame/monaco-vscode-api@7.0.0 deduped
├─┬ @codingame/monaco-vscode-layout-service-override@7.0.0
│ └── vscode@npm:@codingame/monaco-vscode-api@7.0.0 deduped
└─┬ @codingame/monaco-vscode-quickaccess-service-override@7.0.0
└── vscode@npm:@codingame/monaco-vscode-api@7.0.0 deduped
I think it caused dependency duplication and I didn't think about it! I was wondering if there was some way to use the vscode-languageclient
directly instead of using monaco-languageclient
. I couldn't find any docs to integrate it using this API. Do you have any thoughts? Thanks a lot for the help :partying_face:
monaco-languageclient
can help but it's not mandatory and vscode-languageclient can be used directly. There's nothing specific to that library, you can refer to the offical languageclient documentation.
This library allows to run a VSCode (web) extension which is using vscode-languageclient, either by loading a vsix file, declaring it by hands in the code or even run it in the main thread (with the local extension host, which is probably the simpler way if you need to start/stop dynamically language clients).
Yeah that makes sense to me! Thanks a lot!
The Problem in a Nutshell
First time initialization of VS Code Services with the Language Services Override extension fails with:
this._fileService.onWillActivateFileSystemProvider is not a function
. However, this issue doesn't persist when I downgrade to Version 6.0.3. Furthermore, I made sure that all of the packages are on the same version (either 7.0.0 or 6.0.3).Other breaking extensions are listed in the last section of this issue.
Stack Trace
Sample Code (Initialization)
Sample Code (Usage)
Relevant Parts of
package.json
Vite Configuration
Final Observations