コード例 #1
0
 public PeekDefinitionCommand(ITextView textView, ITextBuffer textBuffer, IPeekBroker peekBroker) :
     base(textView, new CommandId(typeof(VSConstants.VSStd12CmdID).GUID,
                                  (int)VSConstants.VSStd12CmdID.PeekDefinition), needCheckout: false)
 {
     _textBuffer = textBuffer;
     _peekBroker = peekBroker;
 }
コード例 #2
0
 public PeekDefinitionCommand(ITextView textView, ITextBuffer textBuffer) :
     base(textView, new CommandId(typeof(VSConstants.VSStd12CmdID).GUID,
                                  (int)VSConstants.VSStd12CmdID.PeekDefinition), needCheckout: false)
 {
     _textBuffer = textBuffer;
     _peekBroker = EditorShell.Current.ExportProvider.GetExportedValue <IPeekBroker>();
 }
コード例 #3
0
ファイル: TacticReplacer.cs プロジェクト: ggrov/dafny
 public TacticReplacerProxy(ITextDocumentFactoryService tdf, IServiceProvider isp, IPeekBroker pb)
 {
     _status             = (IVsStatusbar)isp.GetService(typeof(SVsStatusbar));
     RefactoringUtil.Tdf = tdf;
     _pb = pb;
     _activePeekSession = new Dictionary <string, ActivePeekSessionData>();
 }
コード例 #4
0
ファイル: EditFilter.cs プロジェクト: mkolovic/PTVS
        private EditFilter(
            IVsTextView vsTextView,
            ITextView textView,
            IEditorOperations editorOps,
            IServiceProvider serviceProvider,
            IComponentModel model,
            IOleCommandTarget next
            )
        {
            _vsTextView          = vsTextView;
            _textView            = textView;
            _editorOps           = editorOps;
            _serviceProvider     = serviceProvider;
            _componentModel      = model;
            _pyService           = _serviceProvider.GetPythonToolsService();
            _entryService        = _componentModel.GetService <AnalysisEntryService>();
            _undoManagerProvider = _componentModel.GetService <ITextBufferUndoManagerProvider>();
            _next       = next;
            _peekBroker = _componentModel.GetService <IPeekBroker>();

            BraceMatcher.WatchBraceHighlights(textView, _componentModel);

            if (_next == null)
            {
                ErrorHandler.ThrowOnFailure(vsTextView.AddCommandFilter(this, out _next));
            }
        }
コード例 #5
0
 public InlineCommentPeekService(
     IApiClientFactory apiClientFactory,
     IOutliningManagerService outliningManager,
     IPeekBroker peekBroker)
 {
     this.apiClientFactory = apiClientFactory;
     this.outliningService = outliningManager;
     this.peekBroker       = peekBroker;
 }
コード例 #6
0
 public InlineCommentPeekService(
     IOutliningManagerService outliningManager,
     IPeekBroker peekBroker,
     IUsageTracker usageTracker)
 {
     this.outliningService = outliningManager;
     this.peekBroker = peekBroker;
     this.usageTracker = usageTracker;
 }
コード例 #7
0
 internal TextManager(
     IVsAdapter adapter,
     ITextDocumentFactoryService textDocumentFactoryService,
     ITextBufferFactoryService textBufferFactoryService,
     ISharedServiceFactory sharedServiceFactory,
     IPeekBroker peekBroker,
     SVsServiceProvider serviceProvider) : this(adapter, textDocumentFactoryService, textBufferFactoryService, sharedServiceFactory.Create(), peekBroker, serviceProvider)
 {
 }
コード例 #8
0
ファイル: Dev14KeyProcessor.cs プロジェクト: SLaks/VSEmbed
		public Dev14KeyProcessor(IWpfTextView wpfTextView, ILightBulbBroker lightBulbBroker, ISuggestedActionCategoryRegistryService suggestedActionCategoryRegistryService, ISmartTagBroker smartTagBroker, IPeekBroker peekBroker) {
			this.wpfTextView = wpfTextView;
			this.lightBulbBroker = lightBulbBroker;
			this.suggestedActionCategoryRegistryService = suggestedActionCategoryRegistryService;
			this.smartTagBroker = smartTagBroker;
			this.peekBroker = peekBroker;

			AddShortcuts();
		}
