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