File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments