ZIm/crates/languages/src
Smit Barmase b88ba44b32
editor: Fix function completion expansion in string contexts and call expressions (#30351)
Closes #27582

Now, when accepting function completion, it doesn't expand with
parentheses and arguments in the following cases:
1. If it's in a string (like `type Foo = MyClass["sayHello"]` instead of
`type Foo = MyClass["sayHello(name)"]`)
2. If it's in a call expression (like `useRef<HTMLDivElement>(null)`
over `useRef(initialValue)<HTMLDivElement>(null)`)

This is a follow-up to https://github.com/zed-industries/zed/pull/30312,
more like cleaner version of it.

Release Notes:

- Fixed an issue where accepting a method as an object string in
JavaScript would incorrectly expand. E.g. `MyClass["sayHello(name)"]`
instead of `MyClass["sayHello"]`.
2025-05-09 14:52:52 +05:30
..
bash bash: Fix bracket autoclose behavior (#29817) 2025-05-05 10:02:27 -04:00
c debugger: Rework language association with the debuggers (#29945) 2025-05-06 20:16:41 +02:00
cpp debugger: Rework language association with the debuggers (#29945) 2025-05-06 20:16:41 +02:00
css Add completion_query_characters in language (#27175) 2025-03-20 16:45:35 +05:30
diff Improve diff syntax highlighting queries (#21740) 2024-12-12 15:18:36 -08:00
gitcommit Fix syntax highlighting of git commit messages (#26988) 2025-03-18 18:18:56 +00:00
go debugger: Rework language association with the debuggers (#29945) 2025-05-06 20:16:41 +02: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 debugger: Rework language association with the debuggers (#29945) 2025-05-06 20:16:41 +02:00
jsdoc Add language icons to the language selector (#21298) 2024-12-02 15:01:09 -03:00
json Add completion_query_characters in language (#27175) 2025-03-20 16:45:35 +05:30
jsonc Treat bun.lock as JSONC (#27359) 2025-03-24 09:46:23 -04:00
markdown Add completion_query_characters in language (#27175) 2025-03-20 16:45:35 +05:30
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 python indent block for more keywords (#30323) 2025-05-09 05:51:33 +05:30
regex Improve Regex highlighting (#28183) 2025-04-18 12:44:13 -04:00
rust debugger: Add inline value tests (#29815) 2025-05-07 12:39:35 +00:00
tsx editor: Fix function completion expansion in string contexts and call expressions (#30351) 2025-05-09 14:52:52 +05:30
typescript editor: Fix function completion expansion in string contexts and call expressions (#30351) 2025-05-09 14:52:52 +05:30
yaml vim: Update anyquotes and anybrackets to behave like mini.ai plugin (#24167) 2025-02-17 14:55:48 -07:00
bash.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
c.rs Allow to fetch cargo diagnostics separately (#29706) 2025-05-01 11:25:52 +03:00
css.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
go.rs debugger: Rework language association with the debuggers (#29945) 2025-05-06 20:16:41 +02:00
json.rs debugger: Update New Session Modal (#30018) 2025-05-08 16:19:14 +00:00
lib.rs debugger/extensions: Revert changes to extension store related to language config (#30225) 2025-05-08 14:01:39 +02:00
python.rs language: Fix indent suggestions for significant indented languages like Python (#29625) 2025-05-07 23:05:42 +05:30
rust.rs debugger: Fix up Rust test tasks definitions (#30232) 2025-05-08 14:39:56 +02:00
tailwind.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
typescript.rs Add TypeScript support to ESLint flat config (#30044) 2025-05-07 12:49:00 +00:00
vtsls.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
yaml.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00