From bee383d522a9a82924a0307261c0b7b022ac9f59 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Wed, 9 Dec 2020 20:38:59 +0100 Subject: [PATCH] Report progress for validate command (#336) --- internal/langserver/handlers/command/validate.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/langserver/handlers/command/validate.go b/internal/langserver/handlers/command/validate.go index b215f449e..82e0d9aaf 100644 --- a/internal/langserver/handlers/command/validate.go +++ b/internal/langserver/handlers/command/validate.go @@ -42,6 +42,11 @@ func TerraformValidateHandler(ctx context.Context, args cmd.CommandArgs) (interf return nil, err } + progressBegin(ctx, "Validating") + defer func() { + progressEnd(ctx, "Finished") + }() + progressReport(ctx, "Running terraform validate ...") hclDiags, err := rm.ExecuteTerraformValidate(ctx) if err != nil { return nil, err