Skip to content

Unable to use @vscode/python-extension due to peerDependency on @types/vscode #21720

@DonJayamanne

Description

@DonJayamanne

In the Jupyter extension we do not directly add @types/vscode instead we use @vscode-dts which pulls down the necessary type definition files.
However this doesn't work well with the peerDependency in the @vscode/python-extension package.

The following command fails in npm npm list --production --parseable --depth=99999 --loglevel=error
I have used vscode-dts -f to remove the npm package installed by the Python extension as thats not required.

Suggestion: Use optionalDependency in favor of peerDependency,

Basically we're unable to use the Python extension when using the vscode package @vscode/dts https://github.com/microsoft/vscode-dts

Metadata

Metadata

Assignees

Labels

area-environmentsFeatures relating to handling interpreter environmentsfeature-requestRequest for new features or functionalityverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions