-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce Separate Assay Sidebar #64
Conversation
35b0e4a
to
1e6e3ea
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #64 +/- ##
========================================
Coverage 93.00% 93.01%
========================================
Files 25 27 +2
Lines 2589 2763 +174
Branches 162 169 +7
========================================
+ Hits 2408 2570 +162
- Misses 177 189 +12
Partials 4 4 ☔ View full report in Codecov by Sentry. |
Not sure what's causing this: Just calling
Despite that, the tests passing are just a matter of not calling `await sidebarController.getTreeView()... EDIT 1: Same issue, just with
EDIT 2: It's specifically the EDIT 3: If not awaited, EDIT 4: I have a feeling it has something to do with a timing issue with EDIT 5: I've removed the tests as there's no clear way to fix it. |
3d6cd63
to
7c6705f
Compare
80ad54d
to
aaca245
Compare
Co-authored-by: William Durand <will+git@drnd.me>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address the comments before landing this PR.
const thenable = vscode.workspace.fs.delete(item.uri, { recursive: true }); | ||
const promise = Promise.resolve(thenable).catch(() => failedUris.push(item.uri)); | ||
promises.push(promise); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can probably make that simpler:
const thenable = vscode.workspace.fs.delete(item.uri, { recursive: true }); | |
const promise = Promise.resolve(thenable).catch(() => failedUris.push(item.uri)); | |
promises.push(promise); | |
const promise = vscode.workspace.fs.delete(item.uri, { recursive: true }).catch(() => failedUris.push(item.uri)); | |
promises.push(promise); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typescript gets mad since 'catch' doesn't exist on type 'Thenable'. As far as I can tell Thenables can do catches, but by using the onRejected
parameter of .then() -- and this felt more legible in comparison.
* Replaces the original sidebar menu with a dedicated Assay menu and added the commands to the palette. * When add-ons are installed in the root folder, the Assay menu is populated with the add-ons and its (downloaded) versions. * The user can then 1) add a new addon, 2) open a version in a new window directly, 3) select two versions and launch their diff tool, or 4) select an add-on or version and delete it. --------- Co-authored-by: William Durand <will+git@drnd.me>
Closes #58
Changes
extension.ts#L29-30
)Original:

New:



