Skip to content

Dependency issues with v13 / questions #563

@kaisalmen

Description

@kaisalmen

@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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions