本文整理汇总了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;
}
示例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);
}
示例3: SurroundWith
public SurroundWith(IVsTextView adapter, IWpfTextView textView, ICompletionBroker broker)
: base(adapter, textView, GuidList.guidFormattingCmdSet, PkgCmdIDList.SurroundWith)
{
_broker = broker;
_view = textView;
_buffer = textView.TextBuffer;
}
示例4: CompletionModelManager
public CompletionModelManager(ITextView textView, ICompletionBroker completionBroker, CompletionProviderService completionProviderService)
{
_textView = textView;
_textView.TextBuffer.PostChanged += OnTextBufferOnPostChanged;
_completionBroker = completionBroker;
_completionProviderService = completionProviderService;
}
示例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;
}
示例6: VsctCompletionController
public VsctCompletionController(IWpfTextView textView, ICompletionBroker broker)
{
_currentSession = null;
TextView = textView;
Broker = broker;
}
示例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;
}
示例8: CommandFilter
public CommandFilter(IWpfTextView textView, ICompletionBroker broker)
{
_currentSession = null;
TextView = textView;
Broker = broker;
}
示例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;
}
示例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);
}
示例11: CommandFilter
public CommandFilter(IWpfTextView textView, ICompletionBroker broker, IEmojiLocationHandler emojiLocationHandler)
{
_emojiLocationHandler = emojiLocationHandler;
_currentSession = null;
TextView = textView;
Broker = broker;
}
示例12: KeyFilterFactory
internal KeyFilterFactory(
ICompletionBroker completionBroker,
ISignatureHelpBroker signatureHelpBroker,
ISmartTagBroker smartTagBroker,
IQuickInfoBroker quickInfoBroker)
{
_helperFactory = new DisplayWindowHelper(completionBroker, signatureHelpBroker, smartTagBroker, quickInfoBroker);
}
示例13: CompletionModelManager
public CompletionModelManager(ITextView textView, ICompletionBroker completionBroker, CompletionProviderService completionProviderService)
{
//_workspace = workspace;
//_workspace.CurrentDocumentChanged += WorkspaceOnCurrentDocumentChanged;
_textView = textView;
_completionBroker = completionBroker;
_completionProviderService = completionProviderService;
}
示例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;
}
示例15: JsCommandFilter
public JsCommandFilter(IWpfTextView textView, ICompletionBroker broker, IStandardClassificationService standardClassifications)
{
_currentSession = null;
TextView = textView;
Broker = broker;
_standardClassifications = standardClassifications;
}