Skip to content

Enabling "vue.inlayHints.missingProps" causes false positive hints #6054

@yaomk

Description

@yaomk

Vue - Official extension or vue-tsc version

3.3.0

VSCode version

1.120.0

Vue version

3.5.30

TypeScript version

6.0.3

System Info

System:
    OS: Windows 11 10.0.26200
    CPU: (8) x64 Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz
    Memory: 2.54 GB / 15.81 GB
  Binaries:
    Node: 22.22.2 - C:\Users\34209\AppData\Local\fnm_multishells\8948_1779160470661\node.EXE
    npm: 10.9.7 - C:\Users\34209\AppData\Local\fnm_multishells\8948_1779160470661\npm.CMD
    pnpm: 9.15.9 - D:\fnm\node\node-versions\v24.11.0\installation\pnpm.CMD
  Browsers:
    Chrome: 148.0.7778.168
    Edge: Chromium (141.0.3537.99)

package.json dependencies

"dependencies": {
    "@unocss/reset": "^66.6.7",
    "@vitejs/plugin-legacy": "^7.0.0",
    "@vueuse/core": "^14.0.0",
    "amfe-flexible": "^2.2.1",
    "autoprefixer": "^10.4.27",
    "axios": "^1.13.6",
    "compressorjs": "^1.2.1",
    "dayjs": "^1.11.20",
    "dotenv": "^16.6.1",
    "es-toolkit": "^1.45.1",
    "js-cookie": "^3.0.5",
    "nprogress": "^0.2.0",
    "pinia": "^3.0.0",
    "pinia-plugin-persistedstate": "^4.7.0",
    "unplugin-auto-import": "^21.0.0",
    "vant": "^4.9.22",
    "vconsole": "^3.15.1",
    "vite-plugin-eslint": "^1.8.1",
    "vue": "^3.5.30",
    "vue-router": "^5.0.0"
  },
  "devDependencies": {
    "@antfu/eslint-config": "^7.7.3",
    "@types/js-cookie": "^3.0.6",
    "@types/nprogress": "^0.2.3",
    "@vant/auto-import-resolver": "^1.3.0",
    "@vitejs/plugin-vue": "^6.0.0",
    "@vitejs/plugin-vue-jsx": "^5.1.5",
    "archiver": "^7.0.1",
    "consola": "^3.4.2",
    "defu": "^6.1.4",
    "eslint-plugin-format": "^2.0.0",
    "less": "^4.6.4",
    "lint-staged": "^16.4.0",
    "postcss-pxtorem": "^6.1.0",
    "prettier": "^3.8.1",
    "sass": "^1.98.0",
    "simple-git-hooks": "^2.13.1",
    "terser": "^5.46.1",
    "unocss": "^66.6.0",
    "unplugin-icons": "^23.0.1",
    "unplugin-vue-components": "^31.0.0",
    "vite": "^7.3.1",
    "vite-plugin-compression2": "^2.5.3"
  },

Steps to reproduce

  • In components, hints like __VLS_0 appear
  • view the screenshot
Image

What is expected?

The __VLS_0 hint does not appear.

What is actually happening?

A missing props hint appears for props that are not defined in the component.

Link to minimal reproduction

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions