You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If any Salesforce Reference commands are run while startup caching is running, duplicates are added to cache. Effectively - retrieves are not idempotent. This isn't generally a problem as we check to see if the particular doc type has already had entries cached, and don't fire off another retrieve if they are. However, when two retrieves are running simultaneously while none have yet begun adding entries to the cache, we wind up with duplicate entries due to the lack of uniqueness checks on insert
Repro:
Open Sublime
Immediately execute the "Salesforce Reference - Apex" command
Wait for Quick Panel to pop up
Observe that entries are duplicated
Solution:
Probably need to make the cache check for uniqueness?
Could maybe make the cache inherit from MutableSet and implement the necessary methods?
The text was updated successfully, but these errors were encountered:
Fixes Issue #16
If a user fired off a retrieve from the command palette during Sublime
startup caching (for a doc type that was being cached), you would wind
up with duplicates.
To fix this, the cache now implements MutableSet as well as
MutableSequence, and existing methods check for existence of duplicates.
The whole structure could use some optimisation, but will get us over
the line for now
If any Salesforce Reference commands are run while startup caching is running, duplicates are added to cache. Effectively - retrieves are not idempotent. This isn't generally a problem as we check to see if the particular doc type has already had entries cached, and don't fire off another retrieve if they are. However, when two retrieves are running simultaneously while none have yet begun adding entries to the cache, we wind up with duplicate entries due to the lack of uniqueness checks on insert
Repro:
Solution:
MutableSet
and implement the necessary methods?The text was updated successfully, but these errors were encountered: