72 references to ComponentModel
Microsoft.VisualStudio.LanguageServices (56)
LanguageService\AbstractLanguageService`2.cs (12)
93_ = this.Package.ComponentModel; 138this.EditorOptionsService = this.Package.ComponentModel.GetService<EditorOptionsService>(); 139this.Workspace = this.Package.ComponentModel.GetService<VisualStudioWorkspaceImpl>(); 140this.EditorAdaptersFactoryService = this.Package.ComponentModel.GetService<IVsEditorAdaptersFactoryService>(); 141this.AnalyzerFileWatcherService = this.Package.ComponentModel.GetService<AnalyzerFileWatcherService>(); 186var workspace = Package.ComponentModel.GetService<VisualStudioWorkspace>(); 191v, Package.ComponentModel).AttachToVsTextView()); 203var globalOptions = this.Package.ComponentModel.GetService<IGlobalOptionService>(); 233var outliningManagerService = this.Package.ComponentModel.GetService<IOutliningManagerService>(); 272this.Package.ComponentModel.GetService<IThreadingContext>(), 273this.Package.ComponentModel.GetService<IUIThreadOperationExecutor>()); 285this.Package.ComponentModel,
LanguageService\AbstractLanguageService`2.IVsImmediateStatementCompletion2.cs (2)
57this.Package.ComponentModel, 58this.Package.ComponentModel.GetService<IFeatureServiceFactory>());
LanguageService\AbstractLanguageService`2.IVsLanguageBlock.cs (1)
43var uiThreadOperationExecutor = this.Package.ComponentModel.GetService<IUIThreadOperationExecutor>();
LanguageService\AbstractLanguageService`2.IVsLanguageTextOps.cs (1)
31var uiThreadOperationExecutor = this.Package.ComponentModel.GetService<IUIThreadOperationExecutor>();
LanguageService\AbstractLanguageService`2.VsCodeWindowManager.cs (7)
49_globalOptions = languageService.Package.ComponentModel.GetService<IGlobalOptionService>(); 161var controllerFactoryService = _languageService.Package.ComponentModel.GetService<INavigationBarControllerFactoryService>(); 247var languageServiceBroker = _languageService.Package.ComponentModel.GetService<ILanguageServiceBroker2>(); 248var threadingContext = _languageService.Package.ComponentModel.GetService<IThreadingContext>(); 249var asyncListenerProvider = _languageService.Package.ComponentModel.GetService<IAsynchronousOperationListenerProvider>(); 251var editorAdaptersFactoryService = _languageService.Package.ComponentModel.GetService<IVsEditorAdaptersFactoryService>(); 278var threadingContext = _languageService.Package.ComponentModel.GetService<IThreadingContext>();
LanguageService\AbstractPackage`2.cs (2)
67var miscellaneousFilesWorkspace = this.ComponentModel.GetService<MiscellaneousFilesWorkspace>(); 94var workspace = ComponentModel.GetService<VisualStudioWorkspace>();
RoslynPackage.cs (23)
156LoadOptionPersistersAsync(this.ComponentModel, cancellationToken).Forget(); 164var globalNotificationService = this.ComponentModel.GetService<IGlobalOperationNotificationService>(); 170var settingsEditorFactory = this.ComponentModel.GetService<SettingsEditorFactory>(); 176await this.ComponentModel.GetService<MiscellaneousFilesWorkspace>().InitializeAsync(this).ConfigureAwait(false); 183(_, _, _, _) => ValueTaskFactory.FromResult<object?>(new WorkspaceProjectFactoryService(this.ComponentModel.GetService<IWorkspaceProjectContextFactory>()))); 206_colorSchemeApplier = ComponentModel.GetService<ColorSchemeApplier>(); 223await this.ComponentModel.GetService<TaskCenterSolutionAnalysisProgressReporter>().InitializeAsync(this).ConfigureAwait(false); 224await this.ComponentModel.GetService<VisualStudioSuppressionFixService>().InitializeAsync(this).ConfigureAwait(false); 225await this.ComponentModel.GetService<VisualStudioDiagnosticListTableCommandHandler>().InitializeAsync(this, cancellationToken).ConfigureAwait(false); 226await this.ComponentModel.GetService<VisualStudioDiagnosticListSuppressionStateService>().InitializeAsync(this, cancellationToken).ConfigureAwait(false); 228await this.ComponentModel.GetService<VisualStudioMetadataAsSourceFileSupportService>().InitializeAsync(this, cancellationToken).ConfigureAwait(false); 231await this.ComponentModel.GetService<VisualStudioAddSolutionItemService>().InitializeAsync(this).ConfigureAwait(false); 233await this.ComponentModel.GetService<IVisualStudioDiagnosticAnalyzerService>().InitializeAsync(this, cancellationToken).ConfigureAwait(false); 234await this.ComponentModel.GetService<RemoveUnusedReferencesCommandHandler>().InitializeAsync(this, cancellationToken).ConfigureAwait(false); 235await this.ComponentModel.GetService<SyncNamespacesCommandHandler>().InitializeAsync(this, cancellationToken).ConfigureAwait(false); 273await ComponentModel.DefaultExportProvider.GetExportedValue<KeybindingReset.KeybindingResetDetector>().InitializeAsync().ConfigureAwait(true); 287var threadingContext = ComponentModel.GetService<IThreadingContext>(); 289await new CSharpResetInteractiveMenuCommand(menuCommandService, monitorSelectionService, ComponentModel, threadingContext) 293await new VisualBasicResetInteractiveMenuCommand(menuCommandService, monitorSelectionService, ComponentModel, threadingContext) 330ComponentModel.GetService<VisualStudioSourceGeneratorTelemetryCollectorWorkspaceServiceFactory>().ReportOtherWorkspaceTelemetry(); 335await this.ComponentModel.GetService<IAnalyzerNodeSetup>().InitializeAsync(this, cancellationToken).ConfigureAwait(false); 337_ruleSetEventHandler = this.ComponentModel.GetService<RuleSetEventHandler>(); 343=> this.ComponentModel.GetService<IAnalyzerNodeSetup>().Unregister();
StackTraceExplorer\StackTraceExplorerCommandHandler.cs (2)
30_threadingContext = package.ComponentModel.GetService<IThreadingContext>(); 31_globalOptions = package.ComponentModel.GetService<IGlobalOptionService>();
StackTraceExplorer\StackTraceExplorerToolWindow.cs (5)
124var workspace = roslynPackage.ComponentModel.GetService<VisualStudioWorkspace>(); 125var formatMapService = roslynPackage.ComponentModel.GetService<IClassificationFormatMapService>(); 127var typeMap = roslynPackage.ComponentModel.GetService<ClassificationTypeMap>(); 128var threadingContext = roslynPackage.ComponentModel.GetService<IThreadingContext>(); 129var themingService = roslynPackage.ComponentModel.GetService<IWpfThemeService>();
Venus\VenusCommandFilter`2.cs (1)
30: base(wpfTextView, subjectBuffer, nextCommandTarget, languageService.Package.ComponentModel)
Microsoft.VisualStudio.LanguageServices.CSharp (7)
CSharpPackage.cs (5)
74var workspace = this.ComponentModel.GetService<VisualStudioWorkspace>(); 86var workspace = this.ComponentModel.GetService<VisualStudioWorkspace>(); 92_libraryManager = new ObjectBrowserLibraryManager(this, ComponentModel, workspace); 130return new Options.AutomationObject(ComponentModel.GetService<ILegacyGlobalOptionService>()); 138var editorFactory = new CSharpEditorFactory(this.ComponentModel);
LanguageService\CSharpLanguageService.cs (1)
86this.Package.ComponentModel,
LanguageService\CSharpLanguageService_ICSharpProjectHost.cs (1)
29this.Package.ComponentModel.GetService<IThreadingContext>());
Microsoft.VisualStudio.LanguageServices.VisualBasic (9)
LanguageService\VisualBasicLanguageService.vb (2)
71Me.Package.ComponentModel, 84Me.Package.ComponentModel,
LanguageService\VisualBasicPackage.IVbCompiler.vb (1)
28ComponentModel.GetService(Of IThreadingContext))
LanguageService\VisualBasicPackage.IVbEntryPointProvider.vb (1)
20Dim workspace = ComponentModel.GetService(Of VisualStudioWorkspace)()
LanguageService\VisualBasicPackage.vb (5)
76Dim workspace = Me.ComponentModel.GetService(Of VisualStudioWorkspace)() 86Dim workspace As VisualStudioWorkspace = ComponentModel.GetService(Of VisualStudioWorkspace)() 92Me._libraryManager = New ObjectBrowserLibraryManager(Me, ComponentModel, workspace) 123Return New AutomationObject(ComponentModel.GetService(Of ILegacyGlobalOptionService)) 130Dim editorFactory = New VisualBasicEditorFactory(Me.ComponentModel)