@codingame/monaco-vscode-katex-common 30.0.1 → 31.0.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 (276) hide show
  1. package/package.json +3 -3
  2. package/vscode/src/vs/platform/actions/browser/actionbar.d.ts +16 -0
  3. package/vscode/src/vs/platform/actions/browser/actionbar.js +22 -0
  4. package/vscode/src/vs/platform/actions/browser/buttonbar.js +2 -2
  5. package/vscode/src/vs/platform/networkFilter/common/domainMatcher.d.ts +50 -0
  6. package/vscode/src/vs/platform/networkFilter/common/domainMatcher.js +138 -0
  7. package/vscode/src/vs/platform/networkFilter/common/settings.d.ts +12 -0
  8. package/vscode/src/vs/platform/networkFilter/common/settings.js +14 -0
  9. package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.d.ts +18 -0
  10. package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.js +13 -0
  11. package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.d.ts +73 -0
  12. package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.js +10 -0
  13. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +16 -16
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.d.ts +3 -1
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +51 -24
  16. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
  17. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.d.ts +2 -1
  18. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +64 -72
  19. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +10 -10
  20. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.d.ts +2 -1
  21. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +17 -14
  22. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +13 -13
  23. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.js +1 -1
  24. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +17 -18
  25. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +5 -2
  26. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +5 -0
  27. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +73 -9
  28. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +1 -1
  29. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +32 -32
  30. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.d.ts +1 -0
  31. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.js +20 -2
  32. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +1 -0
  33. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +73 -49
  34. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +12 -12
  35. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +0 -6
  36. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +41 -99
  37. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
  38. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +2 -1
  39. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +13 -9
  40. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
  41. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +1 -1
  42. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +14 -15
  43. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -2
  44. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.d.ts +11 -12
  45. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.js +339 -161
  46. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +9 -2
  47. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +1 -1
  48. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +2 -2
  49. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.d.ts +9 -4
  50. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +33 -5
  51. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +1 -1
  52. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +1 -1
  53. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.d.ts +43 -1
  54. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.js +147 -2
  55. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +1 -1
  56. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +2 -2
  57. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +4 -0
  58. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +55 -6
  59. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.d.ts +1 -1
  60. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.js +7 -5
  61. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts.d.ts +1 -3
  62. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.js +42 -10
  63. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +3 -3
  64. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +1 -1
  65. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +1 -1
  66. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/animations/animation.d.ts +18 -0
  67. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/animations/animationRegistry.d.ts +15 -0
  68. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/animations/animationRegistry.js +16 -0
  69. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/animations/blockAnimations.d.ts +13 -0
  70. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/animations/blockAnimations.js +33 -0
  71. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/buffer.d.ts +46 -0
  72. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/bufferRegistry.d.ts +11 -0
  73. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/bufferRegistry.js +12 -0
  74. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/offBuffer.d.ts +9 -0
  75. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/offBuffer.js +12 -0
  76. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/paragraphBuffer.d.ts +23 -0
  77. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/paragraphBuffer.js +37 -0
  78. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/wordBuffer.d.ts +34 -0
  79. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/wordBuffer.js +68 -0
  80. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/chatIncrementalRendering.d.ts +77 -0
  81. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/chatIncrementalRendering.js +170 -0
  82. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/media/chatIncrementalRendering.css +112 -0
  83. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.d.ts +3 -1
  84. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +26 -16
  85. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +24 -6
  86. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +111 -145
  87. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +8 -8
  88. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +4 -4
  89. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPlanReviewPart.d.ts +58 -0
  90. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPlanReviewPart.js +425 -0
  91. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +16 -7
  92. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +68 -25
  93. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +5 -1
  94. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +101 -45
  95. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +4 -4
  96. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +6 -6
  97. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.js +5 -5
  98. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.d.ts +36 -4
  99. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +217 -25
  100. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +6 -6
  101. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +1 -1
  102. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +23 -3
  103. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +168 -60
  104. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +10 -10
  105. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +18 -17
  106. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +1 -5
  107. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +7 -18
  108. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.d.ts +1 -5
  109. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +7 -19
  110. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +1 -1
  111. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +3 -3
  112. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.d.ts +24 -19
  113. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +104 -78
  114. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +11 -2
  115. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatPlanReview.css +257 -0
  116. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +19 -0
  117. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatSubagentContent.css +30 -0
  118. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +1 -1
  119. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +12 -0
  120. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatToolConfirmationCarousel.css +286 -0
  121. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +1 -1
  122. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +4 -4
  123. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +1 -1
  124. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +3 -3
  125. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMissingSandboxDepsConfirmationSubPart.js +2 -2
  126. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatModifiedFilesConfirmationSubPart.js +15 -11
  127. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.d.ts +1 -7
  128. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +25 -47
  129. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +29 -53
  130. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +258 -321
  131. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.d.ts +53 -0
  132. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.js +392 -0
  133. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.d.ts +1 -3
  134. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +24 -30
  135. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +2 -3
  136. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +9 -8
  137. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +2 -2
  138. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +5 -5
  139. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +5 -5
  140. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.d.ts +6 -3
  141. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.js +2 -3
  142. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +11 -11
  143. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +38 -11
  144. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +577 -113
  145. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +0 -7
  146. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +4 -7
  147. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +1 -8
  148. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +58 -75
  149. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
  150. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +44 -12
  151. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +362 -188
  152. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +0 -2
  153. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +4 -5
  154. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +42 -95
  155. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.d.ts +2 -1
  156. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +9 -10
  157. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +57 -38
  158. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.d.ts +21 -15
  159. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/{modelPickerActionItem2.js → modelPickerActionItem.js} +5 -7
  160. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +38 -31
  161. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +4 -5
  162. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +3 -3
  163. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +94 -40
  164. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +7 -7
  165. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +2 -2
  166. package/vscode/src/vs/workbench/contrib/chat/common/chatArtifactExtraction.d.ts +16 -0
  167. package/vscode/src/vs/workbench/contrib/chat/common/chatArtifactExtraction.js +218 -0
  168. package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +7 -7
  169. package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +6 -1
  170. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +15 -15
  171. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +12 -21
  172. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +2 -32
  173. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +355 -156
  174. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.d.ts +2 -13
  175. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.js +72 -65
  176. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +4 -43
  177. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +238 -204
  178. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +4 -19
  179. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +128 -115
  180. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +6 -9
  181. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +152 -49
  182. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +64 -0
  183. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +40 -40
  184. package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +3 -3
  185. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +7 -7
  186. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +2 -2
  187. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
  188. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
  189. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +3 -3
  190. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
  191. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
  192. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
  193. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
  194. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +1 -1
  195. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +1 -1
  196. package/vscode/src/vs/workbench/contrib/terminal/terminalContribChatExports.d.ts +2 -0
  197. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.d.ts +2 -0
  198. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.js +41 -0
  199. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/commandFileWriteParser.d.ts +24 -0
  200. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.d.ts +26 -0
  201. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.js +142 -0
  202. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +45 -0
  203. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +165 -0
  204. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +53 -0
  205. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +163 -0
  206. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +27 -0
  207. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +142 -0
  208. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +29 -0
  209. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +144 -0
  210. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +40 -0
  211. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +174 -0
  212. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.d.ts +7 -0
  213. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +43 -0
  214. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +42 -0
  215. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +256 -0
  216. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.d.ts +42 -0
  217. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +94 -0
  218. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.d.ts +42 -0
  219. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +221 -0
  220. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.d.ts +31 -0
  221. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.js +392 -0
  222. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.d.ts +45 -0
  223. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +243 -0
  224. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +52 -0
  225. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.js +10 -0
  226. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.d.ts +20 -0
  227. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +310 -0
  228. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +19 -0
  229. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +168 -0
  230. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.d.ts +11 -0
  231. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.js +33 -0
  232. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/commandLinePresenter.d.ts +41 -0
  233. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.d.ts +19 -0
  234. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.js +37 -0
  235. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.d.ts +19 -0
  236. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.js +37 -0
  237. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.d.ts +19 -0
  238. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.js +44 -0
  239. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +13 -0
  240. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +22 -0
  241. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.d.ts +22 -0
  242. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.js +47 -0
  243. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.d.ts +5 -0
  244. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.js +27 -0
  245. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.d.ts +14 -0
  246. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.js +29 -0
  247. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.d.ts +8 -0
  248. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.js +33 -0
  249. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +24 -0
  250. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.d.ts +8 -0
  251. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +32 -0
  252. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +108 -0
  253. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +412 -0
  254. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +42 -0
  255. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.js +23 -0
  256. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +9 -0
  257. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +192 -0
  258. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +2258 -0
  259. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +22 -0
  260. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +43 -0
  261. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.d.ts +17 -0
  262. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.js +118 -0
  263. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalToolAutoApprove.d.ts +22 -0
  264. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalToolAutoApprove.js +44 -0
  265. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/toolIds.d.ts +1 -0
  266. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +25 -0
  267. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +141 -0
  268. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +85 -0
  269. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +608 -0
  270. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.d.ts +0 -40
  271. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +0 -196
  272. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.d.ts +0 -29
  273. package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.d.ts +0 -46
  274. package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.js +0 -215
  275. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.d.ts +0 -18
  276. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.js +0 -107
