@codingame/monaco-vscode-notebook-service-override 9.0.3 → 10.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 (60) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +16 -19
  3. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +62 -63
  4. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +4 -6
  5. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +5 -5
  6. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +8 -9
  7. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +35 -37
  8. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +1 -2
  9. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +1 -2
  10. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +2 -2
  11. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +16 -17
  12. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +17 -20
  13. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +15 -18
  14. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +4 -6
  15. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +1 -2
  16. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +1 -1
  17. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +2 -2
  18. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +319 -67
  19. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +64 -61
  20. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +2 -2
  21. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +1 -1
  22. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +10 -9
  23. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +48 -24
  24. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +35 -37
  25. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +1 -1
  26. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +45 -31
  27. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +4 -5
  28. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +2 -2
  29. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +2 -2
  30. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +124 -71
  31. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +179 -7
  32. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +52 -55
  33. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +30 -32
  34. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +28 -30
  35. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +17 -18
  36. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +7 -7
  37. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +20 -22
  38. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +126 -46
  39. package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +171 -83
  40. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +19 -19
  41. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +5 -6
  42. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
  43. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +4 -5
  44. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +1 -1
  45. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +6 -6
  46. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +7 -8
  47. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +3 -5
  48. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +6 -9
  49. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +1 -1
  50. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +13 -21
  51. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +90 -39
  52. package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +3 -5
  53. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +40 -31
  54. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +7 -7
  55. package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +10 -11
  56. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +29 -55
  57. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +15 -17
  58. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +12 -14
  59. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +2 -4
  60. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +0 -33
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-notebook-service-override",
3
- "version": "9.0.3",
3
+ "version": "10.0.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -29,7 +29,7 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "vscode": "npm:@codingame/monaco-vscode-api@9.0.3",
32
+ "vscode": "npm:@codingame/monaco-vscode-api@10.0.0",
33
33
  "marked": "~14.0.0"
34
34
  }
35
35
  }
@@ -2,7 +2,6 @@ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import './emptyTextEditorHint.css.js';
3
3
  import { $ as $$1, getActiveWindow, addDisposableListener, EventType } from 'vscode/vscode/vs/base/browser/dom';
