Skip to content

editor: Extract fold and selection out of editor.rs - #56070

Merged
SomeoneToIgnore merged 7 commits into
zed-industries:mainfrom
GoldStrikeArch:feat/extract-selection-and-fold-out-of-editor
May 7, 2026
Merged

editor: Extract fold and selection out of editor.rs#56070
SomeoneToIgnore merged 7 commits into
zed-industries:mainfrom
GoldStrikeArch:feat/extract-selection-and-fold-out-of-editor

Conversation

@GoldStrikeArch

@GoldStrikeArch GoldStrikeArch commented May 7, 2026

Copy link
Copy Markdown
Contributor

cc @SomeoneToIgnore

Summary

Follow-up to #56030

This mechanically extracts two editor topics into focused sibling modules:

  • crates/editor/src/fold.rs
  • crates/editor/src/selection.rs

One odd boundary remains: several selection state types still live in editor.rs. I didn't move them because those caused that "huge 11k diff" in the previous PR, so I propose to move them later.

Self-Review Checklist:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content is consistent with the UI/UX checklist
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

Release Notes:

  • N/A

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label May 7, 2026
@GoldStrikeArch GoldStrikeArch changed the title Feat/extract selection and fold out of editor editor: Extract fold.rs and selection.rs out of editor.rs May 7, 2026
@GoldStrikeArch GoldStrikeArch changed the title editor: Extract fold.rs and selection.rs out of editor.rs editor: Extract fold and selection out of editor.rs May 7, 2026

@SomeoneToIgnore SomeoneToIgnore left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@SomeoneToIgnore
SomeoneToIgnore enabled auto-merge May 7, 2026 15:51
@SomeoneToIgnore
SomeoneToIgnore added this pull request to the merge queue May 7, 2026
Merged via the queue into zed-industries:main with commit 1475248 May 7, 2026
34 checks passed
@GoldStrikeArch
GoldStrikeArch deleted the feat/extract-selection-and-fold-out-of-editor branch May 7, 2026 18:26
jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
…ries#56070)

cc @SomeoneToIgnore

## Summary

Follow-up to zed-industries#56030 

This mechanically extracts two editor topics into focused sibling
modules:

- `crates/editor/src/fold.rs`
- `crates/editor/src/selection.rs`

One odd boundary remains: several selection state types still live in
`editor.rs`. I didn't move them because those caused that "huge 11k
diff" in the previous PR, so I propose to move them later.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
…ries#56070)

cc @SomeoneToIgnore

## Summary

Follow-up to zed-industries#56030 

This mechanically extracts two editor topics into focused sibling
modules:

- `crates/editor/src/fold.rs`
- `crates/editor/src/selection.rs`

One odd boundary remains: several selection state types still live in
`editor.rs`. I didn't move them because those caused that "huge 11k
diff" in the previous PR, so I propose to move them later.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants