Skip to content

Commit 2c99a42

Browse files
committed
.
1 parent 94bdb72 commit 2c99a42

22 files changed

+37
-11
lines changed

src/DiffEngine.Tests/DiffRunnerTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ static DiffRunnerTests() =>
187187
autoRefresh: true,
188188
isMdi: false,
189189
supportsText: true,
190+
createNoWindow: false,
190191
requiresTarget: true,
191192
launchArguments: new(
192193
Left: (tempFile, targetFile) => $"\"{tempFile}\" \"{targetFile}\"",

src/DiffEngine.Tests/DiffToolsTest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public void AddTool()
2020
isMdi: false,
2121
supportsText: true,
2222
requiresTarget: true,
23+
createNoWindow: false,
2324
launchArguments: new(
2425
Left: (tempFile, targetFile) => $"\"{targetFile}\" \"{tempFile}\"",
2526
Right: (tempFile, targetFile) => $"\"{tempFile}\" \"{targetFile}\""),
@@ -44,6 +45,7 @@ public void OrderShouldNotMessWithAddTool()
4445
isMdi: false,
4546
supportsText: true,
4647
requiresTarget: true,
48+
createNoWindow: false,
4749
launchArguments: new(
4850
Left: (tempFile, targetFile) => $"\"{targetFile}\" \"{tempFile}\"",
4951
Right: (tempFile, targetFile) => $"\"{tempFile}\" \"{targetFile}\""),
@@ -65,6 +67,7 @@ public void TextConvention()
6567
isMdi: false,
6668
supportsText: true,
6769
requiresTarget: true,
70+
createNoWindow: false,
6871
launchArguments: new(
6972
Left: (tempFile, targetFile) => $"\"{targetFile}\" \"{tempFile}\"",
7073
Right: (tempFile, targetFile) => $"\"{tempFile}\" \"{targetFile}\""),

src/DiffEngine/Definition.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ public record Definition(
1010
string[] BinaryExtensions,
1111
string Cost,
1212
OsSupport OsSupport,
13+
bool CreateNoWindow,
1314
string? Notes = null);

src/DiffEngine/DiffTools_Add.cs

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
public static partial class DiffTools
44
{
5-
public static ResolvedTool? AddToolBasedOn(DiffTool basedOn, string name, bool? autoRefresh = null, bool? isMdi = null, bool? supportsText = null, bool? requiresTarget = null, LaunchArguments? launchArguments = null, string? exePath = null, IEnumerable<string>? binaryExtensions = null)
5+
public static ResolvedTool? AddToolBasedOn(DiffTool basedOn, string name, bool? autoRefresh = null, bool? isMdi = null, bool? supportsText = null, bool? requiresTarget = null, LaunchArguments? launchArguments = null, string? exePath = null, IEnumerable<string>? binaryExtensions = null, bool? createNoWindow = false)
66
{
77
var existing = resolved.SingleOrDefault(_ => _.Tool == basedOn);
88
if (existing == null)
@@ -18,26 +18,27 @@ public static partial class DiffTools
1818
requiresTarget ?? existing.RequiresTarget,
1919
launchArguments ?? existing.LaunchArguments,
2020
exePath ?? existing.ExePath,
21-
binaryExtensions ?? existing.BinaryExtensions);
21+
binaryExtensions ?? existing.BinaryExtensions,
22+
createNoWindow ?? existing.CreateNoWindow);
2223
}
2324

24-
public static ResolvedTool? AddTool(string name, bool autoRefresh, bool isMdi, bool supportsText, bool requiresTarget, IEnumerable<string> binaryExtensions, OsSupport osSupport) =>
25-
AddTool(name, null, autoRefresh, isMdi, supportsText, requiresTarget, binaryExtensions, osSupport);
25+
public static ResolvedTool? AddTool(string name, bool autoRefresh, bool isMdi, bool supportsText, bool requiresTarget, IEnumerable<string> binaryExtensions, OsSupport osSupport, bool createNoWindow) =>
26+
AddTool(name, null, autoRefresh, isMdi, supportsText, requiresTarget, binaryExtensions, osSupport, createNoWindow);
2627

27-
public static ResolvedTool? AddTool(string name, bool autoRefresh, bool isMdi, bool supportsText, bool requiresTarget, LaunchArguments launchArguments, string exePath, IEnumerable<string> binaryExtensions) =>
28-
AddInner(name, null, autoRefresh, isMdi, supportsText, requiresTarget, binaryExtensions, exePath, launchArguments);
28+
public static ResolvedTool? AddTool(string name, bool autoRefresh, bool isMdi, bool supportsText, bool requiresTarget, LaunchArguments launchArguments, string exePath, IEnumerable<string> binaryExtensions, bool createNoWindow) =>
29+
AddInner(name, null, autoRefresh, isMdi, supportsText, requiresTarget, binaryExtensions, exePath, launchArguments, createNoWindow);
2930

