@codingame/monaco-vscode-notebook-service-override 18.4.0 → 19.0.1

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 (81) hide show
  1. package/package.json +27 -29
  2. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +7 -7
  3. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +26 -26
  4. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.d.ts +1 -1
  5. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +8 -8
  6. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.d.ts +1 -1
  7. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +1 -1
  8. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.d.ts +1 -1
  9. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +4 -4
  10. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts +1 -1
  11. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +16 -16
  12. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +1 -1
  13. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.d.ts +1 -1
  14. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +1 -1
  15. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +1 -1
  16. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +12 -12
  17. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.d.ts +1 -1
  18. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +5 -5
  19. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +7 -7
  20. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +3 -3
  21. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +2 -2
  22. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +1 -1
  23. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.d.ts +2 -1
  24. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +19 -8
  25. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +20 -20
  26. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.d.ts +1 -1
  27. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +2 -2
  28. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +3 -3
  29. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +1 -1
  30. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.d.ts +6 -1
  31. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +14 -4
  32. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.d.ts +1 -3
  33. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +10 -12
  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 +13 -13
  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 +5 -6
  41. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +3 -3
  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 +31 -31
  44. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +18 -15
  45. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +29 -29
  46. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +32 -29
  47. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +1 -1
  48. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +26 -26
  49. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +20 -20
  50. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +8 -8
  51. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.d.ts +1 -1
  52. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +16 -16
  53. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +4 -4
  54. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +22 -22
  55. package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +72 -72
  56. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +11 -11
  57. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +3 -3
  58. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
  59. package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.d.ts +1 -1
  60. package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js +4 -4
  61. package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +1 -1
  62. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +1 -1
  63. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +2 -2
  64. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +1 -1
  65. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +1 -1
  66. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.d.ts +1 -1
  67. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +4 -4
  68. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +1 -1
  69. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +2 -2
  70. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +3 -3
  71. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.d.ts +1 -1
  72. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +1 -1
  73. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +24 -18
  74. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +3 -3
  75. package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.d.ts +1 -1
  76. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.d.ts +2 -2
  77. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +14 -14
  78. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.d.ts +1 -1
  79. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +3 -3
  80. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.d.ts +2 -2
  81. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +2 -2
@@ -2,14 +2,18 @@
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
3
  import { $ as $$1, append } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
4
4
  import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
