Skip to content

Commit

Permalink
Explorer refresh not working for folders with same prefix (fixes #19377)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Jan 26, 2017
1 parent e93a826 commit 7450f5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/parts/files/browser/views/explorerView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ export class ExplorerView extends CollapsibleViewletView {
// Drop those path which are parents of the current one
for (let i = resolvedDirectories.length - 1; i >= 0; i--) {
const resource = resolvedDirectories[i];
if (stat.resource.toString().indexOf(resource.toString()) === 0) {
if (paths.isEqualOrParent(stat.resource.fsPath, resource.fsPath)) {
resolvedDirectories.splice(i);
}
}
Expand Down

0 comments on commit 7450f5d

Please sign in to comment.