Skip to content

Commit

Permalink
move back to UseShellExecute = true (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Jun 24, 2024
1 parent d7ccb9e commit 2ffd34b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/DiffEngine/DiffRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ static int LaunchProcess(ResolvedTool tool, string arguments)
var startInfo = new ProcessStartInfo(tool.ExePath, arguments)
{
// Given the full exe path is known we dont need UseShellExecute https://stackoverflow.com/a/5255335
UseShellExecute = false
// however UseShellExecute allows the test running to not block when the difftool is launched
// https://github.com/VerifyTests/Verify/issues/1229
UseShellExecute = true
};
try
{
Expand Down
4 changes: 3 additions & 1 deletion src/DiffEngineTray/DiffToolLauncher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public static void Launch(TrackedMove move)
var startInfo = new ProcessStartInfo(move.Exe!, move.Arguments!)
{
// Given the full exe path is known we dont need UseShellExecute https://stackoverflow.com/a/5255335
UseShellExecute = false
// however UseShellExecute allows the test running to not block when the difftool is launched
// https://github.com/VerifyTests/Verify/issues/1229
UseShellExecute = true
};

try
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project>
<PropertyGroup>
<NoWarn>CS1591;CS0649</NoWarn>
<Version>15.4.3</Version>
<Version>15.4.4</Version>
<AssemblyVersion>1.0.0</AssemblyVersion>
<PackageTags>Testing, Snapshot, Diff, Compare</PackageTags>
<Description>Launches diff tools based on file extensions. Designed to be consumed by snapshot testing libraries.</Description>
Expand Down

0 comments on commit 2ffd34b

Please sign in to comment.