Open in VS code does not open a new VS code window
Closed this issue · 15 comments
When pressing Open in VS code
i expect the program to open a new window of VS code with my project. Instead it "hijacks" one of my currently opened projects. This is really annoying when you for example work on multiple projects or are running the backend locally.
What OS is this?
It opens new windows in Windows 11
2022-05-24.10-57-40.mp4
What OS is this? It opens new windows in Windows 11
MacOS Monterey 12.3.1 (Latest)
Can you try the "Custom IDE" mode and selecting the file Applications/Visual Studio Code.app/Contents/Resources/app/bin/code
?
In the Applications folder you can only select an application, not the underlaying file structure. So the only thing i can select is Applications/Visual Studio Code.app
.
Still does not work though, it only open a finder window to the project directory.
Please see this video to see how to do it. The example uses Adnroid Studio, but the only difference is the file you need to select
Still does not work. When testing in the terminal, you first have to cd
into the directory and then run code .
The thing is, not everyone has VSCode set in path. So code .
will not work in all cases, this is the method that is used in Windows and Linux. Maybe Sidekick can check for VSCode in path and use this method which is preferred
I'm on holiday for a month, if you can verify it before that, great, otherwise i will check it out when i get back. Cheers
I don't have a Mac to test it unfortunately, @leoafarias?
It works!
This seem to not be working anymore unfortunately. On macOS it takes over an opened VS code project, instead of opening a new window. The best workaround for now is to open a new VS code instance before pressing the button.
What opening method are you using? This behavior is controlled by VSCode when using the URL launch method.
Please confirm VSCode is in your path. Also, what changed? Did you update to a new version of macOS?