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


C# ICompletionBroker类代码示例

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


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

示例1: RoslynTextViewCreationListener

 public RoslynTextViewCreationListener(SVsServiceProvider serviceProvider, IVsEditorAdaptersFactoryService editorAdaptersFactoryService, ICompletionBroker completionBroker, MefProviderOptions mefProviderOptions)
 {
     _serviceProvider = serviceProvider;
     _editorAdaptersFactoryService = editorAdaptersFactoryService;
     _completionBroker = completionBroker;
     _mefProviderOptions = mefProviderOptions;
 }
开发者ID:modulexcite,项目名称:SHFB-1,代码行数:7,代码来源:RoslynTextViewCreationListener.cs

示例2: DocumentMonitorService

        internal DocumentMonitorService(SVsServiceProvider vsServiceProvider, ICompletionBroker completionBroker)
        {
            _vsServiceProvider = vsServiceProvider;
            _runningDocumentTable = new RunningDocumentTable(vsServiceProvider);
            _runningDocumentTable.Advise(this);
            _completionBroker = completionBroker;
            _dte = (DTE)vsServiceProvider.GetService(typeof(_DTE));

            // NB: Resharper somehow fucks with this event, we need to do as
            // little as possible in the event handler itself
            var documentChanged = _changed
                .ObserveOn(RxApp.TaskpoolScheduler)
                .Throttle(TimeSpan.FromSeconds(2.0), RxApp.TaskpoolScheduler)
                .Where(_ => !isCompletionActive())
                .Select(_ => Unit.Default)
                .ObserveOn(RxApp.MainThreadScheduler);

            documentChanged.Subscribe(_ => SaveAll());

            // NB: We use the message bus here, because we want to effectively
            // merge all of the text change notifications from any document
            MessageBus.Current.RegisterMessageSource(documentChanged, "AnyDocumentChanged");

            checkAlreadyOpenDocuments(vsServiceProvider);

            _dte.Events.WindowEvents.WindowActivated += (o,e) => _changed.OnNext(Unit.Default);
        }
开发者ID:hmemcpy,项目名称:SaveAllTheTime,代码行数:27,代码来源:DocumentMonitorService.cs

示例3: SurroundWith

 public SurroundWith(IVsTextView adapter, IWpfTextView textView, ICompletionBroker broker)
     : base(adapter, textView, GuidList.guidFormattingCmdSet, PkgCmdIDList.SurroundWith)
 {
     _broker = broker;
     _view = textView;
     _buffer = textView.TextBuffer;
 }
开发者ID:joeriks,项目名称:WebEssentials2013,代码行数:7,代码来源:SurroundWithTarget.cs

示例4: CompletionModelManager

 public CompletionModelManager(ITextView textView, ICompletionBroker completionBroker, CompletionProviderService completionProviderService)
 {
     _textView = textView;
     _textView.TextBuffer.PostChanged += OnTextBufferOnPostChanged;
     _completionBroker = completionBroker;
     _completionProviderService = completionProviderService;
 }
开发者ID:Samana,项目名称:HlslTools,代码行数:7,代码来源:CompletionModelManager.cs

示例5: TemplateCompletionHandlerProvider

        public TemplateCompletionHandlerProvider(
            ITemplateEditorOptions options, 
            IVsEditorAdaptersFactoryService editorAdapterFactory,
            SVsServiceProvider serviceProvider,
            ICompletionBroker completionBroker)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            if (editorAdapterFactory == null)
            {
                throw new ArgumentNullException(nameof(editorAdapterFactory));
            }

            if (serviceProvider == null)
            {
                throw new ArgumentNullException(nameof(serviceProvider));
            }

            if (completionBroker == null)
            {
                throw new ArgumentNullException(nameof(completionBroker));
            }

            this.options = options;
            this.editorAdapterFactory = editorAdapterFactory;
            this.serviceProvider = serviceProvider;
            this.completionBroker = completionBroker;
        }
开发者ID:icool123,项目名称:T4Toolbox,代码行数:31,代码来源:TemplateCompletionHandlerProvider.cs

示例6: VsctCompletionController

        public VsctCompletionController(IWpfTextView textView, ICompletionBroker broker)
        {
            _currentSession = null;

            TextView = textView;
            Broker = broker;
        }
开发者ID:NotYours180,项目名称:ExtensibilityTools,代码行数:7,代码来源:VsctCompletionController.cs

