Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck committed Mar 12, 2023
1 parent 20509ec commit 6bc553f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions internal/decoder/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
tfschema "github.com/hashicorp/terraform-schema/schema"
)

func coreFunctions(mod *state.Module) map[string]schema.FuncSignature {
func coreFunctions(mod *state.Module) map[string]schema.FunctionSignature {
if mod.TerraformVersion != nil {
s, err := tfschema.FunctionsForVersion(mod.TerraformVersion)
if err == nil {
Expand All @@ -31,7 +31,7 @@ func coreFunctions(mod *state.Module) map[string]schema.FuncSignature {
return mustFunctionsForVersion(tfschema.LatestAvailableVersion)
}

func mustFunctionsForVersion(v *version.Version) map[string]schema.FuncSignature {
func mustFunctionsForVersion(v *version.Version) map[string]schema.FunctionSignature {
s, err := tfschema.FunctionsForVersion(v)
if err != nil {
// this should never happen
Expand Down
2 changes: 0 additions & 2 deletions internal/lsp/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ func toCompletionItem(candidate lang.Candidate, caps lsp.CompletionClientCapabil
kind = lsp.StructCompletion
case lang.TraversalCandidateKind:
kind = lsp.VariableCompletion
case lang.FunctionCandidateKind:
kind = lsp.FunctionCompletion
}

// TODO: Omit item which uses kind unsupported by the client
Expand Down
2 changes: 1 addition & 1 deletion internal/lsp/signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
lsp "github.com/hashicorp/terraform-ls/internal/protocol"
)

func ToSignatureHelp(signature *lang.FuncSignature) *lsp.SignatureHelp {
func ToSignatureHelp(signature *lang.FunctionSignature) *lsp.SignatureHelp {
if signature == nil {
return nil
}
Expand Down

0 comments on commit 6bc553f

Please sign in to comment.