Workspace symbol search with scope::variable may not work after symbols are deleted and then added back

I think it used to work. scope:: works, but then it fails after any text is typed after that. This might be a regression from the "fast symbol search" work, since I see another bug report on this at #2484 saying it was fixed.

Image Image

This also seems like it might be causing Copilot to have trouble finding the definition for scope::var symbols.