提交 e6c682e8 编写于 作者: I isidor

refresh the proper item (parent) when item resolved

fixes #67733
上级 98e5b5c0
......@@ -151,10 +151,11 @@ export class ExplorerService implements IExplorerService {
const modelStat = ExplorerItem.create(stat, undefined, options.resolveTo);
// Update Input with disk Stat
ExplorerItem.mergeLocalWithDisk(modelStat, root);
this._onDidChangeItem.fire(root);
const item = root.find(resource);
this._onDidChangeItem.fire(item ? item.parent : undefined);
// Select and Reveal
this._onDidSelectItem.fire({ item: root.find(resource) || undefined, reveal });
this._onDidSelectItem.fire({ item: item || undefined, reveal });
}, () => {
root.isError = true;
this._onDidChangeItem.fire(root);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册