Commit Graph
127 Commits
Author SHA1 Message Date
Antonio Scandurra ca5ef02d08 Add red background to blocks that need styling 2023-11-14 17:15:33 +01:00
Antonio ScandurraandJulia 1d15d76e5e Re-enable find all references
Co-Authored-By: Julia <julia@zed.dev>
2023-11-14 16:09:29 +01:00
Antonio ScandurraandJulia d4b9bd4ec8 Render block elements
Co-Authored-By: Julia <julia@zed.dev>
2023-11-14 16:03:06 +01:00
Antonio Scandurra 0d6d776a8b WIP 2023-11-14 14:48:59 +01:00
Conrad Irwin 223abf15d4 Fix SingleLine editor font size 2023-11-13 21:41:41 -07:00
Conrad Irwin bc20c70907 Fix action dispatching... 2023-11-13 18:56:59 -07:00
Mikayla 238a291e61 Fix broken tests and comment out remaining tests 2023-11-13 16:46:06 -08:00
Mikayla b83845913e Merge branch 'main' into editor-tests 2023-11-13 15:53:22 -08:00
Mikaylaandconrad a0ef21d91d WIP
co-authored-by: conrad <conrad.irwin@zed.dev>
2023-11-13 15:53:04 -08:00
Marshall Bowers 8e2a7b803f Merge branch 'main' into one-themes 2023-11-13 18:16:45 -05:00
Nate Butler 98916f54d2 WIP 2023-11-13 17:38:44 -05:00
Conrad Irwin 235edc51c8 Merge branch 'main' into dispatch-tree 2023-11-13 13:21:57 -07:00
Mikayla c0b2ecf405 Get editor tests compiling 2023-11-13 12:10:14 -08:00
Mikayla 8dcdc67bd1 Merge branch 'main' into editor-tests 2023-11-13 09:54:02 -08:00
Antonio Scandurra 16edc402e2 Fix panic when querying available actions 2023-11-13 18:29:18 +01:00
Kirill BulatovandConrad 7f6dbeef29 Make inlay hint cache tests pass
Co-Authored-By: Conrad  <conrad.irwin@gmail.com>
2023-11-13 18:25:21 +02:00
Antonio Scandurra dc3cc470a7 💄 2023-11-13 15:20:43 +01:00
Kirill Bulatov 1cfaaa7924 Ignore tests for now 2023-11-13 15:02:24 +02:00
Kirill Bulatov 6765223273 Uncomment all inlay hint cache code and tests 2023-11-13 14:07:48 +02:00
Antonio ScandurraandThorsten 7c56355f10 Register key and action listeners using Interactive::initialize
Co-Authored-By: Thorsten <mrnugget@gmail.com>
2023-11-13 11:37:57 +01:00
Nate Butler 13a8138462 Update command palette style 2023-11-12 22:13:54 -05:00
Nathan Sobo a3ec1048fd WIP 2023-11-10 14:47:45 -07:00
Nate ButlerandMarshall Bowers abf4debc13 Refactor command palette, picker and code action styles.
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-11-10 16:13:25 -05:00
Nathan SoboandAntonio Scandurra f5cc32c077 Add a DispatchTree which will replace the existing key dispatch strategy
Instead of freezing a stack, we will record the entire dispatch tree so we can
change focus.

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2023-11-10 11:56:14 -07:00
Antonio Scandurra 61693a0e13 🔥 2023-11-10 16:41:21 +01:00
Antonio Scandurra ffd1f0390e Fix bad import 2023-11-10 16:41:21 +01:00
Antonio Scandurra 8482025e74 Allow measuring arbitrary items in UniformList 2023-11-10 16:41:21 +01:00
Antonio Scandurra 3a0bfdf098 Confirm code action on mouse down 2023-11-10 16:41:21 +01:00
Antonio Scandurra 7648abf87d Wire up keyboard interaction in code actions menu 2023-11-10 16:41:21 +01:00
Antonio Scandurra c58a74c03e Make code actions menu prettier 2023-11-10 16:41:21 +01:00
Antonio Scandurra 4157559870 Show a very basic code actions menu 2023-11-10 12:26:35 +01:00
Antonio Scandurra 03050a8dc1 Merge remote-tracking branch 'origin/main' into code-actions-2 2023-11-10 11:01:23 +01:00
Max Brunsfeld 6539e1da5e Fix editor settings deserialization in editor2 2023-11-09 15:37:46 -08:00
Max Brunsfeld c9bd5548ae Add a setting for when to seed the search query from the text under the cursor 2023-11-09 14:03:14 -08:00
Max Brunsfeld 34cf021595 Avoid suggesting search query if cursor is not on a word 2023-11-09 12:33:30 -08:00
Antonio Scandurra 05aa510d5c WIP 2023-11-09 19:11:17 +01:00
d6b35eefbb Start on rendering context menu in editor2
Co-Authored-By: Nathan <nathan@zed.dev>
Co-Authored-By: Mikayla <mikayla@zed.dev>
2023-11-09 19:03:10 +01:00
Antonio ScandurraandNathan 9d6d2c59e3 Render code actions indicator
Co-Authored-By: Nathan <nathan@zed.dev>
2023-11-09 18:43:26 +01:00
Mikayla ee983f89b2 WIP 2023-11-09 00:18:00 -08:00
Mikayla 9e6bd21fe8 checkpoint 2023-11-08 23:16:04 -08:00
Mikayla 0cdb54ec22 Uncomment tests 2023-11-08 22:11:51 -08:00
Mikayla 045f58be0c Merge branch 'main' into editor-integration 2023-11-08 21:33:14 -08:00
Mikayla 87230508a2 WIP 2023-11-08 21:32:59 -08:00
Nathan Sobo 9f9938ffc6 Simplify input handling (#3282)
This PR takes a different approach to input handling.

Rather than returning the optional input handler, focus handle pair from
the element trait, we instead allow you to register an input handler
imperatively on the window context with `WindowContext::handle_input`.
You pass a focus handle reference and any implementer of
`PlatformInputHandler`. There's an `ElementInputHandler<V>` that
implements `PlatformWindowHandler` so long as `V` implements
`InputHandler`.

Release Notes:

- N/A
2023-11-08 22:27:36 -07:00
Mikayla 22a19cd8ff Merge branch 'main' into event-emitter 2023-11-08 20:10:38 -08:00
Nathan Sobo bac0b84dfa Simplify IME support 2023-11-08 21:06:00 -07:00
Mikayla e9267a7495 Update editor to use new event emitter 2023-11-08 19:52:43 -08:00
Mikayla 9fd7066ac1 Get workspace compiling with new event emitters 2023-11-08 19:29:00 -08:00
Max Brunsfeld ffeed40e87 Merge branch 'main' into bounds-for-range 2023-11-08 17:31:00 -08:00
Max Brunsfeld 52d538170b Fix vertical position in first_rect_for_character_range 2023-11-08 17:27:32 -08:00