Skip to content

Commit

Permalink
requests with no result now yields a response with empty result (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbech authored and georgewfraser committed Jan 27, 2019
1 parent 5db9239 commit 101ef93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LSP/LanguageServer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ let connect(serverFactory: ILanguageClient -> ILanguageServer, receive: BinaryRe
try
match Async.RunSynchronously(task, 0, cancel.Token) with
| Some(result) -> respond(send, id, result)
| None -> ()
| None -> respond(send, id, "{}")
with :? OperationCanceledException ->
dprintfn "Request %d was cancelled" id
pendingRequests.TryRemove(id) |> ignore

0 comments on commit 101ef93

Please sign in to comment.