Skip to content

Commit

Permalink
Support VS Code and Rider installed with scoop (#263)
Browse files Browse the repository at this point in the history
Co-authored-by: Oskar Hermansson <[email protected]>
  • Loading branch information
oskar and Oskar Hermansson authored Nov 3, 2021
1 parent 8e78f7f commit 02c2155
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/DiffEngine/Implementation/Rider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ static string TargetRightArguments(string temp, string target) =>
@"%LOCALAPPDATA%\JetBrains\Installations\Rider*\bin\rider64.exe",
@"%ProgramFiles%\JetBrains\JetBrains Rider *\bin\rider64.exe",
@"%JetBrains Rider%\rider64.exe",
@"%LOCALAPPDATA%\JetBrains\Toolbox\apps\Rider\*\*\bin\rider64.exe"),
@"%LOCALAPPDATA%\JetBrains\Toolbox\apps\Rider\*\*\bin\rider64.exe",
@"%UserProfile%\scoop\apps\rider\current\IDE\bin\rider64.exe"),
osx: new(
TargetLeftArguments,
TargetRightArguments,
Expand Down
4 changes: 3 additions & 1 deletion src/DiffEngine/Implementation/VsCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ static string TargetRightArguments(string temp, string target) =>
TargetRightArguments,
@"%LocalAppData%\Programs\Microsoft VS Code\code.exe",
@"%ProgramFiles%\Microsoft VS Code\bin\code.exe",
@"%ProgramFiles%\Microsoft VS Code\code.exe"),
@"%ProgramFiles%\Microsoft VS Code\code.exe",
@"%UserProfile%\scoop\apps\vscode\current\bin\code.cmd",
@"%UserProfile%\scoop\apps\vscode\current\code.exe"),
linux: new(
TargetLeftArguments,
TargetRightArguments,
Expand Down

0 comments on commit 02c2155

Please sign in to comment.