I am trying to write a powershell script that would load up my workspace.
I would like to open VSCode from the script as well, I have learnt that this can be achieves by simply running the VSCode executable with the argument of the file/directory I would like to open.
PS > code <dir>
However, doing so yields two VSCode windows to open, one with
<dir> and one with previously open tabs. Are there any command-line tags I can give to force VSCode to only open
<dir> and not the other window?