public GoToDefinitionFilterProvider(
            [Import(typeof(SVsServiceProvider))] System.IServiceProvider serviceProvider,
            IVsEditorAdaptersFactoryService editorFactory,
            IEditorOptionsFactoryService editorOptionsFactory,
            ITextDocumentFactoryService textDocumentFactoryService,
            [Import(typeof(DotNetReferenceSourceProvider))] ReferenceSourceProvider referenceSourceProvider,
            VSLanguageService fsharpVsLanguageService,
            ProjectFactory projectFactory)
        {
            _serviceProvider            = serviceProvider;
            _editorFactory              = editorFactory;
            _editorOptionsFactory       = editorOptionsFactory;
            _textDocumentFactoryService = textDocumentFactoryService;
            _referenceSourceProvider    = referenceSourceProvider;
            _fsharpVsLanguageService    = fsharpVsLanguageService;
            _projectFactory             = projectFactory;

            var dte    = serviceProvider.GetService(typeof(SDTE)) as DTE;
            var events = dte.Events as Events2;

            if (events != null)
            {
                _solutionEvents = events.SolutionEvents;
                _solutionEvents.AfterClosing += Cleanup;
            }
        }
        public GoToDefinitionFilterProvider(
            [Import(typeof(SVsServiceProvider))] System.IServiceProvider serviceProvider,
            IVsEditorAdaptersFactoryService editorFactory,
            IEditorOptionsFactoryService editorOptionsFactory,
            ITextDocumentFactoryService textDocumentFactoryService,
            [Import(typeof(DotNetReferenceSourceProvider))] ReferenceSourceProvider referenceSourceProvider,
            VSLanguageService fsharpVsLanguageService,
            ProjectFactory projectFactory)
        {
            _serviceProvider = serviceProvider;
            _editorFactory = editorFactory;
            _editorOptionsFactory = editorOptionsFactory;
            _textDocumentFactoryService = textDocumentFactoryService;
            _referenceSourceProvider = referenceSourceProvider;
            _fsharpVsLanguageService = fsharpVsLanguageService;
            _projectFactory = projectFactory;

            var dte = serviceProvider.GetService(typeof(SDTE)) as DTE;
            var events = dte.Events as Events2;
            if (events != null)
            {
                _solutionEvents = events.SolutionEvents;
                _solutionEvents.AfterClosing += Cleanup;
            }
        }
