From ac81544e03ec5504f4c28c68049affb6ef8e1f54 Mon Sep 17 00:00:00 2001 From: eezd Date: Tue, 20 Oct 2026 12:58:41 +0800 Subject: [PATCH] Propagate synchronization and plugin failures correctly --- web/src/app/Workspace.vue | 4 +-- web/src/app/workspace.test.ts | 53 +++++++++++++++++++++++++++++++- web/src/app/workspace.ts | 46 +++++++++++++++------------ web/src/editor/codeblocks.ts | 6 +++- web/src/highlight/client.test.ts | 39 +++++++++++++++++++++++ web/src/highlight/client.ts | 32 +++++++++++++------ web/src/highlight/protocol.ts | 7 ++--- web/src/highlight/worker.test.ts | 29 +++++++++++++++++ web/src/highlight/worker.ts | 13 +++++--- web/src/plugins/host.test.ts | 24 +++++++++++++++ web/src/plugins/host.ts | 43 ++++++++++++++++---------- web/src/share/main.ts | 5 ++- 12 files changed, 240 insertions(+), 61 deletions(-) create mode 100644 web/src/highlight/client.test.ts create mode 100644 web/src/highlight/worker.test.ts create mode 100644 web/src/plugins/host.test.ts diff --git a/web/src/app/Workspace.vue b/web/src/app/Workspace.vue index d0500ac..27c96f6 100644 --- a/web/src/app/Workspace.vue +++ b/web/src/app/Workspace.vue @@ -1,6 +1,6 @@