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

Request: Formatter to emit proven fine-grained edits #3415

Open
MikaelMayer opened this issue Jan 26, 2023 · 0 comments
Open

Request: Formatter to emit proven fine-grained edits #3415

MikaelMayer opened this issue Jan 26, 2023 · 0 comments
Labels
kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny part: language server Support for LSP in Dafny (server part; client is in ide-vscode repo)

Comments

@MikaelMayer
Copy link
Member

In the PR #2399, formatting on the IDE results in an action that wipes out entirely the previous text and inserts the formatted program.
It would be great to actually transform the formatter in Dafny to emit a diff such that we prove that applying the diff provides the same output, and we can then emit that diff instead of a single change.
Benefits

  • (to confirm) previous verification can be kept intact.

See function GetTextEditToFormatCode in the LSP.

@MikaelMayer MikaelMayer added kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny part: language server Support for LSP in Dafny (server part; client is in ide-vscode repo) labels Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny part: language server Support for LSP in Dafny (server part; client is in ide-vscode repo)
Projects
None yet
Development

No branches or pull requests

1 participant