Enable globs on tasks otherwise fallback to default - fixes #88106 (#141230)

* use glob on tasks otherwise fallback to default

* add support for test commands also

* try to find one globbed task otherwise fallback to defaults

* - get relativePath (but fallback to absolute if outside of workspace)
- bring back json schema

* Refactor and reduce duplicate code

* remove glob, make isDefault a string or boolean

* update taskConfig

* - rebase
- type updates
- splitPerGroupType should check explicitly for true on isDefault
- hygiene check

* Remove task glob from API

* Task group DTO updates

* Make sure globs run ahead of default task if there's multiple globs matching

* Style and name changes

* More naming and code re-use

* Glob doesn't work when only 1 glob match

Co-authored-by: Alex Ross <alros@microsoft.com>
This commit is contained in:
Jason Williams
2022-05-03 08:56:24 +01:00
committed by GitHub
parent 9807017327
commit e19f09713b
7 changed files with 136 additions and 91 deletions

View File

@@ -369,7 +369,7 @@ import { assertNoRpc } from '../utils';
problemMatcher: [],
group: {
kind: 'build',
isDefault: 'true'
isDefault: true
}
}
], ConfigurationTarget.Workspace);