ZIm/crates/languages/src/tsx
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
..
brackets.scm tsx: Insert newline between open and close tags on enter (#27618) 2025-03-27 19:15:12 +00:00
config.toml editor: Improve JSDoc extend comment on newline to follow convention (#30800) 2025-05-16 12:42:11 +05:30
embedding.scm chore: Extract languages from zed crate (#8270) 2024-02-23 15:56:08 +01:00
highlights-jsx.scm chore: Extract languages from zed crate (#8270) 2024-02-23 15:56:08 +01:00
highlights.scm Improve Regex highlighting (#28183) 2025-04-18 12:44:13 -04:00
indents.scm Automatically indent JSX (#18816) 2024-10-10 15:15:12 +03:00
injections.scm Use standard injection.language and injection.content captures (#22268) 2025-01-07 18:17:49 +00:00
outline.scm Added JavaScript runnable detection for context and suite methods (#21719) 2024-12-09 13:17:51 +02:00
overrides.scm editor: Fix function completion expansion in string contexts and call expressions (#30351) 2025-05-09 14:52:52 +05:30
runnables.scm Added JavaScript runnable detection for context and suite methods (#21719) 2024-12-09 13:17:51 +02:00
textobjects.scm Add textobjects queries (#20924) 2024-12-03 10:37:01 -07:00