[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 <github@praetorians.be>

* Add a second update properties task

Signed-off-by: Daniel Rosengarten <github@praetorians.be>

* Update tasks.json

Signed-off-by: Daniel Rosengarten <github@praetorians.be>

---------

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
pull/2141/head
Daniel Rosengarten 2023-11-19 23:48:22 +01:00 committed by GitHub
parent 12677eaea8
commit 2f8322730a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 44 additions and 1 deletions

View File

@ -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": []
}
]
}
}