-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Second window to open does not open folder when first's cwd is deleted #2259
Comments
@martypdx this seems to be nodejs/node#1184 as a workaround, do not cd into the folder but instead open the folder from its parent directory. |
good idea, thx! |
Poking around some more on this, it seems that it only happens if the initial cwd that causes So while there is an underlying node issue, it would seem |
Where should Code chdir to? I am feeling uneasy doing such a change without understanding the impact for all spawned processes. |
Well there's already an impact between the first opened directory and all subsequent spawned instances. I'm guessing the root process that spawns additional instances gets tied to the first directory from which |
@martypdx I think you could already do this with the current release. If you look at the script on Mac to launch code you see that we define a CWD variable called
If you hardcode that one to be some other directory, it should work. |
It seems I just had this problem. Unable to open a folder until I completely quit vscode and relaunch. Version:
I only deleted the
But the extension was restarted anyway (which is a bug in itself), so it kept crashing every few seconds. |
Since this issue has a linked upstream issue referenced, I am going ahead to close this issue as part of our issue grooming effort: https://github.com/microsoft/vscode/wiki/Issue-Grooming |
Version 0.10.6 (0.10.6)
on OSX.Second instance hangs until you completely quit vs code and relaunch.
Why would anyone do this? I'm grading student assignments, so I git clone and then delete directory after reviewing each student's assignment.
The text was updated successfully, but these errors were encountered: