当前位置: 首页>>代码示例>>C#>>正文


C# IVim类代码示例

本文整理汇总了C#中IVim的典型用法代码示例。如果您正苦于以下问题:C# IVim类的具体用法?C# IVim怎么用?C# IVim使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IVim类属于命名空间,在下文中一共展示了IVim类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: HostFactory

        public HostFactory(
            IVim vim,
            ITextBufferFactoryService bufferFactoryService,
            ITextEditorFactoryService editorFactoryService,
            IEditorOptionsFactoryService editorOptionsFactoryService,
            IKeyBindingService keyBindingService,
            SVsServiceProvider serviceProvider,
            IVsEditorAdaptersFactoryService adaptersFactory,
            IResharperUtil resharperUtil,
            IDisplayWindowBrokerFactoryService displayWindowBrokerFactoryService,
            IVsAdapter adapter,
            IProtectedOperations protectedOperations,
            IVimBufferCoordinatorFactory bufferCoordinatorFactory)
        {
            _vim = vim;
            _keyBindingService = keyBindingService;
            _bufferFactoryService = bufferFactoryService;
            _editorFactoryService = editorFactoryService;
            _editorOptionsFactoryService = editorOptionsFactoryService;
            _resharperUtil = resharperUtil;
            _displayWindowBrokerFactoryServcie = displayWindowBrokerFactoryService;
            _adaptersFactory = adaptersFactory;
            _adapter = adapter;
            _protectedOperations = protectedOperations;
            _bufferCoordinatorFactory = bufferCoordinatorFactory;

            _vim.AutoLoadVimRc = false;
        }
开发者ID:bajtos,项目名称:VsVim,代码行数:28,代码来源:HostFactory.cs

示例2: VimTestBase

        protected VimTestBase()
        {
            _vim = CompositionContainer.GetExportedValue<IVim>();
            _vimBufferFactory = CompositionContainer.GetExportedValue<IVimBufferFactory>();
            _vimErrorDetector = CompositionContainer.GetExportedValue<IVimErrorDetector>();
            _commonOperationsFactory = CompositionContainer.GetExportedValue<ICommonOperationsFactory>();
            _wordUtilFactory = CompositionContainer.GetExportedValue<IWordUtilFactory>();
            _bufferTrackingService = CompositionContainer.GetExportedValue<IBufferTrackingService>();
            _foldManagerFactory = CompositionContainer.GetExportedValue<IFoldManagerFactory>();
            _bulkOperations = CompositionContainer.GetExportedValue<IBulkOperations>();
            _clipboardDevice = CompositionContainer.GetExportedValue<IClipboardDevice>();
            _keyUtil = CompositionContainer.GetExportedValue<IKeyUtil>();

            _clipboardDevice.Text = String.Empty;

            // One setting we do differ on for a default is 'timeout'.  We don't want them interferring
            // with the reliability of tests.  The default is on but turn it off here to prevent any
            // problems
            _vim.GlobalSettings.Timeout = false;

            // Don't let the personal VimRc of the user interfere with the unit tests
            _vim.AutoLoadVimRc = false;

            // Don't show trace information in the unit tests.  It really clutters the output in an
            // xUnit run
            VimTrace.TraceSwitch.Level = TraceLevel.Off;
        }
开发者ID:cloudstrifegit,项目名称:VsVim,代码行数:27,代码来源:VimTestBase.cs

示例3: CommandMarginProvider

 internal CommandMarginProvider(
     IVim vim,
     [ImportMany] IEnumerable<Lazy<IOptionsProviderFactory>> optionsProviderFactories)
 {
     _vim = vim;
     _optionsProviderFactories = optionsProviderFactories.ToList().AsReadOnly();
 }
开发者ID:ChrisMarinos,项目名称:VsVim,代码行数:7,代码来源:CommandMarginProvider.cs

