521 references to GetService
IdeBenchmarks (1)
Lsp\LspCompletionBenchmarks.cs (1)
96
_globalOptionService = _testServer.TestWorkspace.
GetService
<IGlobalOptionService>();
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (43)
BlockCommentEditing\CloseBlockCommentTests.cs (1)
287
var globalOptions = workspace.
GetService
<IGlobalOptionService>();
Classification\CopyPasteAndPrintingClassifierTests.cs (3)
35
var listenerProvider = workspace.
GetService
<IAsynchronousOperationListenerProvider>();
38
workspace.
GetService
<IThreadingContext>(),
39
workspace.
GetService
<ClassificationTypeMap>(),
Classification\SemanticClassifierTests.cs (2)
2497
workspace.
GetService
<IThreadingContext>(),
2498
workspace.
GetService
<ClassificationTypeMap>(),
Classification\SyntacticTaggerTests.cs (4)
47
workspace.
GetService
<IThreadingContext>(),
49
workspace.
GetService
<IGlobalOptionService>(),
105
workspace.
GetService
<IThreadingContext>(),
107
workspace.
GetService
<IGlobalOptionService>(),
CommentSelection\CSharpCommentSelectionTests.cs (3)
122
workspace.
GetService
<ITextUndoHistoryRegistry>(),
123
workspace.
GetService
<IEditorOperationsFactoryService>(),
124
workspace.
GetService
<EditorOptionsService>());
CompleteStatement\CSharpCompleteStatementCommandHandlerTests.cs (1)
4251
var globalOptions = workspace.
GetService
<IGlobalOptionService>();
EventHookup\EventHookupTestState.cs (5)
36
Workspace.
GetService
<IThreadingContext>(),
37
Workspace.
GetService
<IInlineRenameService>(),
38
Workspace.
GetService
<EventHookupSessionManager>(),
39
Workspace.
GetService
<IGlobalOptionService>(),
40
Workspace.
GetService
<IAsynchronousOperationListenerProvider>());
FixInterpolatedVerbatimString\FixInterpolatedVerbatimStringCommandHandlerTests.cs (3)
48
var editorOperations = workspace.
GetService
<IEditorOperationsFactoryService>().GetEditorOperations(view);
73
var history = workspace.
GetService
<ITextUndoHistoryRegistry>().GetHistory(view.TextBuffer);
94
var history = workspace.
GetService
<ITextUndoHistoryRegistry>().GetHistory(view.TextBuffer);
Formatting\FormattingEngineTests.cs (1)
2611
var commandHandler = workspace.
GetService
<FormatCommandHandler>();
Formatting\Indentation\SmartIndenterTests.cs (1)
3491
var editorOptionsService = workspace.
GetService
<EditorOptionsService>();
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (2)
3380
var optionsService = workspace.
GetService
<EditorOptionsService>();
3384
var commandHandler = workspace.
GetService
<FormatCommandHandler>();
Interactive\BraceMatching\InteractiveBraceHighlightingTests.cs (2)
42
workspace.
GetService
<IBraceMatchingService>(),
43
workspace.
GetService
<IGlobalOptionService>(),
Organizing\OrganizeTypeDeclarationTests.cs (1)
1184
workspace.
GetService
<IThreadingContext>(),
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
131
var service = workspace.
GetService
<IMetadataAsSourceFileService>();
PdbSourceDocument\ImplementationAssemblyLookupServiceTests.cs (10)
55
var service = workspace.
GetService
<IImplementationAssemblyLookupService>();
93
var service = workspace.
GetService
<IImplementationAssemblyLookupService>();
134
var service = workspace.
GetService
<IImplementationAssemblyLookupService>();
185
var service = workspace.
GetService
<IImplementationAssemblyLookupService>();
244
var service = workspace.
GetService
<IImplementationAssemblyLookupService>();
304
var service = workspace.
GetService
<IImplementationAssemblyLookupService>();
358
var service = workspace.
GetService
<IImplementationAssemblyLookupService>();
408
var service = workspace.
GetService
<IImplementationAssemblyLookupService>();
472
var service = workspace.
GetService
<IImplementationAssemblyLookupService>();
542
var service = workspace.
GetService
<IImplementationAssemblyLookupService>();
PdbSourceDocument\PdbSourceDocumentTests.cs (1)
867
var service = workspace.
GetService
<IMetadataAsSourceFileService>();
SplitStringLiteral\SplitStringLiteralCommandHandlerTests.cs (2)
65
var editorOptionsFactory = workspace.
GetService
<IEditorOptionsFactoryService>();
93
var undoHistoryRegistry = workspace.
GetService
<ITextUndoHistoryRegistry>();
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
SplitComments\AbstractSplitCommentCommandHandlerTests.cs (1)
73
var undoHistoryRegistry = workspace.
GetService
<ITextUndoHistoryRegistry>();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (31)
AbstractCommandHandlerTestState.cs (1)
138
=> Workspace.
GetService
<T>();
AutomaticCompletion\AbstractAutomaticBraceCompletionTests.cs (1)
156
var provider = Assert.IsType<BraceCompletionSessionProvider>(workspace.
GetService
<IBraceCompletionSessionProvider>());
AutomaticCompletion\AbstractAutomaticLineEnderTests.cs (1)
118
=> workspace.
GetService
<T>();
BraceHighlighting\AbstractBraceHighlightingTests.cs (3)
45
workspace.
GetService
<IThreadingContext>(),
47
workspace.
GetService
<IGlobalOptionService>(),
67
=> workspace.
GetService
<IBraceMatchingService>();
BraceMatching\AbstractBraceMatcherTests.cs (1)
32
var braceMatcher = workspace.
GetService
<IBraceMatchingService>();
Diagnostics\DiagnosticTaggerWrapper.cs (2)
42
_threadingContext = workspace.
GetService
<IThreadingContext>();
43
_listenerProvider = workspace.
GetService
<IAsynchronousOperationListenerProvider>();
DocumentationComments\AbstractDocumentationCommentTests.cs (2)
147
var optionsFactory = workspace.
GetService
<IEditorOptionsFactoryService>();
166
workspace.
GetService
<IEditorOperationsFactoryService>());
Formatting\CoreFormatterTestsBase.cs (5)
79
var editorOptionsFactory = workspace.
GetService
<IEditorOptionsFactoryService>();
118
workspace.
GetService
<EditorOptionsService>());
145
var commandHandler = workspace.
GetService
<FormatCommandHandler>();
254
var commandHandler = workspace.
GetService
<FormatCommandHandler>();
261
var commandHandler = workspace.
GetService
<FormatCommandHandler>();
LanguageServer\AbstractLanguageServerProtocolTests.cs (6)
372
options?.OptionUpdater?.Invoke(workspace.
GetService
<IGlobalOptionService>());
374
workspace.
GetService
<LspWorkspaceRegistrationService>().Register(workspace);
519
TestWorkspace.
GetService
<LspWorkspaceRegistrationService>().Register(GetManagerAccessor().GetLspMiscellaneousFilesWorkspace());
671
var listenerProvider = TestWorkspace.
GetService
<IAsynchronousOperationListenerProvider>();
692
TestWorkspace.
GetService
<LspWorkspaceRegistrationService>().Deregister(TestWorkspace);
693
TestWorkspace.
GetService
<LspWorkspaceRegistrationService>().Deregister(GetManagerAccessor().GetLspMiscellaneousFilesWorkspace());
NavigateTo\AbstractNavigateToTests.cs (4)
82
workspace.
GetService
<IThreadingContext>(),
83
workspace.
GetService
<IUIThreadOperationExecutor>(),
156
workspace.
GetService
<IThreadingContext>(),
157
workspace.
GetService
<IUIThreadOperationExecutor>(),
Squiggles\TestDiagnosticTagProducer.cs (1)
45
var analyzerServer = (MockDiagnosticAnalyzerService)workspace.
GetService
<IDiagnosticAnalyzerService>();
Workspaces\TestHostDocument.cs (1)
276
var threadingContext = workspace.
GetService
<IThreadingContext>();
Workspaces\TestWorkspace.cs (3)
81
var workspaceConfigurationService =
GetService
<TestWorkspaceConfigurationService>();
96
this.GlobalOptions =
GetService
<IGlobalOptionService>();
474
var projectionBufferFactory = this.
GetService
<IProjectionBufferFactoryService>();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (36)
CodeFixes\CodeFixServiceTests.cs (6)
47
Assert.IsType<MockDiagnosticUpdateSourceRegistrationService>(workspace.
GetService
<IDiagnosticUpdateSourceRegistrationService>());
48
var diagnosticService = Assert.IsType<DiagnosticAnalyzerService>(workspace.
GetService
<IDiagnosticAnalyzerService>());
333
Assert.IsType<MockDiagnosticUpdateSourceRegistrationService>(workspace.
GetService
<IDiagnosticUpdateSourceRegistrationService>());
334
var diagnosticService = Assert.IsType<DiagnosticAnalyzerService>(workspace.
GetService
<IDiagnosticAnalyzerService>());
696
Assert.IsType<MockDiagnosticUpdateSourceRegistrationService>(workspace.
GetService
<IDiagnosticUpdateSourceRegistrationService>());
697
var diagnosticService = Assert.IsType<DiagnosticAnalyzerService>(workspace.
GetService
<IDiagnosticAnalyzerService>());
CodeRefactorings\CodeRefactoringServiceTest.cs (5)
48
var refactoringService = workspace.
GetService
<ICodeRefactoringService>();
93
var refactoringService = workspace.
GetService
<ICodeRefactoringService>();
112
var refactoringService = workspace.
GetService
<ICodeRefactoringService>();
167
var refactoringService = workspace.
GetService
<ICodeRefactoringService>();
206
var refactoringService = workspace.
GetService
<ICodeRefactoringService>();
Diagnostics\DiagnosticAnalyzerServiceTests.cs (10)
761
Assert.IsType<MockDiagnosticUpdateSourceRegistrationService>(workspace.
GetService
<IDiagnosticUpdateSourceRegistrationService>());
762
var service = Assert.IsType<DiagnosticAnalyzerService>(workspace.
GetService
<IDiagnosticAnalyzerService>());
763
var globalOptions = workspace.
GetService
<IGlobalOptionService>();
895
Assert.IsType<MockDiagnosticUpdateSourceRegistrationService>(workspace.
GetService
<IDiagnosticUpdateSourceRegistrationService>());
896
var service = Assert.IsType<DiagnosticAnalyzerService>(workspace.
GetService
<IDiagnosticAnalyzerService>());
992
Assert.IsType<MockDiagnosticUpdateSourceRegistrationService>(workspace.
GetService
<IDiagnosticUpdateSourceRegistrationService>());
993
var service = Assert.IsType<DiagnosticAnalyzerService>(workspace.
GetService
<IDiagnosticAnalyzerService>());
994
var globalOptions = workspace.
GetService
<IGlobalOptionService>();
1149
var globalOptions = workspace.
GetService
<IGlobalOptionService>();
1167
var service = Assert.IsType<DiagnosticAnalyzerService>(workspace.
GetService
<IDiagnosticAnalyzerService>());
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (4)
93
((MockHostWorkspaceProvider)workspace.
GetService
<IHostWorkspaceProvider>()).Workspace = workspace;
97
languageService = workspace.
GetService
<EditAndContinueLanguageService>();
4687
var sourceTextProvider = workspace.
GetService
<PdbMatchingSourceTextProvider>();
4719
await workspace.
GetService
<AsynchronousOperationListenerProvider>().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync();
EditAndContinue\RemoteEditAndContinueServiceTests.cs (2)
58
var globalOptions = localWorkspace.
GetService
<IGlobalOptionService>();
97
var mockDiagnosticService = (MockDiagnosticAnalyzerService)localWorkspace.
GetService
<IDiagnosticAnalyzerService>();
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
61
_metadataAsSourceService = Workspace.
GetService
<IMetadataAsSourceFileService>();
RenameTracking\RenameTrackingTestState.cs (6)
89
_editorOperations = Workspace.
GetService
<IEditorOperationsFactoryService>().GetEditorOperations(_view);
103
Workspace.
GetService
<IThreadingContext>(),
104
Workspace.
GetService
<IInlineRenameService>(),
105
Workspace.
GetService
<IDiagnosticAnalyzerService>(),
106
Workspace.
GetService
<IGlobalOptionService>(),
107
Workspace.
GetService
<IAsynchronousOperationListenerProvider>());
Tagging\AsynchronousTaggerTests.cs (2)
67
workspace.
GetService
<IThreadingContext>(),
70
workspace.
GetService
<IGlobalOptionService>(),
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (211)
Classification\ClassificationTests.vb (3)
264
workspace.
GetService
(Of IThreadingContext),
265
workspace.
GetService
(Of ClassificationTypeMap),
266
workspace.
GetService
(Of IGlobalOptionService),
CodeFixes\CodeFixServiceTests.vb (4)
57
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
58
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
136
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
137
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
Diagnostics\DiagnosticProviderTests.vb (2)
295
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
296
Dim analyzerService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
Diagnostics\DiagnosticServiceTests.vb (68)
82
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
83
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
188
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
189
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
233
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
234
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
270
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
271
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
341
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
342
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
384
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
385
Dim diagnosticService2 = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
433
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
434
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
488
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
489
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
524
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
525
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
598
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
599
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
622
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
623
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
665
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
666
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
700
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
701
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
777
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
778
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
814
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
815
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
971
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
972
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
1010
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
1011
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
1067
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
1068
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
1118
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
1119
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
1162
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
1163
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
1206
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
1207
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
1259
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
1260
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
1323
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
1324
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
1371
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
1372
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
1443
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
1444
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
1994
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
1995
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
2055
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
2056
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
2123
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
2124
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
2163
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
2164
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
2224
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
2225
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
2266
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
2267
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
2314
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
2315
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
2365
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
2366
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
2436
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
2437
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
GoToDefinition\GoToDefinitionCommandHandlerTests.vb (12)
58
Dim provider = workspace.
GetService
(Of IAsynchronousOperationListenerProvider)()
61
workspace.
GetService
(Of IGlobalOptionService),
62
workspace.
GetService
(Of IThreadingContext),
63
workspace.
GetService
(Of IUIThreadOperationExecutor),
100
Dim provider = workspace.
GetService
(Of IAsynchronousOperationListenerProvider)()
103
workspace.
GetService
(Of IGlobalOptionService),
104
workspace.
GetService
(Of IThreadingContext),
105
workspace.
GetService
(Of IUIThreadOperationExecutor),
145
Dim provider = workspace.
GetService
(Of IAsynchronousOperationListenerProvider)()
148
workspace.
GetService
(Of IGlobalOptionService),
149
workspace.
GetService
(Of IThreadingContext),
150
workspace.
GetService
(Of IUIThreadOperationExecutor),
InlineHints\AbstractInlineHintsTests.vb (1)
79
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
IntelliSense\CompletionServiceTests.vb (1)
37
Dim completionService = New TestCompletionService(workspace.Services.SolutionServices, workspace.
GetService
(Of IAsynchronousOperationListenerProvider)())
IntelliSense\CSharpCompletionCommandHandlerTests.vb (5)
5220
Dim globalOptions = state.Workspace.
GetService
(Of IGlobalOptionService)
5284
Dim globalOptions = state.Workspace.
GetService
(Of IGlobalOptionService)
10350
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
10405
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
10458
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
IntelliSense\CSharpSignatureHelpCommandHandlerTests.vb (1)
887
state.Workspace.
GetService
(Of IGlobalOptionService).SetGlobalOption(SignatureHelpViewOptionsStorage.ShowSignatureHelp, LanguageNames.CSharp, False)
IntelliSense\SignatureHelpControllerTests.vb (3)
154
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
287
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)
288
Dim bufferFactory As ITextBufferFactoryService = workspace.
GetService
(Of ITextBufferFactoryService)
IntelliSense\VisualBasicSignatureHelpCommandHandlerTests.vb (1)
287
state.Workspace.
GetService
(Of IGlobalOptionService).SetGlobalOption(SignatureHelpViewOptionsStorage.ShowSignatureHelp, LanguageNames.VisualBasic, False)
InteractivePaste\InteractivePasteCommandHandlerTests.vb (4)
74
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService)().GetEditorOperations(textView)
110
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService)().GetEditorOperations(textView)
150
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService)().GetEditorOperations(textView)
194
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService)().GetEditorOperations(textView)
KeywordHighlighting\AbstractKeywordHighlightingTests.vb (3)
30
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
37
workspace.
GetService
(Of IThreadingContext),
38
workspace.
GetService
(Of IHighlightingService)(),
NavigationBar\NavigationBarControllerTests.vb (8)
28
Dim controllerFactory = workspace.
GetService
(Of INavigationBarControllerFactoryService)()
69
Dim controllerFactory = workspace.
GetService
(Of INavigationBarControllerFactoryService)()
115
Dim controllerFactory = workspace.
GetService
(Of INavigationBarControllerFactoryService)()
174
Dim controllerFactory = workspace.
GetService
(Of INavigationBarControllerFactoryService)()
227
Dim controllerFactory = workspace.
GetService
(Of INavigationBarControllerFactoryService)()
260
Dim controllerFactory = workspace.
GetService
(Of INavigationBarControllerFactoryService)()
291
Dim controllerFactory = workspace.
GetService
(Of INavigationBarControllerFactoryService)()
334
Dim controllerFactory = workspace.
GetService
(Of INavigationBarControllerFactoryService)()
PasteTracking\PasteTrackingTestState.vb (5)
26
PasteTrackingService = Workspace.
GetService
(Of PasteTrackingService)()
27
PasteTrackingPasteCommandHandler = Workspace.
GetService
(Of PasteTrackingPasteCommandHandler)()
28
FormatCommandHandler = Workspace.
GetService
(Of FormatCommandHandler)()
55
Dim editorOperations = Workspace.
GetService
(Of IEditorOperationsFactoryService)().GetEditorOperations(textView)
65
Dim editorOperations = Workspace.
GetService
(Of IEditorOperationsFactoryService)().GetEditorOperations(textView)
Peek\PeekTests.vb (6)
276
workspace.
GetService
(Of IPeekableItemFactory),
277
New MockPeekResultFactory(workspace.
GetService
(Of IPersistentSpanFactory)),
278
workspace.
GetService
(Of IThreadingContext),
279
workspace.
GetService
(Of IUIThreadOperationExecutor))
420
Dim textBufferService = _workspace.
GetService
(Of ITextBufferFactoryService)
433
Dim textBufferService = _workspace.
GetService
(Of ITextBufferFactoryService)
ReferenceHighlighting\AbstractReferenceHighlightingTests.vb (2)
30
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
32
workspace.
GetService
(Of IThreadingContext),
Rename\InlineRenameTests.vb (2)
128
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
248
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
Rename\RenameCommandHandlerTests.vb (40)
155
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService)().GetEditorOperations(view)
237
Dim optionsService = workspace.
GetService
(Of IGlobalOptionService)()
285
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService)().GetEditorOperations(view)
326
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService)().GetEditorOperations(view)
380
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService)().GetEditorOperations(view)
473
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService)().GetEditorOperations(view)
508
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService).GetEditorOperations(view)
530
Assert.Null(workspace.
GetService
(Of IInlineRenameService).ActiveSession)
559
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService).GetEditorOperations(view)
568
Assert.NotNull(workspace.
GetService
(Of IInlineRenameService).ActiveSession)
596
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService).GetEditorOperations(view)
605
Assert.NotNull(workspace.
GetService
(Of IInlineRenameService).ActiveSession)
633
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService).GetEditorOperations(view)
654
Assert.Null(workspace.
GetService
(Of IInlineRenameService).ActiveSession)
687
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService).GetEditorOperations(view)
697
editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService).GetEditorOperations(newview)
708
Assert.Null(workspace.
GetService
(Of IInlineRenameService).ActiveSession)
752
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService).GetEditorOperations(view)
762
editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService).GetEditorOperations(newview)
773
Assert.Null(workspace.
GetService
(Of IInlineRenameService).ActiveSession)
802
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService).GetEditorOperations(view)
841
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService).GetEditorOperations(view)
877
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService)().GetEditorOperations(view)
884
Assert.Null(workspace.
GetService
(Of IInlineRenameService).ActiveSession)
913
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService)().GetEditorOperations(view)
923
Assert.Null(workspace.
GetService
(Of IInlineRenameService).ActiveSession)
952
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService)().GetEditorOperations(view)
959
Assert.Null(workspace.
GetService
(Of IInlineRenameService).ActiveSession)
986
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService)().GetEditorOperations(view)
993
Assert.Null(workspace.
GetService
(Of IInlineRenameService).ActiveSession)
1019
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService)().GetEditorOperations(view)
1026
Assert.Null(workspace.
GetService
(Of IInlineRenameService).ActiveSession)
1054
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService).GetEditorOperations(view)
1068
Assert.Null(workspace.
GetService
(Of IInlineRenameService).ActiveSession)
1192
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService)().GetEditorOperations(view)
1206
Assert.Null(workspace.
GetService
(Of IInlineRenameService).ActiveSession)
1234
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService)().GetEditorOperations(view)
1241
Assert.NotNull(workspace.
GetService
(Of IInlineRenameService).ActiveSession)
1266
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService)().GetEditorOperations(view)
1285
Assert.Null(workspace.
GetService
(Of IInlineRenameService).ActiveSession)
Rename\RenameTagProducerTests.vb (27)
135
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
165
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
244
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
336
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
402
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
431
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
504
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
569
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
570
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService).GetEditorOperations(view)
645
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
720
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
792
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
862
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
932
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
1007
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
1076
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService).GetEditorOperations(view)
1084
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
1157
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService).GetEditorOperations(view)
1167
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
1212
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
1312
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
1377
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
1450
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
1536
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
1604
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
1637
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
1669
Dim renameService = workspace.
GetService
(Of InlineRenameService)()
Rename\RenameTestHelpers.vb (9)
38
workspace.
GetService
(Of ITextBufferUndoManagerProvider).GetTextBufferUndoManager(textBuffer)
47
Dim renameService = workspace.
GetService
(Of IInlineRenameService)()
54
Dim renameService = DirectCast(workspace.
GetService
(Of IInlineRenameService)(), InlineRenameService)
63
Dim renameService = DirectCast(workspace.
GetService
(Of IInlineRenameService)(), InlineRenameService)
112
workspace.
GetService
(Of IThreadingContext),
113
workspace.
GetService
(Of IInlineRenameService)(),
114
workspace.
GetService
(Of IDiagnosticAnalyzerService)(),
115
workspace.
GetService
(Of IGlobalOptionService)(),
116
workspace.
GetService
(Of IAsynchronousOperationListenerProvider))
Rename\RenameViewModelTests.vb (4)
554
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
568
Dim renameService = DirectCast(workspace.
GetService
(Of IInlineRenameService)(), InlineRenameService)
696
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
700
Dim renameService = DirectCast(workspace.
GetService
(Of IInlineRenameService)(), InlineRenameService)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
Completion\CompletionTests.cs (1)
1289
var globalOptions = testLspServer.TestWorkspace.
GetService
<IGlobalOptionService>();
Diagnostics\AbstractPullDiagnosticTestsBase.cs (1)
63
var optionService = testLspServer.TestWorkspace.
GetService
<IGlobalOptionService>();
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (1)
64
testLspServer.TestWorkspace.
GetService
<LspWorkspaceRegistrationService>().Register(miscWorkspace);
Workspaces\LspWorkspaceManagerTests.cs (1)
266
var workspaceRegistrationService = testLspServer.TestWorkspace.
GetService
<LspWorkspaceRegistrationService>();
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (63)
AutomaticCompletion\AutomaticLineEnderTests.vb (3)
280
workspace.
GetService
(Of IEditorOperationsFactoryService),
281
workspace.
GetService
(Of ITextUndoHistoryRegistry),
282
workspace.
GetService
(Of EditorOptionsService))
AutomaticEndConstructCorrection\AutomaticEndConstructCorrectorTests.vb (2)
335
Dim corrector = New AutomaticEndConstructCorrector(buffer, workspace.
GetService
(Of IUIThreadOperationExecutor))
404
Dim uiThreadOperationExecutor = workspace.
GetService
(Of IUIThreadOperationExecutor)
BraceMatching\BraceHighlightingTests.vb (2)
32
workspace.
GetService
(Of IBraceMatchingService),
33
workspace.
GetService
(Of IGlobalOptionService),
ChangeSignature\RemoveParametersTests.vb (1)
118
workspace.
GetService
(Of IThreadingContext),
ChangeSignature\ReorderParameters.MultiFile.vb (2)
56
Dim history = testState.Workspace.
GetService
(Of ITextUndoHistoryRegistry)().RegisterHistory(testState.Workspace.Documents.First().GetTextBuffer())
109
Dim history = testState.Workspace.
GetService
(Of ITextUndoHistoryRegistry)().RegisterHistory(testState.Workspace.Documents.First().GetTextBuffer())
CommentSelection\VisualBasicCommentSelectionTests.vb (3)
88
workspace.
GetService
(Of ITextUndoHistoryRegistry),
89
workspace.
GetService
(Of IEditorOperationsFactoryService),
90
workspace.
GetService
(Of EditorOptionsService))
EncapsulateField\EncapsulateFieldCommandHandlerTests.vb (3)
156
workspace.
GetService
(Of IThreadingContext),
157
workspace.
GetService
(Of ITextBufferUndoManagerProvider),
159
workspace.
GetService
(Of IAsynchronousOperationListenerProvider)())
EncapsulateField\EncapsulateFieldTestState.vb (1)
37
Workspace.
GetService
(Of ITextBufferUndoManagerProvider)(),
EndConstructGeneration\EndConstructTestingHelpers.vb (15)
37
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
45
workspace.
GetService
(Of ITextUndoHistoryRegistry),
46
workspace.
GetService
(Of IEditorOperationsFactoryService),
47
workspace.
GetService
(Of IEditorOptionsFactoryService))
67
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
85
workspace.
GetService
(Of ITextUndoHistoryRegistry),
86
workspace.
GetService
(Of IEditorOperationsFactoryService),
87
workspace.
GetService
(Of IEditorOptionsFactoryService))
133
workspace.
GetService
(Of ITextUndoHistoryRegistry),
134
workspace.
GetService
(Of IEditorOperationsFactoryService),
135
workspace.
GetService
(Of IEditorOptionsFactoryService))
211
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
224
Dim factory = workspace.
GetService
(Of IEditorOperationsFactoryService)()
227
workspace.
GetService
(Of ITextUndoHistoryRegistry),
228
workspace.
GetService
(Of EditorOptionsService))
EndConstructGeneration\MiscellaneousTests.vb (4)
141
workspace.
GetService
(Of ISmartIndentationService),
142
workspace.
GetService
(Of ITextUndoHistoryRegistry),
143
workspace.
GetService
(Of IEditorOperationsFactoryService),
144
workspace.
GetService
(Of IEditorOptionsFactoryService))
ExtractInterface\ExtractInterfaceTests.vb (1)
1290
workspace.
GetService
(Of IThreadingContext),
Formatting\Indentation\SmartIndenterTests.vb (1)
2997
Dim editorOptionsService = workspace.
GetService
(Of EditorOptionsService)
Formatting\Indentation\SmartIndentProviderTests.vb (2)
27
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
41
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
ImplementAbstractClass\ImplementAbstractClassCommandHandlerTests.vb (4)
123
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService).GetEditorOperations(workspace.Documents.Single.GetTextView())
157
Dim editorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService).GetEditorOperations(workspace.Documents.Single.GetTextView())
212
New ImplementAbstractClassCommandHandler(workspace.
GetService
(Of IEditorOperationsFactoryService), workspace.
GetService
(Of IGlobalOptionService))
ImplementInterface\ImplementInterfaceCommandHandlerTests.vb (8)
42
Return New ImplementInterfaceCommandHandler(workspace.
GetService
(Of IEditorOperationsFactoryService), workspace.
GetService
(Of IGlobalOptionService))
67
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
224
Dim operations = workspace.
GetService
(Of IEditorOperationsFactoryService)() _
301
Dim operations = workspace.
GetService
(Of IEditorOperationsFactoryService)() _
393
Dim operations = workspace.
GetService
(Of IEditorOperationsFactoryService)() _
428
Dim operations = workspace.
GetService
(Of IEditorOperationsFactoryService)() _
459
Dim operations = workspace.
GetService
(Of IEditorOperationsFactoryService)() _
LineCommit\CommitOnMiscellaneousCommandsTests.vb (3)
74
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
133
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
182
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
LineCommit\CommitTestData.vb (7)
43
EditorOperations = workspace.
GetService
(Of IEditorOperationsFactoryService).GetEditorOperations(View)
57
Dim textUndoHistoryRegistry = workspace.
GetService
(Of ITextUndoHistoryRegistry)()
62
Dim commitManagerFactory As New CommitBufferManagerFactory(_formatter, _inlineRenameService, workspace.
GetService
(Of IThreadingContext))
70
workspace.
GetService
(Of IEditorOperationsFactoryService),
71
workspace.
GetService
(Of ISmartIndentationService),
73
workspace.
GetService
(Of IGlobalOptionService))
150
Dim realCommitFormatter = Assert.IsType(Of CommitFormatter)(_testWorkspace.
GetService
(Of ICommitFormatter)())
Organizing\OrganizeTypeDeclarationTests.vb (1)
944
Dim handler = New OrganizeDocumentCommandHandler(workspace.
GetService
(Of IThreadingContext), workspace.GlobalOptions)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
DocumentOutline\DocumentOutlineTestsBase.cs (1)
83
var threadingContext = workspace.
GetService
<IThreadingContext>();
Interactive\Commands\ResetInteractiveTests.cs (2)
85
var uiThreadOperationExecutor = workspace.
GetService
<IUIThreadOperationExecutor>();
86
var editorOptionsService = workspace.
GetService
<EditorOptionsService>();
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (3)
CallHierarchy\CallHierarchyTestState.vb (3)
92
Dim provider = workspace.
GetService
(Of CallHierarchyProvider)()
99
Dim threadOperationExecutor = workspace.
GetService
(Of IUIThreadOperationExecutor)
100
Dim asynchronousOperationListenerProvider = workspace.
GetService
(Of IAsynchronousOperationListenerProvider)()
Microsoft.VisualStudio.LanguageServices.UnitTests (125)
CodeModel\CSharp\FileCodeModelTests.vb (1)
1300
Dim projectCodeModelFactory = state.Workspace.
GetService
(Of ProjectCodeModelFactory)()
CommonControls\MemberSelectionViewModelTests.vb (1)
190
workspace.
GetService
(Of IUIThreadOperationExecutor),
Diagnostics\DefaultDiagnosticUpdateSourceTests.vb (3)
47
Dim miscService = DirectCast(workspace.
GetService
(Of IDiagnosticAnalyzerService), DiagnosticAnalyzerService)
241
Dim registrationService = Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
270
Dim registrationService = Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
Diagnostics\DiagnosticTableDataSourceTests.vb (42)
33
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
34
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
67
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
68
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
88
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
89
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
115
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
116
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
158
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
159
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
208
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
209
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
240
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
241
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
269
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
270
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
302
Dim globalOptions = workspace1.
GetService
(Of IGlobalOptionService)()
307
Dim threadingContext = workspace1.
GetService
(Of IThreadingContext)()
334
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
335
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
373
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
374
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
407
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
408
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
441
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
442
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
472
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
473
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
505
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
506
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
536
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
537
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
568
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
569
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
612
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
613
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
665
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
666
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)()
667
Dim notificationService = workspace.
GetService
(Of IGlobalOperationNotificationService)
668
Dim listenerProvider = workspace.
GetService
(Of IAsynchronousOperationListenerProvider)
670
Dim service = Assert.IsType(Of DiagnosticService)(workspace.
GetService
(Of IDiagnosticService)())
671
Dim analyzerService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (31)
38
workspace, service, workspace.
GetService
(Of IGlobalOperationNotificationService), waiter, CancellationToken.None)
48
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
52
workspace, service, workspace.
GetService
(Of IGlobalOperationNotificationService), waiter, CancellationToken.None)
90
workspace, service, workspace.
GetService
(Of IGlobalOperationNotificationService), waiter, CancellationToken.None)
107
workspace, service, workspace.
GetService
(Of IGlobalOperationNotificationService), waiter, CancellationToken.None)
120
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
128
workspace, service, workspace.
GetService
(Of IGlobalOperationNotificationService), waiter, CancellationToken.None)
162
workspace, service, workspace.
GetService
(Of IGlobalOperationNotificationService), waiter, CancellationToken.None)
202
workspace, service, workspace.
GetService
(Of IGlobalOperationNotificationService), waiter, CancellationToken.None)
244
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
252
workspace, service, workspace.
GetService
(Of IGlobalOperationNotificationService), waiter, CancellationToken.None)
274
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
285
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
286
Dim service = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
290
workspace, service, workspace.
GetService
(Of IGlobalOperationNotificationService), waiter, CancellationToken.None)
326
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
337
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
338
Dim service = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
342
workspace, service, workspace.
GetService
(Of IGlobalOperationNotificationService), waiter, CancellationToken.None)
376
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
377
Dim service = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
381
workspace, service, workspace.
GetService
(Of IGlobalOperationNotificationService), waiter, CancellationToken.None)
413
workspace, service, workspace.
GetService
(Of IGlobalOperationNotificationService), waiter, CancellationToken.None)
440
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
452
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
453
Dim service = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
456
workspace, service, workspace.
GetService
(Of IGlobalOperationNotificationService), waiter, CancellationToken.None)
494
Dim globalOptions = workspace.
GetService
(Of IGlobalOptionService)
507
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
508
Dim service = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())
511
workspace, service, workspace.
GetService
(Of IGlobalOperationNotificationService), waiter, CancellationToken.None)
MoveStaticMembers\MoveStaticMembersViewModelTest.vb (1)
42
workspace.
GetService
(Of IUIThreadOperationExecutor))
ProjectSystemShim\VisualStudioAnalyzerTests.vb (2)
35
Dim registrationService = Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
57
Dim registrationService = Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
ProjectSystemShim\VisualStudioRuleSetTests.vb (17)
51
Dim fileChangeWatcher = New FileChangeWatcher(workspace.
GetService
(Of IAsynchronousOperationListenerProvider)(), Task.FromResult(Of IVsAsyncFileChangeEx)(fileChangeService))
58
Await workspace.
GetService
(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync()
62
Await workspace.
GetService
(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync()
95
Dim fileChangeWatcher = New FileChangeWatcher(workspace.
GetService
(Of IAsynchronousOperationListenerProvider)(), Task.FromResult(Of IVsAsyncFileChangeEx)(fileChangeService))
102
Await workspace.
GetService
(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync()
106
Await workspace.
GetService
(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync()
139
Dim fileChangeWatcher = New FileChangeWatcher(workspace.
GetService
(Of IAsynchronousOperationListenerProvider)(), Task.FromResult(Of IVsAsyncFileChangeEx)(fileChangeService))
152
Await workspace.
GetService
(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync()
180
Dim fileChangeWatcher = New FileChangeWatcher(workspace.
GetService
(Of IAsynchronousOperationListenerProvider)(), Task.FromResult(Of IVsAsyncFileChangeEx)(fileChangeService))
190
Await workspace.
GetService
(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync()
200
Await workspace.
GetService
(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync()
206
Await workspace.
GetService
(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync()
229
Dim fileChangeWatcher = New FileChangeWatcher(workspace.
GetService
(Of IAsynchronousOperationListenerProvider)(), Task.FromResult(Of IVsAsyncFileChangeEx)(fileChangeService))
238
Await workspace.
GetService
(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync()
244
Await workspace.
GetService
(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync()
267
Dim fileChangeWatcher = New FileChangeWatcher(workspace.
GetService
(Of IAsynchronousOperationListenerProvider)(), Task.FromResult(Of IVsAsyncFileChangeEx)(fileChangeService))
272
Await workspace.
GetService
(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync()
PullMemberUp\PullMemberUpViewModelTest.vb (1)
263
workspace.
GetService
(Of IUIThreadOperationExecutor),
Snippets\CSharpSnippetExpansionClientTests.vb (3)
313
Dim editorOptionsService = workspace.
GetService
(Of EditorOptionsService)()
353
workspace.
GetService
(Of EditorOptionsService)())
396
workspace.
GetService
(Of EditorOptionsService)())
Snippets\SnippetTestState.vb (3)
51
Dim globalOptions = Workspace.
GetService
(Of IGlobalOptionService)
52
Dim editorOptionsService = Workspace.
GetService
(Of EditorOptionsService)()
53
Dim indentationManager = Workspace.
GetService
(Of IIndentationManagerService)()
Snippets\VisualBasicSnippetExpansionClientTests.vb (3)
351
Dim optionsService = workspace.
GetService
(Of EditorOptionsService)()
412
workspace.
GetService
(Of EditorOptionsService)())
454
workspace.
GetService
(Of EditorOptionsService)())
SolutionExplorer\CpsDiagnosticItemSourceTests.vb (1)
43
New FakeAnalyzersCommandHandler, workspace.
GetService
(Of IDiagnosticAnalyzerService))
SolutionExplorer\SourceGeneratorItemTests.vb (4)
236
workspace.
GetService
(Of IDiagnosticAnalyzerService))
240
Dim asyncListener = workspace.
GetService
(Of IAsynchronousOperationListenerProvider).GetListener(FeatureAttribute.SourceGenerators)
242
Return New SourceGeneratedFileItemSource(generatorItem, workspace, asyncListener, workspace.
GetService
(Of IThreadingContext)())
246
Dim service = workspace.
GetService
(Of AsynchronousOperationListenerProvider)
TaskList\TaskListTableDataSourceTests.vb (10)
26
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
59
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
79
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
105
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
147
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
196
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
227
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
265
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
303
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
341
Dim threadingContext = workspace.
GetService
(Of IThreadingContext)()
Venus\DocumentService_IntegrationTests.vb (2)
231
Assert.IsType(Of MockDiagnosticUpdateSourceRegistrationService)(workspace.
GetService
(Of IDiagnosticUpdateSourceRegistrationService)())
232
Dim diagnosticService = Assert.IsType(Of DiagnosticAnalyzerService)(workspace.
GetService
(Of IDiagnosticAnalyzerService)())