Antonio Scandurra
b67fbd3e84
WIP: start on tooltips
2022-05-31 19:00:44 +02:00
Antonio Scandurra
eaf133b04e
Jump to primary diagnostic when clicking on header's jump icon
2022-05-31 16:25:14 +02:00
Antonio Scandurra
4150dcfecc
Show a clickable jump icon for each diagnostic group header
2022-05-31 15:57:22 +02:00
Antonio Scandurra
0b765ebdc6
Pass a &mut BlockContext when rendering blocks
...
This wraps and derefs to `RenderContext<Editor>`, so that we can
easily use `MouseEventHandler`s in blocks.
2022-05-31 15:50:34 +02:00
Antonio Scandurra
dc38d4fbb7
Merge pull request #1086 from zed-industries/server-memory-improvements
...
Improve server memory usage
2022-05-31 13:27:44 +02:00
Antonio Scandurra
0e74d0e70e
Clear language server and worktree statuses when unsharing on server
2022-05-31 11:22:41 +02:00
Antonio Scandurra
025f9af73b
Cap MessageStream buffer size to 1MB
...
We temporarily let it grow when the message size exceed the limit,
but restore the buffer's capacity shortly after. This ensures that,
for each connection in its entire lifetime, we only ever use 1MB.
2022-05-31 11:16:32 +02:00
Antonio Scandurra
428a60c5b0
Merge pull request #1081 from zed-industries/project-panel-with-new-mouse-events
...
Introduce context menu to project panel
2022-05-31 10:40:42 +02:00
Antonio Scandurra
287483ee06
Avoid notifying views that have been removed
2022-05-31 10:36:10 +02:00
Antonio Scandurra
f0e0c8b0f8
Always re-render visible elements in List
2022-05-31 09:52:44 +02:00
Antonio Scandurra
d63ca8f77c
Prevent mouse down events from piercing through overlays
2022-05-31 09:34:37 +02:00
Antonio Scandurra
13f896a9ba
Don't show "add/remove folder to/from project" for remote projects
2022-05-31 08:17:52 +02:00
Antonio Scandurra
b9e18310f8
Bump protocol version
2022-05-31 08:13:05 +02:00
Antonio Scandurra
697bc228ad
Don't eagerly populate copied subdirectory
...
This can race anyway with snapshot updates, so we just eagerly refresh
the root entry and wait for updates to come in to populate it.
2022-05-31 08:11:07 +02:00
Max Brunsfeld
7a9641ae55
Merge pull request #1082 from zed-industries/no-honeycomb
...
Remove opentelemetry tracing subscriber
2022-05-30 10:50:38 -07:00
Max Brunsfeld and Antonio Scandurra
c03a6286c8
Remove opentelemetry tracing subscriber
...
We'll see if this stops the server from leaking memory. We still
have spans in our logs.
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2022-05-30 09:58:25 -07:00
Antonio Scandurra
2dde89148d
💄
2022-05-30 18:38:43 +02:00
Antonio Scandurra
6e4bdf40c0
Don't steal focus from context menu when dispatching an action
2022-05-30 18:36:36 +02:00
Antonio Scandurra
132ba95a1f
Fix memory leak in ListState
2022-05-30 18:29:51 +02:00
Antonio Scandurra
cf0c9b089c
Merge branch 'main' into project-panel-with-new-mouse-events
2022-05-30 18:29:46 +02:00
Antonio Scandurra
84a1e25050
Eagerly populate child entries when copying a directory via RPC
2022-05-30 18:01:46 +02:00
Antonio Scandurra
43d4ea886c
WIP: start on an integration test for copy_entry
2022-05-30 14:53:10 +02:00
Antonio Scandurra
b51f73b096
Implement copy paste for ProjectPanel
2022-05-30 14:52:34 +02:00
Antonio Scandurra
c42b5565e7
Implement cut/paste for ProjectPanel
2022-05-30 12:23:21 +02:00
Antonio Scandurra
351ff36880
Show keystrokes as uppercase
2022-05-30 12:23:03 +02:00
Antonio Scandurra
8b77d681bb
Dismiss context menu when one of its action is dispatched
2022-05-30 10:05:21 +02:00
Antonio Scandurra
1f4169a4c3
Introduce {MutableAppContext,ViewContext}::observe_actions
2022-05-30 10:01:23 +02:00
Antonio Scandurra
7fe7d06218
Dismiss context menu when (right-)mousing down outside of it
2022-05-28 08:51:46 +02:00
Antonio Scandurra
134187f380
Sort mouse regions by their stacking context's depth
2022-05-28 08:45:10 +02:00
Max Brunsfeld
4892c0afea
Merge pull request #1075 from zed-industries/integration-test-cleanup
...
Integration test cleanup
2022-05-27 17:45:56 -07:00
Max Brunsfeld
f1e513a333
Move integration tests into their own file
2022-05-27 17:20:05 -07:00
Max Brunsfeld
8839e4c35e
Clean up integration tests
...
* Use 'build_local_project' helper to reduce boilerplate
* Peform the setup steps in a consistent order
2022-05-27 17:10:45 -07:00
Max Brunsfeld
79e4986d95
Merge pull request #1074 from zed-industries/misc-menu-items
...
Add a few more important menu items
2022-05-27 13:27:03 -07:00
Max Brunsfeld
06bff4cd9c
Add help menu items to visit zed.dev and the zed twitter page
2022-05-27 13:18:00 -07:00
Max Brunsfeld
2ec00a2e36
Add app menu items for opening settings and keymap
2022-05-27 13:06:35 -07:00
Max Brunsfeld
a5d0e3096a
Add "Reset Zoom" action and application menu item
2022-05-27 13:06:12 -07:00
Nathan Sobo
da8ae385ff
Add mouse down out handlers
...
These will fire whenever the left/right mouse button is pressed down outside a specific region. I'll use these to cancel the context menu in the next commit.
2022-05-27 12:56:44 -06:00
Keith Simmons
c4b0a60808
Remove unused context_menu file in rust crate
2022-05-27 11:32:15 -07:00
Keith Simmons
c14f4e835d
Merge pull request #1019 from zed-industries/vim-visual-line-mode
...
Vim visual line mode
2022-05-27 11:22:56 -07:00
Max Brunsfeld
4dcacc2e0d
Merge pull request #1073 from zed-industries/window-menu
...
Add a Window application menu
2022-05-27 11:22:13 -07:00
Nathan Sobo
07fe691d40
Allow context menu to be cancelled after deploying it twice
...
Previously, two right clicks would cause an issue with cancelling the context menu via escape.
2022-05-27 12:00:11 -06:00
Nathan Sobo
510f2d8a99
Block hovering behind overlays
2022-05-27 11:54:51 -06:00
Max Brunsfeld
352115d447
Adjust test to flush effects between splitting pane and following
...
Panes now emit an event when adding the first item, so we need to flush
effects between splitting and following in order to avoid accidentally
cancelling the follow.
2022-05-27 10:53:14 -07:00
Max Brunsfeld
b07d00020e
Populate the window title whenever worktrees or active path change
...
* Refactor the way the project's active entry is assigned. Assign it
together with the window title, as opposed to on every notification
from a pane.
* Emit the ActiveItem event from panes consistently, even when adding
the first item to an empty pane.
2022-05-27 10:51:14 -07:00
Max Brunsfeld
743638537e
Emit the WorktreeRemoved event when removing a worktree from a project
2022-05-27 10:49:10 -07:00
Max Brunsfeld
4e308c6fa7
Emit an event when adding a worktree to a project
2022-05-27 10:48:47 -07:00
Max Brunsfeld
14cdd73231
Add an API for setting a window's title
...
This controls how the window appears in the Window menu.
2022-05-27 10:45:55 -07:00
Nathan Sobo
6fae5b0fdd
Restrict multiple hovered regions to a single stacking context
...
We won't hover regions from stacking contexts that are below the one being hovered.
2022-05-27 11:09:07 -06:00
Antonio Scandurra
d71e5455a0
Merge branch 'mouse-events' into project-panel-context-menu
2022-05-27 12:07:00 +02:00
Antonio Scandurra
6d92c9188c
Use a MouseEventHandler for activating tabs on mouse down
...
Previously, we were using an `EventHandler` which doesn't take into
account other mouse regions floating above the rendered element. This
was problematic because, when clicking the `x` icon on a tab that was
not active, we were first activating it and then closing it.
2022-05-27 11:43:58 +02:00