File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -516,12 +516,12 @@ export function activate(context: ExtensionContext) {
516
516
statusIcon . show ( ) ;
517
517
languageClient . onReady ( ) . then ( ( ) => {
518
518
languageClient . onNotification ( '$cquery/progress' , ( args ) => {
519
- let indexRequestCount = args . indexRequestCount ;
520
- let doIdMapCount = args . doIdMapCount ;
521
- let loadPreviousIndexCount = args . loadPreviousIndexCount ;
522
- let onIdMappedCount = args . onIdMappedCount ;
523
- let onIndexedCount = args . onIndexedCount ;
524
- let activeThreads = args . activeThreads ;
519
+ let indexRequestCount = args . indexRequestCount || 0 ;
520
+ let doIdMapCount = args . doIdMapCount || 0 ;
521
+ let loadPreviousIndexCount = args . loadPreviousIndexCount || 0 ;
522
+ let onIdMappedCount = args . onIdMappedCount || 0 ;
523
+ let onIndexedCount = args . onIndexedCount || 0 ;
524
+ let activeThreads = args . activeThreads || 0 ;
525
525
let total = indexRequestCount + doIdMapCount +
526
526
loadPreviousIndexCount + onIdMappedCount + onIndexedCount +
527
527
activeThreads ;
You can’t perform that action at this time.
0 commit comments