vscode: "Open with Code" context menu option opens two instances if you don't have any workspace created or didn't have one opened in previous session

  • VSCode Version: 1.33.1
  • OS Version: Windows 10 Version 1809

Steps to Reproduce:

  1. Fresh install VS Code
  2. Right click on a folder or on the background of Windows explorer and select “Open with Code”

Or,

  1. Remove any existing workspace from the VS Code explorer (so that the explorer is empty)
  2. Close VS Code
  3. Right click on a folder or on the background of Windows explorer and select “Open with Code”

Or,

  1. Open a folder (not a workspace) in the VS Code explorer
  2. Close VS Code
  3. Right click on a folder or on the background of Windows explorer and select “Open with Code”

As I tried to test, I found some other scenarios too when this happens. I could not pin-point them all, but every time it is related to not having any workspace created or not having any workspace (not folder) opened in previous session. I hope this helps.

Does this issue occur when all extensions are disabled?: Yes

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

@bpasero I really didn’t expect to consider the empty explorer an Untitled Workspace. But, I get it now. Thanks a lot for your time 😃

@bpasero OK, I think I’m starting to get the picture. Because most of the time I myself use VS Code the way you described. So, I’m considering this a “by design”.