forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
23 lines (19 loc) · 764 Bytes
/
types.ts
File metadata and controls
23 lines (19 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { CancellationToken, Uri } from 'vscode';
import { INotebookModel } from '../types';
export enum ExportFormat {
pdf = 'pdf',
html = 'html',
python = 'python'
}
export const IExportManager = Symbol('IExportManager');
export interface IExportManager {
export(format: ExportFormat, model: INotebookModel, defaultFileName?: string): Promise<undefined>;
}
export const IExport = Symbol('IExport');
export interface IExport {
export(source: Uri, target: Uri, token: CancellationToken): Promise<void>;
}
export const IExportManagerFilePicker = Symbol('IExportManagerFilePicker');
export interface IExportManagerFilePicker {
getExportFileLocation(format: ExportFormat, source: Uri, defaultFileName?: string): Promise<Uri | undefined>;
}