sgwilym / nova-deno

A Deno extension for Nova.
https://extensions.panic.com/extensions/co.gwil/co.gwil.deno/
MIT License
15 stars 1 forks source link

Symbols are reloaded on every keystroke #35

Open belcar-s opened 2 years ago

belcar-s commented 2 years ago

This issue has the labels bug and nova-core because I think that problems in Nova and in the extension are contributing.

We use a method to execute code when the user stops typing. As discovered by unqiue in the Nova developer forum, that method sometimes behaves undesirably: https://devforum.nova.app/t/callback…. It is not yet known to me under what conditions this exactly occurs.

Although #38 greatly mitigates the issue, some of its consequences remain. The symbols sidebar lists symbols; since the sidebar is reloaded upon every keystroke, users will see a very displeasing animation while symbol names are changed.

belcar-s commented 2 years ago

I witnessed this very strange behavior today.

https://user-images.githubusercontent.com/73370025/173274024-769ad00e-f795-4e1e-ae53-defa33912208.mp4

Ignore the broken symbols list; that's due to some buggy changes that I think are unrelated.

Is it possible that several listeners are still being registered for each file?