The vscode API documentation includes a page on how to test extensions. This works well when you have a single extension with no dependencies. However, in our case, we extensionDependencies
since our extension depends on hbenl.vscode-test-explorer
.
On our CI server, we have a problem that we cannot run the tests until this dependency is installed, but there is no API exposed by vscode's test API to install extensions.
We could download our own copy of vscode and use the --install-extension
command to install this dependency, but that complicates things since now we are managing the download that the API used to manage.
There are two reasonable possibilities that I would like to explore:
- How can I disable the
extensionDependencies
when activating my extension? - How can I download the dependency as part of the
vscode-test
run?