Skip to content

Commit

Permalink
Report progress for validate command (hashicorp#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko authored Dec 9, 2020
1 parent bb6ed57 commit bee383d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/langserver/handlers/command/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bee383d

Please sign in to comment.