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