Skip to content

VScode extension clashes with expandable TS types #14971

@Quacken8

Description

@Quacken8

Astro Info

Astro                    v5.15.1
Astro extension          v2.15.4
Vite                     v6.4.1
Node                     v22.19.0
System                   Linux (x64)
Package Manager          pnpm
Output                   server
Adapter                  @astrojs/node (v9.5.0)
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

VSCode supports expandable types on hover since at least version 1.102.3 but the current latest Astro extension (v2.15.4) prevents this feature from working. When hovering a type and the Astro extension is active the expand buttons +/- don't appear

Image

Multiple extensions had a problem with this [1] [2]. Seems to be linked to Volar.js which merged a pull request that fixed this.

What's the expected result?

The type expansion buttons +/- should appear when hovering a TS variable or type.

Image

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-32xacase?file=tmp.ts&view=editor

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageIssue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions