Fix vscode-test
setup and add CI job
#43
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The current
vscode-test
stub was broken by the use ofp-queue
(promise queue, a dependency when implementing the "run test" feature).The current p-queue is not compatible with commonjs2 builds, which we use.
This PR pins p-queue to 6.6.2, which is the last version that supports a commonjs build, and adds a CI job that runs
vscode-test
Ultimately we should use ESM for packaging our plugin but the support for this in vscode is still not yet completely mature (?) -- see for instance microsoft/vscode#130367 and https://code.visualstudio.com/updates/v1_94#_esm-is-shipping-for-vs-code