Skip to content

Commit

Permalink
fix:unexpected gop overload completion in go
Browse files Browse the repository at this point in the history
  • Loading branch information
luoliwoshang committed May 15, 2024
1 parent ab79a37 commit b2aec62
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gopls/internal/lsp/source/completion/deep_completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"strings"
"time"

"github.com/goplus/gogen"
"github.com/qiniu/x/log"
"golang.org/x/tools/gopls/internal/goxls"
)
Expand Down Expand Up @@ -138,7 +139,11 @@ func (c *completer) deepSearch(ctx context.Context, start time.Time, deadline *t
if obj == nil {
continue
}

if sig, ok := obj.Type().(*types.Signature); ok { //goxls:skip gop overload
if _, ok := gogen.CheckSigFuncEx(sig); ok {
continue
}
}
// At the top level, dedupe by object.
if len(cand.path) == 0 {
if c.seen[obj] {
Expand Down

0 comments on commit b2aec62

Please sign in to comment.