Пример #3
0
 public QuickInfoMarginProvider(
     [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider,
     ITextDocumentFactoryService textDocumentFactoryService,
     ProjectFactory projectFactory,
     VSLanguageService vsLanguageService)
 {
     _serviceProvider            = serviceProvider;
     _textDocumentFactoryService = textDocumentFactoryService;
     _projectFactory             = projectFactory;
     _vsLanguageService          = vsLanguageService;
 }
 public HighlightUsageTaggerProvider(
     [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider,
     ITextDocumentFactoryService textDocumentFactoryService,
     ProjectFactory projectFactory,
     VSLanguageService fsharpVsLanguageService)
 {
     _serviceProvider            = serviceProvider;
     _textDocumentFactoryService = textDocumentFactoryService;
     _projectFactory             = projectFactory;
     _fsharpVsLanguageService    = fsharpVsLanguageService;
 }
 public QuickInfoMarginProvider(
     [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider,
     ITextDocumentFactoryService textDocumentFactoryService,
     ProjectFactory projectFactory,
     VSLanguageService vsLanguageService)
 {
     _serviceProvider = serviceProvider;
     _textDocumentFactoryService = textDocumentFactoryService;
     _projectFactory = projectFactory;
     _vsLanguageService = vsLanguageService;
 }
Пример #6
0
 public DepthColorizerTaggerProvider(
     [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider,
     ITextDocumentFactoryService textDocumentFactoryService,
     ProjectFactory projectFactory,
     VSLanguageService vsLanguageService)
 {
     _serviceProvider            = serviceProvider;
     _textDocumentFactoryService = textDocumentFactoryService;
     _projectFactory             = projectFactory;
     _vsLanguageService          = vsLanguageService;
 }
 public RenameCommandFilterProvider(
     [Import(typeof(SVsServiceProvider))] System.IServiceProvider serviceProvider,
     ITextDocumentFactoryService textDocumentFactoryService,
     IVsEditorAdaptersFactoryService editorFactory,
     ProjectFactory projectFactory,
     VSLanguageService fsharpVsLanguageService)
 {
     _serviceProvider = serviceProvider;
     _textDocumentFactoryService = textDocumentFactoryService;
     _editorFactory = editorFactory;
     _projectFactory = projectFactory;
     _fsharpVsLanguageService = fsharpVsLanguageService;
 }
Пример #8
0
 public XmlDocCommandFilterProvider(
     [Import(typeof(SVsServiceProvider))] System.IServiceProvider serviceProvider,
     ITextDocumentFactoryService textDocumentFactoryService,
     IVsEditorAdaptersFactoryService editorFactory,
     ProjectFactory projectFactory,
     VSLanguageService fsharpVsLanguageService)
 {
     _serviceProvider            = serviceProvider;
     _textDocumentFactoryService = textDocumentFactoryService;
     _editorFactory           = editorFactory;
     _projectFactory          = projectFactory;
     _fsharpVsLanguageService = fsharpVsLanguageService;
 }
Пример #9
0
 public RecordStubGeneratorSmartTaggerProvider(
     [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider,
     ITextDocumentFactoryService textDocumentFactoryService,
     ITextUndoHistoryRegistry undoHistoryRegistry,
     ProjectFactory projectFactory,
     VSLanguageService fsharpVsLanguageService)
 {
     _serviceProvider            = serviceProvider;
     _textDocumentFactoryService = textDocumentFactoryService;
     _undoHistoryRegistry        = undoHistoryRegistry;
     _projectFactory             = projectFactory;
     _fsharpVsLanguageService    = fsharpVsLanguageService;
 }
Пример #10
0
 public LintTaggerProvider(
     [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider,
     ITextDocumentFactoryService textDocumentFactoryService,
     ProjectFactory projectFactory,
     VSLanguageService fsharpVsLanguageService,
     IOpenDocumentsTracker openDocumentTracker)
 {
     _serviceProvider            = serviceProvider;
     _textDocumentFactoryService = textDocumentFactoryService;
     _projectFactory             = projectFactory;
     _fsharpVsLanguageService    = fsharpVsLanguageService;
     _openDocumentTracker        = openDocumentTracker;
 }
 public ImplementInterfaceSmartTaggerProvider(
     [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider,
     ITextDocumentFactoryService textDocumentFactoryService,
     IEditorOptionsFactoryService editorOptionsFactory,
     ITextUndoHistoryRegistry undoHistoryRegistry,
     ProjectFactory projectFactory,
     VSLanguageService fsharpVsLanguageService)
 {
     _serviceProvider            = serviceProvider;
     _textDocumentFactoryService = textDocumentFactoryService;
     _editorOptionsFactory       = editorOptionsFactory;
     _undoHistoryRegistry        = undoHistoryRegistry;
     _projectFactory             = projectFactory;
     _fsharpVsLanguageService    = fsharpVsLanguageService;
 }
 public UnionPatternMatchCaseGeneratorSmartTaggerProvider(
     [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider,
     ITextDocumentFactoryService textDocumentFactoryService,
     ITextUndoHistoryRegistry undoHistoryRegistry,
     ProjectFactory projectFactory,
     VSLanguageService fsharpVsLanguageService,
     IOpenDocumentsTracker openDocumentsTracker)
 {
     _serviceProvider            = serviceProvider;
     _textDocumentFactoryService = textDocumentFactoryService;
     _undoHistoryRegistry        = undoHistoryRegistry;
     _projectFactory             = projectFactory;
     _fsharpVsLanguageService    = fsharpVsLanguageService;
     _openDocumentsTracker       = openDocumentsTracker;
 }
 public FindReferencesFilterProvider(
     [Import(typeof(SVsServiceProvider))] System.IServiceProvider serviceProvider,
     ITextDocumentFactoryService textDocumentFactoryService,
     IVsEditorAdaptersFactoryService editorFactory,
     FileSystem fileSystem,
     ProjectFactory projectFactory,
     VSLanguageService fsharpVsLanguageService)
 {
     _serviceProvider = serviceProvider;
     _textDocumentFactoryService = textDocumentFactoryService;
     _editorFactory = editorFactory;
     _fileSystem = fileSystem;
     _projectFactory = projectFactory;
     _fsharpVsLanguageService = fsharpVsLanguageService;
 }
 public FindReferencesFilterProvider(
     [Import(typeof(SVsServiceProvider))] System.IServiceProvider serviceProvider,
     ITextDocumentFactoryService textDocumentFactoryService,
     IVsEditorAdaptersFactoryService editorFactory,
     FileSystem fileSystem,
     ProjectFactory projectFactory,
     VSLanguageService fsharpVsLanguageService)
 {
     _serviceProvider            = serviceProvider;
     _textDocumentFactoryService = textDocumentFactoryService;
     _editorFactory           = editorFactory;
     _fileSystem              = fileSystem;
     _projectFactory          = projectFactory;
     _fsharpVsLanguageService = fsharpVsLanguageService;
 }
        public PrintfSpecifiersUsageTaggerProvider(
            [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider,
            ITextDocumentFactoryService textDocumentFactoryService,
            ProjectFactory projectFactory,
            VSLanguageService fsharpVsLanguageService,
            PrintfColorManager printfColorManager)
        {
            _serviceProvider            = serviceProvider;
            _textDocumentFactoryService = textDocumentFactoryService;
            _projectFactory             = projectFactory;
            _fsharpVsLanguageService    = fsharpVsLanguageService;
            _printfColorManager         = printfColorManager;

            VSColorTheme.ThemeChanged += UpdateTheme;
        }
Пример #16
0
 public OutliningTaggerProvider(
     [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider,
     ITextDocumentFactoryService textDocumentFactoryService,
     ITextEditorFactoryService textEditorFactoryService,
     IProjectionBufferFactoryService projectionBufferFactoryService,
     IOutliningManagerService outliningManagerService,
     ProjectFactory projectFactory,
     VSLanguageService vsLanguageService)
 {
     _serviceProvider = serviceProvider;
     _textDocumentFactoryService = textDocumentFactoryService;
     _textEditorFactoryService = textEditorFactoryService;
     _projectionBufferFactoryService = projectionBufferFactoryService;
     _outliningManagerService = outliningManagerService;
     _projectFactory = projectFactory;
     _vsLanguageService = vsLanguageService;
 }
        public UnusedSymbolClassifierProvider(
            [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider,
            ClassificationColorManager classificationColorManager,
            IClassificationTypeRegistryService classificationRegistry,
            ITextDocumentFactoryService textDocumentFactoryService,
            VSLanguageService fsharpVsLanguageService,
            ProjectFactory projectFactory)
        {
            _serviceProvider            = serviceProvider;
            _classificationColorManager = classificationColorManager;
            _classificationRegistry     = classificationRegistry;
            _textDocumentFactoryService = textDocumentFactoryService;
            _fsharpVsLanguageService    = fsharpVsLanguageService;
            _projectFactory             = projectFactory;

            // Receive notification for Visual Studio theme change
            VSColorTheme.ThemeChanged += UpdateTheme;
        }
Пример #18
0
        public SyntaxConstructClassifierProvider(
            [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider,
            ShellEventListener shellEventListener,
            ClassificationColorManager classificationColorManager,
            IClassificationTypeRegistryService classificationRegistry,
            ITextDocumentFactoryService textDocumentFactoryService,
            VSLanguageService fsharpVsLanguageService,
            ProjectFactory projectFactory)
        {
            _serviceProvider            = serviceProvider;
            _classificationColorManager = classificationColorManager;
            _classificationRegistry     = classificationRegistry;
            _textDocumentFactoryService = textDocumentFactoryService;
            _shellEventListener         = shellEventListener;
            _fsharpVsLanguageService    = fsharpVsLanguageService;
            _projectFactory             = projectFactory;

            // Receive notification for Visual Studio theme change
            _shellEventListener.ThemeChanged += UpdateTheme;
        }
 public CodeFormattingHookHelper(
     [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider, 
     IVsEditorAdaptersFactoryService adaptersFactory, 
     IEditorOptionsFactoryService editorOptionsFactory,
     IEditorOperationsFactoryService editorOperationsFactoryService,
     ITextBufferUndoManagerProvider textBufferUndoManagerProvider,
     ITextDocumentFactoryService textDocumentFactoryService,
     ProjectFactory projectFactory,
     VSLanguageService vsLanguageService,
     IOpenDocumentsTracker openDocumentTracker)
 {
     _serviceProvider = serviceProvider;
     _adaptersFactory = adaptersFactory;
     _editorOptionsFactory = editorOptionsFactory;
     _editorOperationsFactoryService = editorOperationsFactoryService;
     _textBufferUndoManagerProvider = textBufferUndoManagerProvider;
     _textDocumentFactoryService = textDocumentFactoryService;
     _projectFactory = projectFactory;
     _vsLanguageService = vsLanguageService;
     _openDocumentTracker = openDocumentTracker;
 }
 public CodeFormattingHookHelper(
     [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider,
     IVsEditorAdaptersFactoryService adaptersFactory,
     IEditorOptionsFactoryService editorOptionsFactory,
     IEditorOperationsFactoryService editorOperationsFactoryService,
     ITextBufferUndoManagerProvider textBufferUndoManagerProvider,
     ITextDocumentFactoryService textDocumentFactoryService,
     ProjectFactory projectFactory,
     VSLanguageService vsLanguageService,
     IOpenDocumentsTracker openDocumentTracker)
 {
     _serviceProvider                = serviceProvider;
     _adaptersFactory                = adaptersFactory;
     _editorOptionsFactory           = editorOptionsFactory;
     _editorOperationsFactoryService = editorOperationsFactoryService;
     _textBufferUndoManagerProvider  = textBufferUndoManagerProvider;
     _textDocumentFactoryService     = textDocumentFactoryService;
     _projectFactory      = projectFactory;
     _vsLanguageService   = vsLanguageService;
     _openDocumentTracker = openDocumentTracker;
 }