ZIm/crates/languages/src
Smit Barmase 43d59814de
languages: Fix Bash indentation issues with multi-cursors, newlines, and keyword outdenting (#35116)
Closes #34390

This PR fixes several Bash indentation issues:

- Adding indentation or comment using multi cursors no longer breaks
relative indentation
- Adding newline now places the cursor at the correct indent
- Typing a valid keyword triggers context-aware auto outdent

It also adds tests for all of them.

Release Notes:

- Fixed various issues with handling indentation in Bash.
2025-08-23 10:36:02 -04:00
..
bash languages: Fix Bash indentation issues with multi-cursors, newlines, and keyword outdenting (#35116) 2025-08-23 10:36:02 -04:00
c language: Update block_comment and documentation comment (#34861) 2025-08-23 10:35:52 -04:00
cpp language: Update block_comment and documentation comment (#34861) 2025-08-23 10:35:52 -04:00
css language: Update block_comment and documentation comment (#34861) 2025-08-23 10:35:52 -04:00
diff Improve diff syntax highlighting queries (#21740) 2024-12-12 15:18:36 -08:00
gitcommit git_ui: Fix list in git commit message (#33409) 2025-07-01 08:05:08 -04:00
go language: Update block_comment and documentation comment (#34861) 2025-08-23 10:35:52 -04:00
gomod Add "tool" support to go.mod (#22995) 2025-01-15 17:44:28 +02:00
gowork File context for assistant panel (#9712) 2024-03-29 13:55:01 -07:00
javascript language: Update block_comment and documentation comment (#34861) 2025-08-23 10:35:52 -04:00
jsdoc Add JSDoc scope (#29476) 2025-06-06 08:31:59 -04:00
json debugger: Run debug scenarios from package.json (#32958) 2025-06-18 20:04:25 +02:00
jsonc Treat bun.lock as JSONC (#27359) 2025-03-24 09:46:23 -04:00
markdown language: Update block_comment and documentation comment (#34861) 2025-08-23 10:35:52 -04:00
markdown-inline Hide Markdown-Inline language from users with a new 'hidden' flag on language configs (#17104) 2024-08-29 11:23:33 -07:00
python languages: Fix detents case line after typing : in Python (#34017) 2025-07-07 22:41:29 +05:30
regex Improve Regex highlighting (#28183) 2025-04-18 12:44:13 -04:00
rust language: Update block_comment and documentation comment (#34861) 2025-08-23 10:35:52 -04:00
tsx language: Update block_comment and documentation comment (#34861) 2025-08-23 10:35:52 -04:00
typescript language: Update block_comment and documentation comment (#34861) 2025-08-23 10:35:52 -04:00
yaml Fix yaml comment indent (#33882) 2025-07-03 23:57:57 +00:00
zed-keybind-context keymap_ui: Create language for Zed keybind context (#34558) 2025-07-16 17:00:47 +00:00
bash.rs Fix aggressive indent in shell scripts (#31973) 2025-06-03 10:50:58 -04:00
c.rs editor: Utilize filter_text from language server for filter_range (#33155) 2025-06-21 19:47:16 +05:30
css.rs Use read-only access methods for read-only entity operations (#31479) 2025-05-26 23:04:31 -04:00
go.rs go: Support raw string subtest names (#34636) 2025-08-23 10:35:20 -04:00
json.rs keymap_ui: Auto complete action arguments (#34785) 2025-08-23 10:35:21 -04:00
lib.rs Fix Tailwind support for HTML/ERB files (#34743) 2025-08-23 10:35:21 -04:00
package_json.rs debugger: Fix issues with debugging scripts from package.json (#32995) 2025-06-19 14:33:24 +00:00
python.rs language: Add context-aware decrease indent for Python (#33370) 2025-06-26 11:11:03 +05:30
rust.rs debugger: Fix wrong cwd in Rust tests (#33788) 2025-07-02 17:36:35 +00:00
tailwind.rs Fix Tailwind support for HTML/ERB files (#34743) 2025-08-23 10:35:21 -04:00
typescript.rs typescript: Fix handling of jest/vitest tests with regex characters in name (#35090) 2025-08-23 10:35:55 -04:00
vtsls.rs editor: Utilize filter_text from language server for filter_range (#33155) 2025-06-21 19:47:16 +05:30
yaml.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00