@codingame/monaco-vscode-katex-common 25.1.2 → 26.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 (317) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.d.ts +23 -2
  3. package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +64 -27
  4. package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.d.ts +3 -1
  5. package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.js +31 -28
  6. package/vscode/src/vs/platform/actions/browser/buttonbar.d.ts +2 -0
  7. package/vscode/src/vs/platform/actions/browser/buttonbar.js +71 -50
  8. package/vscode/src/vs/platform/editor/browser/editor.js +17 -7
  9. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +112 -129
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.d.ts +10 -1
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +110 -85
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +5 -5
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.d.ts +21 -6
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +308 -216
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +153 -148
  16. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.d.ts +27 -0
  17. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +247 -0
  18. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +71 -0
  19. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +347 -0
  20. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +44 -0
  21. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +287 -0
  22. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.d.ts +20 -0
  23. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +89 -0
  24. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +188 -0
  25. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +677 -0
  26. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentSessionHoverWidget.css +98 -0
  27. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +263 -0
  28. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.js +34 -25
  29. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +19 -14
  30. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +762 -359
  31. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.d.ts +22 -1
  32. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.js +188 -99
  33. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts +9 -3
  34. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +166 -113
  35. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +12 -5
  36. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +279 -213
  37. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +46 -0
  38. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +533 -0
  39. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +28 -0
  40. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +382 -0
  41. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.d.ts +101 -0
  42. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +509 -0
  43. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +130 -0
  44. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +276 -0
  45. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.d.ts +24 -7
  46. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +128 -52
  47. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +153 -0
  48. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +1218 -0
  49. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/media/chatSessionPickerActionItem.css +14 -0
  50. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.d.ts +39 -0
  51. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +193 -0
  52. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.d.ts +2 -0
  53. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +93 -89
  54. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcome.js +5 -2
  55. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +42 -47
  56. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +58 -56
  57. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +18 -14
  58. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +17 -15
  59. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.d.ts +6 -2
  60. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +132 -68
  61. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.d.ts +0 -2
  62. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +68 -47
  63. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +14 -13
  64. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.d.ts +4 -4
  65. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.js +36 -24
  66. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.d.ts +18 -0
  67. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.js +32 -0
  68. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.d.ts +7 -2
  69. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.js +15 -4
  70. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.d.ts +1 -0
  71. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +22 -14
  72. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.d.ts +0 -2
  73. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +34 -27
  74. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +1 -5
  75. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +198 -135
  76. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.d.ts +2 -0
  77. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.js +38 -10
  78. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.js +29 -27
  79. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.d.ts +0 -2
  80. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.js +41 -36
  81. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.d.ts +0 -2
  82. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.js +23 -18
  83. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorContentPart.js +13 -13
  84. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.d.ts +0 -3
  85. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +20 -14
  86. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.d.ts +11 -1
  87. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +291 -152
  88. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +2 -3
  89. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +227 -162
  90. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownDecorationsRenderer.js +68 -72
  91. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.d.ts +2 -4
  92. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +76 -75
  93. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.d.ts +2 -5
  94. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +96 -76
  95. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +4 -1
  96. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +74 -38
  97. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.d.ts +0 -2
  98. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.js +11 -25
  99. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +107 -0
  100. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +814 -0
  101. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.d.ts +0 -2
  102. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +34 -29
  103. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.d.ts +8 -10
  104. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +236 -197
  105. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.d.ts +123 -0
  106. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +492 -0
  107. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +75 -47
  108. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.d.ts +2 -4
  109. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.js +31 -20
  110. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.d.ts +0 -3
  111. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +42 -36
  112. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +55 -7
  113. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +714 -148
  114. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.d.ts +7 -0
  115. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +21 -0
  116. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.d.ts +2 -7
  117. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +143 -153
  118. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +14 -5
  119. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +79 -61
  120. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.d.ts +10 -4
  121. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +209 -77
  122. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.d.ts +9 -7
  123. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +71 -54
  124. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.d.ts +18 -0
  125. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +83 -0
  126. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.d.ts +4 -4
  127. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +248 -190
  128. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +1 -14
  129. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatInlineAnchorWidget.css +23 -0
  130. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatPullRequestContent.css +5 -41
  131. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +493 -0
  132. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatSubagentContent.css +63 -0
  133. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +9 -1
  134. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +121 -5
  135. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTipContent.css +37 -0
  136. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +51 -45
  137. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +46 -42
  138. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +4 -2
  139. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +99 -67
  140. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.d.ts +112 -0
  141. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +634 -0
  142. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.d.ts +49 -0
  143. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +132 -0
  144. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatResultListSubPart.js +15 -9
  145. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +196 -149
  146. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +17 -1
  147. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +577 -193
  148. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +119 -86
  149. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +10 -2
  150. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +165 -36
  151. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.d.ts +0 -2
  152. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.js +5 -8
  153. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.d.ts +5 -3
  154. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +75 -65
  155. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +30 -28
  156. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +1 -5
  157. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +102 -106
  158. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.js +44 -20
  159. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.d.ts +19 -0
  160. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.js +67 -0
  161. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.d.ts +57 -0
  162. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.js +69 -0
  163. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +122 -82
  164. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +39 -12
  165. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +1110 -597
  166. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +291 -0
  167. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +485 -0
  168. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatOptions.js +38 -28
  169. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +9 -20
  170. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +650 -689
  171. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +21 -18
  172. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +102 -36
  173. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +1253 -790
  174. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.d.ts +0 -7
  175. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.js +11 -11
  176. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +34 -0
  177. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.js +55 -0
  178. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatSelectedTools.d.ts +6 -2
  179. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatSelectedTools.js +51 -35
  180. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.d.ts +22 -0
  181. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +102 -0
  182. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.d.ts +16 -4
  183. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +192 -44
  184. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.d.ts +11 -12
  185. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +99 -66
  186. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +47 -0
  187. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +188 -0
  188. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.d.ts +20 -0
  189. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +115 -0
  190. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +129 -167
  191. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatViewWelcome.css +16 -3
  192. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.d.ts +37 -0
  193. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +143 -0
  194. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.d.ts +56 -0
  195. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +206 -0
  196. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageDetails.css +152 -0
  197. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageWidget.css +67 -0
  198. package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.d.ts +22 -0
  199. package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +170 -0
  200. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.d.ts +1 -0
  201. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +80 -19
  202. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatWidgetHistoryService.js +20 -28
  203. package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.d.ts +2 -1
  204. package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.js +22 -19
  205. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.d.ts +15 -0
  206. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +122 -0
  207. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +19 -104
  208. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +316 -1040
  209. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.d.ts +28 -0
  210. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.js +162 -0
  211. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.d.ts +21 -0
  212. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.js +98 -0
  213. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +68 -0
  214. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +416 -0
  215. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +1 -6
  216. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +194 -215
  217. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +0 -1
  218. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +74 -104
  219. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +45 -91
  220. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatEditorAffordance.css +22 -0
  221. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatOverlayWidget.css +98 -0
  222. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +5 -2
  223. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +96 -68
  224. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.d.ts +7 -0
  225. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.js +11 -0
  226. package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.d.ts +20 -0
  227. package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +150 -0
  228. package/vscode/src/vs/workbench/contrib/markdown/browser/markedKatexSupport.js +141 -147
  229. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpToolCallUI.d.ts +64 -0
  230. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpToolCallUI.js +200 -0
  231. package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.d.ts +548 -0
  232. package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.js +23 -0
  233. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.d.ts +22 -0
  234. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +338 -0
  235. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.d.ts +18 -0
  236. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +58 -0
  237. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.d.ts +75 -0
  238. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +364 -0
  239. package/vscode/src/vs/workbench/contrib/replNotebook/browser/interactiveEditor.css +21 -0
  240. package/vscode/src/vs/workbench/contrib/replNotebook/browser/media/interactive.css +36 -0
  241. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.d.ts +110 -0
  242. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +692 -0
  243. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.d.ts +40 -0
  244. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +158 -0
  245. package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.d.ts +80 -21
  246. package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +440 -82
  247. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatInputRelatedFilesContrib.d.ts +0 -34
  248. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatInputRelatedFilesContrib.js +0 -139
  249. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.d.ts +0 -10
  250. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +0 -1081
  251. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.d.ts +0 -199
  252. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +0 -482
  253. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +0 -28
  254. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +0 -37
  255. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +0 -94
  256. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +0 -495
  257. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.d.ts +0 -72
  258. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +0 -454
  259. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.d.ts +0 -13
  260. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +0 -66
  261. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.d.ts +0 -41
  262. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +0 -372
  263. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +0 -4
  264. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +0 -58
  265. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.d.ts +0 -26
  266. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +0 -594
  267. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.d.ts +0 -8
  268. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +0 -55
  269. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.d.ts +0 -273
  270. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +0 -1746
  271. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.d.ts +0 -50
  272. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +0 -269
  273. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.d.ts +0 -258
  274. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +0 -806
  275. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.d.ts +0 -41
  276. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +0 -116
  277. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.d.ts +0 -17
  278. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +0 -62
  279. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.d.ts +0 -27
  280. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +0 -40
  281. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.d.ts +0 -23
  282. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +0 -295
  283. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.d.ts +0 -51
  284. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.js +0 -241
  285. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.d.ts +0 -24
  286. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.js +0 -146
  287. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.d.ts +0 -28
  288. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +0 -90
  289. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.d.ts +0 -10
  290. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.js +0 -41
  291. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.d.ts +0 -21
  292. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.js +0 -42
  293. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +0 -25
  294. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.js +0 -77
  295. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css +0 -469
  296. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.d.ts +0 -149
  297. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +0 -823
  298. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.d.ts +0 -180
  299. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +0 -29
  300. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.d.ts +0 -102
  301. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +0 -567
  302. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.d.ts +0 -30
  303. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +0 -189
  304. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.d.ts +0 -75
  305. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +0 -439
  306. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +0 -57
  307. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +0 -263
  308. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.d.ts +0 -22
  309. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.js +0 -48
  310. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.d.ts +0 -13
  311. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +0 -39
  312. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.d.ts +0 -19
  313. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +0 -89
  314. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.d.ts +0 -26
  315. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.js +0 -92
  316. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.d.ts +0 -33
  317. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +0 -108
