IWpfTextView IInteractiveWindowEditorFactoryService.CreateTextView(IInteractiveWindow window, ITextBuffer buffer, ITextViewRoleSet roles) { var bufferAdapter = _adapterFactory.CreateVsTextBufferAdapterForSecondaryBuffer(_provider, buffer); // Create and initialize text view adapter. // WARNING: This might trigger various services like IntelliSense, margins, taggers, etc. var textViewAdapter = _adapterFactory.CreateVsTextViewAdapter(_provider, roles); var commandFilter = new VsInteractiveWindowCommandFilter(_adapterFactory, window, textViewAdapter, bufferAdapter, _oleCommandTargetProviders, _contentTypeRegistry); window.Properties[typeof(VsInteractiveWindowCommandFilter)] = commandFilter; return commandFilter.TextViewHost.TextView; }
IWpfTextView IInteractiveWindowEditorFactoryService.CreateTextView(IInteractiveWindow window, ITextBuffer buffer, ITextViewRoleSet roles) { var bufferAdapter = _adapterFactory.CreateVsTextBufferAdapterForSecondaryBuffer(_provider, buffer); // Create and initialize text view adapter. // WARNING: This might trigger various services like IntelliSense, margins, taggers, etc. var textViewAdapter = _adapterFactory.CreateVsTextViewAdapter(_provider, roles); var commandFilter = new VsInteractiveWindowCommandFilter(_adapterFactory, window, textViewAdapter, bufferAdapter); window.Properties[typeof(VsInteractiveWindowCommandFilter)] = commandFilter; return(commandFilter.TextViewHost.TextView); }
public CommandFilter(VsInteractiveWindowCommandFilter window, CommandFilterLayer layer) { _window = window; _layer = layer; }
public CommandFilter(VsInteractiveWindowCommandFilter window, CommandFilterLayer layer) { _window = window; _layer = layer; }