@codingame/monaco-vscode-notebook-service-override 22.1.8 → 23.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 (99) hide show
  1. package/index.js +2 -1
  2. package/package.json +25 -23
  3. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +7 -7
  4. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +24 -24
  5. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.d.ts +1 -1
  6. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +8 -6
  7. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.d.ts +1 -1
  8. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +2 -2
  9. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.d.ts +1 -1
  10. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +1 -1
  11. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +4 -4
  12. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts +1 -1
  13. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +7 -7
  14. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +1 -1
  15. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.d.ts +1 -1
  16. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +1 -1
  17. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +1 -1
  18. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +11 -11
  19. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.d.ts +1 -1
  20. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +104 -13
  21. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +5 -5
  22. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +2 -2
  23. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +1 -1
  24. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +1 -1
  25. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.d.ts +1 -1
  26. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +7 -7
  27. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +21 -29
  28. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.d.ts +1 -1
  29. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +1 -1
  30. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +2 -2
  31. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +9 -10
  32. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +3 -3
  33. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +2 -2
  34. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +2 -2
  35. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +11 -11
  36. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +1 -1
  37. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.d.ts +1 -1
  38. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +14 -14
  39. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.d.ts +1 -1
  40. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +4 -4
  41. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +1 -1
  42. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +2 -2
  43. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +17 -387
  44. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.d.ts +1 -1
  45. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +16 -14
  46. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.d.ts +2 -0
  47. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +7 -0
  48. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +28 -28
  49. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +26 -39
  50. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +26 -27
  51. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +18 -19
  52. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.d.ts +5 -5
  53. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +8 -8
  54. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.d.ts +1 -1
  55. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +14 -14
  56. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +1 -1
  57. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +21 -21
  58. package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +70 -70
  59. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +10 -10
  60. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +1 -1
  61. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
  62. package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.d.ts +1 -1
  63. package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js +6 -6
  64. package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +1 -1
  65. package/vscode/src/vs/workbench/contrib/notebook/browser/replEditorAccessibleView.d.ts +15 -0
  66. package/vscode/src/vs/workbench/contrib/notebook/browser/replEditorAccessibleView.js +49 -0
  67. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +3 -1
  68. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +11 -1
  69. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +1 -1
  70. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +1 -1
  71. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +3 -3
  72. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.d.ts +1 -0
  73. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +4 -1
  74. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +3 -3
  75. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +3 -3
  76. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.d.ts +1 -1
  77. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSource.d.ts +2 -2
  78. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSource.js +1 -1
  79. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSourceFactory.d.ts +1 -1
  80. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.d.ts +1 -1
  81. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +1 -1
  82. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +3 -2
  83. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +28 -31
  84. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +1 -1
  85. package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +1 -1
  86. package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.js +5 -10
  87. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWebWorker.d.ts +1 -1
  88. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWebWorker.js +2 -1
  89. package/vscode/src/vs/workbench/contrib/replNotebook/browser/repl.contribution.d.ts +15 -0
  90. package/vscode/src/vs/workbench/contrib/replNotebook/browser/repl.contribution.js +405 -0
  91. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorAccessibilityHelp.d.ts +17 -0
  92. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorAccessibilityHelp.js +120 -0
  93. package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.d.ts +1 -1
  94. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.d.ts +2 -2
  95. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +15 -15
  96. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.d.ts +1 -1
  97. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +3 -3
  98. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.d.ts +2 -2
  99. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +2 -2
@@ -11,7 +11,7 @@ import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monac
11
11
  import { CENTER_ACTIVE_CELL } from '../navigation/arrow.js';
12
12
  import { SELECT_KERNEL_ID } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
13
13
  import { SELECT_NOTEBOOK_INDENTATION_ID } from '../../controller/editActions.js';
14
- import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
14
+ import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
15
15
  import { NotebookCellsChangeType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
16
16
  import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
17
17
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
@@ -112,19 +112,19 @@ let KernelStatus = class KernelStatus extends Disposable {
112
112
  }
113
113
  const tooltip = kernel.description ?? kernel.detail ?? kernel.label;
114
114
  this._kernelInfoElement.add(this._statusbarService.addEntry({
115
- name: ( localize(8821, "Notebook Kernel Info")),
115
+ name: ( localize(9080, "Notebook Kernel Info")),
116
116
  text: `$(notebook-kernel-select) ${kernel.label}`,
117
117
  ariaLabel: kernel.label,
118
- tooltip: isSuggested ? ( localize(8822, "{0} (suggestion)", tooltip)) : tooltip,
118
+ tooltip: isSuggested ? ( localize(9081, "{0} (suggestion)", tooltip)) : tooltip,
119
119
  command: SELECT_KERNEL_ID,
120
120
  }, SELECT_KERNEL_ID, StatusbarAlignment.RIGHT, 10));
121
121
  this._kernelInfoElement.add(kernel.onDidChange(() => this._showKernelStatus(notebook)));
122
122
  }
