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

Put stars in long tuple in long signature at the end. #1991

Closed
wants to merge 31 commits into from

Conversation

nojaf
Copy link
Contributor

@nojaf nojaf commented Dec 4, 2021

WIP, related to fsharp/fslang-design#644.
Style guide would need an update before we can merge this.
@dsyme and I did discuss this in person though.

nojaf and others added 30 commits November 24, 2021 19:46
* Initial upgrade to FCS 40.

* Fix remaining unit tests.

* Remove AST workaround for Attributes.

* Update for SynTyparDecls, SynPat.As and ParsedHashDirectiveArgument.

* Re-enable ignored tests.

* Update to FCS 40.0.1-preview.21366.4
* WIP lambda as last argument

* Update remaining test according to style proposal.

* Add test for multiline non lambda argument.

* Print trivia for function keyword from ast range.

* multiline non lambda argument, match lambda
* Update records indent from the curly brace.
Fixes fsprojects#1876.

* WIP anonymous records

* Indent multiline record field expressions from the opening brace.

* Restore correct indent after update record expression.

* trigger CI
* Style guide lambda (fsprojects#1858)

* WIP lambda as last argument

* Update remaining test according to style proposal.

* Add test for multiline non lambda argument.

* Print trivia for function keyword from ast range.

* multiline non lambda argument, match lambda

* WIP Daemon service contract.

* Early working daemon prototype.

* Take .editorconfig settings into account.

* Fix current build.

* Add Fantomas locator.

* Found globally installed Fantomas version.

* Remove unused function.

* Add formatSelection.

* Refactor FormatDocumentResponse to DU.

* Remove unused LspTypes dependency.

* Update FCS in Daemon

* Refactored public api of FantomasService.

* Don't pass full exception in FormatDocumentResponse.

* Use separate versioning for Fantomas.Client.

* FantomasService manages multiple daemon versions.

* Fully implement FantomasService.

* Return configuration as json.

* Validate if filePath in request is absolute.

* Ignore first three 4.6 alphas as compatible tools.

* Find ignore file from current file path.

* Remove safeFileName from CodeFormatterImpl.fs.
Disable daemon tests.

* Add daemon unit tests.

* Update help text for daemon mode.

* Add documentation for Fantomas daemon mode.

* Initial attempt at adding source links.

* Set DebugType to embedded.

* Bump Fantomas.Client to 0.3.0
…fsprojects#1925)

* Set DOTNET_CLI_UI_LANGUAGE to en-us when running dotnet tool command.

* Add RepositoryUrl.

* Bump Fantomas.Client version to 0.3.1
* Update FCS to 41.0.0-preview.21472.3

* If, elif, then and else keyword are present in AST.

* Use arrow range from SyntaxTree instead of trivia tokens.

* Processed change of FCS 40.0.1-preview.21423.4.

* Support expr[idx] as index/slice syntax.

* Remove ArrayOrListComputedExpr active pattern.

* Apply style guide rules for SynExpr.IndexRange.

* Always use LangVersionText preview.

* Remove Verbose tests.

* Change QuoteIdentifierIfNeeded to AddBackticksToIdentifierIfNeeded.
* fix 1937

* fix format

* Use formatSourceString in unit test.

Co-authored-by: nojaf <[email protected]>
* Add documentation attribute

* Expose documentation attributes via Fantomas Daemon.

Co-authored-by: Asti <[email protected]>
* Restart fantomas-tool when process has exited.

* Use LSPFantomasService cancellationToken if user does not provide one.

* Bump Fantomas.Client version to 0.4.0
…ects#1983)

* Add more detailed information when the daemon fails to start.

* Capture working directory when ExecutableFileNotFound.
* Pass correct arguments for global tool.

* Use absolute path to launch global tool.

* Use SemanticVersioning to verify the supported version.

* Add support for when Fantomas is on the PATH.

* Bump version 0.5.0
@baronfel
Copy link
Contributor

baronfel commented Dec 4, 2021

Re: style guide change, would that also require FSAC changes to align with this formatting?

@nojaf
Copy link
Contributor Author

nojaf commented Dec 4, 2021

That would be nice, but I'm really jumping the gun here by already having an implementation for this.
One benefit is that we discovered when you need the extra indent (after tuples) for example.

@dsyme
Copy link
Contributor

dsyme commented Dec 4, 2021

@nojaf I guess given our conversation at NDC we can consider the stile guide change pre-approved. I'll work on a PR next week

@nojaf
Copy link
Contributor Author

nojaf commented Dec 4, 2021

Yes, I was thinking along the same lines.

@nojaf nojaf closed this Dec 10, 2021
@nojaf nojaf deleted the stars-at-end branch December 10, 2021 08:53
@nojaf nojaf restored the stars-at-end branch December 10, 2021 08:53
@nojaf nojaf reopened this Dec 10, 2021
@nojaf nojaf closed this Dec 10, 2021
@nojaf nojaf deleted the stars-at-end branch December 10, 2021 09:20
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