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

feat: automatic formatting in Langium #526

Merged
merged 67 commits into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
beb28ac
chore: move code from old DSL component over
lars-reimann Jun 27, 2023
50c4c12
test: collect formatting tests
lars-reimann Jun 27, 2023
be529ac
feat: get started with formatter
lars-reimann Jun 27, 2023
0795bb0
feat: WIP
lars-reimann Jun 30, 2023
81109b4
Merge branch 'main' into 513-port-formatter-to-langium
lars-reimann Jun 30, 2023
6742d8a
test: remove tests related to behavior protocols
lars-reimann Jun 30, 2023
23192ab
test: fail formatter tests if files contain syntax errors
lars-reimann Jun 30, 2023
bb1207e
test: fix syntax errors in formatting tests
lars-reimann Jun 30, 2023
08b8859
feat: better formatting
lars-reimann Jun 30, 2023
22d3aec
Merge branch 'main' into 513-port-formatter-to-langium
lars-reimann Jul 3, 2023
4f97f41
feat: additional formatting
lars-reimann Jul 3, 2023
20d6674
feat: additional formatting
lars-reimann Jul 3, 2023
d5a3ad9
feat: additional formatting
lars-reimann Jul 3, 2023
f968543
feat: additional formatting
lars-reimann Jul 3, 2023
f21aaf9
feat: additional formatting
lars-reimann Jul 3, 2023
aa61a93
feat: additional formatting
lars-reimann Jul 3, 2023
dc5dbe1
feat: additional formatting
lars-reimann Jul 3, 2023
7d86ff3
feat: additional formatting
lars-reimann Jul 3, 2023
7f8f0a8
feat: additional formatting
lars-reimann Jul 3, 2023
d285629
feat: get all old tests working
lars-reimann Jul 3, 2023
69fe4de
style: clean up
lars-reimann Jul 3, 2023
386e9eb
style: sort methods
lars-reimann Jul 3, 2023
8c244d0
style: format code
lars-reimann Jul 3, 2023
001cba3
feat: format schemas
lars-reimann Jul 3, 2023
939acb4
test: copy grammar tests over
lars-reimann Jul 3, 2023
17f3081
test: rename files
lars-reimann Jul 3, 2023
a96b6f9
test: remove test comments
lars-reimann Jul 3, 2023
94709b7
test: turn copied grammar tests into valid formatter tests
lars-reimann Jul 4, 2023
111ff76
test: ensure annotation calls are attached to correct element in gram…
lars-reimann Jul 4, 2023
ca468db
test: formatting tests for annotations and annotation calls
lars-reimann Jul 4, 2023
5c8ad6b
test: formatting tests for classes
lars-reimann Jul 4, 2023
b06d93b
fix: several failing tests related to formatting of type parameter lists
lars-reimann Jul 4, 2023
5004aa8
test: formatting tests for enums
lars-reimann Jul 4, 2023
fc71a17
test: formatting tests for functions
lars-reimann Jul 4, 2023
eafea19
test: formatting tests for pipelines and steps
lars-reimann Jul 4, 2023
1f58c45
feat: rename steps to segments to better fit the pipeline metaphor
lars-reimann Jul 4, 2023
2d63bb5
style: apply automated linter fixes
megalinter-bot Jul 4, 2023
e7c666c
test: formatting tests for expressions
lars-reimann Jul 4, 2023
5f0bcd5
test: formatting tests for schemas
lars-reimann Jul 4, 2023
86da431
test: formatting tests for statements
lars-reimann Jul 4, 2023
408be0e
test: formatting tests for modules
lars-reimann Jul 4, 2023
86a6034
test: formatting tests for trailing commas
lars-reimann Jul 4, 2023
9391e48
test: formatting tests for types
lars-reimann Jul 4, 2023
c5aaa24
style: apply automated linter fixes
megalinter-bot Jul 4, 2023
679aa3d
test: remove some old (overlapping) formatting tests
lars-reimann Jul 4, 2023
006015d
test: integrate old formatter tests
lars-reimann Jul 4, 2023
3118fa0
test: get rid of `new` folder
lars-reimann Jul 4, 2023
3f9661d
fix: formatting of schemas
lars-reimann Jul 4, 2023
1e9066d
fix: formatting of annotated module members
lars-reimann Jul 4, 2023
eced3f7
fix: formatting of template strings
lars-reimann Jul 4, 2023
6137c2a
style: apply automated linter fixes
megalinter-bot Jul 4, 2023
a6a900e
refactor: remove redundant formatting action
lars-reimann Jul 4, 2023
305a36d
test: cover missing lines
lars-reimann Jul 4, 2023
a9643a3
style: apply automated linter fixes
megalinter-bot Jul 4, 2023
29832ba
feat: flexible new lines in blocks
lars-reimann Jul 4, 2023
f9535ec
style: apply automated linter fixes
megalinter-bot Jul 4, 2023
7fceeb2
feat: multiline argument lists
lars-reimann Jul 4, 2023
0504215
feat: multiline type parameter lists
lars-reimann Jul 4, 2023
85c9957
feat: multiline result lists
lars-reimann Jul 4, 2023
8c71081
feat: multiline parameter lists
lars-reimann Jul 4, 2023
30869f2
style: apply automated linter fixes
megalinter-bot Jul 4, 2023
49b59b8
docs: how to add new formatting tests
lars-reimann Jul 4, 2023
df1e6b1
test: overlapping edit regions lead to oscillating changes
lars-reimann Jul 4, 2023
361d2a1
fix: formatting around commas of argument lists
lars-reimann Jul 4, 2023
5fb3c57
fix: formatting around commas of type argument, parameter, result, an…
lars-reimann Jul 4, 2023
2a1f91f
fix: don't pull first module entry into comment
lars-reimann Jul 4, 2023
e3910e3
style: apply automated linter fixes
megalinter-bot Jul 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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