Skip to content

improving typescript error message formatting: message contains [object Object] #179550

@SimonSiefke

Description

@SimonSiefke

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

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

VS Code Version: 1.77.1
OS Version: Ubuntu 22.10

Steps to Reproduce:

When an error in tsserver occurs, the console output contains [object Object]

object-object

[[object Object]]<main> TypeScript Server Error (5.0.2)
Debug Failure. False expression: Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.
Error: Debug Failure. False expression: Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.

Improvement: Printing the extension id as string

[vscode.typescript-language-features]<main> TypeScript Server Error (5.0.2)
Debug Failure. False expression: Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.
Error: Debug Failure. False expression: Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.

Metadata

Metadata

Assignees

Labels

author-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions