diff --git a/packages/cspell/src/app/util/cache/createCache.ts b/packages/cspell/src/app/util/cache/createCache.ts index aeb2e6ba9f5..67e28fbd7bc 100644 --- a/packages/cspell/src/app/util/cache/createCache.ts +++ b/packages/cspell/src/app/util/cache/createCache.ts @@ -53,7 +53,7 @@ export async function calcCacheSettings( ); const cacheStrategy = cacheOptions.cacheStrategy ?? cs.cacheStrategy ?? 'metadata'; - const cacheFormat = cacheOptions.cacheFormat ?? cs.cacheFormat ?? 'legacy'; + const cacheFormat = cacheOptions.cacheFormat ?? cs.cacheFormat ?? 'universal'; const optionals: Partial = {}; if (cacheOptions.cacheReset) { optionals.reset = true; diff --git a/packages/cspell/src/app/util/cache/fileEntryCache.ts b/packages/cspell/src/app/util/cache/fileEntryCache.ts index 50704eaa340..81adbcd5f0d 100644 --- a/packages/cspell/src/app/util/cache/fileEntryCache.ts +++ b/packages/cspell/src/app/util/cache/fileEntryCache.ts @@ -83,8 +83,6 @@ export function createFromFile(pathToCache: string, useCheckSum: boolean, useRel } export function normalizePath(filePath: string): string { - return filePath; - - // if (path.sep !== '\\') return filePath; - // return filePath.replace(/\\/g, '/'); + if (path.sep === '/') return filePath; + return filePath.split(path.sep).join('/'); }