improved error feedback and fix completion issue
This commit is contained in:
1 parent
a7846b54e5
commit
8454cc95f5
5 files changed
+26
-4
No files matched your search
@@ -285,7 +285,18 @@ export async function activate(context: vscode.ExtensionContext) {
|
||||
vscode.commands.registerCommand('appdaemon.showErrors', () => {
|
||||
errorViewer.show();
|
||||
}),
|
||||
|
||||
vscode.commands.registerCommand('appdaemon.handleErrors', async () => {
|
||||
const pick = await vscode.window.showErrorMessage(
|
||||
'AppDaemon errors detected',
|
||||
'Show log',
|
||||
'Clear'
|
||||
);
|
||||
if (pick === 'Show log') {
|
||||
errorViewer.show();
|
||||
} else if (pick === 'Clear') {
|
||||
errorViewer.clearDiagnostics();
|
||||
}
|
||||
}),
|
||||
vscode.commands.registerCommand('appdaemon.refreshEntities', async () => {
|
||||
const entities = await haClient.fetchEntities();
|
||||
vscode.window.showInformationMessage(`AppDaemon: ${entities.length} entities loaded`);
|
||||
|
||||
Reference in new issue
Block a user