(cg: CodeGraph, text: string, paths: Iterable<string>)
| 2913 | } |
| 2914 | |
| 2915 | private answerResult(cg: CodeGraph, text: string, paths: Iterable<string>): ToolResult { |
| 2916 | const result = this.textResult(text); |
| 2917 | result._cgAnswerFiles = [...new Set(paths)].map(file => ({ |
| 2918 | path: file, |
| 2919 | contentHash: cg.getFile(file)?.contentHash ?? null, |
| 2920 | })); |
| 2921 | return result; |
| 2922 | } |
| 2923 | |
| 2924 | private withStalenessNotice(result: ToolResult, projectPath?: string): ToolResult { |
| 2925 | if (result.isError) return result; |
no test coverage detected