diff --git a/src/vs/editor/common/core/lineTokens.ts b/src/vs/editor/common/core/lineTokens.ts index 713efdf9bc3..4833bab6090 100644 --- a/src/vs/editor/common/core/lineTokens.ts +++ b/src/vs/editor/common/core/lineTokens.ts @@ -113,31 +113,6 @@ export class LineTokens { return this._textLength; } - public equals(other: LineTokens): boolean { - if (!(other instanceof LineTokens)) { - return false; - } - if (this._text !== other._text) { - return false; - } - if (this._map !== other._map) { - return false; - } - if (!ModeTransition.equals(this.modeTransitions, other.modeTransitions)) { - return false; - } - - if (this._tokens.length !== other._tokens.length) { - return false; - } - for (let i = 0, len = this._tokens.length; i < len; i++) { - if (this._tokens[i] !== other._tokens[i]) { - return false; - } - } - return true; - } - /** * Find the token containing offset `offset`. * For example, with the following tokens [0, 5), [5, 9), [9, infinity) diff --git a/src/vs/editor/common/modes/supports/electricCharacter.ts b/src/vs/editor/common/modes/supports/electricCharacter.ts index 6a1af419501..bf7b6084a81 100644 --- a/src/vs/editor/common/modes/supports/electricCharacter.ts +++ b/src/vs/editor/common/modes/supports/electricCharacter.ts @@ -21,7 +21,6 @@ export interface IDocComment { export interface IBracketElectricCharacterContribution { docComment?: IDocComment; - embeddedElectricCharacters?: string[]; } export class BracketElectricCharacterSupport { @@ -35,9 +34,6 @@ export class BracketElectricCharacterSupport { } public getElectricCharacters(): string[] { - if (Array.isArray(this.contribution.embeddedElectricCharacters)) { - return this.contribution.embeddedElectricCharacters.concat(this.brackets.getElectricCharacters()); - } return this.brackets.getElectricCharacters(); } diff --git a/src/vs/monaco.d.ts b/src/vs/monaco.d.ts index 0329b1eb5c0..986df4374af 100644 --- a/src/vs/monaco.d.ts +++ b/src/vs/monaco.d.ts @@ -4173,7 +4173,6 @@ declare module monaco.languages { export interface IBracketElectricCharacterContribution { docComment?: IDocComment; - embeddedElectricCharacters?: string[]; } /**