Skip to content

Commit

Permalink
fix the message output
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen committed Apr 4, 2023
1 parent cb57778 commit e8d7532
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions plugins/vscode/yaml-readme/dist/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -43377,6 +43377,7 @@ function activate(context) {
kind: "suite",
data: task
}, function(err, response) {
console.log(err, response);
if (err !== void 0) {
apiConsole.appendLine(err);
} else {
Expand Down
2 changes: 1 addition & 1 deletion plugins/vscode/yaml-readme/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function activate(context) {
kind: "suite",
data: task
} , function(err, response) {
if (err !== undefined) {
if (err !== undefined && err !== null) {
apiConsole.appendLine(err);
} else {
apiConsole.appendLine(response.message);
Expand Down
4 changes: 2 additions & 2 deletions plugins/vscode/yaml-readme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "yaml-readme",
"displayName": "yaml-readme",
"description": "A helper to generate the READE file automatically.",
"version": "0.0.8",
"version": "0.0.9",
"repository": "https://github.com/linuxsuren/yaml-readme",
"engines": {
"vscode": "^1.68.0"
Expand Down Expand Up @@ -93,7 +93,7 @@
"clean": "rm -rf ./dist/* && rm *.vsix",
"package": "vsce package",
"vscode:prepublish": "npm run compile",
"bundle": "esbuild extension.js --bundle --outdir=dist --external:vscode --format=cjs --platform=node",
"bundle": "esbuild extension.js --bundle --outdir=dist --external:vscode --format=cjs --platform=node && cp server.proto dist",
"lint": "eslint .",
"pretest": "npm run lint",
"test": "node ./test/runTest.js",
Expand Down

0 comments on commit e8d7532

Please sign in to comment.