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

Method getTargetFile

src/notebooks/export/exportUtil.node.ts:28–42  ·  view source on GitHub ↗
(
        format: ExportFormat,
        source: Uri,
        defaultFileName?: string | undefined
    )

Source from the content-addressed store, hash-verified

26 }
27
28 override async getTargetFile(
29 format: ExportFormat,
30 source: Uri,
31 defaultFileName?: string | undefined
32 ): Promise<Uri | undefined> {
33 let target;
34
35 if (format !== ExportFormat.python) {
36 target = await new ExportDialog().showDialog(format, source, defaultFileName);
37 } else {
38 target = Uri.file((await this.fs.createTemporaryLocalFile('.py')).filePath);
39 }
40
41 return target;
42 }
43}
44
45export class ExportUtilNode {

Callers

nothing calls this directly

Calls 3

showDialogMethod · 0.80
fileMethod · 0.45

Tested by

no test coverage detected