public StateMachine(ITextBuffer buffer, IInlineRenameService inlineRenameService, IAsynchronousOperationListener asyncListener)
 {
     _buffer = buffer;
     _buffer.Changed += Buffer_Changed;
     _inlineRenameService = inlineRenameService;
     _asyncListener = asyncListener;
 }
Ejemplo n.º 2
0
 public ExtractMethodCommandHandler(
     IThreadingContext threadingContext,
     ITextBufferUndoManagerProvider undoManager,
     IInlineRenameService renameService
     ) : base(threadingContext, undoManager, renameService)
 {
 }
Ejemplo n.º 3
0
 public StateMachine(ITextBuffer buffer, IInlineRenameService inlineRenameService, IAsynchronousOperationListener asyncListener)
 {
     _buffer              = buffer;
     _buffer.Changed     += Buffer_Changed;
     _inlineRenameService = inlineRenameService;
     _asyncListener       = asyncListener;
 }
Ejemplo n.º 4
0
 public ExtractMethodCommandHandler(
     ITextBufferUndoManagerProvider undoManager,
     IEditorOperationsFactoryService editorOperationsFactoryService,
     IInlineRenameService renameService)
     : base(undoManager, editorOperationsFactoryService, renameService)
 {
 }
Ejemplo n.º 5
0
 public ExtractMethodCommandHandler(
     ITextBufferUndoManagerProvider undoManager,
     IEditorOperationsFactoryService editorOperationsFactoryService,
     IInlineRenameService renameService,
     IWaitIndicator waitIndicator) :
     base(undoManager, editorOperationsFactoryService, renameService, waitIndicator)
 {
 }
Ejemplo n.º 6
0
 public CodeActionEditHandlerService(
     IPreviewFactoryService previewService,
     IInlineRenameService renameService,
     ITextBufferAssociatedViewService associatedViewService)
 {
     _previewService = previewService;
     _renameService = renameService;
     _associatedViewService = associatedViewService;
 }
Ejemplo n.º 7
0
 public CodeActionEditHandlerService(
     IPreviewFactoryService previewService,
     IInlineRenameService renameService,
     ITextBufferAssociatedViewService associatedViewService)
 {
     _previewService        = previewService;
     _renameService         = renameService;
     _associatedViewService = associatedViewService;
 }
        public AbstractExtractMethodCommandHandler(
            ITextBufferUndoManagerProvider undoManager,
            IInlineRenameService renameService)
        {
            Contract.ThrowIfNull(undoManager);
            Contract.ThrowIfNull(renameService);

            _undoManager   = undoManager;
            _renameService = renameService;
        }
 public QuickInfoCommandHandlerAndSourceProvider(
     IInlineRenameService inlineRenameService,
     [ImportMany] IEnumerable <Lazy <IQuickInfoProvider, OrderableLanguageMetadata> > providers,
     [ImportMany] IEnumerable <Lazy <IAsynchronousOperationListener, FeatureMetadata> > asyncListeners,
     [ImportMany] IEnumerable <Lazy <IIntelliSensePresenter <IQuickInfoPresenterSession, IQuickInfoSession>, OrderableMetadata> > presenters)
     : this(inlineRenameService,
            ExtensionOrderer.Order(presenters).Select(lazy => lazy.Value).FirstOrDefault(),
            providers, asyncListeners)
 {
 }
Ejemplo n.º 10
0
 public SignatureHelpCommandHandler(
     IInlineRenameService inlineRenameService,
     [ImportMany] IEnumerable <Lazy <ISignatureHelpProvider, OrderableLanguageMetadata> > signatureHelpProviders,
     [ImportMany] IEnumerable <Lazy <IAsynchronousOperationListener, FeatureMetadata> > asyncListeners,
     [ImportMany] IEnumerable <Lazy <IIntelliSensePresenter <ISignatureHelpPresenterSession, ISignatureHelpSession>, OrderableMetadata> > signatureHelpPresenters)
     : this(inlineRenameService,
            ExtensionOrderer.Order(signatureHelpPresenters).Select(lazy => lazy.Value).FirstOrDefault(),
            signatureHelpProviders, asyncListeners)
 {
 }
        public EventHookupCommandHandler(
            IInlineRenameService inlineRenameService,
            IAsynchronousOperationListenerProvider listenerProvider,
            EventHookupSessionManager eventHookupSessionManager)
        {
            _inlineRenameService = inlineRenameService;
            _asyncListener       = listenerProvider.GetListener(FeatureAttribute.EventHookup);

            this.EventHookupSessionManager = eventHookupSessionManager;
        }
 public RenameTrackingTaggerProvider(
     IThreadingContext threadingContext,
     IInlineRenameService inlineRenameService,
     IDiagnosticAnalyzerService diagnosticAnalyzerService,
     IAsynchronousOperationListenerProvider listenerProvider)
 {
     _threadingContext          = threadingContext;
     _inlineRenameService       = inlineRenameService;
     _diagnosticAnalyzerService = diagnosticAnalyzerService;
     _asyncListener             = listenerProvider.GetListener(FeatureAttribute.RenameTracking);
 }
