mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-08-16 07:40:42 +03:00
Set vim.command
in VSCodeContext
on key press. (#8718)
This commit is contained in:
parent
0e5cd66f53
commit
79e00fea76
@ -640,6 +640,7 @@ export class ModeHandler implements vscode.Disposable, IModeHandler {
|
||||
|
||||
const recordedState = this.vimState.recordedState;
|
||||
recordedState.actionKeys.push(key);
|
||||
VSCodeContext.set('vim.command', recordedState.commandString);
|
||||
|
||||
const action = getRelevantAction(recordedState.actionKeys, this.vimState);
|
||||
switch (action) {
|
||||
@ -651,6 +652,7 @@ export class ModeHandler implements vscode.Disposable, IModeHandler {
|
||||
}
|
||||
// Since there is no possible action we are no longer waiting any action keys
|
||||
this.vimState.recordedState.waitingForAnotherActionKey = false;
|
||||
VSCodeContext.set('vim.command', '');
|
||||
|
||||
return false;
|
||||
case KeypressState.WaitingOnKeys:
|
||||
|
Loading…
Reference in New Issue
Block a user