@codingame/monaco-vscode-notebook-service-override 25.1.2 → 26.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 (94) hide show
  1. package/index.js +2 -2
  2. package/package.json +3 -3
  3. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +112 -94
  4. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +95 -96
  5. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +28 -19
  6. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +15 -9
  7. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +22 -17
  8. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +25 -10
  9. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +37 -44
  10. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +211 -115
  11. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +16 -18
  12. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +5 -8
  13. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +57 -49
  14. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +24 -11
  15. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +78 -76
  16. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +14 -15
  17. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +43 -28
  18. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +65 -34
  19. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +19 -16
  20. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +6 -10
  21. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +15 -17
  22. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +28 -16
  23. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +211 -170
  24. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +11 -11
  25. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +158 -156
  26. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +109 -105
  27. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.js +1 -1
  28. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +28 -22
  29. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +26 -17
  30. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +23 -16
  31. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +72 -40
  32. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +233 -186
  33. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +22 -18
  34. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +239 -151
  35. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +85 -86
  36. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +25 -11
  37. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +13 -10
  38. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +8 -5
  39. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +218 -196
  40. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +258 -255
  41. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +106 -98
  42. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +63 -49
  43. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +55 -64
  44. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +21 -25
  45. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +149 -129
  46. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +57 -0
  47. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +286 -0
  48. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.d.ts +22 -0
  49. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.js +82 -0
  50. package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +452 -363
  51. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +44 -61
  52. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +9 -11
  53. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +203 -207
  54. package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js +148 -104
  55. package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +19 -11
  56. package/vscode/src/vs/workbench/contrib/notebook/browser/replEditorAccessibleView.js +9 -11
  57. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.js +9 -6
  58. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +34 -22
  59. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +29 -18
  60. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +70 -52
  61. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +31 -19
  62. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +78 -41
  63. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +37 -27
  64. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +9 -6
  65. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +8 -7
  66. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +214 -119
  67. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +38 -36
  68. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSource.js +24 -25
  69. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSourceFactory.js +2 -6
  70. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +26 -15
  71. package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +35 -15
  72. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +468 -258
  73. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.d.ts +33 -0
  74. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +113 -0
  75. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +74 -58
  76. package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.d.ts +1 -1
  77. package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +7 -10
  78. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookCellMatching.js +72 -16
  79. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWebWorker.js +70 -51
  80. package/vscode/src/vs/workbench/contrib/replNotebook/browser/repl.contribution.js +195 -149
  81. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorAccessibilityHelp.js +60 -81
  82. package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +7 -12
  83. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +104 -66
  84. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +115 -77
  85. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +42 -26
  86. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +19 -12
  87. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.d.ts +0 -7
  88. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +0 -198
  89. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.d.ts +0 -8
  90. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +0 -333
  91. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.d.ts +0 -2
  92. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +0 -7
  93. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +0 -13
  94. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +0 -261
@@ -10,14 +10,12 @@ import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/
10
10
  class NotebookAccessibilityHelp {
11
11
  constructor() {
12
12
  this.priority = 105;
13
- this.name = 'notebook';
13
+ this.name = "notebook";
14
14
  this.when = ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( IS_COMPOSITE_NOTEBOOK.negate())));
15
15
  this.type = AccessibleViewType.Help;
16
16
  }
17
17
  getProvider(accessor) {
18
- const activeEditor = accessor.get(ICodeEditorService).getActiveCodeEditor()
19
- || accessor.get(ICodeEditorService).getFocusedCodeEditor()
20
- || accessor.get(IEditorService).activeEditorPane;
18
+ const activeEditor = accessor.get(ICodeEditorService).getActiveCodeEditor() || accessor.get(ICodeEditorService).getFocusedCodeEditor() || accessor.get(IEditorService).activeEditorPane;
21
19
  if (!activeEditor) {
22
20
  return;
23
21
  }
@@ -25,66 +23,51 @@ class NotebookAccessibilityHelp {
25
23
  }
26
24
  }
