Skip to content

Commit

Permalink
quick fix: try/catch all codefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
baronfel committed Sep 26, 2022
1 parent a02391c commit 45f90a9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/FsAutoComplete/FsAutoComplete.Lsp.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1864,7 +1864,13 @@ type FSharpLspServer(state: State, lspClient: FSharpLspClient) =
asyncResult {
let (fixes: Async<Result<Fix list, string>[]>) =
codeFixes
|> Array.map (fun codeFix -> codeFix codeActionParams)
|> Array.map (fun codeFix ->
async {
try
return! codeFix codeActionParams
with e ->
return Ok []
})
|> Async.Parallel

let! fixes = fixes
Expand Down

0 comments on commit 45f90a9

Please sign in to comment.