Files
oak-gpui/crates
Marshall BowersandAntonio 68accaeb00 assistant: Improve /docs argument completions (#13876)
This PR improves the completions for arguments in the `/docs` slash
command.

We achieved this by extending the `complete_argument` method on the
`SlashCommand` trait to return a `Vec<ArgumentCompletion>` instead of a
`Vec<String>`.

In addition to the completion `label`, `ArgumentCompletion` has two new
fields that are can be used to customize the completion behavior:

- `new_text`: The actual text that will be inserted when the completion
is accepted, which may be different from what is shown by the completion
label.
- `run_command`: Whether the command is run when the completion is
accepted. This can be set to `false` to allow accepting a completion
without running the command.

Release Notes:

- N/A

---------

Co-authored-by: Antonio <antonio@zed.dev>
2024-07-05 13:29:17 -04:00
..
2024-05-29 18:06:45 -07:00
2024-07-05 08:15:50 -07:00
2024-06-23 07:39:01 -04:00
2024-05-29 18:06:45 -07:00
2024-04-30 23:31:59 -06:00
2024-06-12 23:22:52 +03:00
2024-06-12 23:22:52 +03:00
2024-06-18 12:16:54 -07:00
2024-03-11 10:45:57 +01:00
2024-03-26 16:10:09 -07:00
2024-06-18 12:16:54 -07:00
2024-07-05 08:15:50 -07:00
2024-05-23 15:50:59 +02:00
2024-06-21 16:32:32 -07:00
2024-06-21 16:32:32 -07:00
2024-06-21 16:32:32 -07:00
2024-07-03 11:28:09 -07:00
2024-04-15 14:21:52 +02:00
2024-07-03 09:03:39 -06:00
2024-07-05 08:15:50 -07:00