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

Vue Official 2.2.0版本, vue文件的style内部无法查看引用 #5094

Open
lgl2189 opened this issue Dec 28, 2024 · 0 comments · May be fixed by #4685
Open

Vue Official 2.2.0版本, vue文件的style内部无法查看引用 #5094

lgl2189 opened this issue Dec 28, 2024 · 0 comments · May be fixed by #4685
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first 🍰 p2-nice-to-have

Comments

@lgl2189
Copy link

lgl2189 commented Dec 28, 2024

Vue - Official extension or vue-tsc version

Vue Official 2.2.0

VSCode version

1.96.2

Vue version

3.5.11

TypeScript version

未使用

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (20) ia32 12th Gen Intel(R) Core(TM) i7-12700H
    Memory: 19.34 GB / 31.63 GB
  Binaries:
    Node: 20.11.1 - D:\Program Files (x86)\nodejs\node.EXE
    Yarn: 1.22.22 - D:\Program Files (x86)\nodejs\info\node_global\node_modules\yarn\bin\yarn.CMD
    npm: 10.2.4 - D:\Program Files (x86)\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22621.3527

package.json dependencies

No response

Steps to reproduce

新建一个Vue文件
在template模块内,添加一个元素,为元素使用一个类
在style模块内,为这个类添加选择器

What is expected?

我希望在style中使用ctrl+鼠标左键,显示这个类名在template中的所有引用,就像附件图1
1

What is actually happening?

在2.2.0版本中,什么都不会显示,使用鼠标右键菜单,选择转到引用,会显示附件图2。但是并没有显示在template中的引用
2
图2

Link to minimal reproduction

No response

Any additional comments?

在我的测试中,只要回退到2.1.10版本,该问题就会消失,一切按照我预期的运行

@KazariEX KazariEX added bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first 🍰 p2-nice-to-have and removed pending triage labels Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first 🍰 p2-nice-to-have
Projects
None yet
2 participants