public HostFactory( IVim vim, ITextBufferFactoryService bufferFactoryService, ITextEditorFactoryService editorFactoryService, IEditorOptionsFactoryService editorOptionsFactoryService, IKeyBindingService keyBindingService, SVsServiceProvider serviceProvider, IVsEditorAdaptersFactoryService adaptersFactory, IExternalEditorManager externalEditorManager, IDisplayWindowBrokerFactoryService displayWindowBrokerFactoryService, IVsAdapter adapter, IProtectedOperations protectedOperations, IVimBufferCoordinatorFactory bufferCoordinatorFactory) { _vim = vim; _keyBindingService = keyBindingService; _bufferFactoryService = bufferFactoryService; _editorFactoryService = editorFactoryService; _editorOptionsFactoryService = editorOptionsFactoryService; _externalEditorManager = externalEditorManager; _displayWindowBrokerFactoryServcie = displayWindowBrokerFactoryService; _adaptersFactory = adaptersFactory; _adapter = adapter; _protectedOperations = protectedOperations; _bufferCoordinatorFactory = bufferCoordinatorFactory; }
private VsCommandTarget( IVimBuffer buffer, IVsAdapter adapter, IExternalEditorManager externalEditorManager) { _buffer = buffer; _adapter = adapter; _externalEditManager = externalEditorManager; }
private VsCommandTarget( IVimBuffer buffer, IVsAdapter adapter, IDisplayWindowBroker broker, IExternalEditorManager externalEditorManager) { _buffer = buffer; _adapter = adapter; _broker = broker; _externalEditManager = externalEditorManager; }
internal static Result <VsCommandTarget> Create( IVimBufferCoordinator bufferCoordinator, IVsTextView vsTextView, IVsAdapter adapter, IDisplayWindowBroker broker, IExternalEditorManager externalEditorManager) { var filter = new VsCommandTarget(bufferCoordinator, adapter, broker, externalEditorManager); var hresult = vsTextView.AddCommandFilter(filter, out filter._nextTarget); return(Result.CreateSuccessOrError(filter, hresult)); }
private VsCommandTarget( IVimBufferCoordinator bufferCoordinator, IVsAdapter vsAdapter, IDisplayWindowBroker broker, IExternalEditorManager externalEditorManager) { _buffer = bufferCoordinator.VimBuffer; _bufferCoordinator = bufferCoordinator; _textBuffer = _buffer.TextBuffer; _vsAdapter = vsAdapter; _broker = broker; _externalEditManager = externalEditorManager; }
public HostFactory( IVim vim, ITextBufferFactoryService bufferFactoryService, ITextEditorFactoryService editorFactoryService, IEditorOptionsFactoryService editorOptionsFactoryService, IKeyBindingService keyBindingService, SVsServiceProvider serviceProvider, IVsEditorAdaptersFactoryService adaptersFactory, IExternalEditorManager externalEditorManager, IDisplayWindowBrokerFactoryService displayWindowBrokerFactoryService, IFileSystem fileSystem, IVsAdapter adapter) { _vim = vim; _keyBindingService = keyBindingService; _bufferFactoryService = bufferFactoryService; _editorFactoryService = editorFactoryService; _editorOptionsFactoryService = editorOptionsFactoryService; _externalEditorManager = externalEditorManager; _displayWindowBrokerFactoryServcie = displayWindowBrokerFactoryService; _adaptersFactory = adaptersFactory; _fileSystem = fileSystem; _adapter = adapter; }
internal static Result<VsCommandTarget> Create( IVimBuffer buffer, IVsTextView vsTextView, IVsAdapter adapter, IDisplayWindowBroker broker, IExternalEditorManager externalEditorManager) { var filter = new VsCommandTarget(buffer, adapter, broker, externalEditorManager); var hresult = vsTextView.AddCommandFilter(filter, out filter._nextTarget); return Result.CreateSuccessOrError(filter, hresult); }
internal static Result<VsCommandTarget> Create( IVimBufferCoordinator bufferCoordinator, IVsTextView vsTextView, IVsAdapter adapter, IDisplayWindowBroker broker, IExternalEditorManager externalEditorManager) { var vsCommandTarget = new VsCommandTarget(bufferCoordinator, adapter, broker, externalEditorManager); var hresult = vsTextView.AddCommandFilter(vsCommandTarget, out vsCommandTarget._nextTarget); var result = Result.CreateSuccessOrError(vsCommandTarget, hresult); if (result.IsSuccess) { bufferCoordinator.VimBuffer.TextView.Properties[Key] = vsCommandTarget; } return result; }