Skip to content

Commit

Permalink
fix: Be able to read cache format from config (#4190)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S authored Feb 16, 2023
1 parent b720bf5 commit 6029893
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cspell/src/util/cache/createCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export async function calcCacheSettings(
);

const cacheStrategy = cacheOptions.cacheStrategy ?? cs.cacheStrategy ?? 'metadata';
const cacheFormat = cacheOptions.cacheFormat ?? cs.cacheFormat ?? 'legacy';
const optionals: Partial<CreateCacheSettings> = {};
if (cacheOptions.cacheReset) {
optionals.reset = true;
Expand All @@ -63,7 +64,7 @@ export async function calcCacheSettings(
cacheLocation,
cacheStrategy,
version: cacheOptions.version,
cacheFormat: cacheOptions.cacheFormat || 'legacy',
cacheFormat,
};
}

Expand Down

0 comments on commit 6029893

Please sign in to comment.