From 4729ed8adc66fcfcaae8a7277577fc7f3e3be29c Mon Sep 17 00:00:00 2001 From: isidor Date: Wed, 9 May 2018 15:22:19 +0200 Subject: [PATCH] explorerModel: ExplorerItem is root when this.root is itself fixes #48893 --- src/vs/workbench/parts/files/common/explorerModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/parts/files/common/explorerModel.ts b/src/vs/workbench/parts/files/common/explorerModel.ts index bc440771caca9..391611ce20482 100644 --- a/src/vs/workbench/parts/files/common/explorerModel.ts +++ b/src/vs/workbench/parts/files/common/explorerModel.ts @@ -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 {