提交 214ee89d 编写于 作者: M Matt Bierner

Use isEqual instead of tostring compare

上级 af070ee0
...@@ -7,6 +7,7 @@ import { memoize } from 'vs/base/common/decorators'; ...@@ -7,6 +7,7 @@ import { memoize } from 'vs/base/common/decorators';
import { Emitter } from 'vs/base/common/event'; import { Emitter } from 'vs/base/common/event';
import { UnownedDisposable } from 'vs/base/common/lifecycle'; import { UnownedDisposable } from 'vs/base/common/lifecycle';
import { basename } from 'vs/base/common/path'; import { basename } from 'vs/base/common/path';
import { isEqual } from 'vs/base/common/resources';
import { URI } from 'vs/base/common/uri'; import { URI } from 'vs/base/common/uri';
import { WebviewContentState } from 'vs/editor/common/modes'; import { WebviewContentState } from 'vs/editor/common/modes';
import { IDialogService } from 'vs/platform/dialogs/common/dialogs'; import { IDialogService } from 'vs/platform/dialogs/common/dialogs';
...@@ -58,7 +59,7 @@ export class CustomFileEditorInput extends WebviewInput { ...@@ -58,7 +59,7 @@ export class CustomFileEditorInput extends WebviewInput {
matches(other: IEditorInput): boolean { matches(other: IEditorInput): boolean {
return this === other || (other instanceof CustomFileEditorInput return this === other || (other instanceof CustomFileEditorInput
&& this.viewType === other.viewType && this.viewType === other.viewType
&& this.getResource().toString() === other.getResource().toString()); && isEqual(this.getResource(), other.getResource()));
} }
@memoize @memoize
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册