Enhancements (#190)

* v2 tasks json. Closes  #179.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>

* Increase needed vscode version. Closes #181

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>

* Use upcoming version for the master branch.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>

* Fix minichangelog generation in build pipeline.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
pull/191/head
Jerome Luckenbach 2020-01-08 23:24:43 +01:00 committed by GitHub
parent 07ad877900
commit abe9c2c8b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 23 deletions

View File

@ -37,8 +37,8 @@ steps:
- bash: |
echo $(Build.SourceBranch) | sed "s|refs/[^/]*/||" > branch.txt
PACKAGE_VERSION=$(cat version.txt)
VERSION_REGEX="## $(echo $PACKAGE_VERSION | sed 's/\./\\./g')"
sed -n "/$VERSION_REGEX/,/## 1\..*/p" CHANGELOG.md | head -n -2 > minichangelog.txt
VERSION_REGEX="## \[$(echo $PACKAGE_VERSION | sed 's/\./\\./g')\]"
sed -n "/$VERSION_REGEX/,/## \[/p" CHANGELOG.md | head -n -2 > minichangelog.txt
displayName: Get branch and mini-changelog
# Choose files to publish

39
.vscode/tasks.json vendored
View File

@ -1,4 +1,4 @@
// Available variables which can be used inside of strings.
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
@ -8,23 +8,24 @@
// A task runner that calls a custom npm script that compiles the extension.
{
"version": "0.1.0",
"version": "2.0.0",
// we want to run npm
"command": "npm",
"tasks": [
{
"label": "Run npm",
"type": "shell",
"command": "npm",
"args": ["run", "compile", "--loglevel", "silent"], //custom script "compile" as defined in package.json
"presentation": {
"echo": false,
"reveal":"silent",
"focus": false,
"panel": "shared",
"clear": false
},
"isBackground": true, // tsc compiler is started in watching mode
"problemMatcher": ["$tsc-watch"]
}
// the command is a shell script
"isShellCommand": true,
// show the output window only if unrecognized errors occur.
"showOutput": "silent",
// we run the custom script "compile" as defined in package.json
"args": ["run", "compile", "--loglevel", "silent"],
// The tsc compiler is started in watching mode
"isBackground": true,
// use the standard tsc in watch mode problem matcher to find compile problems in the output.
"problemMatcher": "$tsc-watch"
}
]
}

View File

@ -2,7 +2,7 @@
"name": "openhab",
"displayName": "openHAB",
"description": "Robust tool for openHAB textual configurations. Includes code snippets, syntax highlighting, language server integration and more.",
"version": "0.6.0",
"version": "0.7.0",
"publisher": "openhab",
"icon": "openhab.png",
"repository": {
@ -11,7 +11,7 @@
},
"license": "SEE LICENSE IN LICENSE",
"engines": {
"vscode": "^1.30.0"
"vscode": "^1.37.0"
},
"categories": [
"Programming Languages",