dsanders11 / vscode-electron-build-tools

A collection of useful VS Code helpers for working with the Electron codebase.
https://marketplace.visualstudio.com/items?itemName=dsanders11.vscode-electron-build-tools
MIT License
17 stars 7 forks source link

Add "Reveal in Electron Side Bar" Menu Item #18

Closed dsanders11 closed 1 year ago

dsanders11 commented 3 years ago

Would be nice to have a menu item in the Explorer view to show patches and tests in the extension's activity sidebar. Would be the opposite symmetrical side of "Open Patch" and "Open Test".

Will require some refactoring, as the API is TreeDataProvider.reveal(TreeItem) and it works backward up the tree from the TreeItem. If the tree hasn't been populated yet, that means we have to produce the tree nodes in opposite order they normally would be.

dsanders11 commented 3 years ago

Reveal in side bar landed for patches in 3197f72. Tests will take a bit more work, and it's less clear where to jump in the tree since a test file can have multiple suites.

dsanders11 commented 1 year ago

Using VS Code's standard testing sidebar solves this for tests.