Files
orca/resources/plugins
Neil 5e33efa36a fix(plugins): keep custom editor documents in step with accepted edits (#37277)
* fix(plugins): keep custom editor document in step with accepted edits

- orca.document.get() returns the content of an accepted applyEdit at the
  same version, without firing onDidChange; a newer document wins.
- onDidChange skips its replay for a subscription disposed before it runs.
- The --template editor keeps unaccepted typing when the file changes
  outside, and shows a refused edit in the frame instead of only logging.
- Extract the srcdoc shell mount into a shared test fixture.

* fix(plugins): acknowledge custom editor edits only once committed

- The host answers a superseded held edit with the answer of the edit that
  replaced it, and keeps a held edit when an oversized one follows (the
  save stays blocked), so success always means the buffer has it.
- The frame shell copies accepted bytes so a reused buffer cannot change
  what get() returns.
- The editor template settles dirty and its notice only on the newest
  input's answer.

* test(plugins): annotate the frame shell mount fixture's types
2026-11-01 19:31:08 -08:00
..