Skip to content

Prompt user to Open a Folder or Workspace  #2512

@ucheNkadiCode

Description

@ucheNkadiCode

Users commonly try to debug, build, scaffold or start a container with our Docker Tools when a folder or workspace is not currently open. It is important to note there shouldn't be a way to get into a debug path without having a folder open. This error should be repro'd.

Possible Scenario: The user selects a single python file and opens with VS Code. The user would be able to run this python script with a Python launch configuration. If the user tries to scaffold a dockerfile or build a docker image, they'll receive a prompt in the bottom right with text along the lines of "To build Docker files you must first open a folder or workspace in VS Code" because the user is not a part of a folder or workspace.

Issue: We are not providing a helpful pathway to correcting the problem. Instead we simply give them this popup:
image

Instead of giving the user the option to report an issue (which is used way too often for the magnitude of issue), I suggest we instead add a button with the same functionality as the one in VS Code.

image

This error affects the most customers by far. Over 3 thousand users have seen this error almost 5 thousand times in the past 60 days.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions