Fix code action formatters creating separate transaction (#26311)

Closes #24588
Closes #25419

Restructures `LspStore.format_local` a decent bit in order to make how
the transaction history is preserved more clear, and in doing so fix
various bugs with how the transaction history is handled during a format
request (especially when formatting in remote dev)

Release Notes:

- Fixed an issue that prevented formatting from working when working
with remote dev
- Fixed an issue when using code actions as a format step where the
edits made by the code actions would not be grouped with the other
format edits in the undo history
274124256dBen Kunkle committed on 3/20/2025, 1:59:43 AM· committed by GitHubparent1cf252f
3 files changedLine totals unavailable