@codingame/monaco-vscode-notebook-service-override 25.1.2 → 26.0.1
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/index.js +2 -2
- package/package.json +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +112 -94
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +95 -96
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +28 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +15 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +22 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +25 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +37 -44
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +211 -115
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +16 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +5 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +57 -49
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +24 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +78 -76
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +14 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +43 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +65 -34
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +19 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +6 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +15 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +28 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +211 -170
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +158 -156
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +109 -105
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +28 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +26 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +23 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +72 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +233 -186
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +22 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +239 -151
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +85 -86
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +25 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +13 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +8 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +218 -196
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +258 -255
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +106 -98
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +63 -49
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +55 -64
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +21 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +149 -129
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +286 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.js +82 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +452 -363
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +44 -61
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +9 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +203 -207
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js +148 -104
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +19 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/replEditorAccessibleView.js +9 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.js +9 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +34 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +29 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +70 -52
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +31 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +78 -41
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +37 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +9 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +8 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +214 -119
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +38 -36
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSource.js +24 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSourceFactory.js +2 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +26 -15
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +35 -15
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +468 -258
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +113 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +74 -58
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +7 -10
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookCellMatching.js +72 -16
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWebWorker.js +70 -51
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/repl.contribution.js +195 -149
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorAccessibilityHelp.js +60 -81
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +7 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +104 -66
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +115 -77
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +42 -26
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +19 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +0 -198
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +0 -333
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +0 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +0 -261
|
@@ -12,8 +12,8 @@ import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/com
|
|
|
12
12
|
var NotebookVariableRenderer_1;
|
|
13
13
|
const $ = $$1;
|
|
14
14
|
const MAX_VALUE_RENDER_LENGTH_IN_VIEWLET = 1024;
|
|
15
|
-
const NOTEBOOK_TITLE = ( localize2(
|
|
16
|
-
const REPL_TITLE = ( localize2(
|
|
15
|
+
const NOTEBOOK_TITLE = ( localize2(9642, "Notebook Variables"));
|
|
16
|
+
const REPL_TITLE = ( localize2(9643, "REPL Variables"));
|
|
17
17
|
class NotebookVariablesDelegate {
|
|
18
18
|
getHeight(element) {
|
|
19
19
|
return 22;
|
|
@@ -23,8 +23,12 @@ class NotebookVariablesDelegate {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
let NotebookVariableRenderer = class NotebookVariableRenderer {
|
|
26
|
-
static {
|
|
27
|
-
|
|
26
|
+
static {
|
|
27
|
+
NotebookVariableRenderer_1 = this;
|
|
28
|
+
}
|
|
29
|
+
static {
|
|
30
|
+
this.ID = "variableElement";
|
|
31
|
+
}
|
|
28
32
|
get templateId() {
|
|
29
33
|
return NotebookVariableRenderer_1.ID;
|
|
30
34
|
}
|
|
@@ -32,20 +36,25 @@ let NotebookVariableRenderer = class NotebookVariableRenderer {
|
|
|
32
36
|
this.expressionRenderer = instantiationService.createInstance(DebugExpressionRenderer);
|
|
33
37
|
}
|
|
34
38
|
renderTemplate(container) {
|
|
35
|
-
const expression = append(container, $(
|
|
36
|
-
const name = append(expression, $(
|
|
37
|
-
const value = append(expression, $(
|
|
38
|
-
const template = {
|
|
39
|
+
const expression = append(container, $(".expression"));
|
|
40
|
+
const name = append(expression, $("span.name"));
|
|
41
|
+
const value = append(expression, $("span.value"));
|
|
42
|
+
const template = {
|
|
43
|
+
expression,
|
|
44
|
+
name,
|
|
45
|
+
value,
|
|
46
|
+
elementDisposables: ( new DisposableStore())
|
|
47
|
+
};
|
|
39
48
|
return template;
|
|
40
49
|
}
|
|
41
50
|
renderElement(element, _index, data) {
|
|
42
|
-
const text = element.element.value.trim() !==
|
|
51
|
+
const text = element.element.value.trim() !== "" ? `${element.element.name}:` : element.element.name;
|
|
43
52
|
data.name.textContent = text;
|
|
44
|
-
data.name.title = element.element.type ??
|
|
53
|
+
data.name.title = element.element.type ?? "";
|
|
45
54
|
data.elementDisposables.add(this.expressionRenderer.renderValue(data.value, element.element, {
|
|
46
55
|
colorize: true,
|
|
47
56
|
maxValueLength: MAX_VALUE_RENDER_LENGTH_IN_VIEWLET,
|
|
48
|
-
session: undefined
|
|
57
|
+
session: undefined
|
|
49
58
|
}));
|
|
50
59
|
}
|
|
51
60
|
disposeElement(element, index, templateData) {
|
|
@@ -55,12 +64,10 @@ let NotebookVariableRenderer = class NotebookVariableRenderer {
|
|
|
55
64
|
templateData.elementDisposables.dispose();
|
|
56
65
|
}
|
|
57
66
|
};
|
|
58
|
-
NotebookVariableRenderer = NotebookVariableRenderer_1 = ( __decorate([
|
|
59
|
-
( __param(0, IInstantiationService))
|
|
60
|
-
], NotebookVariableRenderer));
|
|
67
|
+
NotebookVariableRenderer = NotebookVariableRenderer_1 = ( __decorate([( __param(0, IInstantiationService))], NotebookVariableRenderer));
|
|
61
68
|
class NotebookVariableAccessibilityProvider {
|
|
62
69
|
constructor() {
|
|
63
|
-
this._widgetAriaLabel = observableValue(
|
|
70
|
+
this._widgetAriaLabel = observableValue("widgetAriaLabel", NOTEBOOK_TITLE.value);
|
|
64
71
|
}
|
|
65
72
|
getWidgetAriaLabel() {
|
|
66
73
|
return this._widgetAriaLabel;
|
|
@@ -69,7 +76,7 @@ class NotebookVariableAccessibilityProvider {
|
|
|
69
76
|
this._widgetAriaLabel.set(label, undefined);
|
|
70
77
|
}
|
|
71
78
|
getAriaLabel(element) {
|
|
72
|
-
return localize(
|
|
79
|
+
return localize(9644, "Variable {0}, value {1}", element.name, element.value);
|
|
73
80
|
}
|
|
74
81
|
}
|
|
75
82
|
|
|
@@ -27,19 +27,55 @@ import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench
|
|
|
27
27
|
import { isCompositeNotebookEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
28
28
|
|
|
29
29
|
let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
|
|
30
|
-
static {
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
static {
|
|
31
|
+
this.ID = "notebookVariablesView";
|
|
32
|
+
}
|
|
33
|
+
constructor(
|
|
34
|
+
options,
|
|
35
|
+
editorService,
|
|
36
|
+
notebookKernelService,
|
|
37
|
+
notebookExecutionStateService,
|
|
38
|
+
keybindingService,
|
|
39
|
+
contextMenuService,
|
|
40
|
+
contextKeyService,
|
|
41
|
+
configurationService,
|
|
42
|
+
instantiationService,
|
|
43
|
+
viewDescriptorService,
|
|
44
|
+
openerService,
|
|
45
|
+
quickInputService,
|
|
46
|
+
commandService,
|
|
47
|
+
themeService,
|
|
48
|
+
hoverService,
|
|
49
|
+
menuService
|
|
50
|
+
) {
|
|
51
|
+
super(
|
|
52
|
+
options,
|
|
53
|
+
keybindingService,
|
|
54
|
+
contextMenuService,
|
|
55
|
+
configurationService,
|
|
56
|
+
contextKeyService,
|
|
57
|
+
viewDescriptorService,
|
|
58
|
+
instantiationService,
|
|
59
|
+
openerService,
|
|
60
|
+
themeService,
|
|
61
|
+
hoverService
|
|
62
|
+
);
|
|
33
63
|
this.editorService = editorService;
|
|
34
64
|
this.notebookKernelService = notebookKernelService;
|
|
35
65
|
this.notebookExecutionStateService = notebookExecutionStateService;
|
|
36
66
|
this.quickInputService = quickInputService;
|
|
37
67
|
this.commandService = commandService;
|
|
38
68
|
this.menuService = menuService;
|
|
39
|
-
this._register(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
this._register(
|
|
69
|
+
this._register(
|
|
70
|
+
this.editorService.onDidActiveEditorChange(() => this.handleActiveEditorChange())
|
|
71
|
+
);
|
|
72
|
+
this._register(
|
|
73
|
+
this.notebookKernelService.onDidNotebookVariablesUpdate(this.handleVariablesChanged.bind(this))
|
|
74
|
+
);
|
|
75
|
+
this._register(
|
|
76
|
+
this.notebookExecutionStateService.onDidChangeExecution(this.handleExecutionStateChange.bind(this))
|
|
77
|
+
);
|
|
78
|
+
this._register(this.editorService.onDidCloseEditor(e => this.handleCloseEditor(e)));
|
|
43
79
|
this.accessibilityProvider = ( new NotebookVariableAccessibilityProvider());
|
|
44
80
|
this.handleActiveEditorChange(false);
|
|
45
81
|
this.dataSource = ( new NotebookVariableDataSource(this.notebookKernelService));
|
|
@@ -47,14 +83,19 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
|
|
|
47
83
|
}
|
|
48
84
|
renderBody(container) {
|
|
49
85
|
super.renderBody(container);
|
|
50
|
-
this.element.classList.add(
|
|
51
|
-
this.tree = this.instantiationService.createInstance(
|
|
86
|
+
this.element.classList.add("debug-pane");
|
|
87
|
+
this.tree = this.instantiationService.createInstance(WorkbenchAsyncDataTree, "notebookVariablesTree", container, ( new NotebookVariablesDelegate()), [this.instantiationService.createInstance(NotebookVariableRenderer)], this.dataSource, {
|
|
52
88
|
accessibilityProvider: this.accessibilityProvider,
|
|
53
|
-
identityProvider: {
|
|
89
|
+
identityProvider: {
|
|
90
|
+
getId: e => e.id
|
|
91
|
+
}
|
|
54
92
|
});
|
|
55
93
|
this.tree.layout();
|
|
56
94
|
if (this.activeNotebook) {
|
|
57
|
-
this.tree.setInput({
|
|
95
|
+
this.tree.setInput({
|
|
96
|
+
kind: "root",
|
|
97
|
+
notebook: this.activeNotebook
|
|
98
|
+
});
|
|
58
99
|
}
|
|
59
100
|
this._register(this.tree.onContextMenu(e => this.onContextMenu(e)));
|
|
60
101
|
}
|
|
@@ -80,7 +121,10 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
|
|
|
80
121
|
[CONTEXT_VARIABLE_LANGUAGE.key, element.language],
|
|
81
122
|
[CONTEXT_VARIABLE_EXTENSIONID.key, element.extensionId]
|
|
82
123
|
]);
|
|
83
|
-
const menuActions = this.menuService.getMenuActions(MenuId.NotebookVariablesContext, overlayedContext, {
|
|
124
|
+
const menuActions = this.menuService.getMenuActions(MenuId.NotebookVariablesContext, overlayedContext, {
|
|
125
|
+
arg,
|
|
126
|
+
shouldForwardArgs: true
|
|
127
|
+
});
|
|
84
128
|
const actions = getFlatContextMenuActions(menuActions);
|
|
85
129
|
this.contextMenuService.showContextMenu({
|
|
86
130
|
getAnchor: () => e.anchor,
|
|
@@ -100,24 +144,31 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
|
|
|
100
144
|
if (isCompositeNotebookEditorInput(editor.input)) {
|
|
101
145
|
this.updateTitle(REPL_TITLE.value);
|
|
102
146
|
this.accessibilityProvider.updateWidgetAriaLabel(REPL_TITLE.value);
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
147
|
+
} else {
|
|
105
148
|
this.updateTitle(NOTEBOOK_TITLE.value);
|
|
106
149
|
this.accessibilityProvider.updateWidgetAriaLabel(NOTEBOOK_TITLE.value);
|
|
107
150
|
}
|
|
108
151
|
if (doUpdate) {
|
|
109
|
-
this.tree?.setInput({
|
|
152
|
+
this.tree?.setInput({
|
|
153
|
+
kind: "root",
|
|
154
|
+
notebook: notebookDocument
|
|
155
|
+
});
|
|
110
156
|
this.updateScheduler.schedule();
|
|
111
157
|
}
|
|
112
158
|
}
|
|
113
159
|
getActiveNotebook() {
|
|
114
160
|
const notebookEditor = this.editorService.activeEditorPane;
|
|
115
161
|
const notebookDocument = getNotebookEditorFromEditorPane(notebookEditor)?.textModel;
|
|
116
|
-
return notebookDocument && notebookEditor ? {
|
|
162
|
+
return notebookDocument && notebookEditor ? {
|
|
163
|
+
notebookDocument,
|
|
164
|
+
notebookEditor
|
|
165
|
+
} : undefined;
|
|
117
166
|
}
|
|
118
167
|
handleCloseEditor(e) {
|
|
119
168
|
if (e.editor.resource && ( e.editor.resource.toString()) === this.activeNotebook?.uri.toString()) {
|
|
120
|
-
this.tree?.setInput({
|
|
169
|
+
this.tree?.setInput({
|
|
170
|
+
kind: "empty"
|
|
171
|
+
});
|
|
121
172
|
this.updateScheduler.schedule();
|
|
122
173
|
}
|
|
123
174
|
}
|
|
@@ -132,12 +183,10 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
|
|
|
132
183
|
this.dataSource.cancel();
|
|
133
184
|
if (event.changed === undefined) {
|
|
134
185
|
this.updateScheduler.schedule();
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
186
|
+
} else {
|
|
137
187
|
this.updateScheduler.cancel();
|
|
138
188
|
}
|
|
139
|
-
}
|
|
140
|
-
else if (!this.getActiveNotebook()) {
|
|
189
|
+
} else if (!this.getActiveNotebook()) {
|
|
141
190
|
this.editorService.visibleEditorPanes.forEach(editor => {
|
|
142
191
|
const notebookDocument = getNotebookEditorFromEditorPane(editor)?.textModel;
|
|
143
192
|
if (notebookDocument && event.affectsNotebook(notebookDocument.uri)) {
|
|
@@ -149,8 +198,7 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
|
|
|
149
198
|
handleVariablesChanged(notebookUri) {
|
|
150
199
|
if (this.activeNotebook && ( notebookUri.toString()) === ( this.activeNotebook.uri.toString())) {
|
|
151
200
|
this.updateScheduler.schedule();
|
|
152
|
-
}
|
|
153
|
-
else if (!this.getActiveNotebook()) {
|
|
201
|
+
} else if (!this.getActiveNotebook()) {
|
|
154
202
|
this.editorService.visibleEditorPanes.forEach(editor => {
|
|
155
203
|
const notebookDocument = getNotebookEditorFromEditorPane(editor)?.textModel;
|
|
156
204
|
if (notebookDocument && ( notebookDocument.uri.toString()) === ( notebookUri.toString())) {
|
|
@@ -160,22 +208,6 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
|
|
|
160
208
|
}
|
|
161
209
|
}
|
|
162
210
|
};
|
|
163
|
-
NotebookVariablesView = ( __decorate([
|
|
164
|
-
( __param(1, IEditorService)),
|
|
165
|
-
( __param(2, INotebookKernelService)),
|
|
166
|
-
( __param(3, INotebookExecutionStateService)),
|
|
167
|
-
( __param(4, IKeybindingService)),
|
|
168
|
-
( __param(5, IContextMenuService)),
|
|
169
|
-
( __param(6, IContextKeyService)),
|
|
170
|
-
( __param(7, IConfigurationService)),
|
|
171
|
-
( __param(8, IInstantiationService)),
|
|
172
|
-
( __param(9, IViewDescriptorService)),
|
|
173
|
-
( __param(10, IOpenerService)),
|
|
174
|
-
( __param(11, IQuickInputService)),
|
|
175
|
-
( __param(12, ICommandService)),
|
|
176
|
-
( __param(13, IThemeService)),
|
|
177
|
-
( __param(14, IHoverService)),
|
|
178
|
-
( __param(15, IMenuService))
|
|
179
|
-
], NotebookVariablesView));
|
|
211
|
+
NotebookVariablesView = ( __decorate([( __param(1, IEditorService)), ( __param(2, INotebookKernelService)), ( __param(3, INotebookExecutionStateService)), ( __param(4, IKeybindingService)), ( __param(5, IContextMenuService)), ( __param(6, IContextKeyService)), ( __param(7, IConfigurationService)), ( __param(8, IInstantiationService)), ( __param(9, IViewDescriptorService)), ( __param(10, IOpenerService)), ( __param(11, IQuickInputService)), ( __param(12, ICommandService)), ( __param(13, IThemeService)), ( __param(14, IHoverService)), ( __param(15, IMenuService))], NotebookVariablesView));
|
|
180
212
|
|
|
181
213
|
export { NotebookVariablesView };
|