MCPcopy Index your code
hub / github.com/continuedev/continue / getInstance

Method getInstance

core/autocomplete/snippets/gitDiffCache.ts:18–26  ·  view source on GitHub ↗
(
    getDiffFn: GetDiffFn,
    cacheTimeSeconds?: number,
  )

Source from the content-addressed store, hash-verified

16 }
17
18 public static getInstance(
19 getDiffFn: GetDiffFn,
20 cacheTimeSeconds?: number,
21 ): GitDiffCache {
22 if (!GitDiffCache.instance) {
23 GitDiffCache.instance = new GitDiffCache(getDiffFn, cacheTimeSeconds);
24 }
25 return GitDiffCache.instance;
26 }
27
28 private async getDiffPromise(): Promise<string[]> {
29 try {

Callers 3

getDiffsFromCacheFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected