Skip to main content

Module tab_lifecycle

Module tab_lifecycle 

Source
Expand description

workspace service handlers — tab CRUD (CreateTab, SetActiveTab, CloseTab, UpdateTabIds, ReorderTab). Split out of workspace.rs; see that file’s dispatcher for the full method list.

Constants§

SLOW_SET_ACTIVE_TAB 🔒
A SetActiveTab that took longer than this is logged with where the time went.

Functions§

handle_close_tab 🔒
handle_create_tab 🔒
handle_reorder_tab 🔒
handle_set_active_tab 🔒
handle_update_tab_ids 🔒
is_slow_set_active_tab 🔒
Whether a SetActiveTab of this total length is logged (#47767).
log_slow_set_active_tab 🔒
One warn line when SetActiveTab was slow: the total, then the wait for the reducer mutex, the reducer, and the SQLite persist, so a slow tab click in the renderer log can be matched to the backend’s share of it (#47767).