improved error feedback and fix completion issue
This commit is contained in:
@@ -78,11 +78,13 @@ export class StatusBarManager {
|
||||
if (count > 0) {
|
||||
this.errorItem.text = `$(warning) AD Errors (${count})`;
|
||||
this.errorItem.backgroundColor = new vscode.ThemeColor('statusBarItem.errorBackground');
|
||||
this.errorItem.tooltip = `${count} error(s) in AppDaemon log — click to view`;
|
||||
this.errorItem.tooltip = `${count} error(s) — click to show or clear`;
|
||||
this.errorItem.command = 'appdaemon.handleErrors';
|
||||
} else {
|
||||
this.errorItem.text = '$(check) AD Errors';
|
||||
this.errorItem.backgroundColor = undefined;
|
||||
this.errorItem.tooltip = 'No AppDaemon errors — click to view log';
|
||||
this.errorItem.command = 'appdaemon.showErrors';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user