Commit Graph
13708 Commits
Author SHA1 Message Date
Antonio Scandurra e4877fa064 Zed2 entities (#3189)
Adds an `Entity` trait for abstracting over `View`s and `Model`s, and
implements it for the `subscribe()` and `observe()` APIs.

The last commit also includes a fun experiment I added, using the
`Result` type to return the owned model handles back to the caller in
the case of downcast failure, inspired by the `binary_search*` methods.
2023-10-31 10:11:25 +01:00
Kirill Bulatov 33f5f5f42b Only process diagnostics if corresponding project is alive
Part of https://github.com/zed-industries/zed/pull/3128 that is possible
to apply now.
2023-10-31 10:40:49 +02:00
Julia e542407b14 Port zed/src/languages to zed2 (#3190)
@SomeoneToIgnore I had to port
https://github.com/zed-industries/zed/pull/3150 to zed2 in the process,
giving you a heads-up
2023-10-30 22:04:54 -04:00
Julia 6e45e454ff Port zed/src/languages to zed2 2023-10-30 21:52:29 -04:00
Mikayla 1b2f9c6eec experiment with a way to recover the any entities when downcasting fails 2023-10-30 18:08:38 -07:00
Mikayla f9657a8660 Change model to downcast with ownership 2023-10-30 18:00:37 -07:00
Mikayla c9e77d2918 Add the entity trait and implement for models, views, subscriptions, and observations 2023-10-30 17:50:21 -07:00
Max Brunsfeld d3fd1731fa Merge branch 'zed2-render' into zed2 2023-10-30 15:37:00 -07:00
badfb586e6 Introduce a Render trait, make views implement it
Don't pass a render function separately from the view.

Co-authored-by: Nathan Sobo <nathan@zed.dev>
Co-authored-by: Mikayla <mikayla@zed.dev>
Co-authored-by: Antonio <as-cii@zed.dev>
2023-10-30 15:19:40 -07:00
Joseph T. Lyons e2f8910dc7 Remove print statement 2023-10-30 18:14:04 -04:00
Joseph T. Lyons e98a3732d8 Add script to get crate-level completion status 2023-10-30 18:13:18 -04:00
Joseph T. Lyons 244378be87 Port PR #3131 to zed2 (#3187)
Part of: 

- https://github.com/zed-industries/zed/pull/3174

Release Notes:

- N/A
2023-10-30 17:47:00 -04:00
Marshall Bowers 9f328318bc Tweak style for color scale story 2023-10-30 17:45:37 -04:00
Joseph T. Lyons f12c384d4c Port PR #3131 to zed2 2023-10-30 17:41:26 -04:00
Marshall Bowers eb51192664 theme2: Correctly reference the dark alpha scale 2023-10-30 17:35:13 -04:00
Marshall Bowers a921e7ab06 Merge branch 'theme-color-scales' into zed2 2023-10-30 17:31:51 -04:00
Marshall Bowers 61b3fcafcf Add a story showcasing the color scales 2023-10-30 17:31:15 -04:00
Marshall Bowers d673be04ed Fix alpha channel values for color scales 2023-10-30 17:20:43 -04:00
Marshall Bowers 95cb0ad4d6 Add type alias for steps in color scales 2023-10-30 17:08:37 -04:00
Marshall Bowers a24b93badc Register all of the color scales 2023-10-30 17:03:33 -04:00
Marshall Bowers 87b7f9ffb0 Define all color scales 2023-10-30 17:00:46 -04:00
Marshall Bowers 0dfa1839d6 Start work on defining color scales 2023-10-30 16:21:59 -04:00
KCaverly 9d0f7e4925 update prettier2, call2 and project2 to use fs2 2023-10-30 16:21:58 -04:00
Antonio Scandurra 2680820a95 WIP 2023-10-30 20:36:48 +01:00
Marshall Bowers a14adabf33 Merge branch 'zed2' of github.com:zed-industries/zed into zed2 2023-10-30 15:17:16 -04:00
Marshall Bowers 42ff9f1771 Format ui2 2023-10-30 15:17:11 -04:00
Kyle Caverly ba5d486706 port ai to zed2 (#3186)
port ai to zed2
2023-10-30 20:09:49 +01:00
KCaverly f3a081158c updated for model handle rename 2023-10-30 15:04:16 -04:00
2a8cdf3638 Rename other references from "handle" to "model"
Co-Authored-By: Max <max@zed.dev>
Co-Authored-By: Mikayla <mikayla@zed.dev>
2023-10-30 19:54:32 +01:00
KCaverly 5b9e284984 keeping this bad boy green during fmt checks 2023-10-30 14:49:31 -04:00
Marshall Bowers 8fc8f80403 Remove old theme constructs 2023-10-30 14:47:44 -04:00
KCaverly db45e39e18 Merge branch 'zed2' of github.com:zed-industries/zed into zed2-ai 2023-10-30 14:47:13 -04:00
Antonio Scandurra 3895aba120 Rename Handle to Model 2023-10-30 19:44:01 +01:00
KCaverly 84fffd7599 port ai crate to ai2, with all tests passing 2023-10-30 14:40:31 -04:00
Marshall Bowers be81b7d0d8 Remove references to old_theme 2023-10-30 14:36:49 -04:00
Marshall Bowers a76c85bc3b Merge branch 'zed2' of github.com:zed-industries/zed into zed2 2023-10-30 14:28:27 -04:00
Marshall Bowers 38cea1c93b Remove themed wrapper 2023-10-30 14:28:25 -04:00
KCaverly 7d5b4e463f Merge branch 'main' of github.com:zed-industries/zed into zed2 2023-10-30 13:44:50 -04:00
Piotr Osiewicz 0fff731b76 zed2-backport: Elixir next ls bad cpu type (#3185) 2023-10-30 18:44:47 +01:00
Piotr Osiewicz 803d45f9d4 lsp/next-ls: Fix wrong nls binary being fetched.
CPU types had to be swapped around.

Fixed zed-industries/community#2185
2023-10-30 18:43:11 +01:00
Piotr Osiewicz 2178dda375 lsp/next-ls: Fix wrong nls binary being fetched. (#3181)
CPU types had to be swapped around.

Fixed zed-industries/community#2185

Release Notes:
- Fixed Elixir next-ls LSP installation failing due to fetching a binary
for the wrong architecture (zed-industries/community#2185).
2023-10-30 18:27:05 +01:00
Marshall Bowers 03dfee7a52 Add menu2 crate 2023-10-30 12:56:23 -04:00
Marshall Bowers 0d314f6baf Format theme2 2023-10-30 11:26:30 -04:00
Marshall Bowers 9d4ddb7171 Convert all themes 2023-10-30 11:22:04 -04:00
Marshall Bowers 959c72f53a Emit modules for each theme 2023-10-30 11:21:33 -04:00
Kyle Caverly 132bc463c9 Model cleanup (#3157)
Small reorganization for the AI crates. I seperated out the base traits
and providers, to get closer to an abstraction for AI completions as
opposed to OpenAI specific functionality.
2023-10-30 16:15:11 +01:00
KCaverly 760a96677d Merge branch 'main' of github.com:zed-industries/zed into model_cleanup 2023-10-30 11:07:29 -04:00
KCaverly 540806057a clean up warnings and fix tests in the ai crate 2023-10-30 11:07:24 -04:00
Marshall Bowers bf473ea696 Revert changes to themes 2023-10-30 11:06:45 -04:00
Marshall Bowers 00bd9e05c4 Emit all themes at once 2023-10-30 11:04:03 -04:00