The pull request updates the dotnet-tools.json file to use the latest tools and adds a new function checkExistence to the Utils.fs file to simplify file existence checks. These changes enhance the project's reliability and code quality.
🤖 Generated by Copilot at 8704a72
Oh we're the merry coders of the F# crewWe update our tools and refactor tooWe use checkExistence to make our code neatAnd we heave away on the count of three
:arrow_up::wrench::recycle:
WHY
Fixes a validation gap described in https://github.com/fsharp/FsAutoComplete/issues/1014#issuecomment-1542429111 - we check PATH and the 'default' locations for the existence of the actual dotnet binary, we should do the same for the paths inferred from environment variables. This makes users in mixed-mode scenarios less likely to experience errors.
HOW
🤖 Generated by Copilot at 8704a72
Updated the versions of paket and fantomas tools in the .config/dotnet-tools.json file to use the latest and stable releases (link, link)
Added a new function checkExistence to the Paths module in the src/Ionide.ProjInfo/Utils.fs file to simplify the logic of checking file existence (link)
Refactored the logic of three functions in the Paths module (<private>, <private>, and tryFindFile) to use the checkExistence function instead of directly checking the Exists property of the FileInfo object, to avoid code duplication and improve readability (link, link, link)
WHAT
🤖 Generated by Copilot at 8704a72
The pull request updates the
dotnet-tools.json
file to use the latest tools and adds a new functioncheckExistence
to theUtils.fs
file to simplify file existence checks. These changes enhance the project's reliability and code quality.🤖 Generated by Copilot at 8704a72
:arrow_up::wrench::recycle:
WHY
Fixes a validation gap described in https://github.com/fsharp/FsAutoComplete/issues/1014#issuecomment-1542429111 - we check PATH and the 'default' locations for the existence of the actual
dotnet
binary, we should do the same for the paths inferred from environment variables. This makes users in mixed-mode scenarios less likely to experience errors.HOW
🤖 Generated by Copilot at 8704a72
.config/dotnet-tools.json
file to use the latest and stable releases (link, link)checkExistence
to thePaths
module in thesrc/Ionide.ProjInfo/Utils.fs
file to simplify the logic of checking file existence (link)Paths
module (<private>
,<private>
, andtryFindFile
) to use thecheckExistence
function instead of directly checking theExists
property of theFileInfo
object, to avoid code duplication and improve readability (link, link, link)