(options: {
contents?: string;
extension: string;
})
| 208 | |
| 209 | initializeCommonApi({ |
| 210 | async createTemporaryFile(options: { |
| 211 | contents?: string; |
| 212 | extension: string; |
| 213 | }): Promise<{ file: Uri } & IDisposable> { |
| 214 | const extension = options.extension || '.py'; |
| 215 | const tempFile = tmp.tmpNameSync({ postfix: extension }); |
| 216 | if (options.contents) { |
| 217 | await fs.writeFile(tempFile, options.contents); |
| 218 | } |
| 219 | return { file: Uri.file(tempFile), dispose: () => swallowExceptions(() => fs.unlinkSync(tempFile)) }; |
| 220 | }, |
| 221 | async startJupyterServer( |
| 222 | options: { |
| 223 | token?: string; |
nothing calls this directly
no test coverage detected