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
To validate whether a file's symbols are still valid, the CacheService computes the file's current hash with the checksum in the cache file.
The former (current hash) is computed with this.project.fs.hash(root) which uses externals.crypto.getSha1(await externals.fs.readFile(uri)) internally. But the latter is done via this.project.externals.crypto.getSha1(doc.getText()) when the documentUpdate event is emitted.
This means that the hashes are always different when saving the cache and later validating it, putting unnecessary files in the changedFiles list.
The text was updated successfully, but these errors were encountered:
To validate whether a file's symbols are still valid, the
CacheService
computes the file's current hash with the checksum in the cache file.The former (current hash) is computed with
this.project.fs.hash(root)
which usesexternals.crypto.getSha1(await externals.fs.readFile(uri))
internally. But the latter is done viathis.project.externals.crypto.getSha1(doc.getText())
when thedocumentUpdate
event is emitted.This means that the hashes are always different when saving the cache and later validating it, putting unnecessary files in the
changedFiles
list.The text was updated successfully, but these errors were encountered: