@codingame/monaco-vscode-api 1.85.0-next.2 → 1.85.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. package/README.md +19 -10
  2. package/contributions.js +1 -0
  3. package/missing-services.js +91 -5
  4. package/monaco-editor-treemending.patch +2540 -2533
  5. package/package.json +6 -6
  6. package/vscode/src/vs/base/common/jsonFormatter.js +8 -1
  7. package/vscode/src/vs/platform/actions/browser/buttonbar.js +128 -0
  8. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -1
  9. package/vscode/src/vs/platform/layout/browser/zIndexRegistry.js +58 -0
  10. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +56 -1
  11. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +186 -4
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +191 -0
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +238 -2
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +75 -0
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +205 -1
  16. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +168 -0
  17. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +35 -0
  18. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +340 -0
  19. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +1195 -0
  20. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +115 -0
  21. package/vscode/src/vs/workbench/contrib/chat/browser/chatOptions.js +81 -0
  22. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.css.js +4 -0
  23. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.js +62 -0
  24. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +583 -0
  25. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css.js +4 -0
  26. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +290 -0
  27. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +167 -0
  28. package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +4 -0
  29. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +6 -1
  30. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +562 -0
  31. package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +31 -1
  32. package/vscode/src/vs/workbench/contrib/chat/common/chatProvider.js +24 -1
  33. package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +193 -0
  34. package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +22 -1
  35. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +52 -1
  36. package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +258 -0
  37. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js +37 -0
  38. package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.js +25 -0
  39. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css.js +4 -0
  40. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +388 -0
  41. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +61 -0
  42. package/vscode/src/vs/workbench/contrib/comments/browser/commentFormActions.js +49 -0
  43. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +647 -0
  44. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +300 -0
  45. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.js +60 -0
  46. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +249 -0
  47. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +107 -0
  48. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +333 -0
  49. package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +4 -0
  50. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +99 -0
  51. package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +55 -0
  52. package/vscode/src/vs/workbench/contrib/comments/common/commentsConfiguration.js +2 -0
  53. package/vscode/src/vs/workbench/contrib/contextmenu/browser/contextmenu.contribution.js +20 -0
  54. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +855 -0
  55. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +410 -0
  56. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +1591 -0
  57. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +178 -0
  58. package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +4 -0
  59. package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackEditorContribution.css.js +4 -0
  60. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +1485 -0
  61. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +125 -0
  62. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +29 -0
  63. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +41 -0
  64. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +102 -0
  65. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.css.js +4 -0
  66. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +988 -0
  67. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatLivePreviewWidget.js +431 -0
  68. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +417 -0
  69. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +806 -0
  70. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +915 -0
  71. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +19 -0
  72. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +129 -10
  73. package/vscode/src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.js +205 -0
  74. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +150 -0
  75. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +480 -0
  76. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +5 -0
  77. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +90 -0
  78. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/editing.js +54 -0
  79. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +108 -0
  80. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +258 -0
  81. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +614 -0
  82. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +307 -0
  83. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.js +44 -0
  84. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +165 -0
  85. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/telemetry.js +78 -0
  86. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +169 -0
  87. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +64 -0
  88. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/cellOutputClipboard.js +49 -0
  89. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +70 -0
  90. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +120 -0
  91. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +416 -0
  92. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css.js +4 -0
  93. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +663 -0
  94. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +593 -0
  95. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +72 -0
  96. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +326 -0
  97. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +539 -0
  98. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +265 -0
  99. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +348 -0
  100. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebook.css.js +4 -0
  101. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css.js +4 -0
  102. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellEditorHint.css.js +4 -0
  103. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellInsertToolbar.css.js +4 -0
  104. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellOutput.css.js +4 -0
  105. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellStatusBar.css.js +4 -0
  106. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellTitleToolbar.css.js +4 -0
  107. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookDnd.css.js +4 -0
  108. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookEditorStickyScroll.css.js +4 -0
  109. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFocusIndicator.css.js +4 -0
  110. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFolding.css.js +4 -0
  111. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookKernelActionViewItem.css.js +4 -0
  112. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookOutline.css.js +4 -0
  113. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookToolbar.css.js +4 -0
  114. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.js +95 -3
  115. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +437 -0
  116. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorExtensions.js +29 -0
  117. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +2730 -0
  118. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +139 -0
  119. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookLogger.js +17 -0
  120. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +564 -0
  121. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookViewEvents.js +27 -0
  122. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.js +119 -0
  123. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +27 -0
  124. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +135 -0
  125. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.js +178 -0
  126. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDecorations.js +35 -0
  127. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.js +377 -0
  128. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDragRenderer.js +97 -0
  129. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +194 -0
  130. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.js +71 -0
  131. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocus.js +20 -0
  132. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocusIndicator.js +85 -0
  133. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +652 -0
  134. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.js +59 -0
  135. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +303 -0
  136. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.js +24 -0
  137. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +228 -0
  138. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatActions.js +302 -0
  139. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatController.js +438 -0
  140. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatPart.js +45 -0
  141. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +435 -0
  142. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +95 -0
  143. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +107 -0
  144. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellInput.js +29 -0
  145. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +59 -0
  146. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +67 -0
  147. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +430 -0
  148. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.js +54 -0
  149. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +1131 -0
  150. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +21 -0
  151. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +1591 -0
  152. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +341 -0
  153. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +2155 -0
  154. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewThemeMapping.js +65 -0
  155. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.js +95 -0
  156. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +507 -0
  157. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +85 -0
  158. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel.js +47 -0
  159. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellSelectionCollection.js +40 -0
  160. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +435 -0
  161. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher.js +31 -0
  162. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.js +257 -0
  163. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +239 -0
  164. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +103 -0
  165. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js +211 -0
  166. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +808 -0
  167. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/viewContext.js +8 -0
  168. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +381 -0
  169. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +527 -0
  170. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.js +163 -0
  171. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +651 -0
  172. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +173 -0
  173. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.js +98 -0
  174. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +62 -0
  175. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel.js +101 -0
  176. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +346 -0
  177. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +152 -1
  178. package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +39 -0
  179. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +296 -0
  180. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +261 -0
  181. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.js +3 -1
  182. package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.js +2 -1
  183. package/vscode/src/vs/workbench/contrib/notebook/common/notebookKeymapService.js +3 -0
  184. package/vscode/src/vs/workbench/contrib/notebook/common/notebookLoggingService.js +3 -0
  185. package/vscode/src/vs/workbench/contrib/notebook/common/notebookPerformance.js +16 -0
  186. package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.js +66 -0
  187. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWorkerService.js +4 -0
  188. package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +130 -0
  189. package/vscode/src/vs/workbench/contrib/remote/browser/media/tunnelView.css.js +4 -0
  190. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +847 -0
  191. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +89 -0
  192. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +1942 -0
  193. package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.js +107 -0
  194. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +49 -0
  195. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +387 -0
  196. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +2 -2
  197. package/vscode/src/vs/workbench/contrib/search/common/constants.js +66 -0
  198. package/vscode/src/vs/workbench/contrib/searchEditor/browser/constants.js +11 -0
  199. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +24 -0
  200. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +95 -0
  201. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.js +4 -1
  202. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +2 -1
  203. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/featuredExtensionService.js +159 -0
  204. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +375 -0
  205. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +563 -0
  206. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +932 -0
  207. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +15 -1
  208. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +2 -2
  209. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +190 -2
  210. package/vscode/src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.js +77 -0
  211. package/assets/break.mp3 +0 -0
  212. package/assets/chatRequestSent.mp3 +0 -0
  213. package/assets/chatResponsePending.mp3 +0 -0
  214. package/assets/chatResponseReceived1.mp3 +0 -0
  215. package/assets/chatResponseReceived2.mp3 +0 -0
  216. package/assets/chatResponseReceived3.mp3 +0 -0
  217. package/assets/chatResponseReceived4.mp3 +0 -0
  218. package/assets/clear.mp3 +0 -0
  219. package/assets/defaultIcon.png +0 -0
  220. package/assets/diffLineDeleted.mp3 +0 -0
  221. package/assets/diffLineInserted.mp3 +0 -0
  222. package/assets/diffLineModified.mp3 +0 -0
  223. package/assets/error.mp3 +0 -0
  224. package/assets/fake.html +0 -10
  225. package/assets/foldedAreas.mp3 +0 -0
  226. package/assets/format.mp3 +0 -0
  227. package/assets/index-no-csp.html +0 -1226
  228. package/assets/index.html +0 -1227
  229. package/assets/quickFixes.mp3 +0 -0
  230. package/assets/save.mp3 +0 -0
  231. package/assets/service-worker.js +0 -457
  232. package/assets/taskCompleted.mp3 +0 -0
  233. package/assets/taskFailed.mp3 +0 -0
  234. package/assets/terminalBell.mp3 +0 -0
  235. package/assets/warning.mp3 +0 -0
  236. package/assets/webWorkerExtensionHostIframe.html +0 -123
  237. package/override/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +0 -2
  238. package/override/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +0 -2
  239. package/override/vs/workbench/contrib/notebook/common/notebookEditorInput.js +0 -5
