ryanluker / vscode-coverage-gutters

Display test coverage generated by lcov and xml - works with many languages
https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters
MIT License
460 stars 88 forks source link

Is it possible to ignore specific folders that are under lower levels #375

Closed aparlak88 closed 1 year ago

aparlak88 commented 2 years ago

Hello,

I would like to exclude EF migrations classes from the extension.

I saw in the settings some folders pre-ignored already.

/{node_modules,venv,.venv,vendor}/

How do I extend this if my folder is under /XX/XX/Migrations?

ryanluker commented 2 years ago

Hello @aparlak88, thanks for the ticket. You should be able to add the folder name you want to ignore to the list present.

        "coverage-gutters.ignoredPathGlobs": {
          "type": "string",
          "default": "**/{node_modules,venv,.venv,vendor,Migrations}/**",
          "description": "paths that will be ignored by the extension"
        },

These paths ignores are globs and will work with the usual style **/foldername/filename type structure.

** If a "globstar" is alone in a path portion, then it matches zero or more directories and subdirectories searching for matches. It does not crawl symlinked directories.

https://github.com/isaacs/node-glob#glob-primer

ryanluker commented 1 year ago

closing this ticket but it can be reopened if questions remain.