Skip to content

Commit

Permalink
fixup! Select created new files and folders in the navigator
Browse files Browse the repository at this point in the history
  • Loading branch information
vinokurig committed May 14, 2020
1 parent 9afe9ce commit c9f0e9e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/navigator/src/browser/navigator-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,9 @@ export class FileNavigatorContribution extends AbstractViewContribution<FileNavi
return;
}
const model: FileNavigatorModel = navigator.model;
for (const uri of event.uri.allLocations) {
if (event.parent.isEqualOrParent(uri)) {
const parent = await model.revealFile(uri);
if (DirNode.is(parent)) {
await model.refresh(parent);
}
}
const parent = await model.revealFile(event.parent);
if (DirNode.is(parent)) {
await model.refresh(parent);
}
const node = await model.revealFile(event.uri);
if (SelectableTreeNode.is(node)) {
Expand Down

0 comments on commit c9f0e9e

Please sign in to comment.