-
Notifications
You must be signed in to change notification settings - Fork 14
Parametric: formatting #677
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
Merged
Merged
Changes from all commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
630ccc4
Rascal LSP formatting API and example.
toinehartman d3675c4
Provide overridable defaults for common string operations.
toinehartman b32d2f6
Align names with `DocumentFormattingParams`
toinehartman f16e17a
Implement parametric formatting.
toinehartman b749dcf
Ongoing design work.
toinehartman f1effe1
Experiment with a first formatting implementation using Box.
toinehartman 6fc3acf
Simplify API and shift responsibilities towards DSL.
toinehartman bdb7989
Improve names in formatting library.
toinehartman a985a81
Add indentation conversion functions.
toinehartman 0196d07
Do string modifications in Pico formatter.
toinehartman d1c4e3e
Update formatting API design.
toinehartman 49b66d0
Add `mergeLines`
toinehartman 998a115
Small fixes.
toinehartman 551fe2a
Break new line ties by order.
toinehartman 84c5a35
Document & fix string/formatting utils.
toinehartman c4b3561
Add rangeFormatting, reuse formatting.
toinehartman 1748678
Match contribution sig in implementation.
toinehartman 1d56010
Add missing license header.
toinehartman 20a71ae
Document formatting service.
toinehartman cda1531
Use formatter from stdlib.
toinehartman 206a57a
Change defaults based on discussion with @DavyLandman.
toinehartman 6cdab51
Fix import to renamed module.
toinehartman 05b2955
Format Pico examples.
toinehartman 9561883
Inline function.
toinehartman 7b92033
Use focus instead of Tree+loc.
toinehartman 244da24
Implement range focus with special case for lists.
toinehartman 69307a7
Fix comment about Rascal charcter encoding.
toinehartman c1b08a8
Add basic TreeSearch tests.
toinehartman 6f5657f
Consider layout as well.
toinehartman 49cf9be
Include partially selected element at end of range.
toinehartman b23a5ea
Simplify prepending element.
toinehartman ce46294
Test & fix list focus.
toinehartman f759c2e
Merge remote-tracking branch 'origin/main' into feature/lsp-formatting
toinehartman 0810af3
Merge remote-tracking branch 'origin/main' into feature/lsp-formatting
toinehartman 4d412cb
linked up the rascal formatter, in an experimental style
jurgenvinju fec6109
initial experiment linking the Rqascal formatter into the LSP server …
jurgenvinju 2f52efb
Merge branch 'main' into feature/lsp-formatting
jurgenvinju c0e88b9
Merge branch 'feat/rascal-formatter' into feature/lsp-formatting
jurgenvinju b464037
added rangeFormatter for Rascal (experimental)
jurgenvinju 1b18e4e
bumped rascal to 0.43.0-RC6
jurgenvinju c2c8641
Merge remote-tracking branch 'origin/main' into feature/lsp-formatting
toinehartman dd57c5d
Fixes for document management refactoring.
toinehartman c4201ce
pico formatter refactored
jurgenvinju 3dd69f6
missing import added
jurgenvinju 68c11a1
Add missing header.
toinehartman df55b71
Remove formatting util & fix references.
toinehartman 3b53f00
Test DSL formatting.
toinehartman 01b5f2e
late fixes
jurgenvinju 578618a
fixes from other branch
jurgenvinju 1b6ae22
search excludes
jurgenvinju 7d3101a
set executable bit
jurgenvinju c58b7cf
resolved issue with final layout for substring formatters
jurgenvinju 51932cb
clean up module and removed dead code and debug code
jurgenvinju b4bb6e9
set version number right
jurgenvinju 71c963e
working version
jurgenvinju d1db887
Merge remote-tracking branch 'origin/feat/rascal-formatter' into feat…
jurgenvinju 9b47c0f
factored FormattingOptions converter for reuse by rascal and lsp server
jurgenvinju a5f18cb
factored and reused formatting options converter
jurgenvinju d8fc8eb
fixed ambiguous overload for formatter function of Pico
jurgenvinju 07f0e65
Merge branch 'main' into feature/lsp-formatting
jurgenvinju 9da8b7e
fixed a broken merge
jurgenvinju a9b83a6
fix missing code
jurgenvinju 0bc051b
removed sleep from import
jurgenvinju c7221bb
revert chai to version 4 because then it still supported plain js mod…
jurgenvinju baba15b
added missing header
jurgenvinju File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ | |
| "target": false | ||
| }, | ||
| "search.exclude": { | ||
| "target": true | ||
| "target": true, | ||
| "/target/": true | ||
| }, | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this change in the pom.xml has to do with this PR?