From 2f8322730a112b4559f06580b153af966db3aaf2 Mon Sep 17 00:00:00 2001 From: Daniel Rosengarten Date: Sun, 19 Nov 2023 23:48:22 +0100 Subject: [PATCH] [ide-vscode] Add instructions to tasks.json (#2126) * Update tasks.json for VS Code Add 2 tasks for Visual Studio Code IDE. Force code style update before compile. Signed-off-by: Daniel Rosengarten * Add a second update properties task Signed-off-by: Daniel Rosengarten * Update tasks.json Signed-off-by: Daniel Rosengarten --------- Signed-off-by: Daniel Rosengarten --- developers/ide/examples/vscode/tasks.json | 45 ++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/developers/ide/examples/vscode/tasks.json b/developers/ide/examples/vscode/tasks.json index f902f64aa1..c6ef2ad306 100644 --- a/developers/ide/examples/vscode/tasks.json +++ b/developers/ide/examples/vscode/tasks.json @@ -41,6 +41,9 @@ "clean", "install" ], + "dependsOn": [ + "mvn Spotless (Fix codestyle)" + ], "problemMatcher": [] }, { @@ -52,6 +55,9 @@ "install", "-DskipChecks" ], + "dependsOn": [ + "mvn Spotless (Fix codestyle)" + ], "problemMatcher": [] }, { @@ -64,6 +70,9 @@ "install", "-DskipChecks" ], + "dependsOn": [ + "mvn Spotless (Fix codestyle)" + ], "problemMatcher": [] }, { @@ -144,6 +153,40 @@ "panel": "new" }, "problemMatcher": [] + }, + { + "label": "mvn Spotless (Fix codestyle)", + "type": "shell", + "command": "mvn", + "args": [ + "spotless:apply" + ], + "problemMatcher": [] + + }, + { + "label": "mvn update properties (Default)", + "type": "shell", + "command": "mvn", + "args": [ + "i18n:generate-default-translations", + "-pl", + ":$env:binding" + ], + "problemMatcher": [] + + }, + { + "label": "mvn update properties (Default) [full plug-in name]", + "type": "shell", + "command": "mvn", + "args": [ + "mvn org.openhab.core.tools:i18n-maven-plugin:3.4.0:generate-default-translations", + "-pl", + ":$env:binding" + ], + "problemMatcher": [] + } ] -} +} \ No newline at end of file