Skip to content

Cannot auto close <template> tag when  #4893

@L33Z22L11

Description

@L33Z22L11

Vue - Official extension or vue-tsc version

2.1.6

VSCode version

1.93.1

Vue version

3.5.10

TypeScript version

5.6.2

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics
    Memory: 3.65 GB / 15.86 GB
  Binaries:
    Node: 22.8.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.8.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.11.0 - ~\AppData\Local\pnpm\pnpm.CMD
  Browsers:
    Edge: Chromium (127.0.2651.98)
    Internet Explorer: 11.0.22621.3527

package.json dependencies

{
	"dependencies": {
		"typescript": "^5.6.2",
		"vue": "^3.5.10"
	}
}

Steps to reproduce

  1. Type it below
    <template>
        <span></span>
    </

What is expected?

  • Auto complete the end tag </template>.

What is actually happening?

  • Not autocompleted.
  • With some built-in and HTML tags appearing in the candidate list.
    image

Link to minimal reproduction

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions