Skip to content

Hover rendering has no title on non-trival stringified annotations #1640

@MeGaGiGaGon

Description

@MeGaGiGaGon

Summary

With this code:
https://play.ty.dev/fdd1d134-c407-4bee-bbc6-55418b97988e

a: "str"
b: "str | int"

Hovering the str in a gives a title saying str:

Image

While hovering the str in b is missing that title:

Image

This happens both in the playground and in VSC.

Version

ty 0.0.1-alpha.28 (8c34249 2025-11-25) playground (536425619)

Metadata

Metadata

Assignees

Labels

serverRelated to the LSP server

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions