pucelle / vscode-css-navigation

Allowing Go to definition from HTML to CSS, or Find References from CSS to HTML.
https://marketplace.visualstudio.com/items?itemName=pucelle.vscode-css-navigation
MIT License
64 stars 8 forks source link

if use dash to connnet class word, will show two result, if use underlne ,then only one #64

Closed awkj closed 1 year ago

awkj commented 2 years ago

image image image

can I set dash style class as one class, and jump ?

pucelle commented 2 years ago

Does the two definition results at the same file, and same position?

awkj commented 2 years ago

Does the two definition results at the same file, and same position?

Yes

pucelle commented 2 years ago

Can't reproduce and don't know what's happening. I made code pieces from your screenshots but can't reproduce. Can you provide more details, like the minimum code pieces that can reproduce?

awkj commented 2 years ago

First, I uninstall all extension, only Keep css-navi image Second, I clear all setting image

I run

pnpm create vite
select react => react-ts

and in App.tsx image image image

if I press "commad" on mac , and display two class result(two result will jump to same location, I think should display one result, if I was wrong or is vscode parser api cause, please ignore ), if I right click, and only one result.

pucelle commented 2 years ago

Sorry reply you late... I made some codes to try to simulate the scenario in your screenshots, but I still failed to reproduce the issue. If you have time and enough patient, could you upload a package about the files that you meed the issue?

pucelle commented 1 year ago

Cant reproduce......