CodeLens does not process the whole file after opening it.
AbraxasDMG opened this issue · comments
Hi. Maybe this is by design, actually, but I find it confusing and had to check.
I am using LSP-PowerShellEditorServices. When I open a ps1 file that contains a number of functions and some regular code, the functions are not "analyzed" initially. I need to "click" somewhere in the screen with them visible, in order to have the LSP investigates the number of references and update the default "..." placeholder.
Is this normal?
Thanks!
Yes this is normal because there is no callback in the sublime API for viewport changes.
We could implement a polling solution but I don’t think it’s worth the hassle.
Thank you for the confirmation.