Refresh interactive TeX state across successive edits

This commit is contained in:
gloamxun committed 2026-11-19 16:19:29 +08:00
1 parent 38e4822370
commit 28668ea10f
7 files changed
+559 -133

No files matched your search

+9 -4
View File
@@ -753,7 +753,7 @@ fn prepare_checked(
),
};
let executor = if kernel == KernelPreparation::Resume {
image.validate_job_inputs(
image.validate_shared_job_inputs(
state.profile(),
request.input_profile,
&mut world,
@@ -781,7 +781,7 @@ fn prepare_checked(
None => {
let image = FormatImage::decode(&loaded.data)?;
let executor = if kernel == KernelPreparation::Resume {
image.validate_job_inputs(
image.validate_shared_job_inputs(
state.profile(),
request.input_profile,
&mut world,
@@ -969,8 +969,13 @@ impl CompileJob {
let before = cache.work();
let (executed, next_checkpoint) = if let Some(current) = active_checkpoint {
debug_assert!(executor.is_none());
let (executed, next) =
current.resume(self.job, source, files, &mut entry_checkpoint_work)?;
let (executed, next) = current.resume(
&request,
self.job,
source,
files,
&mut entry_checkpoint_work,
)?;
(executed, Some(next))
} else {
let executor = executor