Skip to content

Commit 9fb667b

Browse files
committed
2 parents a3e5c77 + d3b021b commit 9fb667b

File tree

5 files changed

+24
-18
lines changed

5 files changed

+24
-18
lines changed

docs/diff-tool.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ Non-MDI tools are preferred since it allows [DiffEngineTray](tray.md) to track a
780780
* Is MDI: True
781781
* Supports auto-refresh: True
782782
* Supports text files: True
783-
* Use shell execute: True
783+
* Use shell execute: False
784784
* Environment variable for custom install location: `DiffEngine_VisualStudioCode`
785785
* Supported binaries: .svg
786786

@@ -793,11 +793,11 @@ Non-MDI tools are preferred since it allows [DiffEngineTray](tray.md) to track a
793793
* Example target on left arguments: `--diff "targetFile.txt" "tempFile.txt" `
794794
* Example target on right arguments: `--diff "tempFile.txt" "targetFile.txt" `
795795
* Scanned paths:
796-
* `%LocalAppData%\Programs\Microsoft VS Code\code.exe`
797-
* `%ProgramFiles%\Microsoft VS Code\code.exe`
798-
* `%ProgramW6432%\Microsoft VS Code\code.exe`
799-
* `%ProgramFiles(x86)%\Microsoft VS Code\code.exe`
800-
* `%PATH%code.exe`
796+
* `%LocalAppData%\Programs\Microsoft VS Code\bin\code.cmd`
797+
* `%ProgramFiles%\Microsoft VS Code\bin\code.cmd`
798+
* `%ProgramW6432%\Microsoft VS Code\bin\code.cmd`
799+
* `%ProgramFiles(x86)%\Microsoft VS Code\bin\code.cmd`
800+
* `%PATH%code.cmd`
801801

802802
#### OSX settings:
803803

docs/diff-tool.order.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ For example `VisualStudio,Meld` will result in VisualStudio then Meld then all o
5151
```cs
5252
DiffTools.UseOrder(DiffTool.VisualStudio, DiffTool.AraxisMerge);
5353
```
54-
<sup><a href='/src/DiffEngine.Tests/DiffToolsTest.cs#L177-L181' title='Snippet source file'>snippet source</a> | <a href='#snippet-UseOrder' title='Start of snippet'>anchor</a></sup>
54+
<sup><a href='/src/DiffEngine.Tests/DiffToolsTest.cs#L183-L187' title='Snippet source file'>snippet source</a> | <a href='#snippet-UseOrder' title='Start of snippet'>anchor</a></sup>
5555
<!-- endSnippet -->

src/DiffEngine.Tests/DiffToolsTest.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,14 @@ static async Task AddToolAndLaunch()
115115

116116
#endregion
117117
}
118-
119118
/**
119+
120+
[Fact]
121+
public Task LaunchSpecificTextDiff() =>
122+
DiffRunner.LaunchAsync(DiffTool.VisualStudioCode,
123+
Path.Combine(SourceDirectory, "input.temp.txt"),
124+
Path.Combine(SourceDirectory, "input.target.txt"));
125+
120126
[Fact]
121127
public Task LaunchSpecificImageDiff() =>
122128
DiffRunner.LaunchAsync(DiffTool.P4Merge,

src/DiffEngine.Tests/diffTools.include.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ Non-MDI tools are preferred since it allows [DiffEngineTray](tray.md) to track a
645645
* Is MDI: True
646646
* Supports auto-refresh: True
647647
* Supports text files: True
648-
* Use shell execute: True
648+
* Use shell execute: False
649649
* Environment variable for custom install location: `DiffEngine_VisualStudioCode`
650650
* Supported binaries: .svg
651651

@@ -658,11 +658,11 @@ Non-MDI tools are preferred since it allows [DiffEngineTray](tray.md) to track a
658658
* Example target on left arguments: `--diff "targetFile.txt" "tempFile.txt" `
659659
* Example target on right arguments: `--diff "tempFile.txt" "targetFile.txt" `
660660
* Scanned paths:
661-
* `%LocalAppData%\Programs\Microsoft VS Code\code.exe`
662-
* `%ProgramFiles%\Microsoft VS Code\code.exe`
663-
* `%ProgramW6432%\Microsoft VS Code\code.exe`
664-
* `%ProgramFiles(x86)%\Microsoft VS Code\code.exe`
665-
* `%PATH%code.exe`
661+
* `%LocalAppData%\Programs\Microsoft VS Code\bin\code.cmd`
662+
* `%ProgramFiles%\Microsoft VS Code\bin\code.cmd`
663+
* `%ProgramW6432%\Microsoft VS Code\bin\code.cmd`
664+
* `%ProgramFiles(x86)%\Microsoft VS Code\bin\code.cmd`
665+
* `%PATH%code.cmd`
666666

667667
#### OSX settings:
668668

src/DiffEngine/Implementation/VsCode.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ public static Definition VisualStudioCode()
1111
AutoRefresh: true,
1212
IsMdi: true,
1313
SupportsText: true,
14-
UseShellExecute: true,
14+
UseShellExecute: false,
1515
RequiresTarget: true,
1616
Cost: "Free",
1717
BinaryExtensions: [".svg"],
1818
OsSupport: new(
1919
Windows: new(
20-
"code.exe",
20+
"code.cmd",
2121
launchArguments,
22-
@"%LocalAppData%\Programs\Microsoft VS Code\",
23-
@"%ProgramFiles%\Microsoft VS Code\"),
22+
@"%LocalAppData%\Programs\Microsoft VS Code\bin\",
23+
@"%ProgramFiles%\Microsoft VS Code\bin\"),
2424
Linux: new(
2525
"code",
2626
launchArguments),

0 commit comments

Comments
 (0)