Fix record once (#10109)

Fixes #10103
This commit is contained in:
Adam Obuchowicz 2024-05-29 12:34:32 +02:00 committed by GitHub
parent 79e20adcc0
commit f9ffa47e32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 4 deletions

View File

@ -8,7 +8,7 @@ const emit = defineEmits<{ recordOnce: []; 'update:recordMode': [enabled: boolea
<template> <template>
<div class="RecordControl"> <div class="RecordControl">
<div class="control left-end" @click.stop="() => emit('update:recordMode', !props.recordMode)"> <div class="control left-end">
<ToggleIcon <ToggleIcon
icon="record" icon="record"
class="iconButton" class="iconButton"
@ -17,8 +17,14 @@ const emit = defineEmits<{ recordOnce: []; 'update:recordMode': [enabled: boolea
@update:modelValue="emit('update:recordMode', $event)" @update:modelValue="emit('update:recordMode', $event)"
/> />
</div> </div>
<div class="control right-end" @click.stop="() => emit('recordOnce')"> <div class="control right-end">
<SvgButton title="Record Once" class="iconButton" name="record_once" draggable="false" /> <SvgButton
title="Record Once"
class="iconButton"
name="record_once"
draggable="false"
@click.stop="() => emit('recordOnce')"
/>
</div> </div>
</div> </div>
</template> </template>

View File

@ -189,7 +189,6 @@ export class ExecutionContext extends ObservableV2<ExecutionContextNotification>
this.queue.pushTask(async (state) => { this.queue.pushTask(async (state) => {
if (state.status !== 'created') { if (state.status !== 'created') {
this.sync() this.sync()
return state
} }
await this.lsRpc.recomputeExecutionContext(this.id, expressionIds, executionEnvironment) await this.lsRpc.recomputeExecutionContext(this.id, expressionIds, executionEnvironment)
return state return state