From 45f90a9b418b3f654b755602e31bc9af28408162 Mon Sep 17 00:00:00 2001 From: Chet Husk Date: Mon, 26 Sep 2022 14:45:37 -0500 Subject: [PATCH] quick fix: try/catch all codefixes --- src/FsAutoComplete/FsAutoComplete.Lsp.fs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/FsAutoComplete/FsAutoComplete.Lsp.fs b/src/FsAutoComplete/FsAutoComplete.Lsp.fs index 40496801a..ed98958bf 100644 --- a/src/FsAutoComplete/FsAutoComplete.Lsp.fs +++ b/src/FsAutoComplete/FsAutoComplete.Lsp.fs @@ -1864,7 +1864,13 @@ type FSharpLspServer(state: State, lspClient: FSharpLspClient) = asyncResult { let (fixes: Async[]>) = 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