Skip to content

Launch.json updates (vscode.launchJson.pruneFolderForContainer) #207

@tscottjendev

Description

@tscottjendev

Describe the bug
Getting this error when deleting a container:

Couldn't prune the launch.json file in c:\Repos\Jendev\JI-InternalSystem-NEW\Chase Communications.vscode\launch.json for the container.

To Reproduce
Steps to reproduce the behavior:

  1. From the Cosmo Alpaca Preview extension
  2. Select the Containers section
  3. Select container to be deleted
  4. Right-click container
  5. Select Delete
  6. Scroll down to '....'
  7. See error

Expected behaviorA clear and concise description of what you expected to happen.
All launch.json files in a multi-root project workspace should have the container references removed. There should be no error, even if there is no reference to the container in the launch.json (which is what I suspect happened here.

Screenshots
If applicable, add screenshots to help explain your problem. Please remove sensitive data.

System Information

  • OS: Windows 11
  • Alpaca Version (VS Code Extension): 0.58.1

Additional context
FYI, I am having a similar problem when I have 2 containers for the same project and use "Create Launch.json" and chose the Add/prune obsolete options.
Image

Image

NB: This is a different workspace with 15 apps in it. In this case I have 2 containers with the same name but not the same ID (obviously).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions