fix: preserve AI line highlight against ProseMirror DOMObserver and prevent crash on accepting suggestions
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user