From 2bf57a8297d356937d4662a517160b811cb2e53b Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Wed, 28 Oct 2026 09:01:45 +0800 Subject: [PATCH] fix(editor): Keep the internal cancellation message out of the UI text catalog --- src/editor/lsp/lsp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/lsp/lsp.ts b/src/editor/lsp/lsp.ts index 82100b557..76ac58a0f 100644 --- a/src/editor/lsp/lsp.ts +++ b/src/editor/lsp/lsp.ts @@ -28,7 +28,7 @@ export async function lspRequest(run: () => Promise>, wanted?: () = try { // Edits typed just before (⌘B right after typing) must reach the server first. await whenAllSynced(); - if (wanted && !wanted()) throw new IpcError({ kind: "cancelled", message: "Cancelled" }); + if (wanted && !wanted()) throw new IpcError({ kind: "cancelled", message: "cancelled" }); return await call(run()); } catch (e) { if (e instanceof IpcError) throw e;