根据https://code.visualstudio.com/api/references/extension-manifest上提供的文档,在"extensionDependencies"
中为扩展名设置一个package.json
键应该与您自己的扩展名一起安装任何依赖项,但这似乎不是不为我工作。我的package.json
指定以下内容:
"extensionDependencies": [
"ms-vccode.cpptools",
"ms-python.python"
]
,但是当我尝试测试扩展程序时,却收到错误消息:
Cannot activate extension 'my-extension' because it depends on extension 'ms-vccode.cpptools', which is not installed or disabled. Please install or enable 'ms-vccode.cpptools' and reload the window.
是否有办法确保在安装自己的扩展程序后自动安装这些扩展程序?谢谢!