@codingame/monaco-vscode-notebook-service-override 4.5.1 → 5.0.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/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +38 -48
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +24 -32
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +30 -53
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +3 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +9 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +43 -87
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +9 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +35 -48
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +13 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +2 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +121 -79
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +13 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +8 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +25 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +29 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +107 -109
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +4 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +97 -119
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +7 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +199 -196
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +132 -145
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +70 -130
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +32 -92
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +39 -64
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +13 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +28 -43
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +23 -66
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +58 -57
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +200 -278
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibility.js +33 -36
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +58 -153
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +15 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +13 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +22 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +5 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +100 -92
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +11 -6
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +6 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +6 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +42 -77
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +43 -46
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +1 -1
|
@@ -3,7 +3,7 @@ import { EditorExtensionsRegistry } from 'vscode/vscode/vs/editor/browser/editor
|
|
|
3
3
|
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
4
4
|
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
5
5
|
import { CONTEXT_ACCESSIBILITY_MODE_ENABLED } from 'vscode/vscode/vs/platform/accessibility/common/accessibility';
|
|
6
|
-
import { registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
6
|
+
import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
7
7
|
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
8
8
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
9
9
|
import { InputFocusedContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
|
|
@@ -13,8 +13,9 @@ import { CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION } from 'vscode/vscode/vs/workben
|
|
|
13
13
|
import { NotebookCellAction, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, findTargetCellEditor, NotebookAction } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
14
14
|
import { CellEditState } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
15
15
|
import { NOTEBOOK_EDITOR_CURSOR_BOUNDARY, CellKind } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
16
|
-
import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_CELL_TYPE, NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, NOTEBOOK_CURSOR_NAVIGATION_MODE, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_CELL_HAS_OUTPUTS } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
16
|
+
import { NOTEBOOK_OUTPUT_INPUT_FOCUSED, NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_CELL_TYPE, NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, NOTEBOOK_CURSOR_NAVIGATION_MODE, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_CELL_HAS_OUTPUTS } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
17
17
|
|
|
18
|
+
const _moduleId = "vs/workbench/contrib/notebook/browser/contrib/navigation/arrow";
|
|
18
19
|
const NOTEBOOK_FOCUS_TOP = 'notebook.focusTop';
|
|
19
20
|
const NOTEBOOK_FOCUS_BOTTOM = 'notebook.focusBottom';
|
|
20
21
|
const NOTEBOOK_FOCUS_PREVIOUS_EDITOR = 'notebook.focusPreviousEditor';
|
|
@@ -26,28 +27,70 @@ const NOTEBOOK_CURSOR_PAGEUP_COMMAND_ID = 'notebook.cell.cursorPageUp';
|
|
|
26
27
|
const NOTEBOOK_CURSOR_PAGEUP_SELECT_COMMAND_ID = 'notebook.cell.cursorPageUpSelect';
|
|
27
28
|
const NOTEBOOK_CURSOR_PAGEDOWN_COMMAND_ID = 'notebook.cell.cursorPageDown';
|
|
28
29
|
const NOTEBOOK_CURSOR_PAGEDOWN_SELECT_COMMAND_ID = 'notebook.cell.cursorPageDownSelect';
|
|
29
|
-
registerAction2(class
|
|
30
|
+
registerAction2(class extends Action2 {
|
|
30
31
|
constructor() {
|
|
31
32
|
super({
|
|
32
|
-
id:
|
|
33
|
+
id: 'notebook.cell.nullAction',
|
|
33
34
|
title: ( localizeWithPath(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
_moduleId,
|
|
36
|
+
0,
|
|
37
|
+
"Keypresses that should be handled by the focused element in the cell output."
|
|
37
38
|
)),
|
|
39
|
+
keybinding: [{
|
|
40
|
+
when: NOTEBOOK_OUTPUT_INPUT_FOCUSED,
|
|
41
|
+
primary: 18 ,
|
|
42
|
+
weight: 200 + 1
|
|
43
|
+
}, {
|
|
44
|
+
when: NOTEBOOK_OUTPUT_INPUT_FOCUSED,
|
|
45
|
+
primary: 16 ,
|
|
46
|
+
weight: 200 + 1
|
|
47
|
+
}],
|
|
48
|
+
f1: false
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
run() {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
registerAction2(class FocusNextCellAction extends NotebookCellAction {
|
|
56
|
+
constructor() {
|
|
57
|
+
super({
|
|
58
|
+
id: NOTEBOOK_FOCUS_NEXT_EDITOR,
|
|
59
|
+
title: ( localizeWithPath(_moduleId, 1, 'Focus Next Cell Editor')),
|
|
38
60
|
keybinding: [
|
|
39
61
|
{
|
|
40
|
-
when: (
|
|
62
|
+
when: ( (ContextKeyExpr.and(
|
|
63
|
+
NOTEBOOK_EDITOR_FOCUSED,
|
|
64
|
+
(CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()),
|
|
65
|
+
(ContextKeyExpr.equals('config.notebook.navigation.allowNavigateToSurroundingCells', true)),
|
|
66
|
+
(ContextKeyExpr.and(
|
|
67
|
+
(ContextKeyExpr.has(InputFocusedContextKey)),
|
|
68
|
+
EditorContextKeys.editorTextFocus,
|
|
69
|
+
(NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo('top')),
|
|
70
|
+
(NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo('none'))
|
|
71
|
+
)),
|
|
72
|
+
(EditorContextKeys.isEmbeddedDiffEditor.negate())
|
|
73
|
+
))),
|
|
41
74
|
primary: 18 ,
|
|
42
75
|
weight: NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT,
|
|
43
76
|
},
|
|
44
77
|
{
|
|
45
|
-
when: (
|
|
78
|
+
when: ( (ContextKeyExpr.and(
|
|
79
|
+
NOTEBOOK_EDITOR_FOCUSED,
|
|
80
|
+
(CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()),
|
|
81
|
+
(ContextKeyExpr.equals('config.notebook.navigation.allowNavigateToSurroundingCells', true)),
|
|
82
|
+
(ContextKeyExpr.and(
|
|
83
|
+
(NOTEBOOK_CELL_TYPE.isEqualTo('markup')),
|
|
84
|
+
(NOTEBOOK_CELL_MARKDOWN_EDIT_MODE.isEqualTo(false)),
|
|
85
|
+
NOTEBOOK_CURSOR_NAVIGATION_MODE
|
|
86
|
+
)),
|
|
87
|
+
(EditorContextKeys.isEmbeddedDiffEditor.negate())
|
|
88
|
+
))),
|
|
46
89
|
primary: 18 ,
|
|
47
90
|
weight: 200 ,
|
|
48
91
|
},
|
|
49
92
|
{
|
|
50
|
-
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED)),
|
|
93
|
+
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED))),
|
|
51
94
|
primary: 2048 | 18 ,
|
|
52
95
|
mac: { primary: 256 | 2048 | 18 , },
|
|
53
96
|
weight: 200
|
|
@@ -88,19 +131,36 @@ registerAction2(class FocusPreviousCellAction extends NotebookCellAction {
|
|
|
88
131
|
constructor() {
|
|
89
132
|
super({
|
|
90
133
|
id: NOTEBOOK_FOCUS_PREVIOUS_EDITOR,
|
|
91
|
-
title: ( localizeWithPath(
|
|
92
|
-
'vs/workbench/contrib/notebook/browser/contrib/navigation/arrow',
|
|
93
|
-
'cursorMoveUp',
|
|
94
|
-
'Focus Previous Cell Editor'
|
|
95
|
-
)),
|
|
134
|
+
title: ( localizeWithPath(_moduleId, 2, 'Focus Previous Cell Editor')),
|
|
96
135
|
keybinding: [
|
|
97
136
|
{
|
|
98
|
-
when: (
|
|
137
|
+
when: ( (ContextKeyExpr.and(
|
|
138
|
+
NOTEBOOK_EDITOR_FOCUSED,
|
|
139
|
+
(CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()),
|
|
140
|
+
(ContextKeyExpr.equals('config.notebook.navigation.allowNavigateToSurroundingCells', true)),
|
|
141
|
+
(ContextKeyExpr.and(
|
|
142
|
+
(ContextKeyExpr.has(InputFocusedContextKey)),
|
|
143
|
+
EditorContextKeys.editorTextFocus,
|
|
144
|
+
(NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo('bottom')),
|
|
145
|
+
(NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo('none'))
|
|
146
|
+
)),
|
|
147
|
+
(EditorContextKeys.isEmbeddedDiffEditor.negate())
|
|
148
|
+
))),
|
|
99
149
|
primary: 16 ,
|
|
100
150
|
weight: NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT,
|
|
101
151
|
},
|
|
102
152
|
{
|
|
103
|
-
when: (
|
|
153
|
+
when: ( (ContextKeyExpr.and(
|
|
154
|
+
NOTEBOOK_EDITOR_FOCUSED,
|
|
155
|
+
(CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()),
|
|
156
|
+
(ContextKeyExpr.equals('config.notebook.navigation.allowNavigateToSurroundingCells', true)),
|
|
157
|
+
(ContextKeyExpr.and(
|
|
158
|
+
(NOTEBOOK_CELL_TYPE.isEqualTo('markup')),
|
|
159
|
+
(NOTEBOOK_CELL_MARKDOWN_EDIT_MODE.isEqualTo(false)),
|
|
160
|
+
NOTEBOOK_CURSOR_NAVIGATION_MODE
|
|
161
|
+
)),
|
|
162
|
+
(EditorContextKeys.isEmbeddedDiffEditor.negate())
|
|
163
|
+
))),
|
|
104
164
|
primary: 16 ,
|
|
105
165
|
weight: 200 ,
|
|
106
166
|
},
|
|
@@ -137,23 +197,19 @@ registerAction2(class extends NotebookAction {
|
|
|
137
197
|
constructor() {
|
|
138
198
|
super({
|
|
139
199
|
id: NOTEBOOK_FOCUS_TOP,
|
|
140
|
-
title: ( localizeWithPath(
|
|
141
|
-
'vs/workbench/contrib/notebook/browser/contrib/navigation/arrow',
|
|
142
|
-
'focusFirstCell',
|
|
143
|
-
'Focus First Cell'
|
|
144
|
-
)),
|
|
200
|
+
title: ( localizeWithPath(_moduleId, 3, 'Focus First Cell')),
|
|
145
201
|
keybinding: [
|
|
146
202
|
{
|
|
147
|
-
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
|
|
203
|
+
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)))),
|
|
148
204
|
primary: 2048 | 14 ,
|
|
149
205
|
weight: 200
|
|
150
206
|
},
|
|
151
207
|
{
|
|
152
|
-
when: ( ContextKeyExpr.and(
|
|
208
|
+
when: ( (ContextKeyExpr.and(
|
|
153
209
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
154
210
|
ContextKeyExpr.not(InputFocusedContextKey),
|
|
155
|
-
|
|
156
|
-
)),
|
|
211
|
+
(CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION.isEqualTo(''))
|
|
212
|
+
))),
|
|
157
213
|
mac: { primary: 2048 | 16 },
|
|
158
214
|
weight: 200
|
|
159
215
|
}
|
|
@@ -173,24 +229,20 @@ registerAction2(class extends NotebookAction {
|
|
|
173
229
|
constructor() {
|
|
174
230
|
super({
|
|
175
231
|
id: NOTEBOOK_FOCUS_BOTTOM,
|
|
176
|
-
title: ( localizeWithPath(
|
|
177
|
-
'vs/workbench/contrib/notebook/browser/contrib/navigation/arrow',
|
|
178
|
-
'focusLastCell',
|
|
179
|
-
'Focus Last Cell'
|
|
180
|
-
)),
|
|
232
|
+
title: ( localizeWithPath(_moduleId, 4, 'Focus Last Cell')),
|
|
181
233
|
keybinding: [
|
|
182
234
|
{
|
|
183
|
-
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
|
|
235
|
+
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)))),
|
|
184
236
|
primary: 2048 | 13 ,
|
|
185
237
|
mac: undefined,
|
|
186
238
|
weight: 200
|
|
187
239
|
},
|
|
188
240
|
{
|
|
189
|
-
when: ( ContextKeyExpr.and(
|
|
241
|
+
when: ( (ContextKeyExpr.and(
|
|
190
242
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
191
243
|
ContextKeyExpr.not(InputFocusedContextKey),
|
|
192
|
-
|
|
193
|
-
)),
|
|
244
|
+
(CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION.isEqualTo(''))
|
|
245
|
+
))),
|
|
194
246
|
mac: { primary: 2048 | 18 },
|
|
195
247
|
weight: 200
|
|
196
248
|
}
|
|
@@ -214,13 +266,9 @@ registerAction2(class extends NotebookCellAction {
|
|
|
214
266
|
constructor() {
|
|
215
267
|
super({
|
|
216
268
|
id: FOCUS_IN_OUTPUT_COMMAND_ID,
|
|
217
|
-
title: ( localizeWithPath(
|
|
218
|
-
'vs/workbench/contrib/notebook/browser/contrib/navigation/arrow',
|
|
219
|
-
'focusOutput',
|
|
220
|
-
'Focus In Active Cell Output'
|
|
221
|
-
)),
|
|
269
|
+
title: ( localizeWithPath(_moduleId, 5, 'Focus In Active Cell Output')),
|
|
222
270
|
keybinding: {
|
|
223
|
-
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_CELL_HAS_OUTPUTS)),
|
|
271
|
+
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_CELL_HAS_OUTPUTS))),
|
|
224
272
|
primary: 2048 | 18 ,
|
|
225
273
|
mac: { primary: 256 | 2048 | 18 , },
|
|
226
274
|
weight: 200
|
|
@@ -237,13 +285,9 @@ registerAction2(class extends NotebookCellAction {
|
|
|
237
285
|
constructor() {
|
|
238
286
|
super({
|
|
239
287
|
id: FOCUS_OUT_OUTPUT_COMMAND_ID,
|
|
240
|
-
title: ( localizeWithPath(
|
|
241
|
-
'vs/workbench/contrib/notebook/browser/contrib/navigation/arrow',
|
|
242
|
-
'focusOutputOut',
|
|
243
|
-
'Focus Out Active Cell Output'
|
|
244
|
-
)),
|
|
288
|
+
title: ( localizeWithPath(_moduleId, 6, 'Focus Out Active Cell Output')),
|
|
245
289
|
keybinding: {
|
|
246
|
-
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED)),
|
|
290
|
+
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED))),
|
|
247
291
|
primary: 2048 | 16 ,
|
|
248
292
|
mac: { primary: 256 | 2048 | 16 , },
|
|
249
293
|
weight: 200
|
|
@@ -260,11 +304,7 @@ registerAction2(class CenterActiveCellAction extends NotebookCellAction {
|
|
|
260
304
|
constructor() {
|
|
261
305
|
super({
|
|
262
306
|
id: CENTER_ACTIVE_CELL,
|
|
263
|
-
title: ( localizeWithPath(
|
|
264
|
-
'vs/workbench/contrib/notebook/browser/contrib/navigation/arrow',
|
|
265
|
-
'notebookActions.centerActiveCell',
|
|
266
|
-
"Center Active Cell"
|
|
267
|
-
)),
|
|
307
|
+
title: ( localizeWithPath(_moduleId, 7, "Center Active Cell")),
|
|
268
308
|
keybinding: {
|
|
269
309
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
270
310
|
primary: 2048 | 42 ,
|
|
@@ -283,14 +323,14 @@ registerAction2(class extends NotebookCellAction {
|
|
|
283
323
|
constructor() {
|
|
284
324
|
super({
|
|
285
325
|
id: NOTEBOOK_CURSOR_PAGEUP_COMMAND_ID,
|
|
286
|
-
title: ( localizeWithPath(
|
|
287
|
-
'vs/workbench/contrib/notebook/browser/contrib/navigation/arrow',
|
|
288
|
-
'cursorPageUp',
|
|
289
|
-
"Cell Cursor Page Up"
|
|
290
|
-
)),
|
|
326
|
+
title: ( localizeWithPath(_moduleId, 8, "Cell Cursor Page Up")),
|
|
291
327
|
keybinding: [
|
|
292
328
|
{
|
|
293
|
-
when: ( ContextKeyExpr.and(
|
|
329
|
+
when: ( (ContextKeyExpr.and(
|
|
330
|
+
NOTEBOOK_EDITOR_FOCUSED,
|
|
331
|
+
(ContextKeyExpr.has(InputFocusedContextKey)),
|
|
332
|
+
EditorContextKeys.editorTextFocus
|
|
333
|
+
))),
|
|
294
334
|
primary: 11 ,
|
|
295
335
|
weight: NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT
|
|
296
336
|
}
|
|
@@ -305,14 +345,15 @@ registerAction2(class extends NotebookCellAction {
|
|
|
305
345
|
constructor() {
|
|
306
346
|
super({
|
|
307
347
|
id: NOTEBOOK_CURSOR_PAGEUP_SELECT_COMMAND_ID,
|
|
308
|
-
title: ( localizeWithPath(
|
|
309
|
-
'vs/workbench/contrib/notebook/browser/contrib/navigation/arrow',
|
|
310
|
-
'cursorPageUpSelect',
|
|
311
|
-
"Cell Cursor Page Up Select"
|
|
312
|
-
)),
|
|
348
|
+
title: ( localizeWithPath(_moduleId, 9, "Cell Cursor Page Up Select")),
|
|
313
349
|
keybinding: [
|
|
314
350
|
{
|
|
315
|
-
when: ( ContextKeyExpr.and(
|
|
351
|
+
when: ( (ContextKeyExpr.and(
|
|
352
|
+
NOTEBOOK_EDITOR_FOCUSED,
|
|
353
|
+
(ContextKeyExpr.has(InputFocusedContextKey)),
|
|
354
|
+
EditorContextKeys.editorTextFocus,
|
|
355
|
+
(NOTEBOOK_OUTPUT_FOCUSED.negate())
|
|
356
|
+
))),
|
|
316
357
|
primary: 1024 | 11 ,
|
|
317
358
|
weight: NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT
|
|
318
359
|
}
|
|
@@ -327,14 +368,14 @@ registerAction2(class extends NotebookCellAction {
|
|
|
327
368
|
constructor() {
|
|
328
369
|
super({
|
|
329
370
|
id: NOTEBOOK_CURSOR_PAGEDOWN_COMMAND_ID,
|
|
330
|
-
title: ( localizeWithPath(
|
|
331
|
-
'vs/workbench/contrib/notebook/browser/contrib/navigation/arrow',
|
|
332
|
-
'cursorPageDown',
|
|
333
|
-
"Cell Cursor Page Down"
|
|
334
|
-
)),
|
|
371
|
+
title: ( localizeWithPath(_moduleId, 10, "Cell Cursor Page Down")),
|
|
335
372
|
keybinding: [
|
|
336
373
|
{
|
|
337
|
-
when: ( ContextKeyExpr.and(
|
|
374
|
+
when: ( (ContextKeyExpr.and(
|
|
375
|
+
NOTEBOOK_EDITOR_FOCUSED,
|
|
376
|
+
(ContextKeyExpr.has(InputFocusedContextKey)),
|
|
377
|
+
EditorContextKeys.editorTextFocus
|
|
378
|
+
))),
|
|
338
379
|
primary: 12 ,
|
|
339
380
|
weight: NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT
|
|
340
381
|
}
|
|
@@ -349,14 +390,15 @@ registerAction2(class extends NotebookCellAction {
|
|
|
349
390
|
constructor() {
|
|
350
391
|
super({
|
|
351
392
|
id: NOTEBOOK_CURSOR_PAGEDOWN_SELECT_COMMAND_ID,
|
|
352
|
-
title: ( localizeWithPath(
|
|
353
|
-
'vs/workbench/contrib/notebook/browser/contrib/navigation/arrow',
|
|
354
|
-
'cursorPageDownSelect',
|
|
355
|
-
"Cell Cursor Page Down Select"
|
|
356
|
-
)),
|
|
393
|
+
title: ( localizeWithPath(_moduleId, 11, "Cell Cursor Page Down Select")),
|
|
357
394
|
keybinding: [
|
|
358
395
|
{
|
|
359
|
-
when: ( ContextKeyExpr.and(
|
|
396
|
+
when: ( (ContextKeyExpr.and(
|
|
397
|
+
NOTEBOOK_EDITOR_FOCUSED,
|
|
398
|
+
(ContextKeyExpr.has(InputFocusedContextKey)),
|
|
399
|
+
EditorContextKeys.editorTextFocus,
|
|
400
|
+
(NOTEBOOK_OUTPUT_FOCUSED.negate())
|
|
401
|
+
))),
|
|
360
402
|
primary: 1024 | 12 ,
|
|
361
403
|
weight: NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT
|
|
362
404
|
}
|
|
@@ -373,7 +415,7 @@ function getPageSize(context) {
|
|
|
373
415
|
const lineHeight = layoutInfo?.fontInfo.lineHeight || 17;
|
|
374
416
|
return Math.max(1, Math.floor((layoutInfo?.height || 0) / lineHeight) - 2);
|
|
375
417
|
}
|
|
376
|
-
( Registry.as(Extensions.Configuration)).registerConfiguration({
|
|
418
|
+
( (Registry.as(Extensions.Configuration))).registerConfiguration({
|
|
377
419
|
id: 'notebook',
|
|
378
420
|
order: 100,
|
|
379
421
|
type: 'object',
|
|
@@ -382,8 +424,8 @@ function getPageSize(context) {
|
|
|
382
424
|
type: 'boolean',
|
|
383
425
|
default: true,
|
|
384
426
|
markdownDescription: ( localizeWithPath(
|
|
385
|
-
|
|
386
|
-
|
|
427
|
+
_moduleId,
|
|
428
|
+
12,
|
|
387
429
|
"When enabled cursor can navigate to the next/previous cell when the current cursor in the cell editor is at the first/last line."
|
|
388
430
|
))
|
|
389
431
|
}
|
|
@@ -17,6 +17,7 @@ import { INotebookKernelService } from 'vscode/vscode/vs/workbench/contrib/noteb
|
|
|
17
17
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
18
18
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
19
19
|
|
|
20
|
+
const _moduleId = "vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables";
|
|
20
21
|
let NotebookVariables = class NotebookVariables extends Disposable {
|
|
21
22
|
constructor(contextKeyService, configurationService, editorService, notebookExecutionStateService, notebookKernelService, notebookDocumentService) {
|
|
22
23
|
super();
|
|
@@ -62,16 +63,12 @@ let NotebookVariables = class NotebookVariables extends Disposable {
|
|
|
62
63
|
return notebook && this.notebookKernelService.getMatchingKernel(notebook).selected?.hasVariableProvider;
|
|
63
64
|
}
|
|
64
65
|
initializeView() {
|
|
65
|
-
const debugViewContainer = ( Registry.as('workbench.registry.view.containers')).get(VIEWLET_ID);
|
|
66
|
+
const debugViewContainer = ( (Registry.as('workbench.registry.view.containers'))).get(VIEWLET_ID);
|
|
66
67
|
if (debugViewContainer) {
|
|
67
|
-
const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
|
|
68
|
+
const viewsRegistry = ( (Registry.as(Extensions.ViewsRegistry)));
|
|
68
69
|
const viewDescriptor = {
|
|
69
|
-
id: 'NOTEBOOK_VARIABLES', name: ( localize2WithPath(
|
|
70
|
-
|
|
71
|
-
'notebookVariables',
|
|
72
|
-
"Notebook Variables"
|
|
73
|
-
)),
|
|
74
|
-
containerIcon: variablesViewIcon, ctorDescriptor: ( new SyncDescriptor(NotebookVariablesView)),
|
|
70
|
+
id: 'NOTEBOOK_VARIABLES', name: ( localize2WithPath(_moduleId, 0, "Notebook Variables")),
|
|
71
|
+
containerIcon: variablesViewIcon, ctorDescriptor: ( (new SyncDescriptor(NotebookVariablesView))),
|
|
75
72
|
order: 50, weight: 5, canToggleVisibility: true, canMoveView: true, collapsed: true, when: NOTEBOOK_VARIABLE_VIEW_ENABLED,
|
|
76
73
|
};
|
|
77
74
|
viewsRegistry.registerViews([viewDescriptor], debugViewContainer);
|
|
@@ -85,13 +82,13 @@ let NotebookVariables = class NotebookVariables extends Disposable {
|
|
|
85
82
|
this.configListener.dispose();
|
|
86
83
|
}
|
|
87
84
|
};
|
|
88
|
-
NotebookVariables = ( __decorate([
|
|
89
|
-
( __param(0, IContextKeyService)),
|
|
90
|
-
( __param(1, IConfigurationService)),
|
|
91
|
-
( __param(2, IEditorService)),
|
|
92
|
-
( __param(3, INotebookExecutionStateService)),
|
|
93
|
-
( __param(4, INotebookKernelService)),
|
|
94
|
-
( __param(5, INotebookService))
|
|
95
|
-
], NotebookVariables));
|
|
85
|
+
NotebookVariables = ( (__decorate([
|
|
86
|
+
( (__param(0, IContextKeyService))),
|
|
87
|
+
( (__param(1, IConfigurationService))),
|
|
88
|
+
( (__param(2, IEditorService))),
|
|
89
|
+
( (__param(3, INotebookExecutionStateService))),
|
|
90
|
+
( (__param(4, INotebookKernelService))),
|
|
91
|
+
( (__param(5, INotebookService)))
|
|
92
|
+
], NotebookVariables)));
|
|
96
93
|
|
|
97
94
|
export { NotebookVariables };
|
|
@@ -2,10 +2,11 @@ import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellati
|
|
|
2
2
|
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { variablePageSize } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService';
|
|
4
4
|
|
|
5
|
+
const _moduleId = "vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource";
|
|
5
6
|
class NotebookVariableDataSource {
|
|
6
7
|
constructor(notebookKernelService) {
|
|
7
8
|
this.notebookKernelService = notebookKernelService;
|
|
8
|
-
this.cancellationTokenSource = ( new CancellationTokenSource());
|
|
9
|
+
this.cancellationTokenSource = ( (new CancellationTokenSource()));
|
|
9
10
|
}
|
|
10
11
|
hasChildren(element) {
|
|
11
12
|
return element.kind === 'root' || element.hasNamedChildren || element.indexedChildrenCount > 0;
|
|
@@ -13,7 +14,7 @@ class NotebookVariableDataSource {
|
|
|
13
14
|
cancel() {
|
|
14
15
|
this.cancellationTokenSource.cancel();
|
|
15
16
|
this.cancellationTokenSource.dispose();
|
|
16
|
-
this.cancellationTokenSource = ( new CancellationTokenSource());
|
|
17
|
+
this.cancellationTokenSource = ( (new CancellationTokenSource()));
|
|
17
18
|
}
|
|
18
19
|
async getChildren(element) {
|
|
19
20
|
if (element.kind === 'root') {
|
|
@@ -29,10 +30,10 @@ class NotebookVariableDataSource {
|
|
|
29
30
|
let children = [];
|
|
30
31
|
if (parent.hasNamedChildren) {
|
|
31
32
|
const variables = selectedKernel.provideVariables(parent.notebook.uri, parent.extHostId, 'named', 0, this.cancellationTokenSource.token);
|
|
32
|
-
const childNodes = await ( variables
|
|
33
|
+
const childNodes = await ( (variables
|
|
33
34
|
.map(
|
|
34
35
|
variable => { return this.createVariableElement(variable, parent.notebook); }
|
|
35
|
-
))
|
|
36
|
+
)))
|
|
36
37
|
.toPromise();
|
|
37
38
|
children = children.concat(childNodes);
|
|
38
39
|
}
|
|
@@ -74,11 +75,7 @@ class NotebookVariableDataSource {
|
|
|
74
75
|
notebook: parent.notebook,
|
|
75
76
|
id: parent.id + `${last + 1}`,
|
|
76
77
|
extHostId: parent.extHostId,
|
|
77
|
-
name: ( localizeWithPath(
|
|
78
|
-
'vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource',
|
|
79
|
-
'notebook.indexedChildrenLimitReached',
|
|
80
|
-
"Display limit reached"
|
|
81
|
-
)),
|
|
78
|
+
name: ( localizeWithPath(_moduleId, 0, "Display limit reached")),
|
|
82
79
|
value: '',
|
|
83
80
|
indexedChildrenCount: 0,
|
|
84
81
|
hasNamedChildren: false
|
|
@@ -100,8 +97,8 @@ class NotebookVariableDataSource {
|
|
|
100
97
|
const selectedKernel = this.notebookKernelService.getMatchingKernel(notebook).selected;
|
|
101
98
|
if (selectedKernel && selectedKernel.hasVariableProvider) {
|
|
102
99
|
const variables = selectedKernel.provideVariables(notebook.uri, undefined, 'named', 0, this.cancellationTokenSource.token);
|
|
103
|
-
return await ( variables
|
|
104
|
-
.map(variable => { return this.createVariableElement(variable, notebook); }))
|
|
100
|
+
return await ( (variables
|
|
101
|
+
.map(variable => { return this.createVariableElement(variable, notebook); })))
|
|
105
102
|
.toPromise();
|
|
106
103
|
}
|
|
107
104
|
return [];
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
1
2
|
import { $ as $$1, append } from 'vscode/vscode/vs/base/browser/dom';
|
|
3
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
2
4
|
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
5
|
+
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
|
|
3
6
|
import 'vscode/vscode/vs/platform/list/browser/listService';
|
|
4
7
|
import { renderExpressionValue } from 'vscode/vscode/vs/workbench/contrib/debug/browser/baseDebugView';
|
|
5
8
|
|
|
9
|
+
var NotebookVariableRenderer_1;
|
|
10
|
+
const _moduleId = "vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree";
|
|
6
11
|
const $ = $$1;
|
|
7
12
|
const MAX_VALUE_RENDER_LENGTH_IN_VIEWLET = 1024;
|
|
8
13
|
class NotebookVariablesDelegate {
|
|
@@ -13,16 +18,20 @@ class NotebookVariablesDelegate {
|
|
|
13
18
|
return NotebookVariableRenderer.ID;
|
|
14
19
|
}
|
|
15
20
|
}
|
|
16
|
-
class NotebookVariableRenderer {
|
|
21
|
+
let NotebookVariableRenderer = class NotebookVariableRenderer {
|
|
22
|
+
static { NotebookVariableRenderer_1 = this; }
|
|
17
23
|
static { this.ID = 'variableElement'; }
|
|
18
24
|
get templateId() {
|
|
19
|
-
return
|
|
25
|
+
return NotebookVariableRenderer_1.ID;
|
|
26
|
+
}
|
|
27
|
+
constructor(_hoverService) {
|
|
28
|
+
this._hoverService = _hoverService;
|
|
20
29
|
}
|
|
21
30
|
renderTemplate(container) {
|
|
22
31
|
const expression = append(container, $('.expression'));
|
|
23
32
|
const name = append(expression, $('span.name'));
|
|
24
33
|
const value = append(expression, $('span.value'));
|
|
25
|
-
const template = { expression, name, value };
|
|
34
|
+
const template = { expression, name, value, elementDisposables: ( (new DisposableStore())) };
|
|
26
35
|
return template;
|
|
27
36
|
}
|
|
28
37
|
renderElement(element, _index, data) {
|
|
@@ -31,29 +40,26 @@ class NotebookVariableRenderer {
|
|
|
31
40
|
data.name.title = element.element.type ?? '';
|
|
32
41
|
renderExpressionValue(element.element, data.value, {
|
|
33
42
|
colorize: true,
|
|
34
|
-
|
|
43
|
+
hover: data.elementDisposables,
|
|
35
44
|
maxValueLength: MAX_VALUE_RENDER_LENGTH_IN_VIEWLET
|
|
36
|
-
});
|
|
45
|
+
}, this._hoverService);
|
|
37
46
|
}
|
|
38
|
-
|
|
47
|
+
disposeElement(element, index, templateData, height) {
|
|
48
|
+
templateData.elementDisposables.clear();
|
|
39
49
|
}
|
|
40
|
-
|
|
50
|
+
disposeTemplate(templateData) {
|
|
51
|
+
templateData.elementDisposables.dispose();
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
NotebookVariableRenderer = NotebookVariableRenderer_1 = ( (__decorate([
|
|
55
|
+
( (__param(0, IHoverService)))
|
|
56
|
+
], NotebookVariableRenderer)));
|
|
41
57
|
class NotebookVariableAccessibilityProvider {
|
|
42
58
|
getWidgetAriaLabel() {
|
|
43
|
-
return ( localizeWithPath(
|
|
44
|
-
'vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree',
|
|
45
|
-
'debugConsole',
|
|
46
|
-
"Notebook Variables"
|
|
47
|
-
));
|
|
59
|
+
return ( localizeWithPath(_moduleId, 0, "Notebook Variables"));
|
|
48
60
|
}
|
|
49
61
|
getAriaLabel(element) {
|
|
50
|
-
return ( localizeWithPath(
|
|
51
|
-
'vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree',
|
|
52
|
-
'notebookVariableAriaLabel',
|
|
53
|
-
"Variable {0}, value {1}",
|
|
54
|
-
element.name,
|
|
55
|
-
element.value
|
|
56
|
-
));
|
|
62
|
+
return ( localizeWithPath(_moduleId, 1, "Variable {0}, value {1}", element.name, element.value));
|
|
57
63
|
}
|
|
58
64
|
}
|
|
59
65
|
|
|
@@ -8,6 +8,7 @@ import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/comma
|
|
|
8
8
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
9
9
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
10
10
|
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
|
|
11
|
+
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
|
|
11
12
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
12
13
|
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
13
14
|
import { WorkbenchAsyncDataTree } from 'vscode/vscode/vs/platform/list/browser/listService';
|
|
@@ -25,15 +26,12 @@ import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contr
|
|
|
25
26
|
import { INotebookKernelService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
26
27
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
27
28
|
|
|
29
|
+
const _moduleId = "vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView";
|
|
28
30
|
let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
|
|
29
31
|
static { this.ID = 'notebookVariablesView'; }
|
|
30
|
-
static { this.TITLE = ( localize2WithPath(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"Notebook Variables"
|
|
34
|
-
)); }
|
|
35
|
-
constructor(options, editorService, notebookKernelService, notebookExecutionStateService, keybindingService, contextMenuService, contextKeyService, configurationService, instantiationService, viewDescriptorService, openerService, quickInputService, commandService, themeService, telemetryService, menuService) {
|
|
36
|
-
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService);
|
|
32
|
+
static { this.TITLE = ( localize2WithPath(_moduleId, 0, "Notebook Variables")); }
|
|
33
|
+
constructor(options, editorService, notebookKernelService, notebookExecutionStateService, keybindingService, contextMenuService, contextKeyService, configurationService, instantiationService, viewDescriptorService, openerService, quickInputService, commandService, themeService, telemetryService, hoverService, menuService) {
|
|
34
|
+
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
|
|
37
35
|
this.editorService = editorService;
|
|
38
36
|
this.notebookKernelService = notebookKernelService;
|
|
39
37
|
this.notebookExecutionStateService = notebookExecutionStateService;
|
|
@@ -44,14 +42,14 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
|
|
|
44
42
|
this._register(this.notebookKernelService.onDidNotebookVariablesUpdate(this.handleVariablesChanged.bind(this)));
|
|
45
43
|
this._register(this.notebookExecutionStateService.onDidChangeExecution(this.handleExecutionStateChange.bind(this)));
|
|
46
44
|
this.setActiveNotebook();
|
|
47
|
-
this.dataSource = ( new NotebookVariableDataSource(this.notebookKernelService));
|
|
48
|
-
this.updateScheduler = ( new RunOnceScheduler(() => this.tree?.updateChildren(), 100));
|
|
45
|
+
this.dataSource = ( (new NotebookVariableDataSource(this.notebookKernelService)));
|
|
46
|
+
this.updateScheduler = ( (new RunOnceScheduler(() => this.tree?.updateChildren(), 100)));
|
|
49
47
|
}
|
|
50
48
|
renderBody(container) {
|
|
51
49
|
super.renderBody(container);
|
|
52
50
|
this.element.classList.add('debug-pane');
|
|
53
|
-
this.tree = this.instantiationService.createInstance(WorkbenchAsyncDataTree, 'notebookVariablesTree', container, ( new NotebookVariablesDelegate()), [( new NotebookVariableRenderer())], this.dataSource, {
|
|
54
|
-
accessibilityProvider: ( new NotebookVariableAccessibilityProvider()),
|
|
51
|
+
this.tree = this.instantiationService.createInstance(WorkbenchAsyncDataTree, 'notebookVariablesTree', container, ( (new NotebookVariablesDelegate())), [( (new NotebookVariableRenderer(this.hoverService)))], this.dataSource, {
|
|
52
|
+
accessibilityProvider: ( (new NotebookVariableAccessibilityProvider())),
|
|
55
53
|
identityProvider: { getId: (e) => e.id },
|
|
56
54
|
});
|
|
57
55
|
this.tree.layout();
|
|
@@ -66,7 +64,7 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
|
|
|
66
64
|
}
|
|
67
65
|
const element = e.element;
|
|
68
66
|
const arg = {
|
|
69
|
-
source: ( element.notebook.uri.toString()),
|
|
67
|
+
source: ( (element.notebook.uri.toString())),
|
|
70
68
|
name: element.name,
|
|
71
69
|
value: element.value,
|
|
72
70
|
type: element.type,
|
|
@@ -124,28 +122,29 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
|
|
|
124
122
|
}
|
|
125
123
|
}
|
|
126
124
|
handleVariablesChanged(notebookUri) {
|
|
127
|
-
if (this.activeNotebook && ( notebookUri.toString()) === ( this.activeNotebook.uri.toString())) {
|
|
125
|
+
if (this.activeNotebook && ( (notebookUri.toString())) === ( (this.activeNotebook.uri.toString()))) {
|
|
128
126
|
this.tree?.setInput({ kind: 'root', notebook: this.activeNotebook });
|
|
129
127
|
this.updateScheduler.schedule();
|
|
130
128
|
}
|
|
131
129
|
}
|
|
132
130
|
};
|
|
133
|
-
NotebookVariablesView = ( __decorate([
|
|
134
|
-
( __param(1, IEditorService)),
|
|
135
|
-
( __param(2, INotebookKernelService)),
|
|
136
|
-
( __param(3, INotebookExecutionStateService)),
|
|
137
|
-
( __param(4, IKeybindingService)),
|
|
138
|
-
( __param(5, IContextMenuService)),
|
|
139
|
-
( __param(6, IContextKeyService)),
|
|
140
|
-
( __param(7, IConfigurationService)),
|
|
141
|
-
( __param(8, IInstantiationService)),
|
|
142
|
-
( __param(9, IViewDescriptorService)),
|
|
143
|
-
( __param(10, IOpenerService)),
|
|
144
|
-
( __param(11, IQuickInputService)),
|
|
145
|
-
( __param(12, ICommandService)),
|
|
146
|
-
( __param(13, IThemeService)),
|
|
147
|
-
( __param(14, ITelemetryService)),
|
|
148
|
-
( __param(15,
|
|
149
|
-
|
|
131
|
+
NotebookVariablesView = ( (__decorate([
|
|
132
|
+
( (__param(1, IEditorService))),
|
|
133
|
+
( (__param(2, INotebookKernelService))),
|
|
134
|
+
( (__param(3, INotebookExecutionStateService))),
|
|
135
|
+
( (__param(4, IKeybindingService))),
|
|
136
|
+
( (__param(5, IContextMenuService))),
|
|
137
|
+
( (__param(6, IContextKeyService))),
|
|
138
|
+
( (__param(7, IConfigurationService))),
|
|
139
|
+
( (__param(8, IInstantiationService))),
|
|
140
|
+
( (__param(9, IViewDescriptorService))),
|
|
141
|
+
( (__param(10, IOpenerService))),
|
|
142
|
+
( (__param(11, IQuickInputService))),
|
|
143
|
+
( (__param(12, ICommandService))),
|
|
144
|
+
( (__param(13, IThemeService))),
|
|
145
|
+
( (__param(14, ITelemetryService))),
|
|
146
|
+
( (__param(15, IHoverService))),
|
|
147
|
+
( (__param(16, IMenuService)))
|
|
148
|
+
], NotebookVariablesView)));
|
|
150
149
|
|
|
151
150
|
export { NotebookVariablesView };
|