Commit Graph

39 Commits

Author SHA1 Message Date
Jason Williams
e19f09713b 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>
2022-05-03 09:56:24 +02:00
Johannes Rieken
4a130c40ed enable @typescript-eslint/member-delimiter-style, https://github.com/microsoft/vscode/issues/140391 2022-02-02 14:35:33 +01:00
Alex Dima
e2541e9263 Move extHostCustomers.ts to workbench/services (#141003) 2022-01-31 19:57:21 +01:00
Alex Ross
0600ecc75b Fix problem location URI
Fixes #136588
2021-11-08 14:06:25 +01:00
Alex Ross
3d5b13265d Re-add task default API with fixes (#129397)
Part of #79188
2021-07-26 15:30:46 +02:00
Daniel Imms
5d95c01ec1 Remove getDefaultShellAndArgs from tasks
Fixes #123732
2021-05-13 06:36:08 -07:00
Alex Ross
d05d8ca4c2 Adopt async configuration resolver in Tasks
Part of #108804
2021-04-01 11:00:32 +02:00
Alex Ross
aaf73920ae Ensure task executions get cleaned up
Fixes #112247
2020-12-16 12:02:05 +01:00
David Sanders
76a8ea640e Add undefined to TaskProcessEndedDTO.exitCode (#110508) 2020-11-13 10:26:02 +01:00
Alex Ross
0eda23e112 Fix tasks when one of the exthosts is webworker 2020-10-23 10:42:35 +02:00
Alex Ross
640caaef05 Finalize task custom execution variable resolving
Fixes #81007
2020-08-20 13:49:20 +02:00
Alex Ross
73d583f759 Move task definition variable resolving to be early
Part of #81007
2020-08-20 13:34:09 +02:00
Alex Ross
8418e06a5b Resolve customExecution task definition before going to exthost
Part of #81007
2020-08-14 16:31:44 +02:00
Alex Ross
52e38713f2 Allow workspace tasks to be executed through API
Fixes #104408
2020-08-12 14:46:45 +02:00
Alex Ross
76b7d04718 Change how supported task executions are set
Fixes #103039
2020-07-23 11:19:37 +02:00
Alex Ross
9c4ebe2286 Fix escape from command variable in remote tasks
Fixes #102931
2020-07-23 10:31:49 +02:00
Alex Ross
2d7ae4a7d9 Change where task execution context is set 2020-07-20 13:11:56 +02:00
Alex Ross
aed6bd7e2a Move findExecutable to extension host
Part of #101073
2020-07-13 14:25:59 +02:00
Alex Ross
f577e411dd Remove some uses of deprecated items from es6.code-search 2020-07-10 16:15:44 +02:00
Alex Ross
00ebd1d85f Ensure tasks are resolved when run from extension host
Related to #101884
2020-07-08 10:17:13 +02:00
Alex Ross
daa72ed393 Fix task id for custom execution tasks
Fixes #101412
2020-07-01 14:14:57 +02:00
Alex Ross
40bda94ebc Custom executions get lost during fetchTasks
Fixes #100577
2020-06-22 18:36:32 +02:00
Alex Ross
1abf21d3d8 Explicitly set task execution way before running task
Part of #100361
2020-06-17 13:39:02 +02:00
Alex Ross
d128b7c139 Resolve executeTask with execution earlier
Part of #100361
2020-06-17 11:15:58 +02:00
Alex Ross
4a8dc15b95 Enable inputs in user tasks
Fixes #91660
2020-03-06 11:59:43 +01:00
Alex Ross
2c1ad8e921 Fix task user task exeuction through AP.
Fixes #90820
2020-02-21 10:58:54 +01:00
Matt Bierner
af9dddd0fc Require second parameter for Map.set
Converts cover the was relying on the old signature to either use delete or have the correct types
2020-01-06 11:41:38 -08:00
Alex Ross
21ca27da48 strictFunctionTypes for mainThreadTask and extHostTreeViews
Part of #81574
2019-12-17 09:52:32 +00:00
Alex Ross
87998af618 Add task detail property and adopt in npm extension
Fixes #69785
2019-10-22 15:56:21 +02:00
Alex Ross
e1a254469c Use real task definition in fetchTasks
Fixes #81439
2019-10-18 16:45:04 +02:00
Alex Ross
dc4b1c231c Rename CustomExecution2 to CustomExecution
Part of #80375
2019-10-11 14:43:23 +02:00
Alex Ross
2d96b9b616 Fix global tasks again
Fixes https://github.com/microsoft/vscode/issues/78817
2019-10-07 12:41:19 +02:00
Alex Ross
1c01ce84b5 Refactor extHostTask (#80970)
so that most of it is in common
2019-09-16 12:09:14 +02:00
Alex Ross
ca4c1bf7a0 Go to ext host for system default shell and args for tasks
Fixes https://github.com/microsoft/vscode-remote-release/issues/1203
2019-09-05 14:59:08 +02:00
Alex Ross
a98faa4454 Remove CustomExecution
Fixes #78540
2019-08-06 13:48:37 +02:00
Alex Ross
780a5085d7 Strict init for tasks, file picker, and custom view
Part of #78168
2019-08-05 14:38:04 +02:00
Alex Ross
e84fc7021b Adopt TerminalVirtualProcess for Custom task execution (#76852)
* Adopt TerminalVirtualProcess for Custom task execution

* Update Custom task execution API to return TerminalVirtualProcess in callback

This also required the addtion of a start on the virtual terminal process

* Clarify start API

Fixes #76492
2019-07-10 09:31:40 +02:00
Joel Day
b6089b1db5 Adding support for TaskProvider.resolveTask (#71027)
* Adding support for TaskProvider.resolveTask.

* Reorganize task grouping and resolution async code for readability.

* Made small changes and implmented resolveTask for gulp
2019-07-03 15:47:37 +02:00
Benjamin Pasero
72a0f77eb5 move main thread task to browser (#70319) 2019-03-22 08:25:03 +01:00