Skip to content

Commit

Permalink
[ide-vscode] Add instructions to tasks.json (#2126)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
Rosen01 authored Nov 19, 2023
1 parent 12677ea commit 2f83227
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion developers/ide/examples/vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
"clean",
"install"
],
"dependsOn": [
"mvn Spotless (Fix codestyle)"
],
"problemMatcher": []
},
{
Expand All @@ -52,6 +55,9 @@
"install",
"-DskipChecks"
],
"dependsOn": [
"mvn Spotless (Fix codestyle)"
],
"problemMatcher": []
},
{
Expand All @@ -64,6 +70,9 @@
"install",
"-DskipChecks"
],
"dependsOn": [
"mvn Spotless (Fix codestyle)"
],
"problemMatcher": []
},
{
Expand Down Expand Up @@ -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": []

}
]
}
}

0 comments on commit 2f83227

Please sign in to comment.