Commit Graph
8371 Commits
Author SHA1 Message Date
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
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
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
Max Brunsfeld 022b2ce476 Merge pull request #2322 from zed-industries/project-panel-paste-infinite-loop
Fix infinite loop in ProjectPanel::paste when filename has multiple dots
2023-03-27 17:09:10 -07:00
Max Brunsfeld 96c78ea710 Fix infinite loop in ProjectPanel::paste when filename has multiple dots 2023-03-27 16:45:11 -07:00
Max Brunsfeld ae006c827a Merge pull request #2321 from zed-industries/new-file-with-no-window
Make 'new file' action open a window when there are no windows open
2023-03-27 16:10:30 -07:00
Max Brunsfeld ec6934a139 Make 'new file' action open a window when there are no windows open 2023-03-27 16:05:00 -07:00
Joseph T. Lyons 34d9196d6d Merge pull request #2313 from zed-industries/unify-spelling-of-key-binding-to-be-two-words
Unify spelling of `key binding` to be two words
2023-03-27 15:58:12 -04:00
Petros Amoiridis 31e4437d8d Merge pull request #2320 from zed-industries/petros/z-349-make-restart-to-update-zed-look
Make "Restart to update Zed" look clickable
2023-03-27 20:19:06 +03:00
Julia 3f10f4591e Download aarch64 or x64 Node binary according to system architecture 2023-03-27 11:05:17 -04:00
Petros Amoiridis ae1f89b05c Add a hovered style to lspStatus background 2023-03-27 14:26:56 +03:00
Petros Amoiridis c5b56bc30c Run prettier on TS files 2023-03-27 14:26:05 +03:00
JuliaandAntonio Scandurra 5deac1d5b3 Initial impl of NodeRuntime w/JSON borked and a deadlock :)
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2023-03-27 00:00:16 -04:00
JuliaandAntonio Scandurra 0cdfd1de7d Remove server_args from LspAdapter
Prepare to remove concept of a runtime from greater server startup code,
which is important for future language server extensibility

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2023-03-27 00:00:16 -04:00
Julia 25bc7cd3b6 Invoke npm from downloaded Node 2023-03-27 00:00:16 -04:00
Julia 543aebed40 Initial running of servers on downloaded Node 2023-03-27 00:00:16 -04:00
Julia 4e95cc232d Report if language server requires Node or not 2023-03-27 00:00:16 -04:00
Nathan Sobo e8d9c1d8bf Merge pull request #2319 from zed-industries/copy-highlight-json
Add "editor: copy highlight json" command
2023-03-24 17:17:45 -06:00
Nathan Sobo 647b8c692b Trim empty tokens; copy selected range if non-empty 2023-03-24 17:10:50 -06:00
Nathan Sobo 7e089b2aa5 Merge adjacent chunks with the same highlight name in copied JSON 2023-03-24 16:52:00 -06:00