private void OnDismissed() { this.FileModel.OnMouseHover(null); _lastMouseHoverPointOpt = null; _previosMouseHoverFileVersion = FileVersion.Invalid; _previosActiveSpanOpt = null; if (_quickInfoOpt != null) { _quickInfoOpt.Dismissed -= OnDismissed; } _quickInfoOpt = null; }
public void Dispose() { CheckDisposed(); IsDisposed = true; _wpfTextView.MouseHover -= _wpfTextView_MouseHover; _keyBindingCommandFilter.Dispose(); _wpfTextView.Properties.RemoveProperty(Constants.TextViewModelKey); _wpfTextView = null; _keyBindingCommandFilter = null; _braceMatchingTaggerOpt = null; _lastMouseHoverPointOpt = null; _previosMouseHoverFileVersion = FileVersion.Invalid; _quickInfoOpt = null; }