Ejemplo n.º 13
0
 public CodeActionEditHandlerService(
     IThreadingContext threadingContext,
     IPreviewFactoryService previewService,
     IInlineRenameService renameService,
     ITextBufferAssociatedViewService associatedViewService)
     : base(threadingContext)
 {
     _previewService        = previewService;
     _renameService         = renameService;
     _associatedViewService = associatedViewService;
 }
Ejemplo n.º 14
0
 // For testing purposes.
 public SignatureHelpCommandHandler(
     IInlineRenameService inlineRenameService,
     IIntelliSensePresenter <ISignatureHelpPresenterSession, ISignatureHelpSession> signatureHelpPresenter,
     [ImportMany] IEnumerable <Lazy <ISignatureHelpProvider, OrderableLanguageMetadata> > signatureHelpProviders,
     [ImportMany] IEnumerable <Lazy <IAsynchronousOperationListener, FeatureMetadata> > asyncListeners)
 {
     _inlineRenameService    = inlineRenameService;
     _signatureHelpProviders = ExtensionOrderer.Order(signatureHelpProviders);
     _asyncListeners         = asyncListeners;
     _signatureHelpPresenter = signatureHelpPresenter;
 }
 // For testing purposes.
 public QuickInfoCommandHandlerAndSourceProvider(
     IInlineRenameService inlineRenameService,
     IIntelliSensePresenter <IQuickInfoPresenterSession, IQuickInfoSession> presenter,
     [ImportMany] IEnumerable <Lazy <IQuickInfoProvider, OrderableLanguageMetadata> > providers,
     [ImportMany] IEnumerable <Lazy <IAsynchronousOperationListener, FeatureMetadata> > asyncListeners)
 {
     _inlineRenameService = inlineRenameService;
     _providers           = ExtensionOrderer.Order(providers);
     _asyncListeners      = asyncListeners;
     _presenter           = presenter;
 }
 public StateMachine(
     ITextBuffer buffer,
     IInlineRenameService inlineRenameService,
     IAsynchronousOperationListener asyncListener,
     IDiagnosticAnalyzerService diagnosticAnalyzerService)
 {
     _buffer = buffer;
     _buffer.Changed += Buffer_Changed;
     _inlineRenameService = inlineRenameService;
     _asyncListener = asyncListener;
     _diagnosticAnalyzerService = diagnosticAnalyzerService;
 }
 public StateMachine(
     ITextBuffer buffer,
     IInlineRenameService inlineRenameService,
     IAsynchronousOperationListener asyncListener,
     IDiagnosticAnalyzerService diagnosticAnalyzerService)
 {
     _buffer                    = buffer;
     _buffer.Changed           += Buffer_Changed;
     _inlineRenameService       = inlineRenameService;
     _asyncListener             = asyncListener;
     _diagnosticAnalyzerService = diagnosticAnalyzerService;
 }
Ejemplo n.º 18
0
 public AsyncCompletionService(
     IEditorOperationsFactoryService editorOperationsFactoryService,
     ITextUndoHistoryRegistry undoHistoryRegistry,
     IInlineRenameService inlineRenameService,
     IAsynchronousOperationListenerProvider listenerProvider,
     [ImportMany] IEnumerable <Lazy <IIntelliSensePresenter <ICompletionPresenterSession, ICompletionSession>, OrderableMetadata> > completionPresenters,
     [ImportMany] IEnumerable <Lazy <IBraceCompletionSessionProvider, BraceCompletionMetadata> > autoBraceCompletionChars)
     : this(editorOperationsFactoryService, undoHistoryRegistry, inlineRenameService, listenerProvider,
            ExtensionOrderer.Order(completionPresenters).Select(lazy => lazy.Value).FirstOrDefault(),
            autoBraceCompletionChars)
 {
 }
