ZIm/crates/language/src
Smit Barmase 18d39e3f81
editor: Improve JSDoc extend comment on newline to follow convention (#30800)
Follow up for https://github.com/zed-industries/zed/pull/30768

This PR makes JSDoc auto comment on new line lot better by:

- Inserting delimiters regardless of whether previous delimiters have
trailing spaces or not
- When on start tag, auto-indenting both prefix and end tag upon new
line

This makes it correct as per convention out of the box. No need to
manually adjust spaces on every new line.


https://github.com/user-attachments/assets/81b8e05a-fe8a-4459-9e90-c8a3d70a51a2

Release Notes:

- Improved JSDoc auto-commenting on newline which now correctly indents
as per convention.
2025-05-16 12:42:11 +05:30
..
syntax_map chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
buffer.rs language: Remove some unnecessary cloning (#30229) 2025-05-08 12:57:19 +02:00
buffer_tests.rs language: Fix language_scope_at for markdown code comments (#29230) 2025-04-23 01:20:25 +05:30
diagnostic_set.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
highlight_map.rs Docs for indent_size_for_line and co 2024-01-09 20:50:34 +01:00
language.rs editor: Improve JSDoc extend comment on newline to follow convention (#30800) 2025-05-16 12:42:11 +05:30
language_registry.rs debugger: Show language icons in debug scenario picker (#30662) 2025-05-14 00:50:58 +02:00
language_settings.rs debugger: Fix nits (#30632) 2025-05-13 23:13:02 +02:00
manifest.rs project: Track manifest locations per unique manifest locator (#27194) 2025-03-21 15:22:36 +01:00
outline.rs Fix panic when outline items have no name (#24574) 2025-02-10 18:50:26 +00:00
proto.rs Tidy up diagnostics more (#29629) 2025-04-29 19:53:05 -06:00
syntax_map.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
task_context.rs debugger: Rework language association with the debuggers (#29945) 2025-05-06 20:16:41 +02:00
text_diff.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
toolchain.rs toolchains: Add support for relative paths (#27777) 2025-03-31 19:48:09 +02:00