license import * as vscode from 'vscode' ; const EMPTY_DISPOSABLE = vscode . Disposable . from ( ) ; export class ProgressReporter implements vscode . Progress < unknown > { private lastMessage : vscode . Disposable = EMPTY_DISPOSABLE ; report ( value ) { this . lastMessage . dispose ( ) ; this . lastMessage = vscode . window . setStatusBarMessage ( `$(sync~spin) Angular: ${ value }` ) ; } finish ( ) { this . lastMessage . dispose ( ) ; this . lastMessage = EMPTY_DISPOSABLE ; } }