@codingame/monaco-vscode-notebook-service-override 11.1.2 → 12.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 (157) hide show
  1. package/index.d.ts +2 -1
  2. package/index.js +64 -1
  3. package/package.json +47 -15
  4. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.css.js +1 -1
  5. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.d.ts +38 -0
  6. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +43 -41
  7. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.d.ts +1 -0
  8. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +109 -130
  9. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.d.ts +25 -0
  10. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +13 -11
  11. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.d.ts +3 -0
  12. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +72 -19
  13. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.d.ts +7 -0
  14. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +23 -17
  15. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.d.ts +14 -0
  16. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +4 -3
  17. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.d.ts +1 -0
  18. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +30 -28
  19. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.d.ts +18 -0
  20. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.js +76 -0
  21. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts +21 -0
  22. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +61 -58
  23. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.d.ts +1 -0
  24. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +5 -3
  25. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.d.ts +1 -0
  26. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +4 -2
  27. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.d.ts +28 -0
  28. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +8 -7
  29. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.d.ts +20 -0
  30. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +10 -9
  31. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.d.ts +1 -0
  32. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +52 -50
  33. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.d.ts +13 -0
  34. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +3 -2
  35. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/media/notebookFind.css.js +1 -1
  36. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.d.ts +1 -0
  37. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +28 -28
  38. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.d.ts +10 -0
  39. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +51 -50
  40. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.d.ts +10 -0
  41. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +21 -18
  42. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.d.ts +1 -0
  43. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +4 -2
  44. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.d.ts +11 -0
  45. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +3 -2
  46. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.d.ts +1 -0
  47. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +6 -5
  48. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.d.ts +69 -0
  49. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +460 -382
  50. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.d.ts +1 -0
  51. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +124 -0
  52. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.d.ts +1 -0
  53. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +87 -145
  54. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.d.ts +2 -0
  55. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.js +1 -0
  56. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.d.ts +27 -0
  57. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +16 -15
  58. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.d.ts +38 -0
  59. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +8 -7
  60. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.d.ts +34 -0
  61. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +9 -8
  62. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.d.ts +53 -0
  63. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +40 -36
  64. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +112 -0
  65. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +115 -116
  66. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.d.ts +8 -0
  67. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +4 -3
  68. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.d.ts +32 -0
  69. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +111 -117
  70. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.d.ts +17 -0
  71. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +11 -9
  72. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.d.ts +1 -0
  73. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +5 -4
  74. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.d.ts +1 -0
  75. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +7 -6
  76. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.d.ts +1 -0
  77. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +1 -0
  78. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.d.ts +9 -0
  79. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +113 -198
  80. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.d.ts +8 -0
  81. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +25 -23
  82. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.d.ts +3 -0
  83. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +115 -145
  84. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.d.ts +3 -0
  85. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +76 -147
  86. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +13 -0
  87. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +45 -77
  88. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.d.ts +1 -0
  89. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +30 -35
  90. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.d.ts +27 -0
  91. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +19 -18
  92. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.d.ts +30 -0
  93. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +59 -52
  94. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.d.ts +1 -0
  95. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +11 -21
  96. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.d.ts +1 -0
  97. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +69 -113
  98. package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.d.ts +14 -0
  99. package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +194 -184
  100. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.d.ts +10 -0
  101. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +51 -51
  102. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.d.ts +12 -0
  103. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +14 -36
  104. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.d.ts +48 -0
  105. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +57 -56
  106. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.d.ts +16 -0
  107. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.js +1 -0
  108. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +43 -0
  109. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +29 -11
  110. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.d.ts +30 -0
  111. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +17 -16
  112. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.d.ts +46 -0
  113. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +14 -8
  114. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.d.ts +25 -0
  115. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +21 -19
  116. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.d.ts +57 -0
  117. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +7 -4
  118. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.d.ts +20 -0
  119. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +30 -26
  120. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.d.ts +13 -0
  121. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +6 -5
  122. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.d.ts +23 -0
  123. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +2 -1
  124. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +134 -0
  125. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +164 -121
  126. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.d.ts +14 -0
  127. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +2 -1
  128. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.d.ts +21 -0
  129. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +37 -0
  130. package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.d.ts +56 -0
  131. package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +6 -3
  132. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +101 -0
  133. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +131 -55
  134. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.d.ts +29 -0
  135. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +4 -3
  136. package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.d.ts +48 -0
  137. package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +12 -10
  138. package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.d.ts +38 -0
  139. package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.js +1 -0
  140. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.d.ts +50 -0
  141. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +75 -1
  142. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorkerMain.d.ts +1 -0
  143. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorkerMain.js +2 -1
  144. package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.d.ts +31 -0
  145. package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +2 -1
  146. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.d.ts +78 -0
  147. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +45 -42
  148. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.d.ts +96 -0
  149. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +57 -54
  150. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.d.ts +74 -0
  151. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +6 -3
  152. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.d.ts +53 -0
  153. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +2 -1
  154. package/worker.js +2 -1
  155. package/workers/notebook.worker.d.ts +1 -0
  156. package/notebook.js +0 -50
  157. package/workers/notebook.worker.js +0 -1
