Commit Graph
8944 Commits
Author SHA1 Message Date
Antonio Scandurra fe585ff99b Move debug_elements to AsyncAppContext
Previously, `debug_elements` was available on `WindowContext`. If that
method was called while having a borrow out to a view, it would panic because
the view would already have been borrowed.

By moving it to an `AsyncAppContext` we ensure the method can't be called while
a view is being used.
2023-05-02 11:09:40 +02:00
Antonio Scandurra 69ebd00ce3 Remove unnecessary Element impl for RootElement 2023-05-02 10:09:57 +02:00
Joseph T. Lyons b3309b0f56 use installation_id over device_id 2023-05-01 16:29:51 -04:00
Julia 6b07fd7147 Merge pull request #2425 from zed-industries/trim-eslint-workspace-configuration
Trim eslint workspace configuration & remove diagnostic source underline
2023-05-01 13:24:14 -04:00
Julia fa52fc688a Remove underline from diagnostic source 2023-05-01 13:15:41 -04:00
Julia 918093842b Reduce hardcoded ESLint workspace configuration 2023-05-01 13:14:35 -04:00
Antonio Scandurra fdb272c9e3 Merge pull request #2424 from zed-industries/constrain-programmatic-dispatch
Allow programmatic action dispatch only via `AsyncAppContext`
2023-05-01 17:10:57 +02:00
Antonio Scandurra cd0c231879 Defer hiding the dock and going back/forward when Pane is on the stack 2023-05-01 17:06:05 +02:00
Antonio Scandurra 3e757a5377 Run until parked now that the command palette spawns to dispatch action 2023-05-01 16:58:07 +02:00
Antonio Scandurra 98ca695c93 Inline test-only AppContext methods 2023-05-01 16:49:17 +02:00
Antonio Scandurra 48373ac54a Move dispatch_action_any_action_at to AsyncAppContext 2023-05-01 16:40:57 +02:00
Antonio Scandurra 2742f1cb76 Remove ViewContext::dispatch_action 2023-05-01 16:27:36 +02:00
Antonio Scandurra 4bb90083cb Remove ViewContext::dispatch_any_action 2023-05-01 14:24:00 +02:00
Antonio Scandurra 554ea1948e Make dispatch_global_action private 2023-05-01 11:45:35 +02:00
Antonio Scandurra 7fa7cbb77c Merge pull request #2423 from zed-industries/fix-panic-in-go-to-definition
Fix panic when clicking on a definition
2023-04-29 15:02:18 +02:00
Antonio Scandurra b2b55aa687 Fix panic when clicking on a definition
This was introduced with #2420 and was caused by re-entrantly updating
the workspace. Instead of passing the workspace reference from the outside,
we now define the definition navigation as a method on the editor which solves
the issue.

Note that we also needed to introduce a `defer` call when navigating to a definition
to prevent the workspace from reading the editor during `open_project_item`.
2023-04-29 14:53:17 +02:00
Joseph T. Lyons 33934ca2c2 Merge pull request #2421 from zed-industries/metrics-2
Rework telemetry code to support sending events to Clickhouse
2023-04-28 17:16:33 -04:00
Julia 39ee13d55b Merge pull request #2422 from zed-industries/source-eslint-server-from-github
Source ESLint server from Github rather than 3rd party NPM package
2023-04-28 16:53:07 -04:00
Julia e0728c7789 Source ESLint server from Github rather than 3rd party NPM package 2023-04-28 16:42:36 -04:00
Joseph LyonsandMax Brunsfeld deae3db26b Rework telemetry code to support sending events to Clickhouse
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2023-04-28 16:06:55 -04:00
Antonio Scandurra 5c3673d9d5 Merge pull request #2420 from zed-industries/simplify-action-dispatch
Remove `impl_internal_actions!` macro
2023-04-28 17:39:56 +02:00
Antonio Scandurra 63e6eb45bb Remove obsolete presenter modules 2023-04-28 17:37:25 +02:00
Antonio Scandurra 41b1cda801 Merge remote-tracking branch 'origin/main' into simplify-action-dispatch 2023-04-28 17:31:12 +02:00
Antonio Scandurra eb20613772 Remove impl_internal_actions macro 2023-04-28 17:29:57 +02:00
Antonio Scandurra 9182eb0b1d Remove internal actions from terminal_button 2023-04-28 17:29:17 +02:00
Antonio Scandurra 236937fa3e Remove internal actions from project_panel 2023-04-28 17:21:10 +02:00
Antonio Scandurra a6c394f720 Remove DeployContextMenu internal action 2023-04-28 16:51:01 +02:00
Antonio Scandurra 77770d3c82 Remove Scroll internal action 2023-04-28 16:43:31 +02:00
Antonio ScandurraandNathan Sobo 91a4913075 Remove DeployMouseContextMenu internal action
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2023-04-28 16:41:46 +02:00
Antonio ScandurraandNathan Sobo d7231f63c6 💄
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2023-04-28 16:38:00 +02:00
Antonio ScandurraandNathan Sobo addccba272 Remove internal actions from copilot_button
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2023-04-28 16:36:57 +02:00
Antonio Scandurra be095238e0 Remove internal actions from link_go_to_definition 2023-04-28 16:24:46 +02:00
Antonio Scandurra 279094ec8b Remove HideHover and HoverAt internal actions 2023-04-28 16:12:24 +02:00
Antonio Scandurra 21b1a32fa6 Remove unused Jump internal action 2023-04-28 15:57:36 +02:00
Antonio Scandurra 481eab0c9e Remove Dismiss and RespondToContactRequest internal actions 2023-04-28 15:56:41 +02:00
Antonio Scandurra e6785c91d5 Remove LeaveCall internal action 2023-04-28 14:14:25 +02:00
Antonio Scandurra 6b87c371f9 Remove Jump internal action 2023-04-28 14:13:07 +02:00
Antonio Scandurra 1334855566 Fix panic due to re-entrantly reading Workspace 2023-04-28 12:36:50 +02:00
Antonio Scandurra b9a764a22b Remove Select internal action 2023-04-28 12:33:22 +02:00
Antonio Scandurra 79a904310e Remove ToggleExpanded and Call internal actions 2023-04-28 12:26:47 +02:00
Antonio Scandurra b0f84a3c9b Remove RespondToCall internal action 2023-04-28 12:24:07 +02:00
Antonio Scandurra 8a579ad873 Remove SplitWithProjectEntry internal action 2023-04-28 12:19:38 +02:00
Antonio Scandurra b214e31a1a Remove SplitWithItem internal action 2023-04-28 12:17:31 +02:00
Antonio Scandurra 82a7fd3515 Remove RemoveWorktreeFromProject internal action 2023-04-28 12:11:59 +02:00
Antonio Scandurra a79f96cef1 Remove OpenSharedScreen internal action 2023-04-28 12:09:34 +02:00
Antonio Scandurra 856a06b5cb Remove JoinProject internal action 2023-04-28 11:22:04 +02:00
Antonio Scandurra 8dbbf9164f Remove ToggleFollow internal action 2023-04-28 10:07:44 +02:00
Antonio Scandurra 6878552804 Eliminate OpenPaths global action for workspace and replace with methods
We no longer want to invoke this with dispatch_action.
2023-04-27 18:36:28 -06:00
Max Brunsfeld 7eddd6b0d2 Merge pull request #2419 from zed-industries/zombie-copilot-process
Shutdown copilot server when quitting zed
2023-04-27 14:47:30 -07:00
Max Brunsfeld bf9ca1362a Shutdown copilot server when quitting zed 2023-04-27 14:39:00 -07:00