Skip to content

Commit 0027bd2

Browse files
dr1rrbCopilot
authored andcommitted
fix: Review from copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> (cherry picked from commit 3e9b164)
1 parent 8a06d94 commit 0027bd2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Uno.UI.RemoteControl.Server.Processors/HotReload/ServerHotReloadProcessor.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ private class HotReloadServerOperation
288288
private readonly Timer _timeout;
289289

290290
private ImmutableHashSet<string> _consideredFilePaths; // All files that have been considered for this operation.
291-
private ImmutableHashSet<string> _ignoredFilePaths = _empty; // The files that has been ignored by the compilator for this operation (basically because they are not part of the solution).
291+
private ImmutableHashSet<string> _ignoredFilePaths = _empty; // The files that have been ignored by the compilator for this operation (basically because they are not part of the solution).
292292
private int /* HotReloadResult */ _result = -1;
293293
private CancellationTokenSource? _deferredCompletion;
294294
private ImmutableArray<Diagnostic>? _diagnostics;
@@ -307,7 +307,7 @@ private class HotReloadServerOperation
307307
public HotReloadServerOperation? Previous => _previous;
308308

309309
/// <summary>
310-
/// List of all file paths that has been considered for this hot-reload operation.
310+
/// List of all file paths that have been considered for this hot-reload operation.
311311
/// </summary>
312312
/// <remarks>This **includes** the <see cref="IgnoredFilePaths"/>.</remarks>
313313
public ImmutableHashSet<string> ConsideredFilePaths => _consideredFilePaths;
@@ -316,7 +316,7 @@ private class HotReloadServerOperation
316316
/// Gets the collection of file paths that are excluded from processing.
317317
/// </summary>
318318
/// <remarks>
319-
/// Files are typically ignored when they are not existing yet in the current solution.
319+
/// Files are typically ignored when they do not yet exist in the current solution.
320320
/// </remarks>
321321
public ImmutableHashSet<string> IgnoredFilePaths => _ignoredFilePaths;
322322

@@ -392,11 +392,11 @@ public void EnableAutoRetryIfNoChanges(int? attempts, TimeSpan? delay)
392392
}
393393

394394
/// <summary>
395-
/// Notifies a files has been ignored for this hot-reload operation.
395+
/// Notifies a file has been ignored for this hot-reload operation.
396396
/// </summary>
397397
/// <param name="file"></param>
398398
public void NotifyIgnored(string file)
399-
=> ImmutableInterlocked.Update(ref _ignoredFilePaths, static (files, file) => files.Remove(file), file);
399+
=> ImmutableInterlocked.Update(ref _ignoredFilePaths, static (files, file) => files.Add(file), file);
400400

401401
/// <summary>
402402
/// As errors might get a bit after the complete from the IDE, we can defer the completion of the operation.

0 commit comments

Comments
 (0)