-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve include/exclude search in workspace
Enhancements: * Search with 'Files to include' specifying a relative path e.g. './README.md' will only consider existing files from workspace roots e.g. '${ROOT1}/README.md', '${ROOT2}/README.md'. * 'Files to include' are limiting the search to specific folders e.g. './test' should not include '${ROOT}/dir/test'. * Include/Exclude strings (i.e. not resolving to relative paths) are converted to two globs in order to include results of a resulting file and include files under a resulting folder i.e. resolved globs are `**/string` and `**/string/*`. e.g. input file '.snaphot' shall include a file '.snapshot' or if it's a folder it should apply to all the files underneath it. * Absulte path(s) given as include patterns override the search in workspace to search under the given file/folder path(s). * Files opened in editor will search the contents in editor so the search will exclude these files when searching the file system. * Include / Exclude file strings starting with './' (linux) or '.\' (windows) will be applied as absolute patterns relative to the applicable search paths (even if they include glob patterns). Signed-off-by: Alvaro Sanchez-Leon <[email protected]> Co-authored-by: marechal-p <[email protected]>
- Loading branch information
1 parent
c86b82d
commit 871ec2e
Showing
3 changed files
with
404 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.