Skip to content

Commit 4039ea8

Browse files
committed
Revert "fixes microsoft#71163"
This reverts commit bb35a1d.
1 parent 8b01096 commit 4039ea8

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/vs/workbench/contrib/files/common/explorerService.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ export class ExplorerService implements IExplorerService {
4040
private editable: { stat: ExplorerItem, data: IEditableData } | undefined;
4141
private _sortOrder: SortOrder;
4242
private cutItems: ExplorerItem[] | undefined;
43-
private fileSystemProviderSchemes = new Set<string>();
4443

4544
constructor(
4645
@IFileService private fileService: IFileService,
@@ -99,14 +98,7 @@ export class ExplorerService implements IExplorerService {
9998
this.disposables.push(this.fileService.onAfterOperation(e => this.onFileOperation(e)));
10099
this.disposables.push(this.fileService.onFileChanges(e => this.onFileChanges(e)));
101100
this.disposables.push(this.configurationService.onDidChangeConfiguration(e => this.onConfigurationUpdated(this.configurationService.getValue<IFilesConfiguration>())));
102-
this.disposables.push(this.fileService.onDidChangeFileSystemProviderRegistrations(e => {
103-
if (e.added && this.fileSystemProviderSchemes.has(e.scheme)) {
104-
// A file system provider got re-registered, we should update all file stats since they might change (got read-only)
105-
this._onDidChangeItem.fire(undefined);
106-
} else {
107-
this.fileSystemProviderSchemes.add(e.scheme);
108-
}
109-
}));
101+
this.disposables.push(this.fileService.onDidChangeFileSystemProviderRegistrations(() => this._onDidChangeItem.fire(undefined)));
110102
this.disposables.push(model.onDidChangeRoots(() => this._onDidChangeRoots.fire()));
111103

112104
return model;

0 commit comments

Comments
 (0)