Skip to content

debug: Launch Package template triggered with no config does not match the templates in package.json #3457

Open
@hyangah

Description

@hyangah

In #3387, the "Launch Package" template in package.json was updated to use ${workspaceFolder}.
But we missed to update the template in

config: {
name: 'Launch Package',
type: this.defaultDebugAdapterType,
request: 'launch',
mode: 'auto',
program: '${fileDirname}'
}

that is referenced when launching debugging without launch.json for the first time.
I think the right fix is to make the goDebugConfiguration read the template in package.json
instead of maintaining the copy in the code, so we update only one place in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DebugIssues related to the debugging functionality of the extension.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions