ryuta46 / vscode-multi-command

Visual Studio Code Plugin named multi-command
MIT License
229 stars 14 forks source link

User vs. workspace conflict #44

Closed guestieng closed 3 years ago

guestieng commented 3 years ago

When defining multiCommand.commands in "User" as well as(!) in "Workspace" settings (sometimes it's helpful to have this separation for different commands) and (!) when referring to a specific command from User settings in keybindings.json, it won't be found. An Example:

{ 
        "key": "<some shortcut>", 
        "command": "extension.multiCommand.execute" , 
        "args": { "command": "multiCommand.<some_command_label>" }
}

This yould yield the error "command 'multiCommand.' not found", if multiCommand.<some_command_label> was defined in the User settings. If, however, the multiCommand.commands definition was removed from the workspace settings, multiCommand.<some_command_label> would be found!

ryuta46 commented 3 years ago

@guestieng Did you define commands with object style in settings as below ?

"multiCommand.commands": {
    "multiCommand.down3Lines": {
        "sequence": [
            "cursorDown",
            "cursorDown",
            "cursorDown"
        ]
    }
}

If you defined with array style, please try object style to avoid to conflict user's settings and workspace's by reading this section in README.

When you have some troubles even if you are using object style, please share your settings to check the detail.

guestieng commented 3 years ago

Alright, that helped. thank you very much!