@codingame/monaco-vscode-api 1.85.0 → 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 +957 -950
  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,416 @@
1
+ import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
2
+ import { Delayer, createCancelablePromise } from 'monaco-editor/esm/vs/base/common/async.js';
3
+ import { CellEditState } from '../../notebookBrowser.js';
4
+ import { Range } from 'monaco-editor/esm/vs/editor/common/core/range.js';
5
+ import { PrefixSumComputer } from 'monaco-editor/esm/vs/editor/common/model/prefixSumComputer.js';
6
+ import { CellKind, NotebookCellsChangeType } from '../../../common/notebookCommon.js';
7
+ import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
8
+ import { Disposable, DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
9
+ import { findFirstIdxMonotonousOrArrLen } from 'monaco-editor/esm/vs/base/common/arraysFind.js';
10
+ import { FindMatchDecorationModel } from './findMatchDecorationModel.js';
11
+ class CellFindMatchModel {
12
+ get length() {
13
+ return this._contentMatches.length + this._webviewMatches.length;
14
+ }
15
+ get contentMatches() {
16
+ return this._contentMatches;
17
+ }
18
+ get webviewMatches() {
19
+ return this._webviewMatches;
20
+ }
21
+ constructor(cell, index, contentMatches, webviewMatches) {
22
+ this.cell = cell;
23
+ this.index = index;
24
+ this._contentMatches = contentMatches;
25
+ this._webviewMatches = webviewMatches;
26
+ }
27
+ getMatch(index) {
28
+ if (index >= this.length) {
29
+ throw new Error('NotebookCellFindMatch: index out of range');
30
+ }
31
+ if (index < this._contentMatches.length) {
32
+ return this._contentMatches[index];
33
+ }
34
+ return this._webviewMatches[index - this._contentMatches.length];
35
+ }
36
+ }
37
+ let FindModel = class FindModel extends Disposable {
38
+ get findMatches() {
39
+ return this._findMatches;
40
+ }
41
+ get currentMatch() {
42
+ return this._currentMatch;
43
+ }
44
+ constructor(_notebookEditor, _state, _configurationService) {
45
+ super();
46
+ this._notebookEditor = _notebookEditor;
47
+ this._state = _state;
48
+ this._configurationService = _configurationService;
49
+ this._findMatches = [];
50
+ this._findMatchesStarts = null;
51
+ this._currentMatch = -1;
52
+ this._computePromise = null;
53
+ this._modelDisposable = this._register(( new DisposableStore()));
54
+ this._throttledDelayer = ( new Delayer(20));
55
+ this._computePromise = null;
56
+ this._register(_state.onFindReplaceStateChange(e => {
57
+ this._updateCellStates(e);
58
+ if (e.searchString || e.isRegex || e.matchCase || e.searchScope || e.wholeWord || (e.isRevealed && this._state.isRevealed) || e.filters || e.isReplaceRevealed) {
59
+ this.research();
60
+ }
61
+ if (e.isRevealed && !this._state.isRevealed) {
62
+ this.clear();
63
+ }
64
+ }));
65
+ this._register(this._notebookEditor.onDidChangeModel(e => {
66
+ this._registerModelListener(e);
67
+ }));
68
+ this._register(this._notebookEditor.onDidChangeCellState(e => {
69
+ if (e.cell.cellKind === CellKind.Markup && e.source.editStateChanged) {
70
+ this.research();
71
+ }
72
+ }));
73
+ if (this._notebookEditor.hasModel()) {
74
+ this._registerModelListener(this._notebookEditor.textModel);
75
+ }
76
+ this._findMatchDecorationModel = ( new FindMatchDecorationModel(this._notebookEditor, this._notebookEditor.getId()));
77
+ }
78
+ _updateCellStates(e) {
79
+ if (!this._state.filters?.markupInput) {
80
+ return;
81
+ }
82
+ if (!this._state.filters?.markupPreview) {
83
+ return;
84
+ }
85
+ const updateEditingState = () => {
86
+ const viewModel = this._notebookEditor.getViewModel();
87
+ if (!viewModel) {
88
+ return;
89
+ }
90
+ const wordSeparators = this._configurationService.inspect('editor.wordSeparators').value;
91
+ const options = {
92
+ regex: this._state.isRegex,
93
+ wholeWord: this._state.wholeWord,
94
+ caseSensitive: this._state.matchCase,
95
+ wordSeparators: wordSeparators,
96
+ includeMarkupInput: true,
97
+ includeCodeInput: false,
98
+ includeMarkupPreview: false,
99
+ includeOutput: false
100
+ };
101
+ const contentMatches = viewModel.find(this._state.searchString, options);
102
+ for (let i = 0; i < viewModel.length; i++) {
103
+ const cell = viewModel.cellAt(i);
104
+ if (cell && cell.cellKind === CellKind.Markup) {
105
+ const foundContentMatch = contentMatches.find(m => m.cell.handle === cell.handle && m.contentMatches.length > 0);
106
+ const targetState = foundContentMatch ? CellEditState.Editing : CellEditState.Preview;
107
+ const currentEditingState = cell.getEditState();
108
+ if (currentEditingState === CellEditState.Editing && cell.editStateSource !== 'find') {
109
+ continue;
110
+ }
111
+ if (currentEditingState !== targetState) {
112
+ cell.updateEditState(targetState, 'find');
113
+ }
114
+ }
115
+ }
116
+ };
117
+ if (e.isReplaceRevealed && !this._state.isReplaceRevealed) {
118
+ const viewModel = this._notebookEditor.getViewModel();
119
+ if (!viewModel) {
120
+ return;
121
+ }
122
+ for (let i = 0; i < viewModel.length; i++) {
123
+ const cell = viewModel.cellAt(i);
124
+ if (cell && cell.cellKind === CellKind.Markup) {
125
+ if (cell.getEditState() === CellEditState.Editing && cell.editStateSource === 'find') {
126
+ cell.updateEditState(CellEditState.Preview, 'find');
127
+ }
128
+ }
129
+ }
130
+ return;
131
+ }
132
+ if (e.isReplaceRevealed) {
133
+ updateEditingState();
134
+ }
135
+ else if ((e.filters || e.isRevealed || e.searchString || e.replaceString) && this._state.isRevealed && this._state.isReplaceRevealed) {
136
+ updateEditingState();
137
+ }
138
+ }
139
+ ensureFindMatches() {
140
+ if (!this._findMatchesStarts) {
141
+ this.set(this._findMatches, true);
142
+ }
143
+ }
144
+ getCurrentMatch() {
145
+ const nextIndex = this._findMatchesStarts.getIndexOf(this._currentMatch);
146
+ const cell = this._findMatches[nextIndex.index].cell;
147
+ const match = this._findMatches[nextIndex.index].getMatch(nextIndex.remainder);
148
+ return {
149
+ cell,
150
+ match,
151
+ isModelMatch: nextIndex.remainder < this._findMatches[nextIndex.index].contentMatches.length
152
+ };
153
+ }
154
+ refreshCurrentMatch(focus) {
155
+ const findMatchIndex = this.findMatches.findIndex(match => match.cell === focus.cell);
156
+ if (findMatchIndex === -1) {
157
+ return;
158
+ }
159
+ const findMatch = this.findMatches[findMatchIndex];
160
+ const index = findMatch.contentMatches.findIndex(match => match.range.intersectRanges(focus.range) !== null);
161
+ if (index === undefined) {
162
+ return;
163
+ }
164
+ const matchesBefore = findMatchIndex === 0 ? 0 : (this._findMatchesStarts?.getPrefixSum(findMatchIndex - 1) ?? 0);
165
+ this._currentMatch = matchesBefore + index;
166
+ this.highlightCurrentFindMatchDecoration(findMatchIndex, index).then(offset => {
167
+ this.revealCellRange(findMatchIndex, index, offset);
168
+ this._state.changeMatchInfo(this._currentMatch, this._findMatches.reduce((p, c) => p + c.length, 0), undefined);
169
+ });
170
+ }
171
+ find(option) {
172
+ if (!this.findMatches.length) {
173
+ return;
174
+ }
175
+ if (!this._findMatchesStarts) {
176
+ this.set(this._findMatches, true);
177
+ if ('index' in option) {
178
+ this._currentMatch = option.index;
179
+ }
180
+ }
181
+ else {
182
+ const totalVal = this._findMatchesStarts.getTotalSum();
183
+ if ('index' in option) {
184
+ this._currentMatch = option.index;
185
+ }
186
+ else if (this._currentMatch === -1) {
187
+ this._currentMatch = option.previous ? totalVal - 1 : 0;
188
+ }
189
+ else {
190
+ const nextVal = (this._currentMatch + (option.previous ? -1 : 1) + totalVal) % totalVal;
191
+ this._currentMatch = nextVal;
192
+ }
193
+ }
194
+ const nextIndex = this._findMatchesStarts.getIndexOf(this._currentMatch);
195
+ this.highlightCurrentFindMatchDecoration(nextIndex.index, nextIndex.remainder).then(offset => {
196
+ this.revealCellRange(nextIndex.index, nextIndex.remainder, offset);
197
+ this._state.changeMatchInfo(this._currentMatch, this._findMatches.reduce((p, c) => p + c.length, 0), undefined);
198
+ });
199
+ }
200
+ revealCellRange(cellIndex, matchIndex, outputOffset) {
201
+ const findMatch = this._findMatches[cellIndex];
202
+ if (matchIndex >= findMatch.contentMatches.length) {
203
+ this._notebookEditor.focusElement(findMatch.cell);
204
+ const index = this._notebookEditor.getCellIndex(findMatch.cell);
205
+ if (index !== undefined) {
206
+ this._notebookEditor.revealCellOffsetInCenter(findMatch.cell, outputOffset ?? 0);
207
+ }
208
+ }
209
+ else {
210
+ const match = findMatch.getMatch(matchIndex);
211
+ if (findMatch.cell.getEditState() !== CellEditState.Editing) {
212
+ findMatch.cell.updateEditState(CellEditState.Editing, 'find');
213
+ }
214
+ findMatch.cell.isInputCollapsed = false;
215
+ this._notebookEditor.focusElement(findMatch.cell);
216
+ this._notebookEditor.setCellEditorSelection(findMatch.cell, match.range);
217
+ this._notebookEditor.revealRangeInCenterIfOutsideViewportAsync(findMatch.cell, match.range);
218
+ }
219
+ }
220
+ _registerModelListener(notebookTextModel) {
221
+ this._modelDisposable.clear();
222
+ if (notebookTextModel) {
223
+ this._modelDisposable.add(notebookTextModel.onDidChangeContent((e) => {
224
+ if (!( e.rawEvents.some(
225
+ event => event.kind === NotebookCellsChangeType.ChangeCellContent || event.kind === NotebookCellsChangeType.ModelChange
226
+ ))) {
227
+ return;
228
+ }
229
+ this.research();
230
+ }));
231
+ }
232
+ this.research();
233
+ }
234
+ async research() {
235
+ return this._throttledDelayer.trigger(async () => {
236
+ this._state.change({ isSearching: true }, false);
237
+ await this._research();
238
+ this._state.change({ isSearching: false }, false);
239
+ });
240
+ }
241
+ async _research() {
242
+ this._computePromise?.cancel();
243
+ if (!this._state.isRevealed || !this._notebookEditor.hasModel()) {
244
+ this.set([], false);
245
+ return;
246
+ }
247
+ this._computePromise = createCancelablePromise(token => this._compute(token));
248
+ const findMatches = await this._computePromise;
249
+ if (!findMatches) {
250
+ this.set([], false);
251
+ return;
252
+ }
253
+ if (findMatches.length === 0) {
254
+ this.set([], false);
255
+ return;
256
+ }
257
+ const findFirstMatchAfterCellIndex = (cellIndex) => {
258
+ const matchAfterSelection = findFirstIdxMonotonousOrArrLen(( findMatches.map(match => match.index)), index => index >= cellIndex);
259
+ this._updateCurrentMatch(findMatches, this._matchesCountBeforeIndex(findMatches, matchAfterSelection));
260
+ };
261
+ if (this._currentMatch === -1) {
262
+ if (this._notebookEditor.getLength() === 0) {
263
+ this.set(findMatches, false);
264
+ return;
265
+ }
266
+ else {
267
+ const focus = this._notebookEditor.getFocus().start;
268
+ findFirstMatchAfterCellIndex(focus);
269
+ this.set(findMatches, false);
270
+ return;
271
+ }
272
+ }
273
+ const oldCurrIndex = this._findMatchesStarts.getIndexOf(this._currentMatch);
274
+ const oldCurrCell = this._findMatches[oldCurrIndex.index].cell;
275
+ const oldCurrMatchCellIndex = this._notebookEditor.getCellIndex(oldCurrCell);
276
+ if (oldCurrMatchCellIndex < 0) {
277
+ if (this._notebookEditor.getLength() === 0) {
278
+ this.set(findMatches, false);
279
+ return;
280
+ }
281
+ findFirstMatchAfterCellIndex(oldCurrMatchCellIndex);
282
+ return;
283
+ }
284
+ const cell = this._notebookEditor.cellAt(oldCurrMatchCellIndex);
285
+ if (cell.cellKind === CellKind.Markup && cell.getEditState() === CellEditState.Preview) {
286
+ findFirstMatchAfterCellIndex(oldCurrMatchCellIndex);
287
+ return;
288
+ }
289
+ if (!this._findMatchDecorationModel.currentMatchDecorations) {
290
+ findFirstMatchAfterCellIndex(oldCurrMatchCellIndex);
291
+ return;
292
+ }
293
+ if (this._findMatchDecorationModel.currentMatchDecorations.kind === 'input') {
294
+ const currentMatchDecorationId = this._findMatchDecorationModel.currentMatchDecorations.decorations.find(decoration => decoration.ownerId === cell.handle);
295
+ if (!currentMatchDecorationId) {
296
+ findFirstMatchAfterCellIndex(oldCurrMatchCellIndex);
297
+ return;
298
+ }
299
+ const matchAfterSelection = findFirstIdxMonotonousOrArrLen(findMatches, match => match.index >= oldCurrMatchCellIndex) % findMatches.length;
300
+ if (findMatches[matchAfterSelection].index > oldCurrMatchCellIndex) {
301
+ this._updateCurrentMatch(findMatches, this._matchesCountBeforeIndex(findMatches, matchAfterSelection));
302
+ return;
303
+ }
304
+ else {
305
+ let currMatchRangeInEditor = cell.editorAttached && currentMatchDecorationId.decorations[0] ? cell.getCellDecorationRange(currentMatchDecorationId.decorations[0]) : null;
306
+ if (currMatchRangeInEditor === null && oldCurrIndex.remainder < this._findMatches[oldCurrIndex.index].contentMatches.length) {
307
+ currMatchRangeInEditor = this._findMatches[oldCurrIndex.index].getMatch(oldCurrIndex.remainder).range;
308
+ }
309
+ if (currMatchRangeInEditor !== null) {
310
+ const cellMatch = findMatches[matchAfterSelection];
311
+ const matchAfterOldSelection = findFirstIdxMonotonousOrArrLen(cellMatch.contentMatches, match => Range.compareRangesUsingStarts(match.range, currMatchRangeInEditor) >= 0);
312
+ this._updateCurrentMatch(findMatches, this._matchesCountBeforeIndex(findMatches, matchAfterSelection) + matchAfterOldSelection);
313
+ }
314
+ else {
315
+ this._updateCurrentMatch(findMatches, this._matchesCountBeforeIndex(findMatches, matchAfterSelection));
316
+ return;
317
+ }
318
+ }
319
+ }
320
+ else {
321
+ const matchAfterSelection = findFirstIdxMonotonousOrArrLen(( findMatches.map(match => match.index)), index => index >= oldCurrMatchCellIndex) % findMatches.length;
322
+ this._updateCurrentMatch(findMatches, this._matchesCountBeforeIndex(findMatches, matchAfterSelection));
323
+ }
324
+ }
325
+ set(cellFindMatches, autoStart) {
326
+ if (!cellFindMatches || !cellFindMatches.length) {
327
+ this._findMatches = [];
328
+ this._findMatchDecorationModel.setAllFindMatchesDecorations([]);
329
+ this.constructFindMatchesStarts();
330
+ this._currentMatch = -1;
331
+ this._findMatchDecorationModel.clearCurrentFindMatchDecoration();
332
+ this._state.changeMatchInfo(this._currentMatch, this._findMatches.reduce((p, c) => p + c.length, 0), undefined);
333
+ return;
334
+ }
335
+ this._findMatches = cellFindMatches;
336
+ this._findMatchDecorationModel.setAllFindMatchesDecorations(cellFindMatches || []);
337
+ this.constructFindMatchesStarts();
338
+ if (autoStart) {
339
+ this._currentMatch = 0;
340
+ this.highlightCurrentFindMatchDecoration(0, 0);
341
+ }
342
+ this._state.changeMatchInfo(this._currentMatch, this._findMatches.reduce((p, c) => p + c.length, 0), undefined);
343
+ }
344
+ async _compute(token) {
345
+ if (!this._notebookEditor.hasModel()) {
346
+ return null;
347
+ }
348
+ let ret = null;
349
+ const val = this._state.searchString;
350
+ const wordSeparators = this._configurationService.inspect('editor.wordSeparators').value;
351
+ const options = {
352
+ regex: this._state.isRegex,
353
+ wholeWord: this._state.wholeWord,
354
+ caseSensitive: this._state.matchCase,
355
+ wordSeparators: wordSeparators,
356
+ includeMarkupInput: this._state.filters?.markupInput ?? true,
357
+ includeCodeInput: this._state.filters?.codeInput ?? true,
358
+ includeMarkupPreview: !!this._state.filters?.markupPreview,
359
+ includeOutput: !!this._state.filters?.codeOutput
360
+ };
361
+ ret = await this._notebookEditor.find(val, options, token);
362
+ if (token.isCancellationRequested) {
363
+ return null;
364
+ }
365
+ return ret;
366
+ }
367
+ _updateCurrentMatch(findMatches, currentMatchesPosition) {
368
+ this.set(findMatches, false);
369
+ this._currentMatch = currentMatchesPosition % findMatches.length;
370
+ const nextIndex = this._findMatchesStarts.getIndexOf(this._currentMatch);
371
+ this.highlightCurrentFindMatchDecoration(nextIndex.index, nextIndex.remainder);
372
+ this._state.changeMatchInfo(this._currentMatch, this._findMatches.reduce((p, c) => p + c.length, 0), undefined);
373
+ }
374
+ _matchesCountBeforeIndex(findMatches, index) {
375
+ let prevMatchesCount = 0;
376
+ for (let i = 0; i < index; i++) {
377
+ prevMatchesCount += findMatches[i].length;
378
+ }
379
+ return prevMatchesCount;
380
+ }
381
+ constructFindMatchesStarts() {
382
+ if (this._findMatches && this._findMatches.length) {
383
+ const values = ( new Uint32Array(this._findMatches.length));
384
+ for (let i = 0; i < this._findMatches.length; i++) {
385
+ values[i] = this._findMatches[i].length;
386
+ }
387
+ this._findMatchesStarts = ( new PrefixSumComputer(values));
388
+ }
389
+ else {
390
+ this._findMatchesStarts = null;
391
+ }
392
+ }
393
+ async highlightCurrentFindMatchDecoration(cellIndex, matchIndex) {
394
+ const cell = this._findMatches[cellIndex].cell;
395
+ const match = this._findMatches[cellIndex].getMatch(matchIndex);
396
+ if (matchIndex < this._findMatches[cellIndex].contentMatches.length) {
397
+ return this._findMatchDecorationModel.highlightCurrentFindMatchDecorationInCell(cell, match.range);
398
+ }
399
+ else {
400
+ return this._findMatchDecorationModel.highlightCurrentFindMatchDecorationInWebview(cell, match.index);
401
+ }
402
+ }
403
+ clear() {
404
+ this._computePromise?.cancel();
405
+ this._throttledDelayer.cancel();
406
+ this.set([], false);
407
+ }
408
+ dispose() {
409
+ this._findMatchDecorationModel.dispose();
410
+ super.dispose();
411
+ }
412
+ };
413
+ FindModel = ( __decorate([
414
+ ( __param(2, IConfigurationService))
415
+ ], FindModel));
416
+ export { CellFindMatchModel, FindModel };
@@ -0,0 +1,4 @@
1
+ import n from '../../../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
2
+ var css = ".monaco-workbench .simple-fr-find-part-wrapper{background-color:var(--vscode-editorWidget-background)!important;border-bottom-left-radius:4px;border-bottom-right-radius:4px;box-shadow:0 0 8px 2px var(--vscode-widget-shadow);color:var(--vscode-editorWidget-foreground);max-width:calc(100% - 64px);overflow:hidden;padding:0 var(--notebook-find-horizontal-padding);position:absolute;right:18px;top:-45px;transition:top .2s linear;visibility:hidden;width:var(--notebook-find-width);z-index:10}.monaco-workbench.reduce-motion .simple-fr-find-part-wrapper{transition:top 0ms linear}.monaco-workbench .notebookOverlay .simple-fr-find-part-wrapper.visible{z-index:100}.monaco-workbench .simple-fr-find-part,.monaco-workbench .simple-fr-replace-part{align-items:center;display:flex;margin:0 0 0 17px;padding:4px;pointer-events:all;position:relative;top:0;z-index:10}.monaco-workbench .simple-fr-find-part-wrapper .find-replace-progress{height:2px;position:absolute;width:100%}.monaco-workbench .simple-fr-find-part-wrapper .find-replace-progress .monaco-progress-container{top:0!important;z-index:100!important}.monaco-workbench .simple-fr-find-part-wrapper .monaco-findInput{width:224px}.monaco-workbench .simple-fr-find-part-wrapper .button{align-items:center;background-position:50%;background-repeat:no-repeat;cursor:pointer;display:flex;flex:initial;height:20px;justify-content:center;margin-left:3px;width:20px}.monaco-workbench .simple-fr-find-part-wrapper.visible .simple-fr-find-part{visibility:visible}.monaco-workbench .simple-fr-find-part-wrapper .toggle{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;margin-left:0;pointer-events:all;position:absolute;top:0;width:18px}.monaco-workbench .simple-fr-find-part-wrapper.visible{visibility:visible}.monaco-workbench .simple-fr-find-part-wrapper.visible-transition{top:0}.monaco-workbench .simple-fr-find-part .monaco-findInput{flex:1}.monaco-workbench .simple-fr-find-part .button{background-position:50%;background-repeat:no-repeat;cursor:pointer;display:flex;flex:initial;height:20px;margin-left:3px;min-width:20px;width:20px}.monaco-workbench .simple-fr-find-part-wrapper .button.disabled{cursor:default;opacity:.3}.monaco-workbench .simple-fr-find-part-wrapper .monaco-custom-toggle.disabled{background-color:inherit!important;cursor:default;opacity:.3;pointer-events:none;user-select:none;-webkit-user-select:none}.monaco-workbench .simple-fr-find-part-wrapper .find-filter-button{box-sizing:border-box;color:inherit;cursor:pointer;float:left;margin-left:2px;user-select:none;-webkit-user-select:none}.find-filter-button .monaco-action-bar .action-label{padding:0}.monaco-workbench .simple-fr-find-part .monaco-inputbox>.ibwrapper>.input,.monaco-workbench .simple-fr-replace-part .monaco-inputbox>.ibwrapper>.input{height:24px}.monaco-workbench .simple-fr-find-part-wrapper .monaco-sash{background-color:var(--vscode-editorWidget-resizeBorder,var(--vscode-editorWidget-border));left:0!important}";
3
+ n(css,{});
4
+ export { css, css as default };