27
25
  function getAccessibilityHelpText() {
28
- return [
29
- ( localize(
30
- 9575,
31
- 'The notebook view is a collection of code and markdown cells. Code cells can be executed and will produce output directly below the cell.'
32
- )),
33
- ( localize(
34
- 9576,
35
- 'The Edit Cell command{0} will focus on the cell input.',
36
- '<keybinding:notebook.cell.edit>'
37
- )),
38
- ( localize(
39
- 9577,
40
- 'The Quit Edit command{0} will set focus on the cell container. The default (Escape) key may need to be pressed twice first exit the virtual cursor if active.',
41
- '<keybinding:notebook.cell.quitEdit>'
42
- )),
43
- ( localize(
44
- 9578,
45
- 'The Focus Output command{0} will set focus in the cell\'s output.',
46
- '<keybinding:notebook.cell.focusInOutput>'
47
- )),
48
- ( localize(
49
- 9579,
50
- 'The Focus Next Cell Editor command{0} will set focus in the next cell\'s editor.',
51
- '<keybinding:notebook.focusNextEditor>'
52
- )),
53
- ( localize(
54
- 9580,
55
- 'The Focus Previous Cell Editor command{0} will set focus in the previous cell\'s editor.',
56
- '<keybinding:notebook.focusPreviousEditor>'
57
- )),
58
- ( localize(
59
- 9581,
60
- 'The up and down arrows will also move focus between cells while focused on the outer cell container.'
61
- )),
62
- ( localize(
63
- 9582,
64
- 'The Execute Cell command{0} executes the cell that currently has focus.',
65
- '<keybinding:notebook.cell.executeAndFocusContainer>'
66
- )),
67
- ( localize(
68
- 9583,
69
- 'The Insert Cell Above{0} and Below{1} commands will create new empty code cells.',
70
- '<keybinding:notebook.cell.insertCodeCellAbove>',
71
- '<keybinding:notebook.cell.insertCodeCellBelow>'
72
- )),
73
- ( localize(
74
- 9584,
75
- 'The Change Cell to Code/Markdown commands are used to switch between cell types.'
76
- ))
77
- ].join('\n');
26
+ return [( localize(
27
+ 9895,
28
+ "The notebook view is a collection of code and markdown cells. Code cells can be executed and will produce output directly below the cell."
29
+ )), ( localize(
30
+ 9896,
31
+ "The Edit Cell command{0} will focus on the cell input.",
32
+ "<keybinding:notebook.cell.edit>"
33
+ )), ( localize(
34
+ 9897,
35
+ "The Quit Edit command{0} will set focus on the cell container. The default (Escape) key may need to be pressed twice first exit the virtual cursor if active.",
36
+ "<keybinding:notebook.cell.quitEdit>"
37
+ )), ( localize(
38
+ 9898,
39
+ "The Focus Output command{0} will set focus in the cell's output.",
40
+ "<keybinding:notebook.cell.focusInOutput>"
41
+ )), ( localize(
42
+ 9899,
43
+ "The Focus Next Cell Editor command{0} will set focus in the next cell's editor.",
44
+ "<keybinding:notebook.focusNextEditor>"
45
+ )), ( localize(
46
+ 9900,
47
+ "The Focus Previous Cell Editor command{0} will set focus in the previous cell's editor.",
48
+ "<keybinding:notebook.focusPreviousEditor>"
49
+ )), ( localize(
50
+ 9901,
51
+ "The up and down arrows will also move focus between cells while focused on the outer cell container."
52
+ )), ( localize(
53
+ 9902,
54
+ "The Execute Cell command{0} executes the cell that currently has focus.",
55
+ "<keybinding:notebook.cell.executeAndFocusContainer>"
56
+ )), ( localize(
57
+ 9903,
58
+ "The Insert Cell Above{0} and Below{1} commands will create new empty code cells.",
59
+ "<keybinding:notebook.cell.insertCodeCellAbove>",
60
+ "<keybinding:notebook.cell.insertCodeCellBelow>"
61
+ )), ( localize(
62
+ 9904,
63
+ "The Change Cell to Code/Markdown commands are used to switch between cell types."
64
+ ))].join("\n");
78
65
  }
79
66
  function getAccessibilityHelpProvider(accessor, editor) {
80
67
  const helpText = getAccessibilityHelpText();
81
- return ( new AccessibleContentProvider(
82
- AccessibleViewProviderId.Notebook,
83
- { type: AccessibleViewType.Help },
84
- () => helpText,
85
- () => editor.focus(),
86
- AccessibilityVerbositySettingId.Notebook
87
- ));
68
+ return ( new AccessibleContentProvider(AccessibleViewProviderId.Notebook, {
69
+ type: AccessibleViewType.Help
70
+ }, () => helpText, () => editor.focus(), AccessibilityVerbositySettingId.Notebook));
88
71
  }
89
72
 
90
73
  export { NotebookAccessibilityHelp };
@@ -11,7 +11,7 @@ import { getAllOutputsText } from '@codingame/monaco-vscode-api/vscode/vs/workbe
11
11
  class NotebookAccessibleView {
12
12
  constructor() {
13
13
  this.priority = 100;
14
- this.name = 'notebook';
14
+ this.name = "notebook";
15
15
  this.type = AccessibleViewType.View;
16
16
  this.when = ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( InputFocusedContext.toNegated())));
17
17
  }
@@ -34,16 +34,14 @@ function getAccessibleOutputProvider(editorService) {
34
34
  if (!outputContent) {
35
35
  return;
36
36
  }
37
- return ( new AccessibleContentProvider(
38
- AccessibleViewProviderId.Notebook,
39
- { type: AccessibleViewType.View },
40
- () => { return outputContent; },
41
- () => {
42
- notebookEditor?.setFocus(selections[0]);
43
- notebookEditor.focus();
44
- },
45
- AccessibilityVerbositySettingId.Notebook
46
- ));
37
+ return ( new AccessibleContentProvider(AccessibleViewProviderId.Notebook, {
38
+ type: AccessibleViewType.View
39
+ }, () => {
40
+ return outputContent;
41
+ }, () => {
42
+ notebookEditor?.setFocus(selections[0]);
43
+ notebookEditor.focus();
44
+ }, AccessibilityVerbositySettingId.Notebook));
47
45
  }
48
46
 
49
47
  export { NotebookAccessibleView, getAccessibleOutputProvider };