Skip to content

Commit e8d7532

Browse files
committed
fix the message output
1 parent cb57778 commit e8d7532

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

plugins/vscode/yaml-readme/dist/extension.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43377,6 +43377,7 @@ function activate(context) {
4337743377
kind: "suite",
4337843378
data: task
4337943379
}, function(err, response) {
43380+
console.log(err, response);
4338043381
if (err !== void 0) {
4338143382
apiConsole.appendLine(err);
4338243383
} else {

plugins/vscode/yaml-readme/extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function activate(context) {
9191
kind: "suite",
9292
data: task
9393
} , function(err, response) {
94-
if (err !== undefined) {
94+
if (err !== undefined && err !== null) {
9595
apiConsole.appendLine(err);
9696
} else {
9797
apiConsole.appendLine(response.message);

plugins/vscode/yaml-readme/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "yaml-readme",
33
"displayName": "yaml-readme",
44
"description": "A helper to generate the READE file automatically.",
5-
"version": "0.0.8",
5+
"version": "0.0.9",
66
"repository": "https://github.com/linuxsuren/yaml-readme",
77
"engines": {
88
"vscode": "^1.68.0"
@@ -93,7 +93,7 @@
9393
"clean": "rm -rf ./dist/* && rm *.vsix",
9494
"package": "vsce package",
9595
"vscode:prepublish": "npm run compile",
96-
"bundle": "esbuild extension.js --bundle --outdir=dist --external:vscode --format=cjs --platform=node",
96+
"bundle": "esbuild extension.js --bundle --outdir=dist --external:vscode --format=cjs --platform=node && cp server.proto dist",
9797
"lint": "eslint .",
9898
"pretest": "npm run lint",
9999
"test": "node ./test/runTest.js",

0 commit comments

Comments
 (0)