Skip to content

Inlay hints in <script> block diappear on scrolling #5447

@VektorHL

Description

@VektorHL

Vue - Official extension or vue-tsc version

Vue - Official version: 2.2.10

VSCode version

1.101.1

Vue version

3.5.13

TypeScript version

5.8.3

System Info

System:
    OS: Linux 6.8 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
    CPU: (4) x64 Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz
    Memory: 7.23 GB / 15.49 GB
    Container: Yes
    Shell: 5.8.1 - /usr/bin/zsh
  Binaries:
    Node: 18.20.8 - ~/.nvm/versions/node/v18.20.8/bin/node
    npm: 10.8.2 - ~/.nvm/versions/node/v18.20.8/bin/npm
  Browsers:
    Chrome: 137.0.7151.119
    Chromium: 133.0.6943.53

package.json dependencies

{
"dependencies": {
    "@vueuse/core": "^13.0.0",
    "@vueuse/integrations": "^13.0.0",
    "axios": "^1.8.1",
    "date-fns": "^4.1.0",
    "json-rpc-2.0": "^1.7.0",
    "jwt-decode": "^4.0.0",
    "lodash": "^4.17.21",
    "maska": "^3.1.1",
    "pinia": "^3.0.1",
    "vite-plugin-vuetify": "^2.1.1",
    "vue": "^3.5.13",
    "vue-router": "^4.5.0",
    "vuetify": "^3.7.14"
  },
  "devDependencies": {
    "@eslint/js": "^9.20.0",
    "@mdi/font": "^7.4.47",
    "@vitejs/plugin-vue": "^5.2.1",
    "@vitest/eslint-plugin": "1.1.31",
    "@vue/test-utils": "^2.4.6",
    "eslint": "^9.20.1",
    "eslint-plugin-vue": "^9.32.0",
    "jsdom": "^26.0.0",
    "rollup-plugin-visualizer": "^5.14.0",
    "sass": "^1.86.3",
    "sass-loader": "^16.0.5",
    "vite": "^6.1.0",
    "vite-bundle-visualizer": "^1.2.1",
    "vite-plugin-vue-devtools": "^7.7.2",
    "vitest": "^3.0.5"
  }
}

Steps to reproduce

scroll below the middle of the <script> (in my case <script setup>) block.

What is expected?

inlay hints inside <script> block disappear.

What is actually happening?

at some point the hints inside <script> disappear, as if they were immediately turned off in settings. and if you scroll back up - the hints appear again, immediately.

Link to minimal reproduction

No response

Any additional comments?

also, after finding the target position, it can be reproduced by expanding/collapsing the folded code block.
vscode window size matters.

inlay-hints-bug-2025-06-24_10-28-06.mp4
inlay-hints-bug_2-2025-06-24_10-32-54.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions