ZIm/crates/language/src
Ryan Drew f23314bef4
editor: Use editorconfig's max_line_length for hard wrap (#36426)
PR #20198, "Do not alter soft wrap based on .editorconfig contents"
removed support for setting line lengths for both soft and hard wrap,
not just soft wrap. This causes the `max_line_length` property within a
`.editorconfig` file to be ignored by Zed. This commit restores allowing
for hard wrap limits to be set using `max_line_length` without impacting
soft wrap limits. This is done by merging the `max_line_length` property
from an editorconfig file into Zed's `preferred_line_length` property.

Release Notes:

- Added support for .editorconfig's `max_line_length` property

Signed-off-by: Ryan Drew <git@ry4n.me>
2025-08-21 17:55:43 +03:00
..
syntax_map Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
buffer.rs Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
buffer_tests.rs Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
diagnostic_set.rs sum_tree: Store context on cursor (#34904) 2025-07-22 18:20:48 +02:00
highlight_map.rs Docs for indent_size_for_line and co 2024-01-09 20:50:34 +01:00
language.rs Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
language_registry.rs Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
language_settings.rs editor: Use editorconfig's max_line_length for hard wrap (#36426) 2025-08-21 17:55:43 +03:00
manifest.rs lsp: Identify language servers by their configuration (#35270) 2025-08-18 11:43:52 +02:00
outline.rs editor: Improve code completion filtering to provide fewer and more accurate suggestions (#32928) 2025-06-18 16:01:28 +05:30
proto.rs Fix iterator related clippy style lint violations (#36437) 2025-08-19 10:06:35 +02:00
syntax_map.rs Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
task_context.rs Add initial package.json scripts task autodetection (#32497) 2025-06-10 22:16:27 +00:00
text_diff.rs Fix clippy::println_empty_string, clippy::while_let_on_iterator, clippy::while_let_on_iterator lint style violations (#36613) 2025-08-20 20:14:30 +02:00
toolchain.rs lsp: Identify language servers by their configuration (#35270) 2025-08-18 11:43:52 +02:00