genius257 / vscode-autoit

AutoIt language extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=genius257.autoit
MIT License
4 stars 3 forks source link

Suggestions from includes randomly stops working. #22

Closed genius257 closed 1 year ago

genius257 commented 1 year ago

Suggestions from includes will stop working seemingly randomly. Could be something with the internal include cache.

genius257 commented 1 year ago

Caused by bad script reference count. Not sure if it's me missing a reference count increment somewhere, or vscode giving me unexpected document close events.

The fix for now is simply to disable the cleanup when reference count reaches zero or below.

A proper fix will be made later in the project life cycle, as the extension working reliably is much more important than small memory optimizations for now.