From e679bfee4360cb1bc152e6e0ea7583d8d042e07e Mon Sep 17 00:00:00 2001 From: isidor Date: Fri, 27 Apr 2018 10:28:56 +0200 Subject: [PATCH] fix tests on win --- 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 15eb534b531..bc440771cac 100644 --- a/src/vs/workbench/parts/files/common/explorerModel.ts +++ b/src/vs/workbench/parts/files/common/explorerModel.ts @@ -338,7 +338,7 @@ export class ExplorerItem { if (resource && this.resource.scheme === resource.scheme && this.resource.authority === resource.authority && (isLinux ? startsWith(resource.path, this.resource.path) : startsWithIgnoreCase(resource.path, this.resource.path)) ) { - return this.findByPath(rtrim(resource.path, paths.nativeSep), this.resource.path.length); + return this.findByPath(rtrim(resource.path, paths.sep), this.resource.path.length); } return null; //Unable to find