You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The way Docker does things is to depend on context value filters--much the same as we use for context commands launched through the command palette--to ignore nodes for which the action is invalid. This can theoretically end up in all of the selections being ignored, in which case we treat it the same as command palette where nothing is selected (and we prompt).
The real pain about this approach is it forces a given context value to show up in at least three places--once where the tree node is constructed, once in the package.json for controlling where the action is shown, and once in the command to filter for specific context value(s). The latter two are nearly or exactly identical regexs and the duplication of code is error-prone. It might be interesting to try to apply the when clause from the manifest to see what nodes still pass the filter, if it's possible.
Originally posted by @bwateratmsft in microsoft/vscode-azureresourcegroups#516 (comment)
The text was updated successfully, but these errors were encountered: