2 writes to _viewer
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
Preview\DifferenceViewerPreview.cs (2)
33_viewer = viewer; 76_viewer = null;
14 references to _viewer
Microsoft.CodeAnalysis.EditorFeatures.Wpf (14)
Preview\DifferenceViewerPreview.cs (14)
35_viewer.VisualElement.IsKeyboardFocusWithinChanged += OnDifferenceViewerKeyboardFocusWithinChanged; 36_hasFocus = _viewer.VisualElement.IsKeyboardFocusWithin; 38var host = _viewer.ViewMode switch 40DifferenceViewMode.Inline => _viewer.InlineHost, 41DifferenceViewMode.LeftViewOnly => _viewer.LeftHost, 42DifferenceViewMode.RightViewOnly => _viewer.RightHost, 43_ => throw ExceptionUtilities.UnexpectedValue(_viewer.ViewMode), 56Contract.ThrowIfNull(_viewer); 57return _viewer; 67if (_viewer != null) 70_viewer.VisualElement.IsKeyboardFocusWithinChanged -= OnDifferenceViewerKeyboardFocusWithinChanged; 72if (!_viewer.IsClosed) 73_viewer.Close(); 90FatalError.ReportAndCatch(new Exception($"Dispose is not called how? viewer state : {_viewer?.IsClosed}"));