@@ -1,41 +0,0 @@
1
- import { Emitter } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
2
- import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
3
- import { PrefixSumComputer } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/model/prefixSumComputer";
4
- import { IDiffNestedCellViewModel } from "./notebookDiffEditorBrowser.js";
5
- import { ICellOutputViewModel, IGenericCellViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
6
- import { CellViewModelStateChangeEvent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookViewEvents";
7
- import { NotebookCellTextModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
8
- import { INotebookService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
9
- export declare class DiffNestedCellViewModel extends Disposable implements IDiffNestedCellViewModel, IGenericCellViewModel {
10
- readonly textModel: NotebookCellTextModel;
11
- private _notebookService;
12
- private _id;
13
- get id(): string;
14
- get outputs(): import("@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon").ICellOutput[];
15
- get language(): string;
16
- get metadata(): import("@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon").NotebookCellMetadata;
17
- get uri(): import("@codingame/monaco-vscode-api/vscode/vs/base/common/uri").URI;
18
- get handle(): number;
19
- protected readonly _onDidChangeState: Emitter<CellViewModelStateChangeEvent>;
20
- private _hoveringOutput;
21
- get outputIsHovered(): boolean;
22
- set outputIsHovered(v: boolean);
23
- private _focusOnOutput;
24
- get outputIsFocused(): boolean;
25
- set outputIsFocused(v: boolean);
26
- private _focusInputInOutput;
27
- get inputInOutputIsFocused(): boolean;
28
- set inputInOutputIsFocused(v: boolean);
29
- private _outputViewModels;
30
- get outputsViewModels(): ICellOutputViewModel[];
31
- protected _outputCollection: number[];
32
- protected _outputsTop: PrefixSumComputer | null;
33
- protected readonly _onDidChangeOutputLayout: Emitter<void>;
34
- readonly onDidChangeOutputLayout: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
35
- constructor(textModel: NotebookCellTextModel, _notebookService: INotebookService);
36
- private _ensureOutputsTop;
37
- getOutputOffset(index: number): number;
38
- updateOutputHeight(index: number, height: number): void;
39
- getOutputTotalHeight(): number;
40
- dispose(): void;
41
- }
@@ -1,116 +0,0 @@
1
-
2
- import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
- import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
4
- import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
5
- import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
6
- import { PrefixSumComputer } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/model/prefixSumComputer';
7
- import { CellOutputViewModel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel';
8
- import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
9
-
10
- let DiffNestedCellViewModel = class DiffNestedCellViewModel extends Disposable {
11
- get id() {
12
- return this._id;
13
- }
14
- get outputs() {
15
- return this.textModel.outputs;
16
- }
17
- get language() {
18
- return this.textModel.language;
19
- }
20
- get metadata() {
21
- return this.textModel.metadata;
22
- }
23
- get uri() {
24
- return this.textModel.uri;
25
- }
26
- get handle() {
27
- return this.textModel.handle;
28
- }
29
- get outputIsHovered() {
30
- return this._hoveringOutput;
31
- }
32
- set outputIsHovered(v) {
33
- this._hoveringOutput = v;
34
- this._onDidChangeState.fire({ outputIsHoveredChanged: true });
35
- }
36
- get outputIsFocused() {
37
- return this._focusOnOutput;
38
- }
39
- set outputIsFocused(v) {
40
- this._focusOnOutput = v;
41
- this._onDidChangeState.fire({ outputIsFocusedChanged: true });
42
- }
43
- get inputInOutputIsFocused() {
44
- return this._focusInputInOutput;
45
- }
46
- set inputInOutputIsFocused(v) {
47
- this._focusInputInOutput = v;
48
- }
49
- get outputsViewModels() {
50
- return this._outputViewModels;
51
- }
52
- constructor(textModel, _notebookService) {
53
- super();
54
- this.textModel = textModel;
55
- this._notebookService = _notebookService;
56
- this._onDidChangeState = this._register(( new Emitter()));
57
- this._hoveringOutput = false;
58
- this._focusOnOutput = false;
59
- this._focusInputInOutput = false;
60
- this._outputCollection = [];
61
- this._outputsTop = null;
62
- this._onDidChangeOutputLayout = this._register(( new Emitter()));
63
- this.onDidChangeOutputLayout = this._onDidChangeOutputLayout.event;
64
- this._id = generateUuid();
65
- this._outputViewModels = ( this.textModel.outputs.map(output => ( new CellOutputViewModel(this, output, this._notebookService))));
66
- this._register(this.textModel.onDidChangeOutputs((splice) => {
67
- this._outputCollection.splice(splice.start, splice.deleteCount, ...( splice.newOutputs.map(() => 0)));
68
- const removed = this._outputViewModels.splice(splice.start, splice.deleteCount, ...( splice.newOutputs.map(output => ( new CellOutputViewModel(this, output, this._notebookService)))));
69
- removed.forEach(vm => vm.dispose());
70
- this._outputsTop = null;
71
- this._onDidChangeOutputLayout.fire();
72
- }));
73
- this._outputCollection = ( new Array(this.textModel.outputs.length));
74
- }
75
- _ensureOutputsTop() {
76
- if (!this._outputsTop) {
77
- const values = ( new Uint32Array(this._outputCollection.length));
78
- for (let i = 0; i < this._outputCollection.length; i++) {
79
- values[i] = this._outputCollection[i];
80
- }
81
- this._outputsTop = ( new PrefixSumComputer(values));
82
- }
83
- }
84
- getOutputOffset(index) {
85
- this._ensureOutputsTop();
86
- if (index >= this._outputCollection.length) {
87
- throw ( new Error('Output index out of range!'));
88
- }
89
- return this._outputsTop.getPrefixSum(index - 1);
90
- }
91
- updateOutputHeight(index, height) {
92
- if (index >= this._outputCollection.length) {
93
- throw ( new Error('Output index out of range!'));
94
- }
95
- this._ensureOutputsTop();
96
- this._outputCollection[index] = height;
97
- if (this._outputsTop.setValue(index, height)) {
98
- this._onDidChangeOutputLayout.fire();
99
- }
100
- }
101
- getOutputTotalHeight() {
102
- this._ensureOutputsTop();
103
- return this._outputsTop?.getTotalSum() ?? 0;
104
- }
105
- dispose() {
106
- super.dispose();
107
- this._outputViewModels.forEach(output => {
108
- output.dispose();
109
- });
110
- }
111
- };
112
- DiffNestedCellViewModel = ( __decorate([
113
- ( __param(1, INotebookService))
114
- ], DiffNestedCellViewModel));
115
-
116
- export { DiffNestedCellViewModel };
@@ -1,17 +0,0 @@
1
- import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
2
- import { IEditorWorkerService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/editorWorker.service";
3
- import { ITextModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service";
4
- import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
5
- export interface IDiffEditorHeightCalculatorService {
6
- diffAndComputeHeight(original: URI, modified: URI): Promise<number>;
7
- computeHeightFromLines(lineCount: number): number;
8
- }
9
- export declare class DiffEditorHeightCalculatorService {
10
- private readonly lineHeight;
11
- private readonly textModelResolverService;
12
- private readonly editorWorkerService;
13
- private readonly configurationService;
14
- constructor(lineHeight: number, textModelResolverService: ITextModelService, editorWorkerService: IEditorWorkerService, configurationService: IConfigurationService);
15
- diffAndComputeHeight(original: URI, modified: URI): Promise<number>;
16
- computeHeightFromLines(lineCount: number): number;
17
- }
@@ -1,62 +0,0 @@
1
-
2
- import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
- import { UnchangedRegion } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/diffEditor/diffEditorViewModel';
4
- import { IEditorWorkerService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/editorWorker.service';
5
- import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service';
6
- import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
7
- import { getEditorPadding } from './diffCellEditorOptions.js';
8
- import { HeightOfHiddenLinesRegionInDiffEditor } from './diffElementViewModel.js';
9
-
10
- let DiffEditorHeightCalculatorService = class DiffEditorHeightCalculatorService {
11
- constructor(lineHeight, textModelResolverService, editorWorkerService, configurationService) {
12
- this.lineHeight = lineHeight;
13
- this.textModelResolverService = textModelResolverService;
14
- this.editorWorkerService = editorWorkerService;
15
- this.configurationService = configurationService;
16
- }
17
- async diffAndComputeHeight(original, modified) {
18
- const [originalModel, modifiedModel] = await Promise.all([this.textModelResolverService.createModelReference(original), this.textModelResolverService.createModelReference(modified)]);
19
- try {
20
- const diffChanges = await this.editorWorkerService.computeDiff(original, modified, {
21
- ignoreTrimWhitespace: true,
22
- maxComputationTimeMs: 0,
23
- computeMoves: false
24
- }, 'advanced').then(diff => diff?.changes || []);
25
- const unchangedRegionFeatureEnabled = this.configurationService.getValue('diffEditor.hideUnchangedRegions.enabled');
26
- const minimumLineCount = this.configurationService.getValue('diffEditor.hideUnchangedRegions.minimumLineCount');
27
- const contextLineCount = this.configurationService.getValue('diffEditor.hideUnchangedRegions.contextLineCount');
28
- const originalLineCount = originalModel.object.textEditorModel.getLineCount();
29
- const modifiedLineCount = modifiedModel.object.textEditorModel.getLineCount();
30
- const unchanged = unchangedRegionFeatureEnabled ? UnchangedRegion.fromDiffs(diffChanges, originalLineCount, modifiedLineCount, minimumLineCount ?? 3, contextLineCount ?? 3) : [];
31
- const numberOfNewLines = diffChanges.reduce((prev, curr) => {
32
- if (curr.original.isEmpty && !curr.modified.isEmpty) {
33
- return prev + curr.modified.length;
34
- }
35
- if (!curr.original.isEmpty && !curr.modified.isEmpty && curr.modified.length > curr.original.length) {
36
- return prev + curr.modified.length - curr.original.length;
37
- }
38
- return prev;
39
- }, 0);
40
- const orginalNumberOfLines = originalModel.object.textEditorModel.getLineCount();
41
- const numberOfHiddenLines = unchanged.reduce((prev, curr) => prev + curr.lineCount, 0);
42
- const numberOfHiddenSections = unchanged.length;
43
- const unchangeRegionsHeight = numberOfHiddenSections * HeightOfHiddenLinesRegionInDiffEditor;
44
- const visibleLineCount = orginalNumberOfLines + numberOfNewLines - numberOfHiddenLines;
45
- return (visibleLineCount * this.lineHeight) + getEditorPadding(visibleLineCount).top + getEditorPadding(visibleLineCount).bottom + unchangeRegionsHeight;
46
- }
47
- finally {
48
- originalModel.dispose();
49
- modifiedModel.dispose();
50
- }
51
- }
52
- computeHeightFromLines(lineCount) {
53
- return lineCount * this.lineHeight + getEditorPadding(lineCount).top + getEditorPadding(lineCount).bottom;
54
- }
55
- };
56
- DiffEditorHeightCalculatorService = ( __decorate([
57
- ( __param(1, ITextModelService)),
58
- ( __param(2, IEditorWorkerService)),
59
- ( __param(3, IConfigurationService))
60
- ], DiffEditorHeightCalculatorService));
61
-
62
- export { DiffEditorHeightCalculatorService };
@@ -1,27 +0,0 @@
1
- import { Emitter } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
2
- import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
3
- import { IDiffElementLayoutInfo } from "./notebookDiffEditorBrowser.js";
4
- import { NotebookLayoutChangeEvent, NotebookLayoutInfo } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookViewEvents";
5
- export declare enum NotebookDiffViewEventType {
6
- LayoutChanged = 1,
7
- CellLayoutChanged = 2
8
- }
9
- export declare class NotebookDiffLayoutChangedEvent {
10
- readonly source: NotebookLayoutChangeEvent;
11
- readonly value: NotebookLayoutInfo;
12
- readonly type = NotebookDiffViewEventType.LayoutChanged;
13
- constructor(source: NotebookLayoutChangeEvent, value: NotebookLayoutInfo);
14
- }
15
- export declare class NotebookCellLayoutChangedEvent {
16
- readonly source: IDiffElementLayoutInfo;
17
- readonly type = NotebookDiffViewEventType.CellLayoutChanged;
18
- constructor(source: IDiffElementLayoutInfo);
19
- }
20
- export type NotebookDiffViewEvent = NotebookDiffLayoutChangedEvent | NotebookCellLayoutChangedEvent;
21
- export declare class NotebookDiffEditorEventDispatcher extends Disposable {
22
- protected readonly _onDidChangeLayout: Emitter<NotebookDiffLayoutChangedEvent>;
23
- readonly onDidChangeLayout: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<NotebookDiffLayoutChangedEvent>;
24
- protected readonly _onDidChangeCellLayout: Emitter<NotebookCellLayoutChangedEvent>;
25
- readonly onDidChangeCellLayout: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<NotebookCellLayoutChangedEvent>;
26
- emit(events: NotebookDiffViewEvent[]): void;
27
- }
@@ -1,40 +0,0 @@
1
-
2
- import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
3
- import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
4
-
5
- var NotebookDiffViewEventType;
6
- (function (NotebookDiffViewEventType) {
7
- NotebookDiffViewEventType[NotebookDiffViewEventType["LayoutChanged"] = 1] = "LayoutChanged";
8
- NotebookDiffViewEventType[NotebookDiffViewEventType["CellLayoutChanged"] = 2] = "CellLayoutChanged";
9
- })(NotebookDiffViewEventType || (NotebookDiffViewEventType = {}));
10
- class NotebookDiffLayoutChangedEvent {
11
- constructor(source, value) {
12
- this.source = source;
13
- this.value = value;
14
- this.type = NotebookDiffViewEventType.LayoutChanged;
15
- }
16
- }
17
- class NotebookDiffEditorEventDispatcher extends Disposable {
18
- constructor() {
19
- super(...arguments);
20
- this._onDidChangeLayout = this._register(( new Emitter()));
21
- this.onDidChangeLayout = this._onDidChangeLayout.event;
22
- this._onDidChangeCellLayout = this._register(( new Emitter()));
23
- this.onDidChangeCellLayout = this._onDidChangeCellLayout.event;
24
- }
25
- emit(events) {
26
- for (let i = 0, len = events.length; i < len; i++) {
27
- const e = events[i];
28
- switch (e.type) {
29
- case NotebookDiffViewEventType.LayoutChanged:
30
- this._onDidChangeLayout.fire(e);
31
- break;
32
- case NotebookDiffViewEventType.CellLayoutChanged:
33
- this._onDidChangeCellLayout.fire(e);
34
- break;
35
- }
36
- }
37
- }
38
- }
39
-
40
- export { NotebookDiffEditorEventDispatcher, NotebookDiffLayoutChangedEvent, NotebookDiffViewEventType };
@@ -1,23 +0,0 @@
1
- import { DisposableStore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
- import { INotebookEditor } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
3
- import { ICodeEditor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser";
4
- import { IEditorWorkerService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/editorWorker.service";
5
- import { NotebookCellTextModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
6
- import { INotebookOriginalCellModelFactory } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.service";
7
- export declare class NotebookCellDiffDecorator extends DisposableStore {
8
- readonly modifiedCell: NotebookCellTextModel;
9
- readonly originalCell: NotebookCellTextModel;
10
- private readonly editor;
11
- private readonly _editorWorkerService;
12
- private readonly originalCellModelFactory;
13
- private _viewZones;
14
- private readonly throttledDecorator;
15
- private diffForPreviouslyAppliedDecorators?;
16
- private readonly perEditorDisposables;
17
- constructor(notebookEditor: INotebookEditor, modifiedCell: NotebookCellTextModel, originalCell: NotebookCellTextModel, editor: ICodeEditor, _editorWorkerService: IEditorWorkerService, originalCellModelFactory: INotebookOriginalCellModelFactory);
18
- update(editor: ICodeEditor): void;
19
- private _updateImpl;
20
- private _originalModel?;
21
- private getOrCreateOriginalModel;
22
- private _updateWithDiff;
23
- }
@@ -1,295 +0,0 @@
1
-
2
- import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
- import { DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
4
- import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
5
- import { ThrottledDelayer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
6
- import { IEditorWorkerService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/editorWorker.service';
7
- import { EditorOption } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/config/editorOptions';
8
- import { themeColorFromId } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
9
- import { RenderOptions, LineSource, renderLines } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines';
10
- import { diffAddDecoration, diffWholeLineAddDecoration, diffDeleteDecoration } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/diffEditor/registrations.contribution';
11
- import { TrackedRangeStickiness, MinimapPosition, OverviewRulerLane } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/model';
12
- import { ModelDecorationOptions } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/model/textModel';
13
- import { Range } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range';
14
- import { overviewRulerModifiedForeground, minimapGutterModifiedBackground, overviewRulerAddedForeground, minimapGutterAddedBackground, overviewRulerDeletedForeground, minimapGutterDeletedBackground } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/common/quickDiff';
15
- import { INotebookOriginalCellModelFactory } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.service';
16
- import { InlineDecoration, InlineDecorationType } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/viewModel/inlineDecorations';
17
- import { createElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
18
- import { observableFromEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableFromEvent';
19
- import { derived } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/derived';
20
- import { autorunWithStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
21
-
22
- let NotebookCellDiffDecorator = class NotebookCellDiffDecorator extends DisposableStore {
23
- constructor(notebookEditor, modifiedCell, originalCell, editor, _editorWorkerService, originalCellModelFactory) {
24
- super();
25
- this.modifiedCell = modifiedCell;
26
- this.originalCell = originalCell;
27
- this.editor = editor;
28
- this._editorWorkerService = _editorWorkerService;
29
- this.originalCellModelFactory = originalCellModelFactory;
30
- this._viewZones = [];
31
- this.throttledDecorator = ( new ThrottledDelayer(50));
32
- this.perEditorDisposables = this.add(( new DisposableStore()));
33
- const onDidChangeVisibleRanges = observableFromEvent(notebookEditor.onDidChangeVisibleRanges, () => notebookEditor.visibleRanges);
34
- const editorObs = derived((r) => {
35
- const visibleRanges = onDidChangeVisibleRanges.read(r);
36
- const visibleCellHandles = ( ( visibleRanges.map(range => notebookEditor.getCellsInRange(range))).flat().map(c => c.handle));
37
- if (!visibleCellHandles.includes(modifiedCell.handle)) {
38
- return;
39
- }
40
- const editor = notebookEditor.codeEditors.find(item => item[0].handle === modifiedCell.handle)?.[1];
41
- if (editor?.getModel() !== this.modifiedCell.textModel) {
42
- return;
43
- }
44
- return editor;
45
- });
46
- this.add(autorunWithStore((r, store) => {
47
- const editor = editorObs.read(r);
48
- this.perEditorDisposables.clear();
49
- if (editor) {
50
- store.add(editor.onDidChangeModel(() => {
51
- this.perEditorDisposables.clear();
52
- }));
53
- store.add(editor.onDidChangeModelContent(() => {
54
- this.update(editor);
55
- }));
56
- store.add(editor.onDidChangeConfiguration((e) => {
57
- if (e.hasChanged(EditorOption.fontInfo) || e.hasChanged(EditorOption.lineHeight)) {
58
- this.update(editor);
59
- }
60
- }));
61
- this.update(editor);
62
- }
63
- }));
64
- }
65
- update(editor) {
66
- this.throttledDecorator.trigger(() => this._updateImpl(editor));
67
- }
68
- async _updateImpl(editor) {
69
- if (this.isDisposed) {
70
- return;
71
- }
72
- if (editor.getOption(EditorOption.inDiffEditor)) {
73
- this.perEditorDisposables.clear();
74
- return;
75
- }
76
- const model = editor.getModel();
77
- if (!model || model !== this.modifiedCell.textModel) {
78
- this.perEditorDisposables.clear();
79
- return;
80
- }
81
- const originalModel = this.getOrCreateOriginalModel(editor);
82
- if (!originalModel) {
83
- this.perEditorDisposables.clear();
84
- return;
85
- }
86
- const version = model.getVersionId();
87
- const diff = await this._editorWorkerService.computeDiff(originalModel.uri, model.uri, { computeMoves: true, ignoreTrimWhitespace: false, maxComputationTimeMs: Number.MAX_SAFE_INTEGER }, 'advanced');
88
- if (this.isDisposed) {
89
- return;
90
- }
91
- if (diff && !diff.identical && this.modifiedCell.textModel && originalModel && model === editor.getModel() && editor.getModel()?.getVersionId() === version) {
92
- this._updateWithDiff(editor, originalModel, diff, this.modifiedCell.textModel);
93
- }
94
- else {
95
- this.perEditorDisposables.clear();
96
- }
97
- }
98
- getOrCreateOriginalModel(editor) {
99
- if (!this._originalModel) {
100
- const model = editor.getModel();
101
- if (!model) {
102
- return;
103
- }
104
- this._originalModel = this.add(this.originalCellModelFactory.getOrCreate(model.uri, this.originalCell.getValue(), model.getLanguageId(), this.modifiedCell.cellKind)).object;
105
- }
106
- return this._originalModel;
107
- }
108
- _updateWithDiff(editor, originalModel, diff, currentModel) {
109
- if (areDiffsEqual(diff, this.diffForPreviouslyAppliedDecorators)) {
110
- return;
111
- }
112
- this.perEditorDisposables.clear();
113
- const decorations = editor.createDecorationsCollection();
114
- this.perEditorDisposables.add(toDisposable(() => {
115
- editor.changeViewZones((viewZoneChangeAccessor) => {
116
- for (const id of this._viewZones) {
117
- viewZoneChangeAccessor.removeZone(id);
118
- }
119
- });
120
- this._viewZones = [];
121
- decorations.clear();
122
- this.diffForPreviouslyAppliedDecorators = undefined;
123
- }));
124
- this.diffForPreviouslyAppliedDecorators = diff;
125
- const chatDiffAddDecoration = ModelDecorationOptions.createDynamic({
126
- ...diffAddDecoration,
127
- stickiness: TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges
128
- });
129
- const chatDiffWholeLineAddDecoration = ModelDecorationOptions.createDynamic({
130
- ...diffWholeLineAddDecoration,
131
- stickiness: TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,
132
- });
133
- const createOverviewDecoration = (overviewRulerColor, minimapColor) => {
134
- return ModelDecorationOptions.createDynamic({
135
- description: 'chat-editing-decoration',
136
- overviewRuler: { color: themeColorFromId(overviewRulerColor), position: OverviewRulerLane.Left },
137
- minimap: { color: themeColorFromId(minimapColor), position: MinimapPosition.Gutter },
138
- });
139
- };
140
- const modifiedDecoration = createOverviewDecoration(overviewRulerModifiedForeground, minimapGutterModifiedBackground);
141
- const addedDecoration = createOverviewDecoration(overviewRulerAddedForeground, minimapGutterAddedBackground);
142
- const deletedDecoration = createOverviewDecoration(overviewRulerDeletedForeground, minimapGutterDeletedBackground);
143
- editor.changeViewZones((viewZoneChangeAccessor) => {
144
- for (const id of this._viewZones) {
145
- viewZoneChangeAccessor.removeZone(id);
146
- }
147
- this._viewZones = [];
148
- const modifiedVisualDecorations = [];
149
- const mightContainNonBasicASCII = originalModel.mightContainNonBasicASCII();
150
- const mightContainRTL = originalModel.mightContainRTL();
151
- const renderOptions = RenderOptions.fromEditor(this.editor);
152
- const editorLineCount = currentModel.getLineCount();
153
- for (const diffEntry of diff.changes) {
154
- const originalRange = diffEntry.original;
155
- originalModel.tokenization.forceTokenization(Math.max(1, originalRange.endLineNumberExclusive - 1));
156
- const source = ( new LineSource(
157
- originalRange.mapToLineArray(l => originalModel.tokenization.getLineTokens(l)),
158
- [],
159
- mightContainNonBasicASCII,
160
- mightContainRTL
161
- ));
162
- const decorations = [];
163
- for (const i of diffEntry.innerChanges || []) {
164
- decorations.push(( new InlineDecoration(
165
- i.originalRange.delta(-(diffEntry.original.startLineNumber - 1)),
166
- diffDeleteDecoration.className,
167
- InlineDecorationType.Regular
168
- )));
169
- if (!(i.originalRange.isEmpty() && i.originalRange.startLineNumber === 1 && i.modifiedRange.endLineNumber === editorLineCount) && !i.modifiedRange.isEmpty()) {
170
- modifiedVisualDecorations.push({
171
- range: i.modifiedRange, options: chatDiffAddDecoration
172
- });
173
- }
174
- }
175
- const isCreatedContent = decorations.length === 1 && decorations[0].range.isEmpty() && diffEntry.original.startLineNumber === 1;
176
- if (!diffEntry.modified.isEmpty && !(isCreatedContent && (diffEntry.modified.endLineNumberExclusive - 1) === editorLineCount)) {
177
- modifiedVisualDecorations.push({
178
- range: diffEntry.modified.toInclusiveRange(),
179
- options: chatDiffWholeLineAddDecoration
180
- });
181
- }
182
- if (diffEntry.original.isEmpty) {
183
- modifiedVisualDecorations.push({
184
- range: diffEntry.modified.toInclusiveRange(),
185
- options: addedDecoration
186
- });
187
- }
188
- else if (diffEntry.modified.isEmpty) {
189
- modifiedVisualDecorations.push({
190
- range: ( new Range(
191
- diffEntry.modified.startLineNumber - 1,
192
- 1,
193
- diffEntry.modified.startLineNumber,
194
- 1
195
- )),
196
- options: deletedDecoration
197
- });
198
- }
199
- else {
200
- modifiedVisualDecorations.push({
201
- range: diffEntry.modified.toInclusiveRange(),
202
- options: modifiedDecoration
203
- });
204
- }
205
- const domNode = createElement('div');
206
- domNode.className = 'chat-editing-original-zone view-lines line-delete monaco-mouse-cursor-text';
207
- const result = renderLines(source, renderOptions, decorations, domNode);
208
- if (!isCreatedContent) {
209
- const viewZoneData = {
210
- afterLineNumber: diffEntry.modified.startLineNumber - 1,
211
- heightInLines: result.heightInLines,
212
- domNode,
213
- ordinal: 50000 + 2
214
- };
215
- this._viewZones.push(viewZoneChangeAccessor.addZone(viewZoneData));
216
- }
217
- }
218
- decorations.set(modifiedVisualDecorations);
219
- });
220
- }
221
- };
222
- NotebookCellDiffDecorator = ( __decorate([
223
- ( __param(4, IEditorWorkerService)),
224
- ( __param(5, INotebookOriginalCellModelFactory))
225
- ], NotebookCellDiffDecorator));
226
- function areDiffsEqual(a, b) {
227
- if (a && b) {
228
- if (a.changes.length !== b.changes.length) {
229
- return false;
230
- }
231
- if (a.moves.length !== b.moves.length) {
232
- return false;
233
- }
234
- if (!areLineRangeMappinsEqual(a.changes, b.changes)) {
235
- return false;
236
- }
237
- if (!( a.moves.some((move, i) => {
238
- const bMove = b.moves[i];
239
- if (!areLineRangeMappinsEqual(move.changes, bMove.changes)) {
240
- return true;
241
- }
242
- if (move.lineRangeMapping.changedLineCount !== bMove.lineRangeMapping.changedLineCount) {
243
- return true;
244
- }
245
- if (!move.lineRangeMapping.modified.equals(bMove.lineRangeMapping.modified)) {
246
- return true;
247
- }
248
- if (!move.lineRangeMapping.original.equals(bMove.lineRangeMapping.original)) {
249
- return true;
250
- }
251
- return false;
252
- }))) {
253
- return false;
254
- }
255
- return true;
256
- }
257
- else if (!a && !b) {
258
- return true;
259
- }
260
- else {
261
- return false;
262
- }
263
- }
264
- function areLineRangeMappinsEqual(a, b) {
265
- if (a.length !== b.length) {
266
- return false;
267
- }
268
- if (( a.some((c, i) => {
269
- const bChange = b[i];
270
- if (c.changedLineCount !== bChange.changedLineCount) {
271
- return true;
272
- }
273
- if ((c.innerChanges || []).length !== (bChange.innerChanges || []).length) {
274
- return true;
275
- }
276
- if (( (c.innerChanges || []).some((innerC, innerIdx) => {
277
- const bInnerC = bChange.innerChanges[innerIdx];
278
- if (!innerC.modifiedRange.equalsRange(bInnerC.modifiedRange)) {
279
- return true;
280
- }
281
- if (!innerC.originalRange.equalsRange(bInnerC.originalRange)) {
282
- return true;
283
- }
284
- return false;
285
- }))) {
286
- return true;
287
- }
288
- return false;
289
- }))) {
290
- return false;
291
- }
292
- return true;
293
- }
294
-
295
- export { NotebookCellDiffDecorator };