@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
|
@@ -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',
|
|
@@ -80,7 +80,8 @@ export class NotebookOptionsService {
|
|
|
80
80
|
@postConstruct()
|
|
81
81
|
protected init(): void {
|
|
82
82
|
this.preferenceService.onPreferencesChanged(async preferenceChanges => {
|
|
83
|
-
|
|
83
|
+
const preferenceKeys = preferenceChanges.map(p => p.preferenceName);
|
|
84
|
+
if (notebookOutputOptionsRelevantPreferences.some(p => preferenceKeys.includes(p))) {
|
|
84
85
|
this.outputOptionsChangedEmitter.fire(this.computeOutputOptions());
|
|
85
86
|
}
|
|
86
87
|
});
|
|
@@ -106,7 +107,7 @@ export class NotebookOptionsService {
|
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
protected getNotebookPreferenceWithDefault<T>(key: string): T {
|
|
109
|
-
return this.preferenceService.get<T>(key, notebookPreferenceSchema.properties?.[key]?.default as T)
|
|
110
|
+
return this.preferenceService.get<T>(key, { fallback: notebookPreferenceSchema.properties?.[key]?.default as T })!;
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
protected computeOutputLineHeight(lineHeight: number, outputFontSize: number): number {
|
|
@@ -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
|
|
@@ -17,22 +17,22 @@
|
|
|
17
17
|
import * as React from '@theia/core/shared/react';
|
|
18
18
|
import { MarkdownRenderer } from '@theia/core/lib/browser/markdown-rendering/markdown-renderer';
|
|
19
19
|
import { MarkdownStringImpl } from '@theia/core/lib/common/markdown-rendering/markdown-string';
|
|
20
|
-
import { NotebookModel } from '../view-model/notebook-model';
|
|
21
|
-
import { CellRenderer, observeCellHeight } from './notebook-cell-list-view';
|
|
22
|
-
import { NotebookCellModel } from '../view-model/notebook-cell-model';
|
|
23
|
-
import { CellEditor } from './notebook-cell-editor';
|
|
20
|
+
import { NotebookModel } from '../view-model/notebook-model.js';
|
|
21
|
+
import { CellRenderer, observeCellHeight } from './notebook-cell-list-view.js';
|
|
22
|
+
import { NotebookCellModel } from '../view-model/notebook-cell-model.js';
|
|
23
|
+
import { CellEditor } from './notebook-cell-editor.js';
|
|
24
24
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
25
25
|
import { MonacoEditorServices } from '@theia/monaco/lib/browser/monaco-editor';
|
|
26
26
|
import { CommandRegistry, nls } from '@theia/core';
|
|
27
|
-
import { NotebookContextManager } from '../service/notebook-context-manager';
|
|
28
|
-
import { NotebookOptionsService } from '../service/notebook-options';
|
|
29
|
-
import { NotebookCodeCellStatus } from './notebook-code-cell-view';
|
|
30
|
-
import { NotebookEditorFindMatch, NotebookEditorFindMatchOptions } from './notebook-find-widget';
|
|
27
|
+
import { NotebookContextManager } from '../service/notebook-context-manager.js';
|
|
28
|
+
import { NotebookOptionsService } from '../service/notebook-options.js';
|
|
29
|
+
import { NotebookCodeCellStatus } from './notebook-code-cell-view.js';
|
|
30
|
+
import { NotebookEditorFindMatch, NotebookEditorFindMatchOptions } from './notebook-find-widget.js';
|
|
31
31
|
import mark from 'advanced-mark.js';
|
|
32
|
-
import { NotebookCellEditorService } from '../service/notebook-cell-editor-service';
|
|
33
|
-
import { NotebookCellStatusBarService } from '../service/notebook-cell-status-bar-service';
|
|
32
|
+
import { NotebookCellEditorService } from '../service/notebook-cell-editor-service.js';
|
|
33
|
+
import { NotebookCellStatusBarService } from '../service/notebook-cell-status-bar-service.js';
|
|
34
34
|
import { LabelParser } from '@theia/core/lib/browser/label-parser';
|
|
35
|
-
import { NotebookViewModel } from '../view-model/notebook-view-model';
|
|
35
|
+
import { NotebookViewModel } from '../view-model/notebook-view-model.js';
|
|
36
36
|
|
|
37
37
|
@injectable()
|
|
38
38
|
export class NotebookMarkdownCellRenderer implements CellRenderer {
|
|
@@ -25,14 +25,14 @@ import { type MonacoEditor } from '@theia/monaco/lib/browser/monaco-editor';
|
|
|
25
25
|
import {
|
|
26
26
|
CellKind, NotebookCellCollapseState, NotebookCellInternalMetadata,
|
|
27
27
|
NotebookCellMetadata, CellOutput, CellData, CellOutputItem
|
|
28
|
-
} from '../../common';
|
|
29
|
-
import { NotebookCellOutputsSplice } from '../notebook-types';
|
|
30
|
-
import { NotebookMonacoTextModelService } from '../service/notebook-monaco-text-model-service';
|
|
31
|
-
import { NotebookCellOutputModel } from './notebook-cell-output-model';
|
|
28
|
+
} from '../../common/index.js';
|
|
29
|
+
import { NotebookCellOutputsSplice } from '../notebook-types.js';
|
|
30
|
+
import { NotebookMonacoTextModelService } from '../service/notebook-monaco-text-model-service.js';
|
|
31
|
+
import { NotebookCellOutputModel } from './notebook-cell-output-model.js';
|
|
32
32
|
import { PreferenceService } from '@theia/core/lib/common';
|
|
33
|
-
import { NotebookPreferences } from '../../common/notebook-preferences';
|
|
33
|
+
import { NotebookPreferences } from '../../common/notebook-preferences.js';
|
|
34
34
|
import { LanguageService } from '@theia/core/lib/browser/language-service';
|
|
35
|
-
import { NotebookEditorFindMatch, NotebookEditorFindMatchOptions } from '../view/notebook-find-widget';
|
|
35
|
+
import { NotebookEditorFindMatch, NotebookEditorFindMatchOptions } from '../view/notebook-find-widget.js';
|
|
36
36
|
import { Range } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
37
37
|
|
|
38
38
|
export const NotebookCellModelFactory = Symbol('NotebookModelFactory');
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { Disposable, Emitter } from '@theia/core';
|
|
18
|
-
import { CellOutput, CellOutputItem, isTextStreamMime } from '../../common';
|
|
19
|
-
import { compressOutputItemStreams } from '../notebook-output-utils';
|
|
18
|
+
import { CellOutput, CellOutputItem, isTextStreamMime } from '../../common/index.js';
|
|
19
|
+
import { compressOutputItemStreams } from '../notebook-output-utils.js';
|
|
20
20
|
|
|
21
21
|
export class NotebookCellOutputModel implements Disposable {
|
|
22
22
|
|
|
@@ -21,21 +21,21 @@ import {
|
|
|
21
21
|
NotebookCellMetadata,
|
|
22
22
|
NotebookCellsChangeType, NotebookCellTextModelSplice, NotebookData,
|
|
23
23
|
NotebookDocumentMetadata,
|
|
24
|
-
} from '../../common';
|
|
24
|
+
} from '../../common/index.js';
|
|
25
25
|
import {
|
|
26
26
|
NotebookContentChangedEvent, NotebookModelWillAddRemoveEvent,
|
|
27
27
|
CellEditOperation, NullablePartialNotebookCellInternalMetadata,
|
|
28
28
|
NullablePartialNotebookCellMetadata
|
|
29
|
-
} from '../notebook-types';
|
|
30
|
-
import { NotebookSerializer } from '../service/notebook-service';
|
|
29
|
+
} from '../notebook-types.js';
|
|
30
|
+
import { NotebookSerializer } from '../service/notebook-service.js';
|
|
31
31
|
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
32
|
-
import { NotebookCellModel, NotebookCellModelFactory, NotebookCodeEditorFindMatch } from './notebook-cell-model';
|
|
32
|
+
import { NotebookCellModel, NotebookCellModelFactory, NotebookCodeEditorFindMatch } from './notebook-cell-model.js';
|
|
33
33
|
import { inject, injectable, interfaces, postConstruct, named } from '@theia/core/shared/inversify';
|
|
34
34
|
import { UndoRedoService } from '@theia/editor/lib/browser/undo-redo-service';
|
|
35
35
|
import { MarkdownString } from '@theia/core/lib/common/markdown-rendering';
|
|
36
|
-
import type { NotebookModelResolverService } from '../service/notebook-model-resolver-service';
|
|
36
|
+
import type { NotebookModelResolverService } from '../service/notebook-model-resolver-service.js';
|
|
37
37
|
import { BinaryBuffer } from '@theia/core/lib/common/buffer';
|
|
38
|
-
import { NotebookEditorFindMatch, NotebookEditorFindMatchOptions } from '../view/notebook-find-widget';
|
|
38
|
+
import { NotebookEditorFindMatch, NotebookEditorFindMatchOptions } from '../view/notebook-find-widget.js';
|
|
39
39
|
|
|
40
40
|
export const NotebookModelFactory = Symbol('NotebookModelFactory');
|
|
41
41
|
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { injectable } from '@theia/core/shared/inversify';
|
|
18
|
-
import { NotebookCellModel } from './notebook-cell-model';
|
|
18
|
+
import { NotebookCellModel } from './notebook-cell-model.js';
|
|
19
19
|
import { Disposable, Emitter } from '@theia/core';
|
|
20
|
-
import { NotebookModel } from './notebook-model';
|
|
20
|
+
import { NotebookModel } from './notebook-model.js';
|
|
21
21
|
|
|
22
22
|
export interface SelectedCellChangeEvent {
|
|
23
23
|
cell: NotebookCellModel | undefined;
|
package/src/common/index.ts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
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-common';
|
|
18
|
-
export * from './notebook-range';
|
|
17
|
+
export * from './notebook-common.js';
|
|
18
|
+
export * from './notebook-range.js';
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
18
|
-
import { bindNotebookPreferences } from '../common/notebook-preferences';
|
|
18
|
+
import { bindNotebookPreferences } from '../common/notebook-preferences.js';
|
|
19
19
|
|
|
20
20
|
export default new ContainerModule(bind => {
|
|
21
21
|
bindNotebookPreferences(bind);
|