Example #1
0
        private void InputAssistant_Idled(object sender, TextEditIdledEventArgs e)
        {
            ITextView textView = e.TextView;
            string    text     = textView.TextBuffer.CurrentSnapshot.GetText();

            this.textBufferViewTracker.UpdateTextView(textView, text);
        }
Example #2
0
        /// <summary>
        /// Triggered wheneven text content changed.
        /// If another change triggered within delay time, it resets timer.
        /// </summary>
        /// <param name="args">Event data.</param>
        public void TextChanged(TextEditIdledEventArgs args)
        {
            this.args = args;

            // reset timer if its triggered within default delay time
            this.waitingTimer.Change(DefaultUpdateDelayInMS, Timeout.Infinite);
        }