Skip to content

Commit

Permalink
pkg/terminal: support vscode in edit command (#3524)
Browse files Browse the repository at this point in the history
  • Loading branch information
derekparker authored Oct 9, 2023
1 parent f90ede4 commit 6185e67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/terminal/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 6185e67

Please sign in to comment.