(ref: string, path: string)
| 134 | } |
| 135 | |
| 136 | async getFileBlameRanges(ref: string, path: string) { |
| 137 | const cacheKey = `${ref} ${path}`; |
| 138 | if (!this._blameRangesCache.has(cacheKey)) { |
| 139 | const dataSource = await adapterManager.getAdapter(this._scheme).resolveDataSource(); |
| 140 | const blameRanges = await dataSource.provideFileBlameRanges(this._repo, ref, path); |
| 141 | this._blameRangesCache.set(cacheKey, blameRanges); |
| 142 | } |
| 143 | return this._blameRangesCache.get(cacheKey) || []; |
| 144 | } |
| 145 | } |
no test coverage detected