Commit Graph
22 Commits
Author SHA1 Message Date
Max BrunsfeldandNathan a51f3fe894 Avoid notifying editor when wrap width changes
Wrap width is already assigned from within draw. It can be called multiple
times as taffy iteratively computes the layout.

Co-authored-by: Nathan <nathan@zed.dev>
2023-12-12 12:06:38 -08:00
Nathan SoboandMarshall a209ea2cf9 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
Piotr Osiewicz 4765a7d189 Fix up random wrap map test 2023-12-04 12:10:01 +01:00
Piotr Osiewicz a1efa5142b Another batch of tests 2023-12-01 19:39:53 +01:00
Piotr Osiewicz d3ce63694d Uncomment flaky tests 2023-12-01 19:21:30 +01:00
Piotr Osiewicz 89bd5df2de Another batch of tests 2023-12-01 18:43:44 +01:00
Piotr OsiewiczandAntonio 2f9ce20732 editor tests: Reintroduce block_on_ticks.
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-01 17:24:47 +01:00
Piotr Osiewicz 63f1829187 Revert "editor tests: Reintroduce block_on_ticks."
This reverts commit 80eaa647ce.
2023-12-01 17:24:20 +01:00
Piotr OsiewiczandAntonio 80eaa647ce editor tests: Reintroduce block_on_ticks.
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-01 17:22:12 +01:00
Antonio Scandurra 2fe22af4a3 Fix edits not being reported when rewrapping 2023-12-01 11:48:21 +01:00
42dfefd738 WIP
co-authored-by: conrad <conrad@zed.dev>
co-authored-by: Nathan <nathan@zed.dev>
2023-11-20 14:46:01 -08:00
Marshall Bowers 89cd4ac842 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
Antonio ScandurraandNathan 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
Antonio Scandurra 2ece718d63 WIP 2023-11-14 19:42:07 +01:00
Antonio Scandurra 0d6d776a8b WIP 2023-11-14 14:48:59 +01:00
Nathan Sobo 0e80125a44 Get editor2 compiling with a ton of code commented out 2023-11-02 23:35:20 -06:00
Nathan Sobo 60e79c763a WIP 2023-11-02 21:28:56 -06:00
Nathan Sobo 7c2b802283 WIP 2023-11-02 21:03:29 -06:00
Conrad Irwin 6091480720 Into the woods 2023-11-02 18:52:08 -06:00
Nathan Sobo 7ebf696940 WIP 2023-11-02 16:47:14 -06:00
Conrad Irwin 0fca49be33 WIP 2023-11-02 15:27:49 -06:00
Conrad Irwin ec5209de48 Editor2 2023-11-02 14:36:42 -06:00