From 438eda13f6106604bb37c5a5fb1ffe5294020a65 Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa Date: Mon, 17 Aug 2026 16:40:12 +0900 Subject: [PATCH] fix(ui): fix code editor error and annotations gadgets layout shifts (#10969) Co-authored-by: Hiroshi Ogawa <4232207+hi-ogawa@users.noreply.github.com> Co-authored-by: OpenCode --- packages/ui/client/components/views/ViewEditor.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/ui/client/components/views/ViewEditor.vue b/packages/ui/client/components/views/ViewEditor.vue index 03ffe5f75..eadc7a0e1 100644 --- a/packages/ui/client/components/views/ViewEditor.vue +++ b/packages/ui/client/components/views/ViewEditor.vue @@ -327,8 +327,8 @@ function createAnnotationElement(annotation: TestAnnotation) { } const { pause, resume } = watch( - [codemirrorRef, errors, annotations, finished] as const, - ([cmValue, errors, annotations, end]) => { + [codemirrorRef, errors, annotations, finished, loading] as const, + ([cmValue, errors, annotations, end, loadingFile]) => { if (!cmValue) { widgets.length = 0 handles.length = 0 @@ -351,7 +351,7 @@ const { pause, resume } = watch( widgets.length = 0 handles.length = 0 - setTimeout(() => { + if (!loadingFile) { // add new data errors.forEach(createErrorElement) @@ -363,9 +363,9 @@ const { pause, resume } = watch( } cmValue.on('changes', codemirrorChanges) - }, 100) + } }, - { flush: 'post' }, + { immediate: true }, ) watchDebounced(() => [finished.value, saving.value, currentPosition.value] as const, ([f, s], old) => { -- 2.51.2