Skip to content

Commit

Permalink
Update editor launch condition in PSFzf.Functions.ps1 (#248)
Browse files Browse the repository at this point in the history
- Detects code-insiders and codium for --goto support
  • Loading branch information
kelleyma49 authored Feb 3, 2024
1 parent a02741b commit f3e0ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PSFzf.Functions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function Get-EditorLaunch() {
}
}

if ($editor -eq 'code') {
if ($editor -eq 'code' -or $editor -eq 'code-insiders' -or $editor -eq 'codium') {
if ($FileList -is [array] -and $FileList.length -gt 1) {
for ($i = 0; $i -lt $FileList.Count; $i++) {
$FileList[$i] = '"{0}"' -f $(Resolve-Path $FileList[$i].Trim('"'))
Expand Down

0 comments on commit f3e0ec8

Please sign in to comment.