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

Disable Functionality When Workspace != Active Config #29

Open dsanders11 opened 2 years ago

dsanders11 commented 2 years ago

Currently functionality becomes active once a valid Electron checkout is detected, but there's no check that the Electron checkout matches the active config. This is a potential foot gun for new users, who wouldn't realize that the commands they're running aren't on the checkout they're viewing.

To reduce foot guns, only enable functionality when the Electron checkout matches the active config. Watch for active config changes and enable/disable functionality as needed. Terminate any running tasks during these transitions.