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
66 stars 7 forks source link

Allow to include glob patterns #24

Closed garyking closed 5 years ago

garyking commented 5 years ago

I've got the following in my React code:

import 'bootstrap/dist/css/bootstrap.css';
import '@fortawesome/fontawesome-free/css/all.css';

So I want to include those CSS definitions with this extension. But it's not possible, since, if I want to exclude node_modules, then these get excluded, too.

So, please make it possible to override some exclude rules with additional include rules. For instance, in .gitignore, I could do the following:

**/node_modules/**

!**/node_modules/bootstrap/**
!**/node_modules/@fortawesome/**

The above code would ignore node_modules, but then include the two dirs I want.

pucelle commented 5 years ago

Thanks for your suggestion, This will be included as part of next release, at the end of October.

garyking commented 5 years ago

Any updates on this? Thanks.

pucelle commented 5 years ago

Hi, garyking, Sorry but I start my new career as a graphic algorithm developer recently, I will continue working on the plugin after I tide over the hard time...

pucelle commented 5 years ago

Hi, garyking, I rechecked this ticket this morning, and I make sure this is a good idea and really useful, So I implement it soon.

Sorry I don't have much time to test it carefully and add a test case, please help to check it, Thanks.