license import * as vscode from 'coc.nvim' ; const EMPTY_DISPOSABLE = vscode . Disposable . create ( ( ) => { } ) ; export class ProgressReporter implements vscode . Progress < unknown > { private lastMessage : vscode . Disposable = EMPTY_DISPOSABLE ; report ( value ) { this . lastMessage . dispose ( ) ; const lastMessage = vscode . window . createStatusBarItem ( 0 , { progress : true } ) ; lastMessage . text = `Angular: ${ value }` ; this . lastMessage = lastMessage ; } finish ( ) { this . lastMessage . dispose ( ) ; this . lastMessage = EMPTY_DISPOSABLE ; } }