(cg: CodeGraph, text: string, paths: Iterable<string>)
| 2906 | } |
| 2907 | |
| 2908 | private answerResult(cg: CodeGraph, text: string, paths: Iterable<string>): ToolResult { |
| 2909 | const result = this.textResult(text); |
| 2910 | result._cgAnswerFiles = [...new Set(paths)].map(file => ({ |
| 2911 | path: file, |
| 2912 | contentHash: cg.getFile(file)?.contentHash ?? null, |
| 2913 | })); |
| 2914 | return result; |
| 2915 | } |
| 2916 | |
| 2917 | private withStalenessNotice(result: ToolResult, projectPath?: string): ToolResult { |
| 2918 | if (result.isError) return result; |
no test coverage detected