summaryrefslogtreecommitdiffhomepage
path: root/internal/completions
diff options
context:
space:
mode:
authorAdictya <[email protected]>2025-05-15 08:46:40 +0530
committerAdam <[email protected]>2025-05-15 08:29:54 -0500
commit3ee213081ec6bf42f6947d03e256319c29a8ce0e (patch)
treeb5da8dc591d7b78c2a6b31eb77bdbc9ac48d223b /internal/completions
parent15bf40bc102ed5426fa2148b9e8f39acef1174a0 (diff)
downloadopencode-3ee213081ec6bf42f6947d03e256319c29a8ce0e.tar.gz
opencode-3ee213081ec6bf42f6947d03e256319c29a8ce0e.zip
fix(complete-module): logging
Diffstat (limited to 'internal/completions')
-rw-r--r--internal/completions/files-folders.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/internal/completions/files-folders.go b/internal/completions/files-folders.go
index af1b5a874..a405b34cd 100644
--- a/internal/completions/files-folders.go
+++ b/internal/completions/files-folders.go
@@ -7,9 +7,9 @@ import (
"path/filepath"
"github.com/lithammer/fuzzysearch/fuzzy"
- "github.com/opencode-ai/opencode/internal/fileutil"
- "github.com/opencode-ai/opencode/internal/logging"
- "github.com/opencode-ai/opencode/internal/tui/components/dialog"
+ "github.com/sst/opencode/internal/fileutil"
+ "github.com/sst/opencode/internal/status"
+ "github.com/sst/opencode/internal/tui/components/dialog"
)
type filesAndFoldersContextGroup struct {
@@ -82,7 +82,7 @@ func (cg *filesAndFoldersContextGroup) getFiles(query string) ([]string, error)
errFzf := cmdFzf.Wait()
if errRg != nil {
- logging.Warn(fmt.Sprintf("rg command failed during pipe: %v", errRg))
+ status.Warn(fmt.Sprintf("rg command failed during pipe: %v", errRg))
}
if errFzf != nil {
@@ -96,7 +96,7 @@ func (cg *filesAndFoldersContextGroup) getFiles(query string) ([]string, error)
// Case 2: Only rg available
} else if cmdRg != nil {
- logging.Debug("Using Ripgrep with fuzzy match fallback for file completions")
+ status.Debug("Using Ripgrep with fuzzy match fallback for file completions")
var rgOut bytes.Buffer
var rgErr bytes.Buffer
cmdRg.Stdout = &rgOut
@@ -111,7 +111,7 @@ func (cg *filesAndFoldersContextGroup) getFiles(query string) ([]string, error)
// Case 3: Only fzf available
} else if cmdFzf != nil {
- logging.Debug("Using FZF with doublestar fallback for file completions")
+ status.Debug("Using FZF with doublestar fallback for file completions")
files, _, err := fileutil.GlobWithDoublestar("**/*", ".", 0)
if err != nil {
return nil, fmt.Errorf("failed to list files for fzf: %w", err)
@@ -147,7 +147,7 @@ func (cg *filesAndFoldersContextGroup) getFiles(query string) ([]string, error)
// Case 4: Fallback to doublestar with fuzzy match
} else {
- logging.Debug("Using doublestar with fuzzy match for file completions")
+ status.Debug("Using doublestar with fuzzy match for file completions")
allFiles, _, err := fileutil.GlobWithDoublestar("**/*", ".", 0)
if err != nil {
return nil, fmt.Errorf("failed to glob files: %w", err)