fix: do not write to the cache if caching is disabled

This commit is contained in:
tomasz-io 2024-11-26 11:27:21 -08:00
parent 541941b1a9
commit b29ed9d34a

View file

@ -252,7 +252,7 @@ export class CompletionProvider {
//////////
// Save to cache
if (!outcome.cacheHit) {
if (!outcome.cacheHit && helper.options.useCache) {
(await this.autocompleteCache).put(outcome.prefix, outcome.completion);
}