Skip to content

Conversation

@xoob
Copy link

@xoob xoob commented May 3, 2017

Return the Promise of each executeCommand() call to PromiseSeries, so that commands are executed in sequence, not in parallel.

Return the Promise of each executeCommand() call to PromiseSeries, so that commands are executed in sequence, not in parallel.
@josenicomaia
Copy link

+1

@Spongman
Copy link

Spongman commented Aug 8, 2017

please merge this. this extension is pretty much broken without this.

@josenicomaia
Copy link

@Spongman Indeed

@Spongman
Copy link

Spongman commented Aug 9, 2017

also, the 'custom delay' patch is unnecessary with this patch.

@mizagog
Copy link

mizagog commented Sep 4, 2017

why is it not in...?

@therealpeterhua
Copy link

Is this extension abandoned? This fix is pretty core, why no merge?

@clayms
Copy link

clayms commented Jan 2, 2019

This worked well for me and is easy to understand. Simply add return to the beginning of lines 34 and 38.

Current:

vscode.commands.executeCommand(action.command, action.args);

vscode.commands.executeCommand(action);

Fixed:

return vscode.commands.executeCommand(action.command, action.args);

return vscode.commands.executeCommand(action);

@jpotterm
Copy link

jpotterm commented Apr 2, 2020

Since it's been three years with no merge I found this fork that fixes this: https://github.com/ctf0/macros

@tobiashochguertel
Copy link

tobiashochguertel commented Apr 22, 2022

@geddski how is it about this Pull Request? Can we may work on this this weekend and merge and release a version 1.3?

@Ashark
Copy link

Ashark commented May 10, 2022

This worked well for me and is easy to understand. Simply add return to the beginning of lines 34 and 38.

Current:

vscode.commands.executeCommand(action.command, action.args);

vscode.commands.executeCommand(action);

Fixed:

return vscode.commands.executeCommand(action.command, action.args);

return vscode.commands.executeCommand(action);

I also am affected by the issue. See https://stackoverflow.com/questions/72153504/prevent-asynchronous-order-of-command-sequence-execution-in-vs-codium

I added these two return in the ~/.vscode/extensions/geddski.macros-1.2.1/extension.js, but it did not work for me. It still always execute commands in parallel. Any advise?

@Ashark
Copy link

Ashark commented May 10, 2022

Since it's been three years with no merge I found this fork that fixes this: https://github.com/ctf0/macros

@jpotterm How to install that? It seems it has not been published in marketplace?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants