Skip to content

using name in template shows as deprecated #5918

@brc-dd

Description

@brc-dd

Vue - Official extension or vue-tsc version

3.2.1

VSCode version

1.107.1

Vue version

3.5.26

TypeScript version

5.9.3

System Info

  System:
    OS: macOS 26.2
    CPU: (10) arm64 Apple M2 Pro
    Memory: 129.47 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 24.12.0 - /Users/divyansh/.local/state/fnm_multishells/16037_1767451636112/bin/node
    Yarn: 1.22.22 - /Users/divyansh/.local/state/fnm_multishells/16037_1767451636112/bin/yarn
    npm: 11.6.2 - /Users/divyansh/.local/state/fnm_multishells/16037_1767451636112/bin/npm
    pnpm: 10.27.0 - /Users/divyansh/.local/state/fnm_multishells/16037_1767451636112/bin/pnpm
    bun: 1.3.5 - /opt/homebrew/bin/bun
    Deno: 2.6.3 - /Users/divyansh/.deno/bin/deno
  Browsers:
    Firefox Developer Edition: 147.0
    Safari: 26.2

package.json dependencies

{
	"devDependencies": {
		"@vue/tsconfig": "^0.8.1",
		"typescript": "^5.9.3",
		"vue": "^3.5.26",
		"vue-tsc": "^3.2.1"
	}
}

Steps to reproduce

git clone git@github.com:brc-dd/volar-name-bug.git
code volar-name-bug

Open Foo.vue.

What is expected?

name is not struck through as it refers to the prop there not window.name.

What is actually happening?

name is struck through maybe because it's inheriting the @deprecated jsdoc from the global namespace.

Image

Link to minimal reproduction

https://github.com/brc-dd/volar-name-bug

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    good reproduction ✨This issue provides a good reproduction, we will be able to investigate it first🔩 p2-edge-case

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions