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;
 }
コード例 #4
0
 public HighlightUsageTaggerProvider(
     [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider,
     ITextDocumentFactoryService textDocumentFactoryService,
     ProjectFactory projectFactory,
     VSLanguageService fsharpVsLanguageService)
 {
     _serviceProvider            = serviceProvider;
     _textDocumentFactoryService = textDocumentFactoryService;
     _projectFactory             = projectFactory;
     _fsharpVsLanguageService    = fsharpVsLanguageService;
 }
コード例 #5
0
 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;
 }
コード例 #11
0
 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;
 }
コード例 #13
0
 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;
 }
コード例 #14
0
 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;
 }
コード例 #17
0
        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;
        }
コード例 #19
0
 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;
 }
コード例 #20
0
 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;
 }