We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent9d0d610 commitf5c8b9fCopy full SHA for f5c8b9f
src/remote.ts
@@ -994,8 +994,15 @@ export class Remote {
994
995
constonChangeDisposable=agentWatcher.onChange(()=>{
996
if(agentWatcher.error){
997
-this.storage.output.warn(formatMetadataError(agentWatcher.error));
998
-statusBarItem.hide();
+consterrMessage=formatMetadataError(agentWatcher.error);
+this.storage.output.warn(errMessage);
999
+
1000
+statusBarItem.text="$(warning) Agent Status Unavailable";
1001
+statusBarItem.tooltip=errMessage;
1002
+statusBarItem.backgroundColor=newvscode.ThemeColor(
1003
+"statusBarItem.warningBackground",
1004
+);
1005
+statusBarItem.show();
1006
return;
1007
}
1008
@@ -1004,6 +1011,7 @@ export class Remote {
1011
statusBarItem.tooltip=agentWatcher.metadata
1012
.map((metadata)=>formatEventLabel(metadata))
1013
.join("\n");
1014
+statusBarItem.backgroundColor=undefined;
1015
statusBarItem.show();
1016
}else{
1009
1017
statusBarItem.hide();