• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ICompletionBroker类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: CommandFilter

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

            TextView = textView;
            Broker = broker;
            Settings = new UserSettings();
        }
开发者ID:luyikk,项目名称:NLUATool,代码行数:8,代码来源:CompletionController.cs


示例17: XmlResourceCompletionController

        internal XmlResourceCompletionController(System.IServiceProvider serviceProvider, IVsTextView vsTextView, ITextView textView, ICompletionBroker completionBroker, ITextStructureNavigatorSelectorService textStructureNavigatorSelectorService)
        {
            this.serviceProvider = serviceProvider;
            this.textView = textView;
            this.completionBroker = completionBroker;

            //add the command to the command chain
            vsTextView.AddCommandFilter(this, out nextCommandTarget);
        }
开发者ID:Xtremrules,项目名称:dot42,代码行数:9,代码来源:XmlResourceCompletionController.cs


示例18: TemplateCompletionController

 public TemplateCompletionController(
     PythonToolsService pyService,
     ITextView textView,
     IList<ITextBuffer> subjectBuffers,
     ICompletionBroker completionBroker,
     IQuickInfoBroker quickInfoBroker,
     ISignatureHelpBroker signatureBroker) :
     base(textView, subjectBuffers, completionBroker, quickInfoBroker, signatureBroker) {
     _pyService = pyService;
 }
开发者ID:wenh123,项目名称:PTVS,代码行数:10,代码来源:TemplateCompletionController.cs


示例19: ScriptCompletionWatcher

        public ScriptCompletionWatcher(IWpfTextView view, ICompletionBroker broker)
        {
            _textView = view;
            _broker = broker;

            var htmlBuffers = view.BufferGraph.GetTextBuffers(tb => tb.ContentType.TypeName.Equals("HTML", StringComparison.OrdinalIgnoreCase));

            if (htmlBuffers.Any())
                _lbm = VsServiceManager.GetLanguageBlockManager(htmlBuffers.First());
        }
开发者ID:sanyaade-mobiledev,项目名称:ASP.NET-Mvc-2,代码行数:10,代码来源:ScriptCompletionWatcher.cs


示例20: DisplayWindowHelper

        private DisplayWindowHelper(
			ITextView view,
			ICompletionBroker completionBroker,
			ISignatureHelpBroker signatureHelpBroker,
			ISmartTagBroker smartTagBroker,
			IQuickInfoBroker quickInfoBroker)
            : this(completionBroker, signatureHelpBroker, smartTagBroker, quickInfoBroker)
        {
            this.TextView = view;
        }
开发者ID:ChaosinaCan,项目名称:tabsanity-vs,代码行数:10,代码来源:DisplayWindowHelper.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ICompletionData类代码示例发布时间:2022-05-24
下一篇:
C# ICompiler类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap