@codingame/monaco-vscode-notebook-service-override 11.1.2 → 12.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 (157) hide show
  1. package/index.d.ts +2 -1
  2. package/index.js +64 -1
  3. package/package.json +47 -15
  4. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.css.js +1 -1
  5. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.d.ts +38 -0
  6. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +43 -41
  7. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.d.ts +1 -0
  8. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +109 -130
  9. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.d.ts +25 -0
  10. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +13 -11
  11. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.d.ts +3 -0
  12. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +72 -19
  13. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.d.ts +7 -0
  14. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +23 -17
  15. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.d.ts +14 -0
  16. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +4 -3
  17. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.d.ts +1 -0
  18. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +30 -28
  19. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.d.ts +18 -0
  20. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.js +76 -0
  21. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts +21 -0
  22. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +61 -58
  23. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.d.ts +1 -0
  24. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +5 -3
  25. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.d.ts +1 -0
  26. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +4 -2
  27. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.d.ts +28 -0
  28. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +8 -7
  29. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.d.ts +20 -0
  30. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +10 -9
  31. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.d.ts +1 -0
  32. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +52 -50
  33. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.d.ts +13 -0
  34. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +3 -2
  35. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/media/notebookFind.css.js +1 -1
  36. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.d.ts +1 -0
  37. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +28 -28
  38. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.d.ts +10 -0
  39. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +51 -50
  40. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.d.ts +10 -0
  41. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +21 -18
  42. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.d.ts +1 -0
  43. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +4 -2
  44. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.d.ts +11 -0
  45. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +3 -2
  46. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.d.ts +1 -0
  47. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +6 -5
  48. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.d.ts +69 -0
  49. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +460 -382
  50. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.d.ts +1 -0
  51. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +124 -0
  52. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.d.ts +1 -0
  53. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +87 -145
  54. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.d.ts +2 -0
  55. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.js +1 -0
  56. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.d.ts +27 -0
  57. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +16 -15
  58. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.d.ts +38 -0
  59. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +8 -7
  60. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.d.ts +34 -0
  61. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +9 -8
  62. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.d.ts +53 -0
  63. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +40 -36
  64. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +112 -0
  65. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +115 -116
  66. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.d.ts +8 -0
  67. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +4 -3
  68. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.d.ts +32 -0
  69. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +111 -117
  70. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.d.ts +17 -0
  71. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +11 -9
  72. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.d.ts +1 -0
  73. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +5 -4
  74. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.d.ts +1 -0
  75. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +7 -6
  76. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.d.ts +1 -0
  77. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +1 -0
  78. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.d.ts +9 -0
  79. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +113 -198
  80. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.d.ts +8 -0
  81. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +25 -23
  82. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.d.ts +3 -0
  83. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +115 -145
  84. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.d.ts +3 -0
  85. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +76 -147
  86. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +13 -0
  87. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +45 -77
  88. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.d.ts +1 -0
  89. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +30 -35
  90. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.d.ts +27 -0
  91. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +19 -18
  92. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.d.ts +30 -0
  93. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +59 -52
  94. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.d.ts +1 -0
  95. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +11 -21
  96. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.d.ts +1 -0
  97. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +69 -113
  98. package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.d.ts +14 -0
  99. package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +194 -184
  100. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.d.ts +10 -0
  101. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +51 -51
  102. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.d.ts +12 -0
  103. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +14 -36
  104. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.d.ts +48 -0
  105. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +57 -56
  106. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.d.ts +16 -0
  107. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.js +1 -0
  108. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +43 -0
  109. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +29 -11
  110. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.d.ts +30 -0
  111. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +17 -16
  112. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.d.ts +46 -0
  113. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +14 -8
  114. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.d.ts +25 -0
  115. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +21 -19
  116. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.d.ts +57 -0
  117. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +7 -4
  118. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.d.ts +20 -0
  119. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +30 -26
  120. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.d.ts +13 -0
  121. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +6 -5
  122. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.d.ts +23 -0
  123. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +2 -1
  124. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +134 -0
  125. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +164 -121
  126. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.d.ts +14 -0
  127. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +2 -1
  128. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.d.ts +21 -0
  129. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +37 -0
  130. package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.d.ts +56 -0
  131. package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +6 -3
  132. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +101 -0
  133. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +131 -55
  134. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.d.ts +29 -0
  135. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +4 -3
  136. package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.d.ts +48 -0
  137. package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +12 -10
  138. package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.d.ts +38 -0
  139. package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.js +1 -0
  140. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.d.ts +50 -0
  141. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +75 -1
  142. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorkerMain.d.ts +1 -0
  143. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorkerMain.js +2 -1
  144. package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.d.ts +31 -0
  145. package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +2 -1
  146. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.d.ts +78 -0
  147. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +45 -42
  148. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.d.ts +96 -0
  149. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +57 -54
  150. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.d.ts +74 -0
  151. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +6 -3
  152. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.d.ts +53 -0
  153. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +2 -1
  154. package/worker.js +2 -1
  155. package/workers/notebook.worker.d.ts +1 -0
  156. package/notebook.js +0 -50
  157. package/workers/notebook.worker.js +0 -1
