提交 ec3d8181 编写于 作者: I isidor

explorer: roots forget children on new file system provider registration

#75720
上级 2955dbfa
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册