function handler(params) {
        if (findReferencesStatusBarItem === undefined) {
            findReferencesStatusBarItem = vscode_1.window.createStatusBarItem(vscode_1.StatusBarAlignment.Left);
            findReferencesStatusBarItem.show();
        }
        if (params.numberOfProcessedSpecs === params.totalNumberOfSpecs) {
            if (params.numberOfProcessedSpecs === 0) {
                // the operation is cancelled.
                findReferencesStatusBarItem.text = `Find references is cancelled.`;
            }
            else {
                findReferencesStatusBarItem.text = `Found ${params.numberOfReferences} references in ${params.totalNumberOfSpecs} files by ${params.pendingDurationInMs}ms.`;
            }
            // Show that the operations is completed and hide the status bar after some time.
            setTimeout(() => {
                findReferencesStatusBarItem.hide();
                findReferencesStatusBarItem.dispose();
                findReferencesStatusBarItem = undefined;
            }, 5000);
        }
        else {
            findReferencesStatusBarItem.text = `Found ${params.numberOfReferences} references in ${params.numberOfProcessedSpecs}/${params.totalNumberOfSpecs} files by ${params.pendingDurationInMs}ms.`;
        }
    }
/**
     * The handler called by the JSON RPC layer to process the notification.
     */
The handler called by the JSON RPC layer to process the notification.
The handler called by the JSON RPC layer to process the notification .
function handler(params) {
        if (findReferencesStatusBarItem === undefined) {
            findReferencesStatusBarItem = vscode_1.window.createStatusBarItem(vscode_1.StatusBarAlignment.Left);
            findReferencesStatusBarItem.show();
        }
        if (params.numberOfProcessedSpecs === params.totalNumberOfSpecs) {
            if (params.numberOfProcessedSpecs === 0) {
                findReferencesStatusBarItem.text = `Find references is cancelled.`;
            }
            else {
                findReferencesStatusBarItem.text = `Found ${params.numberOfReferences} references in ${params.totalNumberOfSpecs} files by ${params.pendingDurationInMs}ms.`;
            }
            setTimeout(() => {
                findReferencesStatusBarItem.hide();
                findReferencesStatusBarItem.dispose();
                findReferencesStatusBarItem = undefined;
            }, 5000);
        }
        else {
            findReferencesStatusBarItem.text = `Found ${params.numberOfReferences} references in ${params.numberOfProcessedSpecs}/${params.totalNumberOfSpecs} files by ${params.pendingDurationInMs}ms.`;
        }
    }
function handler ( params ) { if ( findReferencesStatusBarItem === undefined ) { findReferencesStatusBarItem = vscode_1 . window . createStatusBarItem ( vscode_1 . StatusBarAlignment . Left ) ; findReferencesStatusBarItem . show ( ) ; } if ( params . numberOfProcessedSpecs === params . totalNumberOfSpecs ) { if ( params . numberOfProcessedSpecs === 0 ) { findReferencesStatusBarItem . text = ` ` ; } else { findReferencesStatusBarItem . text = ` ${ params . numberOfReferences } ${ params . totalNumberOfSpecs } ${ params . pendingDurationInMs } ` ; } setTimeout ( ( ) => { findReferencesStatusBarItem . hide ( ) ; findReferencesStatusBarItem . dispose ( ) ; findReferencesStatusBarItem = undefined ; } , 5000 ) ; } else { findReferencesStatusBarItem . text = ` ${ params . numberOfReferences } ${ params . numberOfProcessedSpecs } ${ params . totalNumberOfSpecs } ${ params . pendingDurationInMs } ` ; } }
The handler called by the JSON RPC layer to process the notification.
The handler called by the JSON RPC layer to process the notification .
// the operation is cancelled.
 // Show that the operations is completed and hide the status bar after some time.
