import { StatusBarAlignment , StatusBarItem , window } from 'vscode' ; export enum LanguageServerStatus { Initializing = 'sync~spin' , Initialized = 'zap' , Running = 'check' , Analyzing = 'sync~spin' , Closing = 'issues' , Closed = 'error' , Exited = 'error' } export class StatusBar { private statusBarItem : StatusBarItem ; constructor ( ) { this . statusBarItem = window . createStatusBarItem ( 'psalm.status' , StatusBarAlignment . Left , 1 ) ; this . statusBarItem . name = 'Psalm' ; this . statusBarItem . tooltip = 'Psalm Language Server' ; this . statusBarItem . hide ( ) ; } param icon public update ( result , text ) { this . statusBarItem . text = `$(${ result . toString ( ) }) Psalm: ${ text }` ; this . show ( ) ; } public show ( ) { this . statusBarItem . show ( ) ; } public hide ( ) { this . statusBarItem . hide ( ) ; } }