Conrad Irwin
c0d85dc1dd
Fix text wrapping when a child of a v_stack() ( #3362 )
...
Previously text that was rendered in a flex-column would reserve the
correct
amount of space during layout, and then paint itself incorrectly.
Release Notes:
- N/A
2023-11-19 11:37:31 -07:00
Piotr Osiewicz
b67193e322
ui2: Do not enable 'stories' feature by default. ( #3363 )
...
This cuts down LLVM IR size from 3 million lines to 700k in debug build.
This then leads to ~3s compile time in debug build (without incremental
on ui itself), as opposed to 10.5s on main.
Release Notes:
- N/A
2023-11-19 12:11:42 +01:00
Piotr Osiewicz
e83a297229
Move binding function back into keybinding module
2023-11-19 11:54:46 +01:00
Piotr Osiewicz
31336b0b7d
ui2: Do not enable 'stories' feature by default.
...
This cuts down LLVM IR size from 3 million lines to 700k in debug build.
This then leads to ~3s compile time in debug build (without incremental on ui itself), as opposed to 10.5s on main.
2023-11-19 11:44:33 +01:00
Conrad Irwin
c5738a509c
delint
2023-11-18 22:20:50 -07:00
Conrad Irwin
0711121586
Add some test cases
2023-11-18 22:16:28 -07:00
Nathan Sobo
33cd6f520a
Clean compile with redesigned element traits
2023-11-18 21:51:47 -07:00
Conrad Irwin
cf47ed2c5f
Fix wrapping when parent has a max_width
...
(Also avoid re-wrapping text we already wrapped)
2023-11-18 21:31:16 -07:00
Conrad Irwin
242a0b85b5
Update Taffy to latest main
2023-11-18 21:30:33 -07:00
Conrad Irwin
7172ce37b1
Fix text wrapping when a child of a v_stack()
2023-11-18 20:35:22 -07:00
Nathan Sobo
0673606de8
WIP
2023-11-18 20:22:43 -07:00
Nathan Sobo
adc355a1e6
Element refinement passing on ui2
2023-11-18 20:05:47 -07:00
Mikayla Maki
a73db6bfca
Fix more bundling errors ( #3361 )
...
Release Notes:
- N/A
2023-11-18 10:59:35 -08:00
Mikayla
ede7656f02
please work
2023-11-18 10:46:35 -08:00
Mikayla Maki
30b7da0e4a
N/t6 ( #3360 )
...
[[PR Description]]
- Fix broken pane group spacing
- Work on diagnostics styling (still wip)
Release Notes:
- N/A
2023-11-17 23:29:18 -08:00
Nathan Sobo
be33f000e2
WIP: Lots of errors, starting on resurrecting derive Element
2023-11-18 00:27:40 -07:00
Mikayla
55dbcf2039
Remove unused imports
2023-11-17 23:14:14 -08:00
Nate Butler
f9804feefa
Remove flex_1 from bottom dock to fix pane group spacing
2023-11-18 02:06:51 -05:00
Nathan Sobo
23ffce9fbe
WIP: Work toward eliminating Component trait
...
This refactor enhances the overall design by promoting reusable and composable UI component structures within the Zed project codebase.
2023-11-18 00:03:23 -07:00
Nathan Sobo
2515bbf990
Move self in Element::paint
...
Remove mutable state borrows in favor of state ownership in render processes to streamline element rendering.
2023-11-17 23:32:55 -07:00
Mikayla
461fa8d71e
Testing the auto-updater
2023-11-17 22:17:42 -08:00
Mikayla Maki
e1285b9780
Add nightly release channel for zed2 ( #3355 )
...
Release Notes:
- N/A
2023-11-17 22:12:18 -08:00
Nate Butler
d6f173866e
Use muted color for fold indicators
2023-11-18 01:02:40 -05:00
Nate Butler
b218ab4755
Remove default hover state for icon buttons
2023-11-18 01:02:21 -05:00
Nate Butler
101fe7fbb5
Update diagnostic status bar tool
2023-11-18 00:54:01 -05:00
Mikayla
fd6e47c167
Fix auto update command
2023-11-17 21:52:49 -08:00
Nate Butler
9969caf513
Style empty diagnostics as an editor
2023-11-17 23:39:40 -05:00
Nathan Sobo
0069dd5ce6
WIP
2023-11-17 20:05:37 -07:00
Mikayla
eb2e9a59b7
Fix bundling again
2023-11-17 18:27:11 -08:00
Mikayla
70d0421b3c
Fix bundle script
2023-11-17 17:44:41 -08:00
Mikayla
dd283b471a
Add autoupdate2
...
co-authoredby: max@zed.dev
2023-11-17 15:48:32 -08:00
Max Brunsfeld
a03d062120
Make the commit sha availabe in the app, via a global
...
Co-authored-by: Mikayla <mikayla@zed.dev>
Co-authored-by: Kirill <kirill@zed.dev>
2023-11-17 14:52:43 -08:00
Max Brunsfeld
a8bea41ad8
Put release channel back to dev
2023-11-17 14:31:49 -08:00
Julia
189ddf9380
Merge branch 'main' into unborked-git-zed2-diagnostics-view
2023-11-17 16:43:29 -05:00
Julia
62297a56c8
Render diagnostics header and summary
2023-11-17 16:32:35 -05:00
Julia
24c9bbf461
Render a more correct diagnostic indicator status panel button
2023-11-17 16:32:35 -05:00
Julia
3655a96e54
Merge branch 'main' into unborked-git-zed2-diagnostics-view
2023-11-17 16:32:35 -05:00
Julia
967ef9d414
Render diagnostics view and such a bit more
2023-11-17 16:32:35 -05:00
Julia
c6d22af416
Get diagnostic2 tests building and running
2023-11-17 16:32:35 -05:00
Julia
a464a7da2a
Merge branch 'main' into unborked-git-zed2-diagnostics-view
2023-11-17 16:32:35 -05:00
Julia
f4eb219c75
Get diagnostics view almost building in the zed2 world
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2023-11-17 16:32:35 -05:00
Conrad Irwin
ec3bb0f090
Focus workspace on launch
...
Fixes action dispatch when no focus is there.
2023-11-17 14:11:39 -07:00
Kirill Bulatov
12b59daa1e
Allow to exclude files from worktrees ( #3356 )
...
* Part of https://github.com/zed-industries/community/issues/70
Allows to fully remove from Zed certain files or file groups: no items
will be scanned or added into worktrees, so nothing will be shown in
project tree, project search and go to file would not see those,
corresponding FS events will be ignored.
One exclusion is .git files: those are still not shown or accessible by
default, yet tracked in the worktrees.
By default, is configured to
```json
"file_scan_exclusions": [
"**/.git",
"**/.svn",
"**/.hg",
"**/CVS",
"**/.DS_Store",
"**/Thumbs.db",
"**/.classpath",
"**/.settings"
],
```
* In addition, contains code preparations for "search in included files"
feature: new SearchOptions variant, search crate and RPC adjustments
Release Notes:
- Added `file_scan_exclusions` section to project settings to completely
ignore certain files in Zed
2023-11-17 23:06:47 +02:00
Mikayla Maki
7a8da8ce11
Adjust the type arrangement on ManagedViews ( #3354 )
...
Made the trait into a blanket-trait impl if you have it's two
constituent pieces (FocusableView and EventEmitter) to remove the
duplicated method. I also changed the struct to an enum for aesthetic
reasons (EventType::EventName feels self documenting to me) and added
some new `cx` APIs utilizing our new powers of dismissal.
Release Notes:
- N/A
2023-11-17 13:04:57 -08:00
Conrad Irwin
a6d6f8a193
shhh ( #3358 )
...
- Fix image errors
Release Notes:
- N/A
2023-11-17 14:01:44 -07:00
Kirill Bulatov
d352a63d9d
Port new workspace logic to gpui2, uncomment most of the workspace2 tests
2023-11-17 22:54:19 +02:00
Mikayla
f44f60c6e6
WIP:
2023-11-17 12:54:16 -08:00
Nathan Sobo
c866c211b5
Make static str and SharedString implement Element
2023-11-17 13:48:01 -07:00
Conrad Irwin
6bfe6fa0e1
Fix image errors
...
* Firstly only log one error per image load, not per frame
* Secondly use an Icon not an image for rendering Icons
2023-11-17 13:47:07 -07:00
Mikayla
149b9d1aa6
Merge branch 'main' into managed-view-adjustment
2023-11-17 12:40:44 -08: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
ceb20dea96
Refactorings
2023-11-17 13:23:12 -07:00
Mikayla
6976af5029
Push some sketches
2023-11-17 12:16:55 -08:00
Kirill Bulatov
616bda85e9
Fix the tests
2023-11-17 21:40:57 +02:00
Kirill Bulatov
2759ed4d00
An attempt to ignore git regularly
2023-11-17 21:40:57 +02:00
Kirill Bulatov
8180938401
Fix most of the TODOs
2023-11-17 21:40:57 +02:00
Kirill Bulatov
6028cd90d4
Retract back to original scanning strategy
...
Do not descend into ignored directories, to avoid tracking their state.
2023-11-17 21:40:57 +02:00
Kirill Bulatov
906db58188
Defer ignored dirs scanning
2023-11-17 21:40:57 +02:00
Kirill Bulatov
30fefa0ef8
Use a better name
2023-11-17 21:40:57 +02:00
Kirill Bulatov
5f468970f0
Fix some of the old tests
2023-11-17 21:40:57 +02:00
Kirill Bulatov
d3ce82e82c
Fix the new test
2023-11-17 21:40:57 +02:00
Kirill Bulatov
cafeba103b
Exclude ignored opened buffers from search
2023-11-17 21:40:57 +02:00
Kirill Bulatov
ce2cfc6035
Fix the ! bug, better test draft
2023-11-17 21:40:57 +02:00
Kirill Bulatov
26f7e66b49
Add default scan excluded files settings
2023-11-17 21:40:56 +02:00
Kirill Bulatov
c52fe2f536
Move toggle ignored button into include directories editor
2023-11-17 21:40:56 +02:00
Kirill Bulatov
9373d38434
Rescan worktree on scan exclusions settings change
2023-11-17 21:40:56 +02:00
Kirill Bulatov
1612c90052
More lenient file path matchers
2023-11-17 21:40:56 +02:00
Kirill Bulatov
b8be720490
Fix the bugs
2023-11-17 21:40:56 +02:00
Kirill Bulatov
126e4cce8f
Scan all ignored files by default now
2023-11-17 21:40:56 +02:00
Kirill Bulatov
401f85bed2
Properly ignore elements from configured exceptions
2023-11-17 21:40:56 +02:00
Kirill Bulatov
9072e5a507
Properly set ignore stacks and is_ignored values
2023-11-17 21:40:56 +02:00
Kirill Bulatov
7d97dfa6be
Test and filter data draft
2023-11-17 21:40:56 +02:00
Kirill Bulatov
a5c615ceb4
Pass a new query parameter into the search
2023-11-17 21:40:56 +02:00
Conrad Irwin
eb04160d2d
Dock menu
2023-11-17 12:14:06 -07:00
Conrad Irwin
9d742b90c3
Allow you to click on a context menu item
2023-11-17 11:57:51 -07:00
Mikayla
17d53d0e38
Rename again, add fun cx APIs using new traits
2023-11-17 10:06:41 -08:00
Mikayla
01d9d53f4a
Adjust the type arrangement on ManagedViews
2023-11-17 09:51:11 -08:00
Max Brunsfeld
55548ca61a
Fix underspecified assertions in new tests for file reload race
2023-11-17 09:14:31 -08:00
Piotr Osiewicz
3b5754a77e
Clean up tests (they compile now)
2023-11-17 17:23:47 +01:00
Piotr Osiewicz
eb9959a0cf
gpui: notifications now takes an entity instead of a model
2023-11-17 17:23:05 +01:00
Piotr Osiewicz
ae1ebc6858
fixup! Remove dead code (for now).
2023-11-17 17:22:52 +01:00
Piotr Osiewicz
27600b6b8d
Remove dead code (for now).
...
Ensure actions are registed just once (previously some were registered on both Workspace and search bar itself).
2023-11-17 14:42:20 +01:00
Piotr Osiewicz
741e11cc11
Fix up action derive
2023-11-17 13:27:33 +01:00
Piotr Osiewicz
f23cc724d4
chore: cargo fmt
2023-11-17 13:23:42 +01:00
Piotr Osiewicz
dca2dc7b6b
Merge branch 'main' into search2
2023-11-17 13:22:30 +01:00
Piotr Osiewicz
8845f5a183
Clean up warnings
2023-11-17 13:22:07 +01:00
Kirill Bulatov
6680e1e9fe
Create new Zed release channel: nightly
2023-11-17 12:13:32 +02:00
Antonio Scandurra
27cd7b204d
Merge branch 'main' into editor2-autocomplete
2023-11-17 11:03:25 +01:00
Kirill Bulatov
89e44d4901
Remove binary target collisions between zed & zed2
2023-11-17 09:56:28 +02:00
Mikayla
1693718637
Merge branch 'main' into saving-2
2023-11-16 23:11:38 -08:00
Mikayla
9a3cd073c7
Restore a bunch of random workspace stuff
2023-11-16 23:05:28 -08: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
2d1d75f482
+ManagedView
...
And some games with rust traits
2023-11-16 23:02:10 -07:00
Conrad Irwin
2182cb2656
Ooh generics
2023-11-16 22:16:29 -07:00
Conrad Irwin
6d4276ea5f
Merge branch 'main' into collab_ui2
2023-11-16 22:08:42 -07:00
Conrad Irwin
c0ad15756c
More attachment configuration for context menus
2023-11-16 21:59:23 -07:00
Max Brunsfeld
e67c44a562
Fix file-reloading race condition ( #3348 )
...
### Summary
This PR fixes a bug that @as-cii and @osiewicz saw when the on-disk
contents of files changed due to running `git checkout` at the command
line. It caused a buffer's contents to diverge from the file's on disk
contents, but the buffer to show an *unmodified* status.
I've also introduced new APIs on gpui's deterministic executor, which
make it possible to write a test that reliably triggered the bug.
### Details
The bug is triggered by the following sequence of events:
1. A buffer's file changes on disk while the buffer is *unmodified*
2. Zed reloads the new content of the file
3. Before updating the buffer itself, Zed computes a *diff* between the
buffer's current contents, and the newly-loaded contents
4. While this diff is being computed, one of two things happens:
1. the buffer changes on-disk *again*.
2. the user edits the buffer, but undoes the edit, so that the buffer
returns to an unmodified state
The bug itself was caused by a few things:
* The buffer diffing algorithm is pretty slow, because we perform a
character-wise diff
* We previously allowed multiple reload tasks to run concurrently
* When discarding an out-of-date diff, we failed to update parts of the
buffer's state (`saved_fingerprint`) which allow us to recognize that
the buffer's content differs from the file.
It was also difficult to reproduce the problem in tests, because under
deterministic execution, because it was extremely unlikely for other
tasks to make progress *after* a file had been reloaded, but *before*
the disk task has resolved. To help with testing, I introduced a pair of
executor APIs:
`spawn_labeled`, - for spawning a background task with a given *label*
`deprioritize_task` - for forcing tasks with a given label to run
*after* all other concurrent tasks.
I also made the `Model::next_event` test helper method more useful, in
that it no longer runs *until* parked in order to wait for the next
event to occur. It just steps the executor one poll at a time until the
model emits an event.
Release Notes:
- Fixed a bug that caused buffers to report incorrect modified/conflict
status when their buffers changed on disk multiple times in rapid
succession.
2023-11-16 20:19:16 -08:00
Max Brunsfeld
32979f3aca
Rename deprioritize_task -> deprioritize
...
It applies to a family of tasks, not a task.
2023-11-16 20:03:18 -08:00
Max Brunsfeld
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
Conrad Irwin
9547e88d88
TEMP
2023-11-16 19:50:31 -07:00
Conrad Irwin
547888942f
Add storybook3
2023-11-16 19:42:25 -07:00
Mikayla Maki
61bd6bab09
Actions‽ ( #3349 )
...
This PR re-implements our actions with macros instead of a blanket impl.
Release Notes:
- N/A
2023-11-16 18:18:04 -08:00
Mikayla
432572c592
#RemoveThe2
2023-11-16 18:04:35 -08:00
Max Brunsfeld
17b2b112bc
Don't update file's saved mtime when reload is aborted
2023-11-16 18:02:49 -08:00
Mikayla
49d3e1cc4b
Add default derive
2023-11-16 17:39:05 -08:00
Mikayla
4de2c0f7ef
Re-implement actions as derive macros instead of blanket impls
2023-11-16 17:32:02 -08:00
Max Brunsfeld
0bed5e4562
Port buffer reload bug fixes back to gpui1 crates
2023-11-16 16:03:14 -08:00
Max Brunsfeld
5f1acae0d3
Fix race conditions and bugs in Buffer::reload
2023-11-16 16:03:14 -08:00
Max Brunsfeld
89d73f713a
Label the buffer's diff task so it can be deprioritized in tests
2023-11-16 16:03:13 -08:00
Max Brunsfeld
b2451d9dd6
Combine adjacent edits in buffer's diff
2023-11-16 16:03:05 -08:00
Conrad Irwin
074a221e0f
Progress on ContextMenu
2023-11-16 16:59:27 -07:00
Max Brunsfeld
f9650b3111
Don't run until all the way until parked when waiting for a model's next event
2023-11-16 15:54:00 -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
Nate Butler
3223e21d9f
Add dock borders
2023-11-16 16:17:17 -05:00
Nate Butler
9c5f580012
Use Selected
for active IconButtons
2023-11-16 16:17:10 -05:00
Nate Butler
3d8e63b93b
Buttons should always use cursor_pointer
2023-11-16 16:09:11 -05:00
Nate Butler
c2d6d24952
Ensure the titlebar stays large enough even with small ui sizes
2023-11-16 16:01:42 -05:00
Nate Butler
a526f23c81
Add ui_font settings and set default rem size accordingly ( #3346 )
...
[[PR Description]]
- Adds ui_font_family, ui_font_features, ui_font_size to settings and
default settings
- Use the new ui font settings to set the rem size when the workspace is
created.
Release Notes:
- N/A
2023-11-16 15:40:33 -05:00
Conrad Irwin
267e07472d
Checkpoint, MenuHandle can open one
2023-11-16 13:32:19 -07:00
Nate Butler
ffd092a098
Add ui_font_* for tests
2023-11-16 15:30:50 -05:00
Nate Butler
fa9f4a9355
Init rem_size in the workspace at the start of the render
...
Co-Authored-By: Mikayla Maki <mikayla.c.maki@gmail.com>
2023-11-16 13:43:36 -05:00
Mikayla
a0e976599c
Salvage old distributed slice code
2023-11-16 10:32:55 -08:00
Marshall Bowers
b559bfd80f
Parameterize theme2::init
to allow loading just the base theme ( #3345 )
...
This PR adds a parameter to the `theme2::init` method to indicate what
the theme-loading behavior should be.
This allows us to indicate when we want to load all of the additional
built-in user themes (like in the Zed binary and in the storybook), and
when we don't want to load the user themes (like in tests).
We're using an enum over just a `bool` here for clarity at the call
site.
Release Notes:
- N/A
2023-11-16 13:03:30 -05:00
Piotr Osiewicz
f8b91bd0f0
Fix some of the warnings
2023-11-16 18:36:19 +01:00
Conrad Irwin
d782426491
Dismiss tooltips on click
2023-11-16 10:26:09 -07:00
Conrad Irwin
4540f04dbe
Add more detail to panel switcher interaction
2023-11-16 09:57:59 -07:00
Nate Butler
38d0fdc09a
Remove todo
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-11-16 11:42:23 -05:00
Nate Butler
c71e522b4e
Allow users to set UI font properties in their settings
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-11-16 11:37:46 -05:00
Piotr Osiewicz
6b6a30c3da
Merge branch 'main' into search2
2023-11-16 17:16:15 +01:00
Kirill Bulatov
ab0a3f19ab
Add an actual context menu into terminal-2
...
(click the text, not the pane!)
Co-Authored-By: Piotr <piotr@zed.dev>
2023-11-16 16:36:44 +02:00
Antonio Scandurra
c08ce1c3b8
Start rendering autocompletion menu
2023-11-16 14:55:06 +01:00
Antonio Scandurra
781a95d2e3
Add back Completion::documentation
2023-11-16 14:47:45 +01:00
Kirill Bulatov
f638d4ce1d
Add basic context menu element
2023-11-16 14:35:13 +02:00
Kirill Bulatov
0f0b7090b8
Fix more errors in terminal element
2023-11-16 13:10:43 +02:00
Kirill Bulatov
fd61683c46
WIP
2023-11-16 10:40:02 +02:00
Kirill Bulatov
e3465fbcf9
Comment out the terminal view
2023-11-16 10:04:20 +02:00
Kirill Bulatov
a238368296
More compilation fixes
2023-11-16 10:04:18 +02:00
Kirill Bulatov
61d6cb880c
Start porting terminal_element to gpui2
...
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2023-11-16 10:04:03 +02:00
Kirill Bulatov
d89c51135a
Start porting terminal_view to gpui2
...
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2023-11-16 10:04:03 +02:00
Mikayla
9da0b78ead
Merge branch 'main' into tabs-n-splits
2023-11-15 23:41:25 -08:00
Mikayla
c70c0f9ae9
Remove initialize_workspace
2023-11-15 23:11:31 -08:00
Conrad Irwin
74afa62a55
Add Overlay component to gpui2
2023-11-15 23:00:36 -07:00
Conrad Irwin
8c14a8fa95
Merge branch 'main' into collab_ui2
2023-11-15 21:04:47 -07:00
Conrad Irwin
0a9fb3978b
Enable panel switching
2023-11-15 21:01:00 -07:00
Nathan Sobo
e5ada92b7b
Remove initialize from the Element trait ( #3338 )
...
Initially, we imagined registering keyboard handlers in the initialize
phase so we would understand the relationships between focus handles
during the layout pass, which would allow us to assign assign `focus_in`
styles that impact layout.
However, we soon realized that many elements aren't created until paint
time anyway, such as within the uniform list. Since it's impossible to
know prior to paint whether an element contains the focused element, it
makes more sense to eliminate the `focus_in` styling helper.
Release Notes:
- N/A
2023-11-15 19:36:35 -07:00
Mikayla
78cea69172
Add focusable view and restore workspace deserialization. Partially restore split and tab functions
2023-11-15 16:36:43 -08:00
Conrad Irwin
7f70712dac
Uncomment enough to register the panel
2023-11-15 16:44:21 -07:00
Mikayla
e905ababcd
Add back splitting
2023-11-15 15:21:19 -08:00
Conrad Irwin
793fa6e3a4
Move placeholder titlebar render to collab_ui
2023-11-15 16:09:21 -07:00
Conrad Irwin
84bcbf1128
Add collab_ui2
2023-11-15 16:08:03 -07:00
Mikayla
faf93aed4e
checkpoint
2023-11-15 14:17:04 -08:00
Nathan Sobo
4f09633379
Remove focus_in styling helper
2023-11-15 14:17:49 -07:00
Nathan Sobo
c6b374ebc9
Remove initialize method from Element trait
2023-11-15 14:11:19 -07:00
Conrad Irwin
0a51784dd0
Leaky, but better, test abstraction
2023-11-15 14:01:10 -07:00
Conrad Irwin
19c0b390d2
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
cebc8428c8
FileFinder tests
2023-11-15 13:16:28 -07:00
Antonio Scandurra
33a808a49b
WIP
2023-11-15 20:41:09 +01:00
Antonio Scandurra
759ce7440c
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
1d04dc5dbf
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
3978d4e872
Show fold indicators ( #3334 )
...
Release Notes:
- N/A
2023-11-15 20:10:24 +01:00
Antonio Scandurra
08dfcba68a
Fix panic when painting blocks
2023-11-15 20:02:35 +01:00
Antonio Scandurra
c225a3e5af
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
c7b7f7dfd5
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
d791fc707a
v0.114.x dev
2023-11-15 12:47:40 -05:00
Antonio Scandurra
9ff238921f
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
17b8e4a684
Handle clicking folded ranges
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2023-11-15 18:19:26 +01:00
Antonio Scandurra
3ff8c78b58
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
1db4fab3ab
Add command palette tests and simulate_keystrokes ( #3330 )
...
Release Notes:
- N/A
2023-11-15 08:00:41 -07:00
Piotr Osiewicz
69e01e67dc
Bind cycle_mode action
2023-11-15 15:22:35 +01:00
Kirill Bulatov
888098bad2
More detailed errors when opening files
2023-11-15 16:20:00 +02:00
Piotr Osiewicz
c37faf0ab3
Add query history and replace buttons
2023-11-15 15:05:48 +01:00
Antonio Scandurra
851a60a68e
Render fold indicators in the gutter
2023-11-15 14:07:37 +01:00
Piotr Osiewicz
b11bfa8821
Merge branch 'main' into search2
2023-11-15 12:54:26 +01:00
Antonio Scandurra
786cc59d7a
Fix formatting
2023-11-15 11:07:32 +01:00
Antonio Scandurra
45381e566c
Fix focus management on editor when renaming
2023-11-15 11:05:09 +01:00
Antonio Scandurra
003e4bc241
Extract out a register_actions function
2023-11-15 09:53:32 +01:00
Antonio Scandurra
feeb44c122
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
c3094b7c3d
Introduce gpui::render_view
2023-11-15 09:45:23 +01:00
Antonio Scandurra
1def355d44
Don't return Result
from TextStyle::highlight
2023-11-15 09:10:46 +01:00
Conrad Irwin
c81bd288d4
Fix test
2023-11-14 23:47:08 -07:00
Conrad Irwin
91b54b352b
Add command palette tests and simulate_keystrokes
2023-11-14 23:22:51 -07:00
Nathan Sobo
e37d7f5b0e
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
32ad486a8e
Document contexts
2023-11-14 19:52:51 -07:00
Nathan Sobo
00d8921ae9
Fix click events by notifying when we assign pending_mouse_down
2023-11-14 19:22:41 -07:00
Max Brunsfeld
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
Mikayla
817c6dd49c
remove dbg
2023-11-14 15:57:23 -08:00
Mikayla
b81b96f353
Merge branch 'element-types' of github.com:zed-industries/zed into element-types
2023-11-14 15:55:53 -08:00
Mikayla
7f72df6dcf
Merge branch 'main' into element-types
2023-11-14 15:49:10 -08:00
Mikayla Maki
df64a3c701
Not working yet file-finder2 ( #3321 )
...
Porting file_finder
Release Notes:
- N/A
2023-11-14 15:22:59 -08:00
Conrad Irwin
1109cd11c8
Abandon ship
2023-11-14 16:17:24 -07:00
Nathan Sobo
bef4df5df9
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
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
6b25841e2a
WIP
2023-11-14 14:48:34 -08:00
Max Brunsfeld
606ab74b9f
Project panel: detect filename editor blur via an editor event
2023-11-14 14:02:28 -08:00
Nate Butler
008655b879
Set Pane Size
2023-11-14 16:47:52 -05:00
Conrad Irwin
3b01a032ba
In the middle of stuff
2023-11-14 14:38:23 -07:00
Max Brunsfeld
123faed5b0
Re-enable all project panel tests
...
Some are still failing.
2023-11-14 12:45:46 -08:00