Commit Graph
8395 Commits
Author SHA1 Message Date
Mikayla Maki 8fd0cd638e WIP 2023-03-29 17:25:41 -07:00
Nate Butler 9269041a95 Add copilot icons 2023-03-29 20:23:32 -04:00
Mikayla Maki 2f5eecd9a7 Merge branch 'main' into copilot 2023-03-29 16:57:38 -07:00
Mikayla Maki 900232a2cd Add copilot settings
Add copilot pause / resume
Add copilot statusbar item stub
2023-03-29 16:40:52 -07:00
Max Brunsfeld f80d5cd662 Merge pull request #2325 from zed-industries/tab-map-long-lines
Avoid slowdowns with long lines by skipping tab expansion beyond a certain column
2023-03-29 14:48:23 -07:00
Max Brunsfeld 08f8cbd5dc 🎨 2023-03-29 14:43:01 -07:00
Julia bf32408727 Merge pull request #2328 from zed-industries/breadcrumbs-outline-toggle
Open symbol outline when clicking on editor breadcrumbs
2023-03-29 15:51:30 -04:00
Julia a2fd047b18 Open symbol outline when clicking on editor breadcrumbs 2023-03-29 15:46:43 -04:00
Mikayla Makiandantonio 566b2830e8 Make modal behavior stateless
Co-authored-by: antonio <antonio@zed.dev>
2023-03-29 12:45:53 -07:00
Antonio Scandurra b4b257c131 Make edits smaller when tab expansion changes on a line 2023-03-29 21:40:37 +02:00
Joseph Lyons dba5f1f701 v0.81.x dev 2023-03-29 14:13:01 -04:00
Antonio Scandurra 055efa1a6f Expand edit to end of the line when old/new row exceeds max expansion 2023-03-29 16:49:21 +02:00
Antonio Scandurra aca38cb8d3 Rename skip_leading_tab to inside_leading_tab 2023-03-29 14:53:28 +02:00
Antonio Scandurra 8df4fb7b81 Increment input_column correctly when inside the leading tab 2023-03-29 14:52:50 +02:00
Antonio Scandurra 2e907472b1 Merge pull request #2327 from zed-industries/remove-unused-code
Delete unused code
2023-03-29 09:09:47 +02:00
Antonio Scandurra 51771722fd Delete unused code 2023-03-29 09:04:13 +02:00
Mikayla Maki f0e79db961 WIP Add copilot disabled setting 2023-03-28 20:52:50 -07:00
Mikayla Maki 74318eecb3 Move command palette filter into collections crate
Filter out copilot commands from command palette when not active
2023-03-28 20:13:17 -07:00
Mikayla Maki 0c89fb135a Apply cargo fmt 2023-03-28 18:45:37 -07:00
Antonio Scandurra 837cea2a63 Remove copilot smoke test 2023-03-28 18:41:35 -07:00
Antonio Scandurra 6fc9b79b85 🎨 2023-03-28 18:40:51 -07:00
Antonio Scandurra 4d56c19d91 Improve detection of common prefix in text_for_active_completion 2023-03-28 18:40:42 -07:00
Mikayla Maki 881629223a Add rough versions of all 3 modals 2023-03-28 18:00:09 -07:00
Max Brunsfeld 4cc50e4935 Don't use TabMap::expand_tabs in line_indent_for_buffer_row 2023-03-28 17:37:57 -07:00
Max Brunsfeld 204c900aa0 Only expand tabs up until a limited column 2023-03-28 16:40:04 -07:00
Max Brunsfeld ae03435253 🎨 Make expand_tabs and collapse_tabs instance methods on TabSnapshot 2023-03-28 14:10:43 -07:00
Mikayla Maki 58f6902229 Refactor out the node runtime crate and hook up all related imports 2023-03-28 10:27:31 -07:00
Mikayla Maki efa368b1df Finish shape of copilot auth UI 2023-03-28 09:42:01 -07:00
Mikayla Maki 8f51a1e5e5 Create copilot auth popup UI 2023-03-28 09:42:01 -07:00
Antonio Scandurra e4fbc1ab51 Optimize CopilotState::text_for_active_completion 2023-03-28 09:42:01 -07:00
Antonio ScandurraandMikayla Maki 597af5e4ed Refresh copilot suggestions when hitting alt-] if none are showing
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2023-03-28 09:42:01 -07:00
Antonio ScandurraandMikayla Maki 9a7bc22a9c Clear copilot suggestions when hitting escape
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2023-03-28 09:42:01 -07:00
Nate Butler d41ea53fca Update editor.ts 2023-03-28 09:42:01 -07:00
Nate Butler 4bb7ede14a Use syntax.predictive.color to style suggestions 2023-03-28 09:42:01 -07:00
Antonio Scandurra e4ecd2aad5 Reuse existing suggestion when inserting to avoid flickering 2023-03-28 09:42:01 -07:00
Antonio Scandurra 27a5454aee Rework SuggestionMap to take highlight style when retrieving chunks 2023-03-28 09:42:01 -07:00
Antonio Scandurra 97dfcfe905 Replace editor::CycleCopilotSuggestions with copilot::NextSuggestion 2023-03-28 09:42:01 -07:00
Antonio Scandurra 7ea3f89aa9 Start integrating Copilot with editor
There's still a bit to do in terms of reusing the previous suggestion
when the prefix matches, but we're getting there.
2023-03-28 09:42:01 -07:00
Antonio ScandurraandMikayla Maki ec30e108af WIP: Start on showing window for authenticating with copilot
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2023-03-28 09:42:01 -07:00
Antonio ScandurraandMikayla Maki c387d1958b Fix invalid translation between bottom/top left coordinate spaces
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2023-03-28 09:42:01 -07:00
Antonio Scandurra d830013859 Restructure verification code prompting to open a window instead
Also, prevent multiple calls to `sign_in` from racing with each other.
2023-03-28 09:42:01 -07:00
Mikayla Maki 847021d15d Wait to show the auth modal until the sign request has returned 2023-03-28 09:42:00 -07:00
Mikayla Maki 692d59dc81 Add basic copilot modal 2023-03-28 09:42:00 -07:00
Mikayla Maki a4bc9260f6 Add copilot theme, start sketching out the auth modal 2023-03-28 09:42:00 -07:00
Antonio ScandurraandMikayla Maki 61e7f569c1 Implement Copilot::completions_cycling
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2023-03-28 09:42:00 -07:00
Antonio Scandurra 3e6100c024 Successfully fetch completions from Copilot
We still need to process them and return them into a more Zed-friendly
structure, but we're getting there.
2023-03-28 09:42:00 -07:00
Antonio Scandurra a5bd93bf58 Start on copilot completions 2023-03-28 09:42:00 -07:00
Antonio Scandurra 0adce81528 🎨 2023-03-28 09:42:00 -07:00
Antonio Scandurra 32a9b58914 Implement Copilot sign in and sign out 2023-03-28 09:42:00 -07:00
Antonio Scandurra d00af1578a Start copilot and check sign in status 2023-03-28 09:42:00 -07:00