MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / saveAs

Method saveAs

src/renderers/client/render.tsx:110–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108 // This is to maintain consistently in displaying images (if we hadn't used HTML).
109 // See src/vs/workbench/contrib/notebook/browser/view/output/transforms/richTransform.ts
110 const saveAs = () => {
111 if (this.props.ctx.postMessage) {
112 this.props.ctx.postMessage({
113 type: 'saveImageAs',
114 outputId: this.props.outputId,
115 mimeType: this.props.mimeType
116 } as SaveImageAs);
117 }
118 };
119 const openPlot = () => {
120 if (this.props.ctx.postMessage) {
121 this.props.ctx.postMessage({

Callers

nothing calls this directly

Calls 1

postMessageMethod · 0.65

Tested by

no test coverage detected