提交 efa187df 编写于 作者: I isidor

explorer model: do not use paths.isEqual

上级 0f4f7dbc
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册