52 references to ComponentModel
Microsoft.VisualStudio.LanguageServices (45)
LanguageService\AbstractLanguageService`2.cs (10)
84
this.EditorOptionsService = this.Package.
ComponentModel
.GetService<EditorOptionsService>();
85
this.Workspace = this.Package.
ComponentModel
.GetService<VisualStudioWorkspaceImpl>();
86
this.EditorAdaptersFactoryService = this.Package.
ComponentModel
.GetService<IVsEditorAdaptersFactoryService>();
90
private IThreadingContext ThreadingContext => this.Package.
ComponentModel
.GetService<IThreadingContext>();
148
var workspace = Package.
ComponentModel
.GetService<VisualStudioWorkspace>();
153
v, Package.
ComponentModel
).AttachToVsTextView());
165
var globalOptions = this.Package.
ComponentModel
.GetService<IGlobalOptionService>();
195
var outliningManagerService = this.Package.
ComponentModel
.GetService<IOutliningManagerService>();
228
this.Package.
ComponentModel
.GetService<IUIThreadOperationExecutor>());
237
this.Package.
ComponentModel
,
LanguageService\AbstractLanguageService`2.IVsImmediateStatementCompletion2.cs (2)
55
this.Package.
ComponentModel
,
56
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 (8)
51
_globalOptions = languageService.Package.
ComponentModel
.GetService<IGlobalOptionService>();
160
var controllerFactoryService = _languageService.Package.
ComponentModel
.GetService<INavigationBarControllerFactoryService>();
245
var threadingContext = _languageService.Package.
ComponentModel
.GetService<IThreadingContext>();
250
var languageServiceBroker = _languageService.Package.
ComponentModel
.GetService<ILanguageServiceBroker2>();
251
var asyncListenerProvider = _languageService.Package.
ComponentModel
.GetService<IAsynchronousOperationListenerProvider>();
253
var editorAdaptersFactoryService = _languageService.Package.
ComponentModel
.GetService<IVsEditorAdaptersFactoryService>();
254
var outliningManagerService = _languageService.Package.
ComponentModel
.GetService<IOutliningManagerService>();
278
var threadingContext = _languageService.Package.
ComponentModel
.GetService<IThreadingContext>();
LanguageService\AbstractPackage`2.cs (2)
84
var miscellaneousFilesWorkspace = this.
ComponentModel
.GetService<MiscellaneousFilesWorkspace>();
126
var workspace =
ComponentModel
.GetService<VisualStudioWorkspace>();
RoslynPackage.cs (13)
103
_ =
ComponentModel
.GetService<IGlobalOptionService>();
105
var colorSchemeApplier =
ComponentModel
.GetService<ColorSchemeApplier>();
127
(_, _, _, _) => ValueTask.FromResult<object?>(new WorkspaceProjectFactoryService(this.
ComponentModel
.GetService<IWorkspaceProjectContextFactory>())));
132
(_, _, _, _) => ValueTask.FromResult<object?>(new ManagedEditAndContinueLanguageServiceBridge(this.
ComponentModel
.GetService<EditAndContinueLanguageService>())));
141
await this.
ComponentModel
.GetService<VisualStudioSuppressionFixService>().InitializeAsync(this, cancellationToken).ConfigureAwait(false);
142
await this.
ComponentModel
.GetService<VisualStudioDiagnosticListSuppressionStateService>().InitializeAsync(this, cancellationToken).ConfigureAwait(false);
144
await this.
ComponentModel
.GetService<IVisualStudioDiagnosticAnalyzerService>().InitializeAsync(this, cancellationToken).ConfigureAwait(false);
145
await this.
ComponentModel
.GetService<RemoveUnusedReferencesCommandHandler>().InitializeAsync(this, cancellationToken).ConfigureAwait(false);
146
await this.
ComponentModel
.GetService<SyncNamespacesCommandHandler>().InitializeAsync(this, cancellationToken).ConfigureAwait(false);
183
await
ComponentModel
.DefaultExportProvider.GetExportedValue<KeybindingReset.KeybindingResetDetector>().InitializeAsync(cancellationToken).ConfigureAwait(true);
218
await this.
ComponentModel
.GetService<IAnalyzerNodeSetup>().InitializeAsync(this, cancellationToken).ConfigureAwait(false);
220
_ruleSetEventHandler = this.
ComponentModel
.GetService<RuleSetEventHandler>();
226
=> 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)
123
var workspace = roslynPackage.
ComponentModel
.GetService<VisualStudioWorkspace>();
124
var formatMapService = roslynPackage.
ComponentModel
.GetService<IClassificationFormatMapService>();
126
var typeMap = roslynPackage.
ComponentModel
.GetService<ClassificationTypeMap>();
127
var threadingContext = roslynPackage.
ComponentModel
.GetService<IThreadingContext>();
128
var 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)
76
var workspace = this.
ComponentModel
.GetService<VisualStudioWorkspace>();
91
var workspace = this.
ComponentModel
.GetService<VisualStudioWorkspace>();
95
_libraryManager = new ObjectBrowserLibraryManager(this,
ComponentModel
, workspace);
133
return new Options.AutomationObject(
ComponentModel
.GetService<ILegacyGlobalOptionService>());
141
var editorFactory = new CSharpEditorFactory(this.
ComponentModel
);
LanguageService\CSharpLanguageService.cs (1)
81
this.Package.
ComponentModel
,
LanguageService\CSharpLanguageService_ICSharpProjectHost.cs (1)
26
this.Package.
ComponentModel
.GetService<IThreadingContext>());