From df3880477b4f131952a886f4e6c779bd6db0c1e7 Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Mon, 9 Oct 2023 08:20:28 -0700 Subject: [PATCH] pkg/terminal: support vscode in edit command --- pkg/terminal/command.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/terminal/command.go b/pkg/terminal/command.go index 155f10b64b..a9c1f0239d 100644 --- a/pkg/terminal/command.go +++ b/pkg/terminal/command.go @@ -1945,6 +1945,8 @@ func edit(t *Term, ctx callContext, args string) error { return err } switch editor { + case "code": + return runEditor("--goto", fmt.Sprintf("%s:%d", file, lineno)) case "hx": return runEditor(fmt.Sprintf("%s:%d", file, lineno)) case "vi", "vim", "nvim":