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
In the Jupyter extension we do not directly add
@types/vscodeinstead we use@vscode-dtswhich 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=errorI have used
vscode-dts -fto remove the npm package installed by the Python extension as thats not required.Suggestion: Use
optionalDependencyin favor ofpeerDependency,Basically we're unable to use the Python extension when using the vscode package
@vscode/dtshttps://github.com/microsoft/vscode-dts