Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lsp: Enable formatting functionality #643

Merged
merged 1 commit into from
Apr 11, 2024

Commits on Apr 11, 2024

  1. lsp: Enable formatting functionality

    In #641 support was added to
    handle textDocument/formatting requests from clients. However, the
    functionality was disabled for fear that users would see a confusing
    message:
    
    #638 (comment)
    
    In open-policy-agent/vscode-opa#148 the regal
    formatter will be used if the user has enabled regal and opa fmt will be
    used if not. This means that there is only ever one formatter available
    for rego and the user will see no message.
    
    Signed-off-by: Charlie Egan <charlie@styra.com>
    charlieegan3 committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    f756ea7 View commit details
    Browse the repository at this point in the history