AdaCore / AdaCore/ada_language_server

provide more control over formatting.

Open
#1,076 7 comments 0 reactions 1 assignee View on GitHub

@joaopsazevedo is already working on this.

Since Dec 14, 2022.

Dominant language
Ada
Stars
304
Forks
70
PR merge metrics
No merged PRs in 30d

Description

ada_language_server uses the gnatpp code to do formatting. That code supports several options that control the formatting. In particular, some combination of settings results in "just indent", which is what Emacs ada-mode wants when the user invokes indent-line.

So it would be nice if there was a way to pass those options to the server, perhaps via an LSP extension command ada_format_options.

In addition, the gnatpp code has a set of formatting rules that can be specified in a file (at least, it did last time I looked; it seems that feature was only intended for internal development). It would be nice to allow the user to specify a file to replace the formatting rules; then we could implement any formatting style using ada_language_server.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.