fix: preserve AI line highlight against ProseMirror DOMObserver and prevent crash on accepting suggestions

This commit is contained in:
Schwitzz
2026-10-30 12:20:13 -05:00
parent 271d1e2c79
commit 2940e3c9aa
6 changed files with 240 additions and 39 deletions
@@ -142,6 +142,7 @@ export class CheckService {
async check(): Promise<CheckResult> {
if (!this.editor) return { issues: [], counts: this.countsSilent(), checking: false };
const result = await this.runChecks(this.editor.state);
if (!this.editor) return { issues: [], counts: this.countsSilent(), checking: false };
this.issues = result.issues;
this.decorations = buildCheckDecorations(this.editor.state, result.blocks);
const checkResult: CheckResult = {