@codingame/monaco-vscode-notebook-service-override 10.1.4 → 11.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.
Files changed (54) hide show
  1. package/package.json +8 -3
  2. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +8 -8
  3. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +24 -24
  4. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +2 -2
  5. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +4 -4
  6. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +3 -3
  7. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +1 -1
  8. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +3 -3
  9. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +8 -8
  10. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +3 -3
  11. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +14 -13
  12. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +1 -1
  13. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +4 -4
  14. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +5 -5
  15. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +1 -1
  16. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +2 -2
  17. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +1 -1
  18. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +7 -7
  19. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +15 -15
  20. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +14 -17
  21. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +5 -2
  22. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +3 -3
  23. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +18 -9
  24. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +10 -10
  25. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +1 -1
  26. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +12 -12
  27. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +4 -4
  28. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +2 -2
  29. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +31 -31
  30. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +13 -14
  31. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +28 -28
  32. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +28 -28
  33. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +27 -27
  34. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +18 -18
  35. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +7 -7
  36. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +14 -14
  37. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +56 -0
  38. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +24 -24
  39. package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +79 -78
  40. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +10 -10
  41. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
  42. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +1 -1
  43. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +2 -2
  44. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +1 -1
  45. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +3 -3
  46. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +1 -1
  47. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +3 -3
  48. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +1 -1
  49. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +2 -2
  50. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +46 -37
  51. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
  52. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +1 -1
  53. package/workers/notebook.worker.js +1 -1
  54. /package/vscode/src/vs/workbench/contrib/notebook/common/services/{notebookSimpleWorker.esm.js → notebookSimpleWorkerMain.js} +0 -0
@@ -13,7 +13,7 @@ import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/acti
13
13
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
14
14
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
15
15
  import { Progress } from 'vscode/vscode/vs/platform/progress/common/progress';
16
- import { NOTEBOOK_ACTIONS_CATEGORY } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
16
+ import { NOTEBOOK_ACTIONS_CATEGORY } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
17
17
  import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
18
18
  import { NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EDITABLE } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
19
19
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
@@ -29,7 +29,7 @@ registerAction2(class extends Action2 {
29
29
  constructor() {
30
30
  super({
31
31
  id: 'notebook.format',
32
- title: ( localize2(8285, 'Format Notebook')),
32
+ title: ( localize2(8083, 'Format Notebook')),
33
33
  category: NOTEBOOK_ACTIONS_CATEGORY,
34
34
  precondition: ( (ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EDITABLE))),
35
35
  keybinding: {
@@ -80,7 +80,7 @@ registerAction2(class extends Action2 {
80
80
  }
81
81
  return [];
82
82
  }))));
83
- await bulkEditService.apply( allCellEdits.flat(), { label: ( localize(8286, "Format Notebook")), code: 'undoredo.formatNotebook', });
83
+ await bulkEditService.apply( allCellEdits.flat(), { label: ( localize(8084, "Format Notebook")), code: 'undoredo.formatNotebook', });
84
84
  }
85
85
  }
86
86
  finally {
@@ -92,7 +92,7 @@ registerEditorAction(class FormatCellAction extends EditorAction {
92
92
  constructor() {
93
93
  super({
94
94
  id: 'notebook.formatCell',
95
- label: ( localize(8287, "Format Cell")),
95
+ label: ( localize(8085, "Format Cell")),
96
96
  alias: 'Format Cell',
97
97
  precondition: ( (ContextKeyExpr.and(
98
98
  NOTEBOOK_IS_ACTIVE_EDITOR,
@@ -164,7 +164,7 @@ let FormatOnCellExecutionParticipant = class FormatOnCellExecutionParticipant {
164
164
  }
165
165
  return [];
166
166
  }))));
167
- await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(8288, "Format Cells")), code: 'undoredo.notebooks.onWillExecuteFormat', });
167
+ await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(8086, "Format Cells")), code: 'undoredo.notebooks.onWillExecuteFormat', });
168
168
  }
