public async getContents()

in packages/web-ide-fs/src/browserfs/ParsedFileCache.ts [24:39]


  public async getContents(): Promise<T | null> {
    const cacheKey = await this.#getCacheKey();

    if (!cacheKey) {
      return null;
    }
    if (this.#cache && cacheKey === this.#cache[0]) {
      return this.#cache[1];
    }

    const value = await this.#parseFileContents();

    this.#cache = [cacheKey, value];

    return value;
  }