Feature Request: enablement
property on MessageItem
s and QuickPickItem
s
#179023
Labels
Milestone
enablement
property on MessageItem
s and QuickPickItem
s
#179023
Because our extensions are supporting multiple environments, it would be nice to have an
enablement
property on thevscode.MessageItem
andvscode.QuickPickItem
objects. Similar to context commands, it would be great if they could be grayed out and disabled.Examples of enablement would be
isWeb
,isVirtualEnvironment
, any condtional statement, etc.The
package.json
has this implementation when you define the commands in the manifest. It would be perfect if that behavior could be duplicated because as of now, our extensions have to hide quick pick items that don't work in a web environment, but that can get confusing for users when options that were available in desktop suddenly disappear.The text was updated successfully, but these errors were encountered: