From a4d8f9edab5cf1c7aac58be4f2e5a53be45c5aff Mon Sep 17 00:00:00 2001 From: ygqygq2 Date: Thu, 22 Feb 2024 23:24:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=9C=80=E8=A6=81=E5=88=86=E5=8F=B7?= =?UTF-8?q?=E6=97=B6=E6=89=93=E5=8D=B0=E8=AF=AD=E5=8F=A5=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: ygqygq2 --- .github/workflows/publish.yml | 2 +- CHANGELOG.md | 4 ++++ package.json | 2 +- src/debug-message/DebugMessage.ts | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index df5cad3..40fc771 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,7 +36,7 @@ jobs: # files: '*.vsix' - run: | # 使用sed命令提取最新的版本记录 - cat CHANGELOG.md | awk '/^## \[/ {if (flag) exit; flag=1} flag {print}' > body.md + cat CHANGELOG.md | awk '/^# \[/ {if (flag) exit; flag=1} flag {print}' > body.md - name: Publish release uses: ncipollo/release-action@v1 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index 98fac2b..f41961f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to the "turbo-console-log" extension will be documented in this file. +# [3.0.4] +## 问题修复 🐛 +* fix: 需要分号时打印语句错误 + # [3.0.3] ## 问题修复 🐛 * fix: python、go 打印字符错误 [#2](https://github.com/ygqygq2/turbo-console-log/issues/2) diff --git a/package.json b/package.json index aee6214..4e17841 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "turbo-print-log", "displayName": "Turbo Console Log for more language", "description": "选中变量,根据不同语言增加一行变量打印日志", - "version": "3.0.3", + "version": "3.0.4", "publisher": "ygqygq2", "engines": { "vscode": "^1.85.0" diff --git a/src/debug-message/DebugMessage.ts b/src/debug-message/DebugMessage.ts index 2b6b626..6aa7577 100644 --- a/src/debug-message/DebugMessage.ts +++ b/src/debug-message/DebugMessage.ts @@ -143,7 +143,7 @@ export class GeneralDebugMessage extends DebugMessage { : '' }${selectedVar}${logMessageSuffix}${quote}${this.languageProcessor.getConcatenatedString()}${this.languageProcessor.variableToString(selectedVar)}`; if (!logFunctionByLanguageId) { - return this.languageProcessor.getPrintStatement(content, semicolon); + return this.languageProcessor.getPrintStatement(content, '', semicolon); } return this.languageProcessor.getPrintStatement(content, logFunctionByLanguageId, semicolon); }