vscode: Duplicate launch configuration are shown in debug dropdown

  • VS Code Version: 1.55.1
  • OS Version: Windows_NT x64 10.0.19042

Steps to Reproduce:

Don’t know how I got in this state, I tried to repro without success. image

The launch.json has only one instance of Run Script: dev with Kubernetes, but in the debug dropdown it is shown twice (the bottom one doesn’t work and seems to be pointing to something no longer existing).

This inconsistency persist across machine reboots and profile deletion and recreation.

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

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 7
  • Comments: 22 (8 by maintainers)

Most upvoted comments

@wvolkov that is great news, thanks for trying. Based on your comment adding verified label. If somebody sees it not working please let me know.

Now as I said in my previous comment, this will not fix the workspaces which you already opened and had duplicates for. For now I suggest the following workaround once the next stable is out in 7 days. Delete the local storage. This will loose some UI state but nothing too drastic. Here’s the location’s

Windows: C:\Users\<userid>\AppData\Roaming\Code\Local Storage
Linux: /home/<userid>/.config/Code/Local Storage
macOS: /Users/<userid>/Library/Application Support/Code/Local Storage

@wvolkov that is great news, thanks for trying. Based on your comment adding verified label. If somebody sees it not working please let me know.

Now as I said in my previous comment, this will not fix the workspaces which you already opened and had duplicates for. For now I suggest the following workaround once the next stable is out in 7 days. Delete the local storage. This will loose some UI state but nothing too drastic. Here’s the location’s

Windows: C:\Users\<userid>\AppData\Roaming\Code\Local Storage
Linux: /home/<userid>/.config/Code/Local Storage
macOS: /Users/<userid>/Library/Application Support/Code/Local Storage

if you use vscode remote ssh, you will need to delete

Windows: C:\Users\<userid>\AppData\Roaming\Code\User\workspaceStorage\<some id>

@isidorn

Thanks @lynn-orrell for sitting down with me and helping me debug this problem. I have pushed a potential solution for this I would ask anyone who is willing to help to try out vscode insiders tomorrow and try to reproduce the issue and let me know how it goes.

The current fix is intended as a way to stop this from happening again, it unfortunately does not fix it for the folders which already have the duplication. Once somebody confirms that on insiders this looks good I can look into introducing some command which would clear the duplication.