Skip to content

"when" clause for every sub-command #32

@shotexa

Description

@shotexa

I'd like to supply a "when" clause for every sub-command, as shown in this example:

 "multiCommand.commands": [
        {
            "command": "multiCommand.formatDocument",
            "sequence": [
                {
                    "command": "editor.action.formatDocument",
                },
                {
                    "command": "editor.action.organizeImports",
                    "when": "!activeEditorIsDirty"
                }
            ]
        }
  ]

When I tried to do it, the extension just ignores the "when" clause but works otherwise. Am I doing it wrong? or is it just not supported right now?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions