Skip to content

Commit 1496e90

Browse files
committed
Bail out if handler returns a null task (#43).
1 parent e400183 commit 1496e90

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Client/Protocol/LspConnection.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,8 @@ private void DispatchRequest(ServerMessage requestMessage)
842842
_outgoing.TryAdd(
843843
new JsonRpcMessages.MethodNotFound(requestMessage.Id, requestMessage.Method)
844844
);
845+
846+
return;
845847
}
846848

847849
#pragma warning disable CS4014 // Continuation does the work we need; no need to await it as this would tie up the dispatch loop.

0 commit comments

Comments
 (0)