Skip to content

Commit c556f2c

Browse files
committed
fixed completion
1 parent c5c8d6b commit c556f2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handlers/completion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func CreateTextDocumentCompletion(dm *documents.DocumentManager) protocol.TextDo
7070
for table != nil {
7171
for name := range table.Declarations {
7272
decl, _, _ := table.LookupDecl(name)
73-
if decl.GetRange().Start.IsBehind(helper.FromProtocolPosition(params.Position)) {
73+
if decl.Module() == docModule && decl.GetRange().Start.IsBehind(helper.FromProtocolPosition(params.Position)) {
7474
continue
7575
}
7676

0 commit comments

Comments
 (0)