@@ -1,10 +1,15 @@
1
1
 
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
- import { addDisposableListener, Dimension } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
3
+ import { $, addDisposableListener, Dimension } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
4
4
  import { status } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/aria/aria';
5
- import { toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
5
+ import { renderAsPlaintext, renderMarkdown } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/markdownRenderer';
6
+ import { DomScrollableElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
7
+ import { ActionRunner } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
8
+ import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
9
+ import { DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
6
10
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
7
11
  import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
12
+ import { ScrollbarVisibility } from '@codingame/monaco-vscode-api/vscode/vs/base/common/scrollable';
8
13
  import { assertType } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
9
14
  import { StableEditorBottomScrollState } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/stableEditorScroll';
10
15
  import { EditorOption } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/config/editorOptions';
@@ -14,6 +19,8 @@ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
14
19
  import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
15
20
  import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
16
21
  import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
22
+ import { MenuWorkbenchToolBar, HiddenItemStrategy } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/toolbar';
23
+ import { MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
17
24
  import { ChatMode } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModes';
18
25
  import { CTX_INLINE_CHAT_OUTER_CURSOR_POSITION, MENU_INLINE_CHAT_SIDE, MENU_INLINE_CHAT_WIDGET_SECONDARY, ACTION_REGENERATE_RESPONSE, ACTION_TOGGLE_DIFF, ACTION_REPORT_ISSUE, MENU_INLINE_CHAT_WIDGET_STATUS } from '../common/inlineChat.js';
19
26
  import { EditorBasedInlineChatWidget } from './inlineChatWidget.js';
@@ -24,37 +31,58 @@ let InlineChatZoneWidget = class InlineChatZoneWidget extends ZoneWidget {
24
31
  static {
25
32
  InlineChatZoneWidget_1 = this;
26
33
  }
27
- static {
28
- this._options = {
29
- showFrame: true,
30
- frameWidth: 1,
31
- isResizeable: true,
32
- showArrow: false,
33
- isAccessible: true,
34
- className: "inline-chat-widget",
35
- keepEditorSelection: true,
36
- showInHiddenAreas: true,
37
- ordinal: 50000
38
- };
39
- }
34
+ static #options = {
35
+ showFrame: true,
36
+ frameWidth: 1,
37
+ isResizeable: true,
38
+ showArrow: false,
39
+ isAccessible: true,
40
+ className: "inline-chat-widget",
41
+ keepEditorSelection: true,
42
+ showInHiddenAreas: true,
43
+ ordinal: 50000
44
+ };
45
+ #ctxCursorPosition;
46
+ #dimension;
47
+ #logService;
48
+ #terminationCard;
49
+ #terminationMarkdownContainer;
50
+ #terminationMarkdownMessage;
51
+ #terminationMarkdownScrollable;
52
+ #terminationToolbar;
53
+ #terminationStore = ( new DisposableStore());
40
54
  constructor(
41
55
  location,
42
56
  options,
43
57
  editors,
44
58
  clearDelegate,
45
- _instaService,
46
- _logService,
59
+ instaService,
60
+ logService,
47
61
  contextKeyService
48
62
  ) {
49
- super(editors.editor, InlineChatZoneWidget_1._options);
50
- this._instaService = _instaService;
51
- this._logService = _logService;
63
+ super(editors.editor, InlineChatZoneWidget_1.#options);
52
64
  this.notebookEditor = editors.notebookEditor;
53
- this._ctxCursorPosition = CTX_INLINE_CHAT_OUTER_CURSOR_POSITION.bindTo(contextKeyService);
65
+ this.#logService = logService;
66
+ this.#terminationCard = $("div.inline-chat-terminated-card.hidden");
67
+ this.#terminationMarkdownContainer = $("div.markdown-scroll-container");
68
+ this.#terminationMarkdownMessage = $("div.markdown-message");
69
+ this.#terminationMarkdownContainer.appendChild(this.#terminationMarkdownMessage);
70
+ this.#terminationMarkdownScrollable = this._disposables.add(( new DomScrollableElement(this.#terminationMarkdownContainer, {
71
+ consumeMouseWheelIfScrollbarIsNeeded: true,
72
+ horizontal: ScrollbarVisibility.Hidden,
73
+ vertical: ScrollbarVisibility.Auto
74
+ })));
75
+ this.#terminationCard.appendChild(this.#terminationMarkdownScrollable.getDomNode());
76
+ const contentRow = $("div.content-row");
77
+ this.#terminationToolbar = $("div.toolbar");
78
+ contentRow.appendChild(this.#terminationToolbar);
79
+ this.#terminationCard.appendChild(contentRow);
80
+ this._disposables.add(this.#terminationStore);
81
+ this.#ctxCursorPosition = CTX_INLINE_CHAT_OUTER_CURSOR_POSITION.bindTo(contextKeyService);
54
82
  this._disposables.add(toDisposable(() => {
55
- this._ctxCursorPosition.reset();
83
+ this.#ctxCursorPosition.reset();
56
84
  }));
57
- this.widget = this._instaService.createInstance(EditorBasedInlineChatWidget, location, this.editor, {
85
+ this.widget = instaService.createInstance(EditorBasedInlineChatWidget, location, this.editor, {
58
86
  statusMenuId: {
59
87
  menu: MENU_INLINE_CHAT_WIDGET_STATUS,
60
88
  options: {
@@ -97,13 +125,13 @@ let InlineChatZoneWidget = class InlineChatZoneWidget extends ZoneWidget {
97
125
  let revealFn;
98
126
  this._disposables.add(this.widget.chatWidget.onWillMaybeChangeHeight(() => {
99
127
  if (this.position) {
100
- revealFn = this._createZoneAndScrollRestoreFn(this.position);
128
+ revealFn = this.#createZoneAndScrollRestoreFn(this.position);
101
129
  }
102
130
  }));
103
131
  this._disposables.add(this.widget.onDidChangeHeight(() => {
104
132
  if (this.position && !this._usesResizeHeight) {
105
- revealFn ??= this._createZoneAndScrollRestoreFn(this.position);
106
- const height = this._computeHeight();
133
+ revealFn ??= this.#createZoneAndScrollRestoreFn(this.position);
134
+ const height = this.#computeHeight();
107
135
  this._relayout(height.linesValue);
108
136
  revealFn?.();
109
137
  revealFn = undefined;
@@ -121,13 +149,13 @@ let InlineChatZoneWidget = class InlineChatZoneWidget extends ZoneWidget {
121
149
  }, true));
122
150
  const updateCursorIsAboveContextKey = () => {
123
151
  if (!this.position || !this.editor.hasModel()) {
124
- this._ctxCursorPosition.reset();
152
+ this.#ctxCursorPosition.reset();
125
153
  } else if (this.position.lineNumber === this.editor.getPosition().lineNumber) {
126
- this._ctxCursorPosition.set("above");
154
+ this.#ctxCursorPosition.set("above");
127
155
  } else if (this.position.lineNumber + 1 === this.editor.getPosition().lineNumber) {
128
- this._ctxCursorPosition.set("below");
156
+ this.#ctxCursorPosition.set("below");
129
157
  } else {
130
- this._ctxCursorPosition.reset();
158
+ this.#ctxCursorPosition.reset();
131
159
  }
132
160
  };
133
161
  this._disposables.add(
@@ -139,18 +167,90 @@ let InlineChatZoneWidget = class InlineChatZoneWidget extends ZoneWidget {
139
167
  _fillContainer(container) {
140
168
  container.style.setProperty("--vscode-inlineChat-background", "var(--vscode-editor-background)");
141
169
  container.appendChild(this.widget.domNode);
170
+ container.appendChild(this.#terminationCard);
171
+ }
172
+ showTerminationCard(message, instaService) {
173
+ this.#terminationStore.clear();
174
+ const markdownMessage = typeof message === "string" ? ( new MarkdownString(message, {
175
+ supportThemeIcons: true
176
+ })) : message;
177
+ const text = renderAsPlaintext(typeof message === "string" ? ( new MarkdownString(message)) : message);
178
+ this.#terminationMarkdownMessage.replaceChildren();
179
+ const rendered = this.#terminationStore.add(renderMarkdown(markdownMessage));
180
+ this.#terminationMarkdownMessage.appendChild(rendered.element);
181
+ this.#terminationMarkdownScrollable.getDomNode().classList.remove("hidden");
182
+ this.#terminationMarkdownScrollable.scanDomNode();
183
+ const editor = this.editor;
184
+ const actionRunner = this.#terminationStore.add(new (class extends ActionRunner {
185
+ async runAction(action, context) {
186
+ editor.focus();
187
+ return super.runAction(action, context);
188
+ }
189
+ })());
190
+ this.#terminationToolbar.replaceChildren();
191
+ this.#terminationStore.add(instaService.createInstance(
192
+ MenuWorkbenchToolBar,
193
+ this.#terminationToolbar,
194
+ MenuId.ChatEditorInlineExecute,
195
+ {
196
+ telemetrySource: "inlineChatZone.terminationToolbar",
197
+ hiddenItemStrategy: HiddenItemStrategy.Ignore,
198
+ actionRunner,
199
+ toolbarOptions: {
200
+ primaryGroup: () => true,
201
+ useSeparatorsInPrimaryActions: true
202
+ },
203
+ menuOptions: {
204
+ renderShortTitle: true
205
+ }
206
+ }
207
+ ));
208
+ this.widget.domNode.style.display = "none";
209
+ this.#terminationCard.classList.remove("hidden");
210
+ status(text);
211
+ if (this.position) {
212
+ const revealFn = this.#createZoneAndScrollRestoreFn(this.position);
213
+ const height = this.#computeHeight();
214
+ this._relayout(height.linesValue);
215
+ revealFn();
216
+ }
217
+ }
218
+ hideTerminationCard() {
219
+ this.#terminationStore.clear();
220
+ this.#terminationCard.classList.add("hidden");
221
+ this.widget.domNode.style.display = "";
222
+ if (this.position) {
223
+ const revealFn = this.#createZoneAndScrollRestoreFn(this.position);
224
+ const height = this.#computeHeight();
225
+ this._relayout(height.linesValue);
226
+ revealFn();
227
+ }
228
+ }
229
+ get isShowingTerminationCard() {
230
+ return !this.#terminationCard.classList.contains("hidden");
142
231
  }
143
232
  _doLayout(heightInPixel) {
144
- this._updatePadding();
233
+ this.#updatePadding();
145
234
  const info = this.editor.getLayoutInfo();
146
235
  const width = info.contentWidth - info.verticalScrollbarWidth;
147
- this._dimension = ( new Dimension(width, heightInPixel));
148
- this.widget.layout(this._dimension);
236
+ this.#dimension = ( new Dimension(width, heightInPixel));
237
+ this.widget.layout(this.#dimension);
238
+ if (this.isShowingTerminationCard) {
239
+ const maxHeight = Math.max(50, heightInPixel - 40);
240
+ this.#terminationMarkdownScrollable.getDomNode().style.maxHeight = `${maxHeight}px`;
241
+ this.#terminationMarkdownContainer.style.maxHeight = `${maxHeight}px`;
242
+ this.#terminationMarkdownScrollable.scanDomNode();
243
+ }
149
244
  }
150
- _computeHeight() {
151
- const chatContentHeight = this.widget.contentHeight;
245
+ #computeHeight() {
152
246
  const editorHeight = this.notebookEditor?.getLayoutInfo().height ?? this.editor.getLayoutInfo().height;
153
- const contentHeight = this._decoratingElementsHeight() + Math.min(chatContentHeight, Math.max(this.widget.minHeight, editorHeight * 0.42));
247
+ let innerHeight;
248
+ if (this.isShowingTerminationCard) {
249
+ innerHeight = this.#terminationCard.offsetHeight || 80;
250
+ } else {
251
+ innerHeight = this.widget.contentHeight;
252
+ }
253
+ const contentHeight = this._decoratingElementsHeight() + Math.min(innerHeight, Math.max(this.widget.minHeight, editorHeight * 0.42));
154
254
  const heightInLines = contentHeight / this.editor.getOption(EditorOption.lineHeight);
155
255
  return {
156
256
  linesValue: heightInLines,
@@ -168,20 +268,20 @@ let InlineChatZoneWidget = class InlineChatZoneWidget extends ZoneWidget {
168
268
  };
169
269
  }
170
270
  _onWidth(_widthInPixel) {
171
- if (this._dimension) {
172
- this._doLayout(this._dimension.height);
271
+ if (this.#dimension) {
272
+ this._doLayout(this.#dimension.height);
173
273
  }
174
274
  }
175
275
  show(position) {
176
276
  assertType(this.container);
177
- this._updatePadding();
178
- const revealZone = this._createZoneAndScrollRestoreFn(position);
179
- super.show(position, this._computeHeight().linesValue);
277
+ this.#updatePadding();
278
+ const revealZone = this.#createZoneAndScrollRestoreFn(position);
279
+ super.show(position, this.#computeHeight().linesValue);
180
280
  this.widget.chatWidget.setVisible(true);
181
281
  this.widget.focus();
182
282
  revealZone();
183
283
  }
184
- _updatePadding() {
284
+ #updatePadding() {
185
285
  assertType(this.container);
186
286
  const info = this.editor.getLayoutInfo();
187
287
  const marginWithoutIndentation = info.glyphMarginWidth + info.lineNumbersWidth + info.decorationsWidth;
@@ -198,21 +298,21 @@ let InlineChatZoneWidget = class InlineChatZoneWidget extends ZoneWidget {
198
298
  this.updatePositionAndHeight(position);
199
299
  }
200
300
  updatePositionAndHeight(position) {
201
- const revealZone = this._createZoneAndScrollRestoreFn(position);
301
+ const revealZone = this.#createZoneAndScrollRestoreFn(position);
202
302
  super.updatePositionAndHeight(
203
303
  position,
204
- !this._usesResizeHeight ? this._computeHeight().linesValue : undefined
304
+ !this._usesResizeHeight ? this.#computeHeight().linesValue : undefined
205
305
  );
206
306
  revealZone();
207
307
  }
208
- _createZoneAndScrollRestoreFn(position) {
308
+ #createZoneAndScrollRestoreFn(position) {
209
309
  const scrollState = StableEditorBottomScrollState.capture(this.editor);
210
310
  const lineNumber = position.lineNumber <= 1 ? 1 : 1 + position.lineNumber;
211
311
  return () => {
212
312
  scrollState.restore(this.editor);
213
313
  const scrollTop = this.editor.getScrollTop();
214
314
  const lineTop = this.editor.getTopForLineNumber(lineNumber);
215
- const zoneTop = lineTop - this._computeHeight().pixelsValue;
315
+ const zoneTop = lineTop - this.#computeHeight().pixelsValue;
216
316
  const editorHeight = this.editor.getLayoutInfo().height;
217
317
  const lineBottom = this.editor.getBottomForLineNumber(lineNumber);
218
318
  let newScrollTop = zoneTop;
@@ -222,7 +322,7 @@ let InlineChatZoneWidget = class InlineChatZoneWidget extends ZoneWidget {
222
322
  forceScrollTop = true;
223
323
  }
224
324
  if (newScrollTop < scrollTop || forceScrollTop) {
225
- this._logService.trace("[IE] REVEAL zone", {
325
+ this.#logService.trace("[IE] REVEAL zone", {
226
326
  zoneTop,
227
327
  lineTop,
228
328
  lineBottom,
@@ -237,10 +337,13 @@ let InlineChatZoneWidget = class InlineChatZoneWidget extends ZoneWidget {
237
337
  revealRange(range, isLastLine) {}
238
338
  hide() {
239
339
  const scrollState = StableEditorBottomScrollState.capture(this.editor);
240
- this._ctxCursorPosition.reset();
340
+ this.#ctxCursorPosition.reset();
341
+ this.#terminationStore.clear();
342
+ this.#terminationCard.classList.add("hidden");
343
+ this.widget.domNode.style.display = "";
241
344
  this.widget.chatWidget.setVisible(false);
242
345
  super.hide();
243
- status(( localize(9982, "Closed inline chat widget")));
346
+ status(( localize(10113, "Closed inline chat widget")));
244
347
  scrollState.restore(this.editor);
245
348
  }
246
349
  };
@@ -113,6 +113,7 @@
113
113
  .chat-attachments-container > .chat-input-toolbar {
114
114
  margin-left: auto;
115
115
  margin-right: 16px;
116
+ width: 100%;
116
117
  }
117
118
 
118
119
  /* TODO@jrieken this isn't the nicest selector... */
@@ -321,3 +322,66 @@
321
322
  .monaco-workbench .inline-chat .chat-attached-context {
322
323
  padding: 2px 0px;
323
324
  }
325
+
326
+ /* Termination card (zone widget) — aligned with overlay widget */
327
+
328
+ .monaco-workbench .inline-chat-terminated-card {
329
+ padding: 4px;
330
+ color: var(--vscode-foreground);
331
+ font-size: 12px;
332
+ display: flex;
333
+ flex-direction: column;
334
+ gap: 8px;
335
+ }
336
+
337
+ .monaco-workbench .inline-chat-terminated-card.hidden {
338
+ display: none;
339
+ }
340
+
341
+ /* Markdown scrollable area */
342
+ .monaco-workbench .inline-chat-terminated-card > .monaco-scrollable-element {
343
+ width: 100%;
344
+ }
345
+
346
+ .monaco-workbench .inline-chat-terminated-card > .monaco-scrollable-element.hidden {
347
+ display: none;
348
+ }
349
+
350
+ .monaco-workbench .inline-chat-terminated-card .markdown-scroll-container {
351
+ width: 100%;
352
+ }
353
+
354
+ .monaco-workbench .inline-chat-terminated-card .markdown-message {
355
+ padding: 5px;
356
+ font-size: 12px;
357
+ line-height: 1.45;
358
+ }
359
+
360
+ .monaco-workbench .inline-chat-terminated-card .markdown-message p {
361
+ margin: 0;
362
+ }
363
+
364
+ .monaco-workbench .inline-chat-terminated-card .markdown-message code {
365
+ font-family: var(--monaco-monospace-font);
366
+ font-size: var(--vscode-chat-font-size-body-xs);
367
+ color: var(--vscode-textPreformat-foreground);
368
+ background-color: var(--vscode-textPreformat-background);
369
+ padding: 1px 3px;
370
+ border-radius: 4px;
371
+ border: 1px solid var(--vscode-textPreformat-border);
372
+ white-space: pre-wrap;
373
+ }
374
+
375
+ /* Content row: toolbar */
376
+ .monaco-workbench .inline-chat-terminated-card > .content-row {
377
+ display: flex;
378
+ align-items: center;
379
+ justify-content: flex-end;
380
+ gap: 4px;
381
+ }
382
+
383
+ .monaco-workbench .inline-chat-terminated-card > .content-row > .toolbar .monaco-text-button {
384
+ padding: 2px 8px;
385
+ font-size: 12px;
386
+ white-space: nowrap;
387
+ }
@@ -33,14 +33,14 @@ var InlineChatConfigKeys;
33
33
  properties: {
34
34
  [InlineChatConfigKeys.FinishOnType]: {
35
35
  description: ( localize(
36
- 9983,
36
+ 10114,
37
37
  "Whether to finish an inline chat session when typing outside of changed regions."
38
38
  )),
39
39
  default: false,
40
40
  type: "boolean"
41
41
  },
42
42
  [InlineChatConfigKeys.EnableV2]: {
43
- description: ( localize(9984, "Whether to use the next version of inline chat.")),
43
+ description: ( localize(10115, "Whether to use the next version of inline chat.")),
44
44
  default: false,
45
45
  type: "boolean",
46
46
  tags: ["preview"],
@@ -49,7 +49,7 @@ var InlineChatConfigKeys;
49
49
  }
50
50
  },
51
51
  [InlineChatConfigKeys.notebookAgent]: {
52
- markdownDescription: ( localize(9985, "Enable agent-like behavior for inline chat widget in notebooks.")),
52
+ markdownDescription: ( localize(10116, "Enable agent-like behavior for inline chat widget in notebooks.")),
53
53
  default: false,
54
54
  type: "boolean",
55
55
  tags: ["experimental"],
@@ -59,24 +59,24 @@ var InlineChatConfigKeys;
59
59
  },
60
60
  [InlineChatConfigKeys.Affordance]: {
61
61
  description: ( localize(
62
- 9986,
62
+ 10117,
63
63
  "Controls whether an inline chat affordance is shown when text is selected."
64
64
  )),
65
65
  default: "off",
66
66
  type: "string",
67
- enum: ["off", "gutter", "editor"],
68
- enumDescriptions: [( localize(9987, "No affordance is shown.")), ( localize(9988, "Show an affordance in the gutter.")), ( localize(9989, "Show an affordance in the editor at the cursor position."))],
67
+ enum: ["off", "editor"],
68
+ enumDescriptions: [( localize(10118, "No affordance is shown.")), ( localize(10119, "Show an affordance in the editor at the cursor position."))],
69
69
  experiment: {
70
70
  mode: "auto"
71
71
  },
72
72
  tags: ["experimental"]
73
73
  },
74
74
  [InlineChatConfigKeys.RenderMode]: {
75
- description: ( localize(9990, "Controls how inline chat is rendered.")),
75
+ description: ( localize(10120, "Controls how inline chat is rendered.")),
76
76
  default: "hover",
77
77
  type: "string",
78
78
  enum: ["zone", "hover"],
79
- enumDescriptions: [( localize(9991, "Render inline chat as a zone widget below the current line.")), ( localize(9992, "Render inline chat as a hover overlay."))],
79
+ enumDescriptions: [( localize(10121, "Render inline chat as a zone widget below the current line.")), ( localize(10122, "Render inline chat as a hover overlay."))],
80
80
  experiment: {
81
81
  mode: "auto"
82
82
  },
@@ -84,7 +84,7 @@ var InlineChatConfigKeys;
84
84
  },
85
85
  [InlineChatConfigKeys.FixDiagnostics]: {
86
86
  description: ( localize(
87
- 9993,
87
+ 10123,
88
88
  "Controls whether the Fix action is shown for diagnostics in the editor."
89
89
  )),
90
90
  default: true,
@@ -96,7 +96,7 @@ var InlineChatConfigKeys;
96
96
  },
97
97
  [InlineChatConfigKeys.AskInChat]: {
98
98
  description: ( localize(
99
- 9994,
99
+ 10124,
100
100
  "Controls whether files in a chat editing session use Ask in Chat instead of Inline Chat."
101
101
  )),
102
102
  default: true,
@@ -112,34 +112,34 @@ var InlineChatResponseType;
112
112
  InlineChatResponseType["MessagesAndEdits"] = "messagesAndEdits";
113
113
  })(InlineChatResponseType || (InlineChatResponseType = {}));
114
114
  const CTX_INLINE_CHAT_POSSIBLE = ( new RawContextKey("inlineChatPossible", false, ( localize(
115
- 9995,
115
+ 10125,
116
116
  "Whether a provider for inline chat exists and whether an editor for inline chat is open"
117
117
  ))));
118
- const CTX_INLINE_CHAT_HAS_AGENT2 = ( new RawContextKey("inlineChatHasEditsAgent", false, ( localize(9996, "Whether an agent for inline for interactive editors exists"))));
119
- const CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE = ( new RawContextKey("inlineChatHasNotebookInline", false, ( localize(9997, "Whether an agent for notebook cells exists"))));
120
- const CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT = ( new RawContextKey("inlineChatHasNotebookAgent", false, ( localize(9998, "Whether an agent for notebook cells exists"))));
121
- const CTX_INLINE_CHAT_VISIBLE = ( new RawContextKey("inlineChatVisible", false, ( localize(9999, "Whether the interactive editor input is visible"))));
122
- const CTX_INLINE_CHAT_FOCUSED = ( new RawContextKey("inlineChatFocused", false, ( localize(10000, "Whether the interactive editor input is focused"))));
118
+ const CTX_INLINE_CHAT_HAS_AGENT2 = ( new RawContextKey("inlineChatHasEditsAgent", false, ( localize(10126, "Whether an agent for inline for interactive editors exists"))));
119
+ const CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE = ( new RawContextKey("inlineChatHasNotebookInline", false, ( localize(10127, "Whether an agent for notebook cells exists"))));
120
+ const CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT = ( new RawContextKey("inlineChatHasNotebookAgent", false, ( localize(10128, "Whether an agent for notebook cells exists"))));
121
+ const CTX_INLINE_CHAT_VISIBLE = ( new RawContextKey("inlineChatVisible", false, ( localize(10129, "Whether the interactive editor input is visible"))));
122
+ const CTX_INLINE_CHAT_FOCUSED = ( new RawContextKey("inlineChatFocused", false, ( localize(10130, "Whether the interactive editor input is focused"))));
123
123
  const CTX_INLINE_CHAT_EDITING = ( new RawContextKey("inlineChatEditing", true, ( localize(
124
- 10001,
124
+ 10131,
125
125
  "Whether the user is currently editing or generating code in the inline chat"
126
126
  ))));
127
- const CTX_INLINE_CHAT_RESPONSE_FOCUSED = ( new RawContextKey("inlineChatResponseFocused", false, ( localize(10002, "Whether the interactive widget's response is focused"))));
128
- const CTX_INLINE_CHAT_INPUT_HAS_TEXT = ( new RawContextKey("inlineChatInputHasText", false, ( localize(10003, "Whether the inline chat input widget has text"))));
129
- const CTX_INLINE_CHAT_INPUT_WIDGET_FOCUSED = ( new RawContextKey("inlineChatInputWidgetFocused", false, ( localize(10004, "Whether the inline chat input widget editor is focused"))));
127
+ const CTX_INLINE_CHAT_RESPONSE_FOCUSED = ( new RawContextKey("inlineChatResponseFocused", false, ( localize(10132, "Whether the interactive widget's response is focused"))));
128
+ const CTX_INLINE_CHAT_INPUT_HAS_TEXT = ( new RawContextKey("inlineChatInputHasText", false, ( localize(10133, "Whether the inline chat input widget has text"))));
129
+ const CTX_INLINE_CHAT_INPUT_WIDGET_FOCUSED = ( new RawContextKey("inlineChatInputWidgetFocused", false, ( localize(10134, "Whether the inline chat input widget editor is focused"))));
130
130
  const CTX_INLINE_CHAT_OUTER_CURSOR_POSITION = ( new RawContextKey("inlineChatOuterCursorPosition", "", ( localize(
131
- 10005,
131
+ 10135,
132
132
  "Whether the cursor of the outer editor is above or below the interactive editor input"
133
133
  ))));
134
- const CTX_INLINE_CHAT_REQUEST_IN_PROGRESS = ( new RawContextKey("inlineChatRequestInProgress", false, ( localize(10006, "Whether an inline chat request is currently in progress"))));
134
+ const CTX_INLINE_CHAT_REQUEST_IN_PROGRESS = ( new RawContextKey("inlineChatRequestInProgress", false, ( localize(10136, "Whether an inline chat request is currently in progress"))));
135
135
  const CTX_INLINE_CHAT_RESPONSE_TYPE = ( new RawContextKey("inlineChatResponseType", InlineChatResponseType.None, ( localize(
136
- 10007,
136
+ 10137,
137
137
  "What type was the responses have been receieved, nothing yet, just messages, or messaged and local edits"
138
138
  ))));
139
- const CTX_INLINE_CHAT_FILE_BELONGS_TO_CHAT = ( new RawContextKey("inlineChatFileBelongsToChat", false, ( localize(10008, "Whether the current file belongs to a chat editing session"))));
140
- const CTX_INLINE_CHAT_PENDING_CONFIRMATION = ( new RawContextKey("inlineChatPendingConfirmation", false, ( localize(10009, "Whether an inline chat request is pending user confirmation"))));
141
- const CTX_INLINE_CHAT_TERMINATED = ( new RawContextKey("inlineChatTerminated", false, ( localize(10010, "Whether the current inline chat session is terminated"))));
142
- const CTX_INLINE_CHAT_AFFORDANCE_VISIBLE = ( new RawContextKey("inlineChatAffordanceVisible", false, ( localize(10011, "Whether an inline chat affordance widget is visible"))));
139
+ const CTX_INLINE_CHAT_FILE_BELONGS_TO_CHAT = ( new RawContextKey("inlineChatFileBelongsToChat", false, ( localize(10138, "Whether the current file belongs to a chat editing session"))));
140
+ const CTX_INLINE_CHAT_PENDING_CONFIRMATION = ( new RawContextKey("inlineChatPendingConfirmation", false, ( localize(10139, "Whether an inline chat request is pending user confirmation"))));
141
+ const CTX_INLINE_CHAT_TERMINATED = ( new RawContextKey("inlineChatTerminated", false, ( localize(10140, "Whether the current inline chat session is terminated"))));
142
+ const CTX_INLINE_CHAT_AFFORDANCE_VISIBLE = ( new RawContextKey("inlineChatAffordanceVisible", false, ( localize(10141, "Whether an inline chat affordance widget is visible"))));
143
143
  const CTX_INLINE_CHAT_V1_ENABLED = ( ContextKeyExpr.or(( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE))));
144
144
  const CTX_INLINE_CHAT_V2_ENABLED = ( ContextKeyExpr.or(CTX_INLINE_CHAT_HAS_AGENT2, ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT))));
145
145
  const CTX_HOVER_MODE = ( ContextKeyExpr.equals("config.inlineChat.renderMode", "hover"));
@@ -155,37 +155,37 @@ const MENU_INLINE_CHAT_WIDGET_STATUS = MenuId.for("inlineChatWidget.status");
155
155
  const MENU_INLINE_CHAT_WIDGET_SECONDARY = MenuId.for("inlineChatWidget.secondary");
156
156
  MenuId.for("inlineChatWidget.changesZone");
157
157
  const MENU_INLINE_CHAT_SIDE = MenuId.for("inlineChatWidget.side");
158
- const inlineChatForeground = registerColor("inlineChat.foreground", editorWidgetForeground, ( localize(10012, "Foreground color of the interactive editor widget")));
159
- const inlineChatBackground = registerColor("inlineChat.background", editorWidgetBackground, ( localize(10013, "Background color of the interactive editor widget")));
160
- registerColor("inlineChat.border", editorWidgetBorder, ( localize(10014, "Border color of the interactive editor widget")));
161
- registerColor("inlineChat.shadow", widgetShadow, ( localize(10015, "Shadow color of the interactive editor widget")));
162
- registerColor("inlineChatInput.border", editorWidgetBorder, ( localize(10016, "Border color of the interactive editor input")));
163
- registerColor("inlineChatInput.focusBorder", focusBorder, ( localize(10017, "Border color of the interactive editor input when focused")));
158
+ const inlineChatForeground = registerColor("inlineChat.foreground", editorWidgetForeground, ( localize(10142, "Foreground color of the interactive editor widget")));
159
+ const inlineChatBackground = registerColor("inlineChat.background", editorWidgetBackground, ( localize(10143, "Background color of the interactive editor widget")));
160
+ registerColor("inlineChat.border", editorWidgetBorder, ( localize(10144, "Border color of the interactive editor widget")));
161
+ registerColor("inlineChat.shadow", widgetShadow, ( localize(10145, "Shadow color of the interactive editor widget")));
162
+ registerColor("inlineChatInput.border", editorWidgetBorder, ( localize(10146, "Border color of the interactive editor input")));
163
+ registerColor("inlineChatInput.focusBorder", focusBorder, ( localize(10147, "Border color of the interactive editor input when focused")));
164
164
  registerColor(
165
165
  "inlineChatInput.placeholderForeground",
166
166
  inputPlaceholderForeground,
167
- ( localize(10018, "Foreground color of the interactive editor input placeholder"))
167
+ ( localize(10148, "Foreground color of the interactive editor input placeholder"))
168
168
  );
169
- registerColor("inlineChatInput.background", inputBackground, ( localize(10019, "Background color of the interactive editor input")));
170
- registerColor("inlineChatDiff.inserted", ( transparent(diffInserted, .5)), ( localize(10020, "Background color of inserted text in the interactive editor input")));
169
+ registerColor("inlineChatInput.background", inputBackground, ( localize(10149, "Background color of the interactive editor input")));
170
+ registerColor("inlineChatDiff.inserted", ( transparent(diffInserted, .5)), ( localize(10150, "Background color of inserted text in the interactive editor input")));
171
171
  registerColor("editorOverviewRuler.inlineChatInserted", {
172
172
  dark: ( transparent(diffInserted, 0.6)),
173
173
  light: ( transparent(diffInserted, 0.8)),
174
174
  hcDark: ( transparent(diffInserted, 0.6)),
175
175
  hcLight: ( transparent(diffInserted, 0.8))
176
- }, ( localize(10021, "Overview ruler marker color for inline chat inserted content.")));
176
+ }, ( localize(10151, "Overview ruler marker color for inline chat inserted content.")));
177
177
  registerColor("editorMinimap.inlineChatInserted", {
178
178
  dark: ( transparent(diffInserted, 0.6)),
179
179
  light: ( transparent(diffInserted, 0.8)),
180
180
  hcDark: ( transparent(diffInserted, 0.6)),
181
181
  hcLight: ( transparent(diffInserted, 0.8))
182
- }, ( localize(10022, "Minimap marker color for inline chat inserted content.")));
183
- registerColor("inlineChatDiff.removed", ( transparent(diffRemoved, .5)), ( localize(10023, "Background color of removed text in the interactive editor input")));
182
+ }, ( localize(10152, "Minimap marker color for inline chat inserted content.")));
183
+ registerColor("inlineChatDiff.removed", ( transparent(diffRemoved, .5)), ( localize(10153, "Background color of removed text in the interactive editor input")));
184
184
  registerColor("editorOverviewRuler.inlineChatRemoved", {
185
185
  dark: ( transparent(diffRemoved, 0.6)),
186
186
  light: ( transparent(diffRemoved, 0.8)),
187
187
  hcDark: ( transparent(diffRemoved, 0.6)),
188
188
  hcLight: ( transparent(diffRemoved, 0.8))
189
- }, ( localize(10024, "Overview ruler marker color for inline chat removed content.")));
189
+ }, ( localize(10154, "Overview ruler marker color for inline chat removed content.")));
190
190
 
191
191
  export { ACTION_ACCEPT_CHANGES, ACTION_ASK_IN_CHAT, ACTION_REGENERATE_RESPONSE, ACTION_REPORT_ISSUE, ACTION_START, ACTION_TOGGLE_DIFF, CTX_ASK_IN_CHAT_ENABLED, CTX_FIX_DIAGNOSTICS_ENABLED, CTX_HOVER_MODE, CTX_INLINE_CHAT_AFFORDANCE_VISIBLE, CTX_INLINE_CHAT_EDITING, CTX_INLINE_CHAT_FILE_BELONGS_TO_CHAT, CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_HAS_AGENT2, CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT, CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE, CTX_INLINE_CHAT_INPUT_HAS_TEXT, CTX_INLINE_CHAT_INPUT_WIDGET_FOCUSED, CTX_INLINE_CHAT_OUTER_CURSOR_POSITION, CTX_INLINE_CHAT_PENDING_CONFIRMATION, CTX_INLINE_CHAT_POSSIBLE, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS, CTX_INLINE_CHAT_RESPONSE_FOCUSED, CTX_INLINE_CHAT_RESPONSE_TYPE, CTX_INLINE_CHAT_TERMINATED, CTX_INLINE_CHAT_V1_ENABLED, CTX_INLINE_CHAT_V2_ENABLED, CTX_INLINE_CHAT_VISIBLE, INLINE_CHAT_ID, InlineChatConfigKeys, InlineChatResponseType, MENU_INLINE_CHAT_SIDE, MENU_INLINE_CHAT_WIDGET_SECONDARY, MENU_INLINE_CHAT_WIDGET_STATUS, inlineChatBackground, inlineChatForeground };
@@ -88,7 +88,7 @@ let ReplInputHintContentWidget = class ReplInputHintContentWidget extends Dispos
88
88
  const keybinding = this.getKeybinding();
89
89
  const keybindingHintLabel = keybinding?.getLabel();
90
90
  if (keybinding && keybindingHintLabel) {
91
- const actionPart = ( localize(10041, "Press {0} to execute. ", keybindingHintLabel));
91
+ const actionPart = ( localize(10171, "Press {0} to execute. ", keybindingHintLabel));
92
92
  const [before, after] = ( actionPart.split(keybindingHintLabel).map(fragment => {
93
93
  const hintPart = $("span", undefined, fragment);
94
94
  hintPart.style.fontStyle = "italic";
@@ -105,9 +105,9 @@ let ReplInputHintContentWidget = class ReplInputHintContentWidget extends Dispos
105
105
  hintElement.appendChild(after);
106
106
  this.domNode.append(hintElement);
107
107
  const helpKeybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
108
- const helpInfo = helpKeybinding ? ( localize(10042, "Use {0} for accessibility help. ", helpKeybinding)) : ( localize(10043, "Run the Open Accessibility Help command for more information. "));
108
+ const helpInfo = helpKeybinding ? ( localize(10172, "Use {0} for accessibility help. ", helpKeybinding)) : ( localize(10173, "Run the Open Accessibility Help command for more information. "));
109
109
  this.ariaLabel = actionPart.concat(helpInfo, ( localize(
110
- 10044,
110
+ 10174,
111
111
  " Toggle {0} in settings to disable this hint.",
112
112
  AccessibilityVerbositySettingId.ReplEditor
113
113
  )));
@@ -144,7 +144,7 @@ let ExecutionStateCellStatusBarItem = class ExecutionStateCellStatusBarItem exte
144
144
  return [{
145
145
  text: `$(${successStateIcon.id})`,
146
146
  color: themeColorFromId(cellStatusIconSuccess),
147
- tooltip: ( localize(10979, "Success")),
147
+ tooltip: ( localize(11111, "Success")),
148
148
  alignment: CellStatusbarAlignment.Left,
149
149
  priority: Number.MAX_SAFE_INTEGER
150
150
  }];
@@ -152,14 +152,14 @@ let ExecutionStateCellStatusBarItem = class ExecutionStateCellStatusBarItem exte
152
152
  return [{
153
153
  text: `$(${errorStateIcon.id})`,
154
154
  color: themeColorFromId(cellStatusIconError),
155
- tooltip: ( localize(10980, "Failed")),
155
+ tooltip: ( localize(11112, "Failed")),
156
156
  alignment: CellStatusbarAlignment.Left,
157
157
  priority: Number.MAX_SAFE_INTEGER
158
158
  }];
159
159
  } else if (state === NotebookCellExecutionState.Pending || state === NotebookCellExecutionState.Unconfirmed) {
160
160
  return [{
161
161
  text: `$(${pendingStateIcon.id})`,
162
- tooltip: ( localize(10981, "Pending")),
162
+ tooltip: ( localize(11113, "Pending")),
163
163
  alignment: CellStatusbarAlignment.Left,
164
164
  priority: Number.MAX_SAFE_INTEGER
165
165
  }];
@@ -167,7 +167,7 @@ let ExecutionStateCellStatusBarItem = class ExecutionStateCellStatusBarItem exte
167
167
  const icon = runState?.didPause ? executingStateIcon : ThemeIcon.modify(executingStateIcon, "spin");
168
168
  return [{
169
169
  text: `$(${icon.id})`,
170
- tooltip: ( localize(10982, "Executing")),
170
+ tooltip: ( localize(11114, "Executing")),
171
171
  alignment: CellStatusbarAlignment.Left,
172
172
  priority: Number.MAX_SAFE_INTEGER
173
173
  }];
@@ -298,10 +298,10 @@ let TimerCellStatusBarItem = class TimerCellStatusBarItem extends Disposable {
298
298
  const rendererTitle = renderIssueLink ? `[${linkText}](command:workbench.action.openIssueReporter?${args})` : `**${linkText}**`;
299
299
  renderTimes += `- ${rendererTitle} ${formatCellDuration(renderDuration[key])}\n`;
300
300
  }
301
- renderTimes += `\n*${( localize(10983, "Use the links above to file an issue using the issue reporter."))}*\n`;
301
+ renderTimes += `\n*${( localize(11115, "Use the links above to file an issue using the issue reporter."))}*\n`;
302
302
  tooltip = {
303
303
  value: ( localize(
304
- 10984,
304
+ 11116,
305
305
  "**Last Execution** {0}\n\n**Execution Time** {1}\n\n**Overhead Time** {2}\n\n**Render Times**\n\n{3}",
306
306
  lastExecution,
307
307
  formatCellDuration(executionDuration),
@@ -312,7 +312,7 @@ let TimerCellStatusBarItem = class TimerCellStatusBarItem extends Disposable {
312
312
  };
313
313
  }
314
314
  const executionText = this._isVerbose ? ( localize(
315
- 10985,
315
+ 11117,
316
316
  "Last Execution: {0}, Duration: {1}",
317
317
  lastExecution,
318
318
  formatCellDuration(duration, false)