169
169
  finally {
170
170
  disposable.dispose();
@@ -63,7 +63,7 @@ registerAction2(class NotebookClearNotebookLayoutAction extends Action2 {
63
63
  constructor() {
64
64
  super({
65
65
  id: 'workbench.notebook.layout.gettingStarted',
66
- title: ( localize2(8300, "Reset notebook getting started")),
66
+ title: ( localize2(8097, "Reset notebook getting started")),
67
67
  f1: true,
68
68
  precondition: ( (ContextKeyExpr.equals(`config.${NotebookSetting.openGettingStarted}`, true))),
69
69
  category: Categories.Developer,
@@ -1,7 +1,7 @@
1
1
  import { localize2 } from 'vscode/vscode/vs/nls';
2
2
  import { Action2, MenuId, registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
3
3
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
4
- import { NOTEBOOK_ACTIONS_CATEGORY } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
4
+ import { NOTEBOOK_ACTIONS_CATEGORY } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
5
5
  import { NotebookSetting } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
6
6
 
7
7
  const TOGGLE_CELL_TOOLBAR_POSITION = 'notebook.toggleCellToolbarPosition';
@@ -9,7 +9,7 @@ class ToggleCellToolbarPositionAction extends Action2 {
9
9
  constructor() {
10
10
  super({
11
11
  id: TOGGLE_CELL_TOOLBAR_POSITION,
12
- title: ( localize2(8299, 'Toggle Cell Toolbar Position')),
12
+ title: ( localize2(8098, 'Toggle Cell Toolbar Position')),
13
13
  menu: [{
14
14
  id: MenuId.NotebookCellTitle,
15
15
  group: 'View',
@@ -7,7 +7,7 @@ import { IMarkerService } from 'vscode/vscode/vs/platform/markers/common/markers
7
7
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
8
8
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
9
9
  import { NotebookOverviewRulerLane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
10
- import { registerNotebookContribution } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
10
+ import { registerNotebookContribution } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
11
11
  import { throttle } from 'vscode/vscode/vs/base/common/decorators';
12
12
  import 'vscode/vscode/vs/platform/theme/common/colorUtils';
13
13
  import 'vscode/vscode/vs/platform/theme/common/colors/baseColors';
@@ -27,10 +27,10 @@ import { IUndoRedoService } from 'vscode/vscode/vs/platform/undoRedo/common/undo
27
27
  import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
28
28
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
29
29
  import { NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_CELL_EDITOR_FOCUSED } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
30
- import { NotebookAction } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
30
+ import { NotebookAction } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
31
31
  import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
32
- import { registerNotebookContribution } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
33
- import { CellEditorOptions } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions';
32
+ import { registerNotebookContribution } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
33
+ import { CellEditorOptions } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions';
34
34
 
35
35
  const NOTEBOOK_ADD_FIND_MATCH_TO_SELECTION_ID = 'notebook.addFindMatchToSelection';
36
36
  var NotebookMultiCursorState;
@@ -676,7 +676,7 @@ class NotebookAddMatchToMultiSelectionAction extends NotebookAction {
676
676
  constructor() {
677
677
  super({
678
678
  id: NOTEBOOK_ADD_FIND_MATCH_TO_SELECTION_ID,
679
- title: ( localize(8365, "Add Find Match to Selection")),
679
+ title: ( localize(8163, "Add Find Match to Selection")),
680
680
  precondition: ( (ContextKeyExpr.and(
681
681
  (ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)),
682
682
  NOTEBOOK_IS_ACTIVE_EDITOR,
@@ -710,7 +710,7 @@ class NotebookExitMultiSelectionAction extends NotebookAction {
710
710
  constructor() {
711
711
  super({
712
712
  id: 'noteMultiCursor.exit',
713
- title: ( localize(8366, "Exit Multi Cursor Mode")),
713
+ title: ( localize(8164, "Exit Multi Cursor Mode")),
714
714
  precondition: ( (ContextKeyExpr.and(
715
715
  (ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)),
716
716
  NOTEBOOK_IS_ACTIVE_EDITOR,
@@ -741,7 +741,7 @@ class NotebookDeleteLeftMultiSelectionAction extends NotebookAction {
741
741
  constructor() {
742
742
  super({
743
743
  id: 'noteMultiCursor.deleteLeft',
744
- title: ( localize(8367, "Delete Left")),
744
+ title: ( localize(8165, "Delete Left")),
745
745
  precondition: ( (ContextKeyExpr.and(
746
746
  (ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)),
747
747
  NOTEBOOK_IS_ACTIVE_EDITOR,
@@ -780,7 +780,7 @@ class NotebookDeleteRightMultiSelectionAction extends NotebookAction {
780
780
  constructor() {
781
781
  super({
782
782
  id: 'noteMultiCursor.deleteRight',
783
- title: ( localize(8368, "Delete Right")),
783
+ title: ( localize(8166, "Delete Right")),
784
784
  precondition: ( (ContextKeyExpr.and(
785
785
  (ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)),
786
786
  NOTEBOOK_IS_ACTIVE_EDITOR,
@@ -9,8 +9,8 @@ import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/cont
9
9
  import { InputFocusedContextKey, IsWindowsContext } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
10
10
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
11
11
  import { InlineChatController } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
12
- import { CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext';
13
- import { NotebookCellAction, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, findTargetCellEditor, NotebookAction } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
12
+ import { CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext';
13
+ import { NotebookCellAction, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, findTargetCellEditor, NotebookAction } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/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
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_EDITOR_FOCUSED, IS_COMPOSITE_NOTEBOOK, NOTEBOOK_CELL_HAS_OUTPUTS } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
@@ -31,7 +31,7 @@ registerAction2(class extends Action2 {
31
31
  super({
32
32
  id: 'notebook.cell.nullAction',
33
33
  title: ( localize(
34
- 8301,
34
+ 8099,
35
35
  "Keypresses that should be handled by the focused element in the cell output."
36
36
  )),
37
37
  keybinding: [{
@@ -54,7 +54,7 @@ registerAction2(class FocusNextCellAction extends NotebookCellAction {
54
54
  constructor() {
55
55
  super({
56
56
  id: NOTEBOOK_FOCUS_NEXT_EDITOR,
57
- title: ( localize(8302, 'Focus Next Cell Editor')),
57
+ title: ( localize(8100, 'Focus Next Cell Editor')),
58
58
  keybinding: [
59
59
  {
60
60
  when: ( (ContextKeyExpr.and(
@@ -129,7 +129,7 @@ registerAction2(class FocusPreviousCellAction extends NotebookCellAction {
129
129
  constructor() {
130
130
  super({
131
131
  id: NOTEBOOK_FOCUS_PREVIOUS_EDITOR,
132
- title: ( localize(8303, 'Focus Previous Cell Editor')),
132
+ title: ( localize(8101, 'Focus Previous Cell Editor')),
133
133
  keybinding: [
134
134
  {
135
135
  when: ( (ContextKeyExpr.and(
@@ -195,7 +195,7 @@ registerAction2(class extends NotebookAction {
195
195
  constructor() {
196
196
  super({
197
197
  id: NOTEBOOK_FOCUS_TOP,
198
- title: ( localize(8304, 'Focus First Cell')),
198
+ title: ( localize(8102, 'Focus First Cell')),
199
199
  keybinding: [
200
200
  {
201
201
  when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)))),
@@ -227,7 +227,7 @@ registerAction2(class extends NotebookAction {
227
227
  constructor() {
228
228
  super({
229
229
  id: NOTEBOOK_FOCUS_BOTTOM,
230
- title: ( localize(8305, 'Focus Last Cell')),
230
+ title: ( localize(8103, 'Focus Last Cell')),
231
231
  keybinding: [
232
232
  {
233
233
  when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)))),
@@ -264,7 +264,7 @@ registerAction2(class extends NotebookCellAction {
264
264
  constructor() {
265
265
  super({
266
266
  id: FOCUS_IN_OUTPUT_COMMAND_ID,
267
- title: ( localize(8306, 'Focus In Active Cell Output')),
267
+ title: ( localize(8104, 'Focus In Active Cell Output')),
268
268
  keybinding: [{
269
269
  primary: 2048 | 1024 | 18 ,
270
270
  mac: { primary: 256 | 2048 | 18 , },
@@ -288,7 +288,7 @@ registerAction2(class extends NotebookCellAction {
288
288
  constructor() {
289
289
  super({
290
290
  id: FOCUS_OUT_OUTPUT_COMMAND_ID,
291
- title: ( localize(8307, 'Focus Out Active Cell Output')),
291
+ title: ( localize(8105, 'Focus Out Active Cell Output')),
292
292
  keybinding: {
293
293
  primary: 2048 | 1024 | 16 ,
294
294
  mac: { primary: 256 | 2048 | 16 , },
@@ -307,7 +307,7 @@ registerAction2(class CenterActiveCellAction extends NotebookCellAction {
307
307
  constructor() {
308
308
  super({
309
309
  id: CENTER_ACTIVE_CELL,
310
- title: ( localize(8308, "Center Active Cell")),
310
+ title: ( localize(8106, "Center Active Cell")),
311
311
  keybinding: {
312
312
  when: NOTEBOOK_EDITOR_FOCUSED,
313
313
  primary: 2048 | 42 ,
@@ -326,7 +326,7 @@ registerAction2(class extends NotebookCellAction {
326
326
  constructor() {
327
327
  super({
328
328
  id: NOTEBOOK_CURSOR_PAGEUP_COMMAND_ID,
329
- title: ( localize(8309, "Cell Cursor Page Up")),
329
+ title: ( localize(8107, "Cell Cursor Page Up")),
330
330
  keybinding: [
331
331
  {
332
332
  when: ( (ContextKeyExpr.and(
@@ -348,7 +348,7 @@ registerAction2(class extends NotebookCellAction {
348
348
  constructor() {
349
349
  super({
350
350
  id: NOTEBOOK_CURSOR_PAGEUP_SELECT_COMMAND_ID,
351
- title: ( localize(8310, "Cell Cursor Page Up Select")),
351
+ title: ( localize(8108, "Cell Cursor Page Up Select")),
352
352
  keybinding: [
353
353
  {
354
354
  when: ( (ContextKeyExpr.and(
@@ -371,7 +371,7 @@ registerAction2(class extends NotebookCellAction {
371
371
  constructor() {
372
372
  super({
373
373
  id: NOTEBOOK_CURSOR_PAGEDOWN_COMMAND_ID,
374
- title: ( localize(8311, "Cell Cursor Page Down")),
374
+ title: ( localize(8109, "Cell Cursor Page Down")),
375
375
  keybinding: [
376
376
  {
377
377
  when: ( (ContextKeyExpr.and(
@@ -393,7 +393,7 @@ registerAction2(class extends NotebookCellAction {
393
393
  constructor() {
394
394
  super({
395
395
  id: NOTEBOOK_CURSOR_PAGEDOWN_SELECT_COMMAND_ID,
396
- title: ( localize(8312, "Cell Cursor Page Down Select")),
396
+ title: ( localize(8110, "Cell Cursor Page Down Select")),
397
397
  keybinding: [
398
398
  {
399
399
  when: ( (ContextKeyExpr.and(
@@ -427,7 +427,7 @@ function getPageSize(context) {
427
427
  type: 'boolean',
428
428
  default: true,
429
429
  markdownDescription: ( localize(
430
- 8313,
430
+ 8111,
431
431
  "When enabled cursor can navigate to the next/previous cell when the current cursor in the cell editor is at the first/last line."
432
432
  ))
433
433
  }
@@ -6,11 +6,12 @@ import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/
6
6
  import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
7
7
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
8
8
  import { Extensions } from 'vscode/vscode/vs/workbench/common/views';
9
+ import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
9
10
  import { VIEWLET_ID } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
10
11
  import { NOTEBOOK_VARIABLE_VIEW_ENABLED } from './notebookVariableContextKeys.js';
11
12
  import { NotebookVariablesView } from './notebookVariablesView.js';
12
13
  import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
13
- import { variablesViewIcon } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
14
+ import { variablesViewIcon } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
14
15
  import { NotebookSetting } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
15
16
  import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
16
17
  import { INotebookKernelService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
@@ -18,13 +19,14 @@ import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/co
18
19
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
19
20
 
20
21
  let NotebookVariables = class NotebookVariables extends Disposable {
21
- constructor(contextKeyService, configurationService, editorService, notebookExecutionStateService, notebookKernelService, notebookDocumentService) {
22
+ constructor(contextKeyService, configurationService, editorService, notebookExecutionStateService, notebookKernelService, notebookDocumentService, viewDescriptorService) {
22
23
  super();
23
24
  this.configurationService = configurationService;
24
25
  this.editorService = editorService;
25
26
  this.notebookExecutionStateService = notebookExecutionStateService;
26
27
  this.notebookKernelService = notebookKernelService;
27
28
  this.notebookDocumentService = notebookDocumentService;
29
+ this.viewDescriptorService = viewDescriptorService;
28
30
  this.listeners = [];
29
31
  this.initialized = false;
30
32
  this.viewEnabled = NOTEBOOK_VARIABLE_VIEW_ENABLED.bindTo(contextKeyService);
@@ -34,20 +36,14 @@ let NotebookVariables = class NotebookVariables extends Disposable {
34
36
  }
35
37
  handleConfigChange(e) {
36
38
  if (e.affectsConfiguration(NotebookSetting.notebookVariablesView)) {
37
- if (!this.configurationService.getValue(NotebookSetting.notebookVariablesView)) {
38
- this.viewEnabled.set(false);
39
- }
40
- else if (this.initialized) {
41
- this.viewEnabled.set(true);
42
- }
43
- else {
44
- this.handleInitEvent();
45
- }
39
+ this.handleInitEvent();
46
40
  }
47
41
  }
48
42
  handleInitEvent(notebook) {
49
- if (this.configurationService.getValue(NotebookSetting.notebookVariablesView)
50
- && (!!notebook || this.editorService.activeEditorPane?.getId() === 'workbench.editor.notebook')) {
43
+ const enabled = this.editorService.activeEditorPane?.getId() === 'workbench.editor.repl' ||
44
+ this.configurationService.getValue(NotebookSetting.notebookVariablesView) ||
45
+ this.configurationService.getValue('notebook.experimental.variablesView');
46
+ if (enabled && (!!notebook || this.editorService.activeEditorPane?.getId() === 'workbench.editor.notebook')) {
51
47
  if (this.hasVariableProvider(notebook) && !this.initialized && this.initializeView()) {
52
48
  this.viewEnabled.set(true);
53
49
  this.initialized = true;
@@ -62,13 +58,13 @@ let NotebookVariables = class NotebookVariables extends Disposable {
62
58
  return notebook && this.notebookKernelService.getMatchingKernel(notebook).selected?.hasVariableProvider;
63
59
  }
64
60
  initializeView() {
65
- const debugViewContainer = ( (Registry.as('workbench.registry.view.containers'))).get(VIEWLET_ID);
61
+ const debugViewContainer = this.viewDescriptorService.getViewContainerById(VIEWLET_ID);
66
62
  if (debugViewContainer) {
67
63
  const viewsRegistry = ( (Registry.as(Extensions.ViewsRegistry)));
68
64
  const viewDescriptor = {
69
- id: 'NOTEBOOK_VARIABLES', name: ( localize2(8389, "Notebook Variables")),
65
+ id: 'workbench.notebook.variables', name: ( localize2(8187, "Notebook Variables")),
70
66
  containerIcon: variablesViewIcon, ctorDescriptor: ( (new SyncDescriptor(NotebookVariablesView))),
71
- order: 50, weight: 5, canToggleVisibility: true, canMoveView: true, collapsed: false, when: NOTEBOOK_VARIABLE_VIEW_ENABLED,
67
+ order: 50, weight: 5, canToggleVisibility: true, canMoveView: true, collapsed: false, when: NOTEBOOK_VARIABLE_VIEW_ENABLED
72
68
  };
73
69
  viewsRegistry.registerViews([viewDescriptor], debugViewContainer);
74
70
  return true;
@@ -87,7 +83,8 @@ NotebookVariables = ( (__decorate([
87
83
  ( (__param(2, IEditorService))),
88
84
  ( (__param(3, INotebookExecutionStateService))),
89
85
  ( (__param(4, INotebookKernelService))),
90
- ( (__param(5, INotebookService)))
86
+ ( (__param(5, INotebookService))),
87
+ ( (__param(6, IViewDescriptorService)))
91
88
  ], NotebookVariables)));
92
89
 
93
90
  export { NotebookVariables };
@@ -16,7 +16,10 @@ class NotebookVariableDataSource {
16
16
  this.cancellationTokenSource = ( (new CancellationTokenSource()));
17
17
  }
18
18
  async getChildren(element) {
19
- if (element.kind === 'root') {
19
+ if (element.kind === 'empty') {
20
+ return [];
21
+ }
22
+ else if (element.kind === 'root') {
20
23
  return this.getRootVariables(element.notebook);
21
24
  }
22
25
  else {
@@ -74,7 +77,7 @@ class NotebookVariableDataSource {
74
77
  notebook: parent.notebook,
75
78
  id: parent.id + `${last + 1}`,
76
79
  extHostId: parent.extHostId,
77
- name: ( localize(11620, "Display limit reached")),
80
+ name: ( localize(11744, "Display limit reached")),
78
81
  value: '',
79
82
  indexedChildrenCount: 0,
80
83
  hasNamedChildren: false
@@ -4,7 +4,7 @@ import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
4
4
  import { localize } from 'vscode/vscode/vs/nls';
5
5
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
6
6
  import 'vscode/vscode/vs/platform/list/browser/listService';
7
- import { DebugExpressionRenderer } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugExpressionRenderer';
7
+ import { DebugExpressionRenderer } from '@codingame/monaco-vscode-debug-notebook-common/vscode/vs/workbench/contrib/debug/browser/debugExpressionRenderer';
8
8
 
9
9
  var NotebookVariableRenderer_1;
10
10
  const $ = $$1;
@@ -55,10 +55,10 @@ NotebookVariableRenderer = NotebookVariableRenderer_1 = ( (__decorate([
55
55
  ], NotebookVariableRenderer)));
56
56
  class NotebookVariableAccessibilityProvider {
57
57
  getWidgetAriaLabel() {
58
- return ( localize(11621, "Notebook Variables"));
58
+ return ( localize(11745, "Notebook Variables"));
59
59
  }
60
60
  getAriaLabel(element) {
61
- return ( localize(11622, "Variable {0}, value {1}", element.name, element.value));
61
+ return ( localize(11746, "Variable {0}, value {1}", element.name, element.value));
62
62
  }
63
63
  }
64
64
 
@@ -31,8 +31,8 @@ var NotebookVariablesView_1;
31
31
  let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
32
32
  static { NotebookVariablesView_1 = this; }
33
33
  static { this.ID = 'notebookVariablesView'; }
34
- static { this.NOTEBOOK_TITLE = ( localize2(10914, "Notebook Variables")); }
35
- static { this.REPL_TITLE = ( localize2(10915, "REPL Variables")); }
34
+ static { this.NOTEBOOK_TITLE = ( localize2(10983, "Notebook Variables")); }
35
+ static { this.REPL_TITLE = ( localize2(10984, "REPL Variables")); }
36
36
  constructor(options, editorService, notebookKernelService, notebookExecutionStateService, keybindingService, contextMenuService, contextKeyService, configurationService, instantiationService, viewDescriptorService, openerService, quickInputService, commandService, themeService, telemetryService, hoverService, menuService) {
37
37
  super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
38
38
  this.editorService = editorService;
@@ -41,10 +41,11 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
41
41
  this.quickInputService = quickInputService;
42
42
  this.commandService = commandService;
43
43
  this.menuService = menuService;
44
- this._register(this.editorService.onDidActiveEditorChange(this.handleActiveEditorChange.bind(this)));
44
+ this._register(this.editorService.onDidActiveEditorChange(() => this.handleActiveEditorChange()));
45
45
  this._register(this.notebookKernelService.onDidNotebookVariablesUpdate(this.handleVariablesChanged.bind(this)));
46
46
  this._register(this.notebookExecutionStateService.onDidChangeExecution(this.handleExecutionStateChange.bind(this)));
47
- this.activeNotebook = this.getActiveNotebook()?.notebookDocument;
47
+ this._register(this.editorService.onDidCloseEditor((e) => this.handleCloseEditor(e)));
48
+ this.handleActiveEditorChange(false);
48
49
  this.dataSource = ( (new NotebookVariableDataSource(this.notebookKernelService)));
49
50
  this.updateScheduler = ( (new RunOnceScheduler(() => this.tree?.updateChildren(), 100)));
50
51
  }
@@ -95,26 +96,34 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
95
96
  super.layoutBody(height, width);
96
97
  this.tree?.layout(height, width);
97
98
  }
98
- setActiveNotebook(notebookDocument, editor) {
99
+ setActiveNotebook(notebookDocument, editor, doUpdate = true) {
99
100
  this.activeNotebook = notebookDocument;
100
- this.tree?.setInput({ kind: 'root', notebook: notebookDocument });
101
- this.updateScheduler.schedule();
102
101
  if (isCompositeNotebookEditorInput(editor.input)) {
103
102
  this.updateTitle(NotebookVariablesView_1.REPL_TITLE.value);
104
103
  }
105
104
  else {
106
105
  this.updateTitle(NotebookVariablesView_1.NOTEBOOK_TITLE.value);
107
106
  }
107
+ if (doUpdate) {
108
+ this.tree?.setInput({ kind: 'root', notebook: notebookDocument });
109
+ this.updateScheduler.schedule();
110
+ }
108
111
  }
109
112
  getActiveNotebook() {
110
113
  const notebookEditor = this.editorService.activeEditorPane;
111
114
  const notebookDocument = getNotebookEditorFromEditorPane(notebookEditor)?.textModel;
112
115
  return notebookDocument && notebookEditor ? { notebookDocument, notebookEditor } : undefined;
113
116
  }
114
- handleActiveEditorChange() {
117
+ handleCloseEditor(e) {
118
+ if (e.editor.resource && ( (e.editor.resource.toString())) === this.activeNotebook?.uri.toString()) {
119
+ this.tree?.setInput({ kind: 'empty' });
120
+ this.updateScheduler.schedule();
121
+ }
122
+ }
123
+ handleActiveEditorChange(doUpdate = true) {
115
124
  const found = this.getActiveNotebook();
116
125
  if (found && found.notebookDocument !== this.activeNotebook) {
117
- this.setActiveNotebook(found.notebookDocument, found.notebookEditor);
126
+ this.setActiveNotebook(found.notebookDocument, found.notebookEditor, doUpdate);
118
127
  }
119
128
  }
120
129
  handleExecutionStateChange(event) {
@@ -44,7 +44,7 @@ import { disposableTimeout, Delayer } from 'vscode/vscode/vs/base/common/async';
44
44
  import { IOutlinePane } from 'vscode/vscode/vs/workbench/contrib/outline/browser/outline';
45
45
  import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
46
46
  import { NOTEBOOK_IS_ACTIVE_EDITOR } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
47
- import { INotebookCellOutlineDataSourceFactory } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSourceFactory.service';
47
+ import { INotebookCellOutlineDataSourceFactory } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSourceFactory.service';
48
48
  import { NotebookExecutionType } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
49
49
  import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
50
50
  import { ILanguageFeaturesService } from 'vscode/vscode/vs/editor/common/services/languageFeatures';
@@ -716,33 +716,33 @@ const NotebookOutlineContext = {
716
716
  type: 'boolean',
717
717
  default: true,
718
718
  markdownDescription: ( localize(
719
- 8314,
719
+ 8112,
720
720
  "When enabled, notebook outline will show only markdown cells containing a header."
721
721
  ))
722
722
  },
723
723
  [NotebookSetting.outlineShowCodeCells]: {
724
724
  type: 'boolean',
725
725
  default: false,
726
- markdownDescription: ( localize(8315, "When enabled, notebook outline shows code cells."))
726
+ markdownDescription: ( localize(8113, "When enabled, notebook outline shows code cells."))
727
727
  },
728
728
  [NotebookSetting.outlineShowCodeCellSymbols]: {
729
729
  type: 'boolean',
730
730
  default: true,
731
731
  markdownDescription: ( localize(
732
- 8316,
732
+ 8114,
733
733
  "When enabled, notebook outline shows code cell symbols. Relies on `notebook.outline.showCodeCells` being enabled."
734
734
  ))
735
735
  },
736
736
  [NotebookSetting.breadcrumbsShowCodeCells]: {
737
737
  type: 'boolean',
738
738
  default: true,
739
- markdownDescription: ( localize(8317, "When enabled, notebook breadcrumbs contain code cells."))
739
+ markdownDescription: ( localize(8115, "When enabled, notebook breadcrumbs contain code cells."))
740
740
  },
741
741
  [NotebookSetting.gotoSymbolsAllSymbols]: {
742
742
  type: 'boolean',
743
743
  default: true,
744
744
  markdownDescription: ( localize(
745
- 8318,
745
+ 8116,
746
746
  "When enabled, the Go to Symbol Quick Pick will display full code symbols from the notebook, as well as Markdown headers."
747
747
  ))
748
748
  },
@@ -750,7 +750,7 @@ const NotebookOutlineContext = {
750
750
  });
751
751
  MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
752
752
  submenu: MenuId.NotebookOutlineFilter,
753
- title: ( localize(8319, "Filter Entries")),
753
+ title: ( localize(8117, "Filter Entries")),
754
754
  icon: Codicon.filter,
755
755
  group: 'navigation',
756
756
  order: -1,
@@ -763,7 +763,7 @@ registerAction2(class ToggleShowMarkdownHeadersOnly extends Action2 {
763
763
  constructor() {
764
764
  super({
765
765
  id: 'notebook.outline.toggleShowMarkdownHeadersOnly',
766
- title: ( localize(8320, "Markdown Headers Only")),
766
+ title: ( localize(8118, "Markdown Headers Only")),
767
767
  f1: false,
768
768
  toggled: {
769
769
  condition: ( (ContextKeyExpr.equals('config.notebook.outline.showMarkdownHeadersOnly', true)))
@@ -784,7 +784,7 @@ registerAction2(class ToggleCodeCellEntries extends Action2 {
784
784
  constructor() {
785
785
  super({
786
786
  id: 'notebook.outline.toggleCodeCells',
787
- title: ( localize(8321, "Code Cells")),
787
+ title: ( localize(8119, "Code Cells")),
788
788
  f1: false,
789
789
  toggled: {
790
790
  condition: ( (ContextKeyExpr.equals('config.notebook.outline.showCodeCells', true)))
@@ -806,7 +806,7 @@ registerAction2(class ToggleCodeCellSymbolEntries extends Action2 {
806
806
  constructor() {
807
807
  super({
808
808
  id: 'notebook.outline.toggleCodeCellSymbols',
809
- title: ( localize(8322, "Code Cell Symbols")),
809
+ title: ( localize(8120, "Code Cell Symbols")),
810
810
  f1: false,
811
811
  toggled: {
812
812
  condition: ( (ContextKeyExpr.equals('config.notebook.outline.showCodeCellSymbols', true)))
@@ -52,7 +52,7 @@ registerAction2(class extends Action2 {
52
52
  constructor() {
53
53
  super({
54
54
  id: 'notebook.setProfile',
55
- title: ( localize(8323, "Set Profile"))
55
+ title: ( localize(8121, "Set Profile"))
56
56
  });
57
57
  }
58
58
  async run(accessor, args) {