(filePath: string)
| 165 | } |
| 166 | |
| 167 | async closeDiff(filePath: string): Promise<string | undefined> { |
| 168 | try { |
| 169 | const result = await this.client?.callTool({ |
| 170 | name: `closeDiff`, |
| 171 | arguments: { |
| 172 | filePath, |
| 173 | }, |
| 174 | }); |
| 175 | |
| 176 | if (result) { |
| 177 | const parsed = CloseDiffResponseSchema.parse(result); |
| 178 | return parsed.content; |
| 179 | } |
| 180 | } catch (err) { |
| 181 | logger.debug(`callTool for ${filePath} failed:`, err); |
| 182 | } |
| 183 | return; |
| 184 | } |
| 185 | |
| 186 | // Closes the diff. Instead of waiting for a notification, |
| 187 | // manually resolves the diff resolver as the desired outcome. |
no test coverage detected