The TFS plug-in already have some expression to detect changes from only some folders/files. It's great.
But we also don't need the files to be checkout/updated from the other folders we don't care about.
The issue is that we have a huge project structure with lot of related projects. In the root we have script that are commons and can be used to build the all solutions. Then we have 25 folders all representing sub projects. It's too slow to checkout/update all those extra folders. We need the files in the root and one or two of the folders.
So I believe this translate in TFS terms that you provide includes/excludes expression, then you use that to build the correct TFS workspace using the cloak feature.
Like: Root: pom.xml or build.gradle FolderProject1 pom.xml or build.gradle FolderProject pom.xml or build.gradle SubFolderProject pom.xml or build.gradle