示例4: ConflictingKeyBindingMarginProvider

 internal ConflictingKeyBindingMarginProvider(IVim vim, IKeyBindingService keyBindingService, IEditorFormatMapService formatMapService, IVimApplicationSettings vimApplicationSettings)
 {
     _vim = vim;
     _keyBindingService = keyBindingService;
     _formatMapService = formatMapService;
     _vimApplicationSettings = vimApplicationSettings;
 }
开发者ID:wmchristie,项目名称:VsVim,代码行数:7,代码来源:ConflictingKeyBindingMarginProvider.cs

示例5: VimTest

        public VimTest()
        {
            _factory = new MockRepository(MockBehavior.Strict);
            _globalSettings = new GlobalSettings();
            _markMap = _factory.Create<IMarkMap>(MockBehavior.Strict);
            _fileSystem = _factory.Create<IFileSystem>(MockBehavior.Strict);
            _bufferFactory = VimBufferFactory;

            var map = new Dictionary<string, VariableValue>();
            _keyMap = new KeyMap(_globalSettings, map);
            _vimHost = _factory.Create<IVimHost>(MockBehavior.Strict);
            _searchInfo = _factory.Create<ISearchService>(MockBehavior.Strict);
            _vimRaw = new Vim(
                _vimHost.Object,
                _bufferFactory,
                FSharpList<Lazy<IVimBufferCreationListener>>.Empty,
                _globalSettings,
                _markMap.Object,
                _keyMap,
                MockObjectFactory.CreateClipboardDevice().Object,
                _searchInfo.Object,
                _fileSystem.Object,
                new VimData(),
                _factory.Create<IBulkOperations>().Object,
                map);
            _vim = _vimRaw;
            _vim.AutoLoadVimRc = false;
        }
开发者ID:fpicalausa,项目名称:VsVim,代码行数:28,代码来源:VimTest.cs

示例6: VimRcLoadNotificationMarginProvider

 internal VimRcLoadNotificationMarginProvider(IVim vim, IVimApplicationSettings vimApplicationSettings, IToastNotificationServiceProvider toastNotificationServiceProvider, IVsAdapter vsAdapter)
 {
     _vim = vim;
     _vimApplicationSettings = vimApplicationSettings;
     _toastNotificationServiceProvider = toastNotificationServiceProvider;
     _vsAdapter = vsAdapter;
 }
开发者ID:Deleriumdoll,项目名称:VsVim,代码行数:7,代码来源:VimRcLoadNotificationMarginProvider.cs

示例7: ConflictingKeyBindingMarginProvider

 internal ConflictingKeyBindingMarginProvider(IVim vim, IKeyBindingService keyBindingService, IEditorFormatMapService formatMapService, ILegacySettings legacySettings)
 {
     _vim = vim;
     _keyBindingService = keyBindingService;
     _formatMapService = formatMapService;
     _legacySettings = legacySettings;
 }
开发者ID:kcprogrammer,项目名称:VsVim,代码行数:7,代码来源:ConflictingKeyBindingMarginProvider.cs

示例8: VsKeyProcessorProvider

 internal VsKeyProcessorProvider(IVim vim, IVsAdapter adapter, IVimBufferCoordinatorFactory bufferCoordinatorFactory, IKeyUtil keyUtil)
 {
     _vim = vim;
     _adapter = adapter;
     _bufferCoordinatorFactory = bufferCoordinatorFactory;
     _keyUtil = keyUtil;
 }
开发者ID:wmchristie,项目名称:VsVim,代码行数:7,代码来源:VsKeyProcessorProvider.cs

示例9: HostFactory

        public HostFactory(
            IVim vim,
            IVsEditorAdaptersFactoryService adaptersFactory,
            IReSharperUtil resharperUtil,
            IDisplayWindowBrokerFactoryService displayWindowBrokerFactoryService,
            ITextManager textManager,
            IVsAdapter adapter,
            IVimProtectedOperations 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
        }
