@theia/notebook 1.77.0-next.99 → 1.77.0
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 +36 -43
- 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 -36
- 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 -35
- 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 -16
- 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 -25
- 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 +48 -60
- 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 +18 -8
- 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 +7 -6
- 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 +11 -11
- 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
|
@@ -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, {
|
|
@@ -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;
|