@theia/notebook 1.67.0-next.13 → 1.67.0-next.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +7 -7
- package/src/browser/contributions/notebook-actions-contribution.ts +25 -22
- package/src/browser/contributions/notebook-cell-actions-contribution.ts +20 -9
- package/src/browser/contributions/notebook-label-provider-contribution.ts +2 -1
- package/src/browser/contributions/notebook-outline-contribution.ts +8 -6
- package/src/browser/contributions/notebook-status-bar-contribution.ts +4 -6
- package/src/browser/index.ts +1 -0
- package/src/browser/notebook-cell-open-handler.ts +3 -3
- package/src/browser/notebook-editor-split-contribution.ts +51 -0
- package/src/browser/notebook-editor-widget-factory.ts +11 -1
- package/src/browser/notebook-editor-widget.tsx +18 -3
- package/src/browser/notebook-frontend-module.ts +5 -0
- package/src/browser/notebook-open-handler.ts +19 -11
- package/src/browser/notebook-types.ts +1 -0
- package/src/browser/service/notebook-context-manager.ts +17 -9
- package/src/browser/view/notebook-cell-editor.tsx +13 -5
- package/src/browser/view/notebook-cell-list-view.tsx +15 -12
- package/src/browser/view/notebook-cell-toolbar-factory.tsx +5 -4
- package/src/browser/view/notebook-code-cell-view.tsx +6 -1
- package/src/browser/view/notebook-markdown-cell-view.tsx +27 -7
- package/src/browser/view-model/notebook-cell-model.ts +8 -41
- package/src/browser/view-model/notebook-model.ts +2 -33
- package/src/browser/view-model/notebook-view-model.ts +138 -0
- package/lib/browser/contributions/cell-operations.d.ts +0 -8
- package/lib/browser/contributions/cell-operations.d.ts.map +0 -1
- package/lib/browser/contributions/cell-operations.js +0 -45
- package/lib/browser/contributions/cell-operations.js.map +0 -1
- package/lib/browser/contributions/notebook-actions-contribution.d.ts +0 -48
- package/lib/browser/contributions/notebook-actions-contribution.d.ts.map +0 -1
- package/lib/browser/contributions/notebook-actions-contribution.js +0 -341
- package/lib/browser/contributions/notebook-actions-contribution.js.map +0 -1
- package/lib/browser/contributions/notebook-cell-actions-contribution.d.ts +0 -66
- package/lib/browser/contributions/notebook-cell-actions-contribution.d.ts.map +0 -1
- package/lib/browser/contributions/notebook-cell-actions-contribution.js +0 -512
- package/lib/browser/contributions/notebook-cell-actions-contribution.js.map +0 -1
- package/lib/browser/contributions/notebook-color-contribution.d.ts +0 -6
- package/lib/browser/contributions/notebook-color-contribution.d.ts.map +0 -1
- package/lib/browser/contributions/notebook-color-contribution.js +0 -247
- package/lib/browser/contributions/notebook-color-contribution.js.map +0 -1
- package/lib/browser/contributions/notebook-context-keys.d.ts +0 -44
- package/lib/browser/contributions/notebook-context-keys.d.ts.map +0 -1
- package/lib/browser/contributions/notebook-context-keys.js +0 -108
- package/lib/browser/contributions/notebook-context-keys.js.map +0 -1
- package/lib/browser/contributions/notebook-label-provider-contribution.d.ts +0 -19
- package/lib/browser/contributions/notebook-label-provider-contribution.d.ts.map +0 -1
- package/lib/browser/contributions/notebook-label-provider-contribution.js +0 -85
- package/lib/browser/contributions/notebook-label-provider-contribution.js.map +0 -1
- package/lib/browser/contributions/notebook-outline-contribution.d.ts +0 -28
- package/lib/browser/contributions/notebook-outline-contribution.d.ts.map +0 -1
- package/lib/browser/contributions/notebook-outline-contribution.js +0 -113
- package/lib/browser/contributions/notebook-outline-contribution.js.map +0 -1
- package/lib/browser/contributions/notebook-output-action-contribution.d.ts +0 -16
- package/lib/browser/contributions/notebook-output-action-contribution.d.ts.map +0 -1
- package/lib/browser/contributions/notebook-output-action-contribution.js +0 -83
- package/lib/browser/contributions/notebook-output-action-contribution.js.map +0 -1
- package/lib/browser/contributions/notebook-status-bar-contribution.d.ts +0 -12
- package/lib/browser/contributions/notebook-status-bar-contribution.d.ts.map +0 -1
- package/lib/browser/contributions/notebook-status-bar-contribution.js +0 -63
- package/lib/browser/contributions/notebook-status-bar-contribution.js.map +0 -1
- package/lib/browser/contributions/notebook-undo-redo-handler.d.ts +0 -10
- package/lib/browser/contributions/notebook-undo-redo-handler.d.ts.map +0 -1
- package/lib/browser/contributions/notebook-undo-redo-handler.js +0 -49
- package/lib/browser/contributions/notebook-undo-redo-handler.js.map +0 -1
- package/lib/browser/index.d.ts +0 -13
- package/lib/browser/index.d.ts.map +0 -1
- package/lib/browser/index.js +0 -31
- package/lib/browser/index.js.map +0 -1
- package/lib/browser/notebook-cell-open-handler.d.ts +0 -10
- package/lib/browser/notebook-cell-open-handler.d.ts.map +0 -1
- package/lib/browser/notebook-cell-open-handler.js +0 -51
- package/lib/browser/notebook-cell-open-handler.js.map +0 -1
- package/lib/browser/notebook-cell-resource-resolver.d.ts +0 -26
- package/lib/browser/notebook-cell-resource-resolver.d.ts.map +0 -1
- package/lib/browser/notebook-cell-resource-resolver.js +0 -109
- package/lib/browser/notebook-cell-resource-resolver.js.map +0 -1
- package/lib/browser/notebook-editor-widget-factory.d.ts +0 -19
- package/lib/browser/notebook-editor-widget-factory.d.ts.map +0 -1
- package/lib/browser/notebook-editor-widget-factory.js +0 -93
- package/lib/browser/notebook-editor-widget-factory.js.map +0 -1
- package/lib/browser/notebook-editor-widget.d.ts +0 -99
- package/lib/browser/notebook-editor-widget.d.ts.map +0 -1
- package/lib/browser/notebook-editor-widget.js +0 -323
- package/lib/browser/notebook-editor-widget.js.map +0 -1
- package/lib/browser/notebook-frontend-module.d.ts +0 -5
- package/lib/browser/notebook-frontend-module.d.ts.map +0 -1
- package/lib/browser/notebook-frontend-module.js +0 -112
- package/lib/browser/notebook-frontend-module.js.map +0 -1
- package/lib/browser/notebook-open-handler.d.ts +0 -23
- package/lib/browser/notebook-open-handler.d.ts.map +0 -1
- package/lib/browser/notebook-open-handler.js +0 -113
- package/lib/browser/notebook-open-handler.js.map +0 -1
- package/lib/browser/notebook-output-utils.d.ts +0 -13
- package/lib/browser/notebook-output-utils.d.ts.map +0 -1
- package/lib/browser/notebook-output-utils.js +0 -112
- package/lib/browser/notebook-output-utils.js.map +0 -1
- package/lib/browser/notebook-renderer-registry.d.ts +0 -25
- package/lib/browser/notebook-renderer-registry.d.ts.map +0 -1
- package/lib/browser/notebook-renderer-registry.js +0 -72
- package/lib/browser/notebook-renderer-registry.js.map +0 -1
- package/lib/browser/notebook-type-registry.d.ts +0 -12
- package/lib/browser/notebook-type-registry.d.ts.map +0 -1
- package/lib/browser/notebook-type-registry.js +0 -60
- package/lib/browser/notebook-type-registry.js.map +0 -1
- package/lib/browser/notebook-types.d.ts +0 -130
- package/lib/browser/notebook-types.d.ts.map +0 -1
- package/lib/browser/notebook-types.js +0 -28
- package/lib/browser/notebook-types.js.map +0 -1
- package/lib/browser/renderers/cell-output-webview.d.ts +0 -26
- package/lib/browser/renderers/cell-output-webview.d.ts.map +0 -1
- package/lib/browser/renderers/cell-output-webview.js +0 -21
- package/lib/browser/renderers/cell-output-webview.js.map +0 -1
- package/lib/browser/service/notebook-cell-editor-service.d.ts +0 -23
- package/lib/browser/service/notebook-cell-editor-service.d.ts.map +0 -1
- package/lib/browser/service/notebook-cell-editor-service.js +0 -89
- package/lib/browser/service/notebook-cell-editor-service.js.map +0 -1
- package/lib/browser/service/notebook-cell-status-bar-service.d.ts +0 -39
- package/lib/browser/service/notebook-cell-status-bar-service.d.ts.map +0 -1
- package/lib/browser/service/notebook-cell-status-bar-service.js +0 -69
- package/lib/browser/service/notebook-cell-status-bar-service.js.map +0 -1
- package/lib/browser/service/notebook-clipboard-service.d.ts +0 -10
- package/lib/browser/service/notebook-clipboard-service.d.ts.map +0 -1
- package/lib/browser/service/notebook-clipboard-service.js +0 -42
- package/lib/browser/service/notebook-clipboard-service.js.map +0 -1
- package/lib/browser/service/notebook-context-manager.d.ts +0 -26
- package/lib/browser/service/notebook-context-manager.d.ts.map +0 -1
- package/lib/browser/service/notebook-context-manager.js +0 -131
- package/lib/browser/service/notebook-context-manager.js.map +0 -1
- package/lib/browser/service/notebook-editor-widget-service.d.ts +0 -27
- package/lib/browser/service/notebook-editor-widget-service.d.ts.map +0 -1
- package/lib/browser/service/notebook-editor-widget-service.js +0 -124
- package/lib/browser/service/notebook-editor-widget-service.js.map +0 -1
- package/lib/browser/service/notebook-execution-service.d.ts +0 -25
- package/lib/browser/service/notebook-execution-service.d.ts.map +0 -1
- package/lib/browser/service/notebook-execution-service.js +0 -150
- package/lib/browser/service/notebook-execution-service.js.map +0 -1
- package/lib/browser/service/notebook-execution-state-service.d.ts +0 -78
- package/lib/browser/service/notebook-execution-state-service.d.ts.map +0 -1
- package/lib/browser/service/notebook-execution-state-service.js +0 -247
- package/lib/browser/service/notebook-execution-state-service.js.map +0 -1
- package/lib/browser/service/notebook-kernel-history-service.d.ts +0 -28
- package/lib/browser/service/notebook-kernel-history-service.d.ts.map +0 -1
- package/lib/browser/service/notebook-kernel-history-service.js +0 -116
- package/lib/browser/service/notebook-kernel-history-service.js.map +0 -1
- package/lib/browser/service/notebook-kernel-quick-pick-service.d.ts +0 -61
- package/lib/browser/service/notebook-kernel-quick-pick-service.d.ts.map +0 -1
- package/lib/browser/service/notebook-kernel-quick-pick-service.js +0 -425
- package/lib/browser/service/notebook-kernel-quick-pick-service.js.map +0 -1
- package/lib/browser/service/notebook-kernel-service.d.ts +0 -125
- package/lib/browser/service/notebook-kernel-service.d.ts.map +0 -1
- package/lib/browser/service/notebook-kernel-service.js +0 -268
- package/lib/browser/service/notebook-kernel-service.js.map +0 -1
- package/lib/browser/service/notebook-model-resolver-service.d.ts +0 -28
- package/lib/browser/service/notebook-model-resolver-service.d.ts.map +0 -1
- package/lib/browser/service/notebook-model-resolver-service.js +0 -157
- package/lib/browser/service/notebook-model-resolver-service.js.map +0 -1
- package/lib/browser/service/notebook-monaco-text-model-service.d.ts +0 -21
- package/lib/browser/service/notebook-monaco-text-model-service.d.ts.map +0 -1
- package/lib/browser/service/notebook-monaco-text-model-service.js +0 -73
- package/lib/browser/service/notebook-monaco-text-model-service.js.map +0 -1
- package/lib/browser/service/notebook-options.d.ts +0 -30
- package/lib/browser/service/notebook-options.d.ts.map +0 -1
- package/lib/browser/service/notebook-options.js +0 -130
- package/lib/browser/service/notebook-options.js.map +0 -1
- package/lib/browser/service/notebook-renderer-messaging-service.d.ts +0 -35
- package/lib/browser/service/notebook-renderer-messaging-service.d.ts.map +0 -1
- package/lib/browser/service/notebook-renderer-messaging-service.js +0 -100
- package/lib/browser/service/notebook-renderer-messaging-service.js.map +0 -1
- package/lib/browser/service/notebook-service.d.ts +0 -68
- package/lib/browser/service/notebook-service.d.ts.map +0 -1
- package/lib/browser/service/notebook-service.js +0 -184
- package/lib/browser/service/notebook-service.js.map +0 -1
- package/lib/browser/view/notebook-cell-editor.d.ts +0 -44
- package/lib/browser/view/notebook-cell-editor.d.ts.map +0 -1
- package/lib/browser/view/notebook-cell-editor.js +0 -267
- package/lib/browser/view/notebook-cell-editor.js.map +0 -1
- package/lib/browser/view/notebook-cell-list-view.d.ts +0 -56
- package/lib/browser/view/notebook-cell-list-view.d.ts.map +0 -1
- package/lib/browser/view/notebook-cell-list-view.js +0 -222
- package/lib/browser/view/notebook-cell-list-view.js.map +0 -1
- package/lib/browser/view/notebook-cell-toolbar-factory.d.ts +0 -33
- package/lib/browser/view/notebook-cell-toolbar-factory.d.ts.map +0 -1
- package/lib/browser/view/notebook-cell-toolbar-factory.js +0 -110
- package/lib/browser/view/notebook-cell-toolbar-factory.js.map +0 -1
- package/lib/browser/view/notebook-cell-toolbar.d.ts +0 -25
- package/lib/browser/view/notebook-cell-toolbar.d.ts.map +0 -1
- package/lib/browser/view/notebook-cell-toolbar.js +0 -51
- package/lib/browser/view/notebook-cell-toolbar.js.map +0 -1
- package/lib/browser/view/notebook-code-cell-view.d.ts +0 -91
- package/lib/browser/view/notebook-code-cell-view.d.ts.map +0 -1
- package/lib/browser/view/notebook-code-cell-view.js +0 -333
- package/lib/browser/view/notebook-code-cell-view.js.map +0 -1
- package/lib/browser/view/notebook-find-widget.d.ts +0 -63
- package/lib/browser/view/notebook-find-widget.d.ts.map +0 -1
- package/lib/browser/view/notebook-find-widget.js +0 -225
- package/lib/browser/view/notebook-find-widget.js.map +0 -1
- package/lib/browser/view/notebook-main-toolbar.d.ts +0 -53
- package/lib/browser/view/notebook-main-toolbar.d.ts.map +0 -1
- package/lib/browser/view/notebook-main-toolbar.js +0 -184
- package/lib/browser/view/notebook-main-toolbar.js.map +0 -1
- package/lib/browser/view/notebook-markdown-cell-view.d.ts +0 -26
- package/lib/browser/view/notebook-markdown-cell-view.d.ts.map +0 -1
- package/lib/browser/view/notebook-markdown-cell-view.js +0 -198
- package/lib/browser/view/notebook-markdown-cell-view.js.map +0 -1
- package/lib/browser/view/notebook-viewport-service.d.ts +0 -17
- package/lib/browser/view/notebook-viewport-service.d.ts.map +0 -1
- package/lib/browser/view/notebook-viewport-service.js +0 -61
- package/lib/browser/view/notebook-viewport-service.js.map +0 -1
- package/lib/browser/view-model/notebook-cell-model.d.ts +0 -149
- package/lib/browser/view-model/notebook-cell-model.d.ts.map +0 -1
- package/lib/browser/view-model/notebook-cell-model.js +0 -391
- package/lib/browser/view-model/notebook-cell-model.js.map +0 -1
- package/lib/browser/view-model/notebook-cell-output-model.d.ts +0 -17
- package/lib/browser/view-model/notebook-cell-output-model.d.ts.map +0 -1
- package/lib/browser/view-model/notebook-cell-output-model.js +0 -87
- package/lib/browser/view-model/notebook-cell-output-model.js.map +0 -1
- package/lib/browser/view-model/notebook-model.d.ts +0 -93
- package/lib/browser/view-model/notebook-model.d.ts.map +0 -1
- package/lib/browser/view-model/notebook-model.js +0 -468
- package/lib/browser/view-model/notebook-model.js.map +0 -1
- package/lib/common/index.d.ts +0 -3
- package/lib/common/index.d.ts.map +0 -1
- package/lib/common/index.js +0 -21
- package/lib/common/index.js.map +0 -1
- package/lib/common/notebook-common.d.ts +0 -227
- package/lib/common/notebook-common.d.ts.map +0 -1
- package/lib/common/notebook-common.js +0 -151
- package/lib/common/notebook-common.js.map +0 -1
- package/lib/common/notebook-preferences.d.ts +0 -15
- package/lib/common/notebook-preferences.d.ts.map +0 -1
- package/lib/common/notebook-preferences.js +0 -89
- package/lib/common/notebook-preferences.js.map +0 -1
- package/lib/common/notebook-protocol.d.ts +0 -21
- package/lib/common/notebook-protocol.d.ts.map +0 -1
- package/lib/common/notebook-protocol.js +0 -18
- package/lib/common/notebook-protocol.js.map +0 -1
- package/lib/common/notebook-range.d.ts +0 -14
- package/lib/common/notebook-range.d.ts.map +0 -1
- package/lib/common/notebook-range.js +0 -18
- package/lib/common/notebook-range.js.map +0 -1
- package/lib/node/notebook-backend-module.d.ts +0 -4
- package/lib/node/notebook-backend-module.d.ts.map +0 -1
- package/lib/node/notebook-backend-module.js +0 -23
- package/lib/node/notebook-backend-module.js.map +0 -1
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2024 Typefox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.NotebookCellEditorService = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const core_1 = require("@theia/core");
|
|
21
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
-
const notebook_editor_widget_service_1 = require("./notebook-editor-widget-service");
|
|
23
|
-
const common_1 = require("../../common");
|
|
24
|
-
const monaco_editor_service_1 = require("@theia/monaco/lib/browser/monaco-editor-service");
|
|
25
|
-
let NotebookCellEditorService = class NotebookCellEditorService {
|
|
26
|
-
constructor() {
|
|
27
|
-
this.onDidChangeCellEditorsEmitter = new core_1.Emitter();
|
|
28
|
-
this.onDidChangeCellEditors = this.onDidChangeCellEditorsEmitter.event;
|
|
29
|
-
this.onDidChangeFocusedCellEditorEmitter = new core_1.Emitter();
|
|
30
|
-
this.onDidChangeFocusedCellEditor = this.onDidChangeFocusedCellEditorEmitter.event;
|
|
31
|
-
this.currentCellEditors = new Map();
|
|
32
|
-
}
|
|
33
|
-
init() {
|
|
34
|
-
this.notebookEditorWidgetService.onDidChangeCurrentEditor(editor => {
|
|
35
|
-
var _a, _b;
|
|
36
|
-
// if defocus notebook editor or another notebook editor is focused, clear the active cell
|
|
37
|
-
if (!editor || (this.currentActiveCell && ((_a = common_1.CellUri.parse(this.currentActiveCell.uri)) === null || _a === void 0 ? void 0 : _a.notebook.toString()) !== ((_b = editor === null || editor === void 0 ? void 0 : editor.model) === null || _b === void 0 ? void 0 : _b.uri.toString()))) {
|
|
38
|
-
this.currentActiveCell = undefined;
|
|
39
|
-
// eslint-disable-next-line no-null/no-null
|
|
40
|
-
this.monacoEditorService.setActiveCodeEditor(null);
|
|
41
|
-
this.onDidChangeFocusedCellEditorEmitter.fire(undefined);
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
get allCellEditors() {
|
|
46
|
-
return Array.from(this.currentCellEditors.values());
|
|
47
|
-
}
|
|
48
|
-
editorCreated(uri, editor) {
|
|
49
|
-
this.currentCellEditors.set(uri.toString(), editor);
|
|
50
|
-
this.onDidChangeCellEditorsEmitter.fire();
|
|
51
|
-
}
|
|
52
|
-
editorDisposed(uri) {
|
|
53
|
-
this.currentCellEditors.delete(uri.toString());
|
|
54
|
-
this.onDidChangeCellEditorsEmitter.fire();
|
|
55
|
-
}
|
|
56
|
-
editorFocusChanged(editor) {
|
|
57
|
-
if (editor) {
|
|
58
|
-
this.currentActiveCell = editor;
|
|
59
|
-
this.monacoEditorService.setActiveCodeEditor(editor.getControl());
|
|
60
|
-
this.onDidChangeFocusedCellEditorEmitter.fire(editor);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
getActiveCell() {
|
|
64
|
-
return this.currentActiveCell;
|
|
65
|
-
}
|
|
66
|
-
getActiveEditor() {
|
|
67
|
-
var _a;
|
|
68
|
-
return (_a = this.getActiveCell()) === null || _a === void 0 ? void 0 : _a.getControl();
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
exports.NotebookCellEditorService = NotebookCellEditorService;
|
|
72
|
-
tslib_1.__decorate([
|
|
73
|
-
(0, inversify_1.inject)(notebook_editor_widget_service_1.NotebookEditorWidgetService),
|
|
74
|
-
tslib_1.__metadata("design:type", notebook_editor_widget_service_1.NotebookEditorWidgetService)
|
|
75
|
-
], NotebookCellEditorService.prototype, "notebookEditorWidgetService", void 0);
|
|
76
|
-
tslib_1.__decorate([
|
|
77
|
-
(0, inversify_1.inject)(monaco_editor_service_1.MonacoEditorService),
|
|
78
|
-
tslib_1.__metadata("design:type", monaco_editor_service_1.MonacoEditorService)
|
|
79
|
-
], NotebookCellEditorService.prototype, "monacoEditorService", void 0);
|
|
80
|
-
tslib_1.__decorate([
|
|
81
|
-
(0, inversify_1.postConstruct)(),
|
|
82
|
-
tslib_1.__metadata("design:type", Function),
|
|
83
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
84
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
85
|
-
], NotebookCellEditorService.prototype, "init", null);
|
|
86
|
-
exports.NotebookCellEditorService = NotebookCellEditorService = tslib_1.__decorate([
|
|
87
|
-
(0, inversify_1.injectable)()
|
|
88
|
-
], NotebookCellEditorService);
|
|
89
|
-
//# sourceMappingURL=notebook-cell-editor-service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notebook-cell-editor-service.js","sourceRoot":"","sources":["../../../src/browser/service/notebook-cell-editor-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AA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from '@theia/core';
|
|
2
|
-
import { CellStatusbarAlignment } from '../../common';
|
|
3
|
-
import { ThemeColor } from '@theia/core/lib/common/theme';
|
|
4
|
-
import { AccessibilityInformation } from '@theia/core/lib/common/accessibility';
|
|
5
|
-
import { MarkdownString } from '@theia/core/lib/common/markdown-rendering';
|
|
6
|
-
export interface NotebookCellStatusBarItem {
|
|
7
|
-
readonly alignment: CellStatusbarAlignment;
|
|
8
|
-
readonly priority?: number;
|
|
9
|
-
readonly text: string;
|
|
10
|
-
readonly color?: string | ThemeColor;
|
|
11
|
-
readonly backgroundColor?: string | ThemeColor;
|
|
12
|
-
readonly tooltip?: string | MarkdownString;
|
|
13
|
-
readonly command?: string | (Command & {
|
|
14
|
-
arguments?: unknown[];
|
|
15
|
-
});
|
|
16
|
-
readonly accessibilityInformation?: AccessibilityInformation;
|
|
17
|
-
readonly opacity?: string;
|
|
18
|
-
readonly onlyShowWhenActive?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export interface NotebookCellStatusBarItemList {
|
|
21
|
-
items: NotebookCellStatusBarItem[];
|
|
22
|
-
dispose?(): void;
|
|
23
|
-
}
|
|
24
|
-
export interface NotebookCellStatusBarItemProvider {
|
|
25
|
-
viewType: string;
|
|
26
|
-
onDidChangeStatusBarItems?: Event<void>;
|
|
27
|
-
provideCellStatusBarItems(uri: URI, index: number, token: CancellationToken): Promise<NotebookCellStatusBarItemList | undefined>;
|
|
28
|
-
}
|
|
29
|
-
export declare class NotebookCellStatusBarService implements Disposable {
|
|
30
|
-
protected readonly onDidChangeProvidersEmitter: Emitter<void>;
|
|
31
|
-
readonly onDidChangeProviders: Event<void>;
|
|
32
|
-
protected readonly onDidChangeItemsEmitter: Emitter<void>;
|
|
33
|
-
readonly onDidChangeItems: Event<void>;
|
|
34
|
-
protected readonly providers: NotebookCellStatusBarItemProvider[];
|
|
35
|
-
registerCellStatusBarItemProvider(provider: NotebookCellStatusBarItemProvider): Disposable;
|
|
36
|
-
getStatusBarItemsForCell(notebookUri: URI, cellIndex: number, viewType: string, token: CancellationToken): Promise<NotebookCellStatusBarItemList[]>;
|
|
37
|
-
dispose(): void;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=notebook-cell-status-bar-service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notebook-cell-status-bar-service.d.ts","sourceRoot":"","sources":["../../../src/browser/service/notebook-cell-status-bar-service.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAE3E,MAAM,WAAW,yBAAyB;IACtC,QAAQ,CAAC,SAAS,EAAE,sBAAsB,CAAC;IAC3C,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACrC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAC/C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC;IAC3C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC,OAAO,GAAG;QAAE,SAAS,CAAC,EAAE,OAAO,EAAE,CAAA;KAAE,CAAC,CAAC;IAClE,QAAQ,CAAC,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IAC7D,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CACzC;AACD,MAAM,WAAW,6BAA6B;IAC1C,KAAK,EAAE,yBAAyB,EAAE,CAAC;IACnC,OAAO,CAAC,IAAI,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,iCAAiC;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,yBAAyB,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACxC,yBAAyB,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,6BAA6B,GAAG,SAAS,CAAC,CAAC;CACpI;AAED,qBACa,4BAA6B,YAAW,UAAU;IAE3D,SAAS,CAAC,QAAQ,CAAC,2BAA2B,gBAAuB;IACrE,QAAQ,CAAC,oBAAoB,EAAE,KAAK,CAAC,IAAI,CAAC,CAA0C;IAEpF,SAAS,CAAC,QAAQ,CAAC,uBAAuB,gBAAuB;IACjE,QAAQ,CAAC,gBAAgB,EAAE,KAAK,CAAC,IAAI,CAAC,CAAsC;IAE5E,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,iCAAiC,EAAE,CAAM;IAEvE,iCAAiC,CAAC,QAAQ,EAAE,iCAAiC,GAAG,UAAU;IAgBpF,wBAAwB,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,6BAA6B,EAAE,CAAC;IAYzJ,OAAO,IAAI,IAAI;CAIlB"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2024 TypeFox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
/*---------------------------------------------------------------------------------------------
|
|
18
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
19
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
20
|
-
*--------------------------------------------------------------------------------------------*/
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.NotebookCellStatusBarService = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const core_1 = require("@theia/core");
|
|
25
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
26
|
-
let NotebookCellStatusBarService = class NotebookCellStatusBarService {
|
|
27
|
-
constructor() {
|
|
28
|
-
this.onDidChangeProvidersEmitter = new core_1.Emitter();
|
|
29
|
-
this.onDidChangeProviders = this.onDidChangeProvidersEmitter.event;
|
|
30
|
-
this.onDidChangeItemsEmitter = new core_1.Emitter();
|
|
31
|
-
this.onDidChangeItems = this.onDidChangeItemsEmitter.event;
|
|
32
|
-
this.providers = [];
|
|
33
|
-
}
|
|
34
|
-
registerCellStatusBarItemProvider(provider) {
|
|
35
|
-
this.providers.push(provider);
|
|
36
|
-
let changeListener;
|
|
37
|
-
if (provider.onDidChangeStatusBarItems) {
|
|
38
|
-
changeListener = provider.onDidChangeStatusBarItems(() => this.onDidChangeItemsEmitter.fire());
|
|
39
|
-
}
|
|
40
|
-
this.onDidChangeProvidersEmitter.fire();
|
|
41
|
-
return core_1.Disposable.create(() => {
|
|
42
|
-
changeListener === null || changeListener === void 0 ? void 0 : changeListener.dispose();
|
|
43
|
-
const idx = this.providers.findIndex(p => p === provider);
|
|
44
|
-
this.providers.splice(idx, 1);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
async getStatusBarItemsForCell(notebookUri, cellIndex, viewType, token) {
|
|
48
|
-
const providers = this.providers.filter(p => p.viewType === viewType || p.viewType === '*');
|
|
49
|
-
return Promise.all(providers.map(async (p) => {
|
|
50
|
-
var _a;
|
|
51
|
-
try {
|
|
52
|
-
return (_a = await p.provideCellStatusBarItems(notebookUri, cellIndex, token)) !== null && _a !== void 0 ? _a : { items: [] };
|
|
53
|
-
}
|
|
54
|
-
catch (e) {
|
|
55
|
-
console.error(e);
|
|
56
|
-
return { items: [] };
|
|
57
|
-
}
|
|
58
|
-
}));
|
|
59
|
-
}
|
|
60
|
-
dispose() {
|
|
61
|
-
this.onDidChangeItemsEmitter.dispose();
|
|
62
|
-
this.onDidChangeProvidersEmitter.dispose();
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
exports.NotebookCellStatusBarService = NotebookCellStatusBarService;
|
|
66
|
-
exports.NotebookCellStatusBarService = NotebookCellStatusBarService = tslib_1.__decorate([
|
|
67
|
-
(0, inversify_1.injectable)()
|
|
68
|
-
], NotebookCellStatusBarService);
|
|
69
|
-
//# sourceMappingURL=notebook-cell-status-bar-service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notebook-cell-status-bar-service.js","sourceRoot":"","sources":["../../../src/browser/service/notebook-cell-status-bar-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAChF;;;gGAGgG;;;;AAEhG,sCAA0F;AAI1F,4DAA0D;AA2BnD,IAAM,4BAA4B,GAAlC,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AAG,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,EAAC,CAAC,EAAC,EAAE;;YACvC,IAAI,CAAC;gBACD,OAAO,MAAA,MAAM,CAAC,CAAC,yBAAyB,CAAC,WAAW,EAAE,SAAS,EAAE,KAAK,CAAC,mCAAI,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;YAC7F,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBACjB,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;YACzB,CAAC;QACL,CAAC,CAAC,CAAC,CAAC;IACR,CAAC;IAED,OAAO;QACH,IAAI,CAAC,uBAAuB,CAAC,OAAO,EAAE,CAAC;QACvC,IAAI,CAAC,2BAA2B,CAAC,OAAO,EAAE,CAAC;IAC/C,CAAC;CACJ,CAAA;AA1CY,oEAA4B;uCAA5B,4BAA4B;IADxC,IAAA,sBAAU,GAAE;GACA,4BAA4B,CA0CxC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ClipboardService } from '@theia/core/lib/browser/clipboard-service';
|
|
2
|
-
import { NotebookCellModel } from '../view-model/notebook-cell-model';
|
|
3
|
-
import { CellData } from '../../common';
|
|
4
|
-
export declare class NotebookClipboardService {
|
|
5
|
-
protected copiedCell: CellData | undefined;
|
|
6
|
-
protected readonly clipboardService: ClipboardService;
|
|
7
|
-
copyCell(cell: NotebookCellModel): void;
|
|
8
|
-
getCell(): CellData | undefined;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=notebook-clipboard-service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notebook-clipboard-service.d.ts","sourceRoot":"","sources":["../../../src/browser/service/notebook-clipboard-service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,qBACa,wBAAwB;IAEjC,SAAS,CAAC,UAAU,EAAE,QAAQ,GAAG,SAAS,CAAC;IAG3C,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAEtD,QAAQ,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI;IAQvC,OAAO,IAAI,QAAQ,GAAG,SAAS;CAIlC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2024 Typefox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.NotebookClipboardService = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const clipboard_service_1 = require("@theia/core/lib/browser/clipboard-service");
|
|
22
|
-
const core_1 = require("@theia/core");
|
|
23
|
-
let NotebookClipboardService = class NotebookClipboardService {
|
|
24
|
-
copyCell(cell) {
|
|
25
|
-
this.copiedCell = cell.getData();
|
|
26
|
-
if (core_1.environment.electron.is()) {
|
|
27
|
-
this.clipboardService.writeText(cell.text);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
getCell() {
|
|
31
|
-
return this.copiedCell;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
exports.NotebookClipboardService = NotebookClipboardService;
|
|
35
|
-
tslib_1.__decorate([
|
|
36
|
-
(0, inversify_1.inject)(clipboard_service_1.ClipboardService),
|
|
37
|
-
tslib_1.__metadata("design:type", Object)
|
|
38
|
-
], NotebookClipboardService.prototype, "clipboardService", void 0);
|
|
39
|
-
exports.NotebookClipboardService = NotebookClipboardService = tslib_1.__decorate([
|
|
40
|
-
(0, inversify_1.injectable)()
|
|
41
|
-
], NotebookClipboardService);
|
|
42
|
-
//# sourceMappingURL=notebook-clipboard-service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notebook-clipboard-service.js","sourceRoot":"","sources":["../../../src/browser/service/notebook-clipboard-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAAkE;AAClE,iFAA6E;AAE7E,sCAA0C;AAInC,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAOjC,QAAQ,CAAC,IAAuB;QAC5B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QAEjC,IAAI,kBAAW,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC;YAC5B,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/C,CAAC;IACL,CAAC;IAED,OAAO;QACH,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CAEJ,CAAA;AAnBY,4DAAwB;AAKd;IADlB,IAAA,kBAAM,EAAC,oCAAgB,CAAC;;kEAC6B;mCAL7C,wBAAwB;IADpC,IAAA,sBAAU,GAAE;GACA,wBAAwB,CAmBpC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ContextKeyChangeEvent, ContextKeyService, ContextMatcher, ScopedValueStore } from '@theia/core/lib/browser/context-key-service';
|
|
2
|
-
import { DisposableCollection } from '@theia/core';
|
|
3
|
-
import { NotebookKernelService } from './notebook-kernel-service';
|
|
4
|
-
import { NotebookEditorWidget } from '../notebook-editor-widget';
|
|
5
|
-
import { NotebookCellModel } from '../view-model/notebook-cell-model';
|
|
6
|
-
import { NotebookExecutionStateService } from './notebook-execution-state-service';
|
|
7
|
-
export declare class NotebookContextManager {
|
|
8
|
-
protected contextKeyService: ContextKeyService;
|
|
9
|
-
protected readonly notebookKernelService: NotebookKernelService;
|
|
10
|
-
protected readonly executionStateService: NotebookExecutionStateService;
|
|
11
|
-
protected readonly toDispose: DisposableCollection;
|
|
12
|
-
protected _context?: HTMLElement;
|
|
13
|
-
scopedStore: ScopedValueStore;
|
|
14
|
-
get context(): HTMLElement | undefined;
|
|
15
|
-
protected cellContexts: Map<number, Record<string, unknown>>;
|
|
16
|
-
init(widget: NotebookEditorWidget): void;
|
|
17
|
-
protected cellDisposables: DisposableCollection;
|
|
18
|
-
selectedCellChanged(cell: NotebookCellModel | undefined): void;
|
|
19
|
-
protected setCellContext(cellHandle: number, key: string, value: unknown): void;
|
|
20
|
-
getCellContext(cellHandle: number): ContextMatcher;
|
|
21
|
-
changeCellFocus(focus: boolean): void;
|
|
22
|
-
changeCellListFocus(focus: boolean): void;
|
|
23
|
-
createContextKeyChangedEvent(affectedKeys: string[]): ContextKeyChangeEvent;
|
|
24
|
-
dispose(): void;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=notebook-context-manager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notebook-context-manager.d.ts","sourceRoot":"","sources":["../../../src/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,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAIzC,4BAA4B,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,qBAAqB;IAI3E,OAAO,IAAI,IAAI;CAGlB"}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2024 TypeFox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.NotebookContextManager = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const context_key_service_1 = require("@theia/core/lib/browser/context-key-service");
|
|
22
|
-
const core_1 = require("@theia/core");
|
|
23
|
-
const notebook_kernel_service_1 = require("./notebook-kernel-service");
|
|
24
|
-
const notebook_context_keys_1 = require("../contributions/notebook-context-keys");
|
|
25
|
-
const common_1 = require("../../common");
|
|
26
|
-
const notebook_execution_state_service_1 = require("./notebook-execution-state-service");
|
|
27
|
-
let NotebookContextManager = class NotebookContextManager {
|
|
28
|
-
constructor() {
|
|
29
|
-
this.toDispose = new core_1.DisposableCollection();
|
|
30
|
-
this.cellContexts = new Map();
|
|
31
|
-
this.cellDisposables = new core_1.DisposableCollection();
|
|
32
|
-
}
|
|
33
|
-
get context() {
|
|
34
|
-
return this._context;
|
|
35
|
-
}
|
|
36
|
-
init(widget) {
|
|
37
|
-
var _a, _b, _c, _d, _e;
|
|
38
|
-
this._context = widget.node;
|
|
39
|
-
this.scopedStore = this.contextKeyService.createScoped(widget.node);
|
|
40
|
-
this.toDispose.dispose();
|
|
41
|
-
this.scopedStore.setContext(notebook_context_keys_1.NOTEBOOK_VIEW_TYPE, widget === null || widget === void 0 ? void 0 : widget.notebookType);
|
|
42
|
-
// Kernel related keys
|
|
43
|
-
const kernel = (widget === null || widget === void 0 ? void 0 : widget.model) ? this.notebookKernelService.getSelectedNotebookKernel(widget.model) : undefined;
|
|
44
|
-
this.scopedStore.setContext(notebook_context_keys_1.NOTEBOOK_KERNEL_SELECTED, !!kernel);
|
|
45
|
-
this.scopedStore.setContext(notebook_context_keys_1.NOTEBOOK_KERNEL, kernel === null || kernel === void 0 ? void 0 : kernel.id);
|
|
46
|
-
this.toDispose.push(this.notebookKernelService.onDidChangeSelectedKernel(e => {
|
|
47
|
-
var _a;
|
|
48
|
-
if (e.notebook.toString() === ((_a = widget === null || widget === void 0 ? void 0 : widget.getResourceUri()) === null || _a === void 0 ? void 0 : _a.toString())) {
|
|
49
|
-
this.scopedStore.setContext(notebook_context_keys_1.NOTEBOOK_KERNEL_SELECTED, !!e.newKernel);
|
|
50
|
-
this.scopedStore.setContext(notebook_context_keys_1.NOTEBOOK_KERNEL, e.newKernel);
|
|
51
|
-
}
|
|
52
|
-
}));
|
|
53
|
-
(_a = widget.model) === null || _a === void 0 ? void 0 : _a.onDidChangeContent(events => {
|
|
54
|
-
var _a;
|
|
55
|
-
if (events.some(e => e.kind === common_1.NotebookCellsChangeType.ModelChange || e.kind === common_1.NotebookCellsChangeType.Output)) {
|
|
56
|
-
this.scopedStore.setContext(notebook_context_keys_1.NOTEBOOK_HAS_OUTPUTS, (_a = widget.model) === null || _a === void 0 ? void 0 : _a.cells.some(cell => cell.outputs.length > 0));
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
this.scopedStore.setContext(notebook_context_keys_1.NOTEBOOK_HAS_OUTPUTS, !!((_b = widget.model) === null || _b === void 0 ? void 0 : _b.cells.find(cell => cell.outputs.length > 0)));
|
|
60
|
-
// Cell Selection related keys
|
|
61
|
-
this.scopedStore.setContext(notebook_context_keys_1.NOTEBOOK_CELL_FOCUSED, !!((_c = widget.model) === null || _c === void 0 ? void 0 : _c.selectedCell));
|
|
62
|
-
this.selectedCellChanged((_d = widget.model) === null || _d === void 0 ? void 0 : _d.selectedCell);
|
|
63
|
-
(_e = widget.model) === null || _e === void 0 ? void 0 : _e.onDidChangeSelectedCell(e => {
|
|
64
|
-
this.selectedCellChanged(e.cell);
|
|
65
|
-
this.scopedStore.setContext(notebook_context_keys_1.NOTEBOOK_CELL_FOCUSED, !!e);
|
|
66
|
-
});
|
|
67
|
-
this.toDispose.push(this.executionStateService.onDidChangeExecution(e => {
|
|
68
|
-
var _a, _b, _c;
|
|
69
|
-
if (e.notebook.toString() === ((_a = widget.model) === null || _a === void 0 ? void 0 : _a.uri.toString())) {
|
|
70
|
-
this.setCellContext(e.cellHandle, notebook_context_keys_1.NOTEBOOK_CELL_EXECUTING, !!e.changed);
|
|
71
|
-
this.setCellContext(e.cellHandle, notebook_context_keys_1.NOTEBOOK_CELL_EXECUTION_STATE, (_c = (_b = e.changed) === null || _b === void 0 ? void 0 : _b.state) !== null && _c !== void 0 ? _c : 'idle');
|
|
72
|
-
}
|
|
73
|
-
}));
|
|
74
|
-
widget.onDidChangeOutputInputFocus(focus => {
|
|
75
|
-
this.scopedStore.setContext(notebook_context_keys_1.NOTEBOOK_OUTPUT_INPUT_FOCUSED, focus);
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
selectedCellChanged(cell) {
|
|
79
|
-
this.cellDisposables.dispose();
|
|
80
|
-
this.scopedStore.setContext(notebook_context_keys_1.NOTEBOOK_CELL_TYPE, cell ? cell.cellKind === common_1.CellKind.Code ? 'code' : 'markdown' : undefined);
|
|
81
|
-
if (cell) {
|
|
82
|
-
this.scopedStore.setContext(notebook_context_keys_1.NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, cell.editing);
|
|
83
|
-
this.scopedStore.setContext(notebook_context_keys_1.NOTEBOOK_CELL_EDITABLE, cell.cellKind === common_1.CellKind.Markup && !cell.editing);
|
|
84
|
-
this.cellDisposables.push(cell.onDidRequestCellEditChange(cellEdit => {
|
|
85
|
-
this.scopedStore.setContext(notebook_context_keys_1.NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, cellEdit);
|
|
86
|
-
this.scopedStore.setContext(notebook_context_keys_1.NOTEBOOK_CELL_EDITABLE, cell.cellKind === common_1.CellKind.Markup && !cellEdit);
|
|
87
|
-
}));
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
setCellContext(cellHandle, key, value) {
|
|
91
|
-
let cellContext = this.cellContexts.get(cellHandle);
|
|
92
|
-
if (!cellContext) {
|
|
93
|
-
cellContext = {};
|
|
94
|
-
this.cellContexts.set(cellHandle, cellContext);
|
|
95
|
-
}
|
|
96
|
-
cellContext[key] = value;
|
|
97
|
-
}
|
|
98
|
-
getCellContext(cellHandle) {
|
|
99
|
-
var _a;
|
|
100
|
-
return this.contextKeyService.createOverlay(Object.entries((_a = this.cellContexts.get(cellHandle)) !== null && _a !== void 0 ? _a : {}));
|
|
101
|
-
}
|
|
102
|
-
changeCellFocus(focus) {
|
|
103
|
-
this.scopedStore.setContext(notebook_context_keys_1.NOTEBOOK_CELL_FOCUSED, focus);
|
|
104
|
-
}
|
|
105
|
-
changeCellListFocus(focus) {
|
|
106
|
-
this.scopedStore.setContext(notebook_context_keys_1.NOTEBOOK_CELL_LIST_FOCUSED, focus);
|
|
107
|
-
}
|
|
108
|
-
createContextKeyChangedEvent(affectedKeys) {
|
|
109
|
-
return { affects: keys => affectedKeys.some(key => keys.has(key)) };
|
|
110
|
-
}
|
|
111
|
-
dispose() {
|
|
112
|
-
this.toDispose.dispose();
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
exports.NotebookContextManager = NotebookContextManager;
|
|
116
|
-
tslib_1.__decorate([
|
|
117
|
-
(0, inversify_1.inject)(context_key_service_1.ContextKeyService),
|
|
118
|
-
tslib_1.__metadata("design:type", Object)
|
|
119
|
-
], NotebookContextManager.prototype, "contextKeyService", void 0);
|
|
120
|
-
tslib_1.__decorate([
|
|
121
|
-
(0, inversify_1.inject)(notebook_kernel_service_1.NotebookKernelService),
|
|
122
|
-
tslib_1.__metadata("design:type", notebook_kernel_service_1.NotebookKernelService)
|
|
123
|
-
], NotebookContextManager.prototype, "notebookKernelService", void 0);
|
|
124
|
-
tslib_1.__decorate([
|
|
125
|
-
(0, inversify_1.inject)(notebook_execution_state_service_1.NotebookExecutionStateService),
|
|
126
|
-
tslib_1.__metadata("design:type", notebook_execution_state_service_1.NotebookExecutionStateService)
|
|
127
|
-
], NotebookContextManager.prototype, "executionStateService", void 0);
|
|
128
|
-
exports.NotebookContextManager = NotebookContextManager = tslib_1.__decorate([
|
|
129
|
-
(0, inversify_1.injectable)()
|
|
130
|
-
], NotebookContextManager);
|
|
131
|
-
//# sourceMappingURL=notebook-context-manager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notebook-context-manager.js","sourceRoot":"","sources":["../../../src/browser/service/notebook-context-manager.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAAkE;AAClE,qFAAyI;AACzI,sCAAmD;AACnD,uEAAkE;AAClE,kFAOgD;AAGhD,yCAAiE;AACjE,yFAAmF;AAG5E,IAAM,sBAAsB,G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AAC,UAAU,CAAC,kDAA0B,EAAE,KAAK,CAAC,CAAC;IACnE,CAAC;IAED,4BAA4B,CAAC,YAAsB;QAC/C,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;IACxE,CAAC;IAED,OAAO;QACH,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC;CACJ,CAAA;AAlHY,wDAAsB;AACM;IAApC,IAAA,kBAAM,EAAC,uCAAiB,CAAC;;iEAAgD;AAGvD;IADlB,IAAA,kBAAM,EAAC,+CAAqB,CAAC;sCACY,+CAAqB;qEAAC;AAG7C;IADlB,IAAA,kBAAM,EAAC,gEAA6B,CAAC;sCACI,gEAA6B;qEAAC;iCAP/D,sBAAsB;IADlC,IAAA,sBAAU,GAAE;GACA,sBAAsB,CAkHlC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Emitter } from '@theia/core';
|
|
2
|
-
import { ApplicationShell } from '@theia/core/lib/browser';
|
|
3
|
-
import { NotebookEditorWidget } from '../notebook-editor-widget';
|
|
4
|
-
import { ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
5
|
-
export declare class NotebookEditorWidgetService {
|
|
6
|
-
protected applicationShell: ApplicationShell;
|
|
7
|
-
protected contextKeyService: ContextKeyService;
|
|
8
|
-
protected readonly notebookEditors: Map<string, NotebookEditorWidget>;
|
|
9
|
-
protected readonly onNotebookEditorAddEmitter: Emitter<NotebookEditorWidget>;
|
|
10
|
-
protected readonly onNotebookEditorRemoveEmitter: Emitter<NotebookEditorWidget>;
|
|
11
|
-
readonly onDidAddNotebookEditor: import("@theia/core").Event<NotebookEditorWidget>;
|
|
12
|
-
readonly onDidRemoveNotebookEditor: import("@theia/core").Event<NotebookEditorWidget>;
|
|
13
|
-
protected readonly onDidChangeFocusedEditorEmitter: Emitter<NotebookEditorWidget | undefined>;
|
|
14
|
-
readonly onDidChangeFocusedEditor: import("@theia/core").Event<NotebookEditorWidget | undefined>;
|
|
15
|
-
protected readonly onDidChangeCurrentEditorEmitter: Emitter<NotebookEditorWidget | undefined>;
|
|
16
|
-
readonly onDidChangeCurrentEditor: import("@theia/core").Event<NotebookEditorWidget | undefined>;
|
|
17
|
-
focusedEditor?: NotebookEditorWidget;
|
|
18
|
-
currentEditor?: NotebookEditorWidget;
|
|
19
|
-
protected init(): void;
|
|
20
|
-
addNotebookEditor(editor: NotebookEditorWidget): void;
|
|
21
|
-
removeNotebookEditor(editor: NotebookEditorWidget): void;
|
|
22
|
-
getNotebookEditor(editorId: string): NotebookEditorWidget | undefined;
|
|
23
|
-
getNotebookEditors(): readonly NotebookEditorWidget[];
|
|
24
|
-
notebookEditorFocusChanged(editor: NotebookEditorWidget, focus: boolean): void;
|
|
25
|
-
currentNotebookEditorChanged(newEditor: unknown): void;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=notebook-editor-widget-service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notebook-editor-widget-service.d.ts","sourceRoot":"","sources":["../../../src/browser/service/notebook-editor-widget-service.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAGhF,qBACa,2BAA2B;IAGpC,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAG7C,SAAS,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAE/C,SAAS,CAAC,QAAQ,CAAC,eAAe,oCAA2C;IAE7E,SAAS,CAAC,QAAQ,CAAC,0BAA0B,gCAAuC;IACpF,SAAS,CAAC,QAAQ,CAAC,6BAA6B,gCAAuC;IACvF,QAAQ,CAAC,sBAAsB,oDAAyC;IACxE,QAAQ,CAAC,yBAAyB,oDAA4C;IAE9E,SAAS,CAAC,QAAQ,CAAC,+BAA+B,4CAAmD;IACrG,QAAQ,CAAC,wBAAwB,gEAA8C;IAE/E,SAAS,CAAC,QAAQ,CAAC,+BAA+B,4CAAmD;IACrG,QAAQ,CAAC,wBAAwB,gEAA8C;IAE/E,aAAa,CAAC,EAAE,oBAAoB,CAAa;IAEjD,aAAa,CAAC,EAAE,oBAAoB,CAAa;IAGjD,SAAS,CAAC,IAAI,IAAI,IAAI;IAatB,iBAAiB,CAAC,MAAM,EAAE,oBAAoB,GAAG,IAAI;IAWrD,oBAAoB,CAAC,MAAM,EAAE,oBAAoB,GAAG,IAAI;IASxD,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS;IAIrE,kBAAkB,IAAI,SAAS,oBAAoB,EAAE;IAIrD,0BAA0B,CAAC,MAAM,EAAE,oBAAoB,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAc9E,4BAA4B,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;CAUzD"}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2023 TypeFox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.NotebookEditorWidgetService = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
/*---------------------------------------------------------------------------------------------
|
|
21
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
22
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
23
|
-
*--------------------------------------------------------------------------------------------*/
|
|
24
|
-
const core_1 = require("@theia/core");
|
|
25
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
26
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
27
|
-
const notebook_editor_widget_1 = require("../notebook-editor-widget");
|
|
28
|
-
const context_key_service_1 = require("@theia/core/lib/browser/context-key-service");
|
|
29
|
-
const notebook_context_keys_1 = require("../contributions/notebook-context-keys");
|
|
30
|
-
let NotebookEditorWidgetService = class NotebookEditorWidgetService {
|
|
31
|
-
constructor() {
|
|
32
|
-
this.notebookEditors = new Map();
|
|
33
|
-
this.onNotebookEditorAddEmitter = new core_1.Emitter();
|
|
34
|
-
this.onNotebookEditorRemoveEmitter = new core_1.Emitter();
|
|
35
|
-
this.onDidAddNotebookEditor = this.onNotebookEditorAddEmitter.event;
|
|
36
|
-
this.onDidRemoveNotebookEditor = this.onNotebookEditorRemoveEmitter.event;
|
|
37
|
-
this.onDidChangeFocusedEditorEmitter = new core_1.Emitter();
|
|
38
|
-
this.onDidChangeFocusedEditor = this.onDidChangeFocusedEditorEmitter.event;
|
|
39
|
-
this.onDidChangeCurrentEditorEmitter = new core_1.Emitter();
|
|
40
|
-
this.onDidChangeCurrentEditor = this.onDidChangeCurrentEditorEmitter.event;
|
|
41
|
-
this.focusedEditor = undefined;
|
|
42
|
-
this.currentEditor = undefined;
|
|
43
|
-
}
|
|
44
|
-
init() {
|
|
45
|
-
this.applicationShell.onDidChangeActiveWidget(event => {
|
|
46
|
-
this.notebookEditorFocusChanged(event.newValue, event.newValue instanceof notebook_editor_widget_1.NotebookEditorWidget);
|
|
47
|
-
});
|
|
48
|
-
this.applicationShell.onDidChangeCurrentWidget(event => {
|
|
49
|
-
if (event.newValue instanceof notebook_editor_widget_1.NotebookEditorWidget || event.oldValue instanceof notebook_editor_widget_1.NotebookEditorWidget) {
|
|
50
|
-
this.currentNotebookEditorChanged(event.newValue);
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
// --- editor management
|
|
55
|
-
addNotebookEditor(editor) {
|
|
56
|
-
if (this.notebookEditors.has(editor.id)) {
|
|
57
|
-
console.warn('Attempting to add duplicated notebook editor: ' + editor.id);
|
|
58
|
-
}
|
|
59
|
-
this.notebookEditors.set(editor.id, editor);
|
|
60
|
-
this.onNotebookEditorAddEmitter.fire(editor);
|
|
61
|
-
if (editor.isVisible) {
|
|
62
|
-
this.notebookEditorFocusChanged(editor, true);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
removeNotebookEditor(editor) {
|
|
66
|
-
if (this.notebookEditors.has(editor.id)) {
|
|
67
|
-
this.notebookEditors.delete(editor.id);
|
|
68
|
-
this.onNotebookEditorRemoveEmitter.fire(editor);
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
console.warn('Attempting to remove not registered editor: ' + editor.id);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
getNotebookEditor(editorId) {
|
|
75
|
-
return this.notebookEditors.get(editorId);
|
|
76
|
-
}
|
|
77
|
-
getNotebookEditors() {
|
|
78
|
-
return Array.from(this.notebookEditors.values());
|
|
79
|
-
}
|
|
80
|
-
notebookEditorFocusChanged(editor, focus) {
|
|
81
|
-
if (focus) {
|
|
82
|
-
if (editor !== this.focusedEditor) {
|
|
83
|
-
this.focusedEditor = editor;
|
|
84
|
-
this.contextKeyService.setContext(notebook_context_keys_1.NOTEBOOK_EDITOR_FOCUSED, true);
|
|
85
|
-
this.onDidChangeFocusedEditorEmitter.fire(this.focusedEditor);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
else if (this.focusedEditor) {
|
|
89
|
-
this.focusedEditor = undefined;
|
|
90
|
-
this.contextKeyService.setContext(notebook_context_keys_1.NOTEBOOK_EDITOR_FOCUSED, false);
|
|
91
|
-
this.onDidChangeFocusedEditorEmitter.fire(undefined);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
currentNotebookEditorChanged(newEditor) {
|
|
95
|
-
var _a, _b;
|
|
96
|
-
if (newEditor instanceof notebook_editor_widget_1.NotebookEditorWidget) {
|
|
97
|
-
this.currentEditor = newEditor;
|
|
98
|
-
this.onDidChangeCurrentEditorEmitter.fire(newEditor);
|
|
99
|
-
}
|
|
100
|
-
else if (((_a = this.currentEditor) === null || _a === void 0 ? void 0 : _a.isDisposed) || !((_b = this.currentEditor) === null || _b === void 0 ? void 0 : _b.isVisible)) {
|
|
101
|
-
this.currentEditor = undefined;
|
|
102
|
-
this.onDidChangeCurrentEditorEmitter.fire(undefined);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
exports.NotebookEditorWidgetService = NotebookEditorWidgetService;
|
|
107
|
-
tslib_1.__decorate([
|
|
108
|
-
(0, inversify_1.inject)(browser_1.ApplicationShell),
|
|
109
|
-
tslib_1.__metadata("design:type", browser_1.ApplicationShell)
|
|
110
|
-
], NotebookEditorWidgetService.prototype, "applicationShell", void 0);
|
|
111
|
-
tslib_1.__decorate([
|
|
112
|
-
(0, inversify_1.inject)(context_key_service_1.ContextKeyService),
|
|
113
|
-
tslib_1.__metadata("design:type", Object)
|
|
114
|
-
], NotebookEditorWidgetService.prototype, "contextKeyService", void 0);
|
|
115
|
-
tslib_1.__decorate([
|
|
116
|
-
(0, inversify_1.postConstruct)(),
|
|
117
|
-
tslib_1.__metadata("design:type", Function),
|
|
118
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
119
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
120
|
-
], NotebookEditorWidgetService.prototype, "init", null);
|
|
121
|
-
exports.NotebookEditorWidgetService = NotebookEditorWidgetService = tslib_1.__decorate([
|
|
122
|
-
(0, inversify_1.injectable)()
|
|
123
|
-
], NotebookEditorWidgetService);
|
|
124
|
-
//# sourceMappingURL=notebook-editor-widget-service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notebook-editor-widget-service.js","sourceRoot":"","sources":["../../../src/browser/service/notebook-editor-widget-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF;;;gGAGgG;AAEhG,sCAAsC;AACtC,4DAAiF;AACjF,qDAA2D;AAC3D,sEAAiE;AACjE,qFAAgF;AAChF,kFAAiF;AAG1E,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAAjC;QAQgB,oBAAe,GAAG,IAAI,GAAG,EAAgC,CAAC;QAE1D,+BAA0B,GAAG,IAAI,cAAO,EAAwB,CAAC;QACjE,kCAA6B,GAAG,IAAI,cAAO,EAAwB,CAAC;QAC9E,2BAAsB,GAAG,IAAI,CAAC,0BAA0B,CAAC,KAAK,CAAC;QAC/D,8BAAyB,GAAG,IAAI,CAAC,6BAA6B,CAAC,KAAK,CAAC;QAE3D,oCAA+B,GAAG,IAAI,cAAO,EAAoC,CAAC;QAC5F,6BAAwB,GAAG,IAAI,CAAC,+BAA+B,CAAC,KAAK,CAAC;QAE5D,oCAA+B,GAAG,IAAI,cAAO,EAAoC,CAAC;QAC5F,6BAAwB,GAAG,IAAI,CAAC,+BAA+B,CAAC,KAAK,CAAC;QAE/E,kBAAa,GAA0B,SAAS,CAAC;QAEj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