Copy extension binaries during main vscode task #6392
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.
This change addresses an issue in which the
tree-sitter.wasm
file does not load in release builds, which causes R testing to fail.This problem is a regression from the 1.96 merge. The problem was that we were copying the binaries as part of the build task
compileExtensionsBuildTask
.positron/build/gulpfile.vscode.js
Lines 617 to 623 in 4ea5c56
After 1.96, this build task is no longer invoked as part of the main vscode task; it was replaced with
compileNonNativeExtensionsBuildTask
.positron/build/gulpfile.vscode.js
Lines 603 to 610 in 2d4492c
This change did not generate a merge conflict since there are no Positron edits to this list.
The fix is to add the
copyExtensionBinariesTask
to the main vscode task in a Positron code fence, to reduce the odds of this situation happening again.Addresses #6345.
Reusing VS Code's tree-sitter-wasm
As a side note, the first thing I tried was using VS Code's
tree-sitter-wasm
instead of continuing to bundle a redundant copy inpositron-r
. This turned out to be more of a mess than it was worth. Specifically:tree-sitter.wasm
file to load using the locateFile option in Parser.init, but it is not compatible with the JavaScript side of the moduleweb-tree-sitter
=>@vscode/tree-sitter-wasm
due to API differencesRelease Notes
New Features
Bug Fixes
QA Notes
I'm surprised this problem is not causing more failures! This fix isn't really specific to R or testing UI. If you see any issues post 1.96 that appear to be due to a missing binary in an extension, this is a likely cause.