Ejemplo n.º 19
0
        public AbstractExtractMethodCommandHandler(
            ITextBufferUndoManagerProvider undoManager,
            IEditorOperationsFactoryService editorOperationsFactoryService,
            IInlineRenameService renameService)
        {
            Contract.ThrowIfNull(undoManager);
            Contract.ThrowIfNull(editorOperationsFactoryService);
            Contract.ThrowIfNull(renameService);

            _undoManager = undoManager;
            _editorOperationsFactoryService = editorOperationsFactoryService;
            _renameService = renameService;
        }
Ejemplo n.º 20
0
 public RenameTrackingTaggerProvider(
     ITextUndoHistoryRegistry undoHistoryRegistry,
     IWaitIndicator waitIndicator,
     IInlineRenameService inlineRenameService,
     [ImportMany] IEnumerable <IRefactorNotifyService> refactorNotifyServices,
     [ImportMany] IEnumerable <Lazy <IAsynchronousOperationListener, FeatureMetadata> > asyncListeners)
 {
     _undoHistoryRegistry    = undoHistoryRegistry;
     _waitIndicator          = waitIndicator;
     _inlineRenameService    = inlineRenameService;
     _refactorNotifyServices = refactorNotifyServices;
     _asyncListener          = new AggregateAsynchronousOperationListener(asyncListeners, FeatureAttribute.RenameTracking);
 }
Ejemplo n.º 21
0
 public AsyncCompletionService(
     IEditorOperationsFactoryService editorOperationsFactoryService,
     ITextUndoHistoryRegistry undoHistoryRegistry,
     IInlineRenameService inlineRenameService,
     [ImportMany] IEnumerable<Lazy<IAsynchronousOperationListener, FeatureMetadata>> asyncListeners,
     [ImportMany] IEnumerable<Lazy<IIntelliSensePresenter<ICompletionPresenterSession, ICompletionSession>, OrderableMetadata>> completionPresenters,
     [ImportMany] IEnumerable<Lazy<ICompletionProvider, OrderableLanguageMetadata>> allCompletionProviders,
     [ImportMany] IEnumerable<Lazy<IBraceCompletionSessionProvider, IBraceCompletionMetadata>> autoBraceCompletionChars)
     : this(editorOperationsFactoryService, undoHistoryRegistry, inlineRenameService,
           ExtensionOrderer.Order(completionPresenters).Select(lazy => lazy.Value).FirstOrDefault(),
           asyncListeners, allCompletionProviders, autoBraceCompletionChars)
 {
 }
        public EventHookupCommandHandler(
            IInlineRenameService inlineRenameService,
            Microsoft.CodeAnalysis.Editor.Host.IWaitIndicator waitIndicator,
            IQuickInfoBroker quickInfoBroker,
            [Import(AllowDefault = true)] IHACK_EventHookupDismissalOnBufferChangePreventerService prematureDismissalPreventer,
            [ImportMany] IEnumerable <Lazy <IAsynchronousOperationListener, FeatureMetadata> > asyncListeners)
        {
            _inlineRenameService         = inlineRenameService;
            _waitIndicator               = waitIndicator;
            _prematureDismissalPreventer = prematureDismissalPreventer;
            _asyncListener               = new AggregateAsynchronousOperationListener(asyncListeners, FeatureAttribute.EventHookup);

            this.EventHookupSessionManager = new EventHookupSessionManager(prematureDismissalPreventer, quickInfoBroker);
        }
        public EventHookupCommandHandler(
            IThreadingContext threadingContext,
            IInlineRenameService inlineRenameService,
            EventHookupSessionManager eventHookupSessionManager,
            IGlobalOptionService globalOptions,
            IAsynchronousOperationListenerProvider listenerProvider)
        {
            _threadingContext    = threadingContext;
            _inlineRenameService = inlineRenameService;
            _asyncListener       = listenerProvider.GetListener(FeatureAttribute.EventHookup);
            _globalOptions       = globalOptions;

            this.EventHookupSessionManager = eventHookupSessionManager;
        }
Ejemplo n.º 24
0
        public EventHookupCommandHandler(
            IInlineRenameService inlineRenameService,
#pragma warning disable CS0618 // IQuickInfo* is obsolete, tracked by https://github.com/dotnet/roslyn/issues/24094
            IQuickInfoBroker quickInfoBroker,
#pragma warning restore CS0618 // IQuickInfo* is obsolete, tracked by https://github.com/dotnet/roslyn/issues/24094
            [Import(AllowDefault = true)] IHACK_EventHookupDismissalOnBufferChangePreventerService prematureDismissalPreventer,
            IAsynchronousOperationListenerProvider listenerProvider)
        {
            _inlineRenameService         = inlineRenameService;
            _prematureDismissalPreventer = prematureDismissalPreventer;
            _asyncListener = listenerProvider.GetListener(FeatureAttribute.EventHookup);

            this.EventHookupSessionManager = new EventHookupSessionManager(prematureDismissalPreventer, quickInfoBroker);
        }
