Example #1
0
 public static void UpdateCursorPosition()
 {
     if (!IsVisible)
     {
         return;
     }
     if (wnd.IsInCompletion || isShowing || isInUpdate)
     {
         return;
     }
     isInUpdate = true;
     try {
         ITextEditorImpl impl = wnd.CompletionWidget as ITextEditorImpl;
         if (impl != null)
         {
             impl.EnsureCaretIsNotVirtual();
         }
         var caretOffset = wnd.CompletionWidget.CaretOffset;
         if (caretOffset < wnd.StartOffset || caretOffset > wnd.EndOffset + 1)
         {
             HideWindow();
         }
         if (impl != null)
         {
             impl.FixVirtualIndentation();
         }
     } finally {
         isInUpdate = false;
     }
 }
 public void FixVirtualIndentation()
 {
     textEditorImpl.FixVirtualIndentation();
 }