You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// a codefix that generates union cases for an incomplete match expressionletgenerateUnionCases=
ifDiagnosticByMessage
(fun diagnostic codeActionParams ->
asyncResult {let!(tyRes,line,lines)= getParseResultsForFile fileName pos
match! generateCases tyRes pos lines line |> Async.map Ok with| CoreResponse.Res (insertString: string, insertPosition)->return[{ SourceDiagnostic = Some diagnostic
File = codeActionParams.TextDocument
Title ="Generate union pattern match cases"
Edits =[|{ Range = range; NewText = replaced }|]
Kind = Fix }]|_->return[]}|> AsyncResult.foldResult id (fun _ ->[]))"Incomplete pattern matches on this expression. For example"
Result
/// a codefix that generates union cases for an incomplete match expressionletgenerateUnionCases=
ifDiagnosticByMessage
(fun diagnostic codeActionParams ->
asyncResult {let!(tyRes,line,lines)= getParseResultsForFile fileName pos
match! generateCases tyRes pos lines line |> Async.map Ok with| CoreResponse.Res (insertString: string, insertPosition)->return[{ SourceDiagnostic = Some diagnostic
File = codeActionParams.TextDocument
Title ="Generate union pattern match cases"
Edits =[|{ Range = range; NewText = replaced }|]
Kind = Fix }]|_->return[]}|> AsyncResult.foldResult id (fun _ ->[]))"Incomplete pattern matches on this expression. For example"
Problem description
The newline under let bang is missing.
Extra information
The formatted result breaks by code.
The formatted result gives compiler warnings.
I or my company would be willing to help fix this.
Issue created from fantomas-online
Code
Result
Problem description
The newline under let bang is missing.
Extra information
Options
Fantomas Master at 12/22/2020 15:26:56 - aac3975
Default Fantomas configuration
Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?
The text was updated successfully, but these errors were encountered: