()
| 340 | private cache = new Map<string, CacheEntry<unknown>>() |
| 341 | |
| 342 | async ensureStarted(): Promise<void> { |
| 343 | if (this.initialized) { |
| 344 | return |
| 345 | } |
| 346 | if (this.initPromise) { |
| 347 | return this.initPromise |
| 348 | } |
| 349 | this.initPromise = this.start() |
| 350 | return this.initPromise |
| 351 | } |
| 352 | |
| 353 | private async start(): Promise<void> { |
| 354 | this.gitDir = await resolveGitDir() |