From c7e2952f8f691246924d999065331f0084962b3b Mon Sep 17 00:00:00 2001 From: Michael Kelley Date: Fri, 2 Feb 2024 20:34:34 -0800 Subject: [PATCH] Update editor launch condition in PSFzf.Functions.ps1 - 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('"'))