Skip to content

feat/rascal formatter - #1102

Merged
DavyLandman merged 77 commits into
mainfrom
feat/rascal-formatter
Sep 2, 2026
Merged

feat/rascal formatter#1102
DavyLandman merged 77 commits into
mainfrom
feat/rascal-formatter

Conversation

@jurgenvinju

@jurgenvinju jurgenvinju commented Jun 5, 2026

Copy link
Copy Markdown
Member

This work by @toinehartman and YT introduces the Rascal formatter to VScode.

  • links the Rascal formatter from the stdlib to the formatDocument and formatSelection capabilities in LSP for Rascal
  • maps all FormattingOptions, taken from: Parametric: formatting #677
  • support for formatting only a selection via the Focus mechanism, also taken from Parametric: formatting #677
  • works with subTreeEditFormatter from util::Formatters correctly
  • adds two UI tests, one for whole file formatting and one for selection formatting

@toinehartman toinehartman mentioned this pull request Aug 28, 2026
2 tasks
@jurgenvinju jurgenvinju self-assigned this Sep 1, 2026
@jurgenvinju
jurgenvinju marked this pull request as ready for review September 1, 2026 10:38

@jurgenvinju jurgenvinju left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy with this.

Note that some important changes have been inherited from #677 which will be finished later.

@DavyLandman DavyLandman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice, I only have a question on a TODO, and the status of that.

Comment thread rascal-lsp/src/main/rascal/lsp/lang/rascal/lsp/Formatter.rsc Outdated
Comment thread rascal-vscode-extension/src/test/vscode-suite/ide.test.ts
@sonarqubecloud

sonarqubecloud Bot commented Sep 2, 2026

Copy link
Copy Markdown

@DavyLandman
DavyLandman merged commit 10216b0 into main Sep 2, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants