For some reason, maybe after the update to 1.50.1, F2 (rename symbol) is not working for me anymore.
With "does not work" I mean the F2 just doesn't do anything. I can still rename files and directories in the tree explorer, but not function names, variables etc.
I use the extension Intelephense for PHP; but even after I disable all extensions, deleted ~/.config/User/Code directory, and install a fresh VSCode F2 does not work.
VSCode Version: 1.50.1, commit d2e414 OS Version: Linux x64 5.4.0-51-generic snap Node.js: 12.14.1
Steps to Reproduce:
- Open vscode with code
- Set cursor on variable name or function name
- click F2
Expected: you can edit the name of the symbol to be renamed
Actual: nothing happens, so can not rename the symbol.
Notes:
- this used to always work, maybe because I updated to the latest version? in the tree explorer I can rename a file or directory, but not variables/functions in code.
- I use Intelephense extension. But same issue appears after uninstalling all extensions, also tried with Code Insiders.
- Checked the developers tool bar, there were no errors shown when I pressed F2. Actually nothing was shown; as if the F2 is not bound to an action.
== UPDATE == I chatted with support of vscode via Github. Nothing worked, but what did work was upgradng from Ubuntu 18.04 to 20.04, and a complete removal of vscode (cache, extensions, etc).