Conversation
There was a problem hiding this comment.
Pull request overview
This PR performs style cleanup across multiple files in the BuiltInTools/Watch and HotReloadClient projects, focusing on code formatting, documentation fixes, and minor code improvements.
Changes:
- Removed UTF-8 BOM markers and extra blank lines from several source files
- Fixed XML documentation tags and removed trailing whitespace
- Simplified lambda expressions to method group references
- Added nullable type annotation to
OSSpecificPathComparer - Removed redundant field initializer and added readonly modifier
- Added Microsoft.Extensions.DependencyInjection.Abstractions package reference
Reviewed changes
Copilot reviewed 14 out of 15 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/BuiltInTools/Watch/Utilities/PathUtilities.cs | Changed IEqualityComparer<string> to IEqualityComparer<string?> for better nullability handling |
| src/BuiltInTools/Watch/Process/RunningProject.cs | Removed UTF-8 BOM and extra blank line |
| src/BuiltInTools/Watch/Process/ProcessSpec.cs | Removed extra blank line, redundant = false initialization, and fixed XML documentation tag |
| src/BuiltInTools/Watch/Process/ProcessRunner.cs | Removed UTF-8 BOM and extra blank line |
| src/BuiltInTools/Watch/Microsoft.DotNet.HotReload.Watch.csproj | Removed trailing whitespace from comment |
| src/BuiltInTools/Watch/HotReload/HotReloadEventSource.cs | Removed extra blank line |
| src/BuiltInTools/Watch/HotReload/HotReloadDotNetWatcher.cs | Removed BOM, simplified three lambda expressions to method group references |
| src/BuiltInTools/Watch/HotReload/CompilationHandler.cs | Removed BOM, removed outdated comment reference, simplified lambda to method group |
| src/BuiltInTools/Watch/FileWatcher/PollingDirectoryWatcher.cs | Added readonly modifier to _pollingThread field, simplified lambda to method group |
| src/BuiltInTools/Watch/FileWatcher/FileWatcher.cs | Simplified lambda expression to method group reference |
| src/BuiltInTools/Watch/Context/DotNetWatchContext.cs | Removed extra blank line |
| src/BuiltInTools/Watch/Build/ProjectNodeMap.cs | Removed UTF-8 BOM and extra blank line |
| src/BuiltInTools/Watch/Build/ProjectGraphFactory.cs | Removed BOM, fixed XML documentation tag from <see cref> to <paramref> |
| src/BuiltInTools/Watch/Build/FileItem.cs | Removed UTF-8 BOM and extra blank line |
| src/BuiltInTools/HotReloadClient/Microsoft.DotNet.HotReload.Client.Package.csproj | Added Microsoft.Extensions.DependencyInjection.Abstractions package reference |
src/BuiltInTools/HotReloadClient/Microsoft.DotNet.HotReload.Client.Package.csproj
Show resolved
Hide resolved
MichaelSimons
left a comment
There was a problem hiding this comment.
Changes look good. Can you explain why the Microsoft.Extensions.DependencyInjection.Abstractions dependency was added? I am not drawing a connection to style cleanup.
|
It's a dependency of |
Cleans up diagnostics reported when building in Aspire repo: dotnet/aspire#14259