diff --git a/changelog.d/20241120_225016_github-actions[bot]_client-non-blocking-write.rst b/changelog.d/20241120_225016_github-actions[bot]_client-non-blocking-write.rst new file mode 100644 index 000000000..3d545dc9e --- /dev/null +++ b/changelog.d/20241120_225016_github-actions[bot]_client-non-blocking-write.rst @@ -0,0 +1,7 @@ +.. _#2204: https://github.com/fox0430/moe/pull/2204 + +Changed +....... + +- `#2204`_ lsp: Make client writes non blocking + diff --git a/src/moepkg/lsp/jsonrpc.nim b/src/moepkg/lsp/jsonrpc.nim index b464df4be..cecf259fa 100644 --- a/src/moepkg/lsp/jsonrpc.nim +++ b/src/moepkg/lsp/jsonrpc.nim @@ -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