diff --git a/services/web/frontend/js/features/pdf-preview/hooks/use-compile-triggers.js b/services/web/frontend/js/features/pdf-preview/hooks/use-compile-triggers.js index 34e4b8f0a5..cecd99910c 100644 --- a/services/web/frontend/js/features/pdf-preview/hooks/use-compile-triggers.js +++ b/services/web/frontend/js/features/pdf-preview/hooks/use-compile-triggers.js @@ -37,5 +37,5 @@ export default function useCompileTriggers() { showPdfDetach ? setOrTriggerChangedAt(Date.now()) : setChangedAt(Date.now()) }, [setOrTriggerChangedAt, setChangedAt]) useEventListener('doc:changed', setChangedAtHandler) - useEventListener('doc:saved', setChangedAtHandler) + useEventListener('doc:saved', setChangedAtHandler) // TODO: store this separately? } diff --git a/services/web/frontend/js/features/pdf-preview/util/compiler.js b/services/web/frontend/js/features/pdf-preview/util/compiler.js index 07e3056b2d..00441fc5b9 100644 --- a/services/web/frontend/js/features/pdf-preview/util/compiler.js +++ b/services/web/frontend/js/features/pdf-preview/util/compiler.js @@ -75,7 +75,7 @@ export default class DocumentCompiler { try { // reset values - this.setChangedAt(0) + this.setChangedAt(0) // TODO: wait for doc:saved? this.validationIssues = undefined window.dispatchEvent(new CustomEvent('flush-changes')) // TODO: wait for this? diff --git a/services/web/frontend/js/features/pdf-preview/util/output-files.js b/services/web/frontend/js/features/pdf-preview/util/output-files.js index eaefeeab82..e115d80bb2 100644 --- a/services/web/frontend/js/features/pdf-preview/util/output-files.js +++ b/services/web/frontend/js/features/pdf-preview/util/output-files.js @@ -143,7 +143,7 @@ export function buildLogEntryAnnotations(entries, fileTreeManager) { row: entry.line - 1, type: entry.level === 'error' ? 'error' : 'warning', text: entry.message, - source: 'compile', + source: 'compile', // NOTE: this is used in Ace for filtering the annotations }) } } diff --git a/services/web/types/annotation.ts b/services/web/types/annotation.ts index 2b08c2ff74..bae368b7c5 100644 --- a/services/web/types/annotation.ts +++ b/services/web/types/annotation.ts @@ -2,4 +2,5 @@ export type Annotation = { row: number type: 'info' | 'warning' | 'error' text: string + source?: string }