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

Feature request - Nested .gitignore #7

Closed FDiskas closed 5 years ago

FDiskas commented 5 years ago

This solution could help you with that https://www.npmjs.com/package/ignore-walk

FDiskas commented 5 years ago
const walk = require('ignore-walk')

const result = walk.sync({ ignoreFiles: [ '.gitignore', '.npmignore' ] })
console.log(result);
FDiskas commented 5 years ago

It returns only not ignored files

pucelle commented 5 years ago

Thanks, I will research and test it in one or two days.

pucelle commented 5 years ago

Version 1.4.0 published, it should support nested .gitignore.

FDiskas commented 5 years ago

with 74 additions and 127 deletions. Nice

pucelle commented 5 years ago

😄

pucelle commented 5 years ago

Hi, FDiskas, I've just made some changes and release 1.8.0, now will not ignore files from .npmignore by default.

So if you find files listed in .npmignore are included, change configuration will make it work again.