-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support to open a project folder in multiple VS Code windows #2686
Comments
I think this is a duplicate of #48 |
@Tyriar yes, on first glance this looks like a duplicate. However this request is specifically targeted towards a concrete use case: enable debugging of multiple processes. I do not want to discuss why this is necessary or what the name of a setting to enable this should be. I just want to discuss what is needed to make VS Code support this scenario without any problematic side effects. @bpasero is the right person to resolve this as a duplicate of #48 or not, |
I think this request is fair because it talks about lifting our current limitation that you cannot open the same folder twice in 2 or more windows. @weinand I suggest we add the issues we see to your first comment so that we do not have to haunt down all the issues by checking the comments. |
@bpasero How about this? Is this a feature that a contributor can solve or only core team members? |
This is not an area where we would easily accept PRs, sorry. It needs more thinking than just allowing to open the same folder in multiple windows. People might expect this to be a very light weight operation because the folder is already open in one window. In fact, the 2 windows share nothing and so you end up with multiple language services. I find this OK but not everyone in the team currently would agree to that. |
@bpasero I understand. Well then, hope this feature comes out soon, would contribute a lot to users with multi-monitor setups |
I found a workaround - use |
Some notes:
|
Additional notes
|
Additional notes:
|
FYI: |
There has been a release in May which includes a new feature that may help with this. It is not completely the one we are all waiting for, but it is a good step forward. https://code.visualstudio.com/updates/v1_24#_duplicate-workspace-in-new-window |
Oh that's dope. That's pretty close to what I want so woo!
…On Sun, Jun 24, 2018, 3:01 AM chillinski ***@***.***> wrote:
There has been a release in May which includes a new feature that may help
with this. It is not completely the one we are all waiting for, but it is a
good step forward.
https://code.visualstudio.com/updates/v1_24#_duplicate-workspace-in-new-window
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2686 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJA4zt2Os08b_R9tpn8nGr2rHV0bEwYMks5t_0dEgaJpZM4HS5y5>
.
|
The update page says it is "a workaround to the current limitation that one workspace cannot be opened in two windows". How exactly is it a workaround instead of the functionality itself? I mean, isn't it opening a second window within the same workspace? From what I could test it is pretty much what I needed and it looks like it works quite well, so yay. Update: Oh, I think I understand it. It doesn't use the same workspace but a copy of the workspace on the same directory. Is that it? (Nevertheless it is good enough for what I need, which is something akin to |
@mateusmedeiros Per #48, this issue isn't resolved until
Opens two instances of vscode. Example use case: I can work on the same project in my local desktop session and my (separate) remote desktop session on the same machine. |
Honestly, I would prefer it not to do the above behavior by default. Otherwise clicking paths in Iterm will open up a new code IDE for each file which is undesirable. I would prefer a more explicit intent.
|
@mikelward I see, that makes sense. Thanks. |
@nmccready There's a setting to control that: If I understand correctly, The bug is that EDIT: with the setting set to |
I just tested this with |
@nmccready sounds like you're reproducing the bug. |
right I was hoping we were wrong ;) |
A slightly hacky workaround: (using VSCode July 2018) open a new vscode window (ctrl-shift-n) and open the folder above the folder with your project. doing this (using typescript), I can have:
this seems to work great enough for me. hope it helps you out. EDIT: I switched what I do in the 2 vscode windows, so updated the above details accordingly. |
@thedonquixotic you are right, that is much better. Thank you very much I'll use that. The problem is/was I didn't know that command exists, and trying to open the workspace twice just causes the first workspace window to to be in focus. It seems that this should be an option from the drop-down menu. |
Glad to hear it helped! And yeah, I think they're slowly working it's
functionality into being more prominent but for now it's a little hidden
away.
…On Mon, Aug 27, 2018 at 6:47 PM Jason Swearingen ***@***.***> wrote:
@thedonquixotic <https://github.com/thedonquixotic> you are right, that
is much better. Thank you very much I'll use that.
The problem is/was I didn't know that command exists, and trying to open
the workspace twice just causes the first workspace window to to be in
focus.
It seems that this should be an option from the drop-down menu.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2686 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJA4zhRmd8OtMUWZbFf2k0hGJRZZQyH1ks5uVIUbgaJpZM4HS5y5>
.
|
@thedonquixotic's solution works. But this is so inconvenient to those who don't know about it. Trying to open the same directory should result in just that - a new window with the given directory. Likewise, |
I believe there was a recent "feature" that regressed this behavior, contrary top what is described above. I open VS Code by |
@chriskuech I'm on the nightly builds and I still see the same behaviour. Maybe -n can force a word a new empty workspace |
Thanks @FernandoMiguel , it seems |
Possible workaround that might be useful to anyone wanting to have two folders open is to use Live Share and join your own session. This allows multiple windows to be open simultaneously (With the only downside being always online requirements) |
I would argue invoking our command "Duplicate Workspace in New Window" (see https://code.visualstudio.com/updates/v1_24#_duplicate-workspace-in-new-window) is easier than having to join a live share session? |
Yeah, this issue is pretty much solved, but people keep on skipping all the discussion and don't see that aside from being able to invoke this from CLI, the issue is fixed. For future generations: 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 |
We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding, and happy coding! |
Currently VS Code prevents opening a folder more than once which makes it impossible to work on a project in multiple windows (e.g. on multiple displays).
@bpasero @dbaeumer @egamma @alexandrudima please raise any obstacles and issues you might foresee with this request.
Issues found so far:
Please note: Initially I've created this feature request for a specific use case: enable debugging of multiple processes.
In the meantime, debugging of multiple processes has become possible without the need for opening a folder more than once (see #13426). But instead of closing this item (as no longer necessary), I've repurposed it by removing the specific debug use case.
For transparency you can find the original comment below:
The text was updated successfully, but these errors were encountered: