@codingame/monaco-vscode-notebook-service-override 9.0.2 → 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
@@ -1,7 +1,6 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { localize2, localize } from 'vscode/vscode/vs/nls';
3
3
  import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
4
- import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
5
4
  import { DisposableStore, Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
6
5
  import { registerEditorAction, EditorAction } from 'vscode/vscode/vs/editor/browser/editorExtensions';
7
6
  import { IBulkEditService, ResourceTextEdit } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
@@ -9,11 +8,10 @@ import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextK
9
8
  import { IEditorWorkerService } from 'vscode/vscode/vs/editor/common/services/editorWorker';
10
9
  import { ILanguageFeaturesService } from 'vscode/vscode/vs/editor/common/services/languageFeatures';
11
10
  import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
12
- import { getDocumentFormattingEditsWithSelectedProvider, FormattingMode, formatDocumentWithSelectedProvider } from 'vscode/vscode/vs/editor/contrib/format/browser/format';
11
+ import { getDocumentFormattingEditsWithSelectedProvider, formatDocumentWithSelectedProvider } from 'vscode/vscode/vs/editor/contrib/format/browser/format';
13
12
  import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
14
13
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
15
14
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
16
- import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
17
15
  import { Progress } from 'vscode/vscode/vs/platform/progress/common/progress';
18
16
  import { NOTEBOOK_ACTIONS_CATEGORY } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
19
17
  import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
@@ -22,7 +20,6 @@ import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/commo
22
20
  import { INotebookExecutionService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService.service';
23
21
  import { NotebookSetting } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
24
22
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
25
- import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
26
23
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
27
24
  import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
28
25
  import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
@@ -32,14 +29,14 @@ registerAction2(class extends Action2 {
32
29
  constructor() {
33
30
  super({
34
31
  id: 'notebook.format',
35
- title: ( localize2(7969, 'Format Notebook')),
32
+ title: ( localize2(8029, 'Format Notebook')),
36
33
  category: NOTEBOOK_ACTIONS_CATEGORY,
37
34
  precondition: ( (ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EDITABLE))),
38
35
  keybinding: {
39
36
  when: ( (EditorContextKeys.editorTextFocus.toNegated())),
40
- primary: KeyMod.Shift | KeyMod.Alt | KeyCode.KeyF,
41
- linux: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyI },
42
- weight: KeybindingWeight.WorkbenchContrib
37
+ primary: 1024 | 512 | 36 ,
38
+ linux: { primary: 2048 | 1024 | 39 },
39
+ weight: 200
43
40
  },
44
41
  f1: true,
45
42
  menu: {
@@ -73,7 +70,7 @@ registerAction2(class extends Action2 {
73
70
  const ref = await textModelService.createModelReference(cell.uri);
74
71
  disposable.add(ref);
75
72
  const model = ref.object.textEditorModel;
76
- const formatEdits = await getDocumentFormattingEditsWithSelectedProvider(editorWorkerService, languageFeaturesService, model, FormattingMode.Explicit, CancellationToken.None);
73
+ const formatEdits = await getDocumentFormattingEditsWithSelectedProvider(editorWorkerService, languageFeaturesService, model, 1 , CancellationToken.None);
77
74
  const edits = [];
78
75
  if (formatEdits) {
79
76
  for (const edit of formatEdits) {
@@ -83,7 +80,7 @@ registerAction2(class extends Action2 {
83
80
  }
84
81
  return [];
85
82
  }))));
86
- await bulkEditService.apply( allCellEdits.flat(), { label: ( localize(7970, "Format Notebook")), code: 'undoredo.formatNotebook', });
83
+ await bulkEditService.apply( allCellEdits.flat(), { label: ( localize(8030, "Format Notebook")), code: 'undoredo.formatNotebook', });
87
84
  }
88
85
  }
89
86
  finally {
@@ -95,7 +92,7 @@ registerEditorAction(class FormatCellAction extends EditorAction {
95
92
  constructor() {
96
93
  super({
97
94
  id: 'notebook.formatCell',
98
- label: ( localize(7971, "Format Cell")),
95
+ label: ( localize(8031, "Format Cell")),
99
96
  alias: 'Format Cell',
100
97
  precondition: ( (ContextKeyExpr.and(
101
98
  NOTEBOOK_IS_ACTIVE_EDITOR,
@@ -106,9 +103,9 @@ registerEditorAction(class FormatCellAction extends EditorAction {
106
103
  ))),
107
104
  kbOpts: {
108
105
  kbExpr: ( (ContextKeyExpr.and(EditorContextKeys.editorTextFocus))),
109
- primary: KeyMod.Shift | KeyMod.Alt | KeyCode.KeyF,
110
- linux: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyI },
111
- weight: KeybindingWeight.EditorContrib
106
+ primary: 1024 | 512 | 36 ,
107
+ linux: { primary: 2048 | 1024 | 39 },
108
+ weight: 100
112
109
  },
113
110
  contextMenuOpts: {
114
111
  group: '1_modification',
@@ -119,7 +116,7 @@ registerEditorAction(class FormatCellAction extends EditorAction {
119
116
  async run(accessor, editor) {
120
117
  if (editor.hasModel()) {
121
118
  const instaService = accessor.get(IInstantiationService);
122
- await instaService.invokeFunction(formatDocumentWithSelectedProvider, editor, FormattingMode.Explicit, Progress.None, CancellationToken.None, true);
119
+ await instaService.invokeFunction(formatDocumentWithSelectedProvider, editor, 1 , Progress.None, CancellationToken.None, true);
123
120
  }
124
121
  }
125
122
  });
@@ -157,7 +154,7 @@ let FormatOnCellExecutionParticipant = class FormatOnCellExecutionParticipant {
157
154
  const ref = await this.textModelService.createModelReference(activeCell.uri);
158
155
  disposable.add(ref);
159
156
  const model = ref.object.textEditorModel;
160
- const formatEdits = await getDocumentFormattingEditsWithSelectedProvider(this.editorWorkerService, this.languageFeaturesService, model, FormattingMode.Silent, CancellationToken.None);
157
+ const formatEdits = await getDocumentFormattingEditsWithSelectedProvider(this.editorWorkerService, this.languageFeaturesService, model, 2 , CancellationToken.None);
161
158
  const edits = [];
162
159
  if (formatEdits) {
163
160
  edits.push(...( (formatEdits.map(
@@ -167,7 +164,7 @@ let FormatOnCellExecutionParticipant = class FormatOnCellExecutionParticipant {
167
164
  }
168
165
  return [];
169
166
  }))));
170
- await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(7972, "Format Cells")), code: 'undoredo.notebooks.onWillExecuteFormat', });
167
+ await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(8032, "Format Cells")), code: 'undoredo.notebooks.onWillExecuteFormat', });
171
168
  }
172
169
  finally {
173
170
  disposable.dispose();
@@ -198,6 +195,6 @@ CellExecutionParticipantsContribution = ( (__decorate([
198
195
  ( (__param(1, INotebookExecutionService)))
199
196
  ], CellExecutionParticipantsContribution)));
200
197
  const workbenchContributionsRegistry = ( (Registry.as(Extensions.Workbench)));
201
- workbenchContributionsRegistry.registerWorkbenchContribution(CellExecutionParticipantsContribution, LifecyclePhase.Restored);
198
+ workbenchContributionsRegistry.registerWorkbenchContribution(CellExecutionParticipantsContribution, 3 );
202
199
 
203
200
  export { CellExecutionParticipantsContribution };
@@ -8,7 +8,6 @@ import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/c
8
8
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
9
9
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
10
10
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
11
- import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
12
11
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
13
12
  import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
14
13
  import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
@@ -16,7 +15,6 @@ import { NotebookSetting } from 'vscode/vscode/vs/workbench/contrib/notebook/com
16
15
  import { HAS_OPENED_NOTEBOOK } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
17
16
  import { NotebookEditorInput } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
18
17
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
19
- import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
20
18
 
21
19
  const hasOpenedNotebookKey = 'hasOpenedNotebook';
22
20
  const hasShownGettingStartedKey = 'hasShownNotebookGettingStarted';
@@ -25,7 +23,7 @@ let NotebookGettingStarted = class NotebookGettingStarted extends Disposable {
25
23
  super();
26
24
  const hasOpenedNotebook = HAS_OPENED_NOTEBOOK.bindTo(_contextKeyService);
27
25
  const memento = ( (new Memento('notebookGettingStarted2', _storageService)));
28
- const storedValue = memento.getMemento(StorageScope.PROFILE, StorageTarget.USER);
26
+ const storedValue = memento.getMemento(0 , 0 );
29
27
  if (storedValue[hasOpenedNotebookKey]) {
30
28
  hasOpenedNotebook.set(true);
31
29
  }
@@ -60,12 +58,12 @@ NotebookGettingStarted = ( (__decorate([
60
58
  ( (__param(3, ICommandService))),
61
59
  ( (__param(4, IConfigurationService)))
62
60
  ], NotebookGettingStarted)));
63
- ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(NotebookGettingStarted, LifecyclePhase.Restored);
61
+ ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(NotebookGettingStarted, 3 );
64
62
  registerAction2(class NotebookClearNotebookLayoutAction extends Action2 {
65
63
  constructor() {
66
64
  super({
67
65
  id: 'workbench.notebook.layout.gettingStarted',
68
- title: ( localize2(7983, "Reset notebook getting started")),
66
+ title: ( localize2(8043, "Reset notebook getting started")),
69
67
  f1: true,
70
68
  precondition: ( (ContextKeyExpr.equals(`config.${NotebookSetting.openGettingStarted}`, true))),
71
69
  category: Categories.Developer,
@@ -74,7 +72,7 @@ registerAction2(class NotebookClearNotebookLayoutAction extends Action2 {
74
72
  run(accessor) {
75
73
  const storageService = accessor.get(IStorageService);
76
74
  const memento = ( (new Memento('notebookGettingStarted', storageService)));
77
- const storedValue = memento.getMemento(StorageScope.PROFILE, StorageTarget.USER);
75
+ const storedValue = memento.getMemento(0 , 0 );
78
76
  storedValue[hasOpenedNotebookKey] = undefined;
79
77
  memento.saveMemento();
80
78
  }
@@ -5,7 +5,6 @@ import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
5
5
  import { INotebookKernelService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
6
6
  import { INotebookLoggingService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookLoggingService.service';
7
7
  import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
8
- import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
9
8
 
10
9
  let NotebookKernelDetection = class NotebookKernelDetection extends Disposable {
11
10
  constructor(_notebookKernelService, _extensionService, _notebookLoggingService) {
@@ -80,4 +79,4 @@ NotebookKernelDetection = ( __decorate([
80
79
  ( __param(1, IExtensionService)),
81
80
  ( __param(2, INotebookLoggingService))
82
81
  ], NotebookKernelDetection));
83
- ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(NotebookKernelDetection, LifecyclePhase.Restored);
82
+ ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(NotebookKernelDetection, 3 );
@@ -9,7 +9,7 @@ class ToggleCellToolbarPositionAction extends Action2 {
9
9
  constructor() {
10
10
  super({
11
11
  id: TOGGLE_CELL_TOOLBAR_POSITION,
12
- title: ( localize2(7984, 'Toggle Cell Toolbar Position')),
12
+ title: ( localize2(8044, 'Toggle Cell Toolbar Position')),
13
13
  menu: [{
14
14
  id: MenuId.NotebookCellTitle,
15
15
  group: 'View',
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
- import { registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
2
+ import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
3
3
  import { MarkerList, IMarkerNavigationService } from 'vscode/vscode/vs/editor/contrib/gotoError/browser/markerNavigationService';
4
4
  import { CellUri } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
5
5
  import { MarkerSeverity } from 'vscode/vscode/vs/platform/markers/common/markers';
@@ -98,5 +98,5 @@ NotebookMarkerDecorationContribution.__decorator = ( __decorate([
98
98
  NotebookMarkerDecorationContribution = ( __decorate([
99
99
  ( __param(1, IMarkerService))
100
100
  ], NotebookMarkerDecorationContribution));
101
- registerWorkbenchContribution2(MarkerListProvider.ID, MarkerListProvider, WorkbenchPhase.BlockRestore);
101
+ registerWorkbenchContribution2(MarkerListProvider.ID, MarkerListProvider, 2 );
102
102
  registerNotebookContribution(NotebookMarkerDecorationContribution.id, NotebookMarkerDecorationContribution);