5
- import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
5
+ import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
6
+ import { localize2, localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
6
7
  import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
7
8
  import '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
8
9
  import { DebugExpressionRenderer } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugExpressionRenderer';
10
+ import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
9
11
 
10
12
  var NotebookVariableRenderer_1;
11
13
  const $ = $$1;
12
14
  const MAX_VALUE_RENDER_LENGTH_IN_VIEWLET = 1024;
15
+ const NOTEBOOK_TITLE = ( localize2(8464, "Notebook Variables"));
16
+ const REPL_TITLE = ( localize2(8465, "REPL Variables"));
13
17
  class NotebookVariablesDelegate {
14
18
  getHeight(element) {
15
19
  return 22;
@@ -55,12 +59,18 @@ NotebookVariableRenderer = NotebookVariableRenderer_1 = ( __decorate([
55
59
  ( __param(0, IInstantiationService))
56
60
  ], NotebookVariableRenderer));
57
61
  class NotebookVariableAccessibilityProvider {
62
+ constructor() {
63
+ this._widgetAriaLabel = observableValue('widgetAriaLabel', NOTEBOOK_TITLE.value);
64
+ }
58
65
  getWidgetAriaLabel() {
59
- return localize(8241, "Notebook Variables");
66
+ return this._widgetAriaLabel;
67
+ }
68
+ updateWidgetAriaLabel(label) {
69
+ this._widgetAriaLabel.set(label, undefined);
60
70
  }
61
71
  getAriaLabel(element) {
62
- return localize(8242, "Variable {0}, value {1}", element.name, element.value);
72
+ return localize(8466, "Variable {0}, value {1}", element.name, element.value);
63
73
  }
64
74
  }
65
75
 
66
- export { NotebookVariableAccessibilityProvider, NotebookVariableRenderer, NotebookVariablesDelegate };
76
+ export { NOTEBOOK_TITLE, NotebookVariableAccessibilityProvider, NotebookVariableRenderer, NotebookVariablesDelegate, REPL_TITLE };
@@ -1,4 +1,3 @@
1
- import { ILocalizedString } from "@codingame/monaco-vscode-api/vscode/vs/platform/action/common/action";
2
1
  import { IMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service";
3
2
  import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
4
3
  import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
@@ -32,11 +31,10 @@ export declare class NotebookVariablesView extends ViewPane {
32
31
  protected commandService: ICommandService;
33
32
  private readonly menuService;
34
33
  static readonly ID = "notebookVariablesView";
35
- static readonly NOTEBOOK_TITLE: ILocalizedString;
36
- static readonly REPL_TITLE: ILocalizedString;
37
34
  private tree;
38
35
  private activeNotebook;
39
36
  private readonly dataSource;
37
+ private readonly accessibilityProvider;
40
38
  private updateScheduler;
41
39
  constructor(options: IViewPaneOptions, editorService: IEditorService, notebookKernelService: INotebookKernelService, notebookExecutionStateService: INotebookExecutionStateService, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, contextKeyService: IContextKeyService, configurationService: IConfigurationService, instantiationService: IInstantiationService, viewDescriptorService: IViewDescriptorService, openerService: IOpenerService, quickInputService: IQuickInputService, commandService: ICommandService, themeService: IThemeService, hoverService: IHoverService, menuService: IMenuService);
42
40
  protected renderBody(container: HTMLElement): void;
@@ -1,7 +1,6 @@
1
1
 
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
3
  import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
4
- import { localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
5
4
  import { getFlatContextMenuActions } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
6
5
  import { MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
7
6
  import { IMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service';
@@ -20,19 +19,15 @@ import { ViewPane } from '@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d3
20
19
  import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
21
20
  import { CONTEXT_VARIABLE_NAME, CONTEXT_VARIABLE_VALUE, CONTEXT_VARIABLE_TYPE, CONTEXT_VARIABLE_INTERFACES, CONTEXT_VARIABLE_LANGUAGE, CONTEXT_VARIABLE_EXTENSIONID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
22
21
  import { NotebookVariableDataSource } from './notebookVariablesDataSource.js';
23
- import { NotebookVariablesDelegate, NotebookVariableRenderer, NotebookVariableAccessibilityProvider } from './notebookVariablesTree.js';
24
- import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-4372ad43-a220-5e78-83e6-95a9cfd64384-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
22
+ import { NotebookVariableAccessibilityProvider, NotebookVariablesDelegate, NotebookVariableRenderer, REPL_TITLE, NOTEBOOK_TITLE } from './notebookVariablesTree.js';
23
+ import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
25
24
  import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
26
25
  import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
27
26
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
28
- import { isCompositeNotebookEditorInput } from '@codingame/monaco-vscode-4372ad43-a220-5e78-83e6-95a9cfd64384-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
27
+ import { isCompositeNotebookEditorInput } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
29
28
 
30
- var NotebookVariablesView_1;
31
29
  let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
32
- static { NotebookVariablesView_1 = this; }
33
30
  static { this.ID = 'notebookVariablesView'; }
34
- static { this.NOTEBOOK_TITLE = ( localize2(8243, "Notebook Variables")); }
35
- static { this.REPL_TITLE = ( localize2(8244, "REPL Variables")); }
36
31
  constructor(options, editorService, notebookKernelService, notebookExecutionStateService, keybindingService, contextMenuService, contextKeyService, configurationService, instantiationService, viewDescriptorService, openerService, quickInputService, commandService, themeService, hoverService, menuService) {
37
32
  super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, hoverService);
38
33
  this.editorService = editorService;
@@ -45,6 +40,7 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
45
40
  this._register(this.notebookKernelService.onDidNotebookVariablesUpdate(this.handleVariablesChanged.bind(this)));
46
41
  this._register(this.notebookExecutionStateService.onDidChangeExecution(this.handleExecutionStateChange.bind(this)));
47
42
  this._register(this.editorService.onDidCloseEditor((e) => this.handleCloseEditor(e)));
43
+ this.accessibilityProvider = ( new NotebookVariableAccessibilityProvider());
48
44
  this.handleActiveEditorChange(false);
49
45
  this.dataSource = ( new NotebookVariableDataSource(this.notebookKernelService));
50
46
  this.updateScheduler = ( new RunOnceScheduler(() => this.tree?.updateChildren(), 100));
@@ -53,7 +49,7 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
53
49
  super.renderBody(container);
54
50
  this.element.classList.add('debug-pane');
55
51
  this.tree = this.instantiationService.createInstance((WorkbenchAsyncDataTree), 'notebookVariablesTree', container, ( new NotebookVariablesDelegate()), [this.instantiationService.createInstance(NotebookVariableRenderer)], this.dataSource, {
56
- accessibilityProvider: ( new NotebookVariableAccessibilityProvider()),
52
+ accessibilityProvider: this.accessibilityProvider,
57
53
  identityProvider: { getId: (e) => e.id },
58
54
  });
59
55
  this.tree.layout();
@@ -102,10 +98,12 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
102
98
  setActiveNotebook(notebookDocument, editor, doUpdate = true) {
103
99
  this.activeNotebook = notebookDocument;
104
100
  if (isCompositeNotebookEditorInput(editor.input)) {
105
- this.updateTitle(NotebookVariablesView_1.REPL_TITLE.value);
101
+ this.updateTitle(REPL_TITLE.value);
102
+ this.accessibilityProvider.updateWidgetAriaLabel(REPL_TITLE.value);
106
103
  }
107
104
  else {
108
- this.updateTitle(NotebookVariablesView_1.NOTEBOOK_TITLE.value);
105
+ this.updateTitle(NOTEBOOK_TITLE.value);
106
+ this.accessibilityProvider.updateWidgetAriaLabel(NOTEBOOK_TITLE.value);
109
107
  }
110
108
  if (doUpdate) {
111
109
  this.tree?.setInput({ kind: 'root', notebook: notebookDocument });
@@ -162,7 +160,7 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
162
160
  }
163
161
  }
164
162
  };
165
- NotebookVariablesView = NotebookVariablesView_1 = ( __decorate([
163
+ NotebookVariablesView = ( __decorate([
166
164
  ( __param(1, IEditorService)),
167
165
  ( __param(2, INotebookKernelService)),
168
166
  ( __param(3, INotebookExecutionStateService)),
@@ -7,12 +7,12 @@ import { IEditorOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/
7
7
  import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
8
8
  import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
9
9
  import { IEditorPane } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
10
- import { CellFoldingState, INotebookEditorPane } from "@codingame/monaco-vscode-4372ad43-a220-5e78-83e6-95a9cfd64384-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
10
+ import { CellFoldingState, INotebookEditorPane } from "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
11
11
  import { NotebookEditor } from "@codingame/monaco-vscode-bc8c28cd-7a80-54a9-af1a-e6b1e7a7f34a-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditor";
12
12
  import { INotebookCellOutlineDataSource } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSource";
13
13
  import { CellKind } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
14
14
  import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
15
- import { IBreadcrumbsDataSource, IOutline, IOutlineCreator, IOutlineListConfig, IQuickPickDataSource, IQuickPickOutlineElement, OutlineChangeEvent, OutlineTarget } from "@codingame/monaco-vscode-0094ae09-a688-53e7-bacc-93e26f7f49db-common/vscode/vs/workbench/services/outline/browser/outline";
15
+ import { IBreadcrumbsDataSource, IOutline, IOutlineCreator, IOutlineListConfig, IQuickPickDataSource, IQuickPickOutlineElement, OutlineChangeEvent, OutlineTarget } from "@codingame/monaco-vscode-ca445022-b812-53ca-a041-e46c7e0b13de-common/vscode/vs/workbench/services/outline/browser/outline";
16
16
  import { IOutlineService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/outline/browser/outline.service";
17
17
  import { OutlineEntry } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry";
18
18
  import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
@@ -27,13 +27,13 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quic
27
27
  import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
28
28
  import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
29
29
  import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
30
- import { CellFoldingState, CellRevealType } from '@codingame/monaco-vscode-4372ad43-a220-5e78-83e6-95a9cfd64384-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
30
+ import { CellFoldingState, CellRevealType } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
31
31
  import { NotebookEditor } from '@codingame/monaco-vscode-bc8c28cd-7a80-54a9-af1a-e6b1e7a7f34a-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditor';
32
32
  import { CellKind, NotebookSetting, NotebookCellsChangeType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
33
33
  import { SIDE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
34
34
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
35
35
  import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
36
- import { OutlineConfigKeys, OutlineTarget, OutlineConfigCollapseItemsValues } from '@codingame/monaco-vscode-0094ae09-a688-53e7-bacc-93e26f7f49db-common/vscode/vs/workbench/services/outline/browser/outline';
36
+ import { OutlineConfigKeys, OutlineTarget, OutlineConfigCollapseItemsValues } from '@codingame/monaco-vscode-ca445022-b812-53ca-a041-e46c7e0b13de-common/vscode/vs/workbench/services/outline/browser/outline';
37
37
  import { IOutlineService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/outline/browser/outline.service';
38
38
  import { CancellationToken } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
39
39
  import { Range } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range';
@@ -46,7 +46,7 @@ import { MenuEntryActionViewItem, getActionBarActions } from '@codingame/monaco-
46
46
  import { disposableTimeout, Delayer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
47
47
  import { IOutlinePane } from '@codingame/monaco-vscode-0cd5242b-7b61-5f66-ac25-ffa40baf8e8f-common/vscode/vs/workbench/contrib/outline/browser/outline';
48
48
  import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
49
- import { NOTEBOOK_IS_ACTIVE_EDITOR } from '@codingame/monaco-vscode-c87fff3a-2aa9-52ab-ba4d-17e8d1e5e185-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
49
+ import { NOTEBOOK_IS_ACTIVE_EDITOR } from '@codingame/monaco-vscode-3927dd53-f845-534c-9baa-1528ff3956c8-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
50
50
  import { NotebookOutlineConstants } from '../../viewModel/notebookOutlineEntryFactory.js';
51
51
  import { INotebookCellOutlineDataSourceFactory } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSourceFactory.service';
52
52
  import { NotebookExecutionType } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
@@ -612,7 +612,7 @@ let NotebookCellOutline = class NotebookCellOutline {
612
612
  const notebookEditorOptions = {
613
613
  ...options,
614
614
  override: this._editor.input?.editorId,
615
- cellRevealType: CellRevealType.NearTopIfOutsideViewport,
615
+ cellRevealType: CellRevealType.Top,
616
616
  selection: entry.position,
617
617
  viewState: undefined,
618
618
  };
@@ -728,33 +728,33 @@ const NotebookOutlineContext = {
728
728
  type: 'boolean',
729
729
  default: true,
730
730
  markdownDescription: ( localize(
731
- 8245,
731
+ 8467,
732
732
  "When enabled, notebook outline will show only markdown cells containing a header."
733
733
  ))
734
734
  },
735
735
  [NotebookSetting.outlineShowCodeCells]: {
736
736
  type: 'boolean',
737
737
  default: false,
738
- markdownDescription: ( localize(8246, "When enabled, notebook outline shows code cells."))
738
+ markdownDescription: ( localize(8468, "When enabled, notebook outline shows code cells."))
739
739
  },
740
740
  [NotebookSetting.outlineShowCodeCellSymbols]: {
741
741
  type: 'boolean',
742
742
  default: true,
743
743
  markdownDescription: ( localize(
744
- 8247,
744
+ 8469,
745
745
  "When enabled, notebook outline shows code cell symbols. Relies on `notebook.outline.showCodeCells` being enabled."
746
746
  ))
747
747
  },
748
748
  [NotebookSetting.breadcrumbsShowCodeCells]: {
749
749
  type: 'boolean',
750
750
  default: true,
751
- markdownDescription: ( localize(8248, "When enabled, notebook breadcrumbs contain code cells."))
751
+ markdownDescription: ( localize(8470, "When enabled, notebook breadcrumbs contain code cells."))
752
752
  },
753
753
  [NotebookSetting.gotoSymbolsAllSymbols]: {
754
754
  type: 'boolean',
755
755
  default: true,
756
756
  markdownDescription: ( localize(
757
- 8249,
757
+ 8471,
758
758
  "When enabled, the Go to Symbol Quick Pick will display full code symbols from the notebook, as well as Markdown headers."
759
759
  ))
760
760
  },
@@ -762,7 +762,7 @@ const NotebookOutlineContext = {
762
762
  });
763
763
  MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
764
764
  submenu: MenuId.NotebookOutlineFilter,
765
- title: ( localize(8250, "Filter Entries")),
765
+ title: ( localize(8472, "Filter Entries")),
766
766
  icon: Codicon.filter,
767
767
  group: 'navigation',
768
768
  order: -1,
@@ -772,7 +772,7 @@ registerAction2(class ToggleShowMarkdownHeadersOnly extends Action2 {
772
772
  constructor() {
773
773
  super({
774
774
  id: 'notebook.outline.toggleShowMarkdownHeadersOnly',
775
- title: ( localize(8251, "Markdown Headers Only")),
775
+ title: ( localize(8473, "Markdown Headers Only")),
776
776
  f1: false,
777
777
  toggled: {
778
778
  condition: ( ContextKeyExpr.equals('config.notebook.outline.showMarkdownHeadersOnly', true))
@@ -793,7 +793,7 @@ registerAction2(class ToggleCodeCellEntries extends Action2 {
793
793
  constructor() {
794
794
  super({
795
795
  id: 'notebook.outline.toggleCodeCells',
796
- title: ( localize(8252, "Code Cells")),
796
+ title: ( localize(8474, "Code Cells")),
797
797
  f1: false,
798
798
  toggled: {
799
799
  condition: ( ContextKeyExpr.equals('config.notebook.outline.showCodeCells', true))
@@ -815,7 +815,7 @@ registerAction2(class ToggleCodeCellSymbolEntries extends Action2 {
815
815
  constructor() {
816
816
  super({
817
817
  id: 'notebook.outline.toggleCodeCellSymbols',
818
- title: ( localize(8253, "Code Cell Symbols")),
818
+ title: ( localize(8475, "Code Cell Symbols")),
819
819
  f1: false,
820
820
  toggled: {
821
821
  condition: ( ContextKeyExpr.equals('config.notebook.outline.showCodeCellSymbols', true))
@@ -53,7 +53,7 @@ registerAction2(class extends Action2 {
53
53
  constructor() {
54
54
  super({
55
55
  id: 'notebook.setProfile',
56
- title: ( localize(8254, "Set Profile"))
56
+ title: ( localize(8476, "Set Profile"))
57
57
  });
58
58
  }
59
59
  async run(accessor, args) {
@@ -9,7 +9,7 @@ import { IProgress, IProgressStep } from "@codingame/monaco-vscode-api/vscode/vs
9
9
  import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
10
10
  import { NotebookTextModel } from "../../../common/model/notebookTextModel.js";
11
11
  import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
12
- import { IStoredFileWorkingCopy, IStoredFileWorkingCopyModel } from "@codingame/monaco-vscode-bba55be6-41a2-50cd-a3cc-8bafa35bfa89-common/vscode/vs/workbench/services/workingCopy/common/storedFileWorkingCopy";
12
+ import { IStoredFileWorkingCopy, IStoredFileWorkingCopyModel } from "@codingame/monaco-vscode-6f931a91-88ea-5232-897f-a17ec3929ba5-common/vscode/vs/workbench/services/workingCopy/common/storedFileWorkingCopy";
13
13
  import { IStoredFileWorkingCopySaveParticipant, IStoredFileWorkingCopySaveParticipantContext } from "@codingame/monaco-vscode-base-service-override/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService";
14
14
  import { IWorkingCopyFileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service";
15
15
  export declare abstract class NotebookSaveParticipant implements IStoredFileWorkingCopySaveParticipant {
@@ -24,9 +24,9 @@ import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/regist
24
24
  import { IWorkspaceTrustManagementService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service';
25
25
  import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
26
26
  import { SaveReason } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
27
- import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-4372ad43-a220-5e78-83e6-95a9cfd64384-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
27
+ import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
28
28
  import { NotebookSetting, CellKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
29
- import { NotebookFileWorkingCopyModel } from '@codingame/monaco-vscode-bba55be6-41a2-50cd-a3cc-8bafa35bfa89-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorModel';
29
+ import { NotebookFileWorkingCopyModel } from '@codingame/monaco-vscode-6f931a91-88ea-5232-897f-a17ec3929ba5-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorModel';
30
30
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
31
31
  import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
32
32
  import { IWorkingCopyFileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service';
@@ -65,7 +65,7 @@ let FormatOnSaveParticipant = class FormatOnSaveParticipant {
65
65
  if (!enabled) {
66
66
  return undefined;
67
67
  }
68
- progress.report({ message: ( localize(8255, "Formatting")) });
68
+ progress.report({ message: ( localize(8477, "Formatting")) });
69
69
  const notebook = workingCopy.model.notebookModel;
70
70
  const formatApplied = await this.instantiationService.invokeFunction(CodeActionParticipantUtils.checkAndRunFormatCodeAction, notebook, progress, token);
71
71
  const disposable = ( new DisposableStore());
@@ -83,7 +83,7 @@ let FormatOnSaveParticipant = class FormatOnSaveParticipant {
83
83
  }
84
84
  return [];
85
85
  })));
86
- await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(8256, "Format Notebook")), code: 'undoredo.formatNotebook', });
86
+ await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(8478, "Format Notebook")), code: 'undoredo.formatNotebook', });
87
87
  }
88
88
  }
89
89
  finally {
@@ -152,7 +152,7 @@ let TrimWhitespaceParticipant = class TrimWhitespaceParticipant extends Notebook
152
152
  return ( ops.map(op => ( new ResourceTextEdit(model.uri, { ...op, text: op.text || '' }, model.getVersionId()))));
153
153
  })));
154
154
  const filteredEdits = allCellEdits.flat().filter(edit => edit !== undefined);
155
- await this.bulkEditService.apply(filteredEdits, { label: ( localize(8257, "Notebook Trim Trailing Whitespace")), code: 'undoredo.notebookTrimTrailingWhitespace' });
155
+ await this.bulkEditService.apply(filteredEdits, { label: ( localize(8479, "Notebook Trim Trailing Whitespace")), code: 'undoredo.notebookTrimTrailingWhitespace' });
156
156
  }
157
157
  finally {
158
158
  progress.report({ increment: 100 });
@@ -229,7 +229,7 @@ let TrimFinalNewLinesParticipant = class TrimFinalNewLinesParticipant extends No
229
229
  ));
230
230
  })));
231
231
  const filteredEdits = allCellEdits.flat().filter(edit => edit !== undefined);
232
- await this.bulkEditService.apply(filteredEdits, { label: ( localize(8258, "Trim Final New Lines")), code: 'undoredo.trimFinalNewLines' });
232
+ await this.bulkEditService.apply(filteredEdits, { label: ( localize(8480, "Trim Final New Lines")), code: 'undoredo.trimFinalNewLines' });
233
233
  }
234
234
  finally {
235
235
  progress.report({ increment: 100 });
@@ -283,7 +283,7 @@ let InsertFinalNewLineParticipant = class InsertFinalNewLineParticipant extends
283
283
  )), text: cell.textBuffer.getEOL() }, cell.textModel?.getVersionId()));
284
284
  })));
285
285
  const filteredEdits = allCellEdits.filter(edit => edit !== undefined);
286
- await this.bulkEditService.apply(filteredEdits, { label: ( localize(8259, "Insert Final New Line")), code: 'undoredo.insertFinalNewLine' });
286
+ await this.bulkEditService.apply(filteredEdits, { label: ( localize(8481, "Insert Final New Line")), code: 'undoredo.insertFinalNewLine' });
287
287
  if (activeCellEditor && selections) {
288
288
  activeCellEditor.setSelections(selections);
289
289
  }
@@ -339,7 +339,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant {
339
339
  const notebookCodeActionsOnSave = includedActions.filter(x => CodeActionKind.Notebook.contains(x));
340
340
  if (notebookCodeActionsOnSave.length) {
341
341
  const nbDisposable = ( new DisposableStore());
342
- progress.report({ message: ( localize(8260, "Running 'Notebook' code actions")) });
342
+ progress.report({ message: ( localize(8482, "Running 'Notebook' code actions")) });
343
343
  try {
344
344
  const cell = notebookModel.cells[0];
345
345
  const ref = await this.textModelService.createModelReference(cell.uri);
@@ -371,7 +371,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant {
371
371
  });
372
372
  }
373
373
  const cellDisposable = ( new DisposableStore());
374
- progress.report({ message: ( localize(8261, "Running 'Cell' code actions")) });
374
+ progress.report({ message: ( localize(8483, "Running 'Cell' code actions")) });
375
375
  try {
376
376
  await Promise.all(( notebookModel.cells.map(async (cell) => {
377
377
  const ref = await this.textModelService.createModelReference(cell.uri);
@@ -411,7 +411,7 @@ class CodeActionParticipantUtils {
411
411
  const configurationService = accessor.get(IConfigurationService);
412
412
  const formatDisposable = ( new DisposableStore());
413
413
  let formatResult = false;
414
- progress.report({ message: ( localize(8262, "Running 'Format' code actions")) });
414
+ progress.report({ message: ( localize(8484, "Running 'Format' code actions")) });
415
415
  try {
416
416
  const cell = notebookModel.cells[0];
417
417
  const ref = await textModelService.createModelReference(cell.uri);
@@ -440,7 +440,7 @@ class CodeActionParticipantUtils {
440
440
  _report() {
441
441
  progress.report({
442
442
  message: ( localize(
443
- 8263,
443
+ 8485,
444
444
  "Getting code actions from '{0}' ([configure]({1})).",
445
445
  ( [...this._names].map(name => `'${name}'`)).join(', '),
446
446
  'command:workbench.action.openSettings?%5B%22notebook.codeActionsOnSave%22%5D'
@@ -480,7 +480,7 @@ class CodeActionParticipantUtils {
480
480
  logService.warn('Failed to apply code action on save, applied to multiple resources.');
481
481
  continue;
482
482
  }
483
- progress.report({ message: ( localize(8264, "Applying code action '{0}'.", action.action.title)) });
483
+ progress.report({ message: ( localize(8486, "Applying code action '{0}'.", action.action.title)) });
484
484
  await instantiationService.invokeFunction(applyCodeAction, action, ApplyCodeActionReason.OnSave, {}, token);
485
485
  if (token.isCancellationRequested) {
486
486
  return;
@@ -505,7 +505,7 @@ class CodeActionParticipantUtils {
505
505
  _report() {
506
506
  progress.report({
507
507
  message: ( localize(
508
- 8263,
508
+ 8485,
509
509
  "Getting code actions from '{0}' ([configure]({1})).",
510
510
  ( [...this._names].map(name => `'${name}'`)).join(', '),
511
511
  'command:workbench.action.openSettings?%5B%22notebook.defaultFormatter%22%5D'
@@ -532,7 +532,7 @@ class CodeActionParticipantUtils {
532
532
  if (!action) {
533
533
  return false;
534
534
  }
535
- progress.report({ message: ( localize(8264, "Applying code action '{0}'.", action.action.title)) });
535
+ progress.report({ message: ( localize(8486, "Applying code action '{0}'.", action.action.title)) });
536
536
  await instantiationService.invokeFunction(applyCodeAction, action, ApplyCodeActionReason.OnSave, {}, token);
537
537
  if (token.isCancellationRequested) {
538
538
  return false;
@@ -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-4372ad43-a220-5e78-83e6-95a9cfd64384-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
2
+ import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
3
3
  export declare class TroubleshootController extends Disposable implements INotebookEditorContribution {
4
4
  private readonly _notebookEditor;
5
5
  static id: string;
@@ -3,13 +3,12 @@ import { Disposable, DisposableStore, dispose } from '@codingame/monaco-vscode-a
3
3
  import { localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
4
4
  import { Categories } from '@codingame/monaco-vscode-api/vscode/vs/platform/action/common/actionCommonCategories';
5
5
  import { registerAction2, Action2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
6
- import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-4372ad43-a220-5e78-83e6-95a9cfd64384-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
6
+ import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
7
7
  import { registerNotebookContribution } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
8
8
  import { CellStatusbarAlignment } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
9
9
  import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
10
10
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
11
- import '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
12
- import { n } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/domImpl/n';
11
+ import { n } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
13
12
 
14
13
  class TroubleshootController extends Disposable {
15
14
  static { this.id = 'workbench.notebook.troubleshoot'; }
@@ -264,7 +263,7 @@ registerAction2(class extends Action2 {
264
263
  constructor() {
265
264
  super({
266
265
  id: 'notebook.toggleLayoutTroubleshoot',
267
- title: ( localize2(8265, "Toggle Notebook Layout Troubleshoot")),
266
+ title: ( localize2(8487, "Toggle Notebook Layout Troubleshoot")),
268
267
  category: Categories.Developer,
269
268
  f1: true
270
269
  });
@@ -283,7 +282,7 @@ registerAction2(class extends Action2 {
283
282
  constructor() {
284
283
  super({
285
284
  id: 'notebook.inspectLayout',
286
- title: ( localize2(8266, "Inspect Notebook Layout")),
285
+ title: ( localize2(8488, "Inspect Notebook Layout")),
287
286
  category: Categories.Developer,
288
287
  f1: true
289
288
  });
@@ -304,7 +303,7 @@ registerAction2(class extends Action2 {
304
303
  constructor() {
305
304
  super({
306
305
  id: 'notebook.clearNotebookEdtitorTypeCache',
307
- title: ( localize2(8267, "Clear Notebook Editor Type Cache")),
306
+ title: ( localize2(8489, "Clear Notebook Editor Type Cache")),
308
307
  category: Categories.Developer,
309
308
  f1: true
310
309
  });
@@ -4,7 +4,7 @@ import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/l
4
4
  import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
5
5
  import { CellKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
6
6
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
7
- import { getNotebookEditorFromEditorPane, CellEditState } from '@codingame/monaco-vscode-4372ad43-a220-5e78-83e6-95a9cfd64384-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
7
+ import { getNotebookEditorFromEditorPane, CellEditState } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
8
8
  import { UndoCommand, RedoCommand } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorExtensions';
9
9
 
10
10
  let NotebookUndoRedoContribution = class NotebookUndoRedoContribution extends Disposable {
@@ -16,7 +16,7 @@ let NotebookUndoRedoContribution = class NotebookUndoRedoContribution extends Di
16
16
  this._register(UndoCommand.addImplementation(PRIORITY, 'notebook-undo-redo', () => {
17
17
  const editor = getNotebookEditorFromEditorPane(this._editorService.activeEditorPane);
18
18
  const viewModel = editor?.getViewModel();
19
- if (editor && editor.hasModel() && viewModel) {
19
+ if (editor && editor.hasEditorFocus() && editor.hasModel() && viewModel) {
20
20
  return viewModel.undo().then(cellResources => {
21
21
  if (cellResources?.length) {
22
22
  for (let i = 0; i < editor.getLength(); i++) {
@@ -34,7 +34,7 @@ let NotebookUndoRedoContribution = class NotebookUndoRedoContribution extends Di
34
34
  this._register(RedoCommand.addImplementation(PRIORITY, 'notebook-undo-redo', () => {
35
35
  const editor = getNotebookEditorFromEditorPane(this._editorService.activeEditorPane);
36
36
  const viewModel = editor?.getViewModel();
37
- if (editor && editor.hasModel() && viewModel) {
37
+ if (editor && editor.hasEditorFocus() && editor.hasModel() && viewModel) {
38
38
  return viewModel.redo().then(cellResources => {
39
39
  if (cellResources?.length) {
40
40
  for (let i = 0; i < editor.getLength(); i++) {
@@ -3,11 +3,11 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
3
3
  import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
4
4
  import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
5
5
  import { IAccessibilityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility.service';
6
- import { CellEditState, RenderOutputType } from '@codingame/monaco-vscode-4372ad43-a220-5e78-83e6-95a9cfd64384-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
6
+ import { CellEditState, RenderOutputType } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
7
7
  import { registerNotebookContribution } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
8
8
  import { outputDisplayLimit } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
9
9
  import { CellKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
10
- import { cellRangesToIndexes } from '@codingame/monaco-vscode-4372ad43-a220-5e78-83e6-95a9cfd64384-common/vscode/vs/workbench/contrib/notebook/common/notebookRange';
10
+ import { cellRangesToIndexes } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/common/notebookRange';
11
11
  import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
12
12
 
13
13
  let NotebookViewportContribution = class NotebookViewportContribution extends Disposable {