Commit Graph
39175 Commits
Author SHA1 Message Date
Mikayla Maki 4a9b78e48f Fix bug with enable setting, clean up sign in UIs 2023-03-29 21:51:07 -07:00
Mikayla Maki c2f6567042 Add status bar icon reflecting copilot state to Zed status bar 2023-03-29 21:31:33 -07:00
Mikayla Maki 290933a8b7 WIP, not compiling 2023-03-29 17:59:21 -07:00
Max Brunsfeld 6b8b6779f1 Merge pull request #2329 from zed-industries/new-window-on-click-doc
Open a new window when activating Zed from the dock w/ no windows open
2023-03-29 17:33:32 -07:00
Mikayla Maki 8fd0cd638e WIP 2023-03-29 17:25:41 -07:00
Max Brunsfeld ee77280528 Open a new window when activating Zed from the dock w/ no windows open 2023-03-29 17:24:44 -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
Petros Amoiridis 452f95144b Remove convert_to_shortened_path from gpui platform 2023-03-29 17:41:01 +03:00
Petros Amoiridis 57426e2787 Use util::paths::compact 2023-03-29 17:40:39 +03:00
Petros Amoiridis 543888f703 Introduce compact function in util create 2023-03-29 17:32:27 +03:00
Petros Amoiridis 73330994ee Enable doctests in util crate 2023-03-29 17:31:55 +03:00
Petros AmoiridisandJoseph T. Lyons 62a96c7934 Move code into the platform
Co-Authored-By: Joseph T. Lyons <19867440+JosephTLyons@users.noreply.github.com>
2023-03-29 16:25:13 +03:00
Petros Amoiridis 9cfb0bd595 Replace home directory with the tilde substitution 2023-03-29 16:25:10 +03: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