2 instantiations of WatchHotReloadService
Microsoft.CodeAnalysis.Features.UnitTests (2)
EditAndContinue\WatchHotReloadServiceTests.cs (2)
65
var hotReload = new
WatchHotReloadService
(workspace.Services, ["Baseline", "AddDefinitionToExistingType", "NewTypeDefinition"]);
204
var hotReload = new
WatchHotReloadService
(workspace.Services, ["Baseline", "AddDefinitionToExistingType", "NewTypeDefinition"]);
11 references to WatchHotReloadService
Microsoft.CodeAnalysis.Features (1)
ExternalAccess\Watch\Api\WatchHotReloadService.cs (1)
266
internal readonly struct TestAccessor(
WatchHotReloadService
instance)
Microsoft.CodeAnalysis.Features.UnitTests (10)
EditAndContinue\WatchHotReloadServiceTests.cs (10)
30
private static Task<SourceText> GetCommittedDocumentTextAsync(
WatchHotReloadService
service, DocumentId documentId)
65
var
hotReload = new WatchHotReloadService(workspace.Services, ["Baseline", "AddDefinitionToExistingType", "NewTypeDefinition"]);
80
var result = await hotReload.GetUpdatesAsync(solution, runningProjects: ImmutableDictionary<ProjectId,
WatchHotReloadService
.RunningProjectInfo>.Empty, CancellationToken.None);
94
result = await hotReload.GetUpdatesAsync(solution, runningProjects: ImmutableDictionary<ProjectId,
WatchHotReloadService
.RunningProjectInfo>.Empty, CancellationToken.None);
98
Assert.Equal(
WatchHotReloadService
.Status.NoChangesToApply, result.Status);
106
var runningProjects = ImmutableDictionary<ProjectId,
WatchHotReloadService
.RunningProjectInfo>.Empty
107
.Add(projectId, new
WatchHotReloadService
.RunningProjectInfo() { RestartWhenChangesHaveNoEffect = true });
204
var
hotReload = new WatchHotReloadService(workspace.Services, ["Baseline", "AddDefinitionToExistingType", "NewTypeDefinition"]);
210
var runningProjects = ImmutableDictionary<ProjectId,
WatchHotReloadService
.RunningProjectInfo>.Empty
211
.Add(projectId, new
WatchHotReloadService
.RunningProjectInfo() { RestartWhenChangesHaveNoEffect = false });