@@ -7,7 +7,7 @@ import { Utils } from "vscode-uri"
77import { listFiles , saveAllTextDocuments } from "./fs"
88import { parseAnnotations } from "../../core/src/annotations"
99import { Project , PromptScriptRunOptions } from "../../core/src/server/messages"
10- import { JSONLineCache } from "../../core/src/jsonlinecache "
10+ import { DirectoryCache } from "../../core/src/directorycache "
1111import { ChatCompletionsProgressReport } from "../../core/src/chattypes"
1212import { fixCustomPrompts , fixPromptDefinitions } from "../../core/src/scripts"
1313import { logMeasure } from "../../core/src/perf"
@@ -97,7 +97,7 @@ export class ExtensionState extends EventTarget {
9797 private _project : Project = undefined
9898 private _aiRequest : AIRequest = undefined
9999 private _diagColl : vscode . DiagnosticCollection
100- private _aiRequestCache : JSONLineCache <
100+ private _aiRequestCache : DirectoryCache <
101101 AIRequestSnapshotKey ,
102102 AIRequestSnapshot
103103 > = undefined
@@ -122,7 +122,7 @@ export class ExtensionState extends EventTarget {
122122 this . _diagColl = vscode . languages . createDiagnosticCollection ( TOOL_NAME )
123123 subscriptions . push ( this . _diagColl )
124124
125- this . _aiRequestCache = JSONLineCache . byName <
125+ this . _aiRequestCache = DirectoryCache . byName <
126126 AIRequestSnapshotKey ,
127127 AIRequestSnapshot
128128 > ( AI_REQUESTS_CACHE )
@@ -241,7 +241,7 @@ export class ExtensionState extends EventTarget {
241241 fragment : options . fragment ,
242242 version : CORE_VERSION ,
243243 }
244- return { key, sha : await this . _aiRequestCache . getKeySHA ( key ) }
244+ return { key, sha : await this . _aiRequestCache . getKeyHash ( key ) }
245245 }
246246
247247 dispatchAIRequestChange ( ) {
0 commit comments