@@ -0,0 +1,38 @@
1
+ import { IAsyncDataSource } from "vscode/vscode/vs/base/browser/ui/tree/tree";
2
+ import { NotebookTextModel } from "../../../common/model/notebookTextModel.js";
3
+ import { INotebookKernelService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service";
4
+ export interface IEmptyScope {
5
+ kind: "empty";
6
+ }
7
+ export interface INotebookScope {
8
+ kind: "root";
9
+ readonly notebook: NotebookTextModel;
10
+ }
11
+ export interface INotebookVariableElement {
12
+ kind: "variable";
13
+ readonly id: string;
14
+ readonly extHostId: number;
15
+ readonly name: string;
16
+ readonly value: string;
17
+ readonly type?: string;
18
+ readonly interfaces?: string[];
19
+ readonly expression?: string;
20
+ readonly language?: string;
21
+ readonly indexedChildrenCount: number;
22
+ readonly indexStart?: number;
23
+ readonly hasNamedChildren: boolean;
24
+ readonly notebook: NotebookTextModel;
25
+ readonly extensionId?: string;
26
+ }
27
+ export declare class NotebookVariableDataSource implements IAsyncDataSource<INotebookScope, INotebookVariableElement> {
28
+ private readonly notebookKernelService;
29
+ private cancellationTokenSource;
30
+ constructor(notebookKernelService: INotebookKernelService);
31
+ hasChildren(element: INotebookScope | INotebookVariableElement): boolean;
32
+ cancel(): void;
33
+ getChildren(element: INotebookScope | INotebookVariableElement | IEmptyScope): Promise<Array<INotebookVariableElement>>;
34
+ private getVariables;
35
+ private getIndexedChildren;
36
+ private getRootVariables;
37
+ private createVariableElement;
38
+ }
@@ -1,3 +1,4 @@
1
+
1
2
  import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
2
3
  import { localize } from 'vscode/vscode/vs/nls';
3
4
  import { variablePageSize } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService';
@@ -5,7 +6,7 @@ import { variablePageSize } from 'vscode/vscode/vs/workbench/contrib/notebook/co
5
6
  class NotebookVariableDataSource {
6
7
  constructor(notebookKernelService) {
7
8
  this.notebookKernelService = notebookKernelService;
8
- this.cancellationTokenSource = ( (new CancellationTokenSource()));
9
+ this.cancellationTokenSource = ( new CancellationTokenSource());
9
10
  }
10
11
  hasChildren(element) {
11
12
  return element.kind === 'root' || element.hasNamedChildren || element.indexedChildrenCount > 0;
@@ -13,7 +14,7 @@ class NotebookVariableDataSource {
13
14
  cancel() {
14
15
  this.cancellationTokenSource.cancel();
15
16
  this.cancellationTokenSource.dispose();
16
- this.cancellationTokenSource = ( (new CancellationTokenSource()));
17
+ this.cancellationTokenSource = ( new CancellationTokenSource());
17
18
  }
18
19
  async getChildren(element) {
19
20
  if (element.kind === 'empty') {
@@ -32,10 +33,10 @@ class NotebookVariableDataSource {
32
33
  let children = [];
33
34
  if (parent.hasNamedChildren) {
34
35
  const variables = selectedKernel.provideVariables(parent.notebook.uri, parent.extHostId, 'named', 0, this.cancellationTokenSource.token);
35
- const childNodes = await ( (variables
36
+ const childNodes = await ( variables
36
37
  .map(
37
38
  variable => { return this.createVariableElement(variable, parent.notebook); }
38
- )))
39
+ ))
39
40
  .toPromise();
40
41
  children = children.concat(childNodes);
41
42
  }
@@ -77,7 +78,7 @@ class NotebookVariableDataSource {
77
78
  notebook: parent.notebook,
78
79
  id: parent.id + `${last + 1}`,
79
80
  extHostId: parent.extHostId,
80
- name: ( localize(11744, "Display limit reached")),
81
+ name: ( localize(7379, "Display limit reached")),
81
82
  value: '',
82
83
  indexedChildrenCount: 0,
83
84
  hasNamedChildren: false
@@ -99,8 +100,8 @@ class NotebookVariableDataSource {
99
100
  const selectedKernel = this.notebookKernelService.getMatchingKernel(notebook).selected;
100
101
  if (selectedKernel && selectedKernel.hasVariableProvider) {
101
102
  const variables = selectedKernel.provideVariables(notebook.uri, undefined, 'named', 0, this.cancellationTokenSource.token);
102
- return await ( (variables
103
- .map(variable => { return this.createVariableElement(variable, notebook); })))
103
+ return await ( variables
104
+ .map(variable => { return this.createVariableElement(variable, notebook); }))
104
105
  .toPromise();
105
106
  }
106
107
  return [];
@@ -0,0 +1,34 @@
1
+ import { IListVirtualDelegate } from "vscode/vscode/vs/base/browser/ui/list/list";
2
+ import { IListAccessibilityProvider } from "vscode/vscode/vs/base/browser/ui/list/listWidget";
3
+ import { ITreeNode, ITreeRenderer } from "vscode/vscode/vs/base/browser/ui/tree/tree";
4
+ import { FuzzyScore } from "vscode/vscode/vs/base/common/filters";
5
+ import { DisposableStore } from "vscode/vscode/vs/base/common/lifecycle";
6
+ import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
7
+ import { WorkbenchObjectTree } from "vscode/vscode/vs/platform/list/browser/listService";
8
+ import { INotebookVariableElement } from "./notebookVariablesDataSource.js";
9
+ export declare class NotebookVariablesTree extends WorkbenchObjectTree<INotebookVariableElement> {
10
+ }
11
+ export declare class NotebookVariablesDelegate implements IListVirtualDelegate<INotebookVariableElement> {
12
+ getHeight(element: INotebookVariableElement): number;
13
+ getTemplateId(element: INotebookVariableElement): string;
14
+ }
15
+ export interface IVariableTemplateData {
16
+ expression: HTMLElement;
17
+ name: HTMLSpanElement;
18
+ value: HTMLSpanElement;
19
+ elementDisposables: DisposableStore;
20
+ }
21
+ export declare class NotebookVariableRenderer implements ITreeRenderer<INotebookVariableElement, FuzzyScore, IVariableTemplateData> {
22
+ private expressionRenderer;
23
+ static readonly ID = "variableElement";
24
+ get templateId(): string;
25
+ constructor(instantiationService: IInstantiationService);
26
+ renderTemplate(container: HTMLElement): IVariableTemplateData;
27
+ renderElement(element: ITreeNode<INotebookVariableElement, FuzzyScore>, _index: number, data: IVariableTemplateData): void;
28
+ disposeElement(element: ITreeNode<INotebookVariableElement, FuzzyScore>, index: number, templateData: IVariableTemplateData, height: number | undefined): void;
29
+ disposeTemplate(templateData: IVariableTemplateData): void;
30
+ }
31
+ export declare class NotebookVariableAccessibilityProvider implements IListAccessibilityProvider<INotebookVariableElement> {
32
+ getWidgetAriaLabel(): string;
33
+ getAriaLabel(element: INotebookVariableElement): string;
34
+ }
@@ -1,10 +1,11 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { $ as $$1, append } from 'vscode/vscode/vs/base/browser/dom';
3
4
  import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
4
5
  import { localize } from 'vscode/vscode/vs/nls';
5
6
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
6
7
  import 'vscode/vscode/vs/platform/list/browser/listService';
7
- import { DebugExpressionRenderer } from '@codingame/monaco-vscode-debug-notebook-common/vscode/vs/workbench/contrib/debug/browser/debugExpressionRenderer';
8
+ import { DebugExpressionRenderer } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugExpressionRenderer';
8
9
 
9
10
  var NotebookVariableRenderer_1;
10
11
  const $ = $$1;
@@ -30,7 +31,7 @@ let NotebookVariableRenderer = class NotebookVariableRenderer {
30
31
  const expression = append(container, $('.expression'));
31
32
  const name = append(expression, $('span.name'));
32
33
  const value = append(expression, $('span.value'));
33
- const template = { expression, name, value, elementDisposables: ( (new DisposableStore())) };
34
+ const template = { expression, name, value, elementDisposables: ( new DisposableStore()) };
34
35
  return template;
35
36
  }
36
37
  renderElement(element, _index, data) {
@@ -50,15 +51,15 @@ let NotebookVariableRenderer = class NotebookVariableRenderer {
50
51
  templateData.elementDisposables.dispose();
51
52
  }
52
53
  };
53
- NotebookVariableRenderer = NotebookVariableRenderer_1 = ( (__decorate([
54
- ( (__param(0, IInstantiationService)))
55
- ], NotebookVariableRenderer)));
54
+ NotebookVariableRenderer = NotebookVariableRenderer_1 = ( __decorate([
55
+ ( __param(0, IInstantiationService))
56
+ ], NotebookVariableRenderer));
56
57
  class NotebookVariableAccessibilityProvider {
57
58
  getWidgetAriaLabel() {
58
- return ( localize(11745, "Notebook Variables"));
59
+ return localize(7380, "Notebook Variables");
59
60
  }
60
61
  getAriaLabel(element) {
61
- return ( localize(11746, "Variable {0}, value {1}", element.name, element.value));
62
+ return localize(7381, "Variable {0}, value {1}", element.name, element.value);
62
63
  }
63
64
  }
64
65
 
@@ -0,0 +1,53 @@
1
+ import { ILocalizedString } from "vscode/vscode/vs/platform/action/common/action";
2
+ import { IMenuService } from "vscode/vscode/vs/platform/actions/common/actions.service";
3
+ import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
4
+ import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
5
+ import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
6
+ import { IContextMenuService } from "vscode/vscode/vs/platform/contextview/browser/contextView.service";
7
+ import { IHoverService } from "vscode/vscode/vs/platform/hover/browser/hover.service";
8
+ import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
9
+ import { IKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/keybinding.service";
10
+ import { IOpenerService } from "vscode/vscode/vs/platform/opener/common/opener.service";
11
+ import { IQuickInputService } from "vscode/vscode/vs/platform/quickinput/common/quickInput.service";
12
+ import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
13
+ import { IThemeService } from "vscode/vscode/vs/platform/theme/common/themeService.service";
14
+ import { IViewPaneOptions, ViewPane } from "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane";
15
+ import { IViewDescriptorService } from "vscode/vscode/vs/workbench/common/views.service";
16
+ import { INotebookExecutionStateService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
17
+ import { INotebookKernelService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service";
18
+ import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
19
+ export type contextMenuArg = {
20
+ source: string;
21
+ name: string;
22
+ type?: string;
23
+ value?: string;
24
+ expression?: string;
25
+ language?: string;
26
+ extensionId?: string;
27
+ };
28
+ export declare class NotebookVariablesView extends ViewPane {
29
+ private readonly editorService;
30
+ private readonly notebookKernelService;
31
+ private readonly notebookExecutionStateService;
32
+ protected quickInputService: IQuickInputService;
33
+ protected commandService: ICommandService;
34
+ private readonly menuService;
35
+ static readonly ID = "notebookVariablesView";
36
+ static readonly NOTEBOOK_TITLE: ILocalizedString;
37
+ static readonly REPL_TITLE: ILocalizedString;
38
+ private tree;
39
+ private activeNotebook;
40
+ private readonly dataSource;
41
+ private updateScheduler;
42
+ 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, telemetryService: ITelemetryService, hoverService: IHoverService, menuService: IMenuService);
43
+ protected renderBody(container: HTMLElement): void;
44
+ private onContextMenu;
45
+ focus(): void;
46
+ protected layoutBody(height: number, width: number): void;
47
+ private setActiveNotebook;
48
+ private getActiveNotebook;
49
+ private handleCloseEditor;
50
+ private handleActiveEditorChange;
51
+ private handleExecutionStateChange;
52
+ private handleVariablesChanged;
53
+ }
@@ -1,7 +1,8 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
3
4
  import { localize2 } from 'vscode/vscode/vs/nls';
4
- import { createAndFillInContextMenuActions } from 'vscode/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
5
+ import { getFlatContextMenuActions } from 'vscode/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
5
6
  import { MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
6
7
  import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.service';
7
8
  import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
@@ -16,23 +17,23 @@ import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.s
16
17
  import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
17
18
  import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
18
19
  import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
19
- import { ViewPane } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
20
+ import { ViewPane } from '@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane';
20
21
  import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
21
22
  import { CONTEXT_VARIABLE_NAME, CONTEXT_VARIABLE_VALUE, CONTEXT_VARIABLE_TYPE, CONTEXT_VARIABLE_INTERFACES, CONTEXT_VARIABLE_LANGUAGE, CONTEXT_VARIABLE_EXTENSIONID } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
22
23
  import { NotebookVariableDataSource } from './notebookVariablesDataSource.js';
23
24
  import { NotebookVariablesDelegate, NotebookVariableRenderer, NotebookVariableAccessibilityProvider } from './notebookVariablesTree.js';
24
- import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
25
+ import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
25
26
  import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
26
27
  import { INotebookKernelService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
27
28
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
28
- import { isCompositeNotebookEditorInput } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
29
+ import { isCompositeNotebookEditorInput } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
29
30
 
30
31
  var NotebookVariablesView_1;
31
32
  let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
32
33
  static { NotebookVariablesView_1 = this; }
33
34
  static { this.ID = 'notebookVariablesView'; }
34
- static { this.NOTEBOOK_TITLE = ( localize2(10995, "Notebook Variables")); }
35
- static { this.REPL_TITLE = ( localize2(10996, "REPL Variables")); }
35
+ static { this.NOTEBOOK_TITLE = ( localize2(7382, "Notebook Variables")); }
36
+ static { this.REPL_TITLE = ( localize2(7383, "REPL Variables")); }
36
37
  constructor(options, editorService, notebookKernelService, notebookExecutionStateService, keybindingService, contextMenuService, contextKeyService, configurationService, instantiationService, viewDescriptorService, openerService, quickInputService, commandService, themeService, telemetryService, hoverService, menuService) {
37
38
  super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
38
39
  this.editorService = editorService;
@@ -46,14 +47,14 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
46
47
  this._register(this.notebookExecutionStateService.onDidChangeExecution(this.handleExecutionStateChange.bind(this)));
47
48
  this._register(this.editorService.onDidCloseEditor((e) => this.handleCloseEditor(e)));
48
49
  this.handleActiveEditorChange(false);
49
- this.dataSource = ( (new NotebookVariableDataSource(this.notebookKernelService)));
50
- this.updateScheduler = ( (new RunOnceScheduler(() => this.tree?.updateChildren(), 100)));
50
+ this.dataSource = ( new NotebookVariableDataSource(this.notebookKernelService));
51
+ this.updateScheduler = ( new RunOnceScheduler(() => this.tree?.updateChildren(), 100));
51
52
  }
52
53
  renderBody(container) {
53
54
  super.renderBody(container);
54
55
  this.element.classList.add('debug-pane');
55
- this.tree = this.instantiationService.createInstance(WorkbenchAsyncDataTree, 'notebookVariablesTree', container, ( (new NotebookVariablesDelegate())), [this.instantiationService.createInstance(NotebookVariableRenderer)], this.dataSource, {
56
- accessibilityProvider: ( (new NotebookVariableAccessibilityProvider())),
56
+ this.tree = this.instantiationService.createInstance((WorkbenchAsyncDataTree), 'notebookVariablesTree', container, ( new NotebookVariablesDelegate()), [this.instantiationService.createInstance(NotebookVariableRenderer)], this.dataSource, {
57
+ accessibilityProvider: ( new NotebookVariableAccessibilityProvider()),
57
58
  identityProvider: { getId: (e) => e.id },
58
59
  });
59
60
  this.tree.layout();
@@ -68,7 +69,7 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
68
69
  }
69
70
  const element = e.element;
70
71
  const arg = {
71
- source: ( (element.notebook.uri.toString())),
72
+ source: ( element.notebook.uri.toString()),
72
73
  name: element.name,
73
74
  value: element.value,
74
75
  type: element.type,
@@ -76,7 +77,6 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
76
77
  language: element.language,
77
78
  extensionId: element.extensionId
78
79
  };
79
- const actions = [];
80
80
  const overlayedContext = this.contextKeyService.createOverlay([
81
81
  [CONTEXT_VARIABLE_NAME.key, element.name],
82
82
  [CONTEXT_VARIABLE_VALUE.key, element.value],
@@ -85,13 +85,17 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
85
85
  [CONTEXT_VARIABLE_LANGUAGE.key, element.language],
86
86
  [CONTEXT_VARIABLE_EXTENSIONID.key, element.extensionId]
87
87
  ]);
88
- const menu = this.menuService.getMenuActions(MenuId.NotebookVariablesContext, overlayedContext, { arg, shouldForwardArgs: true });
89
- createAndFillInContextMenuActions(menu, actions);
88
+ const menuActions = this.menuService.getMenuActions(MenuId.NotebookVariablesContext, overlayedContext, { arg, shouldForwardArgs: true });
89
+ const actions = getFlatContextMenuActions(menuActions);
90
90
  this.contextMenuService.showContextMenu({
91
91
  getAnchor: () => e.anchor,
92
92
  getActions: () => actions
93
93
  });
94
94
  }
95
+ focus() {
96
+ super.focus();
97
+ this.tree?.domFocus();
98
+ }
95
99
  layoutBody(height, width) {
96
100
  super.layoutBody(height, width);
97
101
  this.tree?.layout(height, width);
@@ -115,7 +119,7 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
115
119
  return notebookDocument && notebookEditor ? { notebookDocument, notebookEditor } : undefined;
116
120
  }
117
121
  handleCloseEditor(e) {
118
- if (e.editor.resource && ( (e.editor.resource.toString())) === this.activeNotebook?.uri.toString()) {
122
+ if (e.editor.resource && ( e.editor.resource.toString()) === this.activeNotebook?.uri.toString()) {
119
123
  this.tree?.setInput({ kind: 'empty' });
120
124
  this.updateScheduler.schedule();
121
125
  }
@@ -146,36 +150,36 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
146
150
  }
147
151
  }
148
152
  handleVariablesChanged(notebookUri) {
149
- if (this.activeNotebook && ( (notebookUri.toString())) === ( (this.activeNotebook.uri.toString()))) {
153
+ if (this.activeNotebook && ( notebookUri.toString()) === ( this.activeNotebook.uri.toString())) {
150
154
  this.updateScheduler.schedule();
151
155
  }
152
156
  else if (!this.getActiveNotebook()) {
153
157
  this.editorService.visibleEditorPanes.forEach(editor => {
154
158
  const notebookDocument = getNotebookEditorFromEditorPane(editor)?.textModel;
155
- if (notebookDocument && ( (notebookDocument.uri.toString())) === ( (notebookUri.toString()))) {
159
+ if (notebookDocument && ( notebookDocument.uri.toString()) === ( notebookUri.toString())) {
156
160
  this.setActiveNotebook(notebookDocument, editor);
157
161
  }
158
162
  });
159
163
  }
160
164
  }
161
165
  };
162
- NotebookVariablesView = NotebookVariablesView_1 = ( (__decorate([
163
- ( (__param(1, IEditorService))),
164
- ( (__param(2, INotebookKernelService))),
165
- ( (__param(3, INotebookExecutionStateService))),
166
- ( (__param(4, IKeybindingService))),
167
- ( (__param(5, IContextMenuService))),
168
- ( (__param(6, IContextKeyService))),
169
- ( (__param(7, IConfigurationService))),
170
- ( (__param(8, IInstantiationService))),
171
- ( (__param(9, IViewDescriptorService))),
172
- ( (__param(10, IOpenerService))),
173
- ( (__param(11, IQuickInputService))),
174
- ( (__param(12, ICommandService))),
175
- ( (__param(13, IThemeService))),
176
- ( (__param(14, ITelemetryService))),
177
- ( (__param(15, IHoverService))),
178
- ( (__param(16, IMenuService)))
179
- ], NotebookVariablesView)));
166
+ NotebookVariablesView = NotebookVariablesView_1 = ( __decorate([
167
+ ( __param(1, IEditorService)),
168
+ ( __param(2, INotebookKernelService)),
169
+ ( __param(3, INotebookExecutionStateService)),
170
+ ( __param(4, IKeybindingService)),
171
+ ( __param(5, IContextMenuService)),
172
+ ( __param(6, IContextKeyService)),
173
+ ( __param(7, IConfigurationService)),
174
+ ( __param(8, IInstantiationService)),
175
+ ( __param(9, IViewDescriptorService)),
176
+ ( __param(10, IOpenerService)),
177
+ ( __param(11, IQuickInputService)),
178
+ ( __param(12, ICommandService)),
179
+ ( __param(13, IThemeService)),
180
+ ( __param(14, ITelemetryService)),
181
+ ( __param(15, IHoverService)),
182
+ ( __param(16, IMenuService))
183
+ ], NotebookVariablesView));
180
184
 
181
185
  export { NotebookVariablesView };
@@ -0,0 +1,112 @@
1
+ import { IDataSource } from "vscode/vscode/vs/base/browser/ui/tree/tree";
2
+ import { Event } from "vscode/vscode/vs/base/common/event";
3
+ import { IDisposable, type IReference } from "vscode/vscode/vs/base/common/lifecycle";
4
+ import { URI } from "vscode/vscode/vs/base/common/uri";
5
+ import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
6
+ import { IEditorOptions } from "vscode/vscode/vs/platform/editor/common/editor";
7
+ import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
8
+ import { IThemeService } from "vscode/vscode/vs/platform/theme/common/themeService.service";
9
+ import { IEditorPane } from "vscode/vscode/vs/workbench/common/editor";
10
+ import { CellFoldingState, INotebookEditorPane } from "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
11
+ import { NotebookEditor } from "@codingame/monaco-vscode-6f9bc782-77e0-5716-93bd-b05210c768c5-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditor";
12
+ import { INotebookCellOutlineDataSource } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSource";
13
+ import { CellKind } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
14
+ import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
15
+ import { IBreadcrumbsDataSource, IOutline, IOutlineCreator, IOutlineListConfig, IQuickPickDataSource, IQuickPickOutlineElement, OutlineChangeEvent, OutlineTarget } from "@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common/vscode/vs/workbench/services/outline/browser/outline";
16
+ import { IOutlineService } from "vscode/vscode/vs/workbench/services/outline/browser/outline.service";
17
+ import { OutlineEntry } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry";
18
+ import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
19
+ import { RawContextKey } from "vscode/vscode/vs/platform/contextkey/common/contextkey";
20
+ import { INotebookExecutionStateService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
21
+ import { ILanguageFeaturesService } from "vscode/vscode/vs/editor/common/services/languageFeatures";
22
+ export declare class NotebookQuickPickProvider implements IQuickPickDataSource<OutlineEntry> {
23
+ private readonly notebookCellOutlineDataSourceRef;
24
+ private readonly _configurationService;
25
+ private readonly _themeService;
26
+ private readonly _disposables;
27
+ private gotoShowCodeCellSymbols;
28
+ constructor(notebookCellOutlineDataSourceRef: IReference<INotebookCellOutlineDataSource> | undefined, _configurationService: IConfigurationService, _themeService: IThemeService);
29
+ getQuickPickElements(): IQuickPickOutlineElement<OutlineEntry>[];
30
+ dispose(): void;
31
+ }
32
+ export declare class NotebookOutlinePaneProvider implements IDataSource<NotebookCellOutline, OutlineEntry> {
33
+ private readonly outlineDataSourceRef;
34
+ private readonly _configurationService;
35
+ private readonly _disposables;
36
+ private showCodeCells;
37
+ private showCodeCellSymbols;
38
+ private showMarkdownHeadersOnly;
39
+ constructor(outlineDataSourceRef: IReference<INotebookCellOutlineDataSource> | undefined, _configurationService: IConfigurationService);
40
+ getActiveEntry(): OutlineEntry | undefined;
41
+ private filterEntry;
42
+ getChildren(element: NotebookCellOutline | OutlineEntry): Iterable<OutlineEntry>;
43
+ dispose(): void;
44
+ }
45
+ export declare class NotebookBreadcrumbsProvider implements IBreadcrumbsDataSource<OutlineEntry> {
46
+ private readonly outlineDataSourceRef;
47
+ private readonly _configurationService;
48
+ private readonly _disposables;
49
+ private showCodeCells;
50
+ constructor(outlineDataSourceRef: IReference<INotebookCellOutlineDataSource> | undefined, _configurationService: IConfigurationService);
51
+ getBreadcrumbElements(): readonly OutlineEntry[];
52
+ dispose(): void;
53
+ }
54
+ export declare class NotebookCellOutline implements IOutline<OutlineEntry> {
55
+ private readonly _editor;
56
+ private readonly _target;
57
+ private readonly _themeService;
58
+ private readonly _editorService;
59
+ private readonly _instantiationService;
60
+ private readonly _configurationService;
61
+ private readonly _languageFeaturesService;
62
+ private readonly _notebookExecutionStateService;
63
+ readonly outlineKind = "notebookCells";
64
+ private readonly _disposables;
65
+ private readonly _modelDisposables;
66
+ private readonly _dataSourceDisposables;
67
+ private readonly _onDidChange;
68
+ readonly onDidChange: Event<OutlineChangeEvent>;
69
+ private readonly delayerRecomputeState;
70
+ private readonly delayerRecomputeActive;
71
+ private readonly delayerRecomputeSymbols;
72
+ readonly config: IOutlineListConfig<OutlineEntry>;
73
+ private _outlineDataSourceReference;
74
+ private _treeDataSource;
75
+ private _quickPickDataSource;
76
+ private _breadcrumbsDataSource;
77
+ private outlineShowCodeCellSymbols;
78
+ get activeElement(): OutlineEntry | undefined;
79
+ get entries(): OutlineEntry[];
80
+ get uri(): URI | undefined;
81
+ get isEmpty(): boolean;
82
+ private checkDelayer;
83
+ constructor(_editor: INotebookEditorPane, _target: OutlineTarget, _themeService: IThemeService, _editorService: IEditorService, _instantiationService: IInstantiationService, _configurationService: IConfigurationService, _languageFeaturesService: ILanguageFeaturesService, _notebookExecutionStateService: INotebookExecutionStateService);
84
+ private initializeOutline;
85
+ private setDataSources;
86
+ private setModelListeners;
87
+ private computeSymbols;
88
+ doComputeSymbols(cancelToken: CancellationToken): Promise<void>;
89
+ private delayedComputeSymbols;
90
+ private recomputeState;
91
+ private delayedRecomputeState;
92
+ private recomputeActive;
93
+ private delayedRecomputeActive;
94
+ reveal(entry: OutlineEntry, options: IEditorOptions, sideBySide: boolean): Promise<void>;
95
+ preview(entry: OutlineEntry): IDisposable;
96
+ captureViewState(): IDisposable;
97
+ dispose(): void;
98
+ }
99
+ export declare class NotebookOutlineCreator implements IOutlineCreator<NotebookEditor, OutlineEntry> {
100
+ private readonly _instantiationService;
101
+ readonly dispose: () => void;
102
+ constructor(outlineService: IOutlineService, _instantiationService: IInstantiationService);
103
+ matches(candidate: IEditorPane): candidate is NotebookEditor;
104
+ createOutline(editor: INotebookEditorPane, target: OutlineTarget, cancelToken: CancellationToken): Promise<IOutline<OutlineEntry> | undefined>;
105
+ }
106
+ export declare const NotebookOutlineContext: {
107
+ CellKind: RawContextKey<CellKind>;
108
+ CellHasChildren: RawContextKey<boolean>;
109
+ CellHasHeader: RawContextKey<boolean>;
110
+ CellFoldingState: RawContextKey<CellFoldingState>;
111
+ OutlineElementTarget: RawContextKey<OutlineTarget>;
112
+ };