Skip to content

Use Array Context Keys for More Precise Action Enablement #4167

Description

@tsmaeder

We could manage array valued contexts for various interesting resource sets, like "java projects" or "source folders" and use those to more precisely contribute actions to the explorer context menu. The code would look like:

setContext('java.projects', ['path/To/Project1', '/path/To/Project']);

and then in our context actions:

when: resourcePath in java.projects

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions