Launching VSCode From Script #1378
Unanswered
josephcrawfordSRH
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Apologies it is actually working properly I had a logic flaw. Is there a better way though? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Good Morning,
I am working on a script that will list out my projects and allow me to select one, it will then get a list of all branches for the project and allow me to select one. I then want it to open this branch of the project in VSCode and I have an arg asking if it should open in a new editor or use an existing open one. However this does not appear to be working. It keeps opening new editors rather than using the existing editor that is open.
I have debugged this and found that it is in fact using the
-r
when I sayNo
, but VSCode keeps opening new editors.I know this is probably an issue with the VSCode CLI utility and not that of Script Kit but I was wondering is there a better way this could be done in script kit rather than executing a shell command?
Also does Script Kit come with any caching helpers that would create cache files for a script under the cache directory and allow you to check them, etc?
I am going to implement caching for my project list and branches and then another script to refresh the caches so that I am not waiting so long every time the projects/branches are listed.
Beta Was this translation helpful? Give feedback.
All reactions