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

Move FormatConfig into Fantomas.Core namespace. #2736

Merged
merged 2 commits into from
Jan 20, 2023

Conversation

nojaf
Copy link
Contributor

@nojaf nojaf commented Jan 19, 2023

As mentioned on Discord, currently when using Fantomas.Core you need to open two namespaces for the basic

#r "nuget: Fantomas.Core, 5.2.0-alpha-012"

open Fantomas.Core
open Fantomas.Core.FormatConfig

let config =
    { FormatConfig.Default with
        MaxLineLength = 90 }

CodeFormatter.FormatDocumentAsync(
    false,
    """
let a =  0
    """,
    config
)
|> Async.RunSynchronously

@nojaf nojaf requested review from josh-degraw, dawedawe and a team and removed request for dawedawe and josh-degraw January 19, 2023 12:33
@nojaf nojaf merged commit c0771e5 into fsprojects:v6.0 Jan 20, 2023
@nojaf nojaf deleted the format-config branch January 20, 2023 08:03
nojaf added a commit that referenced this pull request Jan 20, 2023
* Move FormatConfig into Fantomas.Core namespace.

* Remove unused opens.
nojaf added a commit that referenced this pull request Jan 24, 2023
* Move FormatConfig into Fantomas.Core namespace.

* Remove unused opens.
nojaf added a commit that referenced this pull request Feb 3, 2023
* Move FormatConfig into Fantomas.Core namespace.

* Remove unused opens.
nojaf added a commit that referenced this pull request Feb 4, 2023
* Move FormatConfig into Fantomas.Core namespace.

* Remove unused opens.
nojaf added a commit that referenced this pull request Feb 22, 2023
* Move FormatConfig into Fantomas.Core namespace.

* Remove unused opens.
nojaf added a commit that referenced this pull request Mar 17, 2023
* Move FormatConfig into Fantomas.Core namespace.

* Remove unused opens.
nojaf added a commit that referenced this pull request Mar 27, 2023
* Move FormatConfig into Fantomas.Core namespace.

* Remove unused opens.
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.

None yet

3 participants