@@ -0,0 +1,341 @@
1
+ import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
2
+ import { PixelRatio } from 'monaco-editor/esm/vs/base/browser/browser.js';
3
+ import * as dom from 'monaco-editor/esm/vs/base/browser/dom.js';
4
+ import { FastDomNode } from 'monaco-editor/esm/vs/base/browser/fastDomNode.js';
5
+ import { DisposableStore, Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
6
+ import { CodeEditorWidget } from 'monaco-editor/esm/vs/editor/browser/widget/codeEditorWidget.js';
7
+ import { BareFontInfo } from 'monaco-editor/esm/vs/editor/common/config/fontInfo.js';
8
+ import { EditorContextKeys } from 'monaco-editor/esm/vs/editor/common/editorContextKeys.js';
9
+ import { PLAINTEXT_LANGUAGE_ID } from 'monaco-editor/esm/vs/editor/common/languages/modesRegistry.js';
10
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
11
+ import { IMenuService } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
12
+ import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
13
+ import { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
14
+ import { IContextMenuService } from 'monaco-editor/esm/vs/platform/contextview/browser/contextView.js';
15
+ import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
16
+ import { ServiceCollection } from 'monaco-editor/esm/vs/platform/instantiation/common/serviceCollection.js';
17
+ import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
18
+ import { INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
19
+ import { CellPartsCollection } from '../cellPart.js';
20
+ import { CellChatPart } from '../cellParts/chat/cellChatPart.js';
21
+ import { CellComments } from '../cellParts/cellComments.js';
22
+ import { CellContextKeyPart } from '../cellParts/cellContextKeys.js';
23
+ import { CellDecorations } from '../cellParts/cellDecorations.js';
24
+ import { CellDragAndDropPart } from '../cellParts/cellDnd.js';
25
+ import { CodeCellDragImageRenderer } from '../cellParts/cellDragRenderer.js';
26
+ import { CellEditorOptions } from '../cellParts/cellEditorOptions.js';
27
+ import { CellExecutionPart } from '../cellParts/cellExecution.js';
28
+ import { CellFocusPart } from '../cellParts/cellFocus.js';
29
+ import { CellFocusIndicator } from '../cellParts/cellFocusIndicator.js';
30
+ import { CellProgressBar } from '../cellParts/cellProgressBar.js';
31
+ import { CellEditorStatusBar } from '../cellParts/cellStatusPart.js';
32
+ import { CellTitleToolbarPart, BetweenCellToolbar } from '../cellParts/cellToolbars.js';
33
+ import { CodeCell } from '../cellParts/codeCell.js';
34
+ import { RunToolbar } from '../cellParts/codeCellRunToolbar.js';
35
+ import { CollapsedCellInput } from '../cellParts/collapsedCellInput.js';
36
+ import { CollapsedCellOutput } from '../cellParts/collapsedCellOutput.js';
37
+ import { FoldedCellHint } from '../cellParts/foldedCellHint.js';
38
+ import { MarkupCell } from '../cellParts/markupCell.js';
39
+ import { CellKind } from '../../../common/notebookCommon.js';
40
+ var MarkupCellRenderer_1, CodeCellRenderer_1;
41
+ const $ = dom.$;
42
+ let NotebookCellListDelegate = class NotebookCellListDelegate extends Disposable {
43
+ constructor(configurationService) {
44
+ super();
45
+ this.configurationService = configurationService;
46
+ const editorOptions = this.configurationService.getValue('editor');
47
+ this.lineHeight = BareFontInfo.createFromRawSettings(editorOptions, PixelRatio.value).lineHeight;
48
+ }
49
+ getHeight(element) {
50
+ return element.getHeight(this.lineHeight);
51
+ }
52
+ getDynamicHeight(element) {
53
+ return element.getDynamicHeight();
54
+ }
55
+ getTemplateId(element) {
56
+ if (element.cellKind === CellKind.Markup) {
57
+ return MarkupCellRenderer.TEMPLATE_ID;
58
+ }
59
+ else {
60
+ return CodeCellRenderer.TEMPLATE_ID;
61
+ }
62
+ }
63
+ };
64
+ NotebookCellListDelegate = ( __decorate([
65
+ ( __param(0, IConfigurationService))
66
+ ], NotebookCellListDelegate));
67
+ class AbstractCellRenderer {
68
+ constructor(instantiationService, notebookEditor, contextMenuService, menuService, configurationService, keybindingService, notificationService, contextKeyServiceProvider, language, dndController) {
69
+ this.instantiationService = instantiationService;
70
+ this.notebookEditor = notebookEditor;
71
+ this.contextMenuService = contextMenuService;
72
+ this.menuService = menuService;
73
+ this.keybindingService = keybindingService;
74
+ this.notificationService = notificationService;
75
+ this.contextKeyServiceProvider = contextKeyServiceProvider;
76
+ this.dndController = dndController;
77
+ this.editorOptions = ( new CellEditorOptions(
78
+ this.notebookEditor.getBaseCellEditorOptions(language),
79
+ this.notebookEditor.notebookOptions,
80
+ configurationService
81
+ ));
82
+ }
83
+ dispose() {
84
+ this.editorOptions.dispose();
85
+ this.dndController = undefined;
86
+ }
87
+ }
88
+ let MarkupCellRenderer = class MarkupCellRenderer extends AbstractCellRenderer {
89
+ static { MarkupCellRenderer_1 = this; }
90
+ static { this.TEMPLATE_ID = 'markdown_cell'; }
91
+ constructor(notebookEditor, dndController, renderedEditors, contextKeyServiceProvider, configurationService, instantiationService, contextMenuService, menuService, keybindingService, notificationService) {
92
+ super(instantiationService, notebookEditor, contextMenuService, menuService, configurationService, keybindingService, notificationService, contextKeyServiceProvider, 'markdown', dndController);
93
+ this.renderedEditors = renderedEditors;
94
+ }
95
+ get templateId() {
96
+ return MarkupCellRenderer_1.TEMPLATE_ID;
97
+ }
98
+ renderTemplate(rootContainer) {
99
+ rootContainer.classList.add('markdown-cell-row');
100
+ const container = dom.append(rootContainer, dom.$('.cell-inner-container'));
101
+ const templateDisposables = ( new DisposableStore());
102
+ const contextKeyService = templateDisposables.add(this.contextKeyServiceProvider(container));
103
+ const decorationContainer = dom.append(rootContainer, $('.cell-decoration'));
104
+ const titleToolbarContainer = dom.append(container, $('.cell-title-toolbar'));
105
+ const focusIndicatorTop = ( new FastDomNode(dom.append(container, $('.cell-focus-indicator.cell-focus-indicator-top'))));
106
+ const focusIndicatorLeft = ( new FastDomNode(
107
+ dom.append(container, dom.$('.cell-focus-indicator.cell-focus-indicator-side.cell-focus-indicator-left'))
108
+ ));
109
+ const foldingIndicator = dom.append(focusIndicatorLeft.domNode, dom.$('.notebook-folding-indicator'));
110
+ const focusIndicatorRight = ( new FastDomNode(
111
+ dom.append(container, dom.$('.cell-focus-indicator.cell-focus-indicator-side.cell-focus-indicator-right'))
112
+ ));
113
+ const codeInnerContent = dom.append(container, $('.cell.code'));
114
+ const editorPart = dom.append(codeInnerContent, $('.cell-editor-part'));
115
+ const cellChatPart = dom.append(editorPart, $('.cell-chat-part'));
116
+ const cellInputCollapsedContainer = dom.append(codeInnerContent, $('.input-collapse-container'));
117
+ cellInputCollapsedContainer.style.display = 'none';
118
+ const editorContainer = dom.append(editorPart, $('.cell-editor-container'));
119
+ editorPart.style.display = 'none';
120
+ const cellCommentPartContainer = dom.append(container, $('.cell-comment-container'));
121
+ const innerContent = dom.append(container, $('.cell.markdown'));
122
+ const bottomCellContainer = dom.append(container, $('.cell-bottom-toolbar-container'));
123
+ const scopedInstaService = this.instantiationService.createChild(( new ServiceCollection([IContextKeyService, contextKeyService])));
124
+ const rootClassDelegate = {
125
+ toggle: (className, force) => container.classList.toggle(className, force)
126
+ };
127
+ const titleToolbar = templateDisposables.add(scopedInstaService.createInstance(CellTitleToolbarPart, titleToolbarContainer, rootClassDelegate, this.notebookEditor.creationOptions.menuIds.cellTitleToolbar, this.notebookEditor.creationOptions.menuIds.cellDeleteToolbar, this.notebookEditor));
128
+ const focusIndicatorBottom = ( new FastDomNode(
129
+ dom.append(container, $('.cell-focus-indicator.cell-focus-indicator-bottom'))
130
+ ));
131
+ const cellParts = ( new CellPartsCollection(dom.getWindow(rootContainer), [
132
+ templateDisposables.add(scopedInstaService.createInstance(CellChatPart, this.notebookEditor, cellChatPart)),
133
+ templateDisposables.add(scopedInstaService.createInstance(CellEditorStatusBar, this.notebookEditor, container, editorPart, undefined)),
134
+ templateDisposables.add(( new CellFocusIndicator(
135
+ this.notebookEditor,
136
+ titleToolbar,
137
+ focusIndicatorTop,
138
+ focusIndicatorLeft,
139
+ focusIndicatorRight,
140
+ focusIndicatorBottom
141
+ ))),
142
+ templateDisposables.add(( new FoldedCellHint(this.notebookEditor, dom.append(container, $('.notebook-folded-hint'))))),
143
+ templateDisposables.add(( new CellDecorations(rootContainer, decorationContainer))),
144
+ templateDisposables.add(scopedInstaService.createInstance(CellComments, this.notebookEditor, cellCommentPartContainer)),
145
+ templateDisposables.add(( new CollapsedCellInput(this.notebookEditor, cellInputCollapsedContainer))),
146
+ templateDisposables.add(( new CellFocusPart(container, undefined, this.notebookEditor))),
147
+ templateDisposables.add(( new CellDragAndDropPart(container))),
148
+ templateDisposables.add(scopedInstaService.createInstance(CellContextKeyPart, this.notebookEditor)),
149
+ ], [
150
+ titleToolbar,
151
+ templateDisposables.add(scopedInstaService.createInstance(BetweenCellToolbar, this.notebookEditor, titleToolbarContainer, bottomCellContainer))
152
+ ]));
153
+ templateDisposables.add(cellParts);
154
+ const templateData = {
155
+ rootContainer,
156
+ cellInputCollapsedContainer,
157
+ instantiationService: scopedInstaService,
158
+ container,
159
+ cellContainer: innerContent,
160
+ editorPart,
161
+ editorContainer,
162
+ foldingIndicator,
163
+ templateDisposables,
164
+ elementDisposables: ( new DisposableStore()),
165
+ cellParts,
166
+ toJSON: () => { return {}; }
167
+ };
168
+ return templateData;
169
+ }
170
+ renderElement(element, index, templateData, height) {
171
+ if (!this.notebookEditor.hasModel()) {
172
+ throw new Error('The notebook editor is not attached with view model yet.');
173
+ }
174
+ templateData.currentRenderedCell = element;
175
+ templateData.currentEditor = undefined;
176
+ templateData.editorPart.style.display = 'none';
177
+ templateData.cellContainer.innerText = '';
178
+ if (height === undefined) {
179
+ return;
180
+ }
181
+ templateData.elementDisposables.add(templateData.instantiationService.createInstance(MarkupCell, this.notebookEditor, element, templateData, this.renderedEditors));
182
+ }
183
+ disposeTemplate(templateData) {
184
+ templateData.elementDisposables.dispose();
185
+ templateData.templateDisposables.dispose();
186
+ }
187
+ disposeElement(_element, _index, templateData) {
188
+ templateData.elementDisposables.clear();
189
+ }
190
+ };
191
+ MarkupCellRenderer = MarkupCellRenderer_1 = ( __decorate([
192
+ ( __param(4, IConfigurationService)),
193
+ ( __param(5, IInstantiationService)),
194
+ ( __param(6, IContextMenuService)),
195
+ ( __param(7, IMenuService)),
196
+ ( __param(8, IKeybindingService)),
197
+ ( __param(9, INotificationService))
198
+ ], MarkupCellRenderer));
199
+ let CodeCellRenderer = class CodeCellRenderer extends AbstractCellRenderer {
200
+ static { CodeCellRenderer_1 = this; }
201
+ static { this.TEMPLATE_ID = 'code_cell'; }
202
+ constructor(notebookEditor, renderedEditors, dndController, contextKeyServiceProvider, configurationService, contextMenuService, menuService, instantiationService, keybindingService, notificationService) {
203
+ super(instantiationService, notebookEditor, contextMenuService, menuService, configurationService, keybindingService, notificationService, contextKeyServiceProvider, PLAINTEXT_LANGUAGE_ID, dndController);
204
+ this.renderedEditors = renderedEditors;
205
+ }
206
+ get templateId() {
207
+ return CodeCellRenderer_1.TEMPLATE_ID;
208
+ }
209
+ renderTemplate(rootContainer) {
210
+ rootContainer.classList.add('code-cell-row');
211
+ const container = dom.append(rootContainer, dom.$('.cell-inner-container'));
212
+ const templateDisposables = ( new DisposableStore());
213
+ const contextKeyService = templateDisposables.add(this.contextKeyServiceProvider(container));
214
+ const decorationContainer = dom.append(rootContainer, $('.cell-decoration'));
215
+ const focusIndicatorTop = ( new FastDomNode(dom.append(container, $('.cell-focus-indicator.cell-focus-indicator-top'))));
216
+ const titleToolbarContainer = dom.append(container, $('.cell-title-toolbar'));
217
+ const focusIndicatorLeft = ( new FastDomNode(
218
+ dom.append(container, dom.$('.cell-focus-indicator.cell-focus-indicator-side.cell-focus-indicator-left'))
219
+ ));
220
+ const cellChatPart = dom.append(container, $('.cell-chat-part'));
221
+ const cellContainer = dom.append(container, $('.cell.code'));
222
+ const runButtonContainer = dom.append(cellContainer, $('.run-button-container'));
223
+ const cellInputCollapsedContainer = dom.append(cellContainer, $('.input-collapse-container'));
224
+ cellInputCollapsedContainer.style.display = 'none';
225
+ const executionOrderLabel = dom.append(focusIndicatorLeft.domNode, $('div.execution-count-label'));
226
+ executionOrderLabel.title = ( localizeWithPath(
227
+ 'vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer',
228
+ 'cellExecutionOrderCountLabel',
229
+ 'Execution Order'
230
+ ));
231
+ const editorPart = dom.append(cellContainer, $('.cell-editor-part'));
232
+ const editorContainer = dom.append(editorPart, $('.cell-editor-container'));
233
+ const cellCommentPartContainer = dom.append(container, $('.cell-comment-container'));
234
+ const editorContextKeyService = templateDisposables.add(this.contextKeyServiceProvider(editorPart));
235
+ const editorInstaService = this.instantiationService.createChild(( new ServiceCollection([IContextKeyService, editorContextKeyService])));
236
+ EditorContextKeys.inCompositeEditor.bindTo(editorContextKeyService).set(true);
237
+ const editor = editorInstaService.createInstance(CodeEditorWidget, editorContainer, {
238
+ ...this.editorOptions.getDefaultValue(),
239
+ dimension: {
240
+ width: 0,
241
+ height: 0
242
+ },
243
+ }, {
244
+ contributions: this.notebookEditor.creationOptions.cellEditorContributions
245
+ });
246
+ templateDisposables.add(editor);
247
+ const outputContainer = ( new FastDomNode(dom.append(container, $('.output'))));
248
+ const cellOutputCollapsedContainer = dom.append(outputContainer.domNode, $('.output-collapse-container'));
249
+ const outputShowMoreContainer = ( new FastDomNode(dom.append(container, $('.output-show-more-container'))));
250
+ const focusIndicatorRight = ( new FastDomNode(
251
+ dom.append(container, dom.$('.cell-focus-indicator.cell-focus-indicator-side.cell-focus-indicator-right'))
252
+ ));
253
+ const focusSinkElement = dom.append(container, $('.cell-editor-focus-sink'));
254
+ focusSinkElement.setAttribute('tabindex', '0');
255
+ const bottomCellToolbarContainer = dom.append(container, $('.cell-bottom-toolbar-container'));
256
+ const focusIndicatorBottom = ( new FastDomNode(
257
+ dom.append(container, $('.cell-focus-indicator.cell-focus-indicator-bottom'))
258
+ ));
259
+ const scopedInstaService = this.instantiationService.createChild(( new ServiceCollection([IContextKeyService, contextKeyService])));
260
+ const rootClassDelegate = {
261
+ toggle: (className, force) => container.classList.toggle(className, force)
262
+ };
263
+ const titleToolbar = templateDisposables.add(scopedInstaService.createInstance(CellTitleToolbarPart, titleToolbarContainer, rootClassDelegate, this.notebookEditor.creationOptions.menuIds.cellTitleToolbar, this.notebookEditor.creationOptions.menuIds.cellDeleteToolbar, this.notebookEditor));
264
+ const focusIndicatorPart = templateDisposables.add(( new CellFocusIndicator(
265
+ this.notebookEditor,
266
+ titleToolbar,
267
+ focusIndicatorTop,
268
+ focusIndicatorLeft,
269
+ focusIndicatorRight,
270
+ focusIndicatorBottom
271
+ )));
272
+ const cellParts = ( new CellPartsCollection(dom.getWindow(rootContainer), [
273
+ focusIndicatorPart,
274
+ templateDisposables.add(scopedInstaService.createInstance(CellChatPart, this.notebookEditor, cellChatPart)),
275
+ templateDisposables.add(scopedInstaService.createInstance(CellEditorStatusBar, this.notebookEditor, container, editorPart, editor)),
276
+ templateDisposables.add(scopedInstaService.createInstance(CellProgressBar, editorPart, cellInputCollapsedContainer)),
277
+ templateDisposables.add(scopedInstaService.createInstance(RunToolbar, this.notebookEditor, contextKeyService, container, runButtonContainer)),
278
+ templateDisposables.add(( new CellDecorations(rootContainer, decorationContainer))),
279
+ templateDisposables.add(scopedInstaService.createInstance(CellComments, this.notebookEditor, cellCommentPartContainer)),
280
+ templateDisposables.add(scopedInstaService.createInstance(CellExecutionPart, this.notebookEditor, executionOrderLabel)),
281
+ templateDisposables.add(scopedInstaService.createInstance(CollapsedCellOutput, this.notebookEditor, cellOutputCollapsedContainer)),
282
+ templateDisposables.add(( new CollapsedCellInput(this.notebookEditor, cellInputCollapsedContainer))),
283
+ templateDisposables.add(( new CellFocusPart(container, focusSinkElement, this.notebookEditor))),
284
+ templateDisposables.add(( new CellDragAndDropPart(container))),
285
+ templateDisposables.add(scopedInstaService.createInstance(CellContextKeyPart, this.notebookEditor)),
286
+ ], [
287
+ titleToolbar,
288
+ templateDisposables.add(scopedInstaService.createInstance(BetweenCellToolbar, this.notebookEditor, titleToolbarContainer, bottomCellToolbarContainer))
289
+ ]));
290
+ templateDisposables.add(cellParts);
291
+ const templateData = {
292
+ rootContainer,
293
+ editorPart,
294
+ cellInputCollapsedContainer,
295
+ cellOutputCollapsedContainer,
296
+ instantiationService: scopedInstaService,
297
+ container,
298
+ cellContainer,
299
+ focusSinkElement,
300
+ outputContainer,
301
+ outputShowMoreContainer,
302
+ editor,
303
+ templateDisposables,
304
+ elementDisposables: ( new DisposableStore()),
305
+ cellParts,
306
+ toJSON: () => { return {}; }
307
+ };
308
+ const dragHandles = [focusIndicatorLeft.domNode, focusIndicatorPart.codeFocusIndicator.domNode, focusIndicatorPart.outputFocusIndicator.domNode];
309
+ this.dndController?.registerDragHandle(templateData, rootContainer, dragHandles, () => ( new CodeCellDragImageRenderer()).getDragImage(templateData, templateData.editor, 'code'));
310
+ return templateData;
311
+ }
312
+ renderElement(element, index, templateData, height) {
313
+ if (!this.notebookEditor.hasModel()) {
314
+ throw new Error('The notebook editor is not attached with view model yet.');
315
+ }
316
+ templateData.currentRenderedCell = element;
317
+ if (height === undefined) {
318
+ return;
319
+ }
320
+ templateData.outputContainer.domNode.innerText = '';
321
+ templateData.outputContainer.domNode.appendChild(templateData.cellOutputCollapsedContainer);
322
+ templateData.elementDisposables.add(templateData.instantiationService.createInstance(CodeCell, this.notebookEditor, element, templateData));
323
+ this.renderedEditors.set(element, templateData.editor);
324
+ }
325
+ disposeTemplate(templateData) {
326
+ templateData.templateDisposables.clear();
327
+ }
328
+ disposeElement(element, index, templateData, height) {
329
+ templateData.elementDisposables.clear();
330
+ this.renderedEditors.delete(element);
331
+ }
332
+ };
333
+ CodeCellRenderer = CodeCellRenderer_1 = ( __decorate([
334
+ ( __param(4, IConfigurationService)),
335
+ ( __param(5, IContextMenuService)),
336
+ ( __param(6, IMenuService)),
337
+ ( __param(7, IInstantiationService)),
338
+ ( __param(8, IKeybindingService)),
339
+ ( __param(9, INotificationService))
340
+ ], CodeCellRenderer));
341
+ export { CodeCellRenderer, MarkupCellRenderer, NotebookCellListDelegate };