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

Single character then dash class name bug #54

Closed onetrev closed 3 years ago

onetrev commented 3 years ago

I use namespacing for my classs names, but it causes a glitch. So to explain...

If I have a class name such as: .c-footer-logo then go to insert that class in my HTML, it autocompletes with duplicate characters for the first two chars. In other words, the class name comes in as c-c-footer-logo. Hopefully that makes sense. It works fine if you have two characters before a dash, so for example .cc-footer-logo works fine.

PS, the link to "Issues" on the VS Code Marketplace for this extension 404s, as it points to https://github.com/pucelle/vscode-navigation/issues Just wanted to let you know. :)

pucelle commented 3 years ago

Thanks, Yes this link is wrong. Thanks for pointing it out and I already changed it...

Great catch! This issue exist because I know nothing about the auto-completion range when I made this plugin one year ago. So, auto-completion have no problem if you input and get completion from the first char, but will have duplicate chars otherwise.

I will fix this issue soon. And thanks very much.

kanlukasz commented 3 years ago

I just want to confirm that this is also happening in my environment: gif4

pucelle commented 3 years ago

Thanks, very clear, I know how to fix this and will fix it soon.

pucelle commented 3 years ago

V1.10.6 released just some seconds ago.

onetrev commented 3 years ago

This now works perfectly -- thank you!!