microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.52k stars 1.55k forks source link

Refactor rename is slow #12783

Open iontodirel opened 3 weeks ago

iontodirel commented 3 weeks ago

Environment

Bug Summary and Steps to Reproduce

Bug Summary:

Steps to reproduce:

  1. Open libaprsaroute.zip
  2. Go to line 402 in file aprsroute.hpp
  3. Invoke Refactor Rename

Refactor Preview takes about 1m to display.

Expected behavior:

Refactor Preview takes 5-10 seconds to display

Configuration and Logs

As this is perf, not sure it will be useful, but I can provide if requested.

Other Extensions

No response

Additional context

No response

sean-mcmanus commented 3 weeks ago

It would be helpful to know if cpptools/cpptools-srv are in an idle state when the Rename is invoked and what the rename progress UI is showing (or the logging when C_Cpp.loggingLevel is "Debug"). We could also probably get that info ourselves (assuming we can repro the issue).