diff --git a/src/vs/workbench/parts/files/common/explorerModel.ts b/src/vs/workbench/parts/files/common/explorerModel.ts index 4634e685b8b9bbb87dfe16790eced81f5eb2c078..b6aa416ef816436908e1081abf175b5c2b51debb 100644 --- a/src/vs/workbench/parts/files/common/explorerModel.ts +++ b/src/vs/workbench/parts/files/common/explorerModel.ts @@ -17,7 +17,7 @@ import { IEditorGroup, toResource, IEditorIdentifier } from 'vs/workbench/common import { IDisposable, dispose } from 'vs/base/common/lifecycle'; import { getPathLabel } from 'vs/base/common/labels'; import { Schemas } from 'vs/base/common/network'; -import { startsWith, beginsWithIgnoreCase } from 'vs/base/common/strings'; +import { startsWith, beginsWithIgnoreCase, equalsIgnoreCase } from 'vs/base/common/strings'; export class Model { @@ -325,7 +325,10 @@ export class ExplorerItem { } private findByPath(path: string, index: number): ExplorerItem { - if (paths.isEqual(this.resource.path, path, !isLinux)) { + if (this.resource.path === path) { + return this; + } + if (!isLinux && equalsIgnoreCase(this.resource.path, path)) { return this; }