public static void DismissSignatureSession(ITextView textView, ICoreShell shell) { if (HasActiveSignatureSession(textView, shell)) { ISignatureHelpBroker broker = shell.ExportProvider.GetExportedValue <ISignatureHelpBroker>(); broker.DismissAllSessions(textView); } }
public static void DismissSignatureSession(ITextView textView) { if (HasActiveSignatureSession(textView)) { ISignatureHelpBroker broker = EditorShell.Current.ExportProvider.GetExportedValue <ISignatureHelpBroker>(); broker.DismissAllSessions(textView); } }
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(); } }
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(); } } }
public void DismissSignatureSession(IEditorView view) => _signatureBroker.DismissAllSessions(view.As <ITextView>());