Skip to content

Commit

Permalink
Fix validate on save (#799)
Browse files Browse the repository at this point in the history
The `/didSave` handler was missing WithExecutorFactory, which the validate command handler needs to find terraform to execute validate.
  • Loading branch information
jpogran authored Feb 24, 2022
1 parent 5380875 commit 6ab2488
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/langserver/handlers/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ func (svc *service) Assigner() (jrpc2.Assigner, error) {
ctx = lsctx.WithDiagnosticsNotifier(ctx, svc.diagsNotifier)
ctx = lsctx.WithExperimentalFeatures(ctx, &expFeatures)
ctx = exec.WithExecutorOpts(ctx, svc.tfExecOpts)
ctx = exec.WithExecutorFactory(ctx, svc.tfExecFactory)

return handle(ctx, req, svc.TextDocumentDidSave)
},
Expand Down

0 comments on commit 6ab2488

Please sign in to comment.