From 1b9056fffd697792dfbb1a86c2ccf887677ee2fe Mon Sep 17 00:00:00 2001 From: Junior Mayhe Date: Mon, 20 Feb 2023 19:33:00 +0000 Subject: [PATCH 1/2] fix: added spaces in statusbar --- .gitignore | 1 + src/extension.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 704ac03..e9a005b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ node_modules .vscode-test/ .VSCodeCounter/ *.vsix +yarn.lock \ No newline at end of file diff --git a/src/extension.ts b/src/extension.ts index 6c562af..f5dc0c4 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -269,7 +269,7 @@ class CodeCounterController { const result = editor.selections .map(s => lineCounter.count(doc.getText(s))) .reduce((prev, cur) => prev.add(cur), new Count()); - this.showStatusBar(`Selected Code:${result.code} Comment:${result.comment} Blank:${result.blank}`); + this.showStatusBar(`Selected Code: ${result.code} Comment: ${result.comment} Blank: ${result.blank}`); } else { this.showStatusBar(); } From 1fe23ebb5066ff82ade2864532a872f3c5c80484 Mon Sep 17 00:00:00 2001 From: Junior Mayhe Date: Mon, 20 Feb 2023 19:37:05 +0000 Subject: [PATCH 2/2] fix: added space to count lines of file --- src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index f5dc0c4..c6a8ee4 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -283,7 +283,7 @@ class CodeCounterController { const lineCounter = c.getCounter(doc.uri.fsPath, doc.languageId); if (lineCounter) { const result = lineCounter?.count(doc.getText()); - this.showStatusBar(`Code:${result.code} Comment:${result.comment} Blank:${result.blank}`); + this.showStatusBar(`Code: ${result.code} Comment: ${result.comment} Blank: ${result.blank}`); } else { this.showStatusBar(); }