Does theia's keybinding support calling commands with args? #9108
-
Hello, I'm migrating my vscode extension to theia. In my vscode extension, I defined a command and bind it with a shortcut: {
"command": "mycommand",
"args": 1,
"key": "shift+ctrl+1",
"mac": "shift+ctrl+1"
}, I registered vscode.commands.registerCommand('mycommand', async (order: number) => {
console.log(order);
... logic here
}) I got 0 printed in console, it seems that theia doesn't support add args to keybinding? |
Beta Was this translation helpful? Give feedback.
Answered by
vince-fugnitto
Feb 23, 2021
Replies: 1 comment 4 replies
-
@HaoboGu thank you for the discussion, do you have an example vscode extension where setting the |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
vince-fugnitto
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@HaoboGu thank you for the discussion, do you have an example vscode extension where setting the
args
in thepackage.json
works correctly? I tried a similar use-case as yours (writingargs
in thepackage.json
) and it did not work in vscode.