MCPcopy Index your code
hub / github.com/REditorSupport/vscode-R / callback

Method callback

src/rmarkdown/preview.ts:328–346  ·  view source on GitHub ↗
(dat: string, childProcess?: DisposableProcess)

Source from the content-addressed store, hash-verified

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)) {

Callers

nothing calls this directly

Calls 3

openPreviewMethod · 0.95
configFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected