1 write to Workspace
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
AbstractCommandHandlerTestState.cs (1)
62
Workspace
= EditorTestWorkspace.CreateWorkspace(
13 references to Workspace
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (13)
AbstractCommandHandlerTestState.cs (13)
69
var languageName =
Workspace
.Projects.First().Language;
70
var contentType =
Workspace
.Services.GetLanguageServices(languageName).GetRequiredService<IContentTypeLanguageService>().GetDefaultContentType();
71
_createdTextView = EditorFactory.CreateView(
Workspace
.ExportProvider, contentType, roles);
77
var cursorDocument =
Workspace
.Documents.First(d => d.CursorPosition.HasValue || d.SelectedSpans.Any(ss => ss.IsEmpty));
131
Workspace
.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>();
233
var provider =
Workspace
.ExportProvider.GetExportedValue<AsynchronousOperationListenerProvider>();
240
var provider =
Workspace
.ExportProvider.GetExportedValue<AsynchronousOperationListenerProvider>();
241
await provider.WaitAllDispatcherOperationAndTasksAsync(
Workspace
, FeatureAttribute.EventHookup, FeatureAttribute.CompletionSet, FeatureAttribute.SignatureHelp);