Skip to content

Throwing custom exceptions from contributed command execution shows cryptic error popup #116932

@ganni

Description

@ganni
  • VS Code Version: 1.53.2
  • OS Version: MacOS 11.2

Hi guys,

Before 1.53, throwing exception with custom error message used to show up as error message popup by default. However with new update it shows up some cryptic error message instead.
Running the contributed command: '_vscode_delegate_cmd_klan2ooe' failed.

image

Is this new change by design? or a bug?

Steps to Reproduce:

  1. Throw exception (with custom error message) from any contributed command.
throw new Error("Custom error message");
  1. It now shows cryptic error message.
    It used to show the custom error message that I've provided with thrown exception.
    image

Does this issue occur when all extensions are disabled?: N/a

Thank you.

Metadata

Metadata

Assignees

Labels

apiauthor-verification-requestedIssues potentially verifiable by issue authorfeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insidersverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions