Skip to content

Use Array Context Keys for More Precise Action Enablement #4167

@tsmaeder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions