diff --git a/extensions/vscode/src/views/homeView.ts b/extensions/vscode/src/views/homeView.ts index a196ea48c..29eef7a94 100644 --- a/extensions/vscode/src/views/homeView.ts +++ b/extensions/vscode/src/views/homeView.ts @@ -337,6 +337,12 @@ export class HomeViewProvider implements WebviewViewProvider, Disposable { console.error("homeView::updateFileList: No active configuration."); return; } + if (isConfigurationError(activeConfig)) { + console.error( + "homeView::updateFileList: Skipping - error in active configuration.", + ); + return; + } try { await showProgress("Updating File List", Views.HomeView, async () => { const api = await useApi(); @@ -958,6 +964,12 @@ export class HomeViewProvider implements WebviewViewProvider, Disposable { console.error("homeView::addSecret: No active configuration."); return; } + if (isConfigurationError(activeConfig)) { + console.error( + "homeView::addSecret: Unable to add secret into a configuration with error.", + ); + return; + } const name = await this.inputSecretName(); if (name === undefined) { @@ -988,6 +1000,12 @@ export class HomeViewProvider implements WebviewViewProvider, Disposable { console.error("homeView::removeSecret: No active configuration."); return; } + if (isConfigurationError(activeConfig)) { + console.error( + "homeView::removeSecret: Unable to remove secret from a configuration with error.", + ); + return; + } try { await showProgress("Removing Secret", Views.HomeView, async () => { @@ -1461,7 +1479,7 @@ export class HomeViewProvider implements WebviewViewProvider, Disposable { public sendRefreshedFilesLists = async () => { const activeConfig = await this.state.getSelectedConfiguration(); - if (activeConfig) { + if (activeConfig && !isConfigurationError(activeConfig)) { try { const response = await showProgress( "Refreshing Files", diff --git a/extensions/vscode/webviews/homeView/src/App.vue b/extensions/vscode/webviews/homeView/src/App.vue index d24bf1313..a046a88ab 100644 --- a/extensions/vscode/webviews/homeView/src/App.vue +++ b/extensions/vscode/webviews/homeView/src/App.vue @@ -4,7 +4,12 @@
-