(
format: ExportFormat,
source: Uri,
defaultFileName?: string | undefined
)
| 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 | |
| 45 | export class ExportUtilNode { |
nothing calls this directly
no test coverage detected