ZIm/crates/editor/src
Finn Evers 58f7006898
editor: Add tests to ensure no horizontal scrolling is possible in soft wrap mode (#36411)
Prior to https://github.com/zed-industries/zed/pull/34564 as well as
https://github.com/zed-industries/zed/pull/26893, we would have cases
where editors would be scrollable even if `soft_wrap` was set to
`editor_width`. This has regressed and improved quite a few times back
and forth. The issue was only within the editor code, the code for the
wrap map was functioning and tested properly.

Hence, this PR adds two tests to the editor rendering code in an effort
to ensure that we maintain the current correct behavior.

Release Notes:

- N/A
2025-08-18 12:35:54 +00:00
..
display_map editor: Fix panic in inlay hint while padding (#36405) 2025-08-18 16:32:01 +05:30
git sum_tree: Store context on cursor (#34904) 2025-07-22 18:20:48 +02:00
scroll editor: Fix Follow Agent unexpectedly stopping during edits (#35845) 2025-08-08 06:17:37 +05:30
test editor: Add access method for project (#36266) 2025-08-15 18:34:22 +00:00
actions.rs Add alt-s to helix mode (#33918) 2025-08-14 13:04:38 -04:00
blink_manager.rs Remove unneeded anonymous lifetimes from gpui::Context (#27686) 2025-03-28 19:26:30 +00:00
clangd_ext.rs Use new language server info on remote servers (#35682) 2025-08-05 23:24:40 +00:00
code_completion_tests.rs editor: Prioritize fuzzy score over sort positions in code completion sort (#35229) 2025-07-29 01:15:29 +05:30
code_context_menus.rs editor: Prioritize fuzzy score over sort positions in code completion sort (#35229) 2025-07-29 01:15:29 +05:30
display_map.rs Rename remaining mentions of "inline completion" to "edit prediction" (#35512) 2025-08-04 16:22:18 +00:00
edit_prediction_tests.rs completions: Add subtle/eager behavior to Supermaven and Copilot (#35548) 2025-08-07 18:27:29 +03:00
editor.rs lsp: Identify language servers by their configuration (#35270) 2025-08-18 11:43:52 +02:00
editor_settings.rs Add setting for hiding the status_bar.cursor_position_button (#36288) 2025-08-16 09:19:38 +03:00
editor_settings_controls.rs Migrate to schemars version 1.0 (#33635) 2025-06-30 21:07:28 +00:00
editor_tests.rs Add option to disable auto indentation (#36259) 2025-08-18 14:21:33 +02:00
element.rs editor: Add tests to ensure no horizontal scrolling is possible in soft wrap mode (#36411) 2025-08-18 12:35:54 +00:00
git.rs Project Diff 2 (#23891) 2025-02-03 13:18:50 -07:00
highlight_matching_bracket.rs debugger: Parse and highlight text with ANSI escape sequences (#32915) 2025-06-17 23:39:31 -04:00
hover_links.rs Remove into SelectionEffects from .change_selections (#33554) 2025-06-27 14:31:31 -06:00
hover_popover.rs editor: Add access method for project (#36266) 2025-08-15 18:34:22 +00:00
indent_guides.rs Fix editor rendering slowness with large folds (#31569) 2025-05-28 23:05:06 +00:00
inlay_hint_cache.rs Reduce amount of allocations in RustLsp label handling (#35786) 2025-08-07 13:24:29 +00:00
items.rs editor: Add access method for project (#36266) 2025-08-15 18:34:22 +00:00
jsx_tag_auto_close.rs Remove into SelectionEffects from .change_selections (#33554) 2025-06-27 14:31:31 -06:00
linked_editing_ranges.rs editor: Add access method for project (#36266) 2025-08-15 18:34:22 +00:00
lsp_colors.rs Cache LSP code lens requests (#35207) 2025-07-29 09:51:58 +03:00
lsp_ext.rs Use new language server info on remote servers (#35682) 2025-08-05 23:24:40 +00:00
mouse_context_menu.rs debugger: Show run to cursor in editor's context menu (#35745) 2025-08-06 15:45:22 -04:00
movement.rs editor: Fix first cmd-left target for cursor in leading whitespace (#36145) 2025-08-14 02:48:20 +05:30
persistence.rs Simplify the SerializableItem::cleanup implementation (#29567) 2025-04-28 22:15:24 +00:00
proposed_changes_editor.rs Remove into SelectionEffects from .change_selections (#33554) 2025-06-27 14:31:31 -06:00
rust_analyzer_ext.rs Use new language server info on remote servers (#35682) 2025-08-05 23:24:40 +00:00
scroll.rs editor: Fix Follow Agent unexpectedly stopping during edits (#35845) 2025-08-08 06:17:37 +05:30
selections_collection.rs Fix panic when editor::OpenSelectionsInMultibuffer only has pending selection (#32842) 2025-06-17 08:35:14 +00:00
signature_help.rs editor: Add access method for project (#36266) 2025-08-15 18:34:22 +00:00
tasks.rs Support tasks from rust-analyzer (#28359) 2025-04-08 15:07:56 -06:00
test.rs Use IBM Plex Sans / Lilex (#36084) 2025-08-13 13:25:52 -06:00