123
123
  else {
124
124
  this._kernelInfoElement.add(this._statusbarService.addEntry({
125
- name: ( localize(8823, "Notebook Kernel Selection")),
126
- text: ( localize(8824, "Select Kernel")),
127
- ariaLabel: ( localize(8824, "Select Kernel")),
125
+ name: ( localize(9082, "Notebook Kernel Selection")),
126
+ text: ( localize(9083, "Select Kernel")),
127
+ ariaLabel: ( localize(9083, "Select Kernel")),
128
128
  command: SELECT_KERNEL_ID,
129
129
  kind: 'prominent'
130
130
  }, SELECT_KERNEL_ID, StatusbarAlignment.RIGHT, 10));
@@ -170,7 +170,7 @@ let ActiveCellStatus = class ActiveCellStatus extends Disposable {
170
170
  return;
171
171
  }
172
172
  const entry = {
173
- name: ( localize(8825, "Notebook Editor Selections")),
173
+ name: ( localize(9084, "Notebook Editor Selections")),
174
174
  text: newText,
175
175
  ariaLabel: newText,
176
176
  command: CENTER_ACTIVE_CELL
@@ -194,8 +194,8 @@ let ActiveCellStatus = class ActiveCellStatus extends Disposable {
194
194
  const numSelected = editor.getSelections().reduce((prev, range) => prev + (range.end - range.start), 0);
195
195
  const totalCells = editor.getLength();
196
196
  return numSelected > 1 ?
197
- ( localize(8826, "Cell {0} ({1} selected)", idxFocused, numSelected)) :
198
- ( localize(8827, "Cell {0} of {1}", idxFocused, totalCells));
197
+ ( localize(9085, "Cell {0} ({1} selected)", idxFocused, numSelected)) :
198
+ ( localize(9086, "Cell {0} of {1}", idxFocused, totalCells));
199
199
  }
200
200
  };
201
201
  ActiveCellStatus = ( __decorate([
@@ -255,10 +255,10 @@ let NotebookIndentationStatus = class NotebookIndentationStatus extends Disposab
255
255
  return;
256
256
  }
257
257
  const entry = {
258
- name: ( localize(8828, "Notebook Indentation")),
258
+ name: ( localize(9087, "Notebook Indentation")),
259
259
  text: newText,
260
260
  ariaLabel: newText,
261
- tooltip: ( localize(8829, "Select Indentation")),
261
+ tooltip: ( localize(9088, "Select Indentation")),
262
262
  command: SELECT_NOTEBOOK_INDENTATION_ID
263
263
  };
264
264
  if (!this._accessor.value) {
@@ -1,5 +1,5 @@
1
1
  import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
- import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
2
+ import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
3
3
  import { INotebookExecutionStateService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
4
4
  import { IUserActivityService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/userActivity/common/userActivityService.service";
5
5
  export declare class ExecutionEditorProgressController extends Disposable implements INotebookEditorContribution {
@@ -7,18 +7,19 @@ import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/reso
7
7
  import { ICodeEditorService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService.service';
8
8
  import { EditorOption } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/config/editorOptions';
9
9
  import { EditorContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorContextKeys';
10
- import { getSelectionSearchString, StartFindAction, StartFindReplaceAction } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/find/browser/findController';
10
+ import { getSelectionSearchString, StartFindAction, StartFindReplaceAction, NextMatchFindAction, PreviousMatchFindAction } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/find/browser/findController';
11
11
  import { localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
12
12
  import { registerAction2, Action2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
13
13
  import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
14
14
  import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
15
- import { NotebookFindContrib } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget';
15
+ import { NotebookFindContrib } from '@codingame/monaco-vscode-fc28fb90-97de-5e74-89a9-4cfe44128227-common/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget';
16
16
  import { NotebookMultiCellAction } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
17
- import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
17
+ import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
18
18
  import { registerNotebookContribution } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
19
19
  import { NotebookFindScopeType, CellUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
20
- import { NOTEBOOK_EDITOR_FOCUSED, KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED, NOTEBOOK_IS_ACTIVE_EDITOR, INTERACTIVE_WINDOW_IS_ACTIVE_EDITOR } from '@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
20
+ import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_IS_ACTIVE_EDITOR, INTERACTIVE_WINDOW_IS_ACTIVE_EDITOR } from '@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
21
21
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
22
+ import { CONTEXT_FIND_WIDGET_VISIBLE } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/find/browser/findModel';
22
23
 
23
24
  registerCss(notebookFind);
24
25
  registerNotebookContribution(NotebookFindContrib.id, NotebookFindContrib);
@@ -26,11 +27,11 @@ registerAction2(class extends Action2 {
26
27
  constructor() {
27
28
  super({
28
29
  id: 'notebook.hideFind',
29
- title: ( localize2(8830, 'Hide Find in Notebook')),
30
+ title: ( localize2(9089, 'Hide Find in Notebook')),
30
31
  keybinding: {
31
- when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED)),
32
+ when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, CONTEXT_FIND_WIDGET_VISIBLE)),
32
33
  primary: KeyCode.Escape,
33
- weight: KeybindingWeight.WorkbenchContrib
34
+ weight: KeybindingWeight.EditorContrib + 5
34
35
  }
35
36
  });
36
37
  }
@@ -49,7 +50,7 @@ registerAction2(class extends NotebookMultiCellAction {
49
50
  constructor() {
50
51
  super({
51
52
  id: 'notebook.find',
52
- title: ( localize2(8831, 'Find in Notebook')),
53
+ title: ( localize2(9090, 'Find in Notebook')),
53
54
  keybinding: {
54
55
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( ContextKeyExpr.or(NOTEBOOK_IS_ACTIVE_EDITOR, INTERACTIVE_WINDOW_IS_ACTIVE_EDITOR)), ( EditorContextKeys.focus.toNegated()))),
55
56
  primary: KeyCode.KeyF | KeyMod.CtrlCmd,
@@ -97,9 +98,7 @@ function getSearchStringOptions(editor, opts) {
97
98
  }
98
99
  return undefined;
99
100
  }
100
- StartFindAction.addImplementation(100, (accessor, codeEditor, args) => {
101
- const editorService = accessor.get(IEditorService);
102
- const editor = getNotebookEditorFromEditorPane(editorService.activeEditorPane);
101
+ function isNotebookEditorValidForSearch(accessor, editor, codeEditor) {
103
102
  if (!editor) {
104
103
  return false;
105
104
  }
@@ -109,12 +108,22 @@ StartFindAction.addImplementation(100, (accessor, codeEditor, args) => {
109
108
  if (!editor.hasEditorFocus() && !editor.hasWebviewFocus()) {
110
109
  const codeEditorService = accessor.get(ICodeEditorService);
111
110
  const textEditor = codeEditorService.getFocusedCodeEditor() || codeEditorService.getActiveCodeEditor();
112
- if (editor.hasModel() && textEditor && textEditor.hasModel() && notebookContainsTextModel(editor.textModel.uri, textEditor.getModel())) ;
111
+ if (editor.hasModel() && textEditor && textEditor.hasModel() && notebookContainsTextModel(editor.textModel.uri, textEditor.getModel())) {
112
+ return true;
113
+ }
113
114
  else {
114
115
  return false;
115
116
  }
116
117
  }
117
- const controller = editor.getContribution(NotebookFindContrib.id);
118
+ return true;
119
+ }
120
+ function openFindWidget(controller, editor, codeEditor, focusWidget = true) {
121
+ if (!editor || !codeEditor || !controller) {
122
+ return false;
123
+ }
124
+ if (!codeEditor.hasModel()) {
125
+ return false;
126
+ }
118
127
  const searchStringOptions = getSearchStringOptions(codeEditor, {
119
128
  seedSearchStringFromSelection: codeEditor.getOption(EditorOption.find).seedSearchStringFromSelection !== 'never' ? 'single' : 'none',
120
129
  seedSearchStringFromNonEmptySelection: codeEditor.getOption(EditorOption.find).seedSearchStringFromSelection === 'selection',
@@ -130,11 +139,53 @@ StartFindAction.addImplementation(100, (accessor, codeEditor, args) => {
130
139
  if (cell) {
131
140
  options = {
132
141
  searchStringSeededFrom: { cell, range: searchStringOptions.selection },
142
+ focus: focusWidget
133
143
  };
134
144
  }
135
145
  }
146
+ else {
147
+ options = { focus: focusWidget };
148
+ }
136
149
  controller.show(searchStringOptions?.searchString, options);
137
150
  return true;
151
+ }
152
+ function findWidgetAction(accessor, codeEditor, next) {
153
+ const editorService = accessor.get(IEditorService);
154
+ const editor = getNotebookEditorFromEditorPane(editorService.activeEditorPane);
155
+ if (!isNotebookEditorValidForSearch(accessor, editor, codeEditor)) {
156
+ return false;
157
+ }
158
+ const controller = editor?.getContribution(NotebookFindContrib.id);
159
+ if (!controller) {
160
+ return false;
161
+ }
162
+ if (controller.isVisible()) {
163
+ next ? controller.findNext() : controller.findPrevious();
164
+ return true;
165
+ }
166
+ else {
167
+ return openFindWidget(controller, editor, codeEditor, false);
168
+ }
169
+ }
170
+ async function runFind(accessor, next) {
171
+ const editorService = accessor.get(IEditorService);
172
+ const editor = getNotebookEditorFromEditorPane(editorService.activeEditorPane);
173
+ if (!editor) {
174
+ return;
175
+ }
176
+ const controller = editor.getContribution(NotebookFindContrib.id);
177
+ if (controller && controller.isVisible()) {
178
+ next ? controller.findNext() : controller.findPrevious();
179
+ }
180
+ }
181
+ StartFindAction.addImplementation(100, (accessor, codeEditor, args) => {
182
+ const editorService = accessor.get(IEditorService);
183
+ const editor = getNotebookEditorFromEditorPane(editorService.activeEditorPane);
184
+ if (!isNotebookEditorValidForSearch(accessor, editor, codeEditor)) {
185
+ return false;
186
+ }
187
+ const controller = editor?.getContribution(NotebookFindContrib.id);
188
+ return openFindWidget(controller, editor, codeEditor, true);
138
189
  });
139
190
  StartFindReplaceAction.addImplementation(100, (accessor, codeEditor, args) => {
140
191
  const editorService = accessor.get(IEditorService);
@@ -159,3 +210,43 @@ StartFindReplaceAction.addImplementation(100, (accessor, codeEditor, args) => {
159
210
  }
160
211
  return false;
161
212
  });
213
+ NextMatchFindAction.addImplementation(100, (accessor, codeEditor, args) => {
214
+ return findWidgetAction(accessor, codeEditor, true);
215
+ });
216
+ PreviousMatchFindAction.addImplementation(100, (accessor, codeEditor, args) => {
217
+ return findWidgetAction(accessor, codeEditor, false);
218
+ });
219
+ registerAction2(class extends Action2 {
220
+ constructor() {
221
+ super({
222
+ id: 'notebook.findNext.fromWidget',
223
+ title: ( localize2(9091, 'Find Next')),
224
+ keybinding: {
225
+ when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, CONTEXT_FIND_WIDGET_VISIBLE)),
226
+ primary: KeyCode.F3,
227
+ mac: { primary: KeyMod.CtrlCmd | KeyCode.KeyG, secondary: [KeyCode.F3] },
228
+ weight: KeybindingWeight.WorkbenchContrib + 1
229
+ }
230
+ });
231
+ }
232
+ async run(accessor) {
233
+ return runFind(accessor, true);
234
+ }
235
+ });
236
+ registerAction2(class extends Action2 {
237
+ constructor() {
238
+ super({
239
+ id: 'notebook.findPrevious.fromWidget',
240
+ title: ( localize2(9092, 'Find Previous')),
241
+ keybinding: {
242
+ when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, CONTEXT_FIND_WIDGET_VISIBLE)),
243
+ primary: KeyMod.Shift | KeyCode.F3,
244
+ mac: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyG, secondary: [KeyMod.Shift | KeyCode.F3] },
245
+ weight: KeybindingWeight.WorkbenchContrib + 1
246
+ }
247
+ });
248
+ }
249
+ async run(accessor) {
250
+ return runFind(accessor, false);
251
+ }
252
+ });
@@ -18,7 +18,7 @@ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
18
18
  import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
19
19
  import { Progress } from '@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress';
20
20
  import { NOTEBOOK_ACTIONS_CATEGORY } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
21
- import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
21
+ import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
22
22
  import { NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EDITABLE } from '@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
23
23
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
24
24
  import { INotebookExecutionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService.service';
@@ -34,7 +34,7 @@ registerAction2(class extends Action2 {
34
34
  constructor() {
35
35
  super({
36
36
  id: 'notebook.format',
37
- title: ( localize2(8852, 'Format Notebook')),
37
+ title: ( localize2(9113, 'Format Notebook')),
38
38
  category: NOTEBOOK_ACTIONS_CATEGORY,
39
39
  precondition: ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EDITABLE)),
40
40
  keybinding: {
@@ -85,7 +85,7 @@ registerAction2(class extends Action2 {
85
85
  }
86
86
  return [];
87
87
  })));
88
- await bulkEditService.apply( allCellEdits.flat(), { label: ( localize(8853, "Format Notebook")), code: 'undoredo.formatNotebook', });
88
+ await bulkEditService.apply( allCellEdits.flat(), { label: ( localize(9114, "Format Notebook")), code: 'undoredo.formatNotebook', });
89
89
  }
90
90
  }
91
91
  finally {
@@ -97,7 +97,7 @@ registerEditorAction(class FormatCellAction extends EditorAction {
97
97
  constructor() {
98
98
  super({
99
99
  id: 'notebook.formatCell',
100
- label: ( localize2(8854, "Format Cell")),
100
+ label: ( localize2(9115, "Format Cell")),
101
101
  precondition: ( ContextKeyExpr.and(
102
102
  NOTEBOOK_IS_ACTIVE_EDITOR,
103
103
  NOTEBOOK_EDITOR_EDITABLE,
@@ -166,7 +166,7 @@ let FormatOnCellExecutionParticipant = class FormatOnCellExecutionParticipant {
166
166
  }
167
167
  return [];
168
168
  })));
169
- await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(8855, "Format Cells")), code: 'undoredo.notebooks.onWillExecuteFormat', });
169
+ await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(9116, "Format Cells")), code: 'undoredo.notebooks.onWillExecuteFormat', });
170
170
  }
171
171
  finally {
172
172
  disposable.dispose();
@@ -15,7 +15,7 @@ import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/com
15
15
  import { Memento } from '@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/common/memento';
16
16
  import { NotebookSetting } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
17
17
  import { HAS_OPENED_NOTEBOOK } from '@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
18
- import { NotebookEditorInput } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
18
+ import { NotebookEditorInput } from '@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
19
19
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
20
20
  import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
21
21
 
@@ -66,7 +66,7 @@ registerAction2(class NotebookClearNotebookLayoutAction extends Action2 {
66
66
  constructor() {
67
67
  super({
68
68
  id: 'workbench.notebook.layout.gettingStarted',
69
- title: ( localize2(8856, "Reset notebook getting started")),
69
+ title: ( localize2(9117, "Reset notebook getting started")),
70
70
  f1: true,
71
71
  precondition: ( ContextKeyExpr.equals(`config.${NotebookSetting.openGettingStarted}`, true)),
72
72
  category: Categories.Developer,
@@ -10,7 +10,7 @@ class ToggleCellToolbarPositionAction extends Action2 {
10
10
  constructor() {
11
11
  super({
12
12
  id: TOGGLE_CELL_TOOLBAR_POSITION,
13
- title: ( localize2(8857, 'Toggle Cell Toolbar Position')),
13
+ title: ( localize2(9118, 'Toggle Cell Toolbar Position')),
14
14
  menu: [{
15
15
  id: MenuId.NotebookCellTitle,
16
16
  group: 'View',
@@ -8,7 +8,7 @@ import { MarkerSeverity } from '@codingame/monaco-vscode-api/vscode/vs/platform/
8
8
  import { IMarkerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/markers/common/markers.service';
9
9
  import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
10
10
  import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
11
- import { NotebookOverviewRulerLane } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
11
+ import { NotebookOverviewRulerLane } from '@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
12
12
  import { registerNotebookContribution } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
13
13
  import { throttle } from '@codingame/monaco-vscode-api/vscode/vs/base/common/decorators';
14
14
  import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
@@ -7,7 +7,7 @@ import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
7
7
  import { RawContextKey } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey";
8
8
  import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
9
9
  import { IUndoRedoService } from "@codingame/monaco-vscode-api/vscode/vs/platform/undoRedo/common/undoRedo.service";
10
- import { CellFindMatchWithIndex, ICellViewModel, INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
10
+ import { CellFindMatchWithIndex, ICellViewModel, INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
11
11
  export declare enum NotebookMultiCursorState {
12
12
  Idle = 0,
13
13
  Selecting = 1,
@@ -34,10 +34,10 @@ import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monac
34
34
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
35
35
  import { NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_CELL_EDITOR_FOCUSED, KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED } from '@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
36
36
  import { NotebookAction } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
37
- import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
37
+ import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
38
38
  import { registerNotebookContribution } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
39
39
  import { CellEditorOptions } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions';
40
- import { NotebookFindContrib } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget';
40
+ import { NotebookFindContrib } from '@codingame/monaco-vscode-fc28fb90-97de-5e74-89a9-4cfe44128227-common/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget';
41
41
  import { NotebookCellTextModel } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel';
42
42
 
43
43
  const NOTEBOOK_ADD_FIND_MATCH_TO_SELECTION_ID = 'notebook.addFindMatchToSelection';
@@ -783,7 +783,7 @@ class NotebookSelectAllFindMatches extends NotebookAction {
783
783
  constructor() {
784
784
  super({
785
785
  id: NOTEBOOK_SELECT_ALL_FIND_MATCHES_ID,
786
- title: ( localize(8858, "Select All Occurrences of Find Match")),
786
+ title: ( localize(9119, "Select All Occurrences of Find Match")),
787
787
  precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)))),
788
788
  keybinding: {
789
789
  when: ( ContextKeyExpr.or(( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_CELL_EDITOR_FOCUSED)), ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED)))),
@@ -816,7 +816,7 @@ class NotebookAddMatchToMultiSelectionAction extends NotebookAction {
816
816
  constructor() {
817
817
  super({
818
818
  id: NOTEBOOK_ADD_FIND_MATCH_TO_SELECTION_ID,
819
- title: ( localize(8859, "Add Selection to Next Find Match")),
819
+ title: ( localize(9120, "Add Selection to Next Find Match")),
820
820
  precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_CELL_EDITOR_FOCUSED)),
821
821
  keybinding: {
822
822
  when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_CELL_EDITOR_FOCUSED)),
@@ -842,7 +842,7 @@ class NotebookExitMultiSelectionAction extends NotebookAction {
842
842
  constructor() {
843
843
  super({
844
844
  id: 'noteMultiCursor.exit',
845
- title: ( localize(8860, "Exit Multi Cursor Mode")),
845
+ title: ( localize(9121, "Exit Multi Cursor Mode")),
846
846
  precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor)),
847
847
  keybinding: {
848
848
  when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor)),
@@ -865,7 +865,7 @@ class NotebookDeleteLeftMultiSelectionAction extends NotebookAction {
865
865
  constructor() {
866
866
  super({
867
867
  id: 'noteMultiCursor.deleteLeft',
868
- title: ( localize(8861, "Delete Left")),
868
+ title: ( localize(9122, "Delete Left")),
869
869
  precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor, ( ContextKeyExpr.or(( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Selecting)), ( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Editing)))))),
870
870
  keybinding: {
871
871
  when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor, ( ContextKeyExpr.or(( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Selecting)), ( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Editing)))))),
@@ -888,7 +888,7 @@ class NotebookDeleteRightMultiSelectionAction extends NotebookAction {
888
888
  constructor() {
889
889
  super({
890
890
  id: 'noteMultiCursor.deleteRight',
891
- title: ( localize(8862, "Delete Right")),
891
+ title: ( localize(9123, "Delete Right")),
892
892
  precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor, ( ContextKeyExpr.or(( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Selecting)), ( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Editing)))))),
893
893
  keybinding: {
894
894
  when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor, ( ContextKeyExpr.or(( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Selecting)), ( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Editing)))))),
@@ -3,7 +3,7 @@ import { timeout } from '@codingame/monaco-vscode-api/vscode/vs/base/common/asyn
3
3
  import { KeyCode, KeyMod } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
4
4
  import { EditorExtensionsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorExtensions';
5
5
  import { EditorContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorContextKeys';
6
- import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
6
+ import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
7
7
  import { CONTEXT_ACCESSIBILITY_MODE_ENABLED } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility';
8
8
  import { registerAction2, Action2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
9
9
  import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
@@ -12,11 +12,10 @@ import { InputFocusedContextKey, IsWindowsContext } from '@codingame/monaco-vsco
12
12
  import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
13
13
  import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
14
14
  import { InlineChatController } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
15
- import { CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext';
16
15
  import { NotebookCellAction, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, findTargetCellEditor, NotebookAction } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
17
- import { CellEditState } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
16
+ import { CellEditState } from '@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
18
17
  import { NOTEBOOK_EDITOR_CURSOR_BOUNDARY, NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY, CellKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
19
- import { NOTEBOOK_OUTPUT_INPUT_FOCUSED, NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_CELL_TYPE, NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, NOTEBOOK_CURSOR_NAVIGATION_MODE, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_CELL_EDITOR_FOCUSED, NOTEBOOK_CELL_HAS_OUTPUTS, IS_COMPOSITE_NOTEBOOK } from '@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
18
+ import { NOTEBOOK_OUTPUT_INPUT_FOCUSED, NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_CELL_TYPE, NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, NOTEBOOK_CURSOR_NAVIGATION_MODE, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_CELL_EDITOR_FOCUSED, NOTEBOOK_OR_COMPOSITE_IS_ACTIVE_EDITOR, IS_COMPOSITE_NOTEBOOK, NOTEBOOK_CELL_HAS_OUTPUTS } from '@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
20
19
 
21
20
  const NOTEBOOK_FOCUS_TOP = 'notebook.focusTop';
22
21
  const NOTEBOOK_FOCUS_BOTTOM = 'notebook.focusBottom';
@@ -34,7 +33,7 @@ registerAction2(class extends Action2 {
34
33
  super({
35
34
  id: 'notebook.cell.nullAction',
36
35
  title: ( localize(
37
- 8863,
36
+ 9124,
38
37
  "Keypresses that should be handled by the focused element in the cell output."
39
38
  )),
40
39
  keybinding: [{
@@ -57,7 +56,7 @@ registerAction2(class FocusNextCellAction extends NotebookCellAction {
57
56
  constructor() {
58
57
  super({
59
58
  id: NOTEBOOK_FOCUS_NEXT_EDITOR,
60
- title: ( localize(8864, 'Focus Next Cell Editor')),
59
+ title: ( localize(9125, 'Focus Next Cell Editor')),
61
60
  keybinding: [
62
61
  {
63
62
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()), ( ContextKeyExpr.equals('config.notebook.navigation.allowNavigateToSurroundingCells', true)), ( ContextKeyExpr.and(( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus, ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo('top')), ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo('none')), ( ContextKeyExpr.or(( NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY.isEqualTo('end')), ( NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY.isEqualTo('both')))))), ( EditorContextKeys.isEmbeddedDiffEditor.negate()))),
@@ -111,7 +110,7 @@ registerAction2(class FocusPreviousCellAction extends NotebookCellAction {
111
110
  constructor() {
112
111
  super({
113
112
  id: NOTEBOOK_FOCUS_PREVIOUS_EDITOR,
114
- title: ( localize(8865, 'Focus Previous Cell Editor')),
113
+ title: ( localize(9126, 'Focus Previous Cell Editor')),
115
114
  keybinding: [
116
115
  {
117
116
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()), ( ContextKeyExpr.equals('config.notebook.navigation.allowNavigateToSurroundingCells', true)), ( ContextKeyExpr.and(( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus, ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo('bottom')), ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo('none')), ( ContextKeyExpr.or(( NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY.isEqualTo('start')), ( NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY.isEqualTo('both')))))), ( EditorContextKeys.isEmbeddedDiffEditor.negate()))),
@@ -156,7 +155,7 @@ registerAction2(class extends NotebookAction {
156
155
  constructor() {
157
156
  super({
158
157
  id: NOTEBOOK_FOCUS_TOP,
159
- title: ( localize(8866, 'Focus First Cell')),
158
+ title: ( localize(9127, 'Focus First Cell')),
160
159
  keybinding: [
161
160
  {
162
161
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
@@ -164,11 +163,7 @@ registerAction2(class extends NotebookAction {
164
163
  weight: KeybindingWeight.WorkbenchContrib
165
164
  },
166
165
  {
167
- when: ( ContextKeyExpr.and(
168
- NOTEBOOK_EDITOR_FOCUSED,
169
- ContextKeyExpr.not(InputFocusedContextKey),
170
- ( CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION.isEqualTo(''))
171
- )),
166
+ when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
172
167
  mac: { primary: KeyMod.CtrlCmd | KeyCode.UpArrow },
173
168
  weight: KeybindingWeight.WorkbenchContrib
174
169
  }
@@ -188,7 +183,7 @@ registerAction2(class extends NotebookAction {
188
183
  constructor() {
189
184
  super({
190
185
  id: NOTEBOOK_FOCUS_BOTTOM,
191
- title: ( localize(8867, 'Focus Last Cell')),
186
+ title: ( localize(9128, 'Focus Last Cell')),
192
187
  keybinding: [
193
188
  {
194
189
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
@@ -197,11 +192,7 @@ registerAction2(class extends NotebookAction {
197
192
  weight: KeybindingWeight.WorkbenchContrib
198
193
  },
199
194
  {
200
- when: ( ContextKeyExpr.and(
201
- NOTEBOOK_EDITOR_FOCUSED,
202
- ContextKeyExpr.not(InputFocusedContextKey),
203
- ( CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION.isEqualTo(''))
204
- )),
195
+ when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
205
196
  mac: { primary: KeyMod.CtrlCmd | KeyCode.DownArrow },
206
197
  weight: KeybindingWeight.WorkbenchContrib
207
198
  }
@@ -225,9 +216,10 @@ registerAction2(class extends NotebookCellAction {
225
216
  constructor() {
226
217
  super({
227
218
  id: FOCUS_IN_OUTPUT_COMMAND_ID,
228
- title: ( localize(8868, 'Focus In Active Cell Output')),
219
+ title: ( localize2(9129, 'Focus In Active Cell Output')),
220
+ f1: true,
229
221
  keybinding: [{
230
- when: ( ContextKeyExpr.and(( IS_COMPOSITE_NOTEBOOK.negate()), IsWindowsContext)),
222
+ when: ( ContextKeyExpr.and(( IS_COMPOSITE_NOTEBOOK.negate()), IsWindowsContext, NOTEBOOK_CELL_HAS_OUTPUTS)),
231
223
  primary: KeyMod.CtrlCmd | KeyCode.DownArrow,
232
224
  weight: KeybindingWeight.WorkbenchContrib
233
225
  }, {
@@ -235,7 +227,7 @@ registerAction2(class extends NotebookCellAction {
235
227
  mac: { primary: KeyMod.WinCtrl | KeyMod.CtrlCmd | KeyCode.DownArrow, },
236
228
  weight: KeybindingWeight.WorkbenchContrib
237
229
  }],
238
- precondition: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_CELL_HAS_OUTPUTS))
230
+ precondition: NOTEBOOK_OR_COMPOSITE_IS_ACTIVE_EDITOR
239
231
  });
240
232
  }
241
233
  async runWithContext(accessor, context) {
@@ -248,7 +240,7 @@ registerAction2(class extends NotebookCellAction {
248
240
  constructor() {
249
241
  super({
250
242
  id: FOCUS_OUT_OUTPUT_COMMAND_ID,
251
- title: ( localize(8869, 'Focus Out Active Cell Output')),
243
+ title: ( localize(9130, 'Focus Out Active Cell Output')),
252
244
  keybinding: {
253
245
  primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.UpArrow,
254
246
  mac: { primary: KeyMod.WinCtrl | KeyMod.CtrlCmd | KeyCode.UpArrow, },
@@ -267,7 +259,7 @@ registerAction2(class CenterActiveCellAction extends NotebookCellAction {
267
259
  constructor() {
268
260
  super({
269
261
  id: CENTER_ACTIVE_CELL,
270
- title: ( localize(8870, "Center Active Cell")),
262
+ title: ( localize(9131, "Center Active Cell")),
271
263
  keybinding: {
272
264
  when: NOTEBOOK_EDITOR_FOCUSED,
273
265
  primary: KeyMod.CtrlCmd | KeyCode.KeyL,
@@ -286,7 +278,7 @@ registerAction2(class extends NotebookCellAction {
286
278
  constructor() {
287
279
  super({
288
280
  id: NOTEBOOK_CURSOR_PAGEUP_COMMAND_ID,
289
- title: ( localize(8871, "Cell Cursor Page Up")),
281
+ title: ( localize(9132, "Cell Cursor Page Up")),
290
282
  keybinding: [
291
283
  {
292
284
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus)),
@@ -304,7 +296,7 @@ registerAction2(class extends NotebookCellAction {
304
296
  constructor() {
305
297
  super({
306
298
  id: NOTEBOOK_CURSOR_PAGEUP_SELECT_COMMAND_ID,
307
- title: ( localize(8872, "Cell Cursor Page Up Select")),
299
+ title: ( localize(9133, "Cell Cursor Page Up Select")),
308
300
  keybinding: [
309
301
  {
310
302
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus, ( NOTEBOOK_OUTPUT_FOCUSED.negate()))),
@@ -322,7 +314,7 @@ registerAction2(class extends NotebookCellAction {
322
314
  constructor() {
323
315
  super({
324
316
  id: NOTEBOOK_CURSOR_PAGEDOWN_COMMAND_ID,
325
- title: ( localize(8873, "Cell Cursor Page Down")),
317
+ title: ( localize(9134, "Cell Cursor Page Down")),
326
318
  keybinding: [
327
319
  {
328
320
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus)),
@@ -340,7 +332,7 @@ registerAction2(class extends NotebookCellAction {
340
332
  constructor() {
341
333
  super({
342
334
  id: NOTEBOOK_CURSOR_PAGEDOWN_SELECT_COMMAND_ID,
343
- title: ( localize(8874, "Cell Cursor Page Down Select")),
335
+ title: ( localize(9135, "Cell Cursor Page Down Select")),
344
336
  keybinding: [
345
337
  {
346
338
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus, ( NOTEBOOK_OUTPUT_FOCUSED.negate()))),
@@ -369,7 +361,7 @@ function getPageSize(context) {
369
361
  type: 'boolean',
370
362
  default: true,
371
363
  markdownDescription: ( localize(
372
- 8875,
364
+ 9136,
373
365
  "When enabled cursor can navigate to the next/previous cell when the current cursor in the cell editor is at the first/last line."
374
366
  ))
375
367
  }
@@ -4,7 +4,7 @@ import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
4
4
  import { IDebugService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service";
5
5
  import { INotebookExecutionStateService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
6
6
  import { INotebookKernelService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service";
7
- import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
7
+ import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
8
8
  export declare class NotebookInlineVariablesController extends Disposable implements INotebookEditorContribution {
9
9
  private readonly notebookEditor;
10
10
  private readonly notebookKernelService;
@@ -507,7 +507,7 @@ registerAction2(class ClearNotebookInlineValues extends NotebookAction {
507
507
  constructor() {
508
508
  super({
509
509
  id: 'notebook.clearAllInlineValues',
510
- title: ( localize(8876, 'Clear All Inline Values')),
510
+ title: ( localize(9137, 'Clear All Inline Values')),
511
511
  });
512
512
  }
513
513
  runWithContext(accessor, context) {