From f3e0ec83f1a2cf11c9337a1377601af68d816029 Mon Sep 17 00:00:00 2001 From: Michael Kelley Date: Sat, 3 Feb 2024 11:39:48 -0800 Subject: [PATCH] Update editor launch condition in PSFzf.Functions.ps1 (#248) - Detects code-insiders and codium for --goto support --- PSFzf.Functions.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PSFzf.Functions.ps1 b/PSFzf.Functions.ps1 index 3d58384..238be15 100644 --- a/PSFzf.Functions.ps1 +++ b/PSFzf.Functions.ps1 @@ -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('"'))