Skip to content

Commit

Permalink
Rename CompletionItemR to CompletionItemWithResolveHook
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck committed Aug 1, 2022
1 parent 183acf2 commit d67e2c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/langserver/handlers/completion_resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
lsp "github.com/hashicorp/terraform-ls/internal/protocol"
)

func (svc *service) CompletionItemResolve(ctx context.Context, params lsp.CompletionItemR) (lsp.CompletionItemR, error) {
func (svc *service) CompletionItemResolve(ctx context.Context, params lsp.CompletionItemWithResolveHook) (lsp.CompletionItemWithResolveHook, error) {
cc, err := ilsp.ClientCapabilities(ctx)
if err != nil {
return params, err
Expand Down
2 changes: 1 addition & 1 deletion internal/protocol/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package protocol

import "github.com/hashicorp/hcl-lang/lang"

type CompletionItemR struct {
type CompletionItemWithResolveHook struct {
CompletionItem

ResolveHook *lang.ResolveHook `json:"data,omitempty"`
Expand Down

0 comments on commit d67e2c3

Please sign in to comment.