@theia/notebook 1.77.0-next.1 → 1.77.0-next.101
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
|
@@ -20,43 +20,43 @@ import {
|
|
|
20
20
|
FrontendApplicationContribution, KeybindingContribution, LabelProviderContribution, OpenHandler, UndoRedoHandler, WidgetFactory, WidgetStatusBarContribution
|
|
21
21
|
} from '@theia/core/lib/browser';
|
|
22
22
|
import { ColorContribution } from '@theia/core/lib/browser/color-application-contribution';
|
|
23
|
-
import { NotebookOpenHandler } from './notebook-open-handler';
|
|
23
|
+
import { NotebookOpenHandler } from './notebook-open-handler.js';
|
|
24
24
|
import { CommandContribution, MenuContribution, ResourceResolver, } from '@theia/core';
|
|
25
|
-
import { NotebookTypeRegistry } from './notebook-type-registry';
|
|
26
|
-
import { NotebookRendererRegistry } from './notebook-renderer-registry';
|
|
27
|
-
import { NotebookService } from './service/notebook-service';
|
|
28
|
-
import { NotebookEditorWidgetFactory } from './notebook-editor-widget-factory';
|
|
29
|
-
import { NotebookCellResourceResolver, NotebookOutputResourceResolver } from './notebook-cell-resource-resolver';
|
|
30
|
-
import { NotebookModelResolverService } from './service/notebook-model-resolver-service';
|
|
31
|
-
import { NotebookCellActionContribution } from './contributions/notebook-cell-actions-contribution';
|
|
32
|
-
import { createNotebookModelContainer, NotebookModel, NotebookModelFactory, NotebookModelProps, NotebookModelResolverServiceProxy } from './view-model/notebook-model';
|
|
33
|
-
import { createNotebookCellModelContainer, NotebookCellModel, NotebookCellModelFactory, NotebookCellModelProps } from './view-model/notebook-cell-model';
|
|
34
|
-
import { createNotebookEditorWidgetContainer, NotebookEditorWidgetContainerFactory, NotebookEditorProps, NotebookEditorWidget } from './notebook-editor-widget';
|
|
35
|
-
import { NotebookActionsContribution } from './contributions/notebook-actions-contribution';
|
|
36
|
-
import { NotebookExecutionService } from './service/notebook-execution-service';
|
|
37
|
-
import { NotebookExecutionStateService } from './service/notebook-execution-state-service';
|
|
38
|
-
import { NotebookKernelService } from './service/notebook-kernel-service';
|
|
39
|
-
import { NotebookKernelQuickPickService } from './service/notebook-kernel-quick-pick-service';
|
|
40
|
-
import { NotebookKernelHistoryService } from './service/notebook-kernel-history-service';
|
|
41
|
-
import { NotebookEditorWidgetService } from './service/notebook-editor-widget-service';
|
|
42
|
-
import { NotebookRendererMessagingService } from './service/notebook-renderer-messaging-service';
|
|
43
|
-
import { NotebookColorContribution } from './contributions/notebook-color-contribution';
|
|
44
|
-
import { NotebookMonacoEditorModelFilter, NotebookMonacoTextModelService } from './service/notebook-monaco-text-model-service';
|
|
45
|
-
import { NotebookOutlineContribution } from './contributions/notebook-outline-contribution';
|
|
46
|
-
import { NotebookLabelProviderContribution } from './contributions/notebook-label-provider-contribution';
|
|
47
|
-
import { NotebookOutputActionContribution } from './contributions/notebook-output-action-contribution';
|
|
48
|
-
import { NotebookClipboardService } from './service/notebook-clipboard-service';
|
|
49
|
-
import { bindNotebookPreferences } from '../common/notebook-preferences';
|
|
50
|
-
import { NotebookOptionsService } from './service/notebook-options';
|
|
51
|
-
import { NotebookUndoRedoHandler } from './contributions/notebook-undo-redo-handler';
|
|
52
|
-
import { NotebookStatusBarContribution } from './contributions/notebook-status-bar-contribution';
|
|
53
|
-
import { NotebookCellEditorService } from './service/notebook-cell-editor-service';
|
|
54
|
-
import { NotebookCellStatusBarService } from './service/notebook-cell-status-bar-service';
|
|
25
|
+
import { NotebookTypeRegistry } from './notebook-type-registry.js';
|
|
26
|
+
import { NotebookRendererRegistry } from './notebook-renderer-registry.js';
|
|
27
|
+
import { NotebookService } from './service/notebook-service.js';
|
|
28
|
+
import { NotebookEditorWidgetFactory } from './notebook-editor-widget-factory.js';
|
|
29
|
+
import { NotebookCellResourceResolver, NotebookOutputResourceResolver } from './notebook-cell-resource-resolver.js';
|
|
30
|
+
import { NotebookModelResolverService } from './service/notebook-model-resolver-service.js';
|
|
31
|
+
import { NotebookCellActionContribution } from './contributions/notebook-cell-actions-contribution.js';
|
|
32
|
+
import { createNotebookModelContainer, NotebookModel, NotebookModelFactory, NotebookModelProps, NotebookModelResolverServiceProxy } from './view-model/notebook-model.js';
|
|
33
|
+
import { createNotebookCellModelContainer, NotebookCellModel, NotebookCellModelFactory, NotebookCellModelProps } from './view-model/notebook-cell-model.js';
|
|
34
|
+
import { createNotebookEditorWidgetContainer, NotebookEditorWidgetContainerFactory, NotebookEditorProps, NotebookEditorWidget } from './notebook-editor-widget.js';
|
|
35
|
+
import { NotebookActionsContribution } from './contributions/notebook-actions-contribution.js';
|
|
36
|
+
import { NotebookExecutionService } from './service/notebook-execution-service.js';
|
|
37
|
+
import { NotebookExecutionStateService } from './service/notebook-execution-state-service.js';
|
|
38
|
+
import { NotebookKernelService } from './service/notebook-kernel-service.js';
|
|
39
|
+
import { NotebookKernelQuickPickService } from './service/notebook-kernel-quick-pick-service.js';
|
|
40
|
+
import { NotebookKernelHistoryService } from './service/notebook-kernel-history-service.js';
|
|
41
|
+
import { NotebookEditorWidgetService } from './service/notebook-editor-widget-service.js';
|
|
42
|
+
import { NotebookRendererMessagingService } from './service/notebook-renderer-messaging-service.js';
|
|
43
|
+
import { NotebookColorContribution } from './contributions/notebook-color-contribution.js';
|
|
44
|
+
import { NotebookMonacoEditorModelFilter, NotebookMonacoTextModelService } from './service/notebook-monaco-text-model-service.js';
|
|
45
|
+
import { NotebookOutlineContribution } from './contributions/notebook-outline-contribution.js';
|
|
46
|
+
import { NotebookLabelProviderContribution } from './contributions/notebook-label-provider-contribution.js';
|
|
47
|
+
import { NotebookOutputActionContribution } from './contributions/notebook-output-action-contribution.js';
|
|
48
|
+
import { NotebookClipboardService } from './service/notebook-clipboard-service.js';
|
|
49
|
+
import { bindNotebookPreferences } from '../common/notebook-preferences.js';
|
|
50
|
+
import { NotebookOptionsService } from './service/notebook-options.js';
|
|
51
|
+
import { NotebookUndoRedoHandler } from './contributions/notebook-undo-redo-handler.js';
|
|
52
|
+
import { NotebookStatusBarContribution } from './contributions/notebook-status-bar-contribution.js';
|
|
53
|
+
import { NotebookCellEditorService } from './service/notebook-cell-editor-service.js';
|
|
54
|
+
import { NotebookCellStatusBarService } from './service/notebook-cell-status-bar-service.js';
|
|
55
55
|
import { MonacoEditorModelFilter } from '@theia/monaco/lib/browser/monaco-text-model-service';
|
|
56
56
|
import { ActiveMonacoEditorContribution } from '@theia/monaco/lib/browser/monaco-editor-service';
|
|
57
|
-
import { NotebookCellOpenHandler } from './notebook-cell-open-handler';
|
|
57
|
+
import { NotebookCellOpenHandler } from './notebook-cell-open-handler.js';
|
|
58
58
|
import { SplitEditorContribution } from '@theia/editor/lib/browser/split-editor-contribution';
|
|
59
|
-
import { NotebookEditorSplitContribution } from './notebook-editor-split-contribution';
|
|
59
|
+
import { NotebookEditorSplitContribution } from './notebook-editor-split-contribution.js';
|
|
60
60
|
|
|
61
61
|
export default new ContainerModule(bind => {
|
|
62
62
|
bind(NotebookColorContribution).toSelf().inSingletonScope();
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
import { URI, MaybePromise, Disposable, PreferenceService } from '@theia/core';
|
|
18
18
|
import { NavigatableWidgetOpenHandler, WidgetOpenerOptions, getDefaultHandler, defaultHandlerPriority } from '@theia/core/lib/browser';
|
|
19
19
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
20
|
-
import { NotebookFileSelector, NotebookTypeDescriptor } from '../common/notebook-protocol';
|
|
21
|
-
import { NotebookEditorWidget } from './notebook-editor-widget';
|
|
20
|
+
import { NotebookFileSelector, NotebookTypeDescriptor } from '../common/notebook-protocol.js';
|
|
21
|
+
import { NotebookEditorWidget } from './notebook-editor-widget.js';
|
|
22
22
|
import { match } from '@theia/core/lib/common/glob';
|
|
23
|
-
import { NotebookEditorWidgetOptions } from './notebook-editor-widget-factory';
|
|
23
|
+
import { NotebookEditorWidgetOptions } from './notebook-editor-widget-factory.js';
|
|
24
24
|
|
|
25
25
|
export interface NotebookWidgetOpenerOptions extends WidgetOpenerOptions {
|
|
26
26
|
notebookType?: string;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
import { Disposable, Path } from '@theia/core';
|
|
22
22
|
import { injectable } from '@theia/core/shared/inversify';
|
|
23
|
-
import { NotebookRendererDescriptor } from '../common/notebook-protocol';
|
|
23
|
+
import { NotebookRendererDescriptor } from '../common/notebook-protocol.js';
|
|
24
24
|
|
|
25
25
|
export interface NotebookRendererInfo {
|
|
26
26
|
readonly id: string;
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
import { Disposable, DisposableCollection } from '@theia/core';
|
|
18
18
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
19
19
|
import { OpenWithService } from '@theia/core/lib/browser';
|
|
20
|
-
import { NotebookTypeDescriptor } from '../common/notebook-protocol';
|
|
21
|
-
import { NotebookOpenHandler } from './notebook-open-handler';
|
|
20
|
+
import { NotebookTypeDescriptor } from '../common/notebook-protocol.js';
|
|
21
|
+
import { NotebookOpenHandler } from './notebook-open-handler.js';
|
|
22
22
|
|
|
23
23
|
@injectable()
|
|
24
24
|
export class NotebookTypeRegistry {
|
|
@@ -22,8 +22,8 @@ import {
|
|
|
22
22
|
NotebookCellsChangeLanguageEvent,
|
|
23
23
|
NotebookCellsChangeMetadataEvent,
|
|
24
24
|
NotebookCellsChangeType, NotebookCellTextModelSplice, NotebookDocumentMetadata
|
|
25
|
-
} from '../common';
|
|
26
|
-
import { NotebookCell } from './view-model/notebook-cell-model';
|
|
25
|
+
} from '../common/index.js';
|
|
26
|
+
import { NotebookCell } from './view-model/notebook-cell-model.js';
|
|
27
27
|
|
|
28
28
|
export interface NotebookTextModelChangedEvent {
|
|
29
29
|
readonly rawEvents: NotebookContentChangedEvent[];
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { Disposable, Event } from '@theia/core';
|
|
18
|
-
import { NotebookModel } from '../view-model/notebook-model';
|
|
19
|
-
import { NotebookEditorWidget } from '../notebook-editor-widget';
|
|
20
|
-
import { NotebookContentChangedEvent } from '../notebook-types';
|
|
21
|
-
import { NotebookCellOutputModel } from '../view-model/notebook-cell-output-model';
|
|
22
|
-
import { NotebookCellModel } from '../view-model/notebook-cell-model';
|
|
18
|
+
import { NotebookModel } from '../view-model/notebook-model.js';
|
|
19
|
+
import { NotebookEditorWidget } from '../notebook-editor-widget.js';
|
|
20
|
+
import { NotebookContentChangedEvent } from '../notebook-types.js';
|
|
21
|
+
import { NotebookCellOutputModel } from '../view-model/notebook-cell-output-model.js';
|
|
22
|
+
import { NotebookCellModel } from '../view-model/notebook-cell-model.js';
|
|
23
23
|
|
|
24
24
|
export const CellOutputWebviewFactory = Symbol('outputWebviewFactory');
|
|
25
25
|
export const CellOutputWebview = Symbol('outputWebview');
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
import { Emitter, URI } from '@theia/core';
|
|
18
18
|
import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
|
|
19
19
|
import { SimpleMonacoEditor } from '@theia/monaco/lib/browser/simple-monaco-editor';
|
|
20
|
-
import { NotebookEditorWidgetService } from './notebook-editor-widget-service';
|
|
21
|
-
import { CellUri } from '../../common';
|
|
20
|
+
import { NotebookEditorWidgetService } from './notebook-editor-widget-service.js';
|
|
21
|
+
import { CellUri } from '../../common/index.js';
|
|
22
22
|
import { ActiveMonacoEditorContribution, MonacoEditorService } from '@theia/monaco/lib/browser/monaco-editor-service';
|
|
23
|
-
import { ICodeEditor } from '@theia/monaco-editor-core/esm/vs/editor/browser/editorBrowser';
|
|
23
|
+
import { ICodeEditor } from '@theia/monaco-editor-core/esm/vs/editor/browser/editorBrowser.js';
|
|
24
24
|
|
|
25
25
|
@injectable()
|
|
26
26
|
export class NotebookCellEditorService implements ActiveMonacoEditorContribution {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*--------------------------------------------------------------------------------------------*/
|
|
20
20
|
|
|
21
21
|
import { CancellationToken, Command, Disposable, Emitter, Event, URI, ILogger } from '@theia/core';
|
|
22
|
-
import { CellStatusbarAlignment } from '../../common';
|
|
22
|
+
import { CellStatusbarAlignment } from '../../common/index.js';
|
|
23
23
|
import { ThemeColor } from '@theia/core/lib/common/theme';
|
|
24
24
|
import { AccessibilityInformation } from '@theia/core/lib/common/accessibility';
|
|
25
25
|
import { injectable, inject, named } from '@theia/core/shared/inversify';
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
18
18
|
import { ClipboardService } from '@theia/core/lib/browser/clipboard-service';
|
|
19
|
-
import { NotebookCellModel } from '../view-model/notebook-cell-model';
|
|
19
|
+
import { NotebookCellModel } from '../view-model/notebook-cell-model.js';
|
|
20
20
|
import { environment } from '@theia/core';
|
|
21
|
-
import { CellData } from '../../common';
|
|
21
|
+
import { CellData } from '../../common/index.js';
|
|
22
22
|
|
|
23
23
|
@injectable()
|
|
24
24
|
export class NotebookClipboardService {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
18
18
|
import { ContextKeyChangeEvent, ContextKeyService, ContextMatcher, ScopedValueStore } from '@theia/core/lib/browser/context-key-service';
|
|
19
19
|
import { DisposableCollection } from '@theia/core';
|
|
20
|
-
import { NotebookKernelService } from './notebook-kernel-service';
|
|
20
|
+
import { NotebookKernelService } from './notebook-kernel-service.js';
|
|
21
21
|
import {
|
|
22
22
|
NOTEBOOK_CELL_EDITABLE,
|
|
23
23
|
NOTEBOOK_CELL_EXECUTING, NOTEBOOK_CELL_EXECUTION_STATE,
|
|
@@ -25,12 +25,12 @@ import {
|
|
|
25
25
|
NOTEBOOK_CELL_TYPE, NOTEBOOK_HAS_OUTPUTS, NOTEBOOK_KERNEL, NOTEBOOK_KERNEL_SELECTED,
|
|
26
26
|
NOTEBOOK_OUTPUT_INPUT_FOCUSED,
|
|
27
27
|
NOTEBOOK_VIEW_TYPE
|
|
28
|
-
} from '../contributions/notebook-context-keys';
|
|
29
|
-
import { NotebookEditorWidget } from '../notebook-editor-widget';
|
|
30
|
-
import { NotebookCellModel } from '../view-model/notebook-cell-model';
|
|
31
|
-
import { CellKind, NotebookCellsChangeType } from '../../common';
|
|
32
|
-
import { NotebookExecutionStateService } from './notebook-execution-state-service';
|
|
33
|
-
import { NotebookViewModel } from '../view-model/notebook-view-model';
|
|
28
|
+
} from '../contributions/notebook-context-keys.js';
|
|
29
|
+
import { NotebookEditorWidget } from '../notebook-editor-widget.js';
|
|
30
|
+
import { NotebookCellModel } from '../view-model/notebook-cell-model.js';
|
|
31
|
+
import { CellKind, NotebookCellsChangeType } from '../../common/index.js';
|
|
32
|
+
import { NotebookExecutionStateService } from './notebook-execution-state-service.js';
|
|
33
|
+
import { NotebookViewModel } from '../view-model/notebook-view-model.js';
|
|
34
34
|
|
|
35
35
|
@injectable()
|
|
36
36
|
export class NotebookContextManager {
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
import { Emitter, ILogger } from '@theia/core';
|
|
23
23
|
import { inject, injectable, postConstruct, named } from '@theia/core/shared/inversify';
|
|
24
24
|
import { ApplicationShell } from '@theia/core/lib/browser';
|
|
25
|
-
import { NotebookEditorWidget } from '../notebook-editor-widget';
|
|
25
|
+
import { NotebookEditorWidget } from '../notebook-editor-widget.js';
|
|
26
26
|
import { ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
27
|
-
import { NOTEBOOK_EDITOR_FOCUSED } from '../contributions/notebook-context-keys';
|
|
27
|
+
import { NOTEBOOK_EDITOR_FOCUSED } from '../contributions/notebook-context-keys.js';
|
|
28
28
|
|
|
29
29
|
@injectable()
|
|
30
30
|
export class NotebookEditorWidgetService {
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
*--------------------------------------------------------------------------------------------*/
|
|
20
20
|
|
|
21
21
|
import { inject, injectable, named } from '@theia/core/shared/inversify';
|
|
22
|
-
import { CellExecution, NotebookExecutionStateService } from '../service/notebook-execution-state-service';
|
|
23
|
-
import { CellKind, NotebookCellExecutionState } from '../../common';
|
|
24
|
-
import { NotebookCellModel } from '../view-model/notebook-cell-model';
|
|
25
|
-
import { NotebookModel } from '../view-model/notebook-model';
|
|
26
|
-
import { NotebookKernelService } from './notebook-kernel-service';
|
|
22
|
+
import { CellExecution, NotebookExecutionStateService } from '../service/notebook-execution-state-service.js';
|
|
23
|
+
import { CellKind, NotebookCellExecutionState } from '../../common/index.js';
|
|
24
|
+
import { NotebookCellModel } from '../view-model/notebook-cell-model.js';
|
|
25
|
+
import { NotebookModel } from '../view-model/notebook-model.js';
|
|
26
|
+
import { NotebookKernelService } from './notebook-kernel-service.js';
|
|
27
27
|
import { CommandService, Disposable, ILogger } from '@theia/core';
|
|
28
|
-
import { NotebookKernelQuickPickService } from './notebook-kernel-quick-pick-service';
|
|
29
|
-
import { NotebookKernelHistoryService } from './notebook-kernel-history-service';
|
|
28
|
+
import { NotebookKernelQuickPickService } from './notebook-kernel-quick-pick-service.js';
|
|
29
|
+
import { NotebookKernelHistoryService } from './notebook-kernel-history-service.js';
|
|
30
30
|
|
|
31
31
|
export interface CellExecutionParticipant {
|
|
32
32
|
onWillExecuteCell(executions: CellExecution[]): Promise<void>;
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
|
|
21
21
|
import { Disposable, DisposableCollection, Emitter, URI, generateUuid } from '@theia/core';
|
|
22
22
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
23
|
-
import { NotebookService } from './notebook-service';
|
|
23
|
+
import { NotebookService } from './notebook-service.js';
|
|
24
24
|
import {
|
|
25
25
|
CellEditType, CellExecuteOutputEdit, CellExecuteOutputItemEdit, CellExecutionUpdateType,
|
|
26
26
|
CellUri, NotebookCellExecutionState, NotebookCellInternalMetadata
|
|
27
|
-
} from '../../common';
|
|
28
|
-
import { CellPartialInternalMetadataEditByHandle, CellEditOperation } from '../notebook-types';
|
|
29
|
-
import { NotebookModel } from '../view-model/notebook-model';
|
|
27
|
+
} from '../../common/index.js';
|
|
28
|
+
import { CellPartialInternalMetadataEditByHandle, CellEditOperation } from '../notebook-types.js';
|
|
29
|
+
import { NotebookModel } from '../view-model/notebook-model.js';
|
|
30
30
|
|
|
31
31
|
export type CellExecuteUpdate = CellExecuteOutputEdit | CellExecuteOutputItemEdit | CellExecutionStateUpdate;
|
|
32
32
|
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
|
|
21
21
|
import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
|
|
22
22
|
import { StorageService } from '@theia/core/lib/browser';
|
|
23
|
-
import { NotebookKernel, NotebookTextModelLike, NotebookKernelService } from './notebook-kernel-service';
|
|
23
|
+
import { NotebookKernel, NotebookTextModelLike, NotebookKernelService } from './notebook-kernel-service.js';
|
|
24
24
|
import { CommandService, Disposable } from '@theia/core';
|
|
25
|
-
import { NotebookModel } from '../view-model/notebook-model';
|
|
26
|
-
import { NotebookCommands } from '../contributions/notebook-actions-contribution';
|
|
25
|
+
import { NotebookModel } from '../view-model/notebook-model.js';
|
|
26
|
+
import { NotebookCommands } from '../contributions/notebook-actions-contribution.js';
|
|
27
27
|
|
|
28
28
|
interface KernelsList {
|
|
29
29
|
[viewType: string]: string[];
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
*--------------------------------------------------------------------------------------------*/
|
|
21
21
|
import { ArrayUtils, CommandService, DisposableCollection, Event, ILogger, nls, QuickInputButton, QuickInputService, QuickPickInput, QuickPickItem, URI, } from '@theia/core';
|
|
22
22
|
import { inject, injectable, named } from '@theia/core/shared/inversify';
|
|
23
|
-
import { NotebookKernelService, NotebookKernel, NotebookKernelMatchResult, SourceCommand } from './notebook-kernel-service';
|
|
24
|
-
import { NotebookModel } from '../view-model/notebook-model';
|
|
25
|
-
import { NotebookEditorWidget } from '../notebook-editor-widget';
|
|
23
|
+
import { NotebookKernelService, NotebookKernel, NotebookKernelMatchResult, SourceCommand } from './notebook-kernel-service.js';
|
|
24
|
+
import { NotebookModel } from '../view-model/notebook-model.js';
|
|
25
|
+
import { NotebookEditorWidget } from '../notebook-editor-widget.js';
|
|
26
26
|
import { codicon, OpenerService } from '@theia/core/lib/browser';
|
|
27
|
-
import { NotebookKernelHistoryService } from './notebook-kernel-history-service';
|
|
28
|
-
import { NotebookCommand, NotebookModelResource } from '../../common';
|
|
29
|
-
import debounce
|
|
27
|
+
import { NotebookKernelHistoryService } from './notebook-kernel-history-service.js';
|
|
28
|
+
import { NotebookCommand, NotebookModelResource } from '../../common/index.js';
|
|
29
|
+
import debounce from '@theia/core/shared/lodash.debounce';
|
|
30
30
|
|
|
31
31
|
export const JUPYTER_EXTENSION_ID = 'ms-toolsai.jupyter';
|
|
32
32
|
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
import { Command, CommandService, Disposable, Emitter, Event, URI } from '@theia/core';
|
|
22
22
|
import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
|
|
23
23
|
import { StorageService } from '@theia/core/lib/browser';
|
|
24
|
-
import { NotebookKernelSourceAction } from '../../common';
|
|
25
|
-
import { NotebookModel } from '../view-model/notebook-model';
|
|
26
|
-
import { NotebookService } from './notebook-service';
|
|
24
|
+
import { NotebookKernelSourceAction } from '../../common/index.js';
|
|
25
|
+
import { NotebookModel } from '../view-model/notebook-model.js';
|
|
26
|
+
import { NotebookService } from './notebook-service.js';
|
|
27
27
|
|
|
28
28
|
export interface SelectedNotebookKernelChangeEvent {
|
|
29
29
|
notebook: URI;
|
|
@@ -18,11 +18,11 @@ import { Emitter, Resource, ResourceProvider, UNTITLED_SCHEME, URI, ILogger } fr
|
|
|
18
18
|
import { inject, injectable, named } from '@theia/core/shared/inversify';
|
|
19
19
|
import { UriComponents } from '@theia/core/lib/common/uri';
|
|
20
20
|
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
21
|
-
import { NotebookData } from '../../common';
|
|
22
|
-
import { NotebookModel } from '../view-model/notebook-model';
|
|
23
|
-
import { NotebookService } from './notebook-service';
|
|
24
|
-
import { NotebookTypeRegistry } from '../notebook-type-registry';
|
|
25
|
-
import { NotebookFileSelector } from '../../common/notebook-protocol';
|
|
21
|
+
import { NotebookData } from '../../common/index.js';
|
|
22
|
+
import { NotebookModel } from '../view-model/notebook-model.js';
|
|
23
|
+
import { NotebookService } from './notebook-service.js';
|
|
24
|
+
import { NotebookTypeRegistry } from '../notebook-type-registry.js';
|
|
25
|
+
import { NotebookFileSelector } from '../../common/notebook-protocol.js';
|
|
26
26
|
import { match } from '@theia/core/lib/common/glob';
|
|
27
27
|
|
|
28
28
|
export interface UntitledResource {
|
|
@@ -18,8 +18,8 @@ import { URI, Reference, Event, Emitter } from '@theia/core';
|
|
|
18
18
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
19
19
|
import { MonacoTextModelService, MonacoEditorModelFilter } from '@theia/monaco/lib/browser/monaco-text-model-service';
|
|
20
20
|
import { MonacoEditorModel } from '@theia/monaco/lib/browser/monaco-editor-model';
|
|
21
|
-
import { NotebookModel } from '../view-model/notebook-model';
|
|
22
|
-
import { CellUri } from '../../common/notebook-common';
|
|
21
|
+
import { NotebookModel } from '../view-model/notebook-model.js';
|
|
22
|
+
import { CellUri } from '../../common/notebook-common.js';
|
|
23
23
|
|
|
24
24
|
@injectable()
|
|
25
25
|
export class NotebookMonacoEditorModelFilter implements MonacoEditorModelFilter {
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
|
|
19
19
|
import { PreferenceService } from '@theia/core/lib/common';
|
|
20
20
|
import { Emitter } from '@theia/core';
|
|
21
|
-
import { NotebookPreferences, notebookPreferenceSchema } from '../../common/notebook-preferences';
|
|
21
|
+
import { NotebookPreferences, notebookPreferenceSchema } from '../../common/notebook-preferences.js';
|
|
22
22
|
import { EditorPreferences } from '@theia/editor/lib/common/editor-preferences';
|
|
23
|
-
import { BareFontInfo } from '@theia/monaco-editor-core/esm/vs/editor/common/config/fontInfo';
|
|
24
|
-
import { createBareFontInfoFromRawSettings } from '@theia/monaco-editor-core/esm/vs/editor/common/config/fontInfoFromSettings';
|
|
25
|
-
import { PixelRatio } from '@theia/monaco-editor-core/esm/vs/base/browser/pixelRatio';
|
|
23
|
+
import { BareFontInfo } from '@theia/monaco-editor-core/esm/vs/editor/common/config/fontInfo.js';
|
|
24
|
+
import { createBareFontInfoFromRawSettings } from '@theia/monaco-editor-core/esm/vs/editor/common/config/fontInfoFromSettings.js';
|
|
25
|
+
import { PixelRatio } from '@theia/monaco-editor-core/esm/vs/base/browser/pixelRatio.js';
|
|
26
26
|
|
|
27
27
|
const notebookOutputOptionsRelevantPreferences = [
|
|
28
28
|
'editor.fontSize',
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import { Emitter } from '@theia/core';
|
|
22
22
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
23
23
|
import { Disposable } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
24
|
-
import { NotebookEditorWidgetService } from './notebook-editor-widget-service';
|
|
24
|
+
import { NotebookEditorWidgetService } from './notebook-editor-widget-service.js';
|
|
25
25
|
|
|
26
26
|
interface RendererMessage {
|
|
27
27
|
editorId: string;
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
import { Disposable, DisposableCollection, Emitter, Resource, URI, ILogger } from '@theia/core';
|
|
18
18
|
import { inject, injectable, named } from '@theia/core/shared/inversify';
|
|
19
19
|
import { BinaryBuffer } from '@theia/core/lib/common/buffer';
|
|
20
|
-
import { CellKind, NotebookData, TransientOptions } from '../../common';
|
|
21
|
-
import { NotebookModel, NotebookModelFactory, NotebookModelProps } from '../view-model/notebook-model';
|
|
20
|
+
import { CellKind, NotebookData, TransientOptions } from '../../common/index.js';
|
|
21
|
+
import { NotebookModel, NotebookModelFactory, NotebookModelProps } from '../view-model/notebook-model.js';
|
|
22
22
|
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
23
|
-
import { NotebookCellModel, NotebookCellModelFactory, NotebookCellModelProps } from '../view-model/notebook-cell-model';
|
|
23
|
+
import { NotebookCellModel, NotebookCellModelFactory, NotebookCellModelProps } from '../view-model/notebook-cell-model.js';
|
|
24
24
|
import { Deferred } from '@theia/core/lib/common/promise-util';
|
|
25
|
-
import { NotebookMonacoTextModelService } from './notebook-monaco-text-model-service';
|
|
26
|
-
import { CellEditOperation } from '../notebook-types';
|
|
25
|
+
import { NotebookMonacoTextModelService } from './notebook-monaco-text-model-service.js';
|
|
26
|
+
import { CellEditOperation } from '../notebook-types.js';
|
|
27
27
|
|
|
28
28
|
export const NotebookProvider = Symbol('notebook provider');
|
|
29
29
|
|
|
@@ -15,23 +15,23 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import * as React from '@theia/core/shared/react';
|
|
18
|
-
import { NotebookModel } from '../view-model/notebook-model';
|
|
19
|
-
import { NotebookCellModel, NotebookCodeEditorFindMatch } from '../view-model/notebook-cell-model';
|
|
18
|
+
import { NotebookModel } from '../view-model/notebook-model.js';
|
|
19
|
+
import { NotebookCellModel, NotebookCodeEditorFindMatch } from '../view-model/notebook-cell-model.js';
|
|
20
20
|
import { SimpleMonacoEditor } from '@theia/monaco/lib/browser/simple-monaco-editor';
|
|
21
21
|
import { MonacoEditor, MonacoEditorServices } from '@theia/monaco/lib/browser/monaco-editor';
|
|
22
22
|
import { MonacoEditorProvider } from '@theia/monaco/lib/browser/monaco-editor-provider';
|
|
23
|
-
import { IContextKeyService } from '@theia/monaco-editor-core/esm/vs/platform/contextkey/common/contextkey';
|
|
24
|
-
import { NotebookContextManager } from '../service/notebook-context-manager';
|
|
23
|
+
import { IContextKeyService } from '@theia/monaco-editor-core/esm/vs/platform/contextkey/common/contextkey.js';
|
|
24
|
+
import { NotebookContextManager } from '../service/notebook-context-manager.js';
|
|
25
25
|
import { DisposableCollection, OS } from '@theia/core';
|
|
26
|
-
import { NotebookViewportService } from './notebook-viewport-service';
|
|
27
|
-
import { BareFontInfo } from '@theia/monaco-editor-core/esm/vs/editor/common/config/fontInfo';
|
|
28
|
-
import { NOTEBOOK_CELL_CURSOR_FIRST_LINE, NOTEBOOK_CELL_CURSOR_LAST_LINE } from '../contributions/notebook-context-keys';
|
|
29
|
-
import { EditorExtensionsRegistry } from '@theia/monaco-editor-core/esm/vs/editor/browser/editorExtensions';
|
|
30
|
-
import { ModelDecorationOptions } from '@theia/monaco-editor-core/esm/vs/editor/common/model/textModel';
|
|
31
|
-
import { IModelDeltaDecoration, OverviewRulerLane, TrackedRangeStickiness } from '@theia/monaco-editor-core/esm/vs/editor/common/model';
|
|
26
|
+
import { NotebookViewportService } from './notebook-viewport-service.js';
|
|
27
|
+
import { BareFontInfo } from '@theia/monaco-editor-core/esm/vs/editor/common/config/fontInfo.js';
|
|
28
|
+
import { NOTEBOOK_CELL_CURSOR_FIRST_LINE, NOTEBOOK_CELL_CURSOR_LAST_LINE } from '../contributions/notebook-context-keys.js';
|
|
29
|
+
import { EditorExtensionsRegistry } from '@theia/monaco-editor-core/esm/vs/editor/browser/editorExtensions.js';
|
|
30
|
+
import { ModelDecorationOptions } from '@theia/monaco-editor-core/esm/vs/editor/common/model/textModel.js';
|
|
31
|
+
import { IModelDeltaDecoration, OverviewRulerLane, TrackedRangeStickiness } from '@theia/monaco-editor-core/esm/vs/editor/common/model.js';
|
|
32
32
|
import { animationFrame } from '@theia/core/lib/browser';
|
|
33
|
-
import { NotebookCellEditorService } from '../service/notebook-cell-editor-service';
|
|
34
|
-
import { NotebookViewModel } from '../view-model/notebook-view-model';
|
|
33
|
+
import { NotebookCellEditorService } from '../service/notebook-cell-editor-service.js';
|
|
34
|
+
import { NotebookViewModel } from '../view-model/notebook-view-model.js';
|
|
35
35
|
|
|
36
36
|
interface CellEditorProps {
|
|
37
37
|
notebookModel: NotebookModel;
|
|
@@ -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
|
import * as React from '@theia/core/shared/react';
|
|
17
|
-
import { CellEditType, CellKind, NotebookCellsChangeType } from '../../common';
|
|
18
|
-
import { NotebookCellModel } from '../view-model/notebook-cell-model';
|
|
19
|
-
import { NotebookModel } from '../view-model/notebook-model';
|
|
20
|
-
import { NotebookCellToolbarFactory } from './notebook-cell-toolbar-factory';
|
|
17
|
+
import { CellEditType, CellKind, NotebookCellsChangeType } from '../../common/index.js';
|
|
18
|
+
import { NotebookCellModel } from '../view-model/notebook-cell-model.js';
|
|
19
|
+
import { NotebookModel } from '../view-model/notebook-model.js';
|
|
20
|
+
import { NotebookCellToolbarFactory } from './notebook-cell-toolbar-factory.js';
|
|
21
21
|
import { animationFrame, onDomEvent } from '@theia/core/lib/browser';
|
|
22
22
|
import { CommandMenu, CommandRegistry, DisposableCollection, MenuModelRegistry, nls } from '@theia/core';
|
|
23
|
-
import { NotebookCommands, NotebookMenus } from '../contributions/notebook-actions-contribution';
|
|
24
|
-
import { NotebookCellActionContribution } from '../contributions/notebook-cell-actions-contribution';
|
|
25
|
-
import { NotebookContextManager } from '../service/notebook-context-manager';
|
|
26
|
-
import { NotebookViewModel } from '../view-model/notebook-view-model';
|
|
23
|
+
import { NotebookCommands, NotebookMenus } from '../contributions/notebook-actions-contribution.js';
|
|
24
|
+
import { NotebookCellActionContribution } from '../contributions/notebook-cell-actions-contribution.js';
|
|
25
|
+
import { NotebookContextManager } from '../service/notebook-context-manager.js';
|
|
26
|
+
import { NotebookViewModel } from '../view-model/notebook-view-model.js';
|
|
27
27
|
|
|
28
28
|
export interface CellRenderer {
|
|
29
29
|
render(notebookData: NotebookModel, cell: NotebookCellModel, index: number): React.ReactNode
|
|
@@ -18,10 +18,10 @@ import * as React from '@theia/core/shared/react';
|
|
|
18
18
|
import { CommandMenu, CommandRegistry, CompoundMenuNode, DisposableCollection, Emitter, Event, MenuModelRegistry, MenuPath, RenderedMenuNode } from '@theia/core';
|
|
19
19
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
20
20
|
import { ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
21
|
-
import { NotebookCellSidebar, NotebookCellToolbar } from './notebook-cell-toolbar';
|
|
21
|
+
import { NotebookCellSidebar, NotebookCellToolbar } from './notebook-cell-toolbar.js';
|
|
22
22
|
import { ContextMenuRenderer } from '@theia/core/lib/browser';
|
|
23
|
-
import { NotebookCellModel } from '../view-model/notebook-cell-model';
|
|
24
|
-
import { NotebookContextManager } from '../service/notebook-context-manager';
|
|
23
|
+
import { NotebookCellModel } from '../view-model/notebook-cell-model.js';
|
|
24
|
+
import { NotebookContextManager } from '../service/notebook-context-manager.js';
|
|
25
25
|
|
|
26
26
|
export interface NotebookCellToolbarItem {
|
|
27
27
|
id: string;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
import * as React from '@theia/core/shared/react';
|
|
17
17
|
import { ACTION_ITEM } from '@theia/core/lib/browser';
|
|
18
|
-
import { NotebookCellToolbarItem } from './notebook-cell-toolbar-factory';
|
|
18
|
+
import { NotebookCellToolbarItem } from './notebook-cell-toolbar-factory.js';
|
|
19
19
|
import { DisposableCollection, Event } from '@theia/core';
|
|
20
20
|
|
|
21
21
|
export interface NotebookCellToolbarProps {
|
|
@@ -17,28 +17,28 @@
|
|
|
17
17
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
18
18
|
import * as React from '@theia/core/shared/react';
|
|
19
19
|
import { MonacoEditorServices } from '@theia/monaco/lib/browser/monaco-editor';
|
|
20
|
-
import { NotebookRendererRegistry } from '../notebook-renderer-registry';
|
|
21
|
-
import { NotebookCellModel } from '../view-model/notebook-cell-model';
|
|
22
|
-
import { NotebookModel } from '../view-model/notebook-model';
|
|
23
|
-
import { CellEditor } from './notebook-cell-editor';
|
|
24
|
-
import { CellRenderer, observeCellHeight } from './notebook-cell-list-view';
|
|
25
|
-
import { NotebookCellToolbarFactory } from './notebook-cell-toolbar-factory';
|
|
26
|
-
import { NotebookCellActionContribution, NotebookCellCommands } from '../contributions/notebook-cell-actions-contribution';
|
|
27
|
-
import { CellExecution, NotebookExecutionStateService } from '../service/notebook-execution-state-service';
|
|
20
|
+
import { NotebookRendererRegistry } from '../notebook-renderer-registry.js';
|
|
21
|
+
import { NotebookCellModel } from '../view-model/notebook-cell-model.js';
|
|
22
|
+
import { NotebookModel } from '../view-model/notebook-model.js';
|
|
23
|
+
import { CellEditor } from './notebook-cell-editor.js';
|
|
24
|
+
import { CellRenderer, observeCellHeight } from './notebook-cell-list-view.js';
|
|
25
|
+
import { NotebookCellToolbarFactory } from './notebook-cell-toolbar-factory.js';
|
|
26
|
+
import { NotebookCellActionContribution, NotebookCellCommands } from '../contributions/notebook-cell-actions-contribution.js';
|
|
27
|
+
import { CellExecution, NotebookExecutionStateService } from '../service/notebook-execution-state-service.js';
|
|
28
28
|
import { codicon } from '@theia/core/lib/browser';
|
|
29
|
-
import { NotebookCellExecutionState } from '../../common';
|
|
29
|
+
import { NotebookCellExecutionState } from '../../common/index.js';
|
|
30
30
|
import { CancellationToken, CommandRegistry, DisposableCollection, nls } from '@theia/core';
|
|
31
|
-
import { NotebookContextManager } from '../service/notebook-context-manager';
|
|
32
|
-
import { NotebookViewportService } from './notebook-viewport-service';
|
|
31
|
+
import { NotebookContextManager } from '../service/notebook-context-manager.js';
|
|
32
|
+
import { NotebookViewportService } from './notebook-viewport-service.js';
|
|
33
33
|
import { EditorPreferences } from '@theia/editor/lib/common/editor-preferences';
|
|
34
|
-
import { NotebookOptionsService } from '../service/notebook-options';
|
|
34
|
+
import { NotebookOptionsService } from '../service/notebook-options.js';
|
|
35
35
|
import { MarkdownRenderer } from '@theia/core/lib/browser/markdown-rendering/markdown-renderer';
|
|
36
36
|
import { MarkdownStringImpl as MarkdownString } from '@theia/core/lib/common/markdown-rendering/markdown-string';
|
|
37
|
-
import { NotebookCellEditorService } from '../service/notebook-cell-editor-service';
|
|
38
|
-
import { CellOutputWebview } from '../renderers/cell-output-webview';
|
|
39
|
-
import { NotebookCellStatusBarItem, NotebookCellStatusBarItemList, NotebookCellStatusBarService } from '../service/notebook-cell-status-bar-service';
|
|
37
|
+
import { NotebookCellEditorService } from '../service/notebook-cell-editor-service.js';
|
|
38
|
+
import { CellOutputWebview } from '../renderers/cell-output-webview.js';
|
|
39
|
+
import { NotebookCellStatusBarItem, NotebookCellStatusBarItemList, NotebookCellStatusBarService } from '../service/notebook-cell-status-bar-service.js';
|
|
40
40
|
import { LabelParser } from '@theia/core/lib/browser/label-parser';
|
|
41
|
-
import { NotebookViewModel } from '../view-model/notebook-view-model';
|
|
41
|
+
import { NotebookViewModel } from '../view-model/notebook-view-model.js';
|
|
42
42
|
|
|
43
43
|
@injectable()
|
|
44
44
|
export class NotebookCodeCellRenderer implements CellRenderer {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { nls } from '@theia/core';
|
|
18
18
|
import * as React from '@theia/core/shared/react';
|
|
19
19
|
import { codicon } from '@theia/core/lib/browser';
|
|
20
|
-
import debounce
|
|
20
|
+
import debounce from '@theia/core/shared/lodash.debounce';
|
|
21
21
|
|
|
22
22
|
export interface NotebookEditorFindMatch {
|
|
23
23
|
selected: boolean;
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
import { ArrayUtils, CommandMenu, CommandRegistry, DisposableCollection, Group, GroupImpl, MenuModelRegistry, MenuNode, MenuPath, nls } from '@theia/core';
|
|
17
17
|
import * as React from '@theia/core/shared/react';
|
|
18
18
|
import { codicon, ContextMenuRenderer } from '@theia/core/lib/browser';
|
|
19
|
-
import { NotebookCommands, NotebookMenus } from '../contributions/notebook-actions-contribution';
|
|
20
|
-
import { NotebookModel } from '../view-model/notebook-model';
|
|
21
|
-
import { NotebookKernelService } from '../service/notebook-kernel-service';
|
|
19
|
+
import { NotebookCommands, NotebookMenus } from '../contributions/notebook-actions-contribution.js';
|
|
20
|
+
import { NotebookModel } from '../view-model/notebook-model.js';
|
|
21
|
+
import { NotebookKernelService } from '../service/notebook-kernel-service.js';
|
|
22
22
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
23
23
|
import { ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
24
|
-
import { NotebookContextManager } from '../service/notebook-context-manager';
|
|
24
|
+
import { NotebookContextManager } from '../service/notebook-context-manager.js';
|
|
25
25
|
|
|
26
26
|
export interface NotebookMainToolbarProps {
|
|
27
27
|
notebookModel: NotebookModel
|