11import { Uri , Range , Diagnostic , Command } from 'vscode' ;
22import { NodeProvider } from './NodeProvider' ;
33import { 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
88interface 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