Files
vscode/extensions/copilot/test/base/embeddingsCache.ts
João Moreno 0562b55dde propagate test run info to caches (#201)
* propagate test run info to caches

* fix tests
2025-07-11 12:59:21 +00:00

16 lines
938 B
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { EmbeddingVector } from '../../src/platform/embeddings/common/embeddingsComputer';
import { SQLiteCache } from './cache';
import { CacheableEmbeddingRequest, IEmbeddingsCache } from './cachingEmbeddingsFetcher';
import { CurrentTestRunInfo } from './simulationContext';
export const usedEmbeddingsCaches = new Set<string>();
export class EmbeddingsSQLiteCache extends SQLiteCache<CacheableEmbeddingRequest, EmbeddingVector> implements IEmbeddingsCache {
constructor(salt: string, currentTestRunInfo: CurrentTestRunInfo) {
super('embeddings', salt, currentTestRunInfo);
}
}