public HostFactory( IVim vim, IVsEditorAdaptersFactoryService adaptersFactory, IReSharperUtil resharperUtil, IDisplayWindowBrokerFactoryService displayWindowBrokerFactoryService, ITextManager textManager, IVsAdapter adapter, [EditorUtilsImport] IProtectedOperations protectedOperations, IVimBufferCoordinatorFactory bufferCoordinatorFactory, IKeyUtil keyUtil, IEditorToSettingsSynchronizer editorToSettingSynchronizer) { _vim = vim; _resharperUtil = resharperUtil; _displayWindowBrokerFactoryServcie = displayWindowBrokerFactoryService; _adaptersFactory = adaptersFactory; _textManager = textManager; _adapter = adapter; _protectedOperations = protectedOperations; _bufferCoordinatorFactory = bufferCoordinatorFactory; _keyUtil = keyUtil; _editorToSettingSynchronizer = editorToSettingSynchronizer; #if DEBUG VimTrace.TraceSwitch.Level = TraceLevel.Info; #endif }
private VsCommandTarget( IVimBufferCoordinator bufferCoordinator, ITextManager textManager, IVsAdapter vsAdapter, IDisplayWindowBroker broker, IReSharperUtil resharperUtil, IKeyUtil keyUtil) { _vimBuffer = bufferCoordinator.VimBuffer; _vim = _vimBuffer.Vim; _bufferCoordinator = bufferCoordinator; _textBuffer = _vimBuffer.TextBuffer; _textView = _vimBuffer.TextView; _textManager = textManager; _vsAdapter = vsAdapter; _broker = broker; _resharperUtil = resharperUtil; _keyUtil = keyUtil; }
internal static Result <VsCommandTarget> Create( IVimBufferCoordinator bufferCoordinator, IVsTextView vsTextView, ITextManager textManager, IVsAdapter adapter, IDisplayWindowBroker broker, IReSharperUtil resharperUtil, IKeyUtil keyUtil) { var vsCommandTarget = new VsCommandTarget(bufferCoordinator, textManager, adapter, broker, resharperUtil, keyUtil); 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); }
internal ReSharperKeyProcessorProvider(IVim vim, IReSharperUtil reSharperUtil, IVimBufferCoordinatorFactory vimBufferCoordinatorFactory) { _vim = vim; _reSharperUtil = reSharperUtil; _vimBufferCoordinatorFactory = vimBufferCoordinatorFactory; }
internal ReSharperCommandTargetFactory(IReSharperUtil reSharperUtil) { _reSharperUtil = reSharperUtil; }
internal ReSharperExtensionAdapter(IReSharperUtil reSharperUtil, ITextDocumentFactoryService textDocumentFactoryService) { _reSharperUtil = reSharperUtil; _textDocumentFactoryService = textDocumentFactoryService; }
internal ReSharperExternalEditAdapter(IReSharperUtil reSharperUtil, IVimBufferCoordinatorFactory vimBufferCoordinatorFactory) { _reSharperUtil = reSharperUtil; _vimBufferCoordinatorFactory = vimBufferCoordinatorFactory; }
internal static Result<VsCommandTarget> Create( IVimBufferCoordinator bufferCoordinator, IVsTextView vsTextView, ITextManager textManager, IVsAdapter adapter, IDisplayWindowBroker broker, IReSharperUtil resharperUtil, IKeyUtil keyUtil) { var vsCommandTarget = new VsCommandTarget(bufferCoordinator, textManager, adapter, broker, resharperUtil, keyUtil); 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; }