ZIm/crates/languages/src/tsx
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
..
brackets.scm tsx: Insert newline between open and close tags on enter (#27618) 2025-03-27 19:15:12 +00:00
config.toml editor: Fix function completion expansion in string contexts and call expressions (#30351) 2025-05-09 14:52:52 +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