Skip to content

Commit

Permalink
fix: enable DocumentFormattingProvider (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn authored Nov 10, 2021
1 parent c209bdb commit 7a27c66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/templ/lspcmd/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ func (p *Proxy) proxyInitialize(ctx context.Context, conn *jsonrpc2.Conn, req *j
resp.Capabilities.ExecuteCommandProvider = &lsp.ExecuteCommandOptions{}
}
resp.Capabilities.ExecuteCommandProvider.Commands = []string{}
resp.Capabilities.DocumentFormattingProvider = true
// Reply to the client.
err = conn.Reply(ctx, req.ID, &resp)
if err != nil {
Expand Down

0 comments on commit 7a27c66

Please sign in to comment.