@codingame/monaco-vscode-notebook-service-override 11.1.1 → 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
package/index.d.ts CHANGED
@@ -1 +1,2 @@
1
- export { default } from 'vscode/service-override/notebook';
1
+ import { type IEditorOverrideServices } from "vscode/vscode/vs/editor/standalone/browser/standaloneServices";
2
+ export default function getServiceOverride(): IEditorOverrideServices;
package/index.js CHANGED
@@ -1 +1,64 @@
1
- export { default } from './notebook.js';
1
+
2
+ import 'vscode/vscode/vs/editor/standalone/browser/standaloneServices';
3
+ import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
4
+ import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
5
+ import { NotebookService } from './vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js';
6
+ import { INotebookEditorModelResolverService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.service';
7
+ import { INotebookEditorWorkerService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/services/notebookWorkerService.service';
8
+ import { NotebookEditorWorkerServiceImpl } from './vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js';
9
+ import { INotebookCellStatusBarService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCellStatusBarService.service';
10
+ import { NotebookCellStatusBarService } from './vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.js';
11
+ import { INotebookEditorService } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service';
12
+ import { NotebookEditorWidgetService } from './vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js';
13
+ import { NotebookModelResolverServiceImpl } from './vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js';
14
+ import { INotebookKernelService, INotebookKernelHistoryService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
15
+ import { NotebookKernelService } from './vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js';
16
+ import { NotebookRendererMessagingService } from './vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js';
17
+ import { INotebookRendererMessagingService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookRendererMessagingService.service';
18
+ import { NotebookExecutionStateService } from './vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js';
19
+ import { NotebookExecutionService } from './vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js';
20
+ import { INotebookExecutionService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService.service';
21
+ import { INotebookKeymapService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookKeymapService.service';
22
+ import { NotebookKeymapService } from './vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js';
23
+ import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
24
+ import { NotebookKernelHistoryService } from './vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js';
25
+ import { INotebookLoggingService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookLoggingService.service';
26
+ import { NotebookLoggingService } from './vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js';
27
+ import { INotebookSearchService } from 'vscode/vscode/vs/workbench/contrib/search/common/notebookSearch.service';
28
+ import { NotebookSearchService } from '@codingame/monaco-vscode-6f9bc782-77e0-5716-93bd-b05210c768c5-common/vscode/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService';
29
+ import { NotebookDocumentWorkbenchService } from 'vscode/vscode/vs/workbench/services/notebook/common/notebookDocumentService';
30
+ import { INotebookDocumentService } from 'vscode/vscode/vs/workbench/services/notebook/common/notebookDocumentService.service';
31
+ import { INotebookSynchronizerService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookSynchronizerService.service';
32
+ import { NotebookSynchronizerService } from './vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.js';
33
+ import { INotebookOriginalCellModelFactory } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalCellModelFactory.service';
34
+ import { INotebookOriginalModelReferenceFactory } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalModelRefFactory.service';
35
+ import { NotebookOriginalModelReferenceFactory } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalModelRefFactory';
36
+ import { INotebookModelSynchronizerFactory } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizer.service';
37
+ import { NotebookModelSynchronizerFactory } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizer';
38
+ import { OriginalNotebookCellModelFactory } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalCellModelFactory';
39
+ import './vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js';
40
+
41
+ function getServiceOverride() {
42
+ return {
43
+ [INotebookService.toString()]: new SyncDescriptor(NotebookService, [], true),
44
+ [INotebookEditorWorkerService.toString()]: new SyncDescriptor(NotebookEditorWorkerServiceImpl, [], true),
45
+ [INotebookEditorModelResolverService.toString()]: new SyncDescriptor(NotebookModelResolverServiceImpl, [], true),
46
+ [INotebookCellStatusBarService.toString()]: new SyncDescriptor(NotebookCellStatusBarService, [], true),
47
+ [INotebookEditorService.toString()]: new SyncDescriptor(NotebookEditorWidgetService, [], true),
48
+ [INotebookKernelService.toString()]: new SyncDescriptor(NotebookKernelService, [], true),
49
+ [INotebookKernelHistoryService.toString()]: new SyncDescriptor(NotebookKernelHistoryService, [], true),
50
+ [INotebookExecutionService.toString()]: new SyncDescriptor(NotebookExecutionService, [], true),
51
+ [INotebookExecutionStateService.toString()]: new SyncDescriptor(NotebookExecutionStateService, [], true),
52
+ [INotebookRendererMessagingService.toString()]: new SyncDescriptor(NotebookRendererMessagingService, [], true),
53
+ [INotebookKeymapService.toString()]: new SyncDescriptor(NotebookKeymapService, [], true),
54
+ [INotebookLoggingService.toString()]: new SyncDescriptor(NotebookLoggingService, [], true),
55
+ [INotebookSearchService.toString()]: new SyncDescriptor(NotebookSearchService, [], true),
56
+ [INotebookDocumentService.toString()]: new SyncDescriptor(NotebookDocumentWorkbenchService, [], true),
57
+ [INotebookSynchronizerService.toString()]: new SyncDescriptor(NotebookSynchronizerService, [], true),
58
+ [INotebookOriginalCellModelFactory.toString()]: new SyncDescriptor(OriginalNotebookCellModelFactory, [], true),
59
+ [INotebookOriginalModelReferenceFactory.toString()]: new SyncDescriptor(NotebookOriginalModelReferenceFactory, [], true),
60
+ [INotebookModelSynchronizerFactory.toString()]: new SyncDescriptor(NotebookModelSynchronizerFactory, [], true)
61
+ };
62
+ }
63
+
64
+ export { getServiceOverride as default };
package/package.json CHANGED
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-notebook-service-override",
3
- "version": "11.1.1",
3
+ "version": "12.0.0",
4
+ "private": false,
5
+ "description": "VSCode public API plugged on the monaco editor - notebook service-override",
4
6
  "keywords": [],
5
7
  "author": {
6
8
  "name": "CodinGame",
@@ -12,8 +14,44 @@
12
14
  "url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
13
15
  },
14
16
  "type": "module",
15
- "private": false,
16
- "description": "VSCode public API plugged on the monaco editor - notebook service-override",
17
+ "dependencies": {
18
+ "@codingame/monaco-vscode-0b087f42-a5a3-5eb9-9bfd-1eebc1bba163-common": "12.0.0",
19
+ "@codingame/monaco-vscode-0cd5242b-7b61-5f66-ac25-ffa40baf8e8f-common": "12.0.0",
20
+ "@codingame/monaco-vscode-1ae7d696-d960-5ac6-97a3-9fe7c8c3a793-common": "12.0.0",
21
+ "@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common": "12.0.0",
22
+ "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common": "12.0.0",
23
+ "@codingame/monaco-vscode-3a00040f-b81b-50bc-88da-35f611c0bd1e-common": "12.0.0",
24
+ "@codingame/monaco-vscode-47923ab1-c4c8-58b5-89ac-fa1b998eb5dd-common": "12.0.0",
25
+ "@codingame/monaco-vscode-4a36e358-d94d-55e0-86ee-3bcd543d9d3f-common": "12.0.0",
26
+ "@codingame/monaco-vscode-4e719823-8b6e-554d-b01a-5670b53fbb19-common": "12.0.0",
27
+ "@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common": "12.0.0",
28
+ "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "12.0.0",
29
+ "@codingame/monaco-vscode-695440c8-a687-5594-b476-bbc7b36bafe9-common": "12.0.0",
30
+ "@codingame/monaco-vscode-6f9bc782-77e0-5716-93bd-b05210c768c5-common": "12.0.0",
31
+ "@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common": "12.0.0",
32
+ "@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "12.0.0",
33
+ "@codingame/monaco-vscode-99f24462-c56d-5407-83fb-2ea9dd33cc8c-common": "12.0.0",
34
+ "@codingame/monaco-vscode-9d05a43d-c330-5ff1-937e-fde4a3852931-common": "12.0.0",
35
+ "@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "12.0.0",
36
+ "@codingame/monaco-vscode-9ee79c1a-3f03-568b-8eac-b02513a98b68-common": "12.0.0",
37
+ "@codingame/monaco-vscode-a4683c2b-a0d2-5112-96ba-eedc605346d2-common": "12.0.0",
38
+ "@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common": "12.0.0",
39
+ "@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common": "12.0.0",
40
+ "@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common": "12.0.0",
41
+ "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "12.0.0",
42
+ "@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common": "12.0.0",
43
+ "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common": "12.0.0",
44
+ "marked": "12.0.0",
45
+ "vscode": "npm:@codingame/monaco-vscode-api@12.0.0"
46
+ },
47
+ "peerDependencies": {
48
+ "@codingame/monaco-vscode-base-service-override": "12.0.0"
49
+ },
50
+ "peerDependenciesMeta": {
51
+ "@codingame/monaco-vscode-base-service-override": {
52
+ "optional": true
53
+ }
54
+ },
17
55
  "main": "index.js",
18
56
  "module": "index.js",
19
57
  "types": "index.d.ts",
@@ -22,21 +60,15 @@
22
60
  "default": "./index.js"
23
61
  },
24
62
  "./vscode/*": {
25
- "default": "./vscode/src/*.js"
63
+ "default": "./vscode/src/*.js",
64
+ "types": "./vscode/src/*.d.ts"
26
65
  },
27
66
  "./worker": {
28
67
  "default": "./worker.js"
68
+ },
69
+ "./*": {
70
+ "default": "./*.js",
71
+ "types": "./*.d.ts"
29
72
  }
30
- },
31
- "dependencies": {
32
- "vscode": "npm:@codingame/monaco-vscode-api@11.1.1",
33
- "@codingame/monaco-vscode-chat-notebook-common": "11.1.1",
34
- "@codingame/monaco-vscode-chat-interactive-notebook-search-common": "11.1.1",
35
- "@codingame/monaco-vscode-chat-comments-extensions-interactive-notebook-search-common": "11.1.1",
36
- "@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common": "11.1.1",
37
- "@codingame/monaco-vscode-chat-extensions-notebook-common": "11.1.1",
38
- "@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common": "11.1.1",
39
- "@codingame/monaco-vscode-debug-notebook-common": "11.1.1",
40
- "@codingame/monaco-vscode-chat-notebook-terminal-common": "11.1.1"
41
73
  }
42
74
  }
@@ -1,4 +1,4 @@
1
- import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css.js';
1
+ import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css';
2
2
 
3
3
  var css = ".monaco-editor .contentWidgets .empty-editor-hint{color:var(--vscode-input-placeholderForeground)}.monaco-editor .contentWidgets .empty-editor-hint a{color:var(--vscode-textLink-foreground)}";
4
4
  n(css,{});
@@ -0,0 +1,38 @@
1
+ import { IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
2
+ import { ICodeEditor } from "vscode/vscode/vs/editor/browser/editorBrowser";
3
+ import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
4
+ import { IEditorContribution } from "vscode/vscode/vs/editor/common/editorCommon";
5
+ import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
6
+ import { IKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/keybinding.service";
7
+ import { IEditorGroupsService } from "vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
8
+ import { IInlineChatSessionService } from "vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service";
9
+ import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
10
+ import { IProductService } from "vscode/vscode/vs/platform/product/common/productService.service";
11
+ import { IHoverService } from "vscode/vscode/vs/platform/hover/browser/hover.service";
12
+ import { IChatAgentService } from "vscode/vscode/vs/workbench/contrib/chat/common/chatAgents.service";
13
+ import { IContextMenuService } from "vscode/vscode/vs/platform/contextview/browser/contextView.service";
14
+ export interface IEmptyTextEditorHintOptions {
15
+ readonly clickable?: boolean;
16
+ }
17
+ export declare const emptyTextEditorHintSetting = "workbench.editor.empty.hint";
18
+ export declare class EmptyTextEditorHintContribution implements IEditorContribution {
19
+ protected readonly editor: ICodeEditor;
20
+ private readonly editorGroupsService;
21
+ private readonly commandService;
22
+ protected readonly configurationService: IConfigurationService;
23
+ protected readonly hoverService: IHoverService;
24
+ private readonly keybindingService;
25
+ private readonly inlineChatSessionService;
26
+ private readonly chatAgentService;
27
+ private readonly telemetryService;
28
+ protected readonly productService: IProductService;
29
+ private readonly contextMenuService;
30
+ static readonly ID = "editor.contrib.emptyTextEditorHint";
31
+ protected toDispose: IDisposable[];
32
+ private textHintContentWidget;
33
+ constructor(editor: ICodeEditor, editorGroupsService: IEditorGroupsService, commandService: ICommandService, configurationService: IConfigurationService, hoverService: IHoverService, keybindingService: IKeybindingService, inlineChatSessionService: IInlineChatSessionService, chatAgentService: IChatAgentService, telemetryService: ITelemetryService, productService: IProductService, contextMenuService: IContextMenuService);
34
+ protected _getOptions(): IEmptyTextEditorHintOptions;
35
+ protected _shouldRenderHint(): boolean;
36
+ protected update(): void;
37
+ dispose(): void;
38
+ }
@@ -1,25 +1,29 @@
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 './emptyTextEditorHint.css.js';
3
4
  import { $ as $$1, getActiveWindow, addDisposableListener, EventType } from 'vscode/vscode/vs/base/browser/dom';
4
5
  import { dispose, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
6
+ import { ContentWidgetPositionPreference } from 'vscode/vscode/vs/editor/browser/editorBrowser';
5
7
  import { localize } from 'vscode/vscode/vs/nls';
6
- import { ChangeLanguageAction } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorStatus';
8
+ import { ChangeLanguageAction } from '@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common/vscode/vs/workbench/browser/parts/editor/editorStatus';
7
9
  import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
8
10
  import { PLAINTEXT_LANGUAGE_ID } from 'vscode/vscode/vs/editor/common/languages/modesRegistry';
9
11
  import { Schemas } from 'vscode/vscode/vs/base/common/network';
10
12
  import { Event } from 'vscode/vscode/vs/base/common/event';
11
13
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
12
- import { registerEditorContribution } from 'vscode/vscode/vs/editor/browser/editorExtensions';
14
+ import { EditorOption } from 'vscode/vscode/vs/editor/common/config/editorOptions';
15
+ import { registerEditorContribution, EditorContributionInstantiation } from 'vscode/vscode/vs/editor/browser/editorExtensions';
13
16
  import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
14
17
  import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
15
18
  import { renderFormattedText } from 'vscode/vscode/vs/base/browser/formattedTextRenderer';
16
- import { ApplyFileSnippetAction } from 'vscode/vscode/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets';
19
+ import { ApplyFileSnippetAction } from '@codingame/monaco-vscode-4e719823-8b6e-554d-b01a-5670b53fbb19-common/vscode/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets';
17
20
  import { IInlineChatSessionService } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service';
18
21
  import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
19
22
  import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
20
23
  import { KeybindingLabel } from 'vscode/vscode/vs/base/browser/ui/keybindingLabel/keybindingLabel';
21
24
  import { OS } from 'vscode/vscode/vs/base/common/platform';
22
25
  import { status } from 'vscode/vscode/vs/base/browser/ui/aria/aria';
26
+ import { AccessibilityVerbositySettingId } from 'vscode/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
23
27
  import { OUTPUT_MODE_ID, LOG_MODE_ID } from 'vscode/vscode/vs/workbench/services/output/common/output';
24
28
  import { SEARCH_RESULT_LANGUAGE_ID } from 'vscode/vscode/vs/workbench/services/search/common/search';
25
29
  import { getDefaultHoverDelegate } from 'vscode/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
@@ -52,7 +56,7 @@ let EmptyTextEditorHintContribution = class EmptyTextEditorHintContribution {
52
56
  this.toDispose.push(this.chatAgentService.onDidChangeAgents(() => this.update()));
53
57
  this.toDispose.push(this.editor.onDidChangeModelDecorations(() => this.update()));
54
58
  this.toDispose.push(this.editor.onDidChangeConfiguration((e) => {
55
- if (e.hasChanged(94 )) {
59
+ if (e.hasChanged(EditorOption.readOnly)) {
56
60
  this.update();
57
61
  }
58
62
  }));
@@ -80,7 +84,7 @@ let EmptyTextEditorHintContribution = class EmptyTextEditorHintContribution {
80
84
  if (configValue === 'hidden') {
81
85
  return false;
82
86
  }
83
- if (this.editor.getOption(94 )) {
87
+ if (this.editor.getOption(EditorOption.readOnly)) {
84
88
  return false;
85
89
  }
86
90
  const model = this.editor.getModel();
@@ -108,7 +112,7 @@ let EmptyTextEditorHintContribution = class EmptyTextEditorHintContribution {
108
112
  update() {
109
113
  const shouldRenderHint = this._shouldRenderHint();
110
114
  if (shouldRenderHint && !this.textHintContentWidget) {
111
- this.textHintContentWidget = ( (new EmptyTextEditorHintContentWidget(
115
+ this.textHintContentWidget = ( new EmptyTextEditorHintContentWidget(
112
116
  this.editor,
113
117
  this._getOptions(),
114
118
  this.editorGroupsService,
@@ -120,7 +124,7 @@ let EmptyTextEditorHintContribution = class EmptyTextEditorHintContribution {
120
124
  this.telemetryService,
121
125
  this.productService,
122
126
  this.contextMenuService
123
- )));
127
+ ));
124
128
  }
125
129
  else if (!shouldRenderHint && this.textHintContentWidget) {
126
130
  this.textHintContentWidget.dispose();
@@ -132,18 +136,18 @@ let EmptyTextEditorHintContribution = class EmptyTextEditorHintContribution {
132
136
  this.textHintContentWidget?.dispose();
133
137
  }
134
138
  };
135
- EmptyTextEditorHintContribution = ( (__decorate([
136
- ( (__param(1, IEditorGroupsService))),
137
- ( (__param(2, ICommandService))),
138
- ( (__param(3, IConfigurationService))),
139
- ( (__param(4, IHoverService))),
140
- ( (__param(5, IKeybindingService))),
141
- ( (__param(6, IInlineChatSessionService))),
142
- ( (__param(7, IChatAgentService))),
143
- ( (__param(8, ITelemetryService))),
144
- ( (__param(9, IProductService))),
145
- ( (__param(10, IContextMenuService)))
146
- ], EmptyTextEditorHintContribution)));
139
+ EmptyTextEditorHintContribution = ( __decorate([
140
+ ( __param(1, IEditorGroupsService)),
141
+ ( __param(2, ICommandService)),
142
+ ( __param(3, IConfigurationService)),
143
+ ( __param(4, IHoverService)),
144
+ ( __param(5, IKeybindingService)),
145
+ ( __param(6, IInlineChatSessionService)),
146
+ ( __param(7, IChatAgentService)),
147
+ ( __param(8, ITelemetryService)),
148
+ ( __param(9, IProductService)),
149
+ ( __param(10, IContextMenuService))
150
+ ], EmptyTextEditorHintContribution));
147
151
  class EmptyTextEditorHintContentWidget {
148
152
  static { this.ID = 'editor.widget.emptyHint'; }
149
153
  constructor(editor, options, editorGroupsService, commandService, configurationService, hoverService, keybindingService, chatAgentService, telemetryService, productService, contextMenuService) {
@@ -160,15 +164,15 @@ class EmptyTextEditorHintContentWidget {
160
164
  this.contextMenuService = contextMenuService;
161
165
  this.isVisible = false;
162
166
  this.ariaLabel = '';
163
- this.toDispose = ( (new DisposableStore()));
167
+ this.toDispose = ( new DisposableStore());
164
168
  this.toDispose.add(this.editor.onDidChangeConfiguration((e) => {
165
- if (this.domNode && e.hasChanged(52 )) {
169
+ if (this.domNode && e.hasChanged(EditorOption.fontInfo)) {
166
170
  this.editor.applyFontInfo(this.domNode);
167
171
  }
168
172
  }));
169
173
  const onDidFocusEditorText = Event.debounce(this.editor.onDidFocusEditorText, () => undefined, 500);
170
174
  this.toDispose.add(onDidFocusEditorText(() => {
171
- if (this.editor.hasTextFocus() && this.isVisible && this.ariaLabel && this.configurationService.getValue("accessibility.verbosity.emptyEditorHint" )) {
175
+ if (this.editor.hasTextFocus() && this.isVisible && this.ariaLabel && this.configurationService.getValue(AccessibilityVerbositySettingId.EmptyEditorHint)) {
172
176
  status(this.ariaLabel);
173
177
  }
174
178
  }));
@@ -188,14 +192,12 @@ class EmptyTextEditorHintContentWidget {
188
192
  return;
189
193
  }
190
194
  this.contextMenuService.showContextMenu({
191
- getAnchor: () => { return (
192
- (new StandardMouseEvent(getActiveWindow(), e))
193
- ); },
195
+ getAnchor: () => { return ( new StandardMouseEvent(getActiveWindow(), e)); },
194
196
  getActions: () => {
195
197
  return [{
196
198
  id: 'workench.action.disableEmptyEditorHint',
197
- label: ( localize(10969, "Disable Empty Editor Hint")),
198
- tooltip: ( localize(10969, "Disable Empty Editor Hint")),
199
+ label: ( localize(4669, "Disable Empty Editor Hint")),
200
+ tooltip: ( localize(4669, "Disable Empty Editor Hint")),
199
201
  enabled: true,
200
202
  class: undefined,
201
203
  run: () => {
@@ -233,12 +235,12 @@ class EmptyTextEditorHintContentWidget {
233
235
  const keybindingHintLabel = keybindingHint?.getLabel();
234
236
  if (keybindingHint && keybindingHintLabel) {
235
237
  const actionPart = ( localize(
236
- 10970,
238
+ 4670,
237
239
  'Press {0} to ask {1} to do something. ',
238
240
  keybindingHintLabel,
239
241
  providerName
240
242
  ));
241
- const [before, after] = ( (actionPart.split(keybindingHintLabel).map((fragment) => {
243
+ const [before, after] = ( actionPart.split(keybindingHintLabel).map((fragment) => {
242
244
  if (this.options.clickable) {
243
245
  const hintPart = $('a', undefined, fragment);
244
246
  hintPart.style.fontStyle = 'italic';
@@ -252,9 +254,9 @@ class EmptyTextEditorHintContentWidget {
252
254
  hintPart.style.fontStyle = 'italic';
253
255
  return hintPart;
254
256
  }
255
- })));
257
+ }));
256
258
  hintElement.appendChild(before);
257
- const label = hintHandler.disposables.add(( (new KeybindingLabel(hintElement, OS))));
259
+ const label = hintHandler.disposables.add(( new KeybindingLabel(hintElement, OS)));
258
260
  label.set(keybindingHint);
259
261
  label.element.style.width = 'min-content';
260
262
  label.element.style.display = 'inline';
@@ -264,7 +266,7 @@ class EmptyTextEditorHintContentWidget {
264
266
  this.toDispose.add(addDisposableListener(label.element, EventType.CLICK, handleClick));
265
267
  }
266
268
  hintElement.appendChild(after);
267
- const typeToDismiss = ( localize(10971, 'Start typing to dismiss.'));
269
+ const typeToDismiss = ( localize(4671, 'Start typing to dismiss.'));
268
270
  const textHint2 = $('span', undefined, typeToDismiss);
269
271
  textHint2.style.fontStyle = 'italic';
270
272
  hintElement.appendChild(textHint2);
@@ -272,7 +274,7 @@ class EmptyTextEditorHintContentWidget {
272
274
  }
273
275
  else {
274
276
  const hintMsg = ( localize(
275
- 10972,
277
+ 4672,
276
278
  '[[Ask {0} to do something]] or start typing to dismiss.',
277
279
  providerName
278
280
  ));
@@ -332,7 +334,7 @@ class EmptyTextEditorHintContentWidget {
332
334
  }
333
335
  };
334
336
  const hintMsg = ( localize(
335
- 10973,
337
+ 4673,
336
338
  '[[Select a language]], or [[fill with template]], or [[open a different editor]] to get started.\nStart typing to dismiss or [[don\'t show]] this again.'
337
339
  ));
338
340
  const hintElement = renderFormattedText(hintMsg, {
@@ -341,9 +343,9 @@ class EmptyTextEditorHintContentWidget {
341
343
  });
342
344
  hintElement.style.fontStyle = 'italic';
343
345
  const keybindingsLookup = [ChangeLanguageAction.ID, ApplyFileSnippetAction.Id, 'welcome.showNewFileEntries'];
344
- const keybindingLabels = ( (keybindingsLookup.map((id) => this.keybindingService.lookupKeybinding(id)?.getLabel() ?? id)));
346
+ const keybindingLabels = ( keybindingsLookup.map((id) => this.keybindingService.lookupKeybinding(id)?.getLabel() ?? id));
345
347
  const ariaLabel = ( localize(
346
- 10974,
348
+ 4674,
347
349
  'Execute {0} to select a language, execute {1} to fill with template, or execute {2} to open a different editor and get started. Start typing to dismiss.',
348
350
  ...keybindingLabels
349
351
  ));
@@ -364,9 +366,9 @@ class EmptyTextEditorHintContentWidget {
364
366
  const { hintElement, ariaLabel } = !inlineChatProviders.length ? this._getHintDefault() : this._getHintInlineChat(inlineChatProviders);
365
367
  this.domNode.append(hintElement);
366
368
  this.ariaLabel = ariaLabel.concat(( localize(
367
- 10975,
369
+ 4675,
368
370
  ' Toggle {0} in settings to disable this hint.',
369
- "accessibility.verbosity.emptyEditorHint"
371
+ AccessibilityVerbositySettingId.EmptyEditorHint
370
372
  )));
371
373
  this.toDispose.add(addDisposableListener(this.domNode, 'click', () => {
372
374
  this.editor.focus();
@@ -378,7 +380,7 @@ class EmptyTextEditorHintContentWidget {
378
380
  getPosition() {
379
381
  return {
380
382
  position: { lineNumber: 1, column: 1 },
381
- preference: [0 ]
383
+ preference: [ContentWidgetPositionPreference.EXACT]
382
384
  };
383
385
  }
384
386
  dispose() {
@@ -386,6 +388,6 @@ class EmptyTextEditorHintContentWidget {
386
388
  dispose(this.toDispose);
387
389
  }
388
390
  }
389
- registerEditorContribution(EmptyTextEditorHintContribution.ID, EmptyTextEditorHintContribution, 0 );
391
+ registerEditorContribution(EmptyTextEditorHintContribution.ID, EmptyTextEditorHintContribution, EditorContributionInstantiation.Eager);
390
392
 
391
393
  export { EmptyTextEditorHintContribution, emptyTextEditorHintSetting };