Skip to content

Commit

Permalink
lsp: Make client writes non blocking (#2204)
Browse files Browse the repository at this point in the history
  • Loading branch information
fox0430 authored Nov 20, 2024
1 parent eb7d270 commit 4db7d62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. _#2204: https://github.com/fox0430/moe/pull/2204

Changed
.......

- `#2204`_ lsp: Make client writes non blocking

3 changes: 1 addition & 2 deletions src/moepkg/lsp/jsonrpc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ proc send(
debugLog(MessageType.write, req)

try:
if not await s.stream.write(req).withTimeout(Timeout):
return Result[(), string].err "write: Timeout"
asyncSpawn s.stream.write(req)
except CatchableError as e:
return Result[(), string].err e.msg

Expand Down

0 comments on commit 4db7d62

Please sign in to comment.