Skip to content

Commit

Permalink
Merge pull request #84 from juniormayhe/master
Browse files Browse the repository at this point in the history
Fix: added spaces in statusbar
  • Loading branch information
uctakeoff authored Feb 28, 2023
2 parents 264783d + 1fe23eb commit 20166f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
.vscode-test/
.VSCodeCounter/
*.vsix
yarn.lock
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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();
}
Expand Down

0 comments on commit 20166f3

Please sign in to comment.