Skip to content

Commit

Permalink
explorerModel: ExplorerItem is root when this.root is itself
Browse files Browse the repository at this point in the history
fixes #48893
  • Loading branch information
isidorn committed May 9, 2018
1 parent 3757d76 commit 4729ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/parts/files/common/explorerModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class ExplorerItem {
}

public get isRoot(): boolean {
return this.resource.toString() === this.root.resource.toString();
return this === this.root;
}

public static create(raw: IFileStat, root: ExplorerItem, resolveTo?: URI[]): ExplorerItem {
Expand Down

0 comments on commit 4729ed8

Please sign in to comment.