1 write to Workspace
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
AbstractCommandHandlerTestState.cs (1)
62Workspace = EditorTestWorkspace.CreateWorkspace(
13 references to Workspace
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (13)
AbstractCommandHandlerTestState.cs (13)
69var languageName = Workspace.Projects.First().Language; 70var contentType = Workspace.Services.GetLanguageServices(languageName).GetRequiredService<IContentTypeLanguageService>().GetDefaultContentType(); 71_createdTextView = EditorFactory.CreateView(Workspace.ExportProvider, contentType, roles); 77var cursorDocument = Workspace.Documents.First(d => d.CursorPosition.HasValue || d.SelectedSpans.Any(ss => ss.IsEmpty)); 131Workspace.Dispose(); 135=> Workspace.GetService<T>(); 149=> (Lazy<TExport, TMetadata>)(object)Workspace.ExportProvider.GetExport<TExport, TMetadata>(); 152=> Workspace.ExportProvider.GetExports<TExport, TMetadata>(); 155=> Workspace.ExportProvider.GetExportedValue<T>(); 158=> Workspace.ExportProvider.GetExportedValues<T>(); 233var provider = Workspace.ExportProvider.GetExportedValue<AsynchronousOperationListenerProvider>(); 240var provider = Workspace.ExportProvider.GetExportedValue<AsynchronousOperationListenerProvider>(); 241await provider.WaitAllDispatcherOperationAndTasksAsync(Workspace, FeatureAttribute.EventHookup, FeatureAttribute.CompletionSet, FeatureAttribute.SignatureHelp);