@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,5 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { localize } from 'vscode/vscode/vs/nls';
3
4
  import { DisposableStore, Disposable, MutableDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
4
5
  import { Schemas } from 'vscode/vscode/vs/base/common/network';
@@ -6,21 +7,22 @@ import { ILanguageFeaturesService } from 'vscode/vscode/vs/editor/common/service
6
7
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
7
8
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
8
9
  import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
9
- import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
10
+ import { registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
10
11
  import { CENTER_ACTIVE_CELL } from '../navigation/arrow.js';
11
- import { SELECT_KERNEL_ID } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
12
+ import { SELECT_KERNEL_ID } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
12
13
  import { SELECT_NOTEBOOK_INDENTATION_ID } from '../../controller/editActions.js';
13
- import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
14
+ import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
14
15
  import { NotebookCellsChangeType } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
15
16
  import { INotebookKernelService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
16
17
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
18
+ import { StatusbarAlignment } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar';
17
19
  import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service';
18
20
  import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
19
21
  import { Event } from 'vscode/vscode/vs/base/common/event';
20
22
 
21
23
  let ImplictKernelSelector = class ImplictKernelSelector {
22
24
  constructor(notebook, suggested, notebookKernelService, languageFeaturesService, logService) {
23
- const disposables = ( (new DisposableStore()));
25
+ const disposables = ( new DisposableStore());
24
26
  this.dispose = disposables.dispose.bind(disposables);
25
27
  const selectKernel = () => {
26
28
  disposables.clear();
@@ -48,11 +50,11 @@ let ImplictKernelSelector = class ImplictKernelSelector {
48
50
  }));
49
51
  }
50
52
  };
51
- ImplictKernelSelector = ( (__decorate([
52
- ( (__param(2, INotebookKernelService))),
53
- ( (__param(3, ILanguageFeaturesService))),
54
- ( (__param(4, ILogService)))
55
- ], ImplictKernelSelector)));
53
+ ImplictKernelSelector = ( __decorate([
54
+ ( __param(2, INotebookKernelService)),
55
+ ( __param(3, ILanguageFeaturesService)),
56
+ ( __param(4, ILogService))
57
+ ], ImplictKernelSelector));
56
58
  let KernelStatus = class KernelStatus extends Disposable {
57
59
  constructor(_editorService, _statusbarService, _notebookKernelService, _instantiationService) {
58
60
  super();
@@ -60,8 +62,8 @@ let KernelStatus = class KernelStatus extends Disposable {
60
62
  this._statusbarService = _statusbarService;
61
63
  this._notebookKernelService = _notebookKernelService;
62
64
  this._instantiationService = _instantiationService;
63
- this._editorDisposables = this._register(( (new DisposableStore())));
64
- this._kernelInfoElement = this._register(( (new DisposableStore())));
65
+ this._editorDisposables = this._register(( new DisposableStore()));
66
+ this._kernelInfoElement = this._register(( new DisposableStore()));
65
67
  this._register(this._editorService.onDidActiveEditorChange(() => this._updateStatusbar()));
66
68
  this._updateStatusbar();
67
69
  }
@@ -110,38 +112,38 @@ let KernelStatus = class KernelStatus extends Disposable {
110
112
  }
111
113
  const tooltip = kernel.description ?? kernel.detail ?? kernel.label;
112
114
  this._kernelInfoElement.add(this._statusbarService.addEntry({
113
- name: ( localize(8167, "Notebook Kernel Info")),
115
+ name: ( localize(7321, "Notebook Kernel Info")),
114
116
  text: `$(notebook-kernel-select) ${kernel.label}`,
115
117
  ariaLabel: kernel.label,
116
- tooltip: isSuggested ? ( localize(8168, "{0} (suggestion)", tooltip)) : tooltip,
118
+ tooltip: isSuggested ? ( localize(7322, "{0} (suggestion)", tooltip)) : tooltip,
117
119
  command: SELECT_KERNEL_ID,
118
- }, SELECT_KERNEL_ID, 1 , 10));
120
+ }, SELECT_KERNEL_ID, StatusbarAlignment.RIGHT, 10));
119
121
  this._kernelInfoElement.add(kernel.onDidChange(() => this._showKernelStatus(notebook)));
120
122
  }