4
4
  import { dispose, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
5
- import { ContentWidgetPositionPreference } from 'vscode/vscode/vs/editor/browser/editorBrowser';
6
5
  import { localize } from 'vscode/vscode/vs/nls';
7
6
  import { ChangeLanguageAction } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorStatus';
8
7
  import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
@@ -10,8 +9,7 @@ import { PLAINTEXT_LANGUAGE_ID } from 'vscode/vscode/vs/editor/common/languages/
10
9
  import { Schemas } from 'vscode/vscode/vs/base/common/network';
11
10
  import { Event } from 'vscode/vscode/vs/base/common/event';
12
11
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
13
- import { EditorOption } from 'vscode/vscode/vs/editor/common/config/editorOptions';
14
- import { registerEditorContribution, EditorContributionInstantiation } from 'vscode/vscode/vs/editor/browser/editorExtensions';
12
+ import { registerEditorContribution } from 'vscode/vscode/vs/editor/browser/editorExtensions';
15
13
  import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
16
14
  import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
17
15
  import { renderFormattedText } from 'vscode/vscode/vs/base/browser/formattedTextRenderer';
@@ -22,7 +20,6 @@ import { IProductService } from 'vscode/vscode/vs/platform/product/common/produc
22
20
  import { KeybindingLabel } from 'vscode/vscode/vs/base/browser/ui/keybindingLabel/keybindingLabel';
23
21
  import { OS } from 'vscode/vscode/vs/base/common/platform';
24
22
  import { status } from 'vscode/vscode/vs/base/browser/ui/aria/aria';
25
- import { AccessibilityVerbositySettingId } from 'vscode/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
26
23
  import { OUTPUT_MODE_ID, LOG_MODE_ID } from 'vscode/vscode/vs/workbench/services/output/common/output';
27
24
  import { SEARCH_RESULT_LANGUAGE_ID } from 'vscode/vscode/vs/workbench/services/search/common/search';
28
25
  import { getDefaultHoverDelegate } from 'vscode/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
@@ -55,7 +52,7 @@ let EmptyTextEditorHintContribution = class EmptyTextEditorHintContribution {
55
52
  this.toDispose.push(this.chatAgentService.onDidChangeAgents(() => this.update()));
56
53
  this.toDispose.push(this.editor.onDidChangeModelDecorations(() => this.update()));
57
54
  this.toDispose.push(this.editor.onDidChangeConfiguration((e) => {
58
- if (e.hasChanged(EditorOption.readOnly)) {
55
+ if (e.hasChanged(94 )) {
59
56
  this.update();
60
57
  }
61
58
  }));
@@ -83,7 +80,7 @@ let EmptyTextEditorHintContribution = class EmptyTextEditorHintContribution {
83
80
  if (configValue === 'hidden') {
84
81
  return false;
85
82
  }
86
- if (this.editor.getOption(EditorOption.readOnly)) {
83
+ if (this.editor.getOption(94 )) {
87
84
  return false;
88
85
  }
89
86
  const model = this.editor.getModel();
@@ -165,13 +162,13 @@ class EmptyTextEditorHintContentWidget {
165
162
  this.ariaLabel = '';
166
163
  this.toDispose = ( (new DisposableStore()));
167
164
  this.toDispose.add(this.editor.onDidChangeConfiguration((e) => {
168
- if (this.domNode && e.hasChanged(EditorOption.fontInfo)) {
165
+ if (this.domNode && e.hasChanged(52 )) {
169
166
  this.editor.applyFontInfo(this.domNode);
170
167
  }
171
168
  }));
172
169
  const onDidFocusEditorText = Event.debounce(this.editor.onDidFocusEditorText, () => undefined, 500);
173
170
  this.toDispose.add(onDidFocusEditorText(() => {
174
- if (this.editor.hasTextFocus() && this.isVisible && this.ariaLabel && this.configurationService.getValue(AccessibilityVerbositySettingId.EmptyEditorHint)) {
171
+ if (this.editor.hasTextFocus() && this.isVisible && this.ariaLabel && this.configurationService.getValue("accessibility.verbosity.emptyEditorHint" )) {
175
172
  status(this.ariaLabel);
176
173
  }
177
174
  }));
@@ -197,8 +194,8 @@ class EmptyTextEditorHintContentWidget {
197
194
  getActions: () => {
198
195
  return [{
199
196
  id: 'workench.action.disableEmptyEditorHint',
200
- label: ( localize(10768, "Disable Empty Editor Hint")),
201
- tooltip: ( localize(10768, "Disable Empty Editor Hint")),
197
+ label: ( localize(10857, "Disable Empty Editor Hint")),
198
+ tooltip: ( localize(10857, "Disable Empty Editor Hint")),
202
199
  enabled: true,
203
200
  class: undefined,
204
201
  run: () => {
@@ -236,7 +233,7 @@ class EmptyTextEditorHintContentWidget {
236
233
  const keybindingHintLabel = keybindingHint?.getLabel();
237
234
  if (keybindingHint && keybindingHintLabel) {
238
235
  const actionPart = ( localize(
239
- 10769,
236
+ 10858,
240
237
  'Press {0} to ask {1} to do something. ',
241
238
  keybindingHintLabel,
242
239
  providerName
@@ -267,7 +264,7 @@ class EmptyTextEditorHintContentWidget {
267
264
  this.toDispose.add(addDisposableListener(label.element, EventType.CLICK, handleClick));
268
265
  }
269
266
  hintElement.appendChild(after);
270
- const typeToDismiss = ( localize(10770, 'Start typing to dismiss.'));
267
+ const typeToDismiss = ( localize(10859, 'Start typing to dismiss.'));
271
268
  const textHint2 = $('span', undefined, typeToDismiss);
272
269
  textHint2.style.fontStyle = 'italic';
273
270
  hintElement.appendChild(textHint2);
@@ -275,7 +272,7 @@ class EmptyTextEditorHintContentWidget {
275
272
  }
276
273
  else {
277
274
  const hintMsg = ( localize(
278
- 10771,
275
+ 10860,
279
276
  '[[Ask {0} to do something]] or start typing to dismiss.',
280
277
  providerName
281
278
  ));
@@ -335,7 +332,7 @@ class EmptyTextEditorHintContentWidget {
335
332
  }
336
333
  };
337
334
  const hintMsg = ( localize(
338
- 10772,
335
+ 10861,
339
336
  '[[Select a language]], or [[fill with template]], or [[open a different editor]] to get started.\nStart typing to dismiss or [[don\'t show]] this again.'
340
337
  ));
341
338
  const hintElement = renderFormattedText(hintMsg, {
@@ -346,7 +343,7 @@ class EmptyTextEditorHintContentWidget {
346
343
  const keybindingsLookup = [ChangeLanguageAction.ID, ApplyFileSnippetAction.Id, 'welcome.showNewFileEntries'];
347
344
  const keybindingLabels = ( (keybindingsLookup.map((id) => this.keybindingService.lookupKeybinding(id)?.getLabel() ?? id)));
348
345
  const ariaLabel = ( localize(
349
- 10773,
346
+ 10862,
350
347
  'Execute {0} to select a language, execute {1} to fill with template, or execute {2} to open a different editor and get started. Start typing to dismiss.',
351
348
  ...keybindingLabels
352
349
  ));
@@ -367,9 +364,9 @@ class EmptyTextEditorHintContentWidget {
367
364
  const { hintElement, ariaLabel } = !inlineChatProviders.length ? this._getHintDefault() : this._getHintInlineChat(inlineChatProviders);
368
365
  this.domNode.append(hintElement);
369
366
  this.ariaLabel = ariaLabel.concat(( localize(
370
- 10774,
367
+ 10863,
371
368
  ' Toggle {0} in settings to disable this hint.',
372
- AccessibilityVerbositySettingId.EmptyEditorHint
369
+ "accessibility.verbosity.emptyEditorHint"
373
370
  )));
374
371
  this.toDispose.add(addDisposableListener(this.domNode, 'click', () => {
375
372
  this.editor.focus();
@@ -381,7 +378,7 @@ class EmptyTextEditorHintContentWidget {
381
378
  getPosition() {
382
379
  return {
383
380
  position: { lineNumber: 1, column: 1 },
384
- preference: [ContentWidgetPositionPreference.EXACT]
381
+ preference: [0 ]
385
382
  };
386
383
  }
387
384
  dispose() {
@@ -389,6 +386,6 @@ class EmptyTextEditorHintContentWidget {
389
386
  dispose(this.toDispose);
390
387
  }
391
388
  }
392
- registerEditorContribution(EmptyTextEditorHintContribution.ID, EmptyTextEditorHintContribution, EditorContributionInstantiation.Eager);
389
+ registerEditorContribution(EmptyTextEditorHintContribution.ID, EmptyTextEditorHintContribution, 0 );
393
390
 
394
391
  export { EmptyTextEditorHintContribution, emptyTextEditorHintSetting };
@@ -1,18 +1,17 @@
1
- import { KeyMod, KeyCode, KeyChord } from 'vscode/vscode/vs/base/common/keyCodes';
1
+ import { KeyChord } from 'vscode/vscode/vs/base/common/keyCodes';
2
2
  import { Mimes } from 'vscode/vscode/vs/base/common/mime';
3
3
  import { IBulkEditService, ResourceTextEdit } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
4
4
  import { localize2, localize } from 'vscode/vscode/vs/nls';
5
5
  import { registerAction2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
6
6
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
7
7
  import { InputFocusedContext, InputFocusedContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
8
- import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
9
8
  import { ResourceNotebookCellEdit } from 'vscode/vscode/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits';
10
9
  import { moveCellRange, copyCellRange, computeCellLinesContents, joinCellsWithSurrounds, joinSelectedCells, changeCellToKind } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
11
- import { NotebookCellAction, CellOverflowToolbarGroups, CellToolbarOrder, CELL_TITLE_CELL_GROUP_ID, NotebookMultiCellAction, parseMultiCellExecutionArgs, cellExecutionArgs } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
10
+ import { NotebookCellAction, CELL_TITLE_CELL_GROUP_ID, NotebookMultiCellAction, parseMultiCellExecutionArgs, cellExecutionArgs } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
12
11
  import { CellFocusMode, EXPAND_CELL_INPUT_COMMAND_ID, EXPAND_CELL_OUTPUT_COMMAND_ID } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
13
12
  import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE, NOTEBOOK_CELL_INPUT_COLLAPSED, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_CELL_TYPE, NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_OUTPUT_COLLAPSED, NOTEBOOK_CELL_HAS_OUTPUTS } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
14
13
  import { moveUpIcon, moveDownIcon, splitCellIcon } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
15
- import { CellEditType, CellKind, NotebookSetting } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
14
+ import { CellKind, NotebookSetting } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
16
15
  import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
17
16
  import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
18
17
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
@@ -25,17 +24,17 @@ registerAction2(class extends NotebookCellAction {
25
24
  constructor() {
26
25
  super({
27
26
  id: MOVE_CELL_UP_COMMAND_ID,
28
- title: ( localize2(8026, "Move Cell Up")),
27
+ title: ( localize2(8086, "Move Cell Up")),
29
28
  icon: moveUpIcon,
30
29
  keybinding: {
31
- primary: KeyMod.Alt | KeyCode.UpArrow,
30
+ primary: 512 | 16 ,
32
31
  when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, (InputFocusedContext.toNegated())))),
33
- weight: KeybindingWeight.WorkbenchContrib
32
+ weight: 200
34
33
  },
35
34
  menu: {
36
35
  id: MenuId.NotebookCellTitle,
37
36
  when: ( (ContextKeyExpr.equals('config.notebook.dragAndDropEnabled', false))),
38
- group: CellOverflowToolbarGroups.Edit,
37
+ group: "3_edit" ,
39
38
  order: 14
40
39
  }
41
40
  });
@@ -48,17 +47,17 @@ registerAction2(class extends NotebookCellAction {
48
47
  constructor() {
49
48
  super({
50
49
  id: MOVE_CELL_DOWN_COMMAND_ID,
51
- title: ( localize2(8027, "Move Cell Down")),
50
+ title: ( localize2(8087, "Move Cell Down")),
52
51
  icon: moveDownIcon,
53
52
  keybinding: {
54
- primary: KeyMod.Alt | KeyCode.DownArrow,
53
+ primary: 512 | 18 ,
55
54
  when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, (InputFocusedContext.toNegated())))),
56
- weight: KeybindingWeight.WorkbenchContrib
55
+ weight: 200
57
56
  },
58
57
  menu: {
59
58
  id: MenuId.NotebookCellTitle,
60
59
  when: ( (ContextKeyExpr.equals('config.notebook.dragAndDropEnabled', false))),
61
- group: CellOverflowToolbarGroups.Edit,
60
+ group: "3_edit" ,
62
61
  order: 14
63
62
  }
64
63
  });
@@ -71,11 +70,11 @@ registerAction2(class extends NotebookCellAction {
71
70
  constructor() {
72
71
  super({
73
72
  id: COPY_CELL_UP_COMMAND_ID,
74
- title: ( localize2(8028, "Copy Cell Up")),
73
+ title: ( localize2(8088, "Copy Cell Up")),
75
74
  keybinding: {
76
- primary: KeyMod.Alt | KeyMod.Shift | KeyCode.UpArrow,
75
+ primary: 512 | 1024 | 16 ,
77
76
  when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, (InputFocusedContext.toNegated())))),
78
- weight: KeybindingWeight.WorkbenchContrib
77
+ weight: 200
79
78
  }
80
79
  });
81
80
  }
@@ -87,16 +86,16 @@ registerAction2(class extends NotebookCellAction {
87
86
  constructor() {
88
87
  super({
89
88
  id: COPY_CELL_DOWN_COMMAND_ID,
90
- title: ( localize2(8029, "Copy Cell Down")),
89
+ title: ( localize2(8089, "Copy Cell Down")),
91
90
  keybinding: {
92
- primary: KeyMod.Alt | KeyMod.Shift | KeyCode.DownArrow,
91
+ primary: 512 | 1024 | 18 ,
93
92
  when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, (InputFocusedContext.toNegated())))),
94
- weight: KeybindingWeight.WorkbenchContrib
93
+ weight: 200
95
94
  },
96
95
  menu: {
97
96
  id: MenuId.NotebookCellTitle,
98
97
  when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE))),
99
- group: CellOverflowToolbarGroups.Edit,
98
+ group: "3_edit" ,
100
99
  order: 13
101
100
  }
102
101
  });
@@ -113,7 +112,7 @@ registerAction2(class extends NotebookCellAction {
113
112
  constructor() {
114
113
  super({
115
114
  id: SPLIT_CELL_COMMAND_ID,
116
- title: ( localize2(8030, "Split Cell")),
115
+ title: ( localize2(8090, "Split Cell")),
117
116
  menu: {
118
117
  id: MenuId.NotebookCellTitle,
119
118
  when: ( (ContextKeyExpr.and(
@@ -121,7 +120,7 @@ registerAction2(class extends NotebookCellAction {
121
120
  NOTEBOOK_CELL_EDITABLE,
122
121
  (NOTEBOOK_CELL_INPUT_COLLAPSED.toNegated())
123
122
  ))),
124
- order: CellToolbarOrder.SplitCell,
123
+ order: 4 ,
125
124
  group: CELL_TITLE_CELL_GROUP_ID
126
125
  },
127
126
  icon: splitCellIcon,
@@ -132,8 +131,8 @@ registerAction2(class extends NotebookCellAction {
132
131
  NOTEBOOK_CELL_EDITABLE,
133
132
  EditorContextKeys.editorTextFocus
134
133
  ))),
135
- primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Backslash),
136
- weight: KeybindingWeight.WorkbenchContrib
134
+ primary: KeyChord(2048 | 41 , 2048 | 1024 | 93 ),
135
+ weight: 200
137
136
  },
138
137
  });
139
138
  }
@@ -162,7 +161,7 @@ registerAction2(class extends NotebookCellAction {
162
161
  { range: textModel.getFullModelRange(), text: newLinesContents[0] }
163
162
  ))),
164
163
  ( (new ResourceNotebookCellEdit(context.notebookEditor.textModel.uri, {
165
- editType: CellEditType.Replace,
164
+ editType: 1 ,
166
165
  index: index + 1,
167
166
  count: 0,
168
167
  cells: ( (newLinesContents.slice(1).map(line => ({
@@ -183,16 +182,16 @@ registerAction2(class extends NotebookCellAction {
183
182
  constructor() {
184
183
  super({
185
184
  id: JOIN_CELL_ABOVE_COMMAND_ID,
186
- title: ( localize2(8031, "Join With Previous Cell")),
185
+ title: ( localize2(8091, "Join With Previous Cell")),
187
186
  keybinding: {
188
187
  when: NOTEBOOK_EDITOR_FOCUSED,
189
- primary: KeyMod.WinCtrl | KeyMod.Alt | KeyMod.Shift | KeyCode.KeyJ,
190
- weight: KeybindingWeight.WorkbenchContrib
188
+ primary: 256 | 512 | 1024 | 40 ,
189
+ weight: 200
191
190
  },
192
191
  menu: {
193
192
  id: MenuId.NotebookCellTitle,
194
193
  when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE))),
195
- group: CellOverflowToolbarGroups.Edit,
194
+ group: "3_edit" ,
196
195
  order: 10
197
196
  }
198
197
  });
@@ -206,16 +205,16 @@ registerAction2(class extends NotebookCellAction {
206
205
  constructor() {
207
206
  super({
208
207
  id: JOIN_CELL_BELOW_COMMAND_ID,
209
- title: ( localize2(8032, "Join With Next Cell")),
208
+ title: ( localize2(8092, "Join With Next Cell")),
210
209
  keybinding: {
211
210
  when: NOTEBOOK_EDITOR_FOCUSED,
212
- primary: KeyMod.WinCtrl | KeyMod.Alt | KeyCode.KeyJ,
213
- weight: KeybindingWeight.WorkbenchContrib
211
+ primary: 256 | 512 | 40 ,
212
+ weight: 200
214
213
  },
215
214
  menu: {
216
215
  id: MenuId.NotebookCellTitle,
217
216
  when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE))),
218
- group: CellOverflowToolbarGroups.Edit,
217
+ group: "3_edit" ,
219
218
  order: 11
220
219
  }
221
220
  });
@@ -229,11 +228,11 @@ registerAction2(class extends NotebookCellAction {
229
228
  constructor() {
230
229
  super({
231
230
  id: JOIN_SELECTED_CELLS_COMMAND_ID,
232
- title: ( localize2(8033, "Join Selected Cells")),
231
+ title: ( localize2(8093, "Join Selected Cells")),
233
232
  menu: {
234
233
  id: MenuId.NotebookCellTitle,
235
234
  when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE))),
236
- group: CellOverflowToolbarGroups.Edit,
235
+ group: "3_edit" ,
237
236
  order: 12
238
237
  }
239
238
  });
@@ -250,15 +249,15 @@ registerAction2(class ChangeCellToCodeAction extends NotebookMultiCellAction {
250
249
  constructor() {
251
250
  super({
252
251
  id: CHANGE_CELL_TO_CODE_COMMAND_ID,
253
- title: ( localize2(8034, "Change Cell to Code")),
252
+ title: ( localize2(8094, "Change Cell to Code")),
254
253
  keybinding: {
255
254
  when: ( (ContextKeyExpr.and(
256
255
  NOTEBOOK_EDITOR_FOCUSED,
257
256
  ContextKeyExpr.not(InputFocusedContextKey),
258
257
  (NOTEBOOK_OUTPUT_FOCUSED.toNegated())
259
258
  ))),
260
- primary: KeyCode.KeyY,
261
- weight: KeybindingWeight.WorkbenchContrib
259
+ primary: 55 ,
260
+ weight: 200
262
261
  },
263
262
  precondition: ( (ContextKeyExpr.and(
264
263
  NOTEBOOK_IS_ACTIVE_EDITOR,
@@ -272,7 +271,7 @@ registerAction2(class ChangeCellToCodeAction extends NotebookMultiCellAction {
272
271
  NOTEBOOK_CELL_EDITABLE,
273
272
  (NOTEBOOK_CELL_TYPE.isEqualTo('markup'))
274
273
  ))),
275
- group: CellOverflowToolbarGroups.Edit,
274
+ group: "3_edit" ,
276
275
  }
277
276
  });
278
277
  }
@@ -284,15 +283,15 @@ registerAction2(class ChangeCellToMarkdownAction extends NotebookMultiCellAction
284
283
  constructor() {
285
284
  super({
286
285
  id: CHANGE_CELL_TO_MARKDOWN_COMMAND_ID,
287
- title: ( localize2(8035, "Change Cell to Markdown")),
286
+ title: ( localize2(8095, "Change Cell to Markdown")),
288
287
  keybinding: {
289
288
  when: ( (ContextKeyExpr.and(
290
289
  NOTEBOOK_EDITOR_FOCUSED,
291
290
  ContextKeyExpr.not(InputFocusedContextKey),
292
291
  (NOTEBOOK_OUTPUT_FOCUSED.toNegated())
293
292
  ))),
294
- primary: KeyCode.KeyM,
295
- weight: KeybindingWeight.WorkbenchContrib
293
+ primary: 43 ,
294
+ weight: 200
296
295
  },
297
296
  precondition: ( (ContextKeyExpr.and(
298
297
  NOTEBOOK_IS_ACTIVE_EDITOR,
@@ -306,7 +305,7 @@ registerAction2(class ChangeCellToMarkdownAction extends NotebookMultiCellAction
306
305
  NOTEBOOK_CELL_EDITABLE,
307
306
  (NOTEBOOK_CELL_TYPE.isEqualTo('code'))
308
307
  ))),
309
- group: CellOverflowToolbarGroups.Edit,
308
+ group: "3_edit" ,
310
309
  }
311
310
  });
312
311
  }
@@ -326,15 +325,15 @@ registerAction2(class CollapseCellInputAction extends NotebookMultiCellAction {
326
325
  constructor() {
327
326
  super({
328
327
  id: COLLAPSE_CELL_INPUT_COMMAND_ID,
329
- title: ( localize2(8036, "Collapse Cell Input")),
328
+ title: ( localize2(8096, "Collapse Cell Input")),
330
329
  keybinding: {
331
330
  when: ( (ContextKeyExpr.and(
332
331
  NOTEBOOK_CELL_LIST_FOCUSED,
333
332
  (NOTEBOOK_CELL_INPUT_COLLAPSED.toNegated()),
334
333
  (InputFocusedContext.toNegated())
335
334
  ))),
336
- primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyCode.KeyC),
337
- weight: KeybindingWeight.WorkbenchContrib
335
+ primary: KeyChord(2048 | 41 , 2048 | 33 ),
336
+ weight: 200
338
337
  }
339
338
  });
340
339
  }
@@ -354,11 +353,11 @@ registerAction2(class ExpandCellInputAction extends NotebookMultiCellAction {
354
353
  constructor() {
355
354
  super({
356
355
  id: EXPAND_CELL_INPUT_COMMAND_ID,
357
- title: ( localize2(8037, "Expand Cell Input")),
356
+ title: ( localize2(8097, "Expand Cell Input")),
358
357
  keybinding: {
359
358
  when: ( (ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_INPUT_COLLAPSED))),
360
- primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyCode.KeyC),
361
- weight: KeybindingWeight.WorkbenchContrib
359
+ primary: KeyChord(2048 | 41 , 2048 | 33 ),
360
+ weight: 200
362
361
  }
363
362
  });
364
363
  }
@@ -378,7 +377,7 @@ registerAction2(class CollapseCellOutputAction extends NotebookMultiCellAction {
378
377
  constructor() {
379
378
  super({
380
379
  id: COLLAPSE_CELL_OUTPUT_COMMAND_ID,
381
- title: ( localize2(8038, "Collapse Cell Output")),
380
+ title: ( localize2(8098, "Collapse Cell Output")),
382
381
  keybinding: {
383
382
  when: ( (ContextKeyExpr.and(
384
383
  NOTEBOOK_CELL_LIST_FOCUSED,
@@ -386,8 +385,8 @@ registerAction2(class CollapseCellOutputAction extends NotebookMultiCellAction {
386
385
  (InputFocusedContext.toNegated()),
387
386
  NOTEBOOK_CELL_HAS_OUTPUTS
388
387
  ))),
389
- primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyT),
390
- weight: KeybindingWeight.WorkbenchContrib
388
+ primary: KeyChord(2048 | 41 , 50 ),
389
+ weight: 200
391
390
  }
392
391
  });
393
392
  }
@@ -404,11 +403,11 @@ registerAction2(class ExpandCellOuputAction extends NotebookMultiCellAction {
404
403
  constructor() {
405
404
  super({
406
405
  id: EXPAND_CELL_OUTPUT_COMMAND_ID,
407
- title: ( localize2(8039, "Expand Cell Output")),
406
+ title: ( localize2(8099, "Expand Cell Output")),
408
407
  keybinding: {
409
408
  when: ( (ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_OUTPUT_COLLAPSED))),
410
- primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyT),
411
- weight: KeybindingWeight.WorkbenchContrib
409
+ primary: KeyChord(2048 | 41 , 50 ),
410
+ weight: 200
412
411
  }
413
412
  });
414
413
  }
@@ -426,9 +425,9 @@ registerAction2(class extends NotebookMultiCellAction {
426
425
  super({
427
426
  id: TOGGLE_CELL_OUTPUTS_COMMAND_ID,
428
427
  precondition: NOTEBOOK_CELL_LIST_FOCUSED,
429
- title: ( localize2(8040, "Toggle Outputs")),
428
+ title: ( localize2(8100, "Toggle Outputs")),
430
429
  metadata: {
431
- description: ( localize(8040, "Toggle Outputs")),
430
+ description: ( localize(8100, "Toggle Outputs")),
432
431
  args: cellExecutionArgs
433
432
  }
434
433
  });
@@ -453,7 +452,7 @@ registerAction2(class CollapseAllCellInputsAction extends NotebookMultiCellActio
453
452
  constructor() {
454
453
  super({
455
454
  id: COLLAPSE_ALL_CELL_INPUTS_COMMAND_ID,
456
- title: ( localize2(8041, "Collapse All Cell Inputs")),
455
+ title: ( localize2(8101, "Collapse All Cell Inputs")),
457
456
  f1: true,
458
457
  });
459
458
  }
@@ -465,7 +464,7 @@ registerAction2(class ExpandAllCellInputsAction extends NotebookMultiCellAction
465
464
  constructor() {
466
465
  super({
467
466
  id: EXPAND_ALL_CELL_INPUTS_COMMAND_ID,
468
- title: ( localize2(8042, "Expand All Cell Inputs")),
467
+ title: ( localize2(8102, "Expand All Cell Inputs")),
469
468
  f1: true
470
469
  });
471
470
  }
@@ -477,7 +476,7 @@ registerAction2(class CollapseAllCellOutputsAction extends NotebookMultiCellActi
477
476
  constructor() {
478
477
  super({
479
478
  id: COLLAPSE_ALL_CELL_OUTPUTS_COMMAND_ID,
480
- title: ( localize2(8043, "Collapse All Cell Outputs")),
479
+ title: ( localize2(8103, "Collapse All Cell Outputs")),
481
480
  f1: true,
482
481
  });
483
482
  }
@@ -489,7 +488,7 @@ registerAction2(class ExpandAllCellOutputsAction extends NotebookMultiCellAction
489
488
  constructor() {
490
489
  super({
491
490
  id: EXPAND_ALL_CELL_OUTPUTS_COMMAND_ID,
492
- title: ( localize2(8044, "Expand All Cell Outputs")),
491
+ title: ( localize2(8104, "Expand All Cell Outputs")),
493
492
  f1: true
494
493
  });
495
494
  }
@@ -501,15 +500,15 @@ registerAction2(class ToggleCellOutputScrolling extends NotebookMultiCellAction
501
500
  constructor() {
502
501
  super({
503
502
  id: TOGGLE_CELL_OUTPUT_SCROLLING,
504
- title: ( localize2(8045, "Toggle Scroll Cell Output")),
503
+ title: ( localize2(8105, "Toggle Scroll Cell Output")),
505
504
  keybinding: {
506
505
  when: ( (ContextKeyExpr.and(
507
506
  NOTEBOOK_CELL_LIST_FOCUSED,
508
507
  (InputFocusedContext.toNegated()),
509
508
  NOTEBOOK_CELL_HAS_OUTPUTS
510
509
  ))),
511
- primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyY),
512
- weight: KeybindingWeight.WorkbenchContrib
510
+ primary: KeyChord(2048 | 41 , 55 ),
511
+ weight: 200
513
512
  }
514
513
  });
515
514
  }
@@ -1,11 +1,9 @@
1
- import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
2
1
  import { Range } from 'vscode/vscode/vs/editor/common/core/range';
3
2
  import { CodeActionController } from 'vscode/vscode/vs/editor/contrib/codeAction/browser/codeActionController';
4
3
  import { CodeActionTriggerSource, CodeActionKind } from 'vscode/vscode/vs/editor/contrib/codeAction/common/types';
5
4
  import { localize2, localize } from 'vscode/vscode/vs/nls';
6
5
  import { registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
7
6
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
8
- import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
9
7
  import { NotebookCellAction, findTargetCellEditor } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
10
8
  import { CodeCellViewModel } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
11
9
  import { NOTEBOOK_CELL_FOCUSED, NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS, NOTEBOOK_CELL_EDITOR_FOCUSED } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
@@ -15,7 +13,7 @@ registerAction2(class extends NotebookCellAction {
15
13
  constructor() {
16
14
  super({
17
15
  id: OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID,
18
- title: ( localize2(10776, "Show Cell Failure Actions")),
16
+ title: ( localize2(10864, "Show Cell Failure Actions")),
19
17
  precondition: ( (ContextKeyExpr.and(
20
18
  NOTEBOOK_CELL_FOCUSED,
21
19
  NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS,
@@ -28,8 +26,8 @@ registerAction2(class extends NotebookCellAction {
28
26
  NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS,
29
27
  (NOTEBOOK_CELL_EDITOR_FOCUSED.toNegated())
30
28
  ))),
31
- primary: KeyMod.CtrlCmd | KeyCode.Period,
32
- weight: KeybindingWeight.WorkbenchContrib
29
+ primary: 2048 | 89 ,
30
+ weight: 200
33
31
  }
34
32
  });
35
33
  }
@@ -47,7 +45,7 @@ registerAction2(class extends NotebookCellAction {
47
45
  const editor = findTargetCellEditor(context, context.cell);
48
46
  if (editor) {
49
47
  const controller = CodeActionController.get(editor);
50
- controller?.manualTriggerAtCurrentPosition(( localize(10777, "No code actions available")), CodeActionTriggerSource.Default, { include: CodeActionKind.QuickFix });
48
+ controller?.manualTriggerAtCurrentPosition(( localize(10865, "No code actions available")), CodeActionTriggerSource.Default, { include: CodeActionKind.QuickFix });
51
49
  }
52
50
  }
53
51
  }
@@ -1,10 +1,11 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
3
3
  import 'vscode/vscode/vs/base/common/arrays';
4
- import 'vscode/vscode/vs/base/common/observableInternal/derived';
4
+ import 'vscode/vscode/vs/base/common/event';
5
5
  import { autorun } from 'vscode/vscode/vs/base/common/observableInternal/autorun';
6
- import 'vscode/vscode/vs/base/common/observableInternal/utils';
6
+ import 'vscode/vscode/vs/base/common/observableInternal/derived';
7
7
  import 'vscode/vscode/vs/base/common/cancellation';
8
+ import 'vscode/vscode/vs/base/common/observableInternal/utils';
8
9
  import { localize } from 'vscode/vscode/vs/nls';
9
10
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
10
11
  import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
@@ -12,7 +13,6 @@ import { OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID } from './cellDiagnosticsActions.j
12
13
  import { NotebookStatusBarController } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController';
13
14
  import { registerNotebookContribution } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
14
15
  import { CodeCellViewModel } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
15
- import { CellStatusbarAlignment } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
16
16
 
17
17
  let DiagnosticCellStatusBarContrib = class DiagnosticCellStatusBarContrib extends Disposable {
18
18
  static { this.id = 'workbench.notebook.statusBar.diagtnostic'; }
@@ -40,11 +40,11 @@ let DiagnosticCellStatusBarItem = class DiagnosticCellStatusBarItem extends Disp
40
40
  let item;
41
41
  if (error?.location) {
42
42
  const keybinding = this.keybindingService.lookupKeybinding(OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID)?.getLabel();
43
- const tooltip = ( localize(10778, "Quick Actions {0}", `(${keybinding})`));
43
+ const tooltip = ( localize(10866, "Quick Actions {0}", `(${keybinding})`));
44
44
  item = {
45
45
  text: `$(sparkle)`,
46
46
  tooltip,
47
- alignment: CellStatusbarAlignment.Left,
47
+ alignment: 1 ,
48
48
  command: OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID,
49
49
  priority: Number.MAX_SAFE_INTEGER - 1
50
50
  };