Skip to content

Commit

Permalink
Bump fantomas tool to 6.3.0 (fsprojects#3068)
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Mar 18, 2024
1 parent ee46bb0 commit 74fb395
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
]
},
"fantomas": {
"version": "6.2.0",
"version": "6.3.0",
"commands": [
"fantomas"
]
Expand Down
12 changes: 4 additions & 8 deletions src/Fantomas.Client/LSPFantomasService.fs
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,8 @@ type LSPFantomasService() =
|> mapResultToResponse filePath

member _.FormatDocumentAsync
(
formatDocumentOptions: FormatDocumentRequest,
?cancellationToken: CancellationToken
) : Task<FantomasResponse> =
(formatDocumentOptions: FormatDocumentRequest, ?cancellationToken: CancellationToken)
: Task<FantomasResponse> =
isCancellationRequested cts.IsCancellationRequested
|> Result.bind (getFolderFor formatDocumentOptions.FilePath)
|> Result.bind (getDaemon agent)
Expand All @@ -380,10 +378,8 @@ type LSPFantomasService() =
|> mapResultToResponse formatDocumentOptions.FilePath

member _.FormatSelectionAsync
(
formatSelectionRequest: FormatSelectionRequest,
?cancellationToken: CancellationToken
) =
(formatSelectionRequest: FormatSelectionRequest, ?cancellationToken: CancellationToken)
=
isCancellationRequested cts.IsCancellationRequested
|> Result.bind (getFolderFor formatSelectionRequest.FilePath)
|> Result.bind (getDaemon agent)
Expand Down
4 changes: 1 addition & 3 deletions src/Fantomas.Core/SyntaxOak.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1154,9 +1154,7 @@ type ExprPrefixAppNode(operator: SingleTextNode, expr: Expr, range) =
member val Operator = operator
member val Expr = expr

type InfixApp =
interface
end
type InfixApp = interface end

type ExprSameInfixAppsNode(leadingExpr: Expr, subsequentExpressions: (SingleTextNode * Expr) list, range) =
inherit NodeBase(range)
Expand Down

0 comments on commit 74fb395

Please sign in to comment.