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
52 lines (49 loc) · 1.46 KB
/
types.ts
File metadata and controls
52 lines (49 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
export type Progress = { action: ReportableAction; phase: 'started' | 'completed' };
export interface IProgressReporter {
report(progress: Progress): void;
}
/**
* Actions performed by extension that can be (potentially) reported to the user.
*
* @export
* @enum {number}
*/
export enum ReportableAction {
/**
* Getting kernels for a local connection.
* If not found, user may have to select or we might register a kernel.
*/
KernelsGetKernelForLocalConnection = 'KernelsStartGetKernelForLocalConnection',
/**
* Getting kernels for a remote connection.
* If not found, user may have to select.
*/
KernelsGetKernelForRemoteConnection = 'KernelsGetKernelForRemoteConnection',
/**
* Registering kernel.
*/
KernelsRegisterKernel = 'KernelsRegisterKernel',
/**
* Retrieving kernel specs.
*/
KernelsGetKernelSpecs = 'KernelsGetKernelSpecs',
/**
* Starting Jupyter Notebook & waiting to get connection information.
*/
NotebookStart = 'NotebookStart',
/**
* Connecting to the Jupyter Notebook.
*/
NotebookConnect = 'NotebookConnect',
/**
* Wait for session to go idle.
*/
JupyterSessionWaitForIdleSession = 'JupyterSessionWaitForIdleSession',
/**
* Connecting a raw kernel session
*/
RawKernelConnecting = 'RawKernelConnecting'
}