diff options
Diffstat (limited to 'internal/hexaiaction/run.go')
| -rw-r--r-- | internal/hexaiaction/run.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/hexaiaction/run.go b/internal/hexaiaction/run.go index 953da80..a5f47cf 100644 --- a/internal/hexaiaction/run.go +++ b/internal/hexaiaction/run.go @@ -41,8 +41,10 @@ func Run(ctx context.Context, stdin io.Reader, stdout, stderr io.Writer) error { if len(cfg.CustomActions) > 0 { chooseActionFn = func() (ActionKind, error) { return RunTUIWithCustom(cfg.CustomActions, cfg.TmuxCustomMenuHotkey) } } - if providerOverride := strings.TrimSpace(cfg.CodeActionProvider); providerOverride != "" { - cfg.Provider = providerOverride + if len(cfg.CodeActionConfigs) > 0 { + if provider := strings.TrimSpace(cfg.CodeActionConfigs[0].Provider); provider != "" { + cfg.Provider = provider + } } cli, err := newClientFromApp(cfg) if err != nil { |
