mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-09-11 12:25:59 +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;
|
const recordedState = this.vimState.recordedState;
|
||||||
recordedState.actionKeys.push(key);
|
recordedState.actionKeys.push(key);
|
||||||
|
VSCodeContext.set('vim.command', recordedState.commandString);
|
||||||
|
|
||||||
const action = getRelevantAction(recordedState.actionKeys, this.vimState);
|
const action = getRelevantAction(recordedState.actionKeys, this.vimState);
|
||||||
switch (action) {
|
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
|
// Since there is no possible action we are no longer waiting any action keys
|
||||||
this.vimState.recordedState.waitingForAnotherActionKey = false;
|
this.vimState.recordedState.waitingForAnotherActionKey = false;
|
||||||
|
VSCodeContext.set('vim.command', '');
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
case KeypressState.WaitingOnKeys:
|
case KeypressState.WaitingOnKeys:
|
||||||
|
Loading…
Reference in New Issue
Block a user