diff --git a/src/services/dataSourceEditorProvider.ts b/src/services/dataSourceEditorProvider.ts index 34d88c6f..cd53f59d 100644 --- a/src/services/dataSourceEditorProvider.ts +++ b/src/services/dataSourceEditorProvider.ts @@ -16,6 +16,7 @@ import { CustomTextEditorProvider, Disposable, ExtensionContext, + ProgressLocation, Range, TextDocument, Webview, @@ -187,9 +188,18 @@ export class DataSourceEditorProvider implements CustomTextEditorProvider { offerConnectAction(selectedServer); break; } - await connMngService.refreshGetMeta(selectedServer); - this.cache.delete(selectedServer); - updateWebview(); + await window.withProgress( + { + cancellable: false, + location: ProgressLocation.Notification, + title: "Refreshing meta data...", + }, + async () => { + await connMngService.refreshGetMeta(selectedServer); + this.cache.delete(selectedServer); + updateWebview(); + }, + ); break; case DataSourceCommand.Run: await runDataSource(