From c68ba3479dc6e09333c8e0d5aad8004177d68a44 Mon Sep 17 00:00:00 2001 From: ygqygq2 Date: Tue, 23 Apr 2024 01:07:45 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: ygqygq2 --- CHANGELOG.md | 8 +++++++- package.json | 2 +- src/test/unit/debug-message/GeneralDebugMessage.spec.ts | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 329aa0a..0738729 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,13 @@ All notable changes to the "turbo-console-log" extension will be documented in this file. -# [3.0.6] +# [3.0.7] + +## 功能优化 + +- refactor: 优化打印语句 + +# [3.0.7] ## 新增功能 🌱 diff --git a/package.json b/package.json index 205c385..574c59c 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.7", + "version": "3.0.8", "publisher": "ygqygq2", "engines": { "vscode": "^1.88.0" diff --git a/src/test/unit/debug-message/GeneralDebugMessage.spec.ts b/src/test/unit/debug-message/GeneralDebugMessage.spec.ts index 0259ce2..24ba589 100644 --- a/src/test/unit/debug-message/GeneralDebugMessage.spec.ts +++ b/src/test/unit/debug-message/GeneralDebugMessage.spec.ts @@ -21,6 +21,7 @@ describe('DebugMessage', () => { getSingleLineCommentSymbol: vi.fn().mockReturnValue('//'), getPrintString: vi.fn().mockReturnValue('console.log'), variableToString: vi.fn().mockReturnValue('value'), + getExtraSpace: vi.fn().mockReturnValue(''), getConcatenatedString: vi.fn().mockReturnValue(', '), getPrintStatement: vi.fn().mockReturnValue(`console.log('🚀 ~ test.js: 6 ~ value:', value);`), getLogFunction: vi.fn().mockReturnValue('log'),