Commit Graph
31406 Commits
Author SHA1 Message Date
Nathan Sobo b093ea74e6 Remove From trait for AnyViewHandle in favor of into_any method
I think it's more explicit.
2023-04-02 15:50:42 -06:00
Nathan Sobo bf6d9cbd81 Wrap AnyWeak handles with their typed counterparts 2023-04-02 15:42:03 -06:00
Nathan Sobo d0a267eaa4 Store AnyViewHandle inside ViewHandle and Deref to it 2023-04-02 14:59:55 -06:00
Julia 3119e19aa7 Trust NPM instead of managing dirs for different Node server versions 2023-03-31 17:15:44 -04:00
Mikayla Maki 664c393431 Merge pull request #2338 from zed-industries/more-copilot-bugs
More copilot bugs
2023-03-31 12:45:19 -07:00
Mikayla Maki d0c58b5e6d Switch from removing all directories in the container dir to removing the non-version dir 2023-03-31 12:36:23 -07:00
Julia b3015807ff Revert "Merge pull request #2335 from zed-industries/dont-delete-json-server-after-downloading-it"
This reverts commit 3d4b2d89f0, reversing
changes made to c765ae7b9b.
2023-03-31 15:31:50 -04:00
Mikayla Maki d8726843cd Fix crash on initiating copilot during collaboration. Copilot is now disabled when collaborating. 2023-03-31 12:28:58 -07:00
Mikayla Maki b266f51161 Merge pull request #2336 from zed-industries/respect-languages-alias-in-settings-file
Add support for writing to the langauge_overrides alias in settings
2023-03-31 11:51:25 -07:00
Mikayla Maki 54d958a5e4 Fix typo in copilot button 2023-03-31 11:50:31 -07:00
Mikayla Maki 09613dcf79 Merge pull request #2334 from zed-industries/quiet-copilot-loggin
Add handlers for LogMessage and statusNotification to copilot LSP
2023-03-31 11:22:23 -07:00
Mikayla Maki eae0e2fee7 Add support for the langauge_overrides alias in the settings file updating code 2023-03-31 11:20:46 -07:00
Mikayla Maki edaf1ddf29 Update copilot.rs 2023-03-31 11:16:52 -07:00
437adf9417 Don't delete JSON language server directly after downloading it
This was accidentally added during the messy NodeRuntime/Copilot rebase

Co-Authored-By: Joseph Lyons <joseph@zed.dev>
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2023-03-31 14:01:04 -04:00
Mikayla Maki 2ad5139b6b remove spare debug 2023-03-31 11:00:06 -07:00
Mikayla Maki a625559769 Add handlers for LogMessage and statusNotification to copilot LSP 2023-03-31 10:58:18 -07:00
Antonio Scandurra 1b0e8156d2 🎨 2023-03-31 18:10:10 +02:00
93db8b20e2 Fix prefix/suffix calculation when determining copilot suggestion
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2023-03-31 18:05:07 +02:00
Antonio ScandurraandNathan Sobo ce3e77355e Avoid auto-indenting when accepting copilot suggestion
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2023-03-31 17:17:35 +02:00
Antonio ScandurraandNathan Sobo 7e44055af0 Use copilot's Completion::{range,text} to determine suggestion
Previously, we were using display text, but this isn't always correct. Now,
we just attempt to determine what text Copilot wants to insert by finding
a prefix and suffix in the existing text with the suggested text.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2023-03-31 17:08:41 +02:00
Mikayla Maki ebc197a373 Fix leaked handle and failure to update language in context menu 2023-03-30 17:40:11 -07:00
Mikayla Maki ef7e2dfc6b Fix unrelated panics in tests 2023-03-30 17:19:29 -07:00
Mikayla Maki 0610d80bae cargofmt 2023-03-30 16:58:11 -07:00
Mikayla Maki 2ba0046a08 Merge branch 'main' into copilot 2023-03-30 16:57:18 -07:00
Mikayla Maki f59c560dcf Remove test modals 2023-03-30 16:52:55 -07:00
Mikayla Maki ecd250eae9 Finish device code flow for copilot 2023-03-30 16:50:33 -07:00
Mikayla Maki 5dc4eb7a71 Added erorr states and first-pass error handling to the copilot status bar item.
Added correct icons
Added a new 'Toast' action which allows other crates to easily pop toasts with an optional click action
2023-03-30 14:10:57 -07:00
Julia efde8aeb63 Allow each language adapter to provide their own code action kinds array 2023-03-30 15:41:54 -04:00
Mikayla Maki 35aa04ca6b Improve settings writing for more cases 2023-03-30 10:40:53 -07:00
Mikayla Makiandantonio edd948c833 Switch to using zed hosted copilot LSP (again)
co-authored-by: antonio <antionio@zed.dev>
2023-03-30 09:29:49 -07:00
Petros Amoiridis f4e10d48a1 Merge pull request #2323 from zed-industries/petros/z-402-recent-projects-replace-expanded-home
Replace home directory with the tilde substitution
2023-03-30 18:12:39 +03:00
Petros Amoiridis 2fbfd629ba Fix doctests 2023-03-30 17:57:14 +03:00
Petros AmoiridisandAntonio Scandurra a4589f2f07 Remove the Errors section from rust docs
The section does not add anything that we don't already know.

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2023-03-30 14:04:37 +03:00
Petros Amoiridis 13be07d71a Fix error 2023-03-30 14:03:59 +03:00
Petros AmoiridisandAntonio Scandurra 76b327f27c Update crates/recent_projects/src/highlighted_workspace_location.rs
Co-authored-by: Antonio Scandurra <me@as-cii.com>
2023-03-30 11:35:17 +03:00
Antonio Scandurra cf4cdd1b10 Speed up tab searching in TabMap::sync by looking for \t only
Instead of looking for `\n` as a stopping condition, we cap the range
we pass to `SuggestionSnapshot::chunks` to stop on the next line. This
makes character searching faster, because looking for a single character
uses `memchr`. Also, this avoids an extra conditional in a tight loop such
as the chunk scanning one contained in `TabMap::sync`.
2023-03-30 10:03:13 +02:00
Antonio Scandurra 91da51e1a2 Use + instead of | to break out of tab expansion in TabMap::sync 2023-03-30 09:49:07 +02:00
Mikayla Maki b217e78a9c Remove some strays 2023-03-29 22:22:02 -07:00
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
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
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