Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting breaks when using type assertion in template #4716

Closed
FloEdelmann opened this issue Aug 23, 2024 · 1 comment
Closed

Comments

@FloEdelmann
Copy link
Member

Vue - Official extension or vue-tsc version

Vue - Official v2.0.10

VSCode version

1.92.2

Vue version

3.4.38

TypeScript version

5.5.4

System Info

System:
    OS: Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H
    Memory: 18.26 GB / 31.02 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.13.1 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.5.2 - /usr/local/bin/npm
    pnpm: 7.18.2 - /usr/local/bin/pnpm

Steps to reproduce

Create a new Vue file with these contents:

<template>
  <some-component
    :value="foo as boolean"
    :other-prop="bar"
    disabled
  />
</template>

What is expected?

Its syntax should be highlighted properly.

What is actually happening?

grafik

Note that it works when parentheses are added:

grafik

Link to minimal reproduction

No response

Any additional comments?

No response

@KermanX
Copy link
Collaborator

KermanX commented Aug 23, 2024

Duplicate of #4534.

@KermanX KermanX closed this as not planned Won't fix, can't repro, duplicate, stale Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants