Skip to content

Playground incorrectly requests displayparts for jsdoc from TS 4.3 #43672

@sandersn

Description

@sandersn

With the playground set to nightly, jsdoc comment text renders as "*[object Object]" because Monaco is incorrectly requesting displayparts from the language server and then doesn't know how to render them:

https://www.typescriptlang.org/play?ts=4.3.0-dev.20210413&useJavaScript=true#code/PQKhFgCgAIWhJADgZwK4Fsq2gAQC4CeiApgCbEBm0A3tRQPb0Bc0A5A-awL5fQBijaABl6AJ2LpYwKDMgVUAOwDGeAJb0F0CgAoAlDShdZxyFFBx8RYjQH1eIaZABuAQ1HQXAblk7dQA

Expected: quickinfo for f: "@typedef - Foo Lorem"
Actual: "@typedef - [object Object] [object Object] [object Object]"

I checked this with Code, Code Insiders and emacs on the latest build and none shows the problem.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: LS: Quick Infoe.g. hover text, tool-tips, and tooltips.RescheduledThis issue was previously scheduled to an earlier milestone

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions