From 16367ed7731d8df37e2a0abb9e4fd94316d7d64a Mon Sep 17 00:00:00 2001 From: Shuu Date: Tue, 18 Feb 2025 07:12:31 +0900 Subject: [PATCH] lsp: Ignore SIGINT in server process (#2248) --- ...215714_github-actions[bot]_lsp-server-ignore-sigint.rst | 7 +++++++ src/moepkg/lsp/client.nim | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 changelog.d/20250217_215714_github-actions[bot]_lsp-server-ignore-sigint.rst diff --git a/changelog.d/20250217_215714_github-actions[bot]_lsp-server-ignore-sigint.rst b/changelog.d/20250217_215714_github-actions[bot]_lsp-server-ignore-sigint.rst new file mode 100644 index 000000000..67256acb8 --- /dev/null +++ b/changelog.d/20250217_215714_github-actions[bot]_lsp-server-ignore-sigint.rst @@ -0,0 +1,7 @@ +.. _#2248: https://github.com/fox0430/moe/pull/2248 + +Fixed +..... + +- `#2248`_ lsp: Ignore SIGINT in server process + diff --git a/src/moepkg/lsp/client.nim b/src/moepkg/lsp/client.nim index a2d610374..f4497d877 100644 --- a/src/moepkg/lsp/client.nim +++ b/src/moepkg/lsp/client.nim @@ -406,7 +406,7 @@ proc restart*(c: LspClient): Future[LspRestartClientResult] {.async.} = commandSplit[1 .. ^1] else: @[] - opts: set[AsyncProcessOption] = {UsePath, EvalCommand, StdErrToStdOut} + opts: set[AsyncProcessOption] = {UsePath, EvalCommand, StdErrToStdOut, ProcessGroup} try: c.serverProcess = await startProcess(