30-
static ResolvedTool? AddTool(string name, DiffTool? diffTool, bool autoRefresh, bool isMdi, bool supportsText, bool requiresTarget, IEnumerable<string> binaryExtensions, OsSupport osSupport)
31+
static ResolvedTool? AddTool(string name, DiffTool? diffTool, bool autoRefresh, bool isMdi, bool supportsText, bool requiresTarget, IEnumerable<string> binaryExtensions, OsSupport osSupport, bool createNoWindow)
3132
{
3233
if (!OsSettingsResolver.Resolve(name, osSupport, out var exePath, out var launchArguments))
3334
{
3435
return null;
3536
}
3637

37-
return AddInner(name, diffTool, autoRefresh, isMdi, supportsText, requiresTarget, binaryExtensions, exePath, launchArguments);
38+
return AddInner(name, diffTool, autoRefresh, isMdi, supportsText, requiresTarget, binaryExtensions, exePath, launchArguments, createNoWindow);
3839
}
3940

40-
static ResolvedTool? AddInner(string name, DiffTool? diffTool, bool autoRefresh, bool isMdi, bool supportsText, bool requiresTarget, IEnumerable<string> binaries, string exePath, LaunchArguments launchArguments)
41+
static ResolvedTool? AddInner(string name, DiffTool? diffTool, bool autoRefresh, bool isMdi, bool supportsText, bool requiresTarget, IEnumerable<string> binaries, string exePath, LaunchArguments launchArguments, bool createNoWindow)
4142
{
4243
Guard.AgainstEmpty(name, nameof(name));
4344
if (resolved.Any(_ => _.Name == name))
@@ -59,7 +60,8 @@ public static partial class DiffTools
5960
autoRefresh,
6061
binaries.ToList(),
6162
requiresTarget,
62-
supportsText);
63+
supportsText,
64+
createNoWindow);
6365

6466
AddResolvedToolAtStart(tool);
6567

@@ -95,7 +97,8 @@ static void InitTools(bool throwForNoTool, IEnumerable<DiffTool> order)
9597
definition.SupportsText,
9698
definition.RequiresTarget,
9799
definition.BinaryExtensions,
98-
definition.OsSupport);
100+
definition.OsSupport,
101+
definition.CreateNoWindow);
99102
}
100103

101104
custom.Reverse();

src/DiffEngine/Implementation/AraxisMerge.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public static Definition AraxisMerge() =>
99
Cost: "Paid",
1010
SupportsText: true,
1111
RequiresTarget: true,
12+
CreateNoWindow: false,
1213
BinaryExtensions:
1314
[
1415
".svg",

src/DiffEngine/Implementation/BeyondCompare.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ static string RightOsxLinuxArguments(string temp, string target) =>
2020
AutoRefresh: true,
2121
IsMdi: false,
2222
SupportsText: true,
23+
CreateNoWindow: false,
2324
Cost: "Paid",
2425
// technically BC doesnt require a target.
2526
// but if no target exists, the target cannot be edited

src/DiffEngine/Implementation/Diffinity.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ public static Definition Diffinity() =>
77
AutoRefresh: true,
88
IsMdi: false,
99
SupportsText: true,
10+
CreateNoWindow: false,
1011
RequiresTarget: true,
1112
Cost: "Free with option to donate",
1213
BinaryExtensions: [".svg"],

src/DiffEngine/Implementation/ExamDiff.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ static string RightArguments(string temp, string target)
2222
AutoRefresh: true,
2323
IsMdi: false,
2424
SupportsText: true,
25+
CreateNoWindow: false,
2526
RequiresTarget: true,
2627
Cost: "Paid",
2728
BinaryExtensions: [".svg"],

src/DiffEngine/Implementation/Guiffy.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public static Definition Guiffy()
1212
AutoRefresh: false,
1313
IsMdi: false,
1414
SupportsText: true,
15+
CreateNoWindow: false,
1516
RequiresTarget: true,
1617
Cost: "Paid",
1718
BinaryExtensions:

src/DiffEngine/Implementation/KDiff3.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public static Definition KDiff3()
1212
AutoRefresh: false,
1313
IsMdi: false,
1414
SupportsText: true,
15+
CreateNoWindow: false,
1516
RequiresTarget: true,
1617
Cost: "Free",
1718
BinaryExtensions: [".svg"],

0 commit comments

Comments
 (0)