language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

Syntax highlighting in VSCode is not working properly.

Open WXY8888 opened this issue 1 year ago • 3 comments

Vue - Official extension or vue-tsc version

2.2.10

VSCode version

1.101.1

Vue version

3.4.0

TypeScript version

no

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700
    Memory: 2.02 GB / 15.79 GB
  Binaries:
    Node: 20.19.0 - C:\Language\Node\node.EXE
    npm: 10.8.2 - C:\Language\Node\npm.CMD
  Browsers:
    Edge: Chromium (128.0.2739.63)
    Internet Explorer: 11.0.19041.5794

package.json dependencies

"dependencies": {
    "vue": "^3.4.0",
    "vue-router": "^4.2.0"
  },
  "devDependencies": {
    "@vitejs/plugin-vue": "^4.6.0",
    "sass": "^1.89.2",
    "vite": "^4.5.0"
  }

Steps to reproduce

<template>
  <div
    v-for="marker in sceneMarkers" 
    :key="marker.id"
    class="location-marker"
    :style="{ 
      left: marker.x + '%', 
      top: marker.y + '%',
      transform: `scale(${zoomLevel})` 
    }"
    @click="selectMarker(marker)"
    @mouseenter="showTooltip(marker)"
    @mouseleave="hideTooltip"
    :tabindex="0"
    @keydown.enter="selectMarker(marker)"
    @keydown.space.prevent="selectMarker(marker)"
  />
</template>

transform: scale(${zoomLevel}) identification error

What is expected?

Correctly highlighted

What is actually happening?

transform: scale(${zoomLevel}) identification error

Link to minimal reproduction

No response

Any additional comments?

No response

WXY8888 avatar Jun 23 '25 04:06 WXY8888

I can't reproduce it. What does wrong highlighting look like?

KazariEX avatar Jun 23 '25 10:06 KazariEX

same issue here. version2.2.8 works

DirtyWhite avatar Jun 24 '25 08:06 DirtyWhite

same issue here. version2.2.8 works

Provide a clear screenshot, plus a minimal reproduction, otherwise no one will be able to solve this problem.

so1ve avatar Jun 24 '25 16:06 so1ve