diff --git a/src/mode/modeHandler.ts b/src/mode/modeHandler.ts index 809bf02b5b8..b438df8ef26 100644 --- a/src/mode/modeHandler.ts +++ b/src/mode/modeHandler.ts @@ -744,10 +744,14 @@ export class ModeHandler implements vscode.Disposable { (withinTimeout || keys.length === 1)) { - handled = handled || await this._insertModeRemapper.sendKey(keys, this, this.vimState); - handled = handled || await this._otherModesRemapper.sendKey(keys, this, this.vimState); - handled = handled || await this._insertModeNonRecursive.sendKey(keys, this, this.vimState); - handled = handled || await this._otherModesNonRecursive.sendKey(keys, this, this.vimState); + // User remappings bork the tests. If the the remappings start getting tested + // at some point, will probably need a new solution. + if (!ModeHandler.IsTesting) { + handled = handled || await this._insertModeRemapper.sendKey(keys, this, this.vimState); + handled = handled || await this._otherModesRemapper.sendKey(keys, this, this.vimState); + handled = handled || await this._insertModeNonRecursive.sendKey(keys, this, this.vimState); + handled = handled || await this._otherModesNonRecursive.sendKey(keys, this, this.vimState); + } } if (!handled) {