import { window , StatusBarItem , StatusBarAlignment , ExtensionContext } from 'vscode' ; export default class EchartsStatusBarItem { #statusBarItem : StatusBarItem ; constructor ( ) { this . #statusBarItem = window . createStatusBarItem ( StatusBarAlignment . Right , 100 ) ; } changeStatus ( ) { this . #statusBarItem . text = 'Echarts' ; this . #statusBarItem . command = 'echarts.deactivate' ; this . #statusBarItem . color = '#fff' ; } addInContext ( context ) { context . subscriptions . push ( this . #statusBarItem ) ; } show ( ) { this . #statusBarItem . show ( ) ; } hide ( ) { this . #statusBarItem . hide ( ) ; } }