Commit Graph
376 Commits
Author SHA1 Message Date
Antonio Scandurra ed109c7dfa Don't borrow window state mutably until we need to invoke resize callback 2022-07-13 10:38:34 +02:00
Antonio Scandurra 3b66c45a34 Ensure no borrows are held when activating window or creating prompts 2022-07-13 10:37:55 +02:00
Antonio Scandurra f2f12c2b11 Drop window borrow before calling makeKeyAndOrderFront
We're seeing some stack traces where calling `makeKeyAndOrderFront`
could invoke `setFrameSize`, which is causing a double borrow.
2022-07-13 10:19:46 +02:00
Mikayla Maki 6cc3e868ba Fixes terminal launch issues and adds tests for queries 2022-07-12 17:45:11 -07:00
Keith Simmonsand d1086b6152 Refactor terminal connection into a model which can be copied between terminal views
Refactor terminal modal code to use TerminalConnection model handle so we aren't storing TerminalViews in the globals
Adjust INSTANCE_BUFFER_SIZE in renderer to handle pathological terminal renders

Co-authored-by: mikayla.c.maki@gmail.com
2022-07-08 16:10:09 -07:00
Mikayla Maki 3e2e8e1cef First pass at selections complete 2022-07-07 17:31:38 -07:00
Mikayla Maki 4fe9dc3362 fix merge conflicr 2022-07-07 17:24:55 -07:00
Mikayla Maki 415b0adb96 Finished merge of drag update 2022-07-07 16:12:24 -07:00
Mikayla Maki b34849c6dd Merge branch 'main' into gpui-changes 2022-07-07 16:08:32 -07:00
Mikayla Maki 68b468482f Updated drag API to pass old,new, instead of delta,new 2022-07-07 16:07:24 -07:00
Nathan Sobo 244909a44b Merge pull request #1298 from zed-industries/mouse-region-refactor
Mouse Event Refactor
2022-07-07 16:43:36 -06:00
Mikayla Maki 37687c5c97 Hoisted assert clipboard into TestAppContext 2022-07-07 14:55:25 -07:00
Mikayla Maki c61cbc72c3 added inline hint 2022-07-07 14:51:34 -07:00
Mikayla Maki d58746ee13 GPUI change proposals 2022-07-07 14:51:34 -07:00
Mikayla Maki c58a0da252 Merge pull request #1304 from zed-industries/deploy-panic
Fixed working directory issues, added tests.
2022-07-07 12:14:57 -07:00
Mikayla Maki c5b8dcafbe Added a way to change the timeout with state 2022-07-07 12:04:17 -07:00
Mikayla Maki 3dfa2a0962 added inline hint 2022-07-06 17:57:32 -07:00
Mikayla Maki 7ea0d2c443 GPUI change proposals 2022-07-06 17:52:20 -07:00
Keith Simmons 15d2f61f5f combine branches of events in from_native 2022-07-06 16:59:58 -07:00
Keith Simmons 76b68da22e Combine platform mouse events to use common MouseEvent struct and remove MouseDragged event in favor of MouseMoved 2022-07-06 16:37:56 -07:00
Keith Simmons 7df2f1aa6a pull event data out into individual Event structs 2022-07-06 15:36:42 -07:00
Antonio Scandurra dba2c284f6 Report whether a view was focused or blurred when observing focus 2022-07-06 15:53:40 +02:00
Mikayla Maki 5b808bae86 Working on grid rendering 2022-07-05 15:10:34 -07:00
Antonio Scandurra 0d3eee7ab5 Always finish previous autosave before starting a new one 2022-07-05 17:51:01 +02:00
Antonio Scandurra 4ddcac081c Add unit test for ViewContext::observe_window_activation 2022-07-05 17:51:01 +02:00
Antonio Scandurra 7eeea94830 Add ViewContext::observe_window_activation 2022-07-05 17:51:01 +02:00
Antonio Scandurra 47b1b9da33 Fix unsafe memory access when converting entity handles 2022-07-05 17:50:57 +02:00
Max Brunsfeld 7b6d8b63f3 Recalculate Metal layer's drawable size when window's scale factor changes 2022-07-04 15:14:08 -07:00
Antonio Scandurra 24c9be0b07 Support hitting enter on numpad 2022-07-04 10:01:56 +02:00
Antonio Scandurra e8850d498c Merge branch 'main' into user-timeline 2022-07-04 09:23:16 +02:00
Mikayla Maki 7c8247b147 rendering cursor correctly 2022-07-01 13:03:26 -07:00
Mikayla Maki 0edc045722 Merge pull request #1255 from zed-industries/terminal-fr
WIP: Terminal
2022-06-30 11:30:28 -07:00
Keith Simmons ee3daac057 Update command palette filter from vim mode more proactively 2022-06-29 11:58:12 -07:00
Antonio ScandurraandNathan Sobo 1be4549c4e Send extension counts when metadata changes
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2022-06-29 17:58:11 +02:00
Mikayla Maki 3cdc64fc6f Fixed focus issues with scrolling and input 2022-06-28 18:28:13 -07:00
Keith Simmons 320cb7d94d Add command palette filter global and update it when vim mode is enabled/disabled 2022-06-28 13:35:43 -07:00
Keith Simmons 72723ce560 Address hover panic and add hint to install go when language server failed to install 2022-06-27 15:48:15 -07:00
Keith Simmons a76be2126c working jump to definition with tests 2022-06-24 15:09:31 -07:00
Keith Simmons b2c6087d10 Working underline based on symbol origin 2022-06-24 15:05:35 -07:00
Antonio Scandurra d0a3f73907 Update window edited status when pane item is removed 2022-06-23 14:28:10 +02:00
Antonio Scandurra b38b508447 Add test to verify closing window via the mouse 2022-06-23 14:18:53 +02:00
Antonio Scandurra c9c8abfed6 Introduce ViewContext::on_window_should_close
This is a new callback that can be used to interrupt closing the window
when the user has unsaved changes.
2022-06-23 11:43:19 +02:00
Antonio Scandurra 0fe62ab0ab Set window's edited = true when there are unsaved changes 2022-06-23 10:59:50 +02:00
Antonio Scandurra 85c06cc33b Fix panic when Text contained carriage returns 2022-06-23 10:21:21 +02:00
Max Brunsfeld 3184e97d0e Remove redundant run_until_parked call in Foreground::advance_clock 2022-06-22 14:43:21 -07:00
Antonio Scandurra 6503c48787 Use Arc<Deterministic> to understand which await points are parking 2022-06-22 17:39:34 +02:00
Antonio Scandurra 72f3ffe284 Accept a datetime range when querying project activity 2022-06-21 14:03:10 +02:00
Antonio Scandurra 3e2ad40589 Use BOOL instead of Rust booleans in handle_key_equivalent 2022-06-17 17:19:18 +02:00
Antonio Scandurra 7599cec58e Override performKeyEquivalent to handle key events
This lets us bypass the application menu and invoke the event handler
in Zed first. If that doesn't handle the event, the application menu
item corresponding to the shortcut will be actioned. Prior to this
commit the opposite would happen, which would dramatically limit the
throughput at which we could handle events.
2022-06-17 17:12:56 +02:00
Antonio Scandurra de08bd4d26 Return true in the Window::on_event callback if event was handled 2022-06-17 17:09:16 +02:00