54 references to ComponentModel
Microsoft.VisualStudio.LanguageServices (47)
LanguageService\AbstractLanguageService`2.cs (10)
84this.EditorOptionsService = this.Package.ComponentModel.GetService<EditorOptionsService>(); 85this.Workspace = this.Package.ComponentModel.GetService<VisualStudioWorkspaceImpl>(); 86this.EditorAdaptersFactoryService = this.Package.ComponentModel.GetService<IVsEditorAdaptersFactoryService>(); 90private IThreadingContext ThreadingContext => this.Package.ComponentModel.GetService<IThreadingContext>(); 148var workspace = Package.ComponentModel.GetService<VisualStudioWorkspace>(); 153v, Package.ComponentModel).AttachToVsTextView()); 165var globalOptions = this.Package.ComponentModel.GetService<IGlobalOptionService>(); 195var outliningManagerService = this.Package.ComponentModel.GetService<IOutliningManagerService>(); 228this.Package.ComponentModel.GetService<IUIThreadOperationExecutor>()); 237this.Package.ComponentModel,
LanguageService\AbstractLanguageService`2.IVsImmediateStatementCompletion2.cs (2)
55this.Package.ComponentModel, 56this.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 (8)
51_globalOptions = languageService.Package.ComponentModel.GetService<IGlobalOptionService>(); 160var controllerFactoryService = _languageService.Package.ComponentModel.GetService<INavigationBarControllerFactoryService>(); 245var threadingContext = _languageService.Package.ComponentModel.GetService<IThreadingContext>(); 250var languageServiceBroker = _languageService.Package.ComponentModel.GetService<ILanguageServiceBroker2>(); 251var asyncListenerProvider = _languageService.Package.ComponentModel.GetService<IAsynchronousOperationListenerProvider>(); 253var editorAdaptersFactoryService = _languageService.Package.ComponentModel.GetService<IVsEditorAdaptersFactoryService>(); 254var outliningManagerService = _languageService.Package.ComponentModel.GetService<IOutliningManagerService>(); 278var threadingContext = _languageService.Package.ComponentModel.GetService<IThreadingContext>();
LanguageService\AbstractPackage`2.cs (2)
84var miscellaneousFilesWorkspace = this.ComponentModel.GetService<MiscellaneousFilesWorkspace>(); 126var workspace = ComponentModel.GetService<VisualStudioWorkspace>();
RoslynPackage.cs (15)
107_ = ComponentModel.GetService<IGlobalOptionService>(); 109var colorSchemeApplier = ComponentModel.GetService<ColorSchemeApplier>(); 113var globalNotificationService = this.ComponentModel.GetService<IGlobalOperationNotificationService>(); 137(_, _, _, _) => ValueTaskFactory.FromResult<object?>(new WorkspaceProjectFactoryService(this.ComponentModel.GetService<IWorkspaceProjectContextFactory>()))); 142(_, _, _, _) => ValueTaskFactory.FromResult<object?>(new ManagedEditAndContinueLanguageServiceBridge(this.ComponentModel.GetService<EditAndContinueLanguageService>()))); 157await this.ComponentModel.GetService<VisualStudioSuppressionFixService>().InitializeAsync(this, cancellationToken).ConfigureAwait(false); 158await this.ComponentModel.GetService<VisualStudioDiagnosticListSuppressionStateService>().InitializeAsync(this, cancellationToken).ConfigureAwait(false); 160await this.ComponentModel.GetService<IVisualStudioDiagnosticAnalyzerService>().InitializeAsync(this, cancellationToken).ConfigureAwait(false); 161await this.ComponentModel.GetService<RemoveUnusedReferencesCommandHandler>().InitializeAsync(this, cancellationToken).ConfigureAwait(false); 162await this.ComponentModel.GetService<SyncNamespacesCommandHandler>().InitializeAsync(this, cancellationToken).ConfigureAwait(false); 199await ComponentModel.DefaultExportProvider.GetExportedValue<KeybindingReset.KeybindingResetDetector>().InitializeAsync(cancellationToken).ConfigureAwait(true); 230ComponentModel.GetService<VisualStudioSourceGeneratorTelemetryCollectorWorkspaceServiceFactory>().ReportOtherWorkspaceTelemetry(); 235await this.ComponentModel.GetService<IAnalyzerNodeSetup>().InitializeAsync(this, cancellationToken).ConfigureAwait(false); 237_ruleSetEventHandler = this.ComponentModel.GetService<RuleSetEventHandler>(); 243=> 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)
123var workspace = roslynPackage.ComponentModel.GetService<VisualStudioWorkspace>(); 124var formatMapService = roslynPackage.ComponentModel.GetService<IClassificationFormatMapService>(); 126var typeMap = roslynPackage.ComponentModel.GetService<ClassificationTypeMap>(); 127var threadingContext = roslynPackage.ComponentModel.GetService<IThreadingContext>(); 128var themingService = roslynPackage.ComponentModel.GetService<IWpfThemeService>();
Venus\VenusCommandFilter`2.cs (1)
28: base(wpfTextView, subjectBuffer, nextCommandTarget, languageService.Package.ComponentModel)
Microsoft.VisualStudio.LanguageServices.CSharp (7)
CSharpPackage.cs (5)
74var workspace = this.ComponentModel.GetService<VisualStudioWorkspace>(); 90var workspace = this.ComponentModel.GetService<VisualStudioWorkspace>(); 94_libraryManager = new ObjectBrowserLibraryManager(this, ComponentModel, workspace); 132return new Options.AutomationObject(ComponentModel.GetService<ILegacyGlobalOptionService>()); 140var editorFactory = new CSharpEditorFactory(this.ComponentModel);
LanguageService\CSharpLanguageService.cs (1)
81this.Package.ComponentModel,
LanguageService\CSharpLanguageService_ICSharpProjectHost.cs (1)
26this.Package.ComponentModel.GetService<IThreadingContext>());