Fix closing parameter hints

Tried to do this in fd3ae79d9a, but neglected that <Esc> in insert mode is handled by a different action.
This commit is contained in:
Jason Fields 2020-08-27 12:09:23 -04:00
parent acbd84f1a6
commit 1a55f891c7
2 changed files with 2 additions and 2 deletions

View File

@ -413,8 +413,6 @@ class CommandEsc extends BaseCommand {
} else {
vimState.isMultiCursor = false;
}
} else if (vimState.currentMode === Mode.Insert) {
vscode.commands.executeCommand('closeParameterHints');
}
if (vimState.currentMode === Mode.EasyMotionMode) {

View File

@ -34,6 +34,8 @@ class CommandEscInsertMode extends BaseCommand {
}
public async exec(position: Position, vimState: VimState): Promise<void> {
vscode.commands.executeCommand('closeParameterHints');
vimState.cursors = vimState.cursors.map((x) => x.withNewStop(x.stop.getLeft()));
if (vimState.returnToInsertAfterCommand && position.character !== 0) {
vimState.cursors = vimState.cursors.map((x) => x.withNewStop(x.stop.getRight()));