public void VsTextViewCreated(IVsTextView textViewAdapter) { ITextView textView = _editorAdaptersFactoryService.GetWpfTextView(textViewAdapter); if (textView == null) return; GitDiffMarginCommandHandler filter = new GitDiffMarginCommandHandler(textViewAdapter, _editorAdaptersFactoryService, textView); filter.Enabled = true; textView.Properties.AddProperty(typeof(GitDiffMarginCommandHandler), filter); }
public void VsTextViewCreated(IVsTextView textViewAdapter) { ITextView textView = _editorAdaptersFactoryService.GetWpfTextView(textViewAdapter); if (textView == null) { return; } GitDiffMarginCommandHandler filter = new GitDiffMarginCommandHandler(textViewAdapter, _editorAdaptersFactoryService, textView); filter.Enabled = true; textView.Properties.AddProperty(typeof(GitDiffMarginCommandHandler), filter); }