Vscode: Exclude folders from automatic task detection

Created on 7 Oct 2019  路  7Comments  路  Source: microsoft/vscode

I'd love it if we could have a setting like tasks.autoDetection.exclude: ["**/.history/**"] where we could insert directories to exclude automatic task detection from.

I'm using the local history extension until VS Code implements that functionality natively and my (Shift+Cmd+P) > Tasks > Configure Tasks and (Shift+Cmd+P) > Tasks > Run Tasks gets polluted by all the *.json files inside the .history directory.

feature-request tasks

Most helpful comment

I second this. I have a large (several GBs) folder tree inside my project and since adding it, task auto-detection takes a few seconds (when it used to be near-instant).

May I suggest that this at least honors the search.exclude setting?

Any other workaround for this? cc @pierrci

All 7 comments

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

It's a different issue from the one suggested.

Does the "files.exclude" setting solve this?

Yes, but that's not a good solution because I want to be able to explore the .history folder.

@alexr00,
I was about to submit an issue just like this...

In my case i have a subdirectory templates with template files that get processed by sed, to replace specific strings, to auto generate files in other places.
It's rather weird to be restricted to not use any file extension in this sub-directory just so VSC does not auto-fill it's tasks list...
It is also not an option to use files.exclude as the files inside are meant to be edited from within VSC when needed by the coder(s).
This functionality should be available in the *.code-workspace file to be useful for code-sharing via a repo :wink:

I second this. I have a large (several GBs) folder tree inside my project and since adding it, task auto-detection takes a few seconds (when it used to be near-instant).

May I suggest that this at least honors the search.exclude setting?

Any other workaround for this? cc @pierrci


This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

borekb picture borekb  路  3Comments

chrisdias picture chrisdias  路  3Comments

lukehoban picture lukehoban  路  3Comments

philipgiuliani picture philipgiuliani  路  3Comments

trstringer picture trstringer  路  3Comments