@theia/plugin 1.53.0-next.55 → 1.53.0-next.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +766 -766
- package/package.json +2 -2
- package/src/package.spec.ts +28 -28
- package/src/theia-extra.d.ts +410 -410
- package/src/theia.d.ts +18078 -18078
- package/src/theia.proposed.canonicalUriProvider.d.ts +64 -64
- package/src/theia.proposed.customEditorMove.d.ts +41 -41
- package/src/theia.proposed.debugVisualization.d.ts +189 -189
- package/src/theia.proposed.diffCommand.d.ts +55 -55
- package/src/theia.proposed.documentPaste.d.ts +316 -316
- package/src/theia.proposed.editSessionIdentityProvider.d.ts +89 -89
- package/src/theia.proposed.extensionsAny.d.ts +57 -57
- package/src/theia.proposed.externalUriOpener.d.ts +158 -158
- package/src/theia.proposed.findTextInFiles.d.ts +178 -178
- package/src/theia.proposed.fsChunks.d.ts +32 -32
- package/src/theia.proposed.mappedEditsProvider.d.ts +59 -59
- package/src/theia.proposed.multiDocumentHighlightProvider.ts +82 -82
- package/src/theia.proposed.notebookCellExecutionState.d.ts +68 -68
- package/src/theia.proposed.notebookKernelSource.d.ts +62 -62
- package/src/theia.proposed.notebookMessaging.d.ts +84 -84
- package/src/theia.proposed.portsAttributes.d.ts +115 -115
- package/src/theia.proposed.profileContentHandlers.d.ts +35 -35
- package/src/theia.proposed.resolvers.d.ts +44 -44
- package/src/theia.proposed.scmValidation.d.ts +70 -70
- package/src/theia.proposed.shareProvider.d.ts +92 -92
- package/src/theia.proposed.terminalQuickFixProvider.d.ts +103 -103
- package/src/theia.proposed.textSearchProvider.d.ts +145 -145
- package/src/theia.proposed.timeline.d.ts +177 -177
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2023 STMicroelectronics and others.
|
|
3
|
-
//
|
|
4
|
-
// This program and the accompanying materials are made available under the
|
|
5
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
//
|
|
8
|
-
// This Source Code may also be made available under the following Secondary
|
|
9
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
// with the GNU Classpath Exception which is available at
|
|
12
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
|
|
17
|
-
/*---------------------------------------------------------------------------------------------
|
|
18
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
19
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
20
|
-
*--------------------------------------------------------------------------------------------*/
|
|
21
|
-
// code copied and modified from https://github.com/microsoft/vscode/blob/1.85.1/src/vscode-dts/vscode.proposed.multiDocumentHighlightProvider.d.ts
|
|
22
|
-
|
|
23
|
-
declare module '@theia/plugin' {
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Represents a collection of document highlights from multiple documents.
|
|
27
|
-
*/
|
|
28
|
-
export class MultiDocumentHighlight {
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* The URI of the document containing the highlights.
|
|
32
|
-
*/
|
|
33
|
-
uri: Uri;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* The highlights for the document.
|
|
37
|
-
*/
|
|
38
|
-
highlights: DocumentHighlight[];
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Creates a new instance of MultiDocumentHighlight.
|
|
42
|
-
* @param uri The URI of the document containing the highlights.
|
|
43
|
-
* @param highlights The highlights for the document.
|
|
44
|
-
*/
|
|
45
|
-
constructor(uri: Uri, highlights: DocumentHighlight[]);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface MultiDocumentHighlightProvider {
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Provide a set of document highlights, like all occurrences of a variable or
|
|
52
|
-
* all exit-points of a function.
|
|
53
|
-
*
|
|
54
|
-
* @param document The document in which the command was invoked.
|
|
55
|
-
* @param position The position at which the command was invoked.
|
|
56
|
-
* @param otherDocuments An array of additional valid documents for which highlights should be provided.
|
|
57
|
-
* @param token A cancellation token.
|
|
58
|
-
* @returns A Map containing a mapping of the Uri of a document to the document highlights or a thenable that resolves to such. The lack of a result can be
|
|
59
|
-
* signaled by returning `undefined`, `null`, or an empty map.
|
|
60
|
-
*/
|
|
61
|
-
provideMultiDocumentHighlights(document: TextDocument, position: Position, otherDocuments: TextDocument[], token: CancellationToken):
|
|
62
|
-
ProviderResult<MultiDocumentHighlight[]>;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
namespace languages {
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Register a multi document highlight provider.
|
|
69
|
-
*
|
|
70
|
-
* Multiple providers can be registered for a language. In that case providers are sorted
|
|
71
|
-
* by their {@link languages.match score} and groups sequentially asked for document highlights.
|
|
72
|
-
* The process stops when a provider returns a `non-falsy` or `non-failure` result.
|
|
73
|
-
*
|
|
74
|
-
* @param selector A selector that defines the documents this provider is applicable to.
|
|
75
|
-
* @param provider A multi-document highlight provider.
|
|
76
|
-
* @returns A {@link Disposable} that unregisters this provider when being disposed.
|
|
77
|
-
* @stubbed
|
|
78
|
-
*/
|
|
79
|
-
export function registerMultiDocumentHighlightProvider(selector: DocumentSelector, provider: MultiDocumentHighlightProvider): Disposable;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
}
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2023 STMicroelectronics and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
/*---------------------------------------------------------------------------------------------
|
|
18
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
19
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
20
|
+
*--------------------------------------------------------------------------------------------*/
|
|
21
|
+
// code copied and modified from https://github.com/microsoft/vscode/blob/1.85.1/src/vscode-dts/vscode.proposed.multiDocumentHighlightProvider.d.ts
|
|
22
|
+
|
|
23
|
+
declare module '@theia/plugin' {
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Represents a collection of document highlights from multiple documents.
|
|
27
|
+
*/
|
|
28
|
+
export class MultiDocumentHighlight {
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The URI of the document containing the highlights.
|
|
32
|
+
*/
|
|
33
|
+
uri: Uri;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The highlights for the document.
|
|
37
|
+
*/
|
|
38
|
+
highlights: DocumentHighlight[];
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Creates a new instance of MultiDocumentHighlight.
|
|
42
|
+
* @param uri The URI of the document containing the highlights.
|
|
43
|
+
* @param highlights The highlights for the document.
|
|
44
|
+
*/
|
|
45
|
+
constructor(uri: Uri, highlights: DocumentHighlight[]);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface MultiDocumentHighlightProvider {
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Provide a set of document highlights, like all occurrences of a variable or
|
|
52
|
+
* all exit-points of a function.
|
|
53
|
+
*
|
|
54
|
+
* @param document The document in which the command was invoked.
|
|
55
|
+
* @param position The position at which the command was invoked.
|
|
56
|
+
* @param otherDocuments An array of additional valid documents for which highlights should be provided.
|
|
57
|
+
* @param token A cancellation token.
|
|
58
|
+
* @returns A Map containing a mapping of the Uri of a document to the document highlights or a thenable that resolves to such. The lack of a result can be
|
|
59
|
+
* signaled by returning `undefined`, `null`, or an empty map.
|
|
60
|
+
*/
|
|
61
|
+
provideMultiDocumentHighlights(document: TextDocument, position: Position, otherDocuments: TextDocument[], token: CancellationToken):
|
|
62
|
+
ProviderResult<MultiDocumentHighlight[]>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
namespace languages {
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Register a multi document highlight provider.
|
|
69
|
+
*
|
|
70
|
+
* Multiple providers can be registered for a language. In that case providers are sorted
|
|
71
|
+
* by their {@link languages.match score} and groups sequentially asked for document highlights.
|
|
72
|
+
* The process stops when a provider returns a `non-falsy` or `non-failure` result.
|
|
73
|
+
*
|
|
74
|
+
* @param selector A selector that defines the documents this provider is applicable to.
|
|
75
|
+
* @param provider A multi-document highlight provider.
|
|
76
|
+
* @returns A {@link Disposable} that unregisters this provider when being disposed.
|
|
77
|
+
* @stubbed
|
|
78
|
+
*/
|
|
79
|
+
export function registerMultiDocumentHighlightProvider(selector: DocumentSelector, provider: MultiDocumentHighlightProvider): Disposable;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
}
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2023 Typefox and others.
|
|
3
|
-
//
|
|
4
|
-
// This program and the accompanying materials are made available under the
|
|
5
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
//
|
|
8
|
-
// This Source Code may also be made available under the following Secondary
|
|
9
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
// with the GNU Classpath Exception which is available at
|
|
12
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
|
|
17
|
-
/*---------------------------------------------------------------------------------------------
|
|
18
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
19
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
20
|
-
*--------------------------------------------------------------------------------------------*/
|
|
21
|
-
|
|
22
|
-
declare module '@theia/plugin' {
|
|
23
|
-
|
|
24
|
-
// https://github.com/microsoft/vscode/issues/124970
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* The execution state of a notebook cell.
|
|
28
|
-
*/
|
|
29
|
-
export enum NotebookCellExecutionState {
|
|
30
|
-
/**
|
|
31
|
-
* The cell is idle.
|
|
32
|
-
*/
|
|
33
|
-
Idle = 1,
|
|
34
|
-
/**
|
|
35
|
-
* Execution for the cell is pending.
|
|
36
|
-
*/
|
|
37
|
-
Pending = 2,
|
|
38
|
-
/**
|
|
39
|
-
* The cell is currently executing.
|
|
40
|
-
*/
|
|
41
|
-
Executing = 3,
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* An event describing a cell execution state change.
|
|
46
|
-
*/
|
|
47
|
-
export interface NotebookCellExecutionStateChangeEvent {
|
|
48
|
-
/**
|
|
49
|
-
* The {@link NotebookCell cell} for which the execution state has changed.
|
|
50
|
-
*/
|
|
51
|
-
readonly cell: NotebookCell;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* The new execution state of the cell.
|
|
55
|
-
*/
|
|
56
|
-
readonly state: NotebookCellExecutionState;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export namespace notebooks {
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* An {@link Event} which fires when the execution state of a cell has changed.
|
|
63
|
-
*/
|
|
64
|
-
// todo@API this is an event that is fired for a property that cells don't have and that makes me wonder
|
|
65
|
-
// how a correct consumer works, e.g the consumer could have been late and missed an event?
|
|
66
|
-
export const onDidChangeNotebookCellExecutionState: Event<NotebookCellExecutionStateChangeEvent>;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2023 Typefox and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
/*---------------------------------------------------------------------------------------------
|
|
18
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
19
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
20
|
+
*--------------------------------------------------------------------------------------------*/
|
|
21
|
+
|
|
22
|
+
declare module '@theia/plugin' {
|
|
23
|
+
|
|
24
|
+
// https://github.com/microsoft/vscode/issues/124970
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The execution state of a notebook cell.
|
|
28
|
+
*/
|
|
29
|
+
export enum NotebookCellExecutionState {
|
|
30
|
+
/**
|
|
31
|
+
* The cell is idle.
|
|
32
|
+
*/
|
|
33
|
+
Idle = 1,
|
|
34
|
+
/**
|
|
35
|
+
* Execution for the cell is pending.
|
|
36
|
+
*/
|
|
37
|
+
Pending = 2,
|
|
38
|
+
/**
|
|
39
|
+
* The cell is currently executing.
|
|
40
|
+
*/
|
|
41
|
+
Executing = 3,
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* An event describing a cell execution state change.
|
|
46
|
+
*/
|
|
47
|
+
export interface NotebookCellExecutionStateChangeEvent {
|
|
48
|
+
/**
|
|
49
|
+
* The {@link NotebookCell cell} for which the execution state has changed.
|
|
50
|
+
*/
|
|
51
|
+
readonly cell: NotebookCell;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* The new execution state of the cell.
|
|
55
|
+
*/
|
|
56
|
+
readonly state: NotebookCellExecutionState;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export namespace notebooks {
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* An {@link Event} which fires when the execution state of a cell has changed.
|
|
63
|
+
*/
|
|
64
|
+
// todo@API this is an event that is fired for a property that cells don't have and that makes me wonder
|
|
65
|
+
// how a correct consumer works, e.g the consumer could have been late and missed an event?
|
|
66
|
+
export const onDidChangeNotebookCellExecutionState: Event<NotebookCellExecutionStateChangeEvent>;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2023 Typefox and others.
|
|
3
|
-
//
|
|
4
|
-
// This program and the accompanying materials are made available under the
|
|
5
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
//
|
|
8
|
-
// This Source Code may also be made available under the following Secondary
|
|
9
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
// with the GNU Classpath Exception which is available at
|
|
12
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
|
|
17
|
-
/*---------------------------------------------------------------------------------------------
|
|
18
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
19
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
20
|
-
*--------------------------------------------------------------------------------------------*/
|
|
21
|
-
|
|
22
|
-
declare module '@theia/plugin' {
|
|
23
|
-
export interface NotebookControllerDetectionTask {
|
|
24
|
-
/**
|
|
25
|
-
* Dispose and remove the detection task.
|
|
26
|
-
*/
|
|
27
|
-
dispose(): void;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export class NotebookKernelSourceAction {
|
|
31
|
-
readonly label: string;
|
|
32
|
-
readonly description?: string;
|
|
33
|
-
readonly detail?: string;
|
|
34
|
-
readonly command: string | Command;
|
|
35
|
-
readonly documentation?: Uri;
|
|
36
|
-
|
|
37
|
-
constructor(label: string);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface NotebookKernelSourceActionProvider {
|
|
41
|
-
/**
|
|
42
|
-
* An optional event to signal that the kernel source actions have changed.
|
|
43
|
-
*/
|
|
44
|
-
onDidChangeNotebookKernelSourceActions?: Event<void>;
|
|
45
|
-
/**
|
|
46
|
-
* Provide kernel source actions
|
|
47
|
-
*/
|
|
48
|
-
provideNotebookKernelSourceActions(token: CancellationToken): ProviderResult<NotebookKernelSourceAction[]>;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export namespace notebooks {
|
|
52
|
-
/**
|
|
53
|
-
* Create notebook controller detection task
|
|
54
|
-
*/
|
|
55
|
-
export function createNotebookControllerDetectionTask(notebookType: string): NotebookControllerDetectionTask;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Register a notebook kernel source action provider
|
|
59
|
-
*/
|
|
60
|
-
export function registerKernelSourceActionProvider(notebookType: string, provider: NotebookKernelSourceActionProvider): Disposable;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2023 Typefox and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
/*---------------------------------------------------------------------------------------------
|
|
18
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
19
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
20
|
+
*--------------------------------------------------------------------------------------------*/
|
|
21
|
+
|
|
22
|
+
declare module '@theia/plugin' {
|
|
23
|
+
export interface NotebookControllerDetectionTask {
|
|
24
|
+
/**
|
|
25
|
+
* Dispose and remove the detection task.
|
|
26
|
+
*/
|
|
27
|
+
dispose(): void;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export class NotebookKernelSourceAction {
|
|
31
|
+
readonly label: string;
|
|
32
|
+
readonly description?: string;
|
|
33
|
+
readonly detail?: string;
|
|
34
|
+
readonly command: string | Command;
|
|
35
|
+
readonly documentation?: Uri;
|
|
36
|
+
|
|
37
|
+
constructor(label: string);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface NotebookKernelSourceActionProvider {
|
|
41
|
+
/**
|
|
42
|
+
* An optional event to signal that the kernel source actions have changed.
|
|
43
|
+
*/
|
|
44
|
+
onDidChangeNotebookKernelSourceActions?: Event<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Provide kernel source actions
|
|
47
|
+
*/
|
|
48
|
+
provideNotebookKernelSourceActions(token: CancellationToken): ProviderResult<NotebookKernelSourceAction[]>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export namespace notebooks {
|
|
52
|
+
/**
|
|
53
|
+
* Create notebook controller detection task
|
|
54
|
+
*/
|
|
55
|
+
export function createNotebookControllerDetectionTask(notebookType: string): NotebookControllerDetectionTask;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Register a notebook kernel source action provider
|
|
59
|
+
*/
|
|
60
|
+
export function registerKernelSourceActionProvider(notebookType: string, provider: NotebookKernelSourceActionProvider): Disposable;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2023 Typefox and others.
|
|
3
|
-
//
|
|
4
|
-
// This program and the accompanying materials are made available under the
|
|
5
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
//
|
|
8
|
-
// This Source Code may also be made available under the following Secondary
|
|
9
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
// with the GNU Classpath Exception which is available at
|
|
12
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
|
|
17
|
-
/*---------------------------------------------------------------------------------------------
|
|
18
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
19
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
20
|
-
*--------------------------------------------------------------------------------------------*/
|
|
21
|
-
|
|
22
|
-
declare module '@theia/plugin' {
|
|
23
|
-
|
|
24
|
-
// https://github.com/microsoft/vscode/issues/123601
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Represents a script that is loaded into the notebook renderer before rendering output. This allows
|
|
28
|
-
* to provide and share functionality for notebook markup and notebook output renderers.
|
|
29
|
-
*/
|
|
30
|
-
export class NotebookRendererScript {
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* APIs that the preload provides to the renderer. These are matched
|
|
34
|
-
* against the `dependencies` and `optionalDependencies` arrays in the
|
|
35
|
-
* notebook renderer contribution point.
|
|
36
|
-
*/
|
|
37
|
-
provides: readonly string[];
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* URI of the JavaScript module to preload.
|
|
41
|
-
*
|
|
42
|
-
* This module must export an `activate` function that takes a context object that contains the notebook API.
|
|
43
|
-
*/
|
|
44
|
-
uri: Uri;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @param uri URI of the JavaScript module to preload
|
|
48
|
-
* @param provides Value for the `provides` property
|
|
49
|
-
*/
|
|
50
|
-
constructor(uri: Uri, provides?: string | readonly string[]);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface NotebookController {
|
|
54
|
-
|
|
55
|
-
// todo@API allow add, not remove
|
|
56
|
-
readonly rendererScripts: NotebookRendererScript[];
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* An event that fires when a {@link NotebookController.rendererScripts renderer script} has send a message to
|
|
60
|
-
* the controller.
|
|
61
|
-
*/
|
|
62
|
-
readonly onDidReceiveMessage: Event<{ readonly editor: NotebookEditor; readonly message: unknown }>;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Send a message to the renderer of notebook editors.
|
|
66
|
-
*
|
|
67
|
-
* Note that only editors showing documents that are bound to this controller
|
|
68
|
-
* are receiving the message.
|
|
69
|
-
*
|
|
70
|
-
* @param message The message to send.
|
|
71
|
-
* @param editor A specific editor to send the message to. When `undefined` all applicable editors are receiving the message.
|
|
72
|
-
* @returns A promise that resolves to a boolean indicating if the message has been send or not.
|
|
73
|
-
*/
|
|
74
|
-
postMessage(message: unknown, editor?: NotebookEditor): Thenable<boolean>;
|
|
75
|
-
|
|
76
|
-
asWebviewUri(localResource: Uri): Uri;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export namespace notebooks {
|
|
80
|
-
|
|
81
|
-
export function createNotebookController(id: string, viewType: string, label: string, handler?: (cells: NotebookCell[], notebook: NotebookDocument,
|
|
82
|
-
controller: NotebookController) => void | Thenable<void>, rendererScripts?: NotebookRendererScript[]): NotebookController;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2023 Typefox and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
/*---------------------------------------------------------------------------------------------
|
|
18
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
19
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
20
|
+
*--------------------------------------------------------------------------------------------*/
|
|
21
|
+
|
|
22
|
+
declare module '@theia/plugin' {
|
|
23
|
+
|
|
24
|
+
// https://github.com/microsoft/vscode/issues/123601
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Represents a script that is loaded into the notebook renderer before rendering output. This allows
|
|
28
|
+
* to provide and share functionality for notebook markup and notebook output renderers.
|
|
29
|
+
*/
|
|
30
|
+
export class NotebookRendererScript {
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* APIs that the preload provides to the renderer. These are matched
|
|
34
|
+
* against the `dependencies` and `optionalDependencies` arrays in the
|
|
35
|
+
* notebook renderer contribution point.
|
|
36
|
+
*/
|
|
37
|
+
provides: readonly string[];
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* URI of the JavaScript module to preload.
|
|
41
|
+
*
|
|
42
|
+
* This module must export an `activate` function that takes a context object that contains the notebook API.
|
|
43
|
+
*/
|
|
44
|
+
uri: Uri;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @param uri URI of the JavaScript module to preload
|
|
48
|
+
* @param provides Value for the `provides` property
|
|
49
|
+
*/
|
|
50
|
+
constructor(uri: Uri, provides?: string | readonly string[]);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface NotebookController {
|
|
54
|
+
|
|
55
|
+
// todo@API allow add, not remove
|
|
56
|
+
readonly rendererScripts: NotebookRendererScript[];
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* An event that fires when a {@link NotebookController.rendererScripts renderer script} has send a message to
|
|
60
|
+
* the controller.
|
|
61
|
+
*/
|
|
62
|
+
readonly onDidReceiveMessage: Event<{ readonly editor: NotebookEditor; readonly message: unknown }>;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Send a message to the renderer of notebook editors.
|
|
66
|
+
*
|
|
67
|
+
* Note that only editors showing documents that are bound to this controller
|
|
68
|
+
* are receiving the message.
|
|
69
|
+
*
|
|
70
|
+
* @param message The message to send.
|
|
71
|
+
* @param editor A specific editor to send the message to. When `undefined` all applicable editors are receiving the message.
|
|
72
|
+
* @returns A promise that resolves to a boolean indicating if the message has been send or not.
|
|
73
|
+
*/
|
|
74
|
+
postMessage(message: unknown, editor?: NotebookEditor): Thenable<boolean>;
|
|
75
|
+
|
|
76
|
+
asWebviewUri(localResource: Uri): Uri;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export namespace notebooks {
|
|
80
|
+
|
|
81
|
+
export function createNotebookController(id: string, viewType: string, label: string, handler?: (cells: NotebookCell[], notebook: NotebookDocument,
|
|
82
|
+
controller: NotebookController) => void | Thenable<void>, rendererScripts?: NotebookRendererScript[]): NotebookController;
|
|
83
|
+
}
|
|
84
|
+
}
|