@@ -1,4 +1,6 @@
1
+
1
2
  import { Iterable } from 'vscode/vscode/vs/base/common/iterator';
3
+ import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
2
4
  import { isEqual } from 'vscode/vscode/vs/base/common/resources';
3
5
  import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
4
6
  import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
@@ -6,17 +8,17 @@ import { localize, localize2 } from 'vscode/vscode/vs/nls';
6
8
  import { registerAction2, MenuId, MenuRegistry } from 'vscode/vscode/vs/platform/actions/common/actions';
7
9
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
8
10
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
11
+ import { EditorsOrder } from 'vscode/vscode/vs/workbench/common/editor';
9
12
  import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
10
- import { CTX_INLINE_CHAT_FOCUSED } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
11
- import { insertCell } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
12
- import { CTX_NOTEBOOK_CELL_CHAT_FOCUSED } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext';
13
- import { NotebookChatController } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController';
14
- import { NotebookAction, executeNotebookCondition, getContextFromUri, getContextFromActiveEditor, NotebookMultiCellAction, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, cellExecutionArgs, parseMultiCellExecutionArgs, CELL_TITLE_CELL_GROUP_ID, NotebookCellAction } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
15
- import { CellEditState, EXECUTE_CELL_COMMAND_ID, ScrollToRevealBehavior, CellFocusMode } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
16
- import { executeAllIcon, executeIcon, executeAboveIcon, executeBelowIcon, stopIcon, executingStateIcon, errorStateIcon } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
13
+ import { CTX_INLINE_CHAT_FOCUSED } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
14
+ import { insertCell } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
15
+ import { NotebookChatController } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController';
16
+ import { NotebookAction, executeNotebookCondition, getContextFromUri, getContextFromActiveEditor, NotebookMultiCellAction, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, cellExecutionArgs, parseMultiCellExecutionArgs, CellToolbarOrder, CELL_TITLE_CELL_GROUP_ID, NotebookCellAction } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
17
+ import { CellEditState, EXECUTE_CELL_COMMAND_ID, ScrollToRevealBehavior, CellFocusMode } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
18
+ import { executeAllIcon, executeIcon, executeAboveIcon, executeBelowIcon, stopIcon, executingStateIcon, errorStateIcon } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
17
19
  import { CellKind, NotebookSetting, CellUri } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
18
- import { NOTEBOOK_CELL_TYPE, NOTEBOOK_KERNEL_COUNT, NOTEBOOK_KERNEL_SOURCE_COUNT, NOTEBOOK_MISSING_KERNEL_EXTENSION, NOTEBOOK_CELL_EXECUTING, NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_INTERRUPTIBLE_KERNEL, NOTEBOOK_HAS_SOMETHING_RUNNING, NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_EXECUTION_STATE, NOTEBOOK_HAS_RUNNING_CELL, NOTEBOOK_LAST_CELL_FAILED } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
19
- import { NotebookEditorInput } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
20
+ import { NOTEBOOK_CELL_TYPE, NOTEBOOK_KERNEL_COUNT, NOTEBOOK_KERNEL_SOURCE_COUNT, NOTEBOOK_MISSING_KERNEL_EXTENSION, NOTEBOOK_CELL_EXECUTING, NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_INTERRUPTIBLE_KERNEL, NOTEBOOK_HAS_SOMETHING_RUNNING, NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_EXECUTION_STATE, NOTEBOOK_HAS_RUNNING_CELL, NOTEBOOK_LAST_CELL_FAILED } from '@codingame/monaco-vscode-4a36e358-d94d-55e0-86ee-3bcd543d9d3f-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
21
+ import { NotebookEditorInput } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
20
22
  import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
21
23
  import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
22
24
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
@@ -33,15 +35,13 @@ const EXECUTE_CELLS_ABOVE = 'notebook.cell.executeCellsAbove';
33
35
  const RENDER_ALL_MARKDOWN_CELLS = 'notebook.renderAllMarkdownCells';
34
36
  const REVEAL_RUNNING_CELL = 'notebook.revealRunningCell';
35
37
  const REVEAL_LAST_FAILED_CELL = 'notebook.revealLastFailedCell';
