Commit Graph
2503 Commits
Author SHA1 Message Date
Antonio Scandurra d2930f462c Merge branch 'main' into window_context_2 2023-04-21 10:58:08 +02:00
Max Brunsfeld c19dbe38cd Store buffer's diagnostic sets in a smallvec 2023-04-20 08:58:41 -07:00
Antonio Scandurra 8421d816a8 Merge branch 'main' into window_context_2 2023-04-20 16:01:47 +02:00
Nathan Sobo ae5aa20a24 WIP: Make PickerDelegate a fully owned object instead of a view
This avoids issues with the parent view being on the stack when we want to
interact with the delegate from the picker. Still have several picker usages
to convert.
2023-04-19 22:05:29 -06:00
Max Brunsfeld a0035225f6 When opening projects, only reuse the current window if it is empty 2023-04-18 17:05:26 -07:00
Julia 88665ba941 Merge pull request #2385 from zed-industries/rerender-breadcrumbs-on-focus-change
Re-render toolbar items when updating their knowledge of pane focus
2023-04-18 15:13:53 -04:00
Julia bbd5d61d42 Re-render toolbar items when updating their knowledge of pane focus 2023-04-18 14:56:39 -04:00
Joseph Lyons c34ce52d31 Remove unnecessary lifetimes from tab_description 2023-04-18 14:15:56 -04:00
Joseph Lyons 64711628de Remove unnecessary lifetimes from tab_tooltip_text 2023-04-18 14:03:02 -04:00
Antonio Scandurra 022dff56f1 Don't capture Workspace handle in defer when rendering Dock
GPUI already provides a mutable reference to the `Workspace` in the
`defer` callback.
2023-04-18 17:41:40 +02:00
Antonio Scandurra 9254219f16 Fix warnings/errors now that AsyncAppContext::update returns Result 2023-04-18 14:58:57 +02:00
Antonio Scandurra ea19068842 Return Result from AsyncAppContext::update_view 2023-04-18 12:03:53 +02:00
Antonio Scandurra 08f25cdc7e WIP 2023-04-17 18:52:48 +02:00
Antonio Scandurra 41134f0ebb Make production code compile again 2023-04-17 12:33:33 +02:00
Joseph Lyons 74848c2912 Add tab tooltips 2023-04-15 06:46:14 -04:00
Antonio Scandurra 800f4c334e Take WindowContext in workspace::ItemHandle methods 2023-04-14 16:36:23 +02:00
Antonio Scandurra ad7c4c12ae Take a WindowContext in StatusItemViewHandle::set_active_pane_item 2023-04-14 14:26:20 +02:00
Antonio Scandurra 028d254caa Fix formatting for the entire workspace 2023-04-14 12:08:33 +02:00
Antonio Scandurra 585b97bd38 Merge branch 'main' into window_context_2 2023-04-14 12:07:09 +02:00
Antonio Scandurra 487c468521 Fix most of the warnings 2023-04-14 10:51:53 +02:00
Antonio Scandurra 1f47ff85de Move more window-specific methods from AppContext to WindowContext 2023-04-14 10:29:35 +02:00
Nathan Sobo d5629c7183 WIP 2023-04-12 12:38:26 -06:00
Nathan Sobo 169d6bf675 WIP 2023-04-12 12:22:26 -06:00
Nathan Sobo f5a86aecdc WIP 2023-04-12 12:13:35 -06:00
Joseph T. Lyons efcb72461b Merge pull request #2368 from zed-industries/Improve-tab-closing-experience
Add tab context menu
2023-04-12 13:08:46 -04:00
Nathan Sobo d8eb1ac343 WIP 2023-04-12 10:07:17 -06:00
Antonio Scandurra 5f04261450 WIP 2023-04-12 15:55:43 +02:00
Nathan Sobo 082bbe5e59 WIP 2023-04-11 21:56:37 -06:00
Nathan Sobo ec73862972 WIP 2023-04-11 18:48:00 -06:00
Nathan Sobo fabf89a1b1 WIP 2023-04-11 18:21:56 -06:00
Joseph Lyons 9a6578da70 Represent dirty state in item-testing code 2023-04-11 16:27:12 -04:00
Joseph Lyons f4f7f4a6a6 Construct context menu in a more clear way 2023-04-11 15:46:52 -04:00
Joseph Lyons b0c94827b9 Add tab context menu 2023-04-11 00:03:47 -04:00
Nathan Sobo 596940d986 WIP: Everything shredded 2023-04-10 16:10:32 -06:00
Max BrunsfeldandAntonio Scandurra eeeb30f56c Preserve ordering between UpdateProject and CreateBufferForPeer messages
Previously, because UpdateProject messages were sent in a separately-
spawned task, they could be sent after CreateBufferForPeer messages that
were intended to be sent after them.

Co-authored-by: Antonio Scandurra <antonio@zed.dev>
2023-04-10 12:54:25 -07:00
Nathan Sobo 45c1106140 Don't export platform::* from gpui
I'd like to avoid cluttering the top-level namespace with all the platform-
specific types.
2023-04-07 11:45:53 -06:00
Nathan Sobo 5839c594d8 Fix formatting 2023-04-06 15:54:44 -06:00
Nathan Sobo d937660683 Merge MutableAppContext into AppContext
There may have been a good reason for the difference at some point, or I was
still learning Rust. But now it's just &mut AppContext vs &AppContext.
2023-04-06 15:49:03 -06:00
Joseph Lyons 1941ac77fa Add close items to left and right 2023-04-06 03:33:38 -04:00
Julia 801aae5870 Prioritize displaying right statusbar items overtop left items if needed 2023-04-05 12:08:52 -04:00
Petros AmoiridisandAntonio Scandurra 0795172818 Do not drop the task
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2023-04-03 16:36:08 +03:00
Nathan Sobo d26088c32a Add downcast_ref to AnyViewHandle
I use unsafe code to transmute an AnyViewHandle to a ViewHandle<T> when
the type matches. Because ViewHandle<T> is repr(transparent) to the
wrapped AnyViewHandle, this is safe.
2023-04-02 16:10:16 -06:00
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
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
Mikayla Maki c2f6567042 Add status bar icon reflecting copilot state to Zed status bar 2023-03-29 21:31:33 -07:00
Mikayla Maki 2f5eecd9a7 Merge branch 'main' into copilot 2023-03-29 16:57:38 -07:00
Julia a2fd047b18 Open symbol outline when clicking on editor breadcrumbs 2023-03-29 15:46:43 -04:00
Antonio Scandurra ba4c257b50 Use the same serde version across the entire workspace 2023-03-28 09:42:00 -07:00