vuejs / language-tools

⚡ High-performance Vue language tooling based-on Volar.js
https://marketplace.visualstudio.com/items?itemName=Vue.volar
MIT License
5.87k stars 402 forks source link

css 颜色提示丢失 #4980

Open VioSea-hub opened 2 weeks ago

VioSea-hub commented 2 weeks ago

Vue - Official extension or vue-tsc version

v2.1.10

VSCode version

1.91.1

Vue version

3.4

TypeScript version

System Info

No response

package.json dependencies

{
  "name": "testcolor",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "preview": "vite preview"
  },
  "dependencies": {
    "vue": "^3.4.31"
  },
  "devDependencies": {
    "@vitejs/plugin-vue": "^5.0.5",
    "vite": "^5.3.4"
  }
}

Steps to reproduce

我示例项目是用vite创建的默认模版,直接使用 git init 然后在Vscode 右侧 ‘源代码管理’中查看 文件差异,查看过后css 色块提示就没了,只能重启VS code 才行 操作过程: vite 创建项目>根目录执行git init>打开VS Code 左侧源代码管理>点击文件查看差异> css 颜色色块提示消失

image image 执行完第二张图的步骤,再返回回去文件提示就没了,需要重启VSCode才能再次出现

What is expected?

css #fff 等正确显示颜色

What is actually happening?

使用源代码管理中的比较差异之后色块提示消失 image

Link to minimal reproduction

No response

Any additional comments?

只安装了 Vue - Official和中文语言包没有其他扩展

KazariEX commented 2 weeks ago

你看看消失之后在文件里随便输入一些字符会不会恢复。

VioSea-hub commented 2 weeks ago

这个方法确实可以,但是但是我重启VS Code重复之前的操作提示还是会消失