Skip to content

A vscode plugin called vue-official breaks syntax highlighting #4753

Open
@QianSeNianHua

Description

@QianSeNianHua

Vue - Official extension or vue-tsc version

v2.1.2

VSCode version

1.92.2

Vue version

2.7.16

TypeScript version

System Info

System:
    OS: Windows 10
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
    Memory: 4.01 GB / 15.65 GB
  Binaries:
    Node: 14.21.2
    Yarn: 1.22.19
    npm: 6.14.17
  Browsers:
    Edge: 44.19041.1266.0
    Internet Explorer: 11.0.19041.1202

Steps to reproduce

<template>
   <u-popup v-if="a > b" :show="isShow" @close="isShow = false">
      <ResourceList :defaultValue="defaultResource" :data="resourceList" @cancel="isShowResource = false" @confirm="handleConfirmResource" />
    </u-popup>
<template>

<script>
.......
</script>

The above template contains the special symbol “>” and "isShowResource = false", and all subsequent syntax highlighting has no effect.

What is expected?

I disabled the vue-official plugin and it worked.

What is actually happening?

The effect of turning on the plugin
image

The effect after disabling the plugin
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