Skip to content

Commit

Permalink
handlers/command: Return partially parsed metadata from module.provid…
Browse files Browse the repository at this point in the history
…ers (#951)
  • Loading branch information
radeksimko committed Jun 14, 2022
1 parent 4eb798c commit b0dbd1a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/langserver/handlers/command/module_providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (

"github.com/creachadair/jrpc2/code"
"github.com/hashicorp/terraform-ls/internal/langserver/cmd"
op "github.com/hashicorp/terraform-ls/internal/terraform/module/operation"
"github.com/hashicorp/terraform-ls/internal/uri"
tfaddr "github.com/hashicorp/terraform-registry-address"
)
Expand Down Expand Up @@ -51,10 +50,6 @@ func (h *CmdHandler) ModuleProvidersHandler(ctx context.Context, args cmd.Comman
return response, nil
}

if mod.MetaState == op.OpStateUnknown || mod.MetaErr != nil {
return response, nil
}

for provider, version := range mod.Meta.ProviderRequirements {
docsLink, err := getProviderDocumentationLink(ctx, provider)
if err != nil {
Expand Down

0 comments on commit b0dbd1a

Please sign in to comment.