Skip to content

Commit d81fa09

Browse files
Scott DoverScott Dover
authored andcommitted
fix: fix sas content showing up in server
Signed-off-by: Scott Dover <[email protected]>
1 parent 3500958 commit d81fa09

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

client/src/components/ContentNavigator/ContentDataProvider.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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,

client/src/components/ContentNavigator/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)