Conrad Irwin
9ce7395b74
Restore impl_actions! and remove derive(Action)
2023-12-10 19:33:38 -07:00
Conrad Irwin
62d6a85a71
Restore namespace parameter to actions!
( #3577 )
...
This does not yet fix `derive(Action)`, but will conflict with a lot so
wanted to merge quickly.
Although automatically deriving the namespace worked in many situations,
it was
unclear what to do with nested modules. Vim wanted all actions to be
registered
under vim, while collab_ui wanted one namespace per action.
It seems better to make the implicit explicit, and give the flexibility
to hide
implementation details from the end-users.
Release Notes:
- N/A
2023-12-09 15:27:17 -07:00
Conrad Irwin
4290c67b6a
Restore namespace parameter to actions!
...
This does not yet fix `derive(Action)`, but will conflict with a lot so
wanted to merge quickly.
2023-12-09 15:18:31 -07:00
Max Brunsfeld
7b722c326f
Paint code-action/fold buttons above the gutter
2023-12-09 11:41:40 -08:00
Conrad Irwin
a4ea7bf928
More code written, similar lack of workingness so far
2023-12-08 17:45:17 -07:00
Mikayla
fd34d1da31
Add back semi-funcitonal pane resizing code
2023-12-08 16:29:42 -08:00
Marshall Bowers
cf42d95af6
Use the diff status colors defined in the theme ( #3569 )
...
This PR updates the diff status colors to use the ones defined in the
theme instead of placeholder colors.
Release Notes:
- N/A
2023-12-08 17:41:11 -05:00
Conrad Irwin
32837d67be
vim2 compiling (but mostly commented out)
2023-12-08 18:47:14 +00:00
Antonio Scandurra
9b0bea32ed
🎨
2023-12-08 14:24:58 +01:00
Antonio Scandurra
28dfd3ab43
Paint scrollbars
...
We still need to wire up mouse listeners.
2023-12-08 14:17:38 +01:00
Piotr Osiewicz
0c23e6738b
Barebones project search (no UI, but the crate compiles)
2023-12-07 14:36:45 +01:00
Antonio Scandurra
7842fdeb32
Fix confirming rename not working on editor2
2023-12-07 12:54:28 +01:00
Joseph T. Lyons
2a68a6171a
Remove remnants from conflict resolution ( #3528 )
...
Fixes a couple of things that slipped through when going through the
last merge conflict
Release Notes:
- N/A
2023-12-06 23:44:49 -05:00
Joseph T. Lyons
d2362d7f12
Merge branch 'main' into feedback-2
2023-12-06 23:16:54 -05:00
Mikayla
fd31e429f5
Merge branch 'main' into terminal-element
2023-12-06 15:20:04 -08:00
Mikayla
12e7f61f62
Fix a porting bugs for terminal2
...
co-authored-by: Nathan <nathan@zed.dev>
2023-12-06 15:11:49 -08:00
Joseph T. Lyons
46c998ca8d
WIP
2023-12-06 17:27:10 -05:00
Max Brunsfeld
89c8a7c242
Enable buffer font size adjustment in zed2
...
Co-authored-by: Nathan <nathan@zed.dev>
2023-12-06 13:52:33 -08:00
Kirill Bulatov
5644815c4c
Use a better name for zed2 inlay style field
2023-12-06 22:06:30 +02:00
Kirill Bulatov
ec798e6574
Pass proper theme colors for inlays and suggestions ( #3517 )
...
<img width="1728" alt="image"
src="https://github.com/zed-industries/zed/assets/2690773/f6f1e24f-71fe-4a2e-9bcf-9e98861c0da4 ">
![image](https://github.com/zed-industries/zed/assets/2690773/8434d8a1-ee7e-49c1-9e88-362363225d96 )
Now inlays are visible in all zed2 themes, but
* always have a blue color which is the same as some theme colors
* not other hint-related style changes like font width, background, etc.
seem to exist in the theme, ergo not propagated.
In general though, people want those style changes applied to their
hints, so we might want to do something about it later.
I've left a `// todo!("what about the rest of the highlight style parts
for inlays and suggestions?")` in the corresponding places for that.
Release Notes:
- N/A
2023-12-06 21:54:41 +02: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
Kirill Bulatov
f76e1cfd91
Pass proper theme colors for inlays and suggestions
2023-12-06 21:48:39 +02:00
Nathan Sobo
ac07e230fa
Document geometry
2023-12-06 12:28:44 -07:00
Joseph T. Lyons
4863c9ac25
WIP
2023-12-06 14:13:44 -05:00
Antonio Scandurra
7e2ff63270
Paint blocks on top of the editor
...
This ensures blocks get mouse events before the editor beneath
them.
Co-Authored-By: Marshall <marshall@zed.dev>
2023-12-06 19:15:09 +01:00
Antonio Scandurra
14def2a1a3
Merge remote-tracking branch 'origin/main' into assistant-2
...
# Conflicts:
# crates/ui2/src/components/icon.rs
2023-12-06 18:18:58 +01:00
Antonio Scandurra
7c9e2f6b7d
Introduce app menus in zed2
( #3511 )
...
Release Notes:
- N/A
2023-12-06 18:17:02 +01:00
Marshall Bowers
8f1c74b8bc
Factor out LabelLike
to share common label styles ( #3510 )
...
This PR factors out a new `LabelLike` component to share common styles
between the `Label` and `HighlightedLabel` components.
Release Notes:
- N/A
2023-12-06 11:17:12 -05:00
Piotr Osiewicz
e9002ab10a
Merge branch 'main' into app-menus
2023-12-06 16:34:55 +01:00
Piotr Osiewicz
d09dfe01f5
Wire up global actions
...
Added an ephemeral root node so that even if there's no window/focused handle we still have something to dispatch to.
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-06 16:15:53 +01:00
Antonio Scandurra
9eb98122ec
Merge remote-tracking branch 'origin/main' into assistant-2
2023-12-06 12:53:02 +01:00
Marshall Bowers
5660c8f655
Add missing semicolon
2023-12-05 20:24:43 -05:00
Marshall Bowers
ed31d36ac1
Wire up NewWindow
action
2023-12-05 20:24:01 -05:00
Marshall Bowers
d8757845a9
Wire up NewFile
action
2023-12-05 20:21:35 -05:00
Nathan Sobo
d2fe9f8f9b
Merge remote-tracking branch 'origin/main' into app-menus
2023-12-05 16:54:38 -07:00
Nathan Sobo
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
Max Brunsfeld
5b6fd3ac1d
Implement following and more collaboration panel features in zed2 ( #3504 )
2023-12-05 13:59:15 -08:00
Max Brunsfeld
863222edc5
Get following working
...
Restore a single event type on Item trait, so that the workspace can
subscribe to it and handle following events.
2023-12-05 12:57:23 -08:00
Marshall Bowers
e0ca7f844a
Merge branch 'main' into pane-toolbar-tabbar-ui
2023-12-05 14:15:18 -05:00
Nate Butler
27703a3279
Update tabs rendering, fix tab spacing bug
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-05 14:04:12 -05:00
Antonio Scandurra
d86da04584
WIP
2023-12-05 19:27:15 +01:00
Mikayla
8d57d6ca6f
Merge branch 'main' into terminal-element
2023-12-05 09:33:46 -08:00
Piotr Osiewicz
d433da1e70
Editor2 tests ( #3486 )
...
Release Notes:
- N/A
2023-12-05 14:52:20 +01:00
Piotr Osiewicz
001ce47a0c
Fix up the inlay_hint_cache proper (document the bug around inserting at inlay hint).
...
Co-authored-by: Antonio <antonio@zed.dev>
Co-authored-by: Kirill <kirill@zed.dev>
2023-12-05 14:10:10 +01:00
Piotr Osiewicz
dffe323e73
Fix up test_lkayout_with_placeholder_text_and_blocks (uncomment last standing assert)
2023-12-05 11:31:17 +01:00
Piotr Osiewicz
590238bcca
test_layout_with_placeholder_text_and_blocks (incomplete, one assert commented out)
...
We need to wire up a field from element state
2023-12-05 11:28:25 +01:00
Piotr Osiewicz
caa5fccbc4
test_wrapped_invisibles_drawing and test_invisibles_dont_appear_in_certain_editors
2023-12-05 11:11:06 +01:00
Piotr Osiewicz
1dd6625dd4
test_all_invisibles_drawing
2023-12-05 11:09:23 +01:00
Piotr Osiewicz
ee695bbb34
Fix up test_vim_visual_selections
2023-12-05 10:59:09 +01:00
Piotr Osiewicz
9695ea1017
test_shape_line_numbers
2023-12-05 10:29:09 +01:00
Piotr Osiewicz
e0ec5032e9
Fix highlight tests (and a quirky behaviour where the highlights were not dismissed when user clicks on something that's not a brace)
2023-12-05 10:17:27 +01:00
Piotr Osiewicz
948c065f86
test_copilot_multibuffer
2023-12-05 10:17:27 +01:00
Max Brunsfeld
ae6ddceb67
Enable more collab UI features ( #3496 )
...
* Current Call section of the collab panel
* Improve the collab titlebar
* Add basic UI for following
Following only partially works, but the UI for following is now in
place.
2023-12-04 18:01:11 -08:00
Max Brunsfeld
63667ecf6f
Start bringing back the current call section of the collab panel
...
Co-authored-by: Nathan <nathan@zed.dev>
2023-12-04 15:46:56 -08:00
Conrad Irwin
1c9b984738
Remove cx param
2023-12-04 23:35:31 +00:00
Conrad Irwin
c82fea375d
Dispatch actions on focused node
...
Allows us to implement context menu matching nicely
2023-12-04 22:58:04 +00: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
Piotr Osiewicz
a3e4559b0e
Fix git test compilation
2023-12-04 17:57:43 +01:00
Marshall Bowers
26c797c358
Format code
2023-12-04 11:57:10 -05:00
Marshall Bowers
fb352af35c
Merge branch 'main' into diagnostics-style-2
2023-12-04 11:56:55 -05:00
Nate Butler
e928ed44a0
Mark copy button as incomplete
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-04 11:53:46 -05:00
Nate Butler
23626aa902
Update diagnostic style
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-04 11:50:26 -05:00
Nate Butler
4ee4e4e8d8
Fix ci error – Copy to clipboard isn't implemented in tests
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-04 11:41:31 -05:00
Piotr Osiewicz
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
Piotr Osiewicz
68d309e79c
Fix disparity between editor2 and edito1 wrt copilot completions.
...
Fixes test test_copilot.
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-04 16:39:40 +01:00
Piotr Osiewicz
24b08921fe
Revert "fix display map tests"
...
This reverts commit 0f7fc8c1a0
.
2023-12-04 15:22:29 +01:00
Piotr Osiewicz
ff734d494f
uncomment and augment mouse_context_menu tests
2023-12-04 15:06:56 +01:00
Piotr Osiewicz
3b1a0652ae
inlay hints: Relax the test condition.
...
We've investigated another spurious failure, this time with test_multiple_excerpts_large_multibuffer; sadly it didn't really get us anywhere, so for now we're relaxing an assert.
Co-authored-by: Kirill <kirill@zed.dev>
2023-12-04 14:50:10 +01:00
Piotr Osiewicz
b3e741b397
Fix up test_highlighted_ranges
...
Returned highlights were okay, but the test was trying to normalize the output by sorting the highlights by color. The ordering is different between gpui1 Color and gpui2 Hsla.
2023-12-04 13:47:50 +01:00
Piotr Osiewicz
1a5f6f604b
Uncomment & fix up test_transpose
2023-12-04 13:42:48 +01:00
Piotr Osiewicz
0f7fc8c1a0
fix display map tests
...
These tests failed due to an indefinite hang in buffer.condition in the following code:
\`\`\`rust
let buffer = cx
.add_model(|cx| Buffer::new(0, cx.model_id() as u64, text).with_language(language, cx));
buffer.condition(cx, |buf, _| !buf.is_parsing()).await;
`\`\`
In both gpui1 and gpui2 \`.with_language\` spawns a task that notifies the context once it's done. The \`condition\` waits for notifications to be raised. The gist of the problem was that in gpui2, the spawned task was scheduled straight away, so we never really saw the notification with \`condition\`, causing us to wait indefinitely. This is probably a difference in test between schedulers in gpui1 and gpui2, but I kind of sidestepped the issue by spawning a condition before firing off a parsing task with \`set_language\`.
2023-12-04 13:14:03 +01:00
Piotr Osiewicz
9ffe78d264
Fix up random wrap map test
2023-12-04 12:10:01 +01:00
Conrad Irwin
6a5b5f022d
Language Selector 2 working!
2023-12-01 21:23:20 -07:00
Mikayla
6730ff3624
Merge branch 'main' into terminal-element
2023-12-01 16:21:38 -08:00
Nate Butler
2bf48872b6
Progress on diagnostic multibuffer
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-01 16:53:09 -05:00
Nate Butler
c07455efa7
Update path header style
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-01 15:53:17 -05:00
Nate Butler
89aa6a3726
Re-add diagnostic headers
2023-12-01 15:30:01 -05:00
Piotr Osiewicz
be509a5ce0
test_clipboard
2023-12-01 20:50:30 +01:00
Piotr Osiewicz
0a1765b01f
test_following_with_multiple_excerpts (passes)
2023-12-01 20:32:12 +01:00
Piotr Osiewicz
a985b7aab4
test_following (passes :))
2023-12-01 20:25:47 +01:00
Piotr Osiewicz
20ae58eddd
Bunch of new tests
2023-12-01 20:23:34 +01:00
Piotr Osiewicz
9408eecb6e
test_navigation_history (pass)
2023-12-01 20:17:41 +01:00
Piotr Osiewicz
2ab84b81da
test_edit_events
2023-12-01 20:16:40 +01:00
Piotr Osiewicz
e821e1fc35
Display map tests (3 flaky tests for chunks)
2023-12-01 20:14:14 +01:00
Piotr Osiewicz
237efc841e
Another batch of tests
2023-12-01 19:39:53 +01:00
Piotr Osiewicz
1c52b936bc
Uncomment flaky tests
2023-12-01 19:21:30 +01:00
Piotr Osiewicz
53f3f960d2
Another batch of tests
2023-12-01 18:43:44 +01:00
Piotr Osiewicz
4c4ec221af
Uncomment a bunch of tests in the editor
2023-12-01 18:11:27 +01:00
Piotr Osiewicz
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
aed11ee8cb
editor tests: Reintroduce block_on_ticks.
...
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-01 17:22:12 +01:00
Julia
13f4cc563c
Merge branch 'main' into zed2-breadcrumbs
2023-12-01 11:02:34 -05:00
Antonio Scandurra
5fefc121bf
Add mouse context menu to editor2
...
Co-Authored-By: Piotr <piotr@zed.dev>
2023-12-01 16:01:56 +01:00
Antonio Scandurra
f0c205be5d
Respond to modifiers changed event in editor2 and set cursor
2023-12-01 14:26:49 +01:00
Antonio Scandurra
f0bc4a04bd
Uncomment git gutter painting
2023-12-01 13:45:14 +01:00
Antonio Scandurra
1abc876c15
Merge remote-tracking branch 'origin/main' into no-more-todos-in-editor
...
# Conflicts:
# crates/editor2/src/items.rs
2023-12-01 12:40:48 +01:00
Antonio Scandurra
8e4f2fb25a
Remove all todos in Editor's Item implementation
2023-12-01 12:32:30 +01:00
Antonio Scandurra
faa896343b
Register NewFile and NewFileInDirection from Editor
2023-12-01 12:11:54 +01:00
Antonio Scandurra
a8a5785ec5
Re-enable opening excerpts in Editor
2023-12-01 12:03:21 +01:00