Skip to content

plugin/symbol-tree: Add a timeout before updating nearest scope

Scrolling through C source files spams the C tooling while updating nearest scope. Adding a settling timeout (taken from IdeBuffer) lessens the performance impact while not compromising the feature.

On my T460 this takes me from stuttery cursor movement to basically smooth

Before this MR: Kuvakaappaus_-_2023-09-30_17-44-11

After this MR: Kuvakaappaus_-_2023-09-30_17-40-19

Merge request reports