Skip to content

Commit 6393821

Browse files
committed
Update notebook
1 parent a3e562a commit 6393821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/notebook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ export class RNotebookProvider implements vscode.NotebookContentProvider, vscode
324324
cell.outputs = [{
325325
outputKind: vscode.CellOutputKind.Rich,
326326
data: {
327-
'image/svg+xml': fs.readFileSync(output.result).toString(),
327+
'image/svg+xml': (await vscode.workspace.fs.readFile(vscode.Uri.parse(output.result))).toString(),
328328
}
329329
}];
330330
break;

0 commit comments

Comments
 (0)