File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
client/src/components/ContentNavigator Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ class ContentDataProvider
7171 private _onDidChange : EventEmitter < Uri > ;
7272 private _treeView : TreeView < ContentItem > ;
7373 private _dropEditProvider : Disposable ;
74- private readonly model : ContentModel ;
74+ private model : ContentModel ;
7575 private extensionUri : Uri ;
7676 private mimeType : string ;
7777
@@ -117,6 +117,10 @@ class ContentDataProvider
117117 } ) ;
118118 }
119119
120+ public useModel ( contentModel : ContentModel ) {
121+ this . model = contentModel ;
122+ }
123+
120124 public async handleDrop (
121125 target : ContentItem ,
122126 sources : DataTransfer ,
Original file line number Diff line number Diff line change @@ -386,6 +386,9 @@ class ContentNavigator implements SubscriptionProvider {
386386 if ( event . affectsConfiguration ( "SAS.connectionProfiles" ) ) {
387387 const endpoint = this . viyaEndpoint ( ) ;
388388 this . collapseAllContent ( ) ;
389+ this . contentDataProvider . useModel (
390+ new ContentModel ( this . contentAdapterForConnectionType ( ) ) ,
391+ ) ;
389392 if ( endpoint ) {
390393 await this . contentDataProvider . connect ( endpoint ) ;
391394 } else {
You can’t perform that action at this time.
0 commit comments