Commit Graph
198 Commits
Author SHA1 Message Date
KCaverly 338899567b move embedding provider to ai crate 2023-09-22 09:33:59 -04:00
KCaverly 4e6cfd3982 introduce ai crate with completion providers 2023-09-21 22:44:56 -04:00
KCaverly cbbf18051c rename ai crate to assistant crate 2023-09-21 21:54:59 -04:00
Joseph T. Lyons 7094a5cc48 Add assistant events (#2978)
Add assistant events

Release Notes:

- N/A
2023-09-15 15:25:35 -04:00
Nate Butler 0dc4475f7f Unify icons using multiple variants, remove all unused icons 2023-09-15 12:50:49 -04:00
Antonio Scandurra 9c8feb82a6 Don't dismiss inline assistant when an error occurs 2023-09-15 12:32:37 +02:00
Kirill Bulatov c8ede63d7c Unify highlights in *Map 2023-09-14 22:08:12 +03:00
Antonio Scandurra 3de6752dbe Diff lines one chunk at a time after discovering indentation 2023-09-13 11:57:10 +02:00
Antonio Scandurra 882e030e38 Never use the indentation that comes from OpenAI 2023-09-13 11:40:28 +02:00
Antonio Scandurra 43f6b09b36 Add a failing test for codegen autoindent 2023-09-11 14:35:15 +02:00
Antonio Scandurra 43408f4f8e Extract code generation logic into its own module 2023-09-11 11:25:37 +02:00
Antonio Scandurra 48467b59fa Avoid duplicate entries in inline assistant's prompt history 2023-09-01 09:15:29 +02:00
Max Brunsfeld 2492d07a27 Propagate Cancel action if there is no pending inline assist 2023-08-31 11:09:36 -07:00
Antonio Scandurra 34f6e8c397 Remove trailing backticks when assistant ends with a trailing newline 2023-08-30 12:08:14 +02:00
Antonio Scandurra d380e6fb23 Detect indentation from GPT output 2023-08-30 12:07:58 +02:00
Antonio Scandurra 214840a178 Retain search history for inline assistants
This only works in-memory for now.
2023-08-30 11:30:51 +02:00
Antonio Scandurra 3fc71a1bd5 Show inline assistant errors 2023-08-30 11:04:48 +02:00
Antonio Scandurra 9bccad4ba8 Use model from conversation when available 2023-08-29 18:25:02 +02:00
Antonio Scandurra a80db5b4e4 Remember whether include conversation was toggled 2023-08-29 18:25:02 +02:00
Antonio Scandurra 68360b79b7 Remove the ability to reply to specific message in assistant 2023-08-29 14:51:00 +02:00
Antonio Scandurra 1a5aa56824 More polish 2023-08-29 14:41:02 +02:00
Antonio Scandurra e07fe17a1e Delete less aggressively 2023-08-29 14:31:58 +02:00
Antonio Scandurra 37909cd8f4 Allow including conversation when triggering inline assist 2023-08-29 14:08:16 +02:00
Antonio Scandurra db6a325451 📝 2023-08-28 14:46:05 +02:00
Antonio Scandurra 40c8e5b9ef Allow redoing edits performed by inline assistant after cancelling it 2023-08-28 14:42:52 +02:00
Antonio Scandurra f1f1a5f367 Close inline assist when the associated transaction is undone 2023-08-28 14:23:42 +02:00
Antonio Scandurra bafdbdc38c Merge remote-tracking branch 'origin/main' into ai-refactoring 2023-08-28 12:16:24 +02:00
Antonio Scandurra 1d8e24ef89 Show icon to toggle inline assist 2023-08-28 12:13:44 +02:00
Antonio Scandurra 5fbc01b3fa Don't auto-indent when the assistant starts responding with indentation 2023-08-28 11:57:02 +02:00
Piotr Osiewicz 0818c0d178 language: Make Buffer::new take an explicit ID (#2900)
See Linear description for the full explanation of the issue. This PR is
mostly a mechanical change, except for the one case where we do pass in
an explicit `next_id` instead of `model_id` in project.rs.

Release Notes:
- Fixed a bug where some results were not reported in project search in
presence of unnamed buffers.
2023-08-28 11:51:50 +02:00
Antonio Scandurra 283b6d8b82 Extract a strip_markdown_codeblock function 2023-08-28 11:24:55 +02:00
Antonio Scandurra c1aaf3b9cc Add disabled style for prompt editor after confirming 2023-08-26 12:07:03 +02:00
Antonio Scandurra f06007e7ae Allow multiple inline assistant highlights at once 2023-08-26 11:55:47 +02:00
Antonio Scandurra 2eace7529b Clear selection when deploying inline assistant 2023-08-26 09:52:01 +02:00
Max Brunsfeld 0596c2f103 Format let-else statements 2023-08-25 10:11:32 -07:00
Antonio Scandurra ac2951109f Remove warning 2023-08-25 17:35:14 +02:00
Antonio Scandurra 015f532b4b Add placeholder text for inline assistant prompts 2023-08-25 17:24:26 +02:00
Antonio Scandurra 5bb30bddb8 Cancel last inline assist when escaping from the editor 2023-08-25 15:54:52 +02:00
Antonio Scandurra fb63016bb2 Ensure the inline assistant works with gpt-3.5 2023-08-25 15:39:10 +02:00
Antonio Scandurra 6eb450178e Merge remote-tracking branch 'origin/main' into ai-refactoring 2023-08-25 13:37:32 +02:00
Antonio Scandurra def8c31c64 💄 2023-08-25 13:36:52 +02:00
Antonio Scandurra 49c0c841c2 Improve background highlighting of inline assists 2023-08-25 12:35:36 +02:00
Antonio Scandurra 817dd0e370 Use a left bias for the prompt editor 2023-08-25 12:25:43 +02:00
Antonio Scandurra eae4fdd053 Allow generating code without editing it 2023-08-25 12:16:28 +02:00
Antonio Scandurra c549cdb9b2 Rework inline assistant 2023-08-25 11:39:27 +02:00
Antonio Scandurra cf49248b8a WIP 2023-08-24 17:23:12 +02:00
Antonio Scandurra e795332e4f Improve scoring 2023-08-24 16:32:55 +02:00
Antonio Scandurra 15f5df30c2 Move to an inline refactoring prompt 2023-08-24 15:46:18 +02:00
Antonio Scandurra 54591bf06b Always clear refactoring text highlights, even if an error occurs 2023-08-24 14:29:05 +02:00
Antonio Scandurra 07fac03f4f Rename merge_transaction_into to merge_transactions 2023-08-24 14:26:42 +02:00