Commit graph

14 commits

Author SHA1 Message Date
Nate Sesti
a5bfcfe27d
⚡️ Improved edit prompts for OS models (#1029)
* 💄 refresh codelens more frequently

* ⚡️ improved codellama edit prompt

* ⚡️ better codellama prompt

* ⚡️ use same improved prompt for most OS models

* 🎨 refactor chat templates

* 🎨 refactor llama2 prompt to allow ending assistant message

* ⚡️ separate os models prompt when no prefix/suffix

* 🎨 refactor to allow putting words in the model's mouth

* ⚡️ prune code around cmd/ctrl+I

* 🚚 rename to cmd/ctrl+I

* 🎨 make raw a base completion option

* 🩹 small improvements

* 🩹 use different prompt when completions not supported
2024-03-27 13:47:19 -07:00
Nate Sesti
98affeaa81
🔥 Improved Ctrl/Cmd+I (#1023)
* ⚡️ improved diff streaming algo

* 🎨 better messaging/formatting for further cmd/ctrl+I instructions

* ⚡️ more reliably filter out unwanted explanations

* 🚸 better follow up edits

* 💄 accept/reject diffs block-by-block

* ✨ cmd/ctrl+z to reject diff

* 🚚 rename variables

* 💄 allow switching files when inline diff still visible

* 🚸 don't show quick pick if not ctx providers exist

* 🚧 (sort of) allow switching editors while streaming diff

* 💄 show model being used for cmd/ctrl+I

* 💄 don't add  undo stops when generating diff

* 🐛 fix shortcuts for accept/reject diff blocks

* ✨ improved GPT edit prompt, taking prefix/suffix into account

* ✨ improved prompting for empty selection ctrl/cmd+I

* ⚡️ immediately refresh codelens

* 🐛 use first model if default undefined

* ⚡️ refresh codelens after diff cleared

* 💄 update keyboard shortcuts
2024-03-26 15:55:32 -07:00
Nate Sesti
2982d7c843 🩹 add filter for midline imports/top-level keywords and encoding header 2024-03-26 11:57:00 -07:00
Nate Sesti
3a38495412 🔧 generate .d.ts files 2024-03-19 17:33:36 -07:00
Nate Sesti
f3b0dbc953 ✨ starcoder2 FIM prompt formatting 2024-03-06 16:34:17 -08:00
Nate Sesti
8187e0d39a 🐛 don't try to calculate AST in non-code files 2024-03-02 21:28:23 -05:00
Nate Sesti
c9f53d7c76 ⚡️ stop autocomplete if lines are repeating 2024-03-02 21:11:07 -05:00
Nate Sesti
d90e7dce92 🎨 formatting + fix viewType of undefined 2024-03-02 19:38:27 -05:00
Nate Sesti
97b2c04f80 ✨ useCache customization option 2024-02-29 20:49:49 -05:00
Nate Sesti
c4598b7685 ⚡️ stop autocomplete model from outputting // Path: ... 2024-02-29 11:30:46 -05:00
Nate Sesti
20ba40a32b ⚡️ more improvements to /edit 2024-02-10 20:15:26 -08:00
Nate Sesti
b3bf8d9d25 ⚡️ improve reliability of diff generation, avoiding english explanation 2024-02-10 19:18:54 -08:00
Nate Sesti
fd9ca79a41 ⚡️ don't repeat closing bracket with autocomplete 2024-02-06 10:40:04 -08:00
Nate Sesti
18fdab6930 ⚡️ refactor streaming for autocomplete 2024-02-05 21:59:08 -08:00
Renamed from core/autocomplete/streaming.ts (Browse further)