public static void DismissSignatureSession(ITextView textView, ICoreShell shell)
 {
     if (HasActiveSignatureSession(textView, shell))
     {
         ISignatureHelpBroker broker = shell.ExportProvider.GetExportedValue <ISignatureHelpBroker>();
         broker.DismissAllSessions(textView);
     }
 }
示例#2
0
 public static void DismissSignatureSession(ITextView textView)
 {
     if (HasActiveSignatureSession(textView))
     {
         ISignatureHelpBroker broker = EditorShell.Current.ExportProvider.GetExportedValue <ISignatureHelpBroker>();
         broker.DismissAllSessions(textView);
     }
 }
示例#3
0
 public static void DismissSignatureSession(ITextView textView, ICoreShell shell)
 {
     if (HasActiveSignatureSession(textView, shell))
     {
         ISignatureHelpBroker broker = shell.GetService <ISignatureHelpBroker>();
         broker.DismissAllSessions(textView);
     }
 }
        void IDisplayWindowBroker.DismissDisplayWindows()
        {
            if (_completionBroker.IsCompletionActive(_textView))
            {
                _completionBroker.DismissAllSessions(_textView);
            }

            if (_signatureHelpBroker.IsSignatureHelpActive(_textView))
            {
                _signatureHelpBroker.DismissAllSessions(_textView);
            }

            if (_quickInfoBroker.IsQuickInfoActive(_textView))
            {
                _quickInfoBroker.GetSession(_textView).DismissAsync();
            }
        }
示例#5
0
        void IDisplayWindowBroker.DismissDisplayWindows()
        {
            if (_completionBroker.IsCompletionActive(_textView))
            {
                _completionBroker.DismissAllSessions(_textView);
            }

            if (_signatureHelpBroker.IsSignatureHelpActive(_textView))
            {
                _signatureHelpBroker.DismissAllSessions(_textView);
            }

            if (_quickInfoBroker.IsQuickInfoActive(_textView))
            {
                foreach (var session in _quickInfoBroker.GetSessions(_textView))
                {
                    session.Dismiss();
                }
            }
        }
示例#6
0
 public void DismissSignatureSession(IEditorView view)
 => _signatureBroker.DismissAllSessions(view.As <ITextView>());