fix: do not write to the cache if caching is disabled
This commit is contained in:
parent
541941b1a9
commit
b29ed9d34a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue