Skip to content

Commit

Permalink
fix: 需要分号时打印语句错误
Browse files Browse the repository at this point in the history
Co-authored-by: ygqygq2 <[email protected]>
  • Loading branch information
ygqygq2 committed Feb 22, 2024
1 parent ba42b09 commit a4d8f9e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/debug-message/DebugMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a4d8f9e

Please sign in to comment.