You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have asked in s.o., but probably I get more lack asking this project directly.
How can I control the execution order of multiCommand extension? It behaves like it executes them in parallel, while I want them to be executed one after another.
And then two files are opened in layout (means the command actually runs), but wrong files. They are problem2.py and problem2.txt, i.e. the previous pointer is used.
I checked the content of the pointer.txt now, and it actually contains dir1/problem3. And when I press numpad5, they are opened correctly.
Why does the VS Codium uses previous content of pointer, while at the moment of command run, it should already take the new content? It looks like VS Code executes the command sequence in parallel, instead of sequence them.
Am I doing something wrong? Is that an issue with configuration or vs code itself or maybe in multiCommand extension?
The text was updated successfully, but these errors were encountered:
ryuta46
added a commit
to ryuta46/vscode-multi-command-sandbox
that referenced
this issue
Jul 3, 2022
This extension waits until the previous command has finished, but the task "workbench.action.tasks.runTask" returned immediately and it seems to execute commands specified by the arguments in an internal thread.
I think your solution in SO is good.
Or, if you want to use the multi-command specified in settings.json, you can call it like ${command:***}
I have asked in s.o., but probably I get more lack asking this project directly.
How can I control the execution order of multiCommand extension? It behaves like it executes them in parallel, while I want them to be executed one after another.
I have a project with the following structure:
The
pointer.txt
contains the text:dir1/problem2
.I want to press a shortcut, and do a sequence of actions:
I setuped the following things.
In
settings.json
I defined the command sequence named "openPointedProblemLayout" (for being able to easily reuse it):In
tasks.json
I created a shell command definition, that creates a new .py and .txt pair and also changes the pointer:In
keybindings.json
I defined shortcut numpad2 that executes both actions (creates files and opens them) and a numpad5 (just opens them):Now, when I press numpad2, the two new files are created:
And then two files are opened in layout (means the command actually runs), but wrong files. They are problem2.py and problem2.txt, i.e. the previous pointer is used.
I checked the content of the pointer.txt now, and it actually contains
dir1/problem3
. And when I press numpad5, they are opened correctly.Why does the VS Codium uses previous content of pointer, while at the moment of command run, it should already take the new content? It looks like VS Code executes the command sequence in parallel, instead of sequence them.
Am I doing something wrong? Is that an issue with configuration or vs code itself or maybe in multiCommand extension?
The text was updated successfully, but these errors were encountered: