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;