(dat: string, childProcess?: DisposableProcess)
| 326 | |
| 327 | |
| 328 | const callback = (dat: string, childProcess?: DisposableProcess) => { |
| 329 | const outputUrl = re.exec(dat)?.[0]?.replace(re, '$1'); |
| 330 | if (outputUrl) { |
| 331 | if (viewer !== undefined && fileName) { |
| 332 | const autoRefresh = config().get<boolean>('rmarkdown.preview.autoRefresh', false); |
| 333 | void this.openPreview( |
| 334 | vscode.Uri.file(outputUrl), |
| 335 | filePath, |
| 336 | fileName, |
| 337 | childProcess, |
| 338 | viewer, |
| 339 | currentViewColumn ?? vscode.ViewColumn.Active, |
| 340 | autoRefresh |
| 341 | ); |
| 342 | } |
| 343 | return true; |
| 344 | } |
| 345 | return false; |
| 346 | }; |
| 347 | |
| 348 | const onRejected = (filePath: string) => { |
| 349 | if (this.previewStore.has(filePath)) { |
nothing calls this directly
no test coverage detected