From c17775323baf93e0d9bd44a6f83cd32a986b6fcb Mon Sep 17 00:00:00 2001 From: _ov4 Date: Wed, 21 Oct 2026 10:50:48 +0000 Subject: refactor(plugin): share formatting triggers and selection boundaries Co-Authored-By: Claude Opus 5.5 --- plugin/AGENTS/ARCH.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugin/AGENTS') diff --git a/plugin/AGENTS/ARCH.md b/plugin/AGENTS/ARCH.md index 5242d3e..0f585bb 100644 --- a/plugin/AGENTS/ARCH.md +++ b/plugin/AGENTS/ARCH.md @@ -43,6 +43,9 @@ Source attribution is retained in `ThirdPartyNotices.md`. - `src/indentation.js` computes block depth from earlier lines and returns edits to leading whitespace only. A selection ending at column zero excludes that final line. Formatting is idempotent and preserves line endings and other text. + It also exports selection boundaries and on-type triggers for both editor adapters. + The Bundle imports this module, `lexical.js`, `brackets.js`, the grammar and + language configuration directly; keep these modules free of editor APIs. - `src/lexical.js` masks quotes and comments while preserving UTF-16 offsets. - `src/brackets.js` uses a stack to report unmatched opening and closing brackets and crossed types. Only invalid brackets receive the red decoration; native -- cgit v1.3.1-4-g156e