コード例 #9
0
        public Dev14KeyProcessor(IWpfTextView wpfTextView, ILightBulbBroker lightBulbBroker, ISuggestedActionCategoryRegistryService suggestedActionCategoryRegistryService, ISmartTagBroker smartTagBroker, IPeekBroker peekBroker)
        {
            this.wpfTextView     = wpfTextView;
            this.lightBulbBroker = lightBulbBroker;
            this.suggestedActionCategoryRegistryService = suggestedActionCategoryRegistryService;
            this.smartTagBroker = smartTagBroker;
            this.peekBroker     = peekBroker;

            AddShortcuts();
        }
コード例 #10
0
        public IntellisenseController(IPeekBroker peekBroker, ISignatureHelpBroker signatureHelpBroker, INavigationTokenService navigationService, ITextView textView)
        {
            _peekBroker          = peekBroker;
            _signatureHelpBroker = signatureHelpBroker;
            _textView            = textView;
            _navigationService   = navigationService;

            var asmType = _textView.TextSnapshot.GetAsmType();

            _signatureConfig = SignatureConfig.GetSignature(asmType);
        }
コード例 #11
0
        public IntellisenseControllerProvider(RadeonServiceProvider editorService,
                                              IPeekBroker peekBroker,
                                              ISignatureHelpBroker signatureHelpBroker,
                                              INavigationTokenService navigationService)
        {
            _adaptersFactoryService = editorService.EditorAdaptersFactoryService;
            _peekBroker             = peekBroker;
            _signatureHelpBroker    = signatureHelpBroker;
            _navigationService      = navigationService;

            var optionProvider = GeneralOptionProvider.Instance;

            optionProvider.OptionsUpdated += OptionsUpdated;
            OptionsUpdated(optionProvider);
        }
コード例 #12
0
 internal TextManager(
     IVsAdapter adapter,
     ITextDocumentFactoryService textDocumentFactoryService,
     ITextBufferFactoryService textBufferFactoryService,
     ISharedService sharedService,
     IPeekBroker peekBroker,
     SVsServiceProvider serviceProvider)
 {
     _vsAdapter                  = adapter;
     _serviceProvider            = serviceProvider;
     _textManager                = _serviceProvider.GetService <SVsTextManager, IVsTextManager>();
     _textDocumentFactoryService = textDocumentFactoryService;
     _textBufferFactoryService   = textBufferFactoryService;
     _runningDocumentTable       = _serviceProvider.GetService <SVsRunningDocumentTable, IVsRunningDocumentTable>();
     _sharedService              = sharedService;
     _peekBroker                 = peekBroker;
 }
コード例 #13
0
        public CommandFilter(ITextView textView, IPeekBroker peekBroker, ITelemetrySession telemetrySession)
        {
            if (textView == null)
            {
                throw new ArgumentNullException("textView");
            }

            if (peekBroker == null)
            {
                throw new ArgumentNullException("peekBroker");
            }

            if (telemetrySession == null)
            {
                throw new ArgumentNullException("telemetrySession");
            }

            _textView         = textView;
            _peekBroker       = peekBroker;
            _telemetrySession = telemetrySession;
        }
コード例 #14
0
ファイル: TacticReplacer.cs プロジェクト: ggrov/tacny
 public TacticReplacerProxy(ITextDocumentFactoryService tdf, IServiceProvider isp, IPeekBroker pb) {
   _status = (IVsStatusbar) isp.GetService(typeof(SVsStatusbar));
   RefactoringUtil.Tdf = tdf;
   _pb = pb;
   _activePeekSession = new Dictionary<string, ActivePeekSessionData>();
 }
コード例 #15
0
 public PeekDefinitionCommand(ITextView textView, ITextBuffer textBuffer, IPeekBroker peekBroker) :
    base(textView, new CommandId(typeof(VSConstants.VSStd12CmdID).GUID,
         (int)VSConstants.VSStd12CmdID.PeekDefinition), needCheckout: false) {
     _textBuffer = textBuffer;
     _peekBroker = peekBroker;
 }
コード例 #16
0
ファイル: TacticReplacer.cs プロジェクト: ggrov/tacny
 public TacticReplacerProxy(ITextDocumentFactoryService tdf, IServiceProvider isp, IPeekBroker pb) {
   Util.Status = (IVsStatusbar) isp.GetService(typeof(SVsStatusbar));
   Util.Tdf = tdf;
   _pb = pb;
 }