vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Renaming hangs IDE, takes long time to return

Open bonfire62 opened this issue 6 years ago • 2 comments

Type: LanguageService

Describe the bug

  • OS and Version: Windows w/ Remote Development on linux CentOS
  • VS Code Version: 1.42.1
  • C/C++ Extension Version: 0.26.3
  • Other extensions you installed (and if the issue persists after disabling them): disabled all extensions
  • A clear and concise description of what the bug is. Renaming Variable take an unusual amount of time to return "Candidates for Rename" options. around 1-2 minutes.

To Reproduce I hit F2 on a variable to rename, then rename variable, and IDE hangs after searching files, saying "Rename: 0/3 files confirmed. Source: C/C++ (Extension)" in a notification. Variabled used around 3 times and searching for the variable within the workspace returns within seconds

Expected behavior Search to return candidates for rename within seconds

Screenshots

Additional context

bonfire62 avatar Feb 26 '20 21:02 bonfire62

This is "by design". It has to compile the translation units the references are found in, in order to "confirm" the references. We have other issues that track improving performance. If you have the files open with the references and IntelliSense is done processing them, then it should be faster.

sean-mcmanus avatar Feb 26 '20 22:02 sean-mcmanus

This issue has been closed automatically because it's labeled as 'by design' and has not had recent activity.

github-actions[bot] avatar Oct 20 '20 12:10 github-actions[bot]