36
- const executeCondition = ( (ContextKeyExpr.and(
37
- (NOTEBOOK_CELL_TYPE.isEqualTo('code')),
38
- (ContextKeyExpr.or(
39
- ContextKeyExpr.greater(NOTEBOOK_KERNEL_COUNT.key, 0),
40
- ContextKeyExpr.greater(NOTEBOOK_KERNEL_SOURCE_COUNT.key, 0),
41
- NOTEBOOK_MISSING_KERNEL_EXTENSION
42
- ))
43
- )));
44
- const executeThisCellCondition = ( (ContextKeyExpr.and(executeCondition, (NOTEBOOK_CELL_EXECUTING.toNegated()))));
38
+ const executeCondition = ( ContextKeyExpr.and(( NOTEBOOK_CELL_TYPE.isEqualTo('code')), ( ContextKeyExpr.or(
39
+ ContextKeyExpr.greater(NOTEBOOK_KERNEL_COUNT.key, 0),
40
+ ContextKeyExpr.greater(NOTEBOOK_KERNEL_SOURCE_COUNT.key, 0),
41
+ NOTEBOOK_MISSING_KERNEL_EXTENSION
42
+ ))));
43
+ const executeThisCellCondition = ( ContextKeyExpr.and(executeCondition, ( NOTEBOOK_CELL_EXECUTING.toNegated())));
44
+ const executeSectionCondition = ( ContextKeyExpr.and(( NOTEBOOK_CELL_TYPE.isEqualTo('markup'))));
45
45
  function renderAllMarkdownCells(context) {
46
46
  for (let i = 0; i < context.notebookEditor.getLength(); i++) {
47
47
  const cell = context.notebookEditor.cellAt(i);
@@ -88,7 +88,7 @@ registerAction2(class RenderAllMarkdownCellsAction extends NotebookAction {
88
88
  constructor() {
89
89
  super({
90
90
  id: RENDER_ALL_MARKDOWN_CELLS,
91
- title: ( localize(8043, "Render All Markdown Cells")),
91
+ title: ( localize(7471, "Render All Markdown Cells")),
92
92
  });
93
93
  }
94
94
  async runWithContext(accessor, context) {
@@ -99,10 +99,10 @@ registerAction2(class ExecuteNotebookAction extends NotebookAction {
99
99
  constructor() {
100
100
  super({
101
101
  id: EXECUTE_NOTEBOOK_COMMAND_ID,
102
- title: ( localize(8044, "Run All")),
102
+ title: ( localize(7472, "Run All")),
103
103
  icon: executeAllIcon,
104
104
  metadata: {
105
- description: ( localize(8044, "Run All")),
105
+ description: ( localize(7472, "Run All")),
106
106
  args: [
107
107
  {
108
108
  name: 'uri',
@@ -115,27 +115,13 @@ registerAction2(class ExecuteNotebookAction extends NotebookAction {
115
115
  id: MenuId.EditorTitle,
116
116
  order: -1,
117
117
  group: 'navigation',
118
- when: ( (ContextKeyExpr.and(
119
- NOTEBOOK_IS_ACTIVE_EDITOR,
120
- executeNotebookCondition,
121
- (ContextKeyExpr.or(
122
- (NOTEBOOK_INTERRUPTIBLE_KERNEL.toNegated()),
123
- (NOTEBOOK_HAS_SOMETHING_RUNNING.toNegated())
124
- )),
125
- (ContextKeyExpr.notEquals('config.notebook.globalToolbar', true))
126
- )))
118
+ when: ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, executeNotebookCondition, ( ContextKeyExpr.or(( NOTEBOOK_INTERRUPTIBLE_KERNEL.toNegated()), ( NOTEBOOK_HAS_SOMETHING_RUNNING.toNegated()))), ( ContextKeyExpr.notEquals('config.notebook.globalToolbar', true))))
127
119
  },
128
120
  {
129
121
  id: MenuId.NotebookToolbar,
130
122
  order: -1,
131
123
  group: 'navigation/execute',
132
- when: ( (ContextKeyExpr.and(executeNotebookCondition, (ContextKeyExpr.or(
133
- (NOTEBOOK_INTERRUPTIBLE_KERNEL.toNegated()),
134
- (NOTEBOOK_HAS_SOMETHING_RUNNING.toNegated())
135
- )), ( (ContextKeyExpr.and(
136
- NOTEBOOK_HAS_SOMETHING_RUNNING,
137
- (NOTEBOOK_INTERRUPTIBLE_KERNEL.toNegated())
138
- )))?.negate(), (ContextKeyExpr.equals('config.notebook.globalToolbar', true)))))
124
+ when: ( ContextKeyExpr.and(executeNotebookCondition, ( ContextKeyExpr.or(( NOTEBOOK_INTERRUPTIBLE_KERNEL.toNegated()), ( NOTEBOOK_HAS_SOMETHING_RUNNING.toNegated()))), ( ContextKeyExpr.and(NOTEBOOK_HAS_SOMETHING_RUNNING, ( NOTEBOOK_INTERRUPTIBLE_KERNEL.toNegated())))?.negate(), ( ContextKeyExpr.equals('config.notebook.globalToolbar', true))))
139
125
  }
140
126
  ]
141
127
  });
@@ -146,7 +132,7 @@ registerAction2(class ExecuteNotebookAction extends NotebookAction {
146
132
  async runWithContext(accessor, context) {
147
133
  renderAllMarkdownCells(context);
148
134
  const editorService = accessor.get(IEditorService);
149
- const editor = editorService.getEditors(0 ).find(editor => editor.editor instanceof NotebookEditorInput && editor.editor.viewType === context.notebookEditor.textModel.viewType && ( (editor.editor.resource.toString())) === ( (context.notebookEditor.textModel.uri.toString())));
135
+ const editor = editorService.getEditors(EditorsOrder.MOST_RECENTLY_ACTIVE).find(editor => editor.editor instanceof NotebookEditorInput && editor.editor.viewType === context.notebookEditor.textModel.viewType && ( editor.editor.resource.toString()) === ( context.notebookEditor.textModel.uri.toString()));
150
136
  const editorGroupService = accessor.get(IEditorGroupsService);
151
137
  if (editor) {
152
138
  const group = editorGroupService.getGroup(editor.groupId);
@@ -160,15 +146,12 @@ registerAction2(class ExecuteCell extends NotebookMultiCellAction {
160
146
  super({
161
147
  id: EXECUTE_CELL_COMMAND_ID,
162
148
  precondition: executeThisCellCondition,
163
- title: ( localize(8045, "Execute Cell")),
149
+ title: ( localize(7473, "Execute Cell")),
164
150
  keybinding: {
165
- when: ( (ContextKeyExpr.or(
166
- NOTEBOOK_CELL_LIST_FOCUSED,
167
- (ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED))
168
- ))),
169
- primary: 256 | 3 ,
151
+ when: NOTEBOOK_CELL_LIST_FOCUSED,
152
+ primary: KeyMod.WinCtrl | KeyCode.Enter,
170
153
  win: {
171
- primary: 2048 | 512 | 3
154
+ primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.Enter
172
155
  },
173
156
  weight: NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT
174
157
  },
@@ -178,7 +161,7 @@ registerAction2(class ExecuteCell extends NotebookMultiCellAction {
178
161
  group: 'inline'
179
162
  },
180
163
  metadata: {
181
- description: ( localize(8045, "Execute Cell")),
164
+ description: ( localize(7473, "Execute Cell")),
182
165
  args: cellExecutionArgs
183
166
  },
184
167
  icon: executeIcon
@@ -212,23 +195,17 @@ registerAction2(class ExecuteAboveCells extends NotebookMultiCellAction {
212
195
  super({
213
196
  id: EXECUTE_CELLS_ABOVE,
214
197
  precondition: executeCondition,
215
- title: ( localize(8046, "Execute Above Cells")),
198
+ title: ( localize(7474, "Execute Above Cells")),
216
199
  menu: [
217
200
  {
218
201
  id: MenuId.NotebookCellExecute,
219
- when: ( (ContextKeyExpr.and(
220
- executeCondition,
221
- (ContextKeyExpr.equals(`config.${NotebookSetting.consolidatedRunButton}`, true))
222
- )))
202
+ when: ( ContextKeyExpr.and(executeCondition, ( ContextKeyExpr.equals(`config.${NotebookSetting.consolidatedRunButton}`, true))))
223
203
  },
224
204
  {
225
205
  id: MenuId.NotebookCellTitle,
226
- order: 1 ,
206
+ order: CellToolbarOrder.ExecuteAboveCells,
227
207
  group: CELL_TITLE_CELL_GROUP_ID,
228
- when: ( (ContextKeyExpr.and(
229
- executeCondition,
230
- (ContextKeyExpr.equals(`config.${NotebookSetting.consolidatedRunButton}`, false))
231
- )))
208
+ when: ( ContextKeyExpr.and(executeCondition, ( ContextKeyExpr.equals(`config.${NotebookSetting.consolidatedRunButton}`, false))))
232
209
  }
233
210
  ],
234
211
  icon: executeAboveIcon
@@ -244,7 +221,7 @@ registerAction2(class ExecuteAboveCells extends NotebookMultiCellAction {
244
221
  await context.notebookEditor.focusNotebookCell(context.cell, 'container', { skipReveal: true });
245
222
  }
246
223
  else {
247
- endCellIdx = Math.min(...( (context.selectedCells.map(cell => context.notebookEditor.getCellIndex(cell)))));
224
+ endCellIdx = Math.min(...( context.selectedCells.map(cell => context.notebookEditor.getCellIndex(cell))));
248
225
  }
249
226
  if (typeof endCellIdx === 'number') {
250
227
  const range = { start: 0, end: endCellIdx };
@@ -258,23 +235,17 @@ registerAction2(class ExecuteCellAndBelow extends NotebookMultiCellAction {
258
235
  super({
259
236
  id: EXECUTE_CELL_AND_BELOW,
260
237
  precondition: executeCondition,
261
- title: ( localize(8047, "Execute Cell and Below")),
238
+ title: ( localize(7475, "Execute Cell and Below")),
262
239
  menu: [
263
240
  {
264
241
  id: MenuId.NotebookCellExecute,
265
- when: ( (ContextKeyExpr.and(
266
- executeCondition,
267
- (ContextKeyExpr.equals(`config.${NotebookSetting.consolidatedRunButton}`, true))
268
- )))
242
+ when: ( ContextKeyExpr.and(executeCondition, ( ContextKeyExpr.equals(`config.${NotebookSetting.consolidatedRunButton}`, true))))
269
243
  },
270
244
  {
271
245
  id: MenuId.NotebookCellTitle,
272
- order: 2 ,
246
+ order: CellToolbarOrder.ExecuteCellAndBelow,
273
247
  group: CELL_TITLE_CELL_GROUP_ID,
274
- when: ( (ContextKeyExpr.and(
275
- executeCondition,
276
- (ContextKeyExpr.equals(`config.${NotebookSetting.consolidatedRunButton}`, false))
277
- )))
248
+ when: ( ContextKeyExpr.and(executeCondition, ( ContextKeyExpr.equals(`config.${NotebookSetting.consolidatedRunButton}`, false))))
278
249
  }
279
250
  ],
280
251
  icon: executeBelowIcon
@@ -290,7 +261,7 @@ registerAction2(class ExecuteCellAndBelow extends NotebookMultiCellAction {
290
261
  await context.notebookEditor.focusNotebookCell(context.cell, 'container', { skipReveal: true });
291
262
  }
292
263
  else {
293
- startCellIdx = Math.min(...( (context.selectedCells.map(cell => context.notebookEditor.getCellIndex(cell)))));
264
+ startCellIdx = Math.min(...( context.selectedCells.map(cell => context.notebookEditor.getCellIndex(cell))));
294
265
  }
295
266
  if (typeof startCellIdx === 'number') {
296
267
  const range = { start: startCellIdx, end: context.notebookEditor.getLength() };
@@ -304,9 +275,9 @@ registerAction2(class ExecuteCellFocusContainer extends NotebookMultiCellAction
304
275
  super({
305
276
  id: EXECUTE_CELL_FOCUS_CONTAINER_COMMAND_ID,
306
277
  precondition: executeThisCellCondition,
307
- title: ( localize(8048, "Execute Cell and Focus Container")),
278
+ title: ( localize(7476, "Execute Cell and Focus Container")),
308
279
  metadata: {
309
- description: ( localize(8048, "Execute Cell and Focus Container")),
280
+ description: ( localize(7476, "Execute Cell and Focus Container")),
310
281
  args: cellExecutionArgs
311
282
  },
312
283
  icon: executeIcon
@@ -329,16 +300,13 @@ registerAction2(class ExecuteCellFocusContainer extends NotebookMultiCellAction
329
300
  await runCell(editorGroupsService, context);
330
301
  }
331
302
  });
332
- const cellCancelCondition = ( (ContextKeyExpr.or(
333
- (ContextKeyExpr.equals(NOTEBOOK_CELL_EXECUTION_STATE.key, 'executing')),
334
- (ContextKeyExpr.equals(NOTEBOOK_CELL_EXECUTION_STATE.key, 'pending'))
335
- )));
303
+ const cellCancelCondition = ( ContextKeyExpr.or(( ContextKeyExpr.equals(NOTEBOOK_CELL_EXECUTION_STATE.key, 'executing')), ( ContextKeyExpr.equals(NOTEBOOK_CELL_EXECUTION_STATE.key, 'pending'))));
336
304
  registerAction2(class CancelExecuteCell extends NotebookMultiCellAction {
337
305
  constructor() {
338
306
  super({
339
307
  id: CANCEL_CELL_COMMAND_ID,
340
308
  precondition: cellCancelCondition,
341
- title: ( localize(8049, "Stop Cell Execution")),
309
+ title: ( localize(7477, "Stop Cell Execution")),
342
310
  icon: stopIcon,
343
311
  menu: {
344
312
  id: MenuId.NotebookCellExecutePrimary,
@@ -346,7 +314,7 @@ registerAction2(class CancelExecuteCell extends NotebookMultiCellAction {
346
314
  group: 'inline'
347
315
  },
348
316
  metadata: {
349
- description: ( localize(8049, "Stop Cell Execution")),
317
+ description: ( localize(7477, "Stop Cell Execution")),
350
318
  args: [
351
319
  {
352
320
  name: 'options',
@@ -400,17 +368,11 @@ registerAction2(class ExecuteCellSelectBelow extends NotebookCellAction {
400
368
  constructor() {
401
369
  super({
402
370
  id: EXECUTE_CELL_SELECT_BELOW,
403
- precondition: ( (ContextKeyExpr.or(
404
- executeThisCellCondition,
405
- (NOTEBOOK_CELL_TYPE.isEqualTo('markup'))
406
- ))),
407
- title: ( localize(8050, "Execute Notebook Cell and Select Below")),
371
+ precondition: ( ContextKeyExpr.or(executeThisCellCondition, ( NOTEBOOK_CELL_TYPE.isEqualTo('markup')))),
372
+ title: ( localize(7478, "Execute Notebook Cell and Select Below")),
408
373
  keybinding: {
409
- when: ( (ContextKeyExpr.and(
410
- NOTEBOOK_CELL_LIST_FOCUSED,
411
- (CTX_INLINE_CHAT_FOCUSED.negate())
412
- ))),
413
- primary: 1024 | 3 ,
374
+ when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( CTX_INLINE_CHAT_FOCUSED.negate()))),
375
+ primary: KeyMod.Shift | KeyCode.Enter,
414
376
  weight: NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT
415
377
  },
416
378
  });
@@ -466,14 +428,11 @@ registerAction2(class ExecuteCellInsertBelow extends NotebookCellAction {
466
428
  constructor() {
467
429
  super({
468
430
  id: EXECUTE_CELL_INSERT_BELOW,
469
- precondition: ( (ContextKeyExpr.or(
470
- executeThisCellCondition,
471
- (NOTEBOOK_CELL_TYPE.isEqualTo('markup'))
472
- ))),
473
- title: ( localize(8051, "Execute Notebook Cell and Insert Below")),
431
+ precondition: ( ContextKeyExpr.or(executeThisCellCondition, ( NOTEBOOK_CELL_TYPE.isEqualTo('markup')))),
432
+ title: ( localize(7479, "Execute Notebook Cell and Insert Below")),
474
433
  keybinding: {
475
434
  when: NOTEBOOK_CELL_LIST_FOCUSED,
476
- primary: 512 | 3 ,
435
+ primary: KeyMod.Alt | KeyCode.Enter,
477
436
  weight: NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT
478
437
  },
479
438
  });
@@ -507,29 +466,20 @@ registerAction2(class CancelAllNotebook extends CancelNotebook {
507
466
  constructor() {
508
467
  super({
509
468
  id: CANCEL_NOTEBOOK_COMMAND_ID,
510
- title: ( localize2(8052, "Stop Execution")),
469
+ title: ( localize2(7480, "Stop Execution")),
511
470
  icon: stopIcon,
512
471
  menu: [
513
472
  {
514
473
  id: MenuId.EditorTitle,
515
474
  order: -1,
516
475
  group: 'navigation',
517
- when: ( (ContextKeyExpr.and(
518
- NOTEBOOK_IS_ACTIVE_EDITOR,
519
- NOTEBOOK_HAS_SOMETHING_RUNNING,
520
- (NOTEBOOK_INTERRUPTIBLE_KERNEL.toNegated()),
521
- (ContextKeyExpr.notEquals('config.notebook.globalToolbar', true))
522
- )))
476
+ when: ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_HAS_SOMETHING_RUNNING, ( NOTEBOOK_INTERRUPTIBLE_KERNEL.toNegated()), ( ContextKeyExpr.notEquals('config.notebook.globalToolbar', true))))
523
477
  },
524
478
  {
525
479
  id: MenuId.NotebookToolbar,
526
480
  order: -1,
527
481
  group: 'navigation/execute',
528
- when: ( (ContextKeyExpr.and(
529
- NOTEBOOK_HAS_SOMETHING_RUNNING,
530
- (NOTEBOOK_INTERRUPTIBLE_KERNEL.toNegated()),
531
- (ContextKeyExpr.equals('config.notebook.globalToolbar', true))
532
- )))
482
+ when: ( ContextKeyExpr.and(NOTEBOOK_HAS_SOMETHING_RUNNING, ( NOTEBOOK_INTERRUPTIBLE_KERNEL.toNegated()), ( ContextKeyExpr.equals('config.notebook.globalToolbar', true))))
533
483
  }
534
484
  ]
535
485
  });
@@ -539,30 +489,30 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
539
489
  constructor() {
540
490
  super({
541
491
  id: INTERRUPT_NOTEBOOK_COMMAND_ID,
542
- title: ( localize2(8053, "Interrupt")),
543
- precondition: ( (ContextKeyExpr.and(NOTEBOOK_HAS_SOMETHING_RUNNING, NOTEBOOK_INTERRUPTIBLE_KERNEL))),
492
+ title: ( localize2(7481, "Interrupt")),
493
+ precondition: ( ContextKeyExpr.and(NOTEBOOK_HAS_SOMETHING_RUNNING, NOTEBOOK_INTERRUPTIBLE_KERNEL)),
544
494
  icon: stopIcon,
545
495
  menu: [
546
496
  {
547
497
  id: MenuId.EditorTitle,
548
498
  order: -1,
549
499
  group: 'navigation',
550
- when: ( (ContextKeyExpr.and(
500
+ when: ( ContextKeyExpr.and(
551
501
  NOTEBOOK_IS_ACTIVE_EDITOR,
552
502
  NOTEBOOK_HAS_SOMETHING_RUNNING,
553
503
  NOTEBOOK_INTERRUPTIBLE_KERNEL,
554
- (ContextKeyExpr.notEquals('config.notebook.globalToolbar', true))
555
- )))
504
+ ( ContextKeyExpr.notEquals('config.notebook.globalToolbar', true))
505
+ ))
556
506
  },
557
507
  {
558
508
  id: MenuId.NotebookToolbar,
559
509
  order: -1,
560
510
  group: 'navigation/execute',
561
- when: ( (ContextKeyExpr.and(
511
+ when: ( ContextKeyExpr.and(
562
512
  NOTEBOOK_HAS_SOMETHING_RUNNING,
563
513
  NOTEBOOK_INTERRUPTIBLE_KERNEL,
564
- (ContextKeyExpr.equals('config.notebook.globalToolbar', true))
565
- )))
514
+ ( ContextKeyExpr.equals('config.notebook.globalToolbar', true))
515
+ ))
566
516
  },
567
517
  {
568
518
  id: MenuId.InteractiveToolbar,
@@ -573,7 +523,7 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
573
523
  }
574
524
  });
575
525
  MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
576
- title: ( localize(8054, "Go To")),
526
+ title: ( localize(7482, "Go To")),
577
527
  submenu: MenuId.NotebookCellExecuteGoTo,
578
528
  group: 'navigation/execute',
579
529
  order: 20,
@@ -583,37 +533,26 @@ registerAction2(class RevealRunningCellAction extends NotebookAction {
583
533
  constructor() {
584
534
  super({
585
535
  id: REVEAL_RUNNING_CELL,
586
- title: ( localize(8055, "Go to Running Cell")),
587
- tooltip: ( localize(8055, "Go to Running Cell")),
588
- shortTitle: ( localize(8055, "Go to Running Cell")),
536
+ title: ( localize(7483, "Go to Running Cell")),
537
+ tooltip: ( localize(7483, "Go to Running Cell")),
538
+ shortTitle: ( localize(7483, "Go to Running Cell")),
589
539
  precondition: NOTEBOOK_HAS_RUNNING_CELL,
590
540
  menu: [
591
541
  {
592
542
  id: MenuId.EditorTitle,
593
- when: ( (ContextKeyExpr.and(
594
- NOTEBOOK_IS_ACTIVE_EDITOR,
595
- NOTEBOOK_HAS_RUNNING_CELL,
596
- (ContextKeyExpr.notEquals('config.notebook.globalToolbar', true))
597
- ))),
543
+ when: ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_HAS_RUNNING_CELL, ( ContextKeyExpr.notEquals('config.notebook.globalToolbar', true)))),
598
544
  group: 'navigation',
599
545
  order: 0
600
546
  },
601
547
  {
602
548
  id: MenuId.NotebookCellExecuteGoTo,
603
- when: ( (ContextKeyExpr.and(
604
- NOTEBOOK_IS_ACTIVE_EDITOR,
605
- NOTEBOOK_HAS_RUNNING_CELL,
606
- (ContextKeyExpr.equals('config.notebook.globalToolbar', true))
607
- ))),
549
+ when: ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_HAS_RUNNING_CELL, ( ContextKeyExpr.equals('config.notebook.globalToolbar', true)))),
608
550
  group: 'navigation/execute',
609
551
  order: 20
610
552
  },
611
553
  {
612
554
  id: MenuId.InteractiveToolbar,
613
- when: ( (ContextKeyExpr.and(
614
- NOTEBOOK_HAS_RUNNING_CELL,
615
- (ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive'))
616
- ))),
555
+ when: ( ContextKeyExpr.and(NOTEBOOK_HAS_RUNNING_CELL, ( ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive')))),
617
556
  group: 'navigation',
618
557
  order: 10
619
558
  }
@@ -641,7 +580,7 @@ registerAction2(class RevealRunningCellAction extends NotebookAction {
641
580
  const sf = thread.getTopStackFrame();
642
581
  if (sf) {
643
582
  const parsed = CellUri.parse(sf.source.uri);
644
- if (parsed && ( (parsed.notebook.toString())) === ( (notebook.toString()))) {
583
+ if (parsed && ( parsed.notebook.toString()) === ( notebook.toString())) {
645
584
  return parsed.handle;
646
585
  }
647
586
  }
@@ -654,30 +593,20 @@ registerAction2(class RevealLastFailedCellAction extends NotebookAction {
654
593
  constructor() {
655
594
  super({
656
595
  id: REVEAL_LAST_FAILED_CELL,
657
- title: ( localize(8056, "Go to Most Recently Failed Cell")),
658
- tooltip: ( localize(8056, "Go to Most Recently Failed Cell")),
659
- shortTitle: ( localize(8057, "Go to Most Recently Failed Cell")),
596
+ title: ( localize(7484, "Go to Most Recently Failed Cell")),
597
+ tooltip: ( localize(7484, "Go to Most Recently Failed Cell")),
598
+ shortTitle: ( localize(7485, "Go to Most Recently Failed Cell")),
660
599
  precondition: NOTEBOOK_LAST_CELL_FAILED,
661
600
  menu: [
662
601
  {
663
602
  id: MenuId.EditorTitle,
664
- when: ( (ContextKeyExpr.and(
665
- NOTEBOOK_IS_ACTIVE_EDITOR,
666
- NOTEBOOK_LAST_CELL_FAILED,
667
- (NOTEBOOK_HAS_RUNNING_CELL.toNegated()),
668
- (ContextKeyExpr.notEquals('config.notebook.globalToolbar', true))
669
- ))),
603
+ when: ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_LAST_CELL_FAILED, ( NOTEBOOK_HAS_RUNNING_CELL.toNegated()), ( ContextKeyExpr.notEquals('config.notebook.globalToolbar', true)))),
670
604
  group: 'navigation',
671
605
  order: 0
672
606
  },
673
607
  {
674
608
  id: MenuId.NotebookCellExecuteGoTo,
675
- when: ( (ContextKeyExpr.and(
676
- NOTEBOOK_IS_ACTIVE_EDITOR,
677
- NOTEBOOK_LAST_CELL_FAILED,
678
- (NOTEBOOK_HAS_RUNNING_CELL.toNegated()),
679
- (ContextKeyExpr.equals('config.notebook.globalToolbar', true))
680
- ))),
609
+ when: ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_LAST_CELL_FAILED, ( NOTEBOOK_HAS_RUNNING_CELL.toNegated()), ( ContextKeyExpr.equals('config.notebook.globalToolbar', true)))),
681
610
  group: 'navigation/execute',
682
611
  order: 20
683
612
  },
@@ -698,4 +627,4 @@ registerAction2(class RevealLastFailedCellAction extends NotebookAction {
698
627
  }
699
628
  });
700
629
 
701
- export { executeCondition, executeThisCellCondition };
630
+ export { executeCondition, executeSectionCondition, executeThisCellCondition };
@@ -0,0 +1,13 @@
1
+ import { IAction2Options } from "vscode/vscode/vs/platform/actions/common/actions";
2
+ import { ServicesAccessor } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
3
+ import { INotebookActionContext, NotebookAction } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions";
4
+ import { CellViewModel } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl";
5
+ import { CellKind } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
6
+ export declare function insertNewCell(accessor: ServicesAccessor, context: INotebookActionContext, kind: CellKind, direction: "above" | "below", focusEditor: boolean): CellViewModel | null;
7
+ export declare abstract class InsertCellCommand extends NotebookAction {
8
+ private kind;
9
+ private direction;
10
+ private focusEditor;
11
+ constructor(desc: Readonly<IAction2Options>, kind: CellKind, direction: "above" | "below", focusEditor: boolean);
12
+ runWithContext(accessor: ServicesAccessor, context: INotebookActionContext): Promise<void>;
13
+ }