Skip to content

Commit

Permalink
explorer: roots forget children on new file system provider registration
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Jun 21, 2019
1 parent 2955dbf commit ec3d818
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vs/workbench/contrib/files/common/explorerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export class ExplorerService implements IExplorerService {
this.disposables.push(this.fileService.onDidChangeFileSystemProviderRegistrations(e => {
if (e.added && this.fileSystemProviderSchemes.has(e.scheme)) {
// A file system provider got re-registered, we should update all file stats since they might change (got read-only)
this.model.roots.forEach(r => r.forgetChildren());
this._onDidChangeItem.fire({ recursive: true });
} else {
this.fileSystemProviderSchemes.add(e.scheme);
Expand Down

0 comments on commit ec3d818

Please sign in to comment.