private void OnKeyInputProcessed(object sender, KeyInputProcessedEventArgs e) { if (sender is IVimBuffer vimBuffer) { OnInputModeRelatedEvent(vimBuffer); } }
private void OnKeyInputProcessed(IVimBuffer vimBuffer, KeyInputProcessedEventArgs e) { if (_completionBroker.IsCompletionActive(vimBuffer.TextView)) { // If the buffer is not in insert mode or it just transitioned into insert mode // then don't let intellisense stay active. Else intellisense will be popping // up when normal mode keys are used to navigate around the buffer if (vimBuffer.ModeKind != ModeKind.Insert || e.ProcessResult.IsAnySwitch) { _completionBroker.DismissAllSessions(vimBuffer.TextView); } } }
private void OnKeyInputProcessed(object sender, KeyInputProcessedEventArgs e) { UpdateShowCommandText(); }
/// <summary> /// When a KeyInput value is processed then it should stop the timer if it's /// currently running. Actually processing a KeyInput means it wasn't buffered /// </summary> private void OnKeyInputProcessed(object sender, KeyInputProcessedEventArgs args) { _timer.Stop(); }