Skip to content

Commit

Permalink
feat: automatic formatting in Langium (#526)
Browse files Browse the repository at this point in the history
Closes #31
Closes #33
Closes #513
Closes partially #433

### Summary of Changes

* Migrate Xtext formatter to Langium
* Break the following lists across multiple lines if needed:
  * arguments
  * parameters
  * type parameters
  * results
* Allow additional new lines between statements
* Greatly improve formatter tests (though `vitest` doesn't quite reflect
that for now)

---------

Co-authored-by: megalinter-bot <129584137+megalinter-bot@users.noreply.github.com>
  • Loading branch information
lars-reimann and megalinter-bot authored Jul 4, 2023
1 parent d2913a9 commit 922af22
Show file tree
Hide file tree
Showing 637 changed files with 6,873 additions and 352 deletions.
1 change: 1 addition & 0 deletions DSL/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions DSL/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"true-myth": "^6.2.0",
"vscode-languageclient": "^8.1.0",
"vscode-languageserver": "^8.1.0",
"vscode-languageserver-types": "^3.17.3",
"vscode-uri": "^3.0.7"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 922af22

Please sign in to comment.