-
Couldn't load subscription status.
- Fork 54
Description
@codingame/monaco-vscode-extension-api has @types/vscode as peerDependency. This should be devDependency.
Are you aware there is a dependency loop from @codingame/monaco-vscode-api => @codingame/monaco-vscode-files-service-override => @codingame/monaco-vscode-api and other packages?
Is it still necessary to redefine monaco-editor on this level or could you use @codingame/monaco-vscode-editor-api everywhere? I no longer do this on monaco-languageclient level (TypeFox/monaco-languageclient#836).
Would this be possible with vscode as well or is the global package rewrite required?
Btw, we currently cannot prevent
"dependencies": {
"@codingame/monaco-vscode-api": "13.0.0",
"@codingame/monaco-vscode-model-service-override": "13.0.0",
"@codingame/monaco-vscode-extensions-service-override": "^10"
}to install both versions? I always thought that the closest version of @codingame/monaco-vscode-api drives the deduplication. But, it seems the problem comes from vscode@npm:@codingame/[email protected] being the previous dependency to @codingame/monaco-vscode-extensions-service-override. So, we can only fix this from now on (>=13) and the old workaround for monaco-languageclient should be kept in place for past versions.
Does it make sense to define only define @codingame/monaco-vscode-api as peer dependency and everything else either as regular or optional dependency to remove complexity?