Conrad Irwin and Mikayla
920eced1d5
Fix right click handler for tabs
...
Also, some fun test helpers
Co-Authored-By: Mikayla <mikayla@zed.dev >
2024-01-18 12:10:38 -07:00
Mikayla Maki
75f8748509
Document party 2 ( #4106 )
...
@mikayla-maki and @nathansobo's contributions
Release Notes:
- N/A
2024-01-17 14:33:52 -08:00
Mikayla and Nathan
9eecda2dae
Update method name and partially document platform crate
...
co-authored-by: Nathan <nathan@zed.dev >
2024-01-17 14:07:57 -08:00
Mikayla and Nathan
d67e461325
document app module in gpui 🎉
...
co-authored-by: Nathan <nathan@zed.dev >
2024-01-17 14:07:41 -08:00
6db18e8972
Drop scroll events if there's been a reset
...
co-authored-by: Nathan <nathan@zed.dev >
co-authored-by: Conrad <conrad@zed.dev >
2024-01-17 13:57:16 -08:00
Mikayla
a99ee5e599
Fix test failures
2024-01-16 22:30:44 -08:00
Mikayla
cae35d3334
Fix draw helper, add helper traits for selecting groupings of input events
2024-01-16 22:19:55 -08:00
Mikayla
db433586aa
Add some small test code for tracking down this list bug
2024-01-16 16:52:55 -08:00
Antonio Scandurra
1c260e6dfd
Merge remote-tracking branch 'origin/main' into cache
...
# Conflicts:
# crates/copilot/src/sign_in.rs
# crates/gpui/src/window.rs
# crates/workspace/src/pane_group.rs
2024-01-10 22:58:52 +01:00
Conrad Irwin
5dff458014
Ensure focus_in and focus_out fire on window activation ( #3993 )
...
Also:
- Rename cx.on_blur to cx.on_focus_lost
- Fix a bug where notify calls in focus handlers were ignored
- Fix a bug where vim would get stuck in the wrong mode when switching
windows
Release Notes:
- (preview only) vim: fix switching between multiple windows
2024-01-10 10:00:07 -07:00
Antonio Scandurra
881c532256
Insert primitives associated with views from a previous scene
2024-01-10 10:50:16 +01:00
Conrad Irwin
5d3f5611e5
guest promotion ( #3969 )
...
Release Notes:
- Adds the ability to promote read-only guests to read-write
participants in calls
2024-01-09 22:21:13 -07:00
Conrad Irwin
2ca462722c
Fix some tests (mostly more run_until_parked's...)
2024-01-09 22:14:11 -07:00
Conrad Irwin
72c022f413
Ensure focus-sensitive tests have active windows
2024-01-09 21:38:06 -07:00
Mikayla
9ce7ef8949
Remove the last of the major todos
2024-01-09 16:14:54 -08:00
Conrad Irwin
276bfa0fab
Merge branch 'main' into guest-promotion
2024-01-09 16:28:42 -07:00
Mikayla
ed263a7b5c
Resolve more todos
2024-01-09 15:08:05 -08:00
Mikayla
80790d921d
Fix / remove small todos
2024-01-09 14:16:46 -08:00
Nathan Sobo and Conrad
42cbd103fb
Even more docs
...
Co-authored-by: Conrad <conrad@zed.dev >
2024-01-09 12:02:12 -07:00
Nathan Sobo and Conrad
458c672a72
Add more API docs
...
Co-Authored-By: Conrad <conrad@zed.dev >
2024-01-09 11:16:56 -07:00
59f41acb82
Add a bunch of docs
...
Co-Authored-By: Conrad <conrad@zed.dev >
Co-Authored-By: Mikayla <mikayla@zed.dev >
2024-01-09 11:02:57 -07:00
Kirill Bulatov
625c9d8980
Remove some todo!'s
2024-01-09 11:36:36 +02:00
Conrad Irwin
844d161c40
Allow adding write access to guests
2024-01-08 22:02:56 -07:00
Piotr Osiewicz
53564fb269
Bring back zed.rs tests ( #3907 )
...
At present 3 tests still fail; 2 are related to keymap issues that (I
believe) @maxbrunsfeld is working on. The other one
(`test_open_paths_action`) I'll look into. edit: done
This PR also fixes workspace unregistration, as we've put the code to do
that behind `debug_assert`
(https://github.com/zed-industries/zed/pull/3907/files#diff-041673bbd1947a35d45945636c0055429dfc8b5985faf93f8a8a960c9ad31e28L649 ).
Release Notes:
- N/A
2024-01-08 12:29:54 +01:00
Piotr Osiewicz
d475f1373a
gpui: Further docs refinement & moved some reexports into 'private' module ( #3935 )
...
This commit mostly fixes invalid URLs in docstrings. It also
encapsulates crates we reexport (serde stuff + linkme) into a public
module named "private" in order to reduce the API surfaced through docs.
Moreover, I fixed up a bunch of crates that were pulling serde_json in
through gpui explicitly instead of using Cargo manifest.
Release Notes:
- N/A
2024-01-07 14:14:21 +01:00
Conrad Irwin and Max
709682e8bc
Tidy up TestContext lifecycle
...
Co-Authored-By: Max <max@zed.dev >
2024-01-05 16:31:41 -07:00
Conrad Irwin
204ef451d0
Merge branch 'main' into following-tests
2024-01-05 16:14:12 -07:00
Conrad Irwin
f239a8292e
More following tests
2024-01-05 16:13:40 -07:00
Conrad Irwin
df0076a4eb
Better TestWindow support ( #3876 )
...
Adding guest roles led us down a rabbit hole where we'd have liked to
rely on a
side-effect of activating a window in tests; but the test window didn't
implement that.
Looking into that, I realized our TestWindow wasn't doing a great job of
emulating the MacWindow, so this makes the two more similar.
2024-01-05 09:59:48 -07:00
Kirill Bulatov
3070a6ef26
Return back git status colors for tab labels
2024-01-05 12:38:42 +02:00
Conrad Irwin
fff415e3e9
Improve deactivate simulation
2024-01-04 22:06:52 -07:00
Conrad Irwin and Julia
5037cca7ec
Add LeakDetector for gpui2
...
Co-Authored-By: Julia <julia@zed.dev >
2024-01-04 20:29:44 -07:00
Conrad Irwin
5c32dd5688
Better TestWindow support
2024-01-04 08:00:40 -07:00
Max Brunsfeld and Mikayla
f5ba22659b
Remove 2 suffix from gpui
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2024-01-03 12:59:39 -08:00
456baaa112
Mainline GPUI2 UI work ( #3099 )
...
This PR mainlines the current state of new GPUI2-based UI from the
`gpui2-ui` branch.
Included in this is a performance improvement to make use of the
`TextLayoutCache` when calling `layout` for `Text` elements.
Release Notes:
- N/A
---------
Co-authored-by: Nate Butler <iamnbutler@gmail.com >
Co-authored-by: Antonio Scandurra <me@as-cii.com >
2023-10-06 13:18:56 -04:00
Marshall Bowers and Piotr Osiewicz
71c1e36d1e
Put Theme behind an Arc ( #3017 )
...
This PR puts the `Theme` returned from the `theme` function behind an
`Arc`.
### Motivation
While working on wiring up window focus events for the `TitleBar`
component we ran into issues where `theme` was holding an immutable
borrow to the `ViewContext` for the entirety of the `render` scope,
which prevented having mutable borrows in the same scope.
### Explanation
To avoid this, we can make `theme` return an `Arc<Theme>` to allow for
cheap clones and avoiding the issues with the borrow checker.
Release Notes:
- N/A
Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com >
2023-09-22 13:35:30 -04:00
Mikayla
66dd0e9ec0
Switch drag end event to be fired after mouse up
2023-09-21 08:58:36 -07:00
Nathan Sobo
e0fdc7d0aa
Eliminate PaintContext
2023-09-11 09:00:59 -06:00
Nathan Sobo
a24d94cfda
Eliminate LayoutContext
2023-09-11 08:47:00 -06:00
Nathan Sobo
ebf8b32811
Checkpoint
2023-09-08 16:25:10 -06:00
Nathan Sobo
362b1a44be
Merge branch 'main' into storybook
2023-09-08 14:18:44 -06:00
Nathan Sobo
53a50b8df4
Move refreshing to window
2023-09-08 13:27:29 -06:00
Nathan Sobo
d311bd04ff
Add basic inspector
2023-09-07 22:24:02 -06:00
Nathan Sobo
6d4dd0e7a4
Checkpoint
2023-09-06 15:22:35 -06:00
Conrad Irwin and
20f98e4d17
vim . to replay
...
Co-Authored-By: maxbrunsfeld@gmail.com
2023-09-06 13:49:55 -06:00
Nathan Sobo
85aedf9bed
WIP: Icons not yet rendering
2023-09-05 16:40:52 -06:00
Nathan Sobo
9ec7569e09
Checkpoint
2023-09-05 12:16:21 -06:00
Nathan Sobo
48d3e2d9b9
Move views_to_notify_if_ancestors_change to Window
2023-08-29 21:58:44 -06:00
Nathan Sobo
2e7356a53e
Store new_parents on Window instead of layout context
2023-08-29 21:43:48 -06:00
Nathan Sobo
81957c49d5
Merge remote-tracking branch 'origin' into divs
2023-08-29 21:14:14 -06:00