Skip to content

Commit 2217d2f

Browse files
committed
fix groupBy
1 parent 4740a00 commit 2217d2f

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 0.3.4
4+
5+
- Bugfix: Fix references report groupBy.
6+
37
## 0.3.3
48

59
- New Scope Filters: Filters starting with "!" define the elements to display, excluding the rest.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "code-auditor",
33
"displayName": "CodeAuditor",
44
"description": "Code Auditor Notebook",
5-
"version": "0.3.3",
5+
"version": "0.3.4",
66
"publisher": "red4sec",
77
"icon": "resources/code-auditor.png",
88
"readme": "README.md",

src/report.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export async function generateReferences(out: vscode.OutputChannel) {
4646

4747
if (groupOption.toLocaleLowerCase() === "yes") {
4848
const inputGroup = await vscode.window.showInputBox({
49-
value: groupBy === 0 ? "3" : groupBy.toString(),
49+
value: isNaN(groupBy) || groupBy === 0 ? "3" : groupBy.toString(),
5050
prompt: "Group by first # words",
5151
placeHolder: "number between 1 and 10",
5252
ignoreFocusOut: true,

0 commit comments

Comments
 (0)