@theia/notebook 1.77.0-next.1 → 1.77.0-next.108
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/lib/browser/contributions/cell-operations.d.ts +3 -3
- package/lib/browser/contributions/cell-operations.d.ts.map +1 -1
- package/lib/browser/contributions/cell-operations.js +3 -6
- package/lib/browser/contributions/cell-operations.js.map +1 -1
- package/lib/browser/contributions/notebook-actions-contribution.d.ts +6 -6
- package/lib/browser/contributions/notebook-actions-contribution.d.ts.map +1 -1
- package/lib/browser/contributions/notebook-actions-contribution.js +81 -91
- package/lib/browser/contributions/notebook-actions-contribution.js.map +1 -1
- package/lib/browser/contributions/notebook-cell-actions-contribution.d.ts +6 -6
- package/lib/browser/contributions/notebook-cell-actions-contribution.d.ts.map +1 -1
- package/lib/browser/contributions/notebook-cell-actions-contribution.js +119 -130
- package/lib/browser/contributions/notebook-cell-actions-contribution.js.map +1 -1
- package/lib/browser/contributions/notebook-color-contribution.js +18 -21
- package/lib/browser/contributions/notebook-color-contribution.js.map +1 -1
- package/lib/browser/contributions/notebook-context-keys.js +72 -75
- package/lib/browser/contributions/notebook-context-keys.js.map +1 -1
- package/lib/browser/contributions/notebook-label-provider-contribution.d.ts +5 -5
- package/lib/browser/contributions/notebook-label-provider-contribution.d.ts.map +1 -1
- package/lib/browser/contributions/notebook-label-provider-contribution.js +20 -25
- package/lib/browser/contributions/notebook-label-provider-contribution.js.map +1 -1
- package/lib/browser/contributions/notebook-outline-contribution.d.ts +5 -5
- package/lib/browser/contributions/notebook-outline-contribution.d.ts.map +1 -1
- package/lib/browser/contributions/notebook-outline-contribution.js +31 -38
- package/lib/browser/contributions/notebook-outline-contribution.js.map +1 -1
- package/lib/browser/contributions/notebook-output-action-contribution.d.ts +3 -3
- package/lib/browser/contributions/notebook-output-action-contribution.d.ts.map +1 -1
- package/lib/browser/contributions/notebook-output-action-contribution.js +15 -20
- package/lib/browser/contributions/notebook-output-action-contribution.js.map +1 -1
- package/lib/browser/contributions/notebook-status-bar-contribution.d.ts +1 -1
- package/lib/browser/contributions/notebook-status-bar-contribution.d.ts.map +1 -1
- package/lib/browser/contributions/notebook-status-bar-contribution.js +16 -19
- package/lib/browser/contributions/notebook-status-bar-contribution.js.map +1 -1
- package/lib/browser/contributions/notebook-undo-redo-handler.d.ts +1 -1
- package/lib/browser/contributions/notebook-undo-redo-handler.d.ts.map +1 -1
- package/lib/browser/contributions/notebook-undo-redo-handler.js +10 -14
- package/lib/browser/contributions/notebook-undo-redo-handler.js.map +1 -1
- package/lib/browser/index.d.ts +13 -13
- package/lib/browser/index.d.ts.map +1 -1
- package/lib/browser/index.js +13 -16
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/notebook-cell-open-handler.d.ts +1 -1
- package/lib/browser/notebook-cell-open-handler.d.ts.map +1 -1
- package/lib/browser/notebook-cell-open-handler.js +14 -19
- package/lib/browser/notebook-cell-open-handler.js.map +1 -1
- package/lib/browser/notebook-cell-resource-resolver.d.ts +3 -3
- package/lib/browser/notebook-cell-resource-resolver.d.ts.map +1 -1
- package/lib/browser/notebook-cell-resource-resolver.js +21 -27
- package/lib/browser/notebook-cell-resource-resolver.js.map +1 -1
- package/lib/browser/notebook-editor-split-contribution.d.ts +2 -2
- package/lib/browser/notebook-editor-split-contribution.d.ts.map +1 -1
- package/lib/browser/notebook-editor-split-contribution.js +10 -14
- package/lib/browser/notebook-editor-split-contribution.js.map +1 -1
- package/lib/browser/notebook-editor-widget-factory.d.ts +3 -3
- package/lib/browser/notebook-editor-widget-factory.d.ts.map +1 -1
- package/lib/browser/notebook-editor-widget-factory.js +25 -32
- package/lib/browser/notebook-editor-widget-factory.js.map +1 -1
- package/lib/browser/notebook-editor-widget.d.ts +23 -24
- package/lib/browser/notebook-editor-widget.d.ts.map +1 -1
- package/lib/browser/notebook-editor-widget.js +92 -108
- package/lib/browser/notebook-editor-widget.js.map +1 -1
- package/lib/browser/notebook-frontend-module.js +97 -99
- package/lib/browser/notebook-frontend-module.js.map +1 -1
- package/lib/browser/notebook-open-handler.d.ts +3 -3
- package/lib/browser/notebook-open-handler.d.ts.map +1 -1
- package/lib/browser/notebook-open-handler.js +18 -22
- package/lib/browser/notebook-open-handler.js.map +1 -1
- package/lib/browser/notebook-output-utils.js +9 -13
- package/lib/browser/notebook-output-utils.js.map +1 -1
- package/lib/browser/notebook-renderer-registry.d.ts +1 -1
- package/lib/browser/notebook-renderer-registry.d.ts.map +1 -1
- package/lib/browser/notebook-renderer-registry.js +11 -14
- package/lib/browser/notebook-renderer-registry.js.map +1 -1
- package/lib/browser/notebook-type-registry.d.ts +2 -2
- package/lib/browser/notebook-type-registry.d.ts.map +1 -1
- package/lib/browser/notebook-type-registry.js +14 -19
- package/lib/browser/notebook-type-registry.js.map +1 -1
- package/lib/browser/notebook-types.d.ts +2 -2
- package/lib/browser/notebook-types.d.ts.map +1 -1
- package/lib/browser/notebook-types.js +2 -5
- package/lib/browser/notebook-types.js.map +1 -1
- package/lib/browser/renderers/cell-output-webview.d.ts +5 -5
- package/lib/browser/renderers/cell-output-webview.d.ts.map +1 -1
- package/lib/browser/renderers/cell-output-webview.js +2 -5
- package/lib/browser/renderers/cell-output-webview.js.map +1 -1
- package/lib/browser/service/notebook-cell-editor-service.d.ts +2 -2
- package/lib/browser/service/notebook-cell-editor-service.d.ts.map +1 -1
- package/lib/browser/service/notebook-cell-editor-service.js +18 -26
- package/lib/browser/service/notebook-cell-editor-service.js.map +1 -1
- package/lib/browser/service/notebook-cell-status-bar-service.d.ts +1 -1
- package/lib/browser/service/notebook-cell-status-bar-service.d.ts.map +1 -1
- package/lib/browser/service/notebook-cell-status-bar-service.js +12 -16
- package/lib/browser/service/notebook-cell-status-bar-service.js.map +1 -1
- package/lib/browser/service/notebook-clipboard-service.d.ts +2 -2
- package/lib/browser/service/notebook-clipboard-service.d.ts.map +1 -1
- package/lib/browser/service/notebook-clipboard-service.js +10 -14
- package/lib/browser/service/notebook-clipboard-service.js.map +1 -1
- package/lib/browser/service/notebook-context-manager.d.ts +5 -5
- package/lib/browser/service/notebook-context-manager.d.ts.map +1 -1
- package/lib/browser/service/notebook-context-manager.js +39 -45
- package/lib/browser/service/notebook-context-manager.js.map +1 -1
- package/lib/browser/service/notebook-editor-widget-service.d.ts +1 -1
- package/lib/browser/service/notebook-editor-widget-service.d.ts.map +1 -1
- package/lib/browser/service/notebook-editor-widget-service.js +28 -37
- package/lib/browser/service/notebook-editor-widget-service.js.map +1 -1
- package/lib/browser/service/notebook-execution-service.d.ts +6 -6
- package/lib/browser/service/notebook-execution-service.d.ts.map +1 -1
- package/lib/browser/service/notebook-execution-service.js +27 -36
- package/lib/browser/service/notebook-execution-service.js.map +1 -1
- package/lib/browser/service/notebook-execution-state-service.d.ts +4 -4
- package/lib/browser/service/notebook-execution-state-service.d.ts.map +1 -1
- package/lib/browser/service/notebook-execution-state-service.js +34 -41
- package/lib/browser/service/notebook-execution-state-service.js.map +1 -1
- package/lib/browser/service/notebook-kernel-history-service.d.ts +2 -2
- package/lib/browser/service/notebook-kernel-history-service.d.ts.map +1 -1
- package/lib/browser/service/notebook-kernel-history-service.js +18 -27
- package/lib/browser/service/notebook-kernel-history-service.js.map +1 -1
- package/lib/browser/service/notebook-kernel-quick-pick-service.d.ts +5 -5
- package/lib/browser/service/notebook-kernel-quick-pick-service.d.ts.map +1 -1
- package/lib/browser/service/notebook-kernel-quick-pick-service.js +42 -51
- package/lib/browser/service/notebook-kernel-quick-pick-service.js.map +1 -1
- package/lib/browser/service/notebook-kernel-service.d.ts +3 -3
- package/lib/browser/service/notebook-kernel-service.d.ts.map +1 -1
- package/lib/browser/service/notebook-kernel-service.js +25 -34
- package/lib/browser/service/notebook-kernel-service.js.map +1 -1
- package/lib/browser/service/notebook-model-resolver-service.d.ts +5 -5
- package/lib/browser/service/notebook-model-resolver-service.d.ts.map +1 -1
- package/lib/browser/service/notebook-model-resolver-service.js +27 -35
- package/lib/browser/service/notebook-model-resolver-service.js.map +1 -1
- package/lib/browser/service/notebook-monaco-text-model-service.d.ts +1 -1
- package/lib/browser/service/notebook-monaco-text-model-service.d.ts.map +1 -1
- package/lib/browser/service/notebook-monaco-text-model-service.js +17 -22
- package/lib/browser/service/notebook-monaco-text-model-service.js.map +1 -1
- package/lib/browser/service/notebook-options.d.ts +1 -1
- package/lib/browser/service/notebook-options.d.ts.map +1 -1
- package/lib/browser/service/notebook-options.js +34 -42
- package/lib/browser/service/notebook-options.js.map +1 -1
- package/lib/browser/service/notebook-renderer-messaging-service.d.ts +1 -1
- package/lib/browser/service/notebook-renderer-messaging-service.d.ts.map +1 -1
- package/lib/browser/service/notebook-renderer-messaging-service.js +11 -15
- package/lib/browser/service/notebook-renderer-messaging-service.js.map +1 -1
- package/lib/browser/service/notebook-service.d.ts +5 -5
- package/lib/browser/service/notebook-service.d.ts.map +1 -1
- package/lib/browser/service/notebook-service.js +35 -43
- package/lib/browser/service/notebook-service.js.map +1 -1
- package/lib/browser/view/notebook-cell-editor.d.ts +8 -8
- package/lib/browser/view/notebook-cell-editor.d.ts.map +1 -1
- package/lib/browser/view/notebook-cell-editor.js +31 -35
- package/lib/browser/view/notebook-cell-editor.js.map +1 -1
- package/lib/browser/view/notebook-cell-list-view.d.ts +6 -6
- package/lib/browser/view/notebook-cell-list-view.d.ts.map +1 -1
- package/lib/browser/view/notebook-cell-list-view.js +28 -34
- package/lib/browser/view/notebook-cell-list-view.js.map +1 -1
- package/lib/browser/view/notebook-cell-toolbar-factory.d.ts +2 -2
- package/lib/browser/view/notebook-cell-toolbar-factory.d.ts.map +1 -1
- package/lib/browser/view/notebook-cell-toolbar-factory.js +29 -37
- package/lib/browser/view/notebook-cell-toolbar-factory.js.map +1 -1
- package/lib/browser/view/notebook-cell-toolbar.d.ts +1 -1
- package/lib/browser/view/notebook-cell-toolbar.d.ts.map +1 -1
- package/lib/browser/view/notebook-cell-toolbar.js +10 -15
- package/lib/browser/view/notebook-cell-toolbar.js.map +1 -1
- package/lib/browser/view/notebook-code-cell-view.d.ts +13 -13
- package/lib/browser/view/notebook-code-cell-view.d.ts.map +1 -1
- package/lib/browser/view/notebook-code-cell-view.js +89 -110
- package/lib/browser/view/notebook-code-cell-view.js.map +1 -1
- package/lib/browser/view/notebook-find-widget.js +20 -24
- package/lib/browser/view/notebook-find-widget.js.map +1 -1
- package/lib/browser/view/notebook-main-toolbar.d.ts +3 -3
- package/lib/browser/view/notebook-main-toolbar.d.ts.map +1 -1
- package/lib/browser/view/notebook-main-toolbar.js +41 -51
- package/lib/browser/view/notebook-main-toolbar.js.map +1 -1
- package/lib/browser/view/notebook-markdown-cell-view.d.ts +8 -8
- package/lib/browser/view/notebook-markdown-cell-view.d.ts.map +1 -1
- package/lib/browser/view/notebook-markdown-cell-view.js +47 -59
- package/lib/browser/view/notebook-markdown-cell-view.js.map +1 -1
- package/lib/browser/view/notebook-viewport-service.d.ts +1 -1
- package/lib/browser/view/notebook-viewport-service.d.ts.map +1 -1
- package/lib/browser/view/notebook-viewport-service.js +7 -10
- package/lib/browser/view/notebook-viewport-service.js.map +1 -1
- package/lib/browser/view-model/notebook-cell-model.d.ts +5 -5
- package/lib/browser/view-model/notebook-cell-model.d.ts.map +1 -1
- package/lib/browser/view-model/notebook-cell-model.js +45 -57
- package/lib/browser/view-model/notebook-cell-model.js.map +1 -1
- package/lib/browser/view-model/notebook-cell-output-model.d.ts +1 -1
- package/lib/browser/view-model/notebook-cell-output-model.d.ts.map +1 -1
- package/lib/browser/view-model/notebook-cell-output-model.js +7 -11
- package/lib/browser/view-model/notebook-cell-output-model.js.map +1 -1
- package/lib/browser/view-model/notebook-model.d.ts +6 -6
- package/lib/browser/view-model/notebook-model.d.ts.map +1 -1
- package/lib/browser/view-model/notebook-model.js +49 -62
- package/lib/browser/view-model/notebook-model.js.map +1 -1
- package/lib/browser/view-model/notebook-view-model.d.ts +2 -2
- package/lib/browser/view-model/notebook-view-model.d.ts.map +1 -1
- package/lib/browser/view-model/notebook-view-model.js +11 -15
- package/lib/browser/view-model/notebook-view-model.js.map +1 -1
- package/lib/common/index.d.ts +2 -2
- package/lib/common/index.d.ts.map +1 -1
- package/lib/common/index.js +2 -5
- package/lib/common/index.js.map +1 -1
- package/lib/common/notebook-common.js +20 -24
- package/lib/common/notebook-common.js.map +1 -1
- package/lib/common/notebook-preferences.js +16 -20
- package/lib/common/notebook-preferences.js.map +1 -1
- package/lib/common/notebook-protocol.js +1 -2
- package/lib/common/notebook-protocol.js.map +1 -1
- package/lib/common/notebook-range.js +1 -2
- package/lib/common/notebook-range.js.map +1 -1
- package/lib/node/notebook-backend-module.js +4 -6
- package/lib/node/notebook-backend-module.js.map +1 -1
- package/package.json +17 -7
- package/src/browser/contributions/cell-operations.ts +3 -3
- package/src/browser/contributions/notebook-actions-contribution.ts +9 -9
- package/src/browser/contributions/notebook-cell-actions-contribution.ts +12 -12
- package/src/browser/contributions/notebook-label-provider-contribution.ts +6 -6
- package/src/browser/contributions/notebook-outline-contribution.ts +6 -6
- package/src/browser/contributions/notebook-output-action-contribution.ts +3 -3
- package/src/browser/contributions/notebook-status-bar-contribution.ts +2 -2
- package/src/browser/contributions/notebook-undo-redo-handler.ts +1 -1
- package/src/browser/index.ts +13 -13
- package/src/browser/notebook-cell-open-handler.ts +2 -2
- package/src/browser/notebook-cell-resource-resolver.ts +4 -4
- package/src/browser/notebook-editor-split-contribution.ts +2 -2
- package/src/browser/notebook-editor-widget-factory.ts +4 -4
- package/src/browser/notebook-editor-widget.tsx +22 -18
- package/src/browser/notebook-frontend-module.ts +33 -33
- package/src/browser/notebook-open-handler.ts +3 -3
- package/src/browser/notebook-renderer-registry.ts +1 -1
- package/src/browser/notebook-type-registry.ts +2 -2
- package/src/browser/notebook-types.ts +2 -2
- package/src/browser/renderers/cell-output-webview.ts +5 -5
- package/src/browser/service/notebook-cell-editor-service.ts +3 -3
- package/src/browser/service/notebook-cell-status-bar-service.ts +1 -1
- package/src/browser/service/notebook-clipboard-service.ts +2 -2
- package/src/browser/service/notebook-context-manager.ts +7 -7
- package/src/browser/service/notebook-editor-widget-service.ts +2 -2
- package/src/browser/service/notebook-execution-service.ts +7 -7
- package/src/browser/service/notebook-execution-state-service.ts +4 -4
- package/src/browser/service/notebook-kernel-history-service.ts +3 -3
- package/src/browser/service/notebook-kernel-quick-pick-service.ts +6 -6
- package/src/browser/service/notebook-kernel-service.ts +3 -3
- package/src/browser/service/notebook-model-resolver-service.ts +5 -5
- package/src/browser/service/notebook-monaco-text-model-service.ts +2 -2
- package/src/browser/service/notebook-options.ts +4 -4
- package/src/browser/service/notebook-renderer-messaging-service.ts +1 -1
- package/src/browser/service/notebook-service.ts +5 -5
- package/src/browser/view/notebook-cell-editor.tsx +12 -12
- package/src/browser/view/notebook-cell-list-view.tsx +8 -8
- package/src/browser/view/notebook-cell-toolbar-factory.tsx +3 -3
- package/src/browser/view/notebook-cell-toolbar.tsx +1 -1
- package/src/browser/view/notebook-code-cell-view.tsx +16 -16
- package/src/browser/view/notebook-find-widget.tsx +1 -1
- package/src/browser/view/notebook-main-toolbar.tsx +4 -4
- package/src/browser/view/notebook-markdown-cell-view.tsx +12 -12
- package/src/browser/view-model/notebook-cell-model.ts +6 -6
- package/src/browser/view-model/notebook-cell-output-model.ts +2 -2
- package/src/browser/view-model/notebook-model.ts +6 -6
- package/src/browser/view-model/notebook-view-model.ts +2 -2
- package/src/common/index.ts +2 -2
- package/src/node/notebook-backend-module.ts +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2024 TypeFox and others.
|
|
4
3
|
//
|
|
@@ -18,12 +17,9 @@
|
|
|
18
17
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
19
18
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
20
19
|
*--------------------------------------------------------------------------------------------*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const core_1 = require("@theia/core");
|
|
25
|
-
const preference_schema_1 = require("@theia/core/lib/common/preferences/preference-schema");
|
|
26
|
-
var NotebookPreferences;
|
|
20
|
+
import { nls } from '@theia/core';
|
|
21
|
+
import { PreferenceContribution } from '@theia/core/lib/common/preferences/preference-schema';
|
|
22
|
+
export var NotebookPreferences;
|
|
27
23
|
(function (NotebookPreferences) {
|
|
28
24
|
NotebookPreferences.NOTEBOOK_LINE_NUMBERS = 'notebook.lineNumbers';
|
|
29
25
|
NotebookPreferences.OUTPUT_LINE_HEIGHT = 'notebook.output.lineHeight';
|
|
@@ -32,47 +28,47 @@ var NotebookPreferences;
|
|
|
32
28
|
NotebookPreferences.OUTPUT_SCROLLING = 'notebook.output.scrolling';
|
|
33
29
|
NotebookPreferences.OUTPUT_WORD_WRAP = 'notebook.output.wordWrap';
|
|
34
30
|
NotebookPreferences.OUTPUT_LINE_LIMIT = 'notebook.output.textLineLimit';
|
|
35
|
-
})(NotebookPreferences || (
|
|
36
|
-
|
|
31
|
+
})(NotebookPreferences || (NotebookPreferences = {}));
|
|
32
|
+
export const notebookPreferenceSchema = {
|
|
37
33
|
properties: {
|
|
38
34
|
[NotebookPreferences.NOTEBOOK_LINE_NUMBERS]: {
|
|
39
35
|
type: 'string',
|
|
40
36
|
enum: ['on', 'off'],
|
|
41
37
|
default: 'off',
|
|
42
|
-
description:
|
|
38
|
+
description: nls.localizeByDefault('Controls the display of line numbers in the cell editor.')
|
|
43
39
|
},
|
|
44
40
|
[NotebookPreferences.OUTPUT_LINE_HEIGHT]: {
|
|
45
41
|
// eslint-disable-next-line max-len
|
|
46
|
-
markdownDescription:
|
|
42
|
+
markdownDescription: nls.localizeByDefault('Line height of the output text within notebook cells.\n - When set to 0, editor line height is used.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.'),
|
|
47
43
|
type: 'number',
|
|
48
44
|
default: 0,
|
|
49
45
|
tags: ['notebookLayout', 'notebookOutputLayout']
|
|
50
46
|
},
|
|
51
47
|
[NotebookPreferences.OUTPUT_FONT_SIZE]: {
|
|
52
|
-
markdownDescription:
|
|
48
|
+
markdownDescription: nls.localizeByDefault('Font size for the output text within notebook cells. When set to 0, {0} is used.', '`#editor.fontSize#`'),
|
|
53
49
|
type: 'number',
|
|
54
50
|
default: 0,
|
|
55
51
|
tags: ['notebookLayout', 'notebookOutputLayout']
|
|
56
52
|
},
|
|
57
53
|
[NotebookPreferences.OUTPUT_FONT_FAMILY]: {
|
|
58
|
-
markdownDescription:
|
|
54
|
+
markdownDescription: nls.localizeByDefault('The font family of the output text within notebook cells. When set to empty, the {0} is used.', '`#editor.fontFamily#`'),
|
|
59
55
|
type: 'string',
|
|
60
56
|
tags: ['notebookLayout', 'notebookOutputLayout']
|
|
61
57
|
},
|
|
62
58
|
[NotebookPreferences.OUTPUT_SCROLLING]: {
|
|
63
|
-
markdownDescription:
|
|
59
|
+
markdownDescription: nls.localizeByDefault('Initially render notebook outputs in a scrollable region when longer than the limit.'),
|
|
64
60
|
type: 'boolean',
|
|
65
61
|
tags: ['notebookLayout', 'notebookOutputLayout'],
|
|
66
62
|
default: false
|
|
67
63
|
},
|
|
68
64
|
[NotebookPreferences.OUTPUT_WORD_WRAP]: {
|
|
69
|
-
markdownDescription:
|
|
65
|
+
markdownDescription: nls.localizeByDefault('Controls whether the lines in output should wrap.'),
|
|
70
66
|
type: 'boolean',
|
|
71
67
|
tags: ['notebookLayout', 'notebookOutputLayout'],
|
|
72
68
|
default: false
|
|
73
69
|
},
|
|
74
70
|
[NotebookPreferences.OUTPUT_LINE_LIMIT]: {
|
|
75
|
-
markdownDescription:
|
|
71
|
+
markdownDescription: nls.localizeByDefault('Controls how many lines of text are displayed in a text output. If {0} is enabled, this setting is used to determine the scroll height of the output.', '`#notebook.output.scrolling#`'),
|
|
76
72
|
type: 'number',
|
|
77
73
|
default: 30,
|
|
78
74
|
tags: ['notebookLayout', 'notebookOutputLayout'],
|
|
@@ -80,10 +76,10 @@ exports.notebookPreferenceSchema = {
|
|
|
80
76
|
},
|
|
81
77
|
}
|
|
82
78
|
};
|
|
83
|
-
|
|
84
|
-
function bindNotebookPreferences(bind) {
|
|
79
|
+
export const NotebookPreferenceContribution = Symbol('NotebookPreferenceContribution');
|
|
80
|
+
export function bindNotebookPreferences(bind) {
|
|
85
81
|
// We don't need a NotebookPreferenceConfiguration class, so there's no preference proxy to bind
|
|
86
|
-
bind(
|
|
87
|
-
bind(
|
|
82
|
+
bind(NotebookPreferenceContribution).toConstantValue({ schema: notebookPreferenceSchema });
|
|
83
|
+
bind(PreferenceContribution).toService(NotebookPreferenceContribution);
|
|
88
84
|
}
|
|
89
85
|
//# sourceMappingURL=notebook-preferences.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notebook-preferences.js","sourceRoot":"","sources":["../../src/common/notebook-preferences.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notebook-preferences.js","sourceRoot":"","sources":["../../src/common/notebook-preferences.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2023 Typefox and others.
|
|
4
3
|
//
|
|
@@ -14,5 +13,5 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
16
|
+
export {};
|
|
18
17
|
//# sourceMappingURL=notebook-protocol.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notebook-protocol.js","sourceRoot":"","sources":["../../src/common/notebook-protocol.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notebook-protocol.js","sourceRoot":"","sources":["../../src/common/notebook-protocol.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2023 Typefox and others.
|
|
4
3
|
//
|
|
@@ -14,5 +13,5 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
16
|
+
export {};
|
|
18
17
|
//# sourceMappingURL=notebook-range.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notebook-range.js","sourceRoot":"","sources":["../../src/common/notebook-range.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notebook-range.js","sourceRoot":"","sources":["../../src/common/notebook-range.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2025 STMicroelectronics and others.
|
|
4
3
|
//
|
|
@@ -14,10 +13,9 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
(0, notebook_preferences_1.bindNotebookPreferences)(bind);
|
|
16
|
+
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
17
|
+
import { bindNotebookPreferences } from '../common/notebook-preferences.js';
|
|
18
|
+
export default new ContainerModule(bind => {
|
|
19
|
+
bindNotebookPreferences(bind);
|
|
22
20
|
});
|
|
23
21
|
//# sourceMappingURL=notebook-backend-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notebook-backend-module.js","sourceRoot":"","sources":["../../src/node/notebook-backend-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notebook-backend-module.js","sourceRoot":"","sources":["../../src/node/notebook-backend-module.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,eAAe,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;IACtC,uBAAuB,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/notebook",
|
|
3
|
-
"version": "1.77.0-next.
|
|
3
|
+
"version": "1.77.0-next.108+30a548238",
|
|
4
4
|
"description": "Theia - Notebook Extension",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.77.0-next.
|
|
7
|
-
"@theia/editor": "1.77.0-next.
|
|
8
|
-
"@theia/filesystem": "1.77.0-next.
|
|
9
|
-
"@theia/monaco": "1.77.0-next.
|
|
7
|
+
"@theia/core": "1.77.0-next.108+30a548238",
|
|
8
|
+
"@theia/editor": "1.77.0-next.108+30a548238",
|
|
9
|
+
"@theia/filesystem": "1.77.0-next.108+30a548238",
|
|
10
|
+
"@theia/monaco": "1.77.0-next.108+30a548238",
|
|
10
11
|
"@theia/monaco-editor-core": "1.108.201",
|
|
11
|
-
"@theia/outline-view": "1.77.0-next.
|
|
12
|
+
"@theia/outline-view": "1.77.0-next.108+30a548238",
|
|
12
13
|
"advanced-mark.js": "^2.7.1",
|
|
13
14
|
"react-perfect-scrollbar": "^1.5.8",
|
|
14
15
|
"tslib": "^2.8.1"
|
|
@@ -54,5 +55,14 @@
|
|
|
54
55
|
"nyc": {
|
|
55
56
|
"extends": "../../configs/nyc.json"
|
|
56
57
|
},
|
|
57
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "30a5482386400715f42b541b4b142fd399ada7f3",
|
|
59
|
+
"exports": {
|
|
60
|
+
"./package.json": "./package.json",
|
|
61
|
+
"./lib/browser": "./lib/browser/index.js",
|
|
62
|
+
"./lib/common": "./lib/common/index.js",
|
|
63
|
+
"./lib/*.json": "./lib/*.json",
|
|
64
|
+
"./lib/*.js": "./lib/*.js",
|
|
65
|
+
"./lib/*": "./lib/*.js",
|
|
66
|
+
"./*": "./*"
|
|
67
|
+
}
|
|
58
68
|
}
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { CellEditType, CellKind } from '../../common';
|
|
18
|
-
import { NotebookCellModel } from '../view-model/notebook-cell-model';
|
|
19
|
-
import { NotebookModel } from '../view-model/notebook-model';
|
|
17
|
+
import { CellEditType, CellKind } from '../../common/index.js';
|
|
18
|
+
import { NotebookCellModel } from '../view-model/notebook-cell-model.js';
|
|
19
|
+
import { NotebookModel } from '../view-model/notebook-model.js';
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* a collection of different reusable notbook cell operations
|
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
import { Command, CommandContribution, CommandHandler, CommandRegistry, MenuContribution, MenuModelRegistry, nls, URI } from '@theia/core';
|
|
18
18
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
19
19
|
import { ApplicationShell, codicon, KeybindingContribution, KeybindingRegistry } from '@theia/core/lib/browser';
|
|
20
|
-
import { NotebookModel } from '../view-model/notebook-model';
|
|
21
|
-
import { NotebookService } from '../service/notebook-service';
|
|
22
|
-
import { CellEditType, CellKind, NotebookCommand } from '../../common';
|
|
23
|
-
import { NotebookKernelQuickPickService } from '../service/notebook-kernel-quick-pick-service';
|
|
24
|
-
import { NotebookExecutionService } from '../service/notebook-execution-service';
|
|
25
|
-
import { NotebookEditorWidgetService } from '../service/notebook-editor-widget-service';
|
|
20
|
+
import { NotebookModel } from '../view-model/notebook-model.js';
|
|
21
|
+
import { NotebookService } from '../service/notebook-service.js';
|
|
22
|
+
import { CellEditType, CellKind, NotebookCommand } from '../../common/index.js';
|
|
23
|
+
import { NotebookKernelQuickPickService } from '../service/notebook-kernel-quick-pick-service.js';
|
|
24
|
+
import { NotebookExecutionService } from '../service/notebook-execution-service.js';
|
|
25
|
+
import { NotebookEditorWidgetService } from '../service/notebook-editor-widget-service.js';
|
|
26
26
|
import {
|
|
27
27
|
NOTEBOOK_CELL_CURSOR_FIRST_LINE, NOTEBOOK_CELL_CURSOR_LAST_LINE,
|
|
28
28
|
NOTEBOOK_CELL_FOCUSED, NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_HAS_OUTPUTS, NOTEBOOK_OUTPUT_FOCUSED
|
|
29
|
-
} from './notebook-context-keys';
|
|
30
|
-
import { NotebookClipboardService } from '../service/notebook-clipboard-service';
|
|
29
|
+
} from './notebook-context-keys.js';
|
|
30
|
+
import { NotebookClipboardService } from '../service/notebook-clipboard-service.js';
|
|
31
31
|
import { ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
32
|
-
import { NotebookEditorWidget } from '../notebook-editor-widget';
|
|
32
|
+
import { NotebookEditorWidget } from '../notebook-editor-widget.js';
|
|
33
33
|
|
|
34
34
|
export namespace NotebookCommands {
|
|
35
35
|
export const ADD_NEW_CELL_COMMAND = Command.toDefaultLocalizedCommand({
|
|
@@ -17,26 +17,26 @@
|
|
|
17
17
|
import { Command, CommandContribution, CommandHandler, CommandRegistry, MenuContribution, MenuModelRegistry, nls } from '@theia/core';
|
|
18
18
|
import { codicon, Key, KeybindingContribution, KeybindingRegistry, KeyCode, KeyModifier } from '@theia/core/lib/browser';
|
|
19
19
|
import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
|
|
20
|
-
import { NotebookModel } from '../view-model/notebook-model';
|
|
21
|
-
import { NotebookCellModel } from '../view-model/notebook-cell-model';
|
|
20
|
+
import { NotebookModel } from '../view-model/notebook-model.js';
|
|
21
|
+
import { NotebookCellModel } from '../view-model/notebook-cell-model.js';
|
|
22
22
|
import {
|
|
23
23
|
NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, NOTEBOOK_CELL_TYPE,
|
|
24
24
|
NotebookContextKeys, NOTEBOOK_CELL_EXECUTING, NOTEBOOK_EDITOR_FOCUSED,
|
|
25
25
|
NOTEBOOK_CELL_FOCUSED,
|
|
26
26
|
NOTEBOOK_CELL_LIST_FOCUSED
|
|
27
|
-
} from './notebook-context-keys';
|
|
27
|
+
} from './notebook-context-keys.js';
|
|
28
28
|
import { ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
29
|
-
import { NotebookExecutionService } from '../service/notebook-execution-service';
|
|
30
|
-
import { NotebookCellOutputModel } from '../view-model/notebook-cell-output-model';
|
|
31
|
-
import { CellData, CellEditType, CellKind } from '../../common';
|
|
32
|
-
import { NotebookEditorWidgetService } from '../service/notebook-editor-widget-service';
|
|
33
|
-
import { NotebookCommands } from './notebook-actions-contribution';
|
|
34
|
-
import { changeCellType } from './cell-operations';
|
|
29
|
+
import { NotebookExecutionService } from '../service/notebook-execution-service.js';
|
|
30
|
+
import { NotebookCellOutputModel } from '../view-model/notebook-cell-output-model.js';
|
|
31
|
+
import { CellData, CellEditType, CellKind } from '../../common/index.js';
|
|
32
|
+
import { NotebookEditorWidgetService } from '../service/notebook-editor-widget-service.js';
|
|
33
|
+
import { NotebookCommands } from './notebook-actions-contribution.js';
|
|
34
|
+
import { changeCellType } from './cell-operations.js';
|
|
35
35
|
import { EditorLanguageQuickPickService } from '@theia/editor/lib/browser/editor-language-quick-pick-service';
|
|
36
|
-
import { NotebookService } from '../service/notebook-service';
|
|
37
|
-
import { Selection } from '@theia/monaco-editor-core/esm/vs/editor/common/core/selection';
|
|
36
|
+
import { NotebookService } from '../service/notebook-service.js';
|
|
37
|
+
import { Selection } from '@theia/monaco-editor-core/esm/vs/editor/common/core/selection.js';
|
|
38
38
|
import { Range } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
39
|
-
import { NOTEBOOK_EDITOR_ID_PREFIX } from '../notebook-editor-widget';
|
|
39
|
+
import { NOTEBOOK_EDITOR_ID_PREFIX } from '../notebook-editor-widget.js';
|
|
40
40
|
|
|
41
41
|
export namespace NotebookCellCommands {
|
|
42
42
|
/** Parameters: notebookModel: NotebookModel | undefined, cell: NotebookCellModel */
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
|
|
17
17
|
import { codicon, LabelProvider, LabelProviderContribution } from '@theia/core/lib/browser';
|
|
18
18
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
19
|
-
import { CellKind, CellUri } from '../../common';
|
|
20
|
-
import { NotebookService } from '../service/notebook-service';
|
|
21
|
-
import { NotebookCellOutlineNode } from './notebook-outline-contribution';
|
|
22
|
-
import type Token
|
|
23
|
-
import markdownit
|
|
19
|
+
import { CellKind, CellUri } from '../../common/index.js';
|
|
20
|
+
import { NotebookService } from '../service/notebook-service.js';
|
|
21
|
+
import { NotebookCellOutlineNode } from './notebook-outline-contribution.js';
|
|
22
|
+
import type Token from 'markdown-it/lib/token.mjs';
|
|
23
|
+
import markdownit from '@theia/core/shared/markdown-it';
|
|
24
24
|
import * as markdownitemoji from '@theia/core/shared/markdown-it-emoji';
|
|
25
|
-
import { NotebookCellModel } from '../view-model/notebook-cell-model';
|
|
25
|
+
import { NotebookCellModel } from '../view-model/notebook-cell-model.js';
|
|
26
26
|
import { URI } from '@theia/core';
|
|
27
27
|
|
|
28
28
|
@injectable()
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
|
|
17
17
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
18
18
|
import { codicon, FrontendApplicationContribution, LabelProvider, TreeNode } from '@theia/core/lib/browser';
|
|
19
|
-
import { NotebookEditorWidgetService } from '../service/notebook-editor-widget-service';
|
|
19
|
+
import { NotebookEditorWidgetService } from '../service/notebook-editor-widget-service.js';
|
|
20
20
|
import { OutlineViewService } from '@theia/outline-view/lib/browser/outline-view-service';
|
|
21
|
-
import { NotebookModel } from '../view-model/notebook-model';
|
|
21
|
+
import { NotebookModel } from '../view-model/notebook-model.js';
|
|
22
22
|
import { OutlineSymbolInformationNode } from '@theia/outline-view/lib/browser/outline-view-widget';
|
|
23
|
-
import { NotebookEditorWidget } from '../notebook-editor-widget';
|
|
23
|
+
import { NotebookEditorWidget } from '../notebook-editor-widget.js';
|
|
24
24
|
import { DisposableCollection, isObject, URI } from '@theia/core';
|
|
25
|
-
import { CellKind, CellUri } from '../../common';
|
|
26
|
-
import { NotebookService } from '../service/notebook-service';
|
|
27
|
-
import { NotebookViewModel } from '../view-model/notebook-view-model';
|
|
25
|
+
import { CellKind, CellUri } from '../../common/index.js';
|
|
26
|
+
import { NotebookService } from '../service/notebook-service.js';
|
|
27
|
+
import { NotebookViewModel } from '../view-model/notebook-view-model.js';
|
|
28
28
|
export interface NotebookCellOutlineNode extends OutlineSymbolInformationNode {
|
|
29
29
|
uri: URI;
|
|
30
30
|
}
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
import { Command, CommandContribution, CommandRegistry } from '@theia/core';
|
|
18
18
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
19
|
-
import { NotebookEditorWidgetService } from '../service/notebook-editor-widget-service';
|
|
20
|
-
import { CellOutput, CellUri } from '../../common';
|
|
21
|
-
import { NotebookCellModel } from '../view-model/notebook-cell-model';
|
|
19
|
+
import { NotebookEditorWidgetService } from '../service/notebook-editor-widget-service.js';
|
|
20
|
+
import { CellOutput, CellUri } from '../../common/index.js';
|
|
21
|
+
import { NotebookCellModel } from '../view-model/notebook-cell-model.js';
|
|
22
22
|
import { EditorManager } from '@theia/editor/lib/browser';
|
|
23
23
|
|
|
24
24
|
export namespace NotebookOutputCommands {
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
import { injectable } from '@theia/core/shared/inversify';
|
|
18
18
|
import { StatusBar, StatusBarAlignment, Widget, WidgetStatusBarContribution } from '@theia/core/lib/browser';
|
|
19
19
|
import { Disposable } from '@theia/core/lib/common';
|
|
20
|
-
import { NotebookEditorWidget } from '../notebook-editor-widget';
|
|
20
|
+
import { NotebookEditorWidget } from '../notebook-editor-widget.js';
|
|
21
21
|
import { nls } from '@theia/core';
|
|
22
|
-
import { NotebookCommands } from './notebook-actions-contribution';
|
|
22
|
+
import { NotebookCommands } from './notebook-actions-contribution.js';
|
|
23
23
|
|
|
24
24
|
export const NOTEBOOK_CELL_SELECTION_STATUS_BAR_ID = 'notebook-cell-selection-position';
|
|
25
25
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
18
18
|
import { ApplicationShell, UndoRedoHandler } from '@theia/core/lib/browser';
|
|
19
|
-
import { NotebookEditorWidget } from '../notebook-editor-widget';
|
|
19
|
+
import { NotebookEditorWidget } from '../notebook-editor-widget.js';
|
|
20
20
|
|
|
21
21
|
@injectable()
|
|
22
22
|
export class NotebookUndoRedoHandler implements UndoRedoHandler<NotebookEditorWidget> {
|
package/src/browser/index.ts
CHANGED
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
export * from './notebook-type-registry';
|
|
18
|
-
export * from './notebook-renderer-registry';
|
|
19
|
-
export * from './notebook-editor-widget';
|
|
20
|
-
export * from './service/notebook-service';
|
|
21
|
-
export * from './service/notebook-editor-widget-service';
|
|
22
|
-
export * from './service/notebook-kernel-service';
|
|
23
|
-
export * from './service/notebook-execution-state-service';
|
|
24
|
-
export * from './service/notebook-model-resolver-service';
|
|
25
|
-
export * from './service/notebook-renderer-messaging-service';
|
|
26
|
-
export * from './service/notebook-cell-editor-service';
|
|
27
|
-
export * from './renderers/cell-output-webview';
|
|
28
|
-
export * from './notebook-types';
|
|
29
|
-
export * from './notebook-editor-split-contribution';
|
|
17
|
+
export * from './notebook-type-registry.js';
|
|
18
|
+
export * from './notebook-renderer-registry.js';
|
|
19
|
+
export * from './notebook-editor-widget.js';
|
|
20
|
+
export * from './service/notebook-service.js';
|
|
21
|
+
export * from './service/notebook-editor-widget-service.js';
|
|
22
|
+
export * from './service/notebook-kernel-service.js';
|
|
23
|
+
export * from './service/notebook-execution-state-service.js';
|
|
24
|
+
export * from './service/notebook-model-resolver-service.js';
|
|
25
|
+
export * from './service/notebook-renderer-messaging-service.js';
|
|
26
|
+
export * from './service/notebook-cell-editor-service.js';
|
|
27
|
+
export * from './renderers/cell-output-webview.js';
|
|
28
|
+
export * from './notebook-types.js';
|
|
29
|
+
export * from './notebook-editor-split-contribution.js';
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
import { URI, MaybePromise, ILogger } from '@theia/core';
|
|
18
18
|
import { OpenHandler, OpenerOptions } from '@theia/core/lib/browser';
|
|
19
19
|
import { inject, injectable, named } from '@theia/core/shared/inversify';
|
|
20
|
-
import { NotebookEditorWidgetService } from './service/notebook-editor-widget-service';
|
|
21
|
-
import { CellUri } from '../common';
|
|
20
|
+
import { NotebookEditorWidgetService } from './service/notebook-editor-widget-service.js';
|
|
21
|
+
import { CellUri } from '../common/index.js';
|
|
22
22
|
|
|
23
23
|
@injectable()
|
|
24
24
|
export class NotebookCellOpenHandler implements OpenHandler {
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
import { Event, Emitter, Resource, ResourceReadOptions, ResourceResolver, URI } from '@theia/core';
|
|
18
18
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
19
19
|
import { MarkdownString } from '@theia/core/lib/common/markdown-rendering';
|
|
20
|
-
import { CellUri } from '../common';
|
|
21
|
-
import { NotebookService } from './service/notebook-service';
|
|
22
|
-
import { NotebookCellModel } from './view-model/notebook-cell-model';
|
|
23
|
-
import { NotebookModel } from './view-model/notebook-model';
|
|
20
|
+
import { CellUri } from '../common/index.js';
|
|
21
|
+
import { NotebookService } from './service/notebook-service.js';
|
|
22
|
+
import { NotebookCellModel } from './view-model/notebook-cell-model.js';
|
|
23
|
+
import { NotebookModel } from './view-model/notebook-model.js';
|
|
24
24
|
|
|
25
25
|
export class NotebookCellResource implements Resource {
|
|
26
26
|
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
18
18
|
import { Widget, DockLayout } from '@theia/core/lib/browser';
|
|
19
19
|
import { SplitEditorContribution } from '@theia/editor/lib/browser/split-editor-contribution';
|
|
20
|
-
import { NotebookEditorWidget } from './notebook-editor-widget';
|
|
21
|
-
import { NotebookOpenHandler } from './notebook-open-handler';
|
|
20
|
+
import { NotebookEditorWidget } from './notebook-editor-widget.js';
|
|
21
|
+
import { NotebookOpenHandler } from './notebook-open-handler.js';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Implementation of SplitEditorContribution for notebook editors (NotebookEditorWidget).
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
import { nls, URI } from '@theia/core';
|
|
18
18
|
import { WidgetFactory, NavigatableWidgetOptions, LabelProvider } from '@theia/core/lib/browser';
|
|
19
19
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
20
|
-
import { NotebookEditorWidget, NotebookEditorWidgetContainerFactory, NotebookEditorProps, NOTEBOOK_EDITOR_ID_PREFIX } from './notebook-editor-widget';
|
|
21
|
-
import { NotebookService } from './service/notebook-service';
|
|
22
|
-
import { NotebookModelResolverService } from './service/notebook-model-resolver-service';
|
|
20
|
+
import { NotebookEditorWidget, NotebookEditorWidgetContainerFactory, NotebookEditorProps, NOTEBOOK_EDITOR_ID_PREFIX } from './notebook-editor-widget.js';
|
|
21
|
+
import { NotebookService } from './service/notebook-service.js';
|
|
22
|
+
import { NotebookModelResolverService } from './service/notebook-model-resolver-service.js';
|
|
23
23
|
import { Deferred } from '@theia/core/lib/common/promise-util';
|
|
24
|
-
import { NotebookModel } from './view-model/notebook-model';
|
|
24
|
+
import { NotebookModel } from './view-model/notebook-model.js';
|
|
25
25
|
|
|
26
26
|
export interface NotebookEditorWidgetOptions extends NavigatableWidgetOptions {
|
|
27
27
|
notebookType: string;
|
|
@@ -18,27 +18,31 @@ import * as React from '@theia/core/shared/react';
|
|
|
18
18
|
import { CommandRegistry, MenuModelRegistry, URI, nls } from '@theia/core';
|
|
19
19
|
import { ReactWidget, Navigatable, SaveableSource, Message, DelegatingSaveable, lock, unlock, animationFrame, codicon } from '@theia/core/lib/browser';
|
|
20
20
|
import { ReactNode } from '@theia/core/shared/react';
|
|
21
|
-
import { CellKind, NotebookCellsChangeType } from '../common';
|
|
22
|
-
import { CellRenderer as CellRenderer, NotebookCellListView } from './view/notebook-cell-list-view';
|
|
23
|
-
import { NotebookCodeCellRenderer } from './view/notebook-code-cell-view';
|
|
24
|
-
import { NotebookMarkdownCellRenderer } from './view/notebook-markdown-cell-view';
|
|
25
|
-
import { NotebookModel } from './view-model/notebook-model';
|
|
26
|
-
import { NotebookCellToolbarFactory } from './view/notebook-cell-toolbar-factory';
|
|
21
|
+
import { CellKind, NotebookCellsChangeType } from '../common/index.js';
|
|
22
|
+
import { CellRenderer as CellRenderer, NotebookCellListView } from './view/notebook-cell-list-view.js';
|
|
23
|
+
import { NotebookCodeCellRenderer } from './view/notebook-code-cell-view.js';
|
|
24
|
+
import { NotebookMarkdownCellRenderer } from './view/notebook-markdown-cell-view.js';
|
|
25
|
+
import { NotebookModel } from './view-model/notebook-model.js';
|
|
26
|
+
import { NotebookCellToolbarFactory } from './view/notebook-cell-toolbar-factory.js';
|
|
27
27
|
import { inject, injectable, interfaces, postConstruct } from '@theia/core/shared/inversify';
|
|
28
28
|
import { Emitter } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
29
|
-
import { NotebookEditorWidgetService } from './service/notebook-editor-widget-service';
|
|
30
|
-
import { NotebookMainToolbarRenderer } from './view/notebook-main-toolbar';
|
|
29
|
+
import { NotebookEditorWidgetService } from './service/notebook-editor-widget-service.js';
|
|
30
|
+
import { NotebookMainToolbarRenderer } from './view/notebook-main-toolbar.js';
|
|
31
31
|
import { Deferred } from '@theia/core/lib/common/promise-util';
|
|
32
32
|
import { MarkdownString } from '@theia/core/lib/common/markdown-rendering';
|
|
33
|
-
import { NotebookContextManager } from './service/notebook-context-manager';
|
|
34
|
-
import { NotebookViewportService } from './view/notebook-viewport-service';
|
|
35
|
-
import { NotebookCellCommands } from './contributions/notebook-cell-actions-contribution';
|
|
36
|
-
import { NotebookFindWidget } from './view/notebook-find-widget';
|
|
37
|
-
import debounce
|
|
38
|
-
import { CellOutputWebview, CellOutputWebviewFactory } from './renderers/cell-output-webview';
|
|
39
|
-
import { NotebookCellOutputModel } from './view-model/notebook-cell-output-model';
|
|
40
|
-
import { NotebookViewModel } from './view-model/notebook-view-model';
|
|
41
|
-
|
|
33
|
+
import { NotebookContextManager } from './service/notebook-context-manager.js';
|
|
34
|
+
import { NotebookViewportService } from './view/notebook-viewport-service.js';
|
|
35
|
+
import { NotebookCellCommands } from './contributions/notebook-cell-actions-contribution.js';
|
|
36
|
+
import { NotebookFindWidget } from './view/notebook-find-widget.js';
|
|
37
|
+
import debounce from '@theia/core/shared/lodash.debounce';
|
|
38
|
+
import { CellOutputWebview, CellOutputWebviewFactory } from './renderers/cell-output-webview.js';
|
|
39
|
+
import { NotebookCellOutputModel } from './view-model/notebook-cell-output-model.js';
|
|
40
|
+
import { NotebookViewModel } from './view-model/notebook-view-model.js';
|
|
41
|
+
import ReactPerfectScrollbarModule from 'react-perfect-scrollbar';
|
|
42
|
+
|
|
43
|
+
// The types of `react-perfect-scrollbar` declare an ES module default export, but its CommonJS entry point assigns the component
|
|
44
|
+
// to `module.exports`, which is what a default import from an ES module provides at runtime.
|
|
45
|
+
const PerfectScrollbar = ReactPerfectScrollbarModule as unknown as typeof ReactPerfectScrollbarModule.default;
|
|
42
46
|
|
|
43
47
|
export const NotebookEditorWidgetContainerFactory = Symbol('NotebookEditorWidgetContainerFactory');
|
|
44
48
|
|
|
@@ -146,7 +150,7 @@ export class NotebookEditorWidget extends ReactWidget implements Navigatable, Sa
|
|
|
146
150
|
protected _ready: Deferred<NotebookModel> = new Deferred();
|
|
147
151
|
protected _findWidgetVisible = false;
|
|
148
152
|
protected _findWidgetRef = React.createRef<NotebookFindWidget>();
|
|
149
|
-
protected scrollBarRef = React.createRef<
|
|
153
|
+
protected scrollBarRef = React.createRef<InstanceType<typeof PerfectScrollbar>>();
|
|
150
154
|
protected debounceFind = debounce(() => {
|
|
151
155
|
this._findWidgetRef.current?.search({});
|
|
152
156
|
}, 30, {
|