File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -994,16 +994,29 @@ export class Remote {
994994
995995 const onChangeDisposable = agentWatcher . onChange ( ( ) => {
996996 if ( agentWatcher . error ) {
997- this . storage . output . warn ( formatMetadataError ( agentWatcher . error ) ) ;
998- statusBarItem . hide ( ) ;
997+ const errMessage = formatMetadataError ( agentWatcher . error ) ;
998+ this . storage . output . warn ( errMessage ) ;
999+
1000+ statusBarItem . text = "$(warning) Agent Status Unavailable" ;
1001+ statusBarItem . tooltip = errMessage ;
1002+ statusBarItem . color = new vscode . ThemeColor (
1003+ "statusBarItem.warningForeground" ,
1004+ ) ;
1005+ statusBarItem . backgroundColor = new vscode . ThemeColor (
1006+ "statusBarItem.warningBackground" ,
1007+ ) ;
1008+ statusBarItem . show ( ) ;
9991009 return ;
10001010 }
10011011
10021012 if ( agentWatcher . metadata && agentWatcher . metadata . length > 0 ) {
1003- statusBarItem . text = getEventValue ( agentWatcher . metadata [ 0 ] ) ;
1013+ statusBarItem . text =
1014+ "$(dashboard) " + getEventValue ( agentWatcher . metadata [ 0 ] ) ;
10041015 statusBarItem . tooltip = agentWatcher . metadata
10051016 . map ( ( metadata ) => formatEventLabel ( metadata ) )
10061017 . join ( "\n" ) ;
1018+ statusBarItem . color = undefined ;
1019+ statusBarItem . backgroundColor = undefined ;
10071020 statusBarItem . show ( ) ;
10081021 } else {
10091022 statusBarItem . hide ( ) ;
You can’t perform that action at this time.
0 commit comments