Skip to content

Commit 002d052

Browse files
author
Arvid Paeglit
committed
Merge branch 'master' into big-refactoring-tsc
# Conflicts: # src/deepcode/view/IssueProvider.ts
2 parents a6a8806 + 053bb5d commit 002d052

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

src/deepcode/view/IssueProvider.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { Uri, Range, Diagnostic, Command } from 'vscode';
22
import { NodeProvider } from './NodeProvider';
33
import { Node, INodeIcon, NODE_ICONS } from './Node';
4-
import { getDeepCodeSeverity } from "../utils/analysisUtils";
5-
import { DEEPCODE_SEVERITIES } from "../constants/analysis";
6-
import { DEEPCODE_OPEN_ISSUE_COMMAND } from "../constants/commands";
4+
import { getDeepCodeSeverity } from '../utils/analysisUtils';
5+
import { DEEPCODE_SEVERITIES } from '../constants/analysis';
6+
import { DEEPCODE_OPEN_ISSUE_COMMAND } from '../constants/commands';
77

88
interface ISeverityCounts {
99
[severity: number]: number;
@@ -98,7 +98,6 @@ export class IssueProvider extends NodeProvider {
9898
text: filename,
9999
description: `${dir} - ${diagnostics.length} issue${diagnostics.length === 1 ? '' : 's'}`,
100100
icon: this.getSeverityIcon(fileSeverity),
101-
issue: { uri },
102101
children: issues,
103102
internal: {
104103
nIssues: diagnostics.length,
@@ -110,16 +109,15 @@ export class IssueProvider extends NodeProvider {
110109
review.sort(this.compareNodes);
111110
if (this.extension.runningAnalysis) {
112111
review.unshift(
113-
114112
new Node({
115-
text: this.extension.analysisStatus,
116-
description: this.extension.analysisProgress,
117-
}),
113+
text: this.extension.analysisStatus,
114+
description: this.extension.analysisProgress,
115+
}),
118116
);
119117
} else {
120118
review.unshift(
121119
new Node({
122-
text: `DeepCode found ${nIssues} issue${nIssues === 1 ? '' : 's'}`,
120+
text: `DeepCode found ${!nIssues ? 'no issue! ✅' : `${nIssues} issue${nIssues === 1 ? '' : 's'}`}`,
123121
}),
124122
);
125123
}

0 commit comments

Comments
 (0)