renameSymbolCommand function
Command to trigger rename at the current cursor position.
Typically bound to F2.
Implementation
bool renameSymbolCommand(dynamic target) {
final (state, dispatch) = _extractTarget(target);
final pos = state.selection.main.head;
dispatch(state.update([
TransactionSpec(
effects: [_triggerRenameEffect.of(pos)],
),
]));
return true;
}