Function moras::modules::riscv::middleware::frontend_api::set_cursor
source · pub fn set_cursor(
cur_tab_name: State<'_, CurTabName>,
tab_map: State<'_, TabMap>,
rpc_state: State<'_, RpcState>,
row: u64,
col: u64,
) -> Optional
👎Deprecated since 0.1.0: This function is deprecated and will be removed in the future. The feature of set cursor is no longer supported.
Expand description
Sets the cursor position in current tab associated with the given file path. This could be useful for live sharing of code.
cur_tab_name
: State containing the current tab name.tab_map
: Current state of all open tabs.rpc_state
: State containing the RPC server/client.row
: Row number of the cursor.col
: Column number of the cursor.
Returns Optional
indicating the success or failure of the operation.
§Deprecated
This function is deprecated and will be removed in the future. The feature of set cursor is no longer supported.