-
Notifications
You must be signed in to change notification settings - Fork 31.9k
/
Copy pathvscode.proposed.notebookKernelSource.d.ts
46 lines (40 loc) · 1.48 KB
/
vscode.proposed.notebookKernelSource.d.ts
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
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
declare module 'vscode' {
export interface NotebookControllerDetectionTask {
/**
* Dispose and remove the detection task.
*/
dispose(): void;
}
export class NotebookKernelSourceAction {
readonly label: string;
readonly description?: string;
readonly detail?: string;
readonly command: string | Command;
readonly documentation?: Uri;
constructor(label: string);
}
export interface NotebookKernelSourceActionProvider {
/**
* An optional event to signal that the kernel source actions have changed.
*/
onDidChangeNotebookKernelSourceActions?: Event<void>;
/**
* Provide kernel source actions
*/
provideNotebookKernelSourceActions(token: CancellationToken): ProviderResult<NotebookKernelSourceAction[]>;
}
export namespace notebooks {
/**
* Create notebook controller detection task
*/
export function createNotebookControllerDetectionTask(notebookType: string): NotebookControllerDetectionTask;
/**
* Register a notebook kernel source action provider
*/
export function registerKernelSourceActionProvider(notebookType: string, provider: NotebookKernelSourceActionProvider): Disposable;
}
}