Skip to content

Commit

Permalink
v1.3.2:
Browse files Browse the repository at this point in the history
- Fix command invocatoin.
- bump versions
  • Loading branch information
osesov committed Nov 17, 2020
1 parent b545dab commit be10e2b
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 32 deletions.
64 changes: 40 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "zmk",
"displayName": "zmk",
"description": "Zodiac Make",
"version": "1.3.1",
"version": "1.3.2",
"engines": {
"vscode": "^1.38.0"
},
Expand Down Expand Up @@ -111,12 +111,12 @@
"package": "npm i && vsce package"
},
"devDependencies": {
"typescript": "^3.3.1",
"vscode": "^1.1.36",
"vsce": "^1.66.0",
"tslint": "^5.12.1",
"@types/mocha": "^2.2.42",
"@types/node": "^10.12.21",
"@types/mocha": "^2.2.42"
"tslint": "^5.12.1",
"typescript": "^3.3.1",
"vsce": "^1.81.1",
"vscode": "^1.1.36"
},
"license": "0BSD"
}
7 changes: 5 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,15 @@ export function activate(context: vscode.ExtensionContext) {
commands.forEach( (elem) => {
let command = () => {
try {
elem.command();
let x = elem.command();
console.info(`Command [${elem.label}]: -> ${x}`);
return x;
}
catch(e) {
console.error(`[${elem.label}]: ${e}`);
console.error(`Command: [${elem.label}]: ${e}`);
let message = (e instanceof Error ? e.message : e.toString());
vscode.window.showErrorMessage(message);
throw e;
}
};

Expand Down

0 comments on commit be10e2b

Please sign in to comment.