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 {
994
994
995
995
const onChangeDisposable = agentWatcher . onChange ( ( ) => {
996
996
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 ( ) ;
999
1009
return ;
1000
1010
}
1001
1011
1002
1012
if ( agentWatcher . metadata && agentWatcher . metadata . length > 0 ) {
1003
- statusBarItem . text = getEventValue ( agentWatcher . metadata [ 0 ] ) ;
1013
+ statusBarItem . text =
1014
+ "$(dashboard) " + getEventValue ( agentWatcher . metadata [ 0 ] ) ;
1004
1015
statusBarItem . tooltip = agentWatcher . metadata
1005
1016
. map ( ( metadata ) => formatEventLabel ( metadata ) )
1006
1017
. join ( "\n" ) ;
1018
+ statusBarItem . color = undefined ;
1019
+ statusBarItem . backgroundColor = undefined ;
1007
1020
statusBarItem . show ( ) ;
1008
1021
} else {
1009
1022
statusBarItem . hide ( ) ;
You can’t perform that action at this time.
0 commit comments