Antonio Scandurra and Nathan
08c4e1abdc
Fix clipping when rendering paths
...
Co-Authored-By: Nathan <nathan@zed.dev >
2023-12-07 17:48:00 +01:00
Mikayla and nathan
c092cfbfb3
Fix bug with IME
...
Adjust how IME works in the terminal
co-authored-by: nathan <nathan@zed.dev >
2023-12-06 15:54:08 -08:00
Mikayla
fd31e429f5
Merge branch 'main' into terminal-element
2023-12-06 15:20:04 -08:00
Mikayla and Nathan
12e7f61f62
Fix a porting bugs for terminal2
...
co-authored-by: Nathan <nathan@zed.dev >
2023-12-06 15:11:49 -08:00
Nathan Sobo
d7473ad6e7
Document geometry module and replace zero method with default ( #3515 )
...
Nothing earth-shattering here, but all our geometry types are now fully
documented.
Release Notes:
- N/A
2023-12-06 12:52:41 -07:00
Nathan Sobo
ac07e230fa
Document geometry
2023-12-06 12:28:44 -07:00
Antonio Scandurra
5e558e2a58
Make more menu-related platform methods no-ops
2023-12-06 17:57:18 +01:00
Antonio Scandurra
886ec79d58
Make TestPlatform::set_menus a no-op
2023-12-06 17:45:59 +01:00
Antonio Scandurra and Marshall
c8ddc95caa
Take a Keymap when setting app menus
...
For a brief period on this branch, we were taking a `DispatchTree`. Doing so
resulted in more accurate key bindings but it meant that we would have had to
recompute the app menus every time the key context changed.
We decided to err on the side of keeping things simple and work in the same
way they worked back in zed1.
Co-Authored-By: Marshall <marshall@zed.dev >
2023-12-06 17:26:54 +01:00
Nathan Sobo
d2fe9f8f9b
Merge remote-tracking branch 'origin/main' into app-menus
2023-12-05 16:54:38 -07:00
Nathan Sobo and Marshall
82534b6612
Get app menus basically working
...
- Everything is still disabled when there is no active window.
Co-Authored-By: Marshall <marshall@zed.dev >
2023-12-05 16:37:01 -07:00
79567d1c87
Add AppContext::dispatch_action and use it for app menu actions
...
Co-Authored-By: Marshall <marshall@zed.dev >
Co-Authored-By: Julia <julia@zed.dev >
2023-12-05 15:49:06 -07:00
Max Brunsfeld
f2faa70f73
Make Window::on_next_frame work in tests
2023-12-05 13:34:12 -08:00
Nathan Sobo
631e264e3c
Start on app menus
2023-12-05 13:17:59 -07:00
Nathan Sobo
dffe0ea058
Reintroduce menu-related platform callbacks
2023-12-05 09:23:24 -07:00
Marshall Bowers
4cb4033a36
Merge branch 'main' into editor2_tests
2023-12-04 14:09:23 -05:00
Marshall Bowers
b212aab00d
Add support for copying diagnostic messages to the clipboard ( #3489 )
...
This PR adds support for copying diagnostics messages to the clipboard.
This was already working, but we were missing implementations
clipboard-related methods in the `TestPlatform` that were causing the
tests to fail when the copying functionality was added.
Release Notes:
- N/A
2023-12-04 14:08:05 -05:00
Nate Butler and Marshall Bowers
50fe683305
Fix typos
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com >
2023-12-04 11:28:22 -05:00
Piotr Osiewicz and Antonio
b5924d6b11
Add simulate_window_resize.
...
Fixes up tests for movement in editor/scrolling.
Co-authored-by: Antonio <antonio@zed.dev >
2023-12-04 17:27:48 +01:00
Nate Butler and Marshall Bowers
80ae640060
Add additional cursors to gpui2
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com >
2023-12-04 11:20:41 -05:00
Piotr Osiewicz
be509a5ce0
test_clipboard
2023-12-01 20:50:30 +01:00
Piotr Osiewicz and Antonio
e0ccaa60ff
editor tests: Reintroduce block_on_ticks.
...
Co-authored-by: Antonio <antonio@zed.dev >
2023-12-01 17:24:47 +01:00
Piotr Osiewicz
a40a5fb212
Revert "editor tests: Reintroduce block_on_ticks."
...
This reverts commit aed11ee8cb .
2023-12-01 17:24:20 +01:00
Piotr Osiewicz and Antonio
aed11ee8cb
editor tests: Reintroduce block_on_ticks.
...
Co-authored-by: Antonio <antonio@zed.dev >
2023-12-01 17:22:12 +01:00
Max Brunsfeld
cb11c1282c
Re-introduce active path tracking in workspace
2023-11-30 14:58:14 -08:00
Max Brunsfeld
a003a91212
Restore auto-save on focus change, re-enable workspace tests
2023-11-30 14:45:27 -08:00
Antonio Scandurra and Julia
600b564bbf
Introduce surface rendering
...
Co-Authored-By: Julia <julia@zed.dev >
2023-11-28 16:47:31 +01:00
Conrad Irwin
47b4d9942f
Fix panic on quit
2023-11-27 15:33:47 -07:00
Conrad Irwin
624bd0a05a
Collab ui2 ( #3357 )
...
* Clickable context menus & movable panels – what will they think of
next?!
Release Notes:
- N/A
2023-11-17 13:33:18 -07:00
Conrad Irwin
9d742b90c3
Allow you to click on a context menu item
2023-11-17 11:57:51 -07:00
Nathan Sobo
2fb13cf1ca
Separate WrappedLines from ShapedLines ( #3350 )
...
ShapedLines are never wrapped, whereas WrappedLines are optionally
wrapped if they are associated with a wrap width. Originally, when
rewriting GPUI, I tried to combine everything because wrapping is
inherently optional for the Text element, but we have a bunch of APIs
that don't make sense on a line that may wrap, so we need a distinct
type for that case.
This is a precursor to implementing clickable links in markdown. I
noticed multiple places where we were confused about whether or not the
line was wrapped so this felt important.
Release Notes:
- N/A
2023-11-16 23:20:35 -07:00
Nathan Sobo
9558da8681
Separate WrappedLines from ShapedLines
...
ShapedLines are never wrapped, whereas WrappedLines are optionally wrapped if
they are associated with a wrap width. I tried to combine everything because
wrapping is inherently optional for the Text element, but we have a bunch of
APIs that don't make sense on a line that may wrap, so we need a distinct type
for that case.
2023-11-16 23:10:51 -07:00
Conrad Irwin
6d4276ea5f
Merge branch 'main' into collab_ui2
2023-11-16 22:08:42 -07:00
Max Brunsfeld and Nathan Sobo
f3b6719c76
Rename both PlatformDispatcher::poll and Executor::run_step to 'tick'
...
Co-authored-by: Nathan Sobo <nathan@zed.dev >
2023-11-16 19:58:26 -08:00
Max Brunsfeld
6397c05835
Add the ability to deprioritize specific labeled tasks in tests
2023-11-16 15:54:00 -08:00
Conrad Irwin
9456f716c2
Only send one right click event
2023-11-16 15:30:53 -07:00
Conrad Irwin
91b54b352b
Add command palette tests and simulate_keystrokes
2023-11-14 23:22:51 -07:00
8de8615176
Fix uncached raster_bounds computation and font selection
...
Co-authored-by: Nathan Sobo <nathan@zed.dev >
Co-authored-by: Mikayla <mikayla@zed.dev >
2023-11-14 17:19:10 -08:00
Max Brunsfeld
ca63a99736
Enable tests in project panel 2 ( #3325 )
2023-11-14 15:02:51 -08:00
Max Brunsfeld
860959fe13
Implement simulated prompts in TestPlatform
2023-11-14 14:56:50 -08:00
Mikayla
62fc0b2100
Remove unnescessary unimplemented
2023-11-14 12:12:02 -08:00
Mikayla and conrad
a4e9fea133
WIP
...
co-authored-by: conrad <conrad.irwin@zed.dev >
2023-11-13 15:53:04 -08:00
Kirill Bulatov and Conrad
dbd26ac651
Make inlay hint cache tests pass
...
Co-Authored-By: Conrad <conrad.irwin@gmail.com >
2023-11-13 18:25:21 +02:00
Kirill Bulatov
e257f7d0b1
Ignore tests for now
2023-11-13 15:02:24 +02:00
Max Brunsfeld
277fbda356
Fix vertical position in first_rect_for_character_range
2023-11-08 17:27:32 -08:00
Max Brunsfeld and Marshall
1a37d9edc6
Register text input handlers via new element hook
...
Provide element bounds to the input handler's `bounds_for_rect` method.
Co-authored-by: Marshall <marshall@zed.dev >
2023-11-08 15:48:55 -08:00
Mikayla
9b30f490c7
Merge branch 'main' into add-collab-tests
2023-11-08 09:57:08 -08:00
Mikayla
3050c440f4
Merge branch 'main' into add-collab-tests
2023-11-08 09:41:57 -08:00
Antonio Scandurra and Nathan
727fb4fbff
Use a consistent clipping strategy for drawing all the primitives
...
Co-Authored-By: Nathan <nathan@zed.dev >
2023-11-08 17:29:05 +01:00
Antonio Scandurra and Piotr
6a0789c88e
Don't alpha blend when rasterizing paths
...
Co-Authored-By: Piotr <piotr@zed.dev >
2023-11-08 12:04:25 +01:00