Ejemplo n.º 25
0
        public EventHookupCommandHandler(
            IInlineRenameService inlineRenameService,
            Microsoft.CodeAnalysis.Editor.Host.IWaitIndicator waitIndicator,
            IQuickInfoBroker quickInfoBroker,
            [Import(AllowDefault = true)] IHACK_EventHookupDismissalOnBufferChangePreventerService prematureDismissalPreventer,
            [ImportMany] IEnumerable<Lazy<IAsynchronousOperationListener, FeatureMetadata>> asyncListeners)
        {
            _inlineRenameService = inlineRenameService;
            _waitIndicator = waitIndicator;
            _prematureDismissalPreventer = prematureDismissalPreventer;
            _asyncListener = new AggregateAsynchronousOperationListener(asyncListeners, FeatureAttribute.EventHookup);

            this.EventHookupSessionManager = new EventHookupSessionManager(prematureDismissalPreventer, quickInfoBroker);
        }
Ejemplo n.º 26
0
        public EventHookupCommandHandler(
            IInlineRenameService inlineRenameService,
            Microsoft.CodeAnalysis.Editor.Host.IWaitIndicator waitIndicator,
            IQuickInfoBroker quickInfoBroker,
            [Import(AllowDefault = true)] IHACK_EventHookupDismissalOnBufferChangePreventerService prematureDismissalPreventer,
            IAsynchronousOperationListenerProvider listenerProvider)
        {
            _inlineRenameService         = inlineRenameService;
            _waitIndicator               = waitIndicator;
            _prematureDismissalPreventer = prematureDismissalPreventer;
            _asyncListener               = listenerProvider.GetListener(FeatureAttribute.EventHookup);

            this.EventHookupSessionManager = new EventHookupSessionManager(prematureDismissalPreventer, quickInfoBroker);
        }
Ejemplo n.º 27
0
        public AbstractExtractMethodCommandHandler(
            IThreadingContext threadingContext,
            ITextBufferUndoManagerProvider undoManager,
            IInlineRenameService renameService,
            IGlobalOptionService globalOptions)
        {
            Contract.ThrowIfNull(threadingContext);
            Contract.ThrowIfNull(undoManager);
            Contract.ThrowIfNull(renameService);

            _threadingContext = threadingContext;
            _undoManager      = undoManager;
            _renameService    = renameService;
            _globalOptions    = globalOptions;
        }
 public RenameTrackingTaggerProvider(
     ITextUndoHistoryRegistry undoHistoryRegistry,
     IWaitIndicator waitIndicator,
     IInlineRenameService inlineRenameService,
     IDiagnosticAnalyzerService diagnosticAnalyzerService,
     [ImportMany] IEnumerable <IRefactorNotifyService> refactorNotifyServices,
     IAsynchronousOperationListenerProvider listenerProvider)
 {
     _undoHistoryRegistry       = undoHistoryRegistry;
     _waitIndicator             = waitIndicator;
     _inlineRenameService       = inlineRenameService;
     _refactorNotifyServices    = refactorNotifyServices;
     _diagnosticAnalyzerService = diagnosticAnalyzerService;
     _asyncListener             = listenerProvider.GetListener(FeatureAttribute.RenameTracking);
 }
Ejemplo n.º 29
0
 public AsyncCompletionService(
     IEditorOperationsFactoryService editorOperationsFactoryService,
     ITextUndoHistoryRegistry undoHistoryRegistry,
     IInlineRenameService inlineRenameService,
     IIntelliSensePresenter <ICompletionPresenterSession, ICompletionSession> completionPresenter,
     IEnumerable <Lazy <IAsynchronousOperationListener, FeatureMetadata> > asyncListeners,
     IEnumerable <Lazy <IBraceCompletionSessionProvider, BraceCompletionMetadata> > autoBraceCompletionChars)
 {
     _editorOperationsFactoryService = editorOperationsFactoryService;
     _undoHistoryRegistry            = undoHistoryRegistry;
     _inlineRenameService            = inlineRenameService;
     _completionPresenter            = completionPresenter;
     _asyncListeners             = asyncListeners;
     _autoBraceCompletionChars   = autoBraceCompletionChars;
     _autoBraceCompletionCharSet = new Dictionary <IContentType, ImmutableHashSet <char> >();
 }
