mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-10-04 07:38:27 +03:00
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:
parent
acbd84f1a6
commit
1a55f891c7
@ -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) {
|
||||
|
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user