File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -994,8 +994,15 @@ 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 . backgroundColor = new vscode . ThemeColor (
1003
+ "statusBarItem.warningBackground" ,
1004
+ ) ;
1005
+ statusBarItem . show ( ) ;
999
1006
return ;
1000
1007
}
1001
1008
@@ -1004,6 +1011,7 @@ export class Remote {
1004
1011
statusBarItem . tooltip = agentWatcher . metadata
1005
1012
. map ( ( metadata ) => formatEventLabel ( metadata ) )
1006
1013
. join ( "\n" ) ;
1014
+ statusBarItem . backgroundColor = undefined ;
1007
1015
statusBarItem . show ( ) ;
1008
1016
} else {
1009
1017
statusBarItem . hide ( ) ;
You can’t perform that action at this time.
0 commit comments