ZIm/crates/assistant2/src
Kirill Bulatov 8a31dcaeb0
Use textDocument/codeLens data in the actions menu when applicable #2 (#26848)
Re-applies what's been reverted in
https://github.com/zed-industries/zed/pull/26832 with an action-related
fix in
64b5d37d32

Before, actions were resolved only if `data` is present and either of
the possible fields is empty:

e842b4eade/crates/project/src/lsp_store.rs (L1632-L1633)

But Zed resolves completions and inlays once, unconditionally, and the
reverted PR applied the same strategy to actions.
That did not work despite the spec not forbidding `data`-less actions to
be resolved.

Soon, it starts to work due to
https://github.com/rust-lang/rust-analyzer/pull/19369 but it seems safer
to restore the original filtering code.

Code lens have no issues with `data`-less resolves:

220d913cbc/crates/rust-analyzer/src/handlers/request.rs (L1618-L1620)

so the same approach as completions and inlays is kept: resolve once.


Release Notes:

- N/A
2025-03-15 20:09:32 +00:00
..
context_picker assistant2: Truncate thread title in context picker (#26775) 2025-03-14 11:03:57 -03:00
ui assistant2: Truncate context pill labels (#26721) 2025-03-13 16:56:49 -03:00
active_thread.rs Add initial implementation of evaluating changes generated by the assistant (#26799) 2025-03-14 23:10:25 +00:00
assistant.rs Add initial implementation of evaluating changes generated by the assistant (#26799) 2025-03-14 23:10:25 +00:00
assistant_configuration.rs Revert "ui: Color cleanup (#26673)" (#26681) 2025-03-13 15:40:57 +00:00
assistant_model_selector.rs Fix language model selector (#26138) 2025-03-05 12:48:10 -05:00
assistant_panel.rs assistant edit tool: Fix editing files in context (#26751) 2025-03-14 17:07:43 -03:00
buffer_codegen.rs chore: Extract PromptStore out of prompt_library (#25837) 2025-03-01 00:34:28 +01:00
context.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
context_picker.rs Remove more references to 'model' in GPUI APIs (#23693) 2025-01-27 04:00:27 +00:00
context_store.rs assistant edit tool: Fix editing files in context (#26751) 2025-03-14 17:07:43 -03:00
context_strip.rs assistant2: Remove unneeded pub on field (#26399) 2025-03-10 20:55:53 +00:00
history_store.rs Introduce rating for assistant threads (#26780) 2025-03-14 14:41:50 +00:00
inline_assistant.rs Use textDocument/codeLens data in the actions menu when applicable #2 (#26848) 2025-03-15 20:09:32 +00:00
inline_prompt_editor.rs New excerpt controls (#24428) 2025-03-13 15:52:47 -06:00
message_editor.rs assistant edit tool: Fix editing files in context (#26751) 2025-03-14 17:07:43 -03:00
terminal_codegen.rs windows: Fix terminal inline assistant (#25715) 2025-02-27 10:03:46 +08:00
terminal_inline_assistant.rs chore: Extract PromptStore out of prompt_library (#25837) 2025-03-01 00:34:28 +01:00
thread.rs Add initial implementation of evaluating changes generated by the assistant (#26799) 2025-03-14 23:10:25 +00:00
thread_history.rs Introduce rating for assistant threads (#26780) 2025-03-14 14:41:50 +00:00
thread_store.rs Introduce rating for assistant threads (#26780) 2025-03-14 14:41:50 +00:00
tool_selector.rs assistant2: Refine thread design (#26783) 2025-03-14 12:09:24 -03:00
tool_use.rs Add initial implementation of evaluating changes generated by the assistant (#26799) 2025-03-14 23:10:25 +00:00
ui.rs assistant2: Sketch in sending file context to model (#21829) 2024-12-10 16:35:53 -05:00