microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.93k stars 6.59k forks source link

PowerToys Run should provide a mechanism to disable plugins if they're missing dependencies #18406

Open palenshus opened 2 years ago

palenshus commented 2 years ago

Description of the new feature / enhancement

The VS Code plugin can be toggled on even if you don't have VS Code installed. IMO, it should be disabled and grayed out in the settings page, with a message indicating why.

This could be accomplished by a new interface in Wox.Plugin which plugins could implement to report back a status saying whether they can be enabled or not, and if not a string saying why.

Scenario when this would be used?

For the VS Code plugin, and other plugins that depend on the presence of various dependencies. For example, a OneNote plugin would require OneNote installed, the Everything plugin depends on Everything, a Graph plugin would require an MSA logged in, etc.

Supporting information

No response

crutkas commented 1 year ago

I will call out, these plugins are disabled by default but good idea.