121
123
  else {
122
124
  this._kernelInfoElement.add(this._statusbarService.addEntry({
123
- name: ( localize(8169, "Notebook Kernel Selection")),
124
- text: ( localize(8170, "Select Kernel")),
125
- ariaLabel: ( localize(8170, "Select Kernel")),
125
+ name: ( localize(7323, "Notebook Kernel Selection")),
126
+ text: ( localize(7324, "Select Kernel")),
127
+ ariaLabel: ( localize(7324, "Select Kernel")),
126
128
  command: SELECT_KERNEL_ID,
127
129
  kind: 'prominent'
128
- }, SELECT_KERNEL_ID, 1 , 10));
130
+ }, SELECT_KERNEL_ID, StatusbarAlignment.RIGHT, 10));
129
131
  }
130
132
  }
131
133
  };
132
- KernelStatus = ( (__decorate([
133
- ( (__param(0, IEditorService))),
134
- ( (__param(1, IStatusbarService))),
135
- ( (__param(2, INotebookKernelService))),
136
- ( (__param(3, IInstantiationService)))
137
- ], KernelStatus)));
134
+ KernelStatus = ( __decorate([
135
+ ( __param(0, IEditorService)),
136
+ ( __param(1, IStatusbarService)),
137
+ ( __param(2, INotebookKernelService)),
138
+ ( __param(3, IInstantiationService))
139
+ ], KernelStatus));
138
140
  let ActiveCellStatus = class ActiveCellStatus extends Disposable {
139
141
  constructor(_editorService, _statusbarService) {
140
142
  super();
141
143
  this._editorService = _editorService;
142
144
  this._statusbarService = _statusbarService;
143
- this._itemDisposables = this._register(( (new DisposableStore())));
144
- this._accessor = this._register(( (new MutableDisposable())));
145
+ this._itemDisposables = this._register(( new DisposableStore()));
146
+ this._accessor = this._register(( new MutableDisposable()));
145
147
  this._register(this._editorService.onDidActiveEditorChange(() => this._update()));
146
148
  this._update();
147
149
  }
@@ -168,13 +170,13 @@ let ActiveCellStatus = class ActiveCellStatus extends Disposable {
168
170
  return;
169
171
  }
170
172
  const entry = {
171
- name: ( localize(8171, "Notebook Editor Selections")),
173
+ name: ( localize(7325, "Notebook Editor Selections")),
172
174
  text: newText,
173
175
  ariaLabel: newText,
174
176
  command: CENTER_ACTIVE_CELL
175
177
  };
176
178
  if (!this._accessor.value) {
177
- this._accessor.value = this._statusbarService.addEntry(entry, 'notebook.activeCellStatus', 1 , 100);
179
+ this._accessor.value = this._statusbarService.addEntry(entry, 'notebook.activeCellStatus', StatusbarAlignment.RIGHT, 100);
178
180
  }
179
181
  else {
180
182
  this._accessor.value.update(entry);
@@ -192,14 +194,14 @@ let ActiveCellStatus = class ActiveCellStatus extends Disposable {
192
194
  const numSelected = editor.getSelections().reduce((prev, range) => prev + (range.end - range.start), 0);
193
195
  const totalCells = editor.getLength();
194
196
  return numSelected > 1 ?
195
- ( localize(8172, "Cell {0} ({1} selected)", idxFocused, numSelected)) :
196
- ( localize(8173, "Cell {0} of {1}", idxFocused, totalCells));
197
+ ( localize(7326, "Cell {0} ({1} selected)", idxFocused, numSelected)) :
198
+ ( localize(7327, "Cell {0} of {1}", idxFocused, totalCells));
197
199
  }
198
200
  };
199
- ActiveCellStatus = ( (__decorate([
200
- ( (__param(0, IEditorService))),
201
- ( (__param(1, IStatusbarService)))
202
- ], ActiveCellStatus)));
201
+ ActiveCellStatus = ( __decorate([
202
+ ( __param(0, IEditorService)),
203
+ ( __param(1, IStatusbarService))
204
+ ], ActiveCellStatus));
203
205
  let NotebookIndentationStatus = class NotebookIndentationStatus extends Disposable {
204
206
  static { this.ID = 'selectNotebookIndentation'; }
205
207
  constructor(_editorService, _statusbarService, _configurationService) {
@@ -207,8 +209,8 @@ let NotebookIndentationStatus = class NotebookIndentationStatus extends Disposab
207
209
  this._editorService = _editorService;
208
210
  this._statusbarService = _statusbarService;
209
211
  this._configurationService = _configurationService;
210
- this._itemDisposables = this._register(( (new DisposableStore())));
211
- this._accessor = this._register(( (new MutableDisposable())));
212
+ this._itemDisposables = this._register(( new DisposableStore()));
213
+ this._accessor = this._register(( new MutableDisposable()));
212
214
  this._register(this._editorService.onDidActiveEditorChange(() => this._update()));
213
215
  this._register(this._configurationService.onDidChangeConfiguration(e => {
214
216
  if (e.affectsConfiguration('editor') || e.affectsConfiguration('notebook')) {
@@ -253,25 +255,25 @@ let NotebookIndentationStatus = class NotebookIndentationStatus extends Disposab
253
255
  return;
254
256
  }
255
257
  const entry = {
256
- name: ( localize(8174, "Notebook Indentation")),
258
+ name: ( localize(7328, "Notebook Indentation")),
257
259
  text: newText,
258
260
  ariaLabel: newText,
259
- tooltip: ( localize(8175, "Select Indentation")),
261
+ tooltip: ( localize(7329, "Select Indentation")),
260
262
  command: SELECT_NOTEBOOK_INDENTATION_ID
261
263
  };
262
264
  if (!this._accessor.value) {
263
- this._accessor.value = this._statusbarService.addEntry(entry, 'notebook.status.indentation', 1 , 100.4);
265
+ this._accessor.value = this._statusbarService.addEntry(entry, 'notebook.status.indentation', StatusbarAlignment.RIGHT, 100.4);
264
266
  }
265
267
  else {
266
268
  this._accessor.value.update(entry);
267
269
  }
268
270
  }
269
271
  };
270
- NotebookIndentationStatus = ( (__decorate([
271
- ( (__param(0, IEditorService))),
272
- ( (__param(1, IStatusbarService))),
273
- ( (__param(2, IConfigurationService)))
274
- ], NotebookIndentationStatus)));
272
+ NotebookIndentationStatus = ( __decorate([
273
+ ( __param(0, IEditorService)),
274
+ ( __param(1, IStatusbarService)),
275
+ ( __param(2, IConfigurationService))
276
+ ], NotebookIndentationStatus));
275
277
  let NotebookEditorStatusContribution = class NotebookEditorStatusContribution extends Disposable {
276
278
  static { this.ID = 'notebook.contrib.editorStatus'; }
277
279
  constructor(editorGroupService) {
@@ -283,7 +285,7 @@ let NotebookEditorStatusContribution = class NotebookEditorStatusContribution ex
283
285
  this._register(editorGroupService.onDidCreateAuxiliaryEditorPart(part => this.createNotebookStatus(part)));
284
286
  }
285
287
  createNotebookStatus(part) {
286
- const disposables = ( (new DisposableStore()));
288
+ const disposables = ( new DisposableStore());
287
289
  Event.once(part.onWillDispose)(() => disposables.dispose());
288
290
  const scopedInstantiationService = this.editorGroupService.getScopedInstantiationService(part);
289
291
  disposables.add(scopedInstantiationService.createInstance(KernelStatus));
@@ -291,7 +293,7 @@ let NotebookEditorStatusContribution = class NotebookEditorStatusContribution ex
291
293
  disposables.add(scopedInstantiationService.createInstance(NotebookIndentationStatus));
292
294
  }
293
295
  };
294
- NotebookEditorStatusContribution = ( (__decorate([
295
- ( (__param(0, IEditorGroupsService)))
296
- ], NotebookEditorStatusContribution)));
297
- registerWorkbenchContribution2(NotebookEditorStatusContribution.ID, NotebookEditorStatusContribution, 3 );
296
+ NotebookEditorStatusContribution = ( __decorate([
297
+ ( __param(0, IEditorGroupsService))
298
+ ], NotebookEditorStatusContribution));
299
+ registerWorkbenchContribution2(NotebookEditorStatusContribution.ID, NotebookEditorStatusContribution, WorkbenchPhase.AfterRestored);
@@ -0,0 +1,13 @@
1
+ import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
2
+ import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
3
+ import { INotebookExecutionStateService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
4
+ import { IUserActivityService } from "vscode/vscode/vs/workbench/services/userActivity/common/userActivityService.service";
5
+ export declare class ExecutionEditorProgressController extends Disposable implements INotebookEditorContribution {
6
+ private readonly _notebookEditor;
7
+ private readonly _notebookExecutionStateService;
8
+ private readonly _userActivity;
9
+ static id: string;
10
+ private readonly _activityMutex;
11
+ constructor(_notebookEditor: INotebookEditor, _notebookExecutionStateService: INotebookExecutionStateService, _userActivity: IUserActivityService);
12
+ private _update;
13
+ }
@@ -1,7 +1,8 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { throttle } from 'vscode/vscode/vs/base/common/decorators';
3
4
  import { Disposable, MutableDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
4
- import { registerNotebookContribution } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
5
+ import { registerNotebookContribution } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
5
6
  import { NotebookCellExecutionState } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
6
7
  import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
7
8
  import { IUserActivityService } from 'vscode/vscode/vs/workbench/services/userActivity/common/userActivityService.service';
@@ -1,4 +1,4 @@
1
- import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css.js';
1
+ import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css';
2
2
 
3
3
  var css = ".monaco-workbench .notebookOverlay.notebook-editor.find-hide-transition,.monaco-workbench .notebookOverlay.notebook-editor.find-show-transition{overflow-y:hidden}.monaco-workbench .notebookOverlay.notebook-editor .simple-fr-find-part-wrapper .matchesCount{box-sizing:border-box;overflow:hidden;padding:0 2px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.monaco-workbench .nb-findScope{background-color:var(--vscode-editor-findRangeHighlightBackground)}";
4
4
  n(css,{});
@@ -1,18 +1,22 @@
1
+
1
2
  import './media/notebookFind.css.js';
3
+ import { KeyCode, KeyMod } from 'vscode/vscode/vs/base/common/keyCodes';
2
4
  import { Schemas } from 'vscode/vscode/vs/base/common/network';
3
5
  import { isEqual } from 'vscode/vscode/vs/base/common/resources';
4
6
  import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
7
+ import { EditorOption } from 'vscode/vscode/vs/editor/common/config/editorOptions';
5
8
  import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
6
- import { getSelectionSearchString, StartFindAction, StartFindReplaceAction } from 'vscode/vscode/vs/editor/contrib/find/browser/findController';
9
+ import { getSelectionSearchString, StartFindAction, FindStartFocusAction, StartFindReplaceAction } from 'vscode/vscode/vs/editor/contrib/find/browser/findController';
7
10
  import { localize2 } from 'vscode/vscode/vs/nls';
8
11
  import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
9
12
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
10
- import { NotebookFindContrib } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget';
11
- import { NotebookMultiCellAction } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
12
- import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
13
- import { registerNotebookContribution } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
13
+ import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
14
+ import { NotebookFindContrib } from '@codingame/monaco-vscode-1ae7d696-d960-5ac6-97a3-9fe7c8c3a793-common/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget';
15
+ import { NotebookMultiCellAction } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
16
+ import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
17
+ import { registerNotebookContribution } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
14
18
  import { NotebookFindScopeType, CellUri } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
15
- import { NOTEBOOK_EDITOR_FOCUSED, KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED, NOTEBOOK_IS_ACTIVE_EDITOR, INTERACTIVE_WINDOW_IS_ACTIVE_EDITOR } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
19
+ import { NOTEBOOK_EDITOR_FOCUSED, KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED, NOTEBOOK_IS_ACTIVE_EDITOR, INTERACTIVE_WINDOW_IS_ACTIVE_EDITOR } from '@codingame/monaco-vscode-4a36e358-d94d-55e0-86ee-3bcd543d9d3f-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
16
20
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
17
21
 
18
22
  registerNotebookContribution(NotebookFindContrib.id, NotebookFindContrib);
@@ -20,11 +24,11 @@ registerAction2(class extends Action2 {
20
24
  constructor() {
21
25
  super({
22
26
  id: 'notebook.hideFind',
23
- title: ( localize2(8117, 'Hide Find in Notebook')),
27
+ title: ( localize2(7330, 'Hide Find in Notebook')),
24
28
  keybinding: {
25
- when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED))),
26
- primary: 9 ,
27
- weight: 200
29
+ when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED)),
30
+ primary: KeyCode.Escape,
31
+ weight: KeybindingWeight.WorkbenchContrib
28
32
  }
29
33
  });
30
34
  }
@@ -43,15 +47,11 @@ registerAction2(class extends NotebookMultiCellAction {
43
47
  constructor() {
44
48
  super({
45
49
  id: 'notebook.find',
46
- title: ( localize2(8118, 'Find in Notebook')),
50
+ title: ( localize2(7331, 'Find in Notebook')),
47
51
  keybinding: {
48
- when: ( (ContextKeyExpr.and(
49
- NOTEBOOK_EDITOR_FOCUSED,
50
- (ContextKeyExpr.or(NOTEBOOK_IS_ACTIVE_EDITOR, INTERACTIVE_WINDOW_IS_ACTIVE_EDITOR)),
51
- (EditorContextKeys.focus.toNegated())
52
- ))),
53
- primary: 36 | 2048 ,
54
- weight: 200
52
+ when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( ContextKeyExpr.or(NOTEBOOK_IS_ACTIVE_EDITOR, INTERACTIVE_WINDOW_IS_ACTIVE_EDITOR)), ( EditorContextKeys.focus.toNegated()))),
53
+ primary: KeyCode.KeyF | KeyMod.CtrlCmd,
54
+ weight: KeybindingWeight.WorkbenchContrib
55
55
  }
56
56
  });
57
57
  }
@@ -115,13 +115,13 @@ StartFindAction.addImplementation(100, (accessor, codeEditor, args) => {
115
115
  const controller = editor.getContribution(NotebookFindContrib.id);
116
116
  const searchStringOptions = getSearchStringOptions(codeEditor, {
117
117
  forceRevealReplace: false,
118
- seedSearchStringFromSelection: codeEditor.getOption(43 ).seedSearchStringFromSelection !== 'never' ? 'single' : 'none',
119
- seedSearchStringFromNonEmptySelection: codeEditor.getOption(43 ).seedSearchStringFromSelection === 'selection',
120
- seedSearchStringFromGlobalClipboard: codeEditor.getOption(43 ).globalFindClipboard,
121
- shouldFocus: 1 ,
118
+ seedSearchStringFromSelection: codeEditor.getOption(EditorOption.find).seedSearchStringFromSelection !== 'never' ? 'single' : 'none',
119
+ seedSearchStringFromNonEmptySelection: codeEditor.getOption(EditorOption.find).seedSearchStringFromSelection === 'selection',
120
+ seedSearchStringFromGlobalClipboard: codeEditor.getOption(EditorOption.find).globalFindClipboard,
121
+ shouldFocus: FindStartFocusAction.FocusFindInput,
122
122
  shouldAnimate: true,
123
123
  updateSearchScope: false,
124
- loop: codeEditor.getOption(43 ).loop
124
+ loop: codeEditor.getOption(EditorOption.find).loop
125
125
  });
126
126
  let options = undefined;
127
127
  const uri = codeEditor.getModel().uri;
@@ -149,13 +149,13 @@ StartFindReplaceAction.addImplementation(100, (accessor, codeEditor, args) => {
149
149
  const controller = editor.getContribution(NotebookFindContrib.id);
150
150
  const searchStringOptions = getSearchStringOptions(codeEditor, {
151
151
  forceRevealReplace: false,
152
- seedSearchStringFromSelection: codeEditor.getOption(43 ).seedSearchStringFromSelection !== 'never' ? 'single' : 'none',
153
- seedSearchStringFromNonEmptySelection: codeEditor.getOption(43 ).seedSearchStringFromSelection === 'selection',
154
- seedSearchStringFromGlobalClipboard: codeEditor.getOption(43 ).globalFindClipboard,
155
- shouldFocus: 1 ,
152
+ seedSearchStringFromSelection: codeEditor.getOption(EditorOption.find).seedSearchStringFromSelection !== 'never' ? 'single' : 'none',
153
+ seedSearchStringFromNonEmptySelection: codeEditor.getOption(EditorOption.find).seedSearchStringFromSelection === 'selection',
154
+ seedSearchStringFromGlobalClipboard: codeEditor.getOption(EditorOption.find).globalFindClipboard,
155
+ shouldFocus: FindStartFocusAction.FocusFindInput,
156
156
  shouldAnimate: true,
157
157
  updateSearchScope: false,
158
- loop: codeEditor.getOption(43 ).loop
158
+ loop: codeEditor.getOption(EditorOption.find).loop
159
159
  });
160
160
  if (controller) {
161
161
  controller.replace(searchStringOptions?.searchString);
@@ -0,0 +1,10 @@
1
+ import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
2
+ import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
3
+ import { INotebookExecutionService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService.service";
4
+ import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
5
+ export declare class CellExecutionParticipantsContribution extends Disposable implements IWorkbenchContribution {
6
+ private readonly instantiationService;
7
+ private readonly notebookExecutionService;
8
+ constructor(instantiationService: IInstantiationService, notebookExecutionService: INotebookExecutionService);
9
+ private registerKernelExecutionParticipants;
10
+ }
@@ -1,6 +1,8 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { localize2, localize } from 'vscode/vscode/vs/nls';
3
4
  import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
5
+ import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
4
6
  import { DisposableStore, Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
5
7
  import { registerEditorAction, EditorAction } from 'vscode/vscode/vs/editor/browser/editorExtensions';
6
8
  import { IBulkEditService, ResourceTextEdit } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
@@ -8,18 +10,20 @@ import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextK
8
10
  import { IEditorWorkerService } from 'vscode/vscode/vs/editor/common/services/editorWorker';
9
11
  import { ILanguageFeaturesService } from 'vscode/vscode/vs/editor/common/services/languageFeatures';
10
12
  import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
11
- import { getDocumentFormattingEditsWithSelectedProvider, formatDocumentWithSelectedProvider } from 'vscode/vscode/vs/editor/contrib/format/browser/format';
13
+ import { getDocumentFormattingEditsWithSelectedProvider, FormattingMode, formatDocumentWithSelectedProvider } from 'vscode/vscode/vs/editor/contrib/format/browser/format';
12
14
  import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
13
15
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
14
16
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
17
+ import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
15
18
  import { Progress } from 'vscode/vscode/vs/platform/progress/common/progress';
16
- import { NOTEBOOK_ACTIONS_CATEGORY } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
17
- import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
18
- import { NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EDITABLE } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
19
+ import { NOTEBOOK_ACTIONS_CATEGORY } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
20
+ import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
21
+ import { NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EDITABLE } from '@codingame/monaco-vscode-4a36e358-d94d-55e0-86ee-3bcd543d9d3f-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
19
22
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
20
23
  import { INotebookExecutionService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService.service';
21
24
  import { NotebookSetting } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
22
25
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
26
+ import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
23
27
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
24
28
  import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
25
29
  import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
@@ -29,22 +33,22 @@ registerAction2(class extends Action2 {
29
33
  constructor() {
30
34
  super({
31
35
  id: 'notebook.format',
32
- title: ( localize2(8119, 'Format Notebook')),
36
+ title: ( localize2(7352, 'Format Notebook')),
33
37
  category: NOTEBOOK_ACTIONS_CATEGORY,
34
- precondition: ( (ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EDITABLE))),
38
+ precondition: ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EDITABLE)),
35
39
  keybinding: {
36
- when: ( (EditorContextKeys.editorTextFocus.toNegated())),
37
- primary: 1024 | 512 | 36 ,
38
- linux: { primary: 2048 | 1024 | 39 },
39
- weight: 200
40
+ when: ( EditorContextKeys.editorTextFocus.toNegated()),
41
+ primary: KeyMod.Shift | KeyMod.Alt | KeyCode.KeyF,
42
+ linux: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyI },
43
+ weight: KeybindingWeight.WorkbenchContrib
40
44
  },
41
45
  f1: true,
42
46
  menu: {
43
47
  id: MenuId.EditorContext,
44
- when: ( (ContextKeyExpr.and(
48
+ when: ( ContextKeyExpr.and(
45
49
  EditorContextKeys.inCompositeEditor,
46
50
  EditorContextKeys.hasDocumentFormattingProvider
47
- ))),
51
+ )),
48
52
  group: '1_modification',
49
53
  order: 1.3
50
54
  }
@@ -63,24 +67,24 @@ registerAction2(class extends Action2 {
63
67
  }
64
68
  const notebook = editor.textModel;
65
69
  const formatApplied = await instantiationService.invokeFunction(CodeActionParticipantUtils.checkAndRunFormatCodeAction, notebook, Progress.None, CancellationToken.None);
66
- const disposable = ( (new DisposableStore()));
70
+ const disposable = ( new DisposableStore());
67
71
  try {
68
72
  if (!formatApplied) {
69
- const allCellEdits = await Promise.all(( (notebook.cells.map(async (cell) => {
73
+ const allCellEdits = await Promise.all(( notebook.cells.map(async (cell) => {
70
74
  const ref = await textModelService.createModelReference(cell.uri);
71
75
  disposable.add(ref);
72
76
  const model = ref.object.textEditorModel;
73
- const formatEdits = await getDocumentFormattingEditsWithSelectedProvider(editorWorkerService, languageFeaturesService, model, 1 , CancellationToken.None);
77
+ const formatEdits = await getDocumentFormattingEditsWithSelectedProvider(editorWorkerService, languageFeaturesService, model, FormattingMode.Explicit, CancellationToken.None);
74
78
  const edits = [];
75
79
  if (formatEdits) {
76
80
  for (const edit of formatEdits) {
77
- edits.push(( (new ResourceTextEdit(model.uri, edit, model.getVersionId()))));
81
+ edits.push(( new ResourceTextEdit(model.uri, edit, model.getVersionId())));
78
82
  }
79
83
  return edits;
80
84
  }
81
85
  return [];
82
- }))));
83
- await bulkEditService.apply( allCellEdits.flat(), { label: ( localize(8120, "Format Notebook")), code: 'undoredo.formatNotebook', });
86
+ })));
87
+ await bulkEditService.apply( allCellEdits.flat(), { label: ( localize(7353, "Format Notebook")), code: 'undoredo.formatNotebook', });
84
88
  }
85
89
  }
86
90
  finally {
@@ -92,20 +96,19 @@ registerEditorAction(class FormatCellAction extends EditorAction {
92
96
  constructor() {
93
97
  super({
94
98
  id: 'notebook.formatCell',
95
- label: ( localize(8121, "Format Cell")),
96
- alias: 'Format Cell',
97
- precondition: ( (ContextKeyExpr.and(
99
+ label: ( localize2(7354, "Format Cell")),
100
+ precondition: ( ContextKeyExpr.and(
98
101
  NOTEBOOK_IS_ACTIVE_EDITOR,
99
102
  NOTEBOOK_EDITOR_EDITABLE,
100
103
  EditorContextKeys.inCompositeEditor,
101
104
  EditorContextKeys.writable,
102
105
  EditorContextKeys.hasDocumentFormattingProvider
103
- ))),
106
+ )),
104
107
  kbOpts: {
105
- kbExpr: ( (ContextKeyExpr.and(EditorContextKeys.editorTextFocus))),
106
- primary: 1024 | 512 | 36 ,
107
- linux: { primary: 2048 | 1024 | 39 },
108
- weight: 100
108
+ kbExpr: ( ContextKeyExpr.and(EditorContextKeys.editorTextFocus)),
109
+ primary: KeyMod.Shift | KeyMod.Alt | KeyCode.KeyF,
110
+ linux: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyI },
111
+ weight: KeybindingWeight.EditorContrib
109
112
  },
110
113
  contextMenuOpts: {
111
114
  group: '1_modification',
@@ -116,7 +119,7 @@ registerEditorAction(class FormatCellAction extends EditorAction {
116
119
  async run(accessor, editor) {
117
120
  if (editor.hasModel()) {
118
121
  const instaService = accessor.get(IInstantiationService);
119
- await instaService.invokeFunction(formatDocumentWithSelectedProvider, editor, 1 , Progress.None, CancellationToken.None, true);
122
+ await instaService.invokeFunction(formatDocumentWithSelectedProvider, editor, FormattingMode.Explicit, Progress.None, CancellationToken.None, true);
120
123
  }
121
124
  }
122
125
  });
@@ -134,9 +137,9 @@ let FormatOnCellExecutionParticipant = class FormatOnCellExecutionParticipant {
134
137
  if (!enabled) {
135
138
  return;
136
139
  }
137
- const disposable = ( (new DisposableStore()));
140
+ const disposable = ( new DisposableStore());
138
141
  try {
139
- const allCellEdits = await Promise.all(( (executions.map(async (cellExecution) => {
142
+ const allCellEdits = await Promise.all(( executions.map(async (cellExecution) => {
140
143
  const nbModel = this._notebookService.getNotebookTextModel(cellExecution.notebook);
141
144
  if (!nbModel) {
142
145
  return [];
@@ -154,31 +157,29 @@ let FormatOnCellExecutionParticipant = class FormatOnCellExecutionParticipant {
154
157
  const ref = await this.textModelService.createModelReference(activeCell.uri);
155
158
  disposable.add(ref);
156
159
  const model = ref.object.textEditorModel;
157
- const formatEdits = await getDocumentFormattingEditsWithSelectedProvider(this.editorWorkerService, this.languageFeaturesService, model, 2 , CancellationToken.None);
160
+ const formatEdits = await getDocumentFormattingEditsWithSelectedProvider(this.editorWorkerService, this.languageFeaturesService, model, FormattingMode.Silent, CancellationToken.None);
158
161
  const edits = [];
159
162
  if (formatEdits) {
160
- edits.push(...( (formatEdits.map(
161
- edit => ( (new ResourceTextEdit(model.uri, edit, model.getVersionId())))
162
- ))));
163
+ edits.push(...( formatEdits.map(edit => ( new ResourceTextEdit(model.uri, edit, model.getVersionId())))));
163
164
  return edits;
164
165
  }
165
166
  return [];
166
- }))));
167
- await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(8122, "Format Cells")), code: 'undoredo.notebooks.onWillExecuteFormat', });
167
+ })));
168
+ await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(7355, "Format Cells")), code: 'undoredo.notebooks.onWillExecuteFormat', });
168
169
  }
169
170
  finally {
170
171
  disposable.dispose();
171
172
  }
172
173
  }
173
174
  };
174
- FormatOnCellExecutionParticipant = ( (__decorate([
175
- ( (__param(0, IBulkEditService))),
176
- ( (__param(1, ILanguageFeaturesService))),
177
- ( (__param(2, ITextModelService))),
178
- ( (__param(3, IEditorWorkerService))),
179
- ( (__param(4, IConfigurationService))),
180
- ( (__param(5, INotebookService)))
181
- ], FormatOnCellExecutionParticipant)));
175
+ FormatOnCellExecutionParticipant = ( __decorate([
176
+ ( __param(0, IBulkEditService)),
177
+ ( __param(1, ILanguageFeaturesService)),
178
+ ( __param(2, ITextModelService)),
179
+ ( __param(3, IEditorWorkerService)),
180
+ ( __param(4, IConfigurationService)),
181
+ ( __param(5, INotebookService))
182
+ ], FormatOnCellExecutionParticipant));
182
183
  let CellExecutionParticipantsContribution = class CellExecutionParticipantsContribution extends Disposable {
183
184
  constructor(instantiationService, notebookExecutionService) {
184
185
  super();
@@ -190,11 +191,11 @@ let CellExecutionParticipantsContribution = class CellExecutionParticipantsContr
190
191
  this._register(this.notebookExecutionService.registerExecutionParticipant(this.instantiationService.createInstance(FormatOnCellExecutionParticipant)));
191
192
  }
192
193
  };
193
- CellExecutionParticipantsContribution = ( (__decorate([
194
- ( (__param(0, IInstantiationService))),
195
- ( (__param(1, INotebookExecutionService)))
196
- ], CellExecutionParticipantsContribution)));
197
- const workbenchContributionsRegistry = ( (Registry.as(Extensions.Workbench)));
198
- workbenchContributionsRegistry.registerWorkbenchContribution(CellExecutionParticipantsContribution, 3 );
194
+ CellExecutionParticipantsContribution = ( __decorate([
195
+ ( __param(0, IInstantiationService)),
196
+ ( __param(1, INotebookExecutionService))
197
+ ], CellExecutionParticipantsContribution));
198
+ const workbenchContributionsRegistry = ( Registry.as(Extensions.Workbench));
199
+ workbenchContributionsRegistry.registerWorkbenchContribution(CellExecutionParticipantsContribution, LifecyclePhase.Restored);
199
200
 
200
201
  export { CellExecutionParticipantsContribution };
@@ -0,0 +1,10 @@
1
+ import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
2
+ import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
3
+ import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
4
+ import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
5
+ import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
6
+ import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
7
+ import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
8
+ export declare class NotebookGettingStarted extends Disposable implements IWorkbenchContribution {
9
+ constructor(_editorService: IEditorService, _storageService: IStorageService, _contextKeyService: IContextKeyService, _commandService: ICommandService, _configurationService: IConfigurationService);
10
+ }