Skip to content

Commit 47b97e2

Browse files
authored
Merge pull request #488 from KxSystems/ee-refresh
Data source refresh notification
2 parents 2280e5e + 0ced93b commit 47b97e2

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/services/dataSourceEditorProvider.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
CustomTextEditorProvider,
1717
Disposable,
1818
ExtensionContext,
19+
ProgressLocation,
1920
Range,
2021
TextDocument,
2122
Webview,
@@ -187,9 +188,18 @@ export class DataSourceEditorProvider implements CustomTextEditorProvider {
187188
offerConnectAction(selectedServer);
188189
break;
189190
}
190-
await connMngService.refreshGetMeta(selectedServer);
191-
this.cache.delete(selectedServer);
192-
updateWebview();
191+
await window.withProgress(
192+
{
193+
cancellable: false,
194+
location: ProgressLocation.Notification,
195+
title: "Refreshing meta data...",
196+
},
197+
async () => {
198+
await connMngService.refreshGetMeta(selectedServer);
199+
this.cache.delete(selectedServer);
200+
updateWebview();
201+
},
202+
);
193203
break;
194204
case DataSourceCommand.Run:
195205
await runDataSource(

0 commit comments

Comments
 (0)