Skip to content

Commit

Permalink
Add link to follow-up issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck committed Mar 26, 2024
1 parent 715641c commit 075cc74
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions decoder/expr_function.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ func (fe functionExpr) CompletionAtPos(ctx context.Context, pos hcl.Pos) []lang.
// check if our recovered identifier contains "::"
// Why two colons? For no colons the parser would return a traversal expression
// and a single colon will apparently be treated as a traversal and a partial object expression
// (refer to this follow-up issue for more on that case: TODOTODOTODOTODOTODOTODOTODOTODO)
// (refer to this follow-up issue for more on that case: https://github.com/hashicorp/vscode-terraform/issues/1697)
if bytes.Contains(recoveredIdentifier, []byte("::")) {

editRange := hcl.Range{
Filename: fe.expr.Range().Filename,
Start: hcl.Pos{
Expand All @@ -101,7 +100,6 @@ func (fe functionExpr) CompletionAtPos(ctx context.Context, pos hcl.Pos) []lang.
}

return fe.matchingFunctions(string(recoveredPrefixBytes), editRange)

}
}

Expand Down

0 comments on commit 075cc74

Please sign in to comment.