(cg: CodeGraph, text: string, paths: Iterable<string>)
| 3072 | } |
| 3073 | |
| 3074 | private answerResult(cg: CodeGraph, text: string, paths: Iterable<string>): ToolResult { |
| 3075 | const result = this.textResult(text); |
| 3076 | result._cgAnswerFiles = [...new Set(paths)].map(file => ({ |
| 3077 | path: file, |
| 3078 | contentHash: cg.getFile(file)?.contentHash ?? null, |
| 3079 | })); |
| 3080 | return result; |
| 3081 | } |
| 3082 | |
| 3083 | private withStalenessNotice(result: ToolResult, projectPath?: string): ToolResult { |
| 3084 | if (result.isError) return result; |
no test coverage detected