示例7: EnterFormat

 public EnterFormat(IVsTextView adapter, IWpfTextView textView, IEditorFormatterProvider formatterProvider, ICompletionBroker broker)
     : base(adapter, textView, typeof(Microsoft.VisualStudio.VSConstants.VSStd2KCmdID).GUID, 3)
 {
     _tree = HtmlEditorDocument.FromTextView(textView).HtmlEditorTree;
     _formatter = formatterProvider.CreateRangeFormatter();
     _broker = broker;
 }
开发者ID:ncl-dmoreira,项目名称:WebEssentials2013,代码行数:7,代码来源:EnterFormatCommandTarget.cs

示例8: CommandFilter

        public CommandFilter(IWpfTextView textView, ICompletionBroker broker)
        {
            _currentSession = null;

            TextView = textView;
            Broker = broker;
        }
开发者ID:kevinderudder,项目名称:WebEssentials2013,代码行数:7,代码来源:RobotsCompletionController.cs

示例9: CompletionController

 /// <summary>
 /// Attaches events for invoking Statement completion 
 /// </summary>
 /// <param name="subjectBuffers"></param>
 /// <param name="textView"></param>
 /// <param name="completionBrokerMap"></param>
 internal CompletionController(IList<ITextBuffer> subjectBuffers, ITextView textView, ICompletionBroker completionBrokerMap, System.IServiceProvider serviceProvider)
 {
     this.subjectBuffers = subjectBuffers;
     this.textView = textView;
     this.completionBrokerMap = completionBrokerMap;
     this.serviceProvider = serviceProvider;
 }
开发者ID:kageyamaginn,项目名称:VSSDK-Extensibility-Samples,代码行数:13,代码来源:CompletionController.cs

示例10: TestCompletionCommandHandler

        //ICompletionSession m_session;
        internal TestCompletionCommandHandler(IVsTextView textViewAdapter, ITextView textView, ICompletionBroker broker)
        {
            this.m_textView = textView;
            this.m_broker = broker;

            //add the command to the command chain
            textViewAdapter.AddCommandFilter(this, out m_nextCommandHandler);
        }
开发者ID:dsplaisted,项目名称:MEFContractDiscovery,代码行数:9,代码来源:CompletionCommand.cs

示例11: CommandFilter

        public CommandFilter(IWpfTextView textView, ICompletionBroker broker, IEmojiLocationHandler emojiLocationHandler)
        {
            _emojiLocationHandler = emojiLocationHandler;
            _currentSession = null;

            TextView = textView;
            Broker = broker;
        }
开发者ID:jbevain,项目名称:EmojiVS,代码行数:8,代码来源:CommandFilter.cs

示例12: KeyFilterFactory

		internal KeyFilterFactory(
			ICompletionBroker completionBroker,
			ISignatureHelpBroker signatureHelpBroker,
			ISmartTagBroker smartTagBroker,
			IQuickInfoBroker quickInfoBroker)
		{
			_helperFactory = new DisplayWindowHelper(completionBroker, signatureHelpBroker, smartTagBroker, quickInfoBroker);
		}
开发者ID:FlipB,项目名称:tabsanity-vs,代码行数:8,代码来源:KeyFilterFactory.cs

示例13: CompletionModelManager

 public CompletionModelManager(ITextView textView, ICompletionBroker completionBroker, CompletionProviderService completionProviderService)
 {
     //_workspace = workspace;
     //_workspace.CurrentDocumentChanged += WorkspaceOnCurrentDocumentChanged;
     _textView = textView;
     _completionBroker = completionBroker;
     _completionProviderService = completionProviderService;
 }
开发者ID:pminiszewski,项目名称:HlslTools,代码行数:8,代码来源:CompletionModelManager.cs

示例14: IntelliSenseManager

 public IntelliSenseManager(ICompletionBroker broker, SVsServiceProvider provider, IOleCommandTarget commandHandler, ITextView textView)
 {
     _broker = broker;
     NextCommandHandler = commandHandler;
     _textView = textView;
     _isRepl = _textView.Properties.ContainsProperty(BufferProperties.FromRepl);
     _serviceProvider = provider;
 }
开发者ID:vairam-svs,项目名称:poshtools,代码行数:8,代码来源:IntelliSenseManager.cs

示例15: JsCommandFilter

        public JsCommandFilter(IWpfTextView textView, ICompletionBroker broker, IStandardClassificationService standardClassifications)
        {
            _currentSession = null;

            TextView = textView;
            Broker = broker;
            _standardClassifications = standardClassifications;
        }
开发者ID:Russe11,项目名称:WebEssentials2013,代码行数:8,代码来源:JavaScriptCompletionController.cs


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