开发者ID:0-F,项目名称:VsVim,代码行数:27,代码来源:HostFactory.cs

示例10: CommandMarginProvider

 internal CommandMarginProvider(
     IVim vim,
     IEditorFormatMapService editorFormatMapService)
 {
     _vim = vim;
     _editorFormatMapService = editorFormatMapService;
 }
开发者ID:honeyhoneywell,项目名称:VsVim,代码行数:7,代码来源:CommandMarginProvider.cs

示例11: VimTest

        protected VimTest()
        {
            _factory = new MockRepository(MockBehavior.Strict);
            _globalSettings = new GlobalSettings();
            _fileSystem = _factory.Create<IFileSystem>(MockBehavior.Strict);
            _bufferFactory = VimBufferFactory;
            _simpleListener = new SimpleListener();
            var creationListeners = new [] { new Lazy<IVimBufferCreationListener>(() => _simpleListener) };

            var map = new Dictionary<string, VariableValue>();
            _keyMap = new KeyMap(_globalSettings, map);
            _vimHost = _factory.Create<IVimHost>(MockBehavior.Strict);
            _vimHost.Setup(x => x.CreateHiddenTextView()).Returns(CreateTextView());
            _vimHost.Setup(x => x.AutoSynchronizeSettings).Returns(true);
            _vimRaw = new Vim(
                _vimHost.Object,
                _bufferFactory,
                CompositionContainer.GetExportedValue<IVimInterpreterFactory>(),
                creationListeners.ToFSharpList(),
                _globalSettings,
                _factory.Create<IMarkMap>().Object,
                _keyMap,
                MockObjectFactory.CreateClipboardDevice().Object,
                _factory.Create<ISearchService>().Object,
                _fileSystem.Object,
                new VimData(_globalSettings),
                _factory.Create<IBulkOperations>().Object,
                map,
                new EditorToSettingSynchronizer());
            _vim = _vimRaw;
            _vim.AutoLoadVimRc = false;
        }
开发者ID:louisfeng,项目名称:VsVim,代码行数:32,代码来源:VimTest.cs

示例12: ConflictingKeyBindingMarginProvider

 internal ConflictingKeyBindingMarginProvider(IVim vim, IKeyBindingService keyBindingService, IVimApplicationSettings vimApplicationSettings, IToastNotificationServiceProvider toastNotificationServiceProvider)
 {
     _vim = vim;
     _keyBindingService = keyBindingService;
     _vimApplicationSettings = vimApplicationSettings;
     _toastNotificationServiceProvider = toastNotificationServiceProvider;
 }
开发者ID:Yzzl,项目名称:VsVim,代码行数:7,代码来源:ConflictingKeyBindingMarginProvider.cs

示例13: SetUp

 public void SetUp()
 {
     _factory = EditorUtil.FactoryService.vimBufferFactory;
     _factory.BufferCreated += new FSharpHandler<IVimBuffer>(OnBufferCreated);
     _vim = EditorUtil.FactoryService.vim;
     _created = new List<IVimBuffer>();
 }
开发者ID:ameent,项目名称:VsVim,代码行数:7,代码来源:VimBufferFactoryIntegrationTest.cs

示例14: HostFactory

 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;
 }
开发者ID:GunioRobot,项目名称:VsVim,代码行数:26,代码来源:HostFactory.cs

示例15: ReSharperUtil

 internal ReSharperUtil(IVim vim, IVimBufferCoordinatorFactory vimBufferCoordinatorFactory, SVsServiceProvider serviceProvider)
 {
     var vsShell = serviceProvider.GetService<SVsShell, IVsShell>();
     _isResharperInstalled = vsShell.IsPackageInstalled(Resharper5Guid);
     _vim = vim;
     _vimBufferCoordinatorFactory = vimBufferCoordinatorFactory;
 }
开发者ID:aesire,项目名称:VsVim,代码行数:7,代码来源:ReSharperUtil.cs


注:本文中的IVim类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。