diff --git a/src/editorIdentity.ts b/src/editorIdentity.ts index 51999774254..0a2efcec028 100644 --- a/src/editorIdentity.ts +++ b/src/editorIdentity.ts @@ -2,30 +2,24 @@ import * as vscode from 'vscode'; export class EditorIdentity { private _fileName: string; - private _viewColumn: vscode.ViewColumn; constructor(textEditor?: vscode.TextEditor) { this._fileName = (textEditor && textEditor.document && textEditor.document.fileName) || ''; - this._viewColumn = (textEditor && textEditor.viewColumn) || vscode.ViewColumn.One; } get fileName() { return this._fileName; } - get viewColumn() { - return this._viewColumn; - } - public hasSameBuffer(identity: EditorIdentity): boolean { return this.fileName === identity.fileName; } public isEqual(other: EditorIdentity): boolean { - return this.fileName === other.fileName && this.viewColumn === other.viewColumn; + return this.fileName === other.fileName; } public toString() { - return this.fileName + this.viewColumn; + return this.fileName; } }