Commit Graph
31406 Commits
Author SHA1 Message Date
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 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 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
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
Antonio Scandurra ba4c257b50 Use the same serde version across the entire workspace 2023-03-28 09:42:00 -07:00
Mikayla Maki 533ab329e0 Fix bad global 2023-03-28 09:42:00 -07:00
1205cd55ea Add copilot crate
Refactor HTTP and github release downloading into util
Lazily download / upgrade the copilot LSP from Zed

Co-authored-by: Max <max@zed.dev>
Co-Authored-By: Antonio <antonio@zed.dev>
2023-03-28 09:41:59 -07:00
Julia bde44e7ccf Merge pull request #2324 from zed-industries/download-node
Automatically download Node for Node based language servers
2023-03-28 12:10:24 -04:00
Julia c08e46a645 Rename installation.rs -> github.rs now that is all it concerns 2023-03-28 11:51:09 -04:00
Julia 520cd1d701 Download the JSON LSP package instead of our own bundled binary 2023-03-28 11:48:00 -04:00
Julia 3a56c87808 Prevent deadlock when multiple languages attempt to install Node at once 2023-03-28 10:18:22 -04:00