From 4b21e33661678eb3f2d93e5a9846f9f898fa5764 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Tue, 14 Jun 2022 09:47:45 +0100 Subject: [PATCH] handlers/command: Return partially parsed metadata from module.providers --- internal/langserver/handlers/command/module_providers.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/langserver/handlers/command/module_providers.go b/internal/langserver/handlers/command/module_providers.go index 182dc16b8..104740e2e 100644 --- a/internal/langserver/handlers/command/module_providers.go +++ b/internal/langserver/handlers/command/module_providers.go @@ -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" ) @@ -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 {