Ejemplo n.º 30
0
 public StateMachine(
     IThreadingContext threadingContext,
     ITextBuffer buffer,
     IInlineRenameService inlineRenameService,
     IDiagnosticAnalyzerService diagnosticAnalyzerService,
     IGlobalOptionService globalOptions,
     IAsynchronousOperationListener asyncListener)
 {
     ThreadingContext           = threadingContext;
     _buffer                    = buffer;
     _buffer.Changed           += Buffer_Changed;
     _inlineRenameService       = inlineRenameService;
     _asyncListener             = asyncListener;
     _diagnosticAnalyzerService = diagnosticAnalyzerService;
     GlobalOptions              = globalOptions;
 }
        public ExtractMethodCommandHandler(
            IThreadingContext threadingContext,
            ITextBufferUndoManagerProvider undoManager,
            IInlineRenameService renameService,
            IGlobalOptionService globalOptions,
            IAsynchronousOperationListenerProvider asyncListenerProvider)
        {
            Contract.ThrowIfNull(threadingContext);
            Contract.ThrowIfNull(undoManager);
            Contract.ThrowIfNull(renameService);

            _threadingContext = threadingContext;
            _undoManager      = undoManager;
            _renameService    = renameService;
            _globalOptions    = globalOptions;
            _asyncListener    = asyncListenerProvider.GetListener(FeatureAttribute.ExtractMethod);
        }
Ejemplo n.º 32
0
        public AsyncCompletionService(
            IEditorOperationsFactoryService editorOperationsFactoryService,
            ITextUndoHistoryRegistry undoHistoryRegistry,
            IInlineRenameService inlineRenameService,
            IAsynchronousOperationListenerProvider listenerProvider,
            [ImportMany] IEnumerable <Lazy <IIntelliSensePresenter <ICompletionPresenterSession, ICompletionSession>, OrderableMetadata> > completionPresenters,
            [ImportMany] IEnumerable <Lazy <IBraceCompletionSessionProvider, BraceCompletionMetadata> > autoBraceCompletionChars)
        {
            _editorOperationsFactoryService = editorOperationsFactoryService;
            _undoHistoryRegistry            = undoHistoryRegistry;
            _inlineRenameService            = inlineRenameService;
            _completionPresenter            = ExtensionOrderer.Order(completionPresenters).Select(lazy => lazy.Value).FirstOrDefault();
            _listener = listenerProvider.GetListener(FeatureAttribute.CompletionSet);

            _autoBraceCompletionChars   = autoBraceCompletionChars;
            _autoBraceCompletionCharSet = new Dictionary <IContentType, ImmutableHashSet <char> >();
        }
Ejemplo n.º 33
0
 public AsyncCompletionService(
     IEditorOperationsFactoryService editorOperationsFactoryService,
     ITextUndoHistoryRegistry undoHistoryRegistry,
     IInlineRenameService inlineRenameService,
     IIntelliSensePresenter<ICompletionPresenterSession, ICompletionSession> completionPresenter,
     IEnumerable<Lazy<IAsynchronousOperationListener, FeatureMetadata>> asyncListeners,
     IEnumerable<Lazy<ICompletionProvider, OrderableLanguageMetadata>> allCompletionProviders,
     IEnumerable<Lazy<IBraceCompletionSessionProvider, IBraceCompletionMetadata>> autoBraceCompletionChars)
 {
     _editorOperationsFactoryService = editorOperationsFactoryService;
     _undoHistoryRegistry = undoHistoryRegistry;
     _inlineRenameService = inlineRenameService;
     _completionPresenter = completionPresenter;
     _asyncListeners = asyncListeners;
     _allCompletionProviders = ExtensionOrderer.Order(allCompletionProviders);
     _autoBraceCompletionChars = autoBraceCompletionChars;
     _autoBraceCompletionCharSet = new Dictionary<IContentType, ImmutableHashSet<char>>();
 }
Ejemplo n.º 34
0
 public ExtractMethodCommandHandler(
     ITextBufferUndoManagerProvider undoManager,
     IInlineRenameService renameService)
     : base(undoManager, renameService)
 {
 }
 public EditorLayerCodeActionHelpersService(IInlineRenameService renameService)
 {
     _renameService = renameService;
 }
Ejemplo n.º 36
0
 public EditorLayerCodeActionHelpersService(IInlineRenameService renameService)
 => _renameService = renameService;