protected BaseCommandTarget(IVsTextView textViewAdapter, ITextView textView, BaseHandlerProvider provider) { TextViewAdapter = textViewAdapter; TextView = textView; Workspace = provider.VsWorkspace; WorkspaceHelper = new WorkspaceHelper() { Workspace = Workspace }; // Add the target later to make sure it makes it in before other command handlers (thanks to Mads Kristensen - https://github.com/madskristensen/WebEssentials2013/blob/fa001f0737b0ab0a76a3e9fac9d89e6b722d70f3/EditorExtensions/Shared/Commands/CommandTargetBase.cs) Dispatcher.CurrentDispatcher.InvokeAsync(() => { ErrorHandler.ThrowOnFailure(textViewAdapter.AddCommandFilter(this, out nextCommandHandler)); }, DispatcherPriority.ApplicationIdle); }
public DothtmlFormatCommandHandler(IVsTextView textViewAdapter, ITextView textView, BaseHandlerProvider provider) : base(textViewAdapter, textView, provider) { }