import * as vscode from 'vscode' ; import { getCurrentThemeAndSticker } from './ThemeManager' ; class StatusBar implements vscode . Disposable { private _statusBarItem : vscode . StatusBarItem ; constructor ( ) { this . _statusBarItem = vscode . window . createStatusBarItem ( vscode . StatusBarAlignment . Right , Number . MIN_SAFE_INTEGER ) ; this . _statusBarItem . show ( ) ; } initialize ( ) { const { theme } = getCurrentThemeAndSticker ( ) ; this . setText ( theme . displayName ) ; } dispose ( ) { this . _statusBarItem . dispose ( ) ; } public setText ( text ) { this . _statusBarItem . text = `${ text } $(heart)` ; } } export const StatusBarComponent = new StatusBar ( ) ;