Skip to content

"when" clause for every sub-command #32

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?

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions