Previously, we perform rename for all kinds of symbols (local, global).
This patch narrows the scope by only renaming symbols not being used
outside of the main file (with index asisitance). Renaming global
symbols is not supported at the moment (return an error).
It's uncler what "only support" means here.
"Renaming a symbol that's used in another file (per the index) returns an error"