Conrad Irwin
deb68152ef
collab ui2 ( #3339 )
...
- Move placeholder titlebar render to collab_ui
Release Notes:
- N/A
2023-11-15 16:21:52 -07:00
Conrad Irwin
71bc5c962a
Move placeholder titlebar render to collab_ui
2023-11-15 16:09:21 -07:00
Conrad Irwin
50a35ed12a
Add collab_ui2
2023-11-15 16:08:03 -07:00
Conrad Irwin
6fa500bc84
Leaky, but better, test abstraction ( #3337 )
...
Make test view creation a bit more ergonomic
Release Notes:
- N/A
2023-11-15 14:09:02 -07:00
Conrad Irwin
5a78d0f94f
Leaky, but better, test abstraction
2023-11-15 14:01:10 -07:00
Conrad Irwin
942b54fdd1
FileFinder tests ( #3336 )
...
Also including:
* Fixes for focus when closing the last item in a pane
* Workspace#active_item_as::<Editor>()
* cx.simulate_input()
Release Notes:
- N/A
2023-11-15 13:24:34 -07:00
Conrad Irwin
1699d61248
FileFinder tests
2023-11-15 13:16:28 -07:00
Antonio Scandurra
5981db47e3
Clear the state of keystroke matchers when focus changes ( #3335 )
...
Release Notes:
- N/A
2023-11-15 20:41:01 +01:00
Antonio Scandurra and Nathan Sobo
7d8b7d03e9
Avoid unnecessary call to with_element_id in RenderViewWith
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2023-11-15 20:12:30 +01:00
Antonio Scandurra and Nathan Sobo
620093c116
Clear the state of keystroke matchers when focus changes
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2023-11-15 20:11:07 +01:00
Antonio Scandurra
3243bab5e4
Show fold indicators ( #3334 )
...
Release Notes:
- N/A
2023-11-15 20:10:24 +01:00
Antonio Scandurra
f8a570e596
Fix panic when painting blocks
2023-11-15 20:02:35 +01:00
Antonio Scandurra and Nathan Sobo
bef24626c8
Don't use Mutex or Arc now that app state is not Send
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2023-11-15 18:50:34 +01:00
Antonio Scandurra and Nathan Sobo
356b0f81d9
Move render_view into View::render_with
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2023-11-15 18:50:09 +01:00
Joseph T. Lyons
b904ff7438
v0.114.x dev
2023-11-15 12:47:40 -05:00
Antonio Scandurra and Nathan Sobo
da3c097afe
Fix clicking on code action and fold indicators
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2023-11-15 18:29:53 +01:00
Antonio Scandurra and Nathan Sobo
7499613cd9
Handle clicking folded ranges
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2023-11-15 18:19:26 +01:00
Antonio Scandurra and Nathan Sobo
ab975210e3
Return a Fold struct when querying the FoldMap
...
This contains a new `id` field that lets us distinguish among folds.
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2023-11-15 17:09:59 +01:00
Conrad Irwin
409cda564d
Add command palette tests and simulate_keystrokes ( #3330 )
...
Release Notes:
- N/A
2023-11-15 08:00:41 -07:00
Kirill Bulatov
1996dc7e19
More detailed errors when opening files ( #3333 )
...
Release Notes:
- N/A
2023-11-15 16:31:48 +02:00
Kirill Bulatov
630e608e56
More detailed errors when opening files
2023-11-15 16:20:00 +02:00
Antonio Scandurra
e5e36803b6
Render fold indicators in the gutter
2023-11-15 14:07:37 +01:00
Antonio Scandurra
98df662d47
Introduce rename in editor2 ( #3331 )
...
Release Notes:
- N/A
2023-11-15 11:15:08 +01:00
Antonio Scandurra
b68d2d2484
Fix formatting
2023-11-15 11:07:32 +01:00
Antonio Scandurra
7d1999d39f
Fix focus management on editor when renaming
2023-11-15 11:05:09 +01:00
Antonio Scandurra
6930a12d24
Extract out a register_actions function
2023-11-15 09:53:32 +01:00
Antonio Scandurra
4cec3b821e
Merge remote-tracking branch 'origin/main' into editor2-rename
...
# Conflicts:
# crates/editor2/src/editor.rs
# crates/editor2/src/element.rs
# crates/gpui2/src/style.rs
2023-11-15 09:51:33 +01:00
Antonio Scandurra
23b886b429
Introduce gpui::render_view
2023-11-15 09:45:23 +01:00
Antonio Scandurra
b086285a00
Don't return Result from TextStyle::highlight
2023-11-15 09:10:46 +01:00
Conrad Irwin
c8b3096c34
Fix test
2023-11-14 23:47:08 -07:00
Conrad Irwin
4da07b9274
Add command palette tests and simulate_keystrokes
2023-11-14 23:22:51 -07:00
Nathan Sobo
06fe1aeb06
Fix click events by notifying when we assign pending_mouse_down ( #3329 )
...
We need to notify when we set the pending mouse down so we attach the
mouse up event listener before the mouse button is released.
Release Notes:
- N/A
2023-11-14 19:55:23 -07:00
Nathan Sobo
7e84b73a3a
Document contexts
2023-11-14 19:52:51 -07:00
Nathan Sobo
ac0bae0e5e
Fix click events by notifying when we assign pending_mouse_down
2023-11-14 19:22:41 -07:00
Max Brunsfeld
85016cea3e
Fix uncached raster_bounds computation and font selection ( #3328 )
...
This fixes some slowness we noticed when scrolling an editor in `zed2`.
2023-11-14 17:27:12 -08:00
7ecd51e1ae
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
Mikayla Maki
d73ac00c64
Simplify element types ( #3318 )
...
This PR does away with the extra type parameters on Div and instead
introduces two wrapper elements, `Stateful` and `Focusable`. All of the
interactivity is stored on `Interactivity` and `InteractiveState`, which
is stored on the base element. The wrappers simply control what methods
are available to call.
Not sure this is fully working, but a smoke test does work.
/cc @as-cii @ConradIrwin
Release Notes:
- N/A
2023-11-14 16:03:20 -08:00
Mikayla
bcce643172
remove dbg
2023-11-14 15:57:23 -08:00
Mikayla
2636da3680
Merge branch 'element-types' of github.com:zed-industries/zed into element-types
2023-11-14 15:55:53 -08:00
Mikayla
7d62f43366
Merge branch 'main' into element-types
2023-11-14 15:49:10 -08:00
Mikayla Maki
6f46f73f98
Not working yet file-finder2 ( #3321 )
...
Porting file_finder
Release Notes:
- N/A
2023-11-14 15:22:59 -08:00
Conrad Irwin
37b4e9f922
Abandon ship
2023-11-14 16:17:24 -07:00
Nathan Sobo and Julia
a413920b00
Return an id from Element::element_id instead of calling cx.with_element_id
...
Co-Authored-By: Julia <julia@zed.dev >
2023-11-14 16:05:28 -07:00
Max Brunsfeld
3b59f4c242
Enable tests in project panel 2 ( #3325 )
2023-11-14 15:02:51 -08:00
Max Brunsfeld
540ee65438
Implement simulated prompts in TestPlatform
2023-11-14 14:56:50 -08:00
Mikayla
2f92e4ff1b
WIP
2023-11-14 14:48:34 -08:00
Max Brunsfeld
2debf7cb9f
Project panel: detect filename editor blur via an editor event
2023-11-14 14:02:28 -08:00
Nate Butler
803a0567e4
Set Pane Size ( #3327 )
...
[[PR Description]]
Set the size of panes to their `size`.
Release Notes:
- N/A
2023-11-14 16:57:09 -05:00
Nate Butler
3c1851a2bd
Set Pane Size
2023-11-14 16:47:52 -05:00
Conrad Irwin
07e3bcb6b2
In the middle of stuff
2023-11-14 14:38:23 -07:00