From cf8972fda66eb543882c1e6f932a63f1fe2b2774 Mon Sep 17 00:00:00 2001 From: Nicolas Berthier Date: Mon, 8 Apr 2024 14:00:18 +0200 Subject: [PATCH 1/2] Add build tasks in `build` group --- .../superbol_tasks.ml | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/vscode/superbol-vscode-platform/superbol_tasks.ml b/src/vscode/superbol-vscode-platform/superbol_tasks.ml index 4af1824d2..627dcf2b1 100644 --- a/src/vscode/superbol-vscode-platform/superbol_tasks.ml +++ b/src/vscode/superbol-vscode-platform/superbol_tasks.ml @@ -121,20 +121,24 @@ let cobc_execution ?config attributes = ~command:(`String cobc) ~args:(List.map (fun elt -> `String elt) args)) -let make_default_cobc_task = - Task.make - ~source:"SuperBOL" - ~scope:Workspace - ~problemMatchers:[ - "$gnucobol"; - "$gnucobol-warning"; - "$gnucobol-error"; - "$gnucobol-note"; - ] +let make_default_cobc_task ~name ~definition ~execution = + let task = + Task.make ~name ~definition ~execution () + ~source:"SuperBOL" + ~scope:Workspace + ~problemMatchers:[ + "$gnucobol"; + "$gnucobol-warning"; + "$gnucobol-error"; + "$gnucobol-note"; + ] + in + Task.set_group task TaskGroup.build; + task let cobc_build_task ~task ?config attributes = Promise.Option.return @@ - make_default_cobc_task () + make_default_cobc_task ~name:(Task.name task) ~definition:(Task.definition task) ~execution:(cobc_execution ?config attributes) @@ -142,7 +146,7 @@ let cobc_build_task ~task ?config attributes = let define_cobc_build_task ?config ~debug name = let map_attributes = List.map (fun (a, C (_, f, d)) -> a, f d) in let attributes = map_attributes @@ attributes_spec ~debug in - make_default_cobc_task () + make_default_cobc_task ~name ~definition:(TaskDefinition.create () ~type_ ~attributes) ~execution:(cobc_execution ?config attributes) From 5d4c905441e1cb815fbb34283a6ea4a4f07999b8 Mon Sep 17 00:00:00 2001 From: Nicolas Berthier Date: Mon, 8 Apr 2024 14:06:54 +0200 Subject: [PATCH 2/2] Synchronize `import/superbol-vscode-debug` --- import/superbol-vscode-debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/import/superbol-vscode-debug b/import/superbol-vscode-debug index 8bce5ed29..a1576ed68 160000 --- a/import/superbol-vscode-debug +++ b/import/superbol-vscode-debug @@ -1 +1 @@ -Subproject commit 8bce5ed295699b9e78f54695e671380529d021bf +Subproject commit a1576ed686ae6b594dac031f6a5793f51900ce21