Skip to content

Fix new editor buffers and cancelled lint runs - #1746

Merged
Lorenzobattistela merged 2 commits into
bendlang:mainfrom
oxura:fix/lint-editor-runs-20261019b
Oct 19, 2026
Merged

Lorenzobattistela merged 2 commits into
bendlang:mainfrom
oxura:fix/lint-editor-runs-20261019b

Conversation

@oxura

@oxura oxura commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

New unsaved files and relative imports now reach the checker without creating anything on disk. Cancelling a pending async rule rejects the lint call with the caller’s reason instead of waiting forever.

Accepted edits are assembled once at their original UTF-16 offsets. On my local 1 MB / 4,000-edit reproducer this went from 246 ms to about 2–3 ms, with the same checksum. Conflict priority and boundary insertions stay unchanged. This is the lint tool, not the JS reference runtime.

Closes #1739
Closes #1740
Closes #1741

Checked: 133 lint tests, 54/54 repo gate and a separate public-API run for all three failures. The combined typecheck still reports the same two pre-existing bend.ts errors as untouched d194597; that protected file is unchanged.

@Lorenzobattistela
Lorenzobattistela merged commit 2688a77 into bendlang:main Oct 19, 2026
1 check passed
@Lorenzobattistela Lorenzobattistela mentioned this pull request Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants