-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feasibility study: Can we use 'runCommands' command to implement our macro playback? #242
Comments
Experiment 1: Can it run extension commands synchronously? {
"key": "ctrl+p",
"command": "runCommands",
"args": {
"commands": [
{
"command": "type",
"args": {
"text": "begin!\n"
}
},
{
"command": "kb-macro.playback"
},
{
"command": "type",
"args": {
"text": "end!\n"
}
}
]
}
}, Result: Yes (as far as I tested)I tested this command sequence with some recorded macro, and it runs expectedly. |
Experiment 2: Can it run
|
Experiment 3: Does it handle keyboard autorepeat?Result: No.Using the sequence from experiment 1, with some long macro, long pressing Example result (single press):
Example result (long press):
This behavior would not be acceptable for users who use macros heavily. |
Unfortunately, the feature request to fix the above autorepeat issue has been closed because it has received less than 20 community upvotes. Can we use 'runCommands' command to implement our macro playback? |
In VS Code 1.77, a new command
runCommands
has been introduced.microsoft/vscode#871 (comment)
As far as I know, this command is the first official support for the functionality to execute multiple commands sequentially.
That command may be able to be used to implement our macro playback command in a much simpler and more reliable way and may remove the need for the troublesome
await
parameters.I want to know especially:
await
optionsThe text was updated successfully, but these errors were encountered: