@codingame/monaco-vscode-katex-common 30.0.0 → 31.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 (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
@@ -5,6 +5,7 @@ import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/
5
5
  import { ICodeEditor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser";
6
6
  import { ICodeEditorViewState } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/editorCommon";
7
7
  import { ITextModel } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/model";
8
+ import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service";
8
9
  import { ITextModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service";
9
10
  import { IAccessibleViewService } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleView.service";
10
11
  import { IAccessibilityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility.service";
@@ -43,18 +44,9 @@ export interface IInlineChatWidgetConstructionOptions {
43
44
  inZoneWidget?: boolean;
44
45
  }
45
46
  export declare class InlineChatWidget {
46
- private readonly _options;
47
+ #private;
47
48
  protected readonly _instantiationService: IInstantiationService;
48
- private readonly _contextKeyService;
49
- private readonly _keybindingService;
50
- private readonly _accessibilityService;
51
- private readonly _configurationService;
52
- private readonly _accessibleViewService;
53
49
  protected readonly _textModelResolverService: ITextModelService;
54
- private readonly _chatService;
55
- private readonly _hoverService;
56
- private readonly _chatEntitlementService;
57
- private readonly _markdownRendererService;
58
50
  protected readonly _elements: {
59
51
  root: HTMLDivElement;
60
52
  chatWidget: HTMLDivElement;
@@ -67,18 +59,11 @@ export declare class InlineChatWidget {
67
59
  status: HTMLDivElement;
68
60
  };
69
61
  protected readonly _store: DisposableStore;
70
- private readonly _ctxInputEditorFocused;
71
- private readonly _ctxResponseFocused;
72
- private readonly _chatWidget;
73
62
  protected readonly _onDidChangeHeight: Emitter<void>;
74
63
  readonly onDidChangeHeight: Event<void>;
75
- private readonly _requestInProgress;
76
64
  readonly requestInProgress: IObservable<boolean>;
77
- private _isLayouting;
78
65
  readonly scopedContextKeyService: IContextKeyService;
79
- constructor(location: IChatWidgetLocationOptions, _options: IInlineChatWidgetConstructionOptions, _instantiationService: IInstantiationService, _contextKeyService: IContextKeyService, _keybindingService: IKeybindingService, _accessibilityService: IAccessibilityService, _configurationService: IConfigurationService, _accessibleViewService: IAccessibleViewService, _textModelResolverService: ITextModelService, _chatService: IChatService, _hoverService: IHoverService, _chatEntitlementService: IChatEntitlementService, _markdownRendererService: IMarkdownRendererService);
80
- private _updateAriaLabel;
81
- private _setupDisclaimer;
66
+ constructor(location: IChatWidgetLocationOptions, options: IInlineChatWidgetConstructionOptions, _instantiationService: IInstantiationService, contextKeyService: IContextKeyService, keybindingService: IKeybindingService, accessibilityService: IAccessibilityService, configurationService: IConfigurationService, accessibleViewService: IAccessibleViewService, _textModelResolverService: ITextModelService, modelService: IModelService, chatService: IChatService, hoverService: IHoverService, chatEntitlementService: IChatEntitlementService, markdownRendererService: IMarkdownRendererService);
82
67
  dispose(): void;
83
68
  get domNode(): HTMLElement;
84
69
  get chatWidget(): ChatWidget;
@@ -113,7 +98,7 @@ export declare class InlineChatWidget {
113
98
  hasFocus(): boolean;
114
99
  }
115
100
  export declare class EditorBasedInlineChatWidget extends InlineChatWidget {
116
- constructor(location: IChatWidgetLocationOptions, parentEditor: ICodeEditor, options: IInlineChatWidgetConstructionOptions, contextKeyService: IContextKeyService, keybindingService: IKeybindingService, instantiationService: IInstantiationService, accessibilityService: IAccessibilityService, configurationService: IConfigurationService, accessibleViewService: IAccessibleViewService, textModelResolverService: ITextModelService, chatService: IChatService, hoverService: IHoverService, layoutService: ILayoutService, chatEntitlementService: IChatEntitlementService, markdownRendererService: IMarkdownRendererService);
101
+ constructor(location: IChatWidgetLocationOptions, parentEditor: ICodeEditor, options: IInlineChatWidgetConstructionOptions, contextKeyService: IContextKeyService, keybindingService: IKeybindingService, instantiationService: IInstantiationService, accessibilityService: IAccessibilityService, configurationService: IConfigurationService, accessibleViewService: IAccessibleViewService, textModelResolverService: ITextModelService, modelService: IModelService, chatService: IChatService, hoverService: IHoverService, layoutService: ILayoutService, chatEntitlementService: IChatEntitlementService, markdownRendererService: IMarkdownRendererService);
117
102
  protected _doLayout(dimension: Dimension): void;
118
103
  reset(): void;
119
104
  }
@@ -10,6 +10,7 @@ import { DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vsco
10
10
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
11
11
  import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
12
12
  import { Selection } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/selection';
13
+ import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service';
13
14
  import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service';
14
15
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
15
16
  import { IAccessibleViewService } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleView.service';
@@ -49,7 +50,6 @@ import { ChatMode } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contr
49
50
  import { ChatAgentVoteDirection } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
50
51
  import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
51
52
  import { isResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel';
52
- import { walkTokens, lexer } from 'marked';
53
53
  import { inlineChatBackground, inlineChatForeground, CTX_INLINE_CHAT_RESPONSE_FOCUSED, CTX_INLINE_CHAT_FOCUSED } from '../common/inlineChat.js';
54
54
  import * as inlineChat from './media/inlineChat.css';
55
55
  import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
@@ -57,33 +57,38 @@ import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/obse
57
57
 
58
58
  registerCss(inlineChat);
59
59
  let InlineChatWidget = class InlineChatWidget {
60
+ #ctxInputEditorFocused;
61
+ #ctxResponseFocused;
62
+ #chatWidget;
63
+ #requestInProgress;
64
+ #isLayouting;
65
+ #options;
66
+ #keybindingService;
67
+ #accessibilityService;
68
+ #configurationService;
69
+ #accessibleViewService;
70
+ #modelService;
71
+ #chatService;
72
+ #chatEntitlementService;
73
+ #markdownRendererService;
60
74
  constructor(
61
75
  location,
62
- _options,
76
+ options,
63
77
  _instantiationService,
64
- _contextKeyService,
65
- _keybindingService,
66
- _accessibilityService,
67
- _configurationService,
68
- _accessibleViewService,
78
+ contextKeyService,
79
+ keybindingService,
80
+ accessibilityService,
81
+ configurationService,
82
+ accessibleViewService,
69
83
  _textModelResolverService,
70
- _chatService,
71
- _hoverService,
72
- _chatEntitlementService,
73
- _markdownRendererService
84
+ modelService,
85
+ chatService,
86
+ hoverService,
87
+ chatEntitlementService,
88
+ markdownRendererService
74
89
  ) {
75
- this._options = _options;
76
90
  this._instantiationService = _instantiationService;
77
- this._contextKeyService = _contextKeyService;
78
- this._keybindingService = _keybindingService;
79
- this._accessibilityService = _accessibilityService;
80
- this._configurationService = _configurationService;
81
- this._accessibleViewService = _accessibleViewService;
82
91
  this._textModelResolverService = _textModelResolverService;
83
- this._chatService = _chatService;
84
- this._hoverService = _hoverService;
85
- this._chatEntitlementService = _chatEntitlementService;
86
- this._markdownRendererService = _markdownRendererService;
87
92
  this._elements = h("div.inline-chat@root", [
88
93
  h("div.chat-widget@chatWidget"),
89
94
  h("div.accessibleViewer@accessibleViewer"),
@@ -97,13 +102,22 @@ let InlineChatWidget = class InlineChatWidget {
97
102
  ]);
98
103
  this._store = ( new DisposableStore());
99
104
  this._onDidChangeHeight = this._store.add(( new Emitter()));
100
- this.onDidChangeHeight = Event.filter(this._onDidChangeHeight.event, _ => !this._isLayouting);
101
- this._requestInProgress = observableValue(this, false);
102
- this.requestInProgress = this._requestInProgress;
103
- this._isLayouting = false;
104
- this.scopedContextKeyService = this._store.add(_contextKeyService.createScoped(this._elements.chatWidget));
105
+ this.onDidChangeHeight = Event.filter(this._onDidChangeHeight.event, _ => !this.#isLayouting);
106
+ this.#requestInProgress = observableValue(this, false);
107
+ this.requestInProgress = this.#requestInProgress;
108
+ this.#isLayouting = false;
109
+ this.#options = options;
110
+ this.#keybindingService = keybindingService;
111
+ this.#accessibilityService = accessibilityService;
112
+ this.#configurationService = configurationService;
113
+ this.#accessibleViewService = accessibleViewService;
114
+ this.#modelService = modelService;
115
+ this.#chatService = chatService;
116
+ this.#chatEntitlementService = chatEntitlementService;
117
+ this.#markdownRendererService = markdownRendererService;
118
+ this.scopedContextKeyService = this._store.add(contextKeyService.createScoped(this._elements.chatWidget));
105
119
  const scopedInstaService = _instantiationService.createChild(( new ServiceCollection([IContextKeyService, this.scopedContextKeyService])), this._store);
106
- this._chatWidget = scopedInstaService.createInstance(ChatWidget, location, {
120
+ this.#chatWidget = scopedInstaService.createInstance(ChatWidget, location, {
107
121
  isInlineChat: true
108
122
  }, {
109
123
  autoScroll: true,
@@ -121,7 +135,7 @@ let InlineChatWidget = class InlineChatWidget {
121
135
  return false;
122
136
  }
123
137
  if (item.response.value.every(
124
- item => item.kind === "textEditGroup" && _options.chatWidgetViewOptions?.rendererOptions?.renderTextEditsAsSummary?.(item.uri)
138
+ item => item.kind === "textEditGroup" && options.chatWidgetViewOptions?.rendererOptions?.renderTextEditsAsSummary?.(item.uri)
125
139
  )) {
126
140
  return false;
127
141
  }
@@ -129,7 +143,7 @@ let InlineChatWidget = class InlineChatWidget {
129
143
  },
130
144
  dndContainer: this._elements.root,
131
145
  defaultMode: ChatMode.Ask,
132
- ..._options.chatWidgetViewOptions
146
+ ...options.chatWidgetViewOptions
133
147
  }, {
134
148
  listForeground: inlineChatForeground,
135
149
  listBackground: inlineChatBackground,
@@ -137,23 +151,23 @@ let InlineChatWidget = class InlineChatWidget {
137
151
  inputEditorBackground: inputBackground,
138
152
  resultEditorBackground: editorBackground
139
153
  });
140
- this._elements.root.classList.toggle("in-zone-widget", !!_options.inZoneWidget);
141
- this._chatWidget.render(this._elements.chatWidget);
154
+ this._elements.root.classList.toggle("in-zone-widget", !!options.inZoneWidget);
155
+ this.#chatWidget.render(this._elements.chatWidget);
142
156
  this._elements.chatWidget.style.setProperty(
143
157
  asCssVariableName(chatRequestBackground),
144
158
  asCssVariable(inlineChatBackground)
145
159
  );
146
- this._chatWidget.setVisible(true);
147
- this._store.add(this._chatWidget);
160
+ this.#chatWidget.setVisible(true);
161
+ this._store.add(this.#chatWidget);
148
162
  const ctxResponse = ChatContextKeys.isResponse.bindTo(this.scopedContextKeyService);
149
163
  const ctxResponseVote = ChatContextKeys.responseVote.bindTo(this.scopedContextKeyService);
150
164
  const ctxResponseSupportIssues = ChatContextKeys.responseSupportsIssueReporting.bindTo(this.scopedContextKeyService);
151
165
  const ctxResponseError = ChatContextKeys.responseHasError.bindTo(this.scopedContextKeyService);
152
166
  const ctxResponseErrorFiltered = ChatContextKeys.responseIsFiltered.bindTo(this.scopedContextKeyService);
153
167
  const viewModelStore = this._store.add(( new DisposableStore()));
154
- this._store.add(this._chatWidget.onDidChangeViewModel(() => {
168
+ this._store.add(this.#chatWidget.onDidChangeViewModel(() => {
155
169
  viewModelStore.clear();
156
- const viewModel = this._chatWidget.viewModel;
170
+ const viewModel = this.#chatWidget.viewModel;
157
171
  if (!viewModel) {
158
172
  return;
159
173
  }
@@ -166,7 +180,7 @@ let InlineChatWidget = class InlineChatWidget {
166
180
  ctxResponseSupportIssues.reset();
167
181
  }));
168
182
  viewModelStore.add(viewModel.onDidChange(() => {
169
- this._requestInProgress.set(viewModel.model.requestInProgress.get(), undefined);
183
+ this.#requestInProgress.set(viewModel.model.requestInProgress.get(), undefined);
170
184
  const last = viewModel.getItems().at(-1);
171
185
  toolbar2.context = last;
172
186
  ctxResponse.set(isResponseVM(last));
@@ -185,24 +199,24 @@ let InlineChatWidget = class InlineChatWidget {
185
199
  this._store.add(this.chatWidget.onDidChangeContentHeight(() => {
186
200
  this._onDidChangeHeight.fire();
187
201
  }));
188
- this._ctxResponseFocused = CTX_INLINE_CHAT_RESPONSE_FOCUSED.bindTo(this._contextKeyService);
202
+ this.#ctxResponseFocused = CTX_INLINE_CHAT_RESPONSE_FOCUSED.bindTo(contextKeyService);
189
203
  const tracker = this._store.add(trackFocus(this.domNode));
190
- this._store.add(tracker.onDidBlur(() => this._ctxResponseFocused.set(false)));
191
- this._store.add(tracker.onDidFocus(() => this._ctxResponseFocused.set(true)));
192
- this._ctxInputEditorFocused = CTX_INLINE_CHAT_FOCUSED.bindTo(_contextKeyService);
204
+ this._store.add(tracker.onDidBlur(() => this.#ctxResponseFocused.set(false)));
205
+ this._store.add(tracker.onDidFocus(() => this.#ctxResponseFocused.set(true)));
206
+ this.#ctxInputEditorFocused = CTX_INLINE_CHAT_FOCUSED.bindTo(contextKeyService);
193
207
  this._store.add(
194
- this._chatWidget.inputEditor.onDidFocusEditorWidget(() => this._ctxInputEditorFocused.set(true))
208
+ this.#chatWidget.inputEditor.onDidFocusEditorWidget(() => this.#ctxInputEditorFocused.set(true))
195
209
  );
196
210
  this._store.add(
197
- this._chatWidget.inputEditor.onDidBlurEditorWidget(() => this._ctxInputEditorFocused.set(false))
211
+ this.#chatWidget.inputEditor.onDidBlurEditorWidget(() => this.#ctxInputEditorFocused.set(false))
198
212
  );
199
- const statusMenuId = _options.statusMenuId instanceof MenuId ? _options.statusMenuId : _options.statusMenuId.menu;
200
- const statusMenuOptions = _options.statusMenuId instanceof MenuId ? undefined : _options.statusMenuId.options;
213
+ const statusMenuId = options.statusMenuId instanceof MenuId ? options.statusMenuId : options.statusMenuId.menu;
214
+ const statusMenuOptions = options.statusMenuId instanceof MenuId ? undefined : options.statusMenuId.options;
201
215
  const statusButtonBar = scopedInstaService.createInstance(MenuWorkbenchButtonBar, this._elements.toolbar1, statusMenuId, {
202
216
  toolbarOptions: {
203
217
  primaryGroup: "0_main"
204
218
  },
205
- telemetrySource: _options.chatWidgetViewOptions?.menus?.telemetrySource,
219
+ telemetrySource: options.chatWidgetViewOptions?.menus?.telemetrySource,
206
220
  menuOptions: {
207
221
  renderShortTitle: true
208
222
  },
@@ -213,9 +227,9 @@ let InlineChatWidget = class InlineChatWidget {
213
227
  const toolbar2 = scopedInstaService.createInstance(
214
228
  MenuWorkbenchToolBar,
215
229
  this._elements.toolbar2,
216
- _options.secondaryMenuId ?? MenuId.for(""),
230
+ options.secondaryMenuId ?? MenuId.for(""),
217
231
  {
218
- telemetrySource: _options.chatWidgetViewOptions?.menus?.telemetrySource,
232
+ telemetrySource: options.chatWidgetViewOptions?.menus?.telemetrySource,
219
233
  menuOptions: {
220
234
  renderShortTitle: true,
221
235
  shouldForwardArgs: true
@@ -227,61 +241,61 @@ let InlineChatWidget = class InlineChatWidget {
227
241
  );
228
242
  this._store.add(toolbar2.onDidChangeMenuItems(() => this._onDidChangeHeight.fire()));
229
243
  this._store.add(toolbar2);
230
- this._store.add(this._configurationService.onDidChangeConfiguration(e => {
244
+ this._store.add(this.#configurationService.onDidChangeConfiguration(e => {
231
245
  if (e.affectsConfiguration(AccessibilityVerbositySettingId.InlineChat)) {
232
- this._updateAriaLabel();
246
+ this.#updateAriaLabel();
233
247
  }
234
248
  }));
235
249
  this._elements.root.tabIndex = 0;
236
250
  this._elements.statusLabel.tabIndex = 0;
237
- this._updateAriaLabel();
238
- this._setupDisclaimer();
251
+ this.#updateAriaLabel();
252
+ this.#setupDisclaimer();
239
253
  this._store.add(
240
- this._hoverService.setupManagedHover(getDefaultHoverDelegate("element"), this._elements.statusLabel, () => {
254
+ hoverService.setupManagedHover(getDefaultHoverDelegate("element"), this._elements.statusLabel, () => {
241
255
  return this._elements.statusLabel.dataset["title"];
242
256
  })
243
257
  );
244
- this._store.add(this._chatService.onDidPerformUserAction(e => {
245
- if (isEqual(e.sessionResource, this._chatWidget.viewModel?.model.sessionResource) && e.action.kind === "vote") {
246
- this.updateStatus(( localize(9977, "Thank you for your feedback!")), {
258
+ this._store.add(this.#chatService.onDidPerformUserAction(e => {
259
+ if (isEqual(e.sessionResource, this.#chatWidget.viewModel?.model.sessionResource) && e.action.kind === "vote") {
260
+ this.updateStatus(( localize(10108, "Thank you for your feedback!")), {
247
261
  resetAfter: 1250
248
262
  });
249
263
  }
250
264
  }));
251
265
  }
252
- _updateAriaLabel() {
253
- this._elements.root.ariaLabel = this._accessibleViewService.getOpenAriaHint(AccessibilityVerbositySettingId.InlineChat);
254
- if (this._accessibilityService.isScreenReaderOptimized()) {
266
+ #updateAriaLabel() {
267
+ this._elements.root.ariaLabel = this.#accessibleViewService.getOpenAriaHint(AccessibilityVerbositySettingId.InlineChat);
268
+ if (this.#accessibilityService.isScreenReaderOptimized()) {
255
269
  let label = defaultAriaLabel;
256
- if (this._configurationService.getValue(AccessibilityVerbositySettingId.InlineChat)) {
257
- const kbLabel = this._keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
270
+ if (this.#configurationService.getValue(AccessibilityVerbositySettingId.InlineChat)) {
271
+ const kbLabel = this.#keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
258
272
  label = kbLabel ? ( localize(
259
- 9978,
273
+ 10109,
260
274
  "Inline Chat Input, Use {0} for Inline Chat Accessibility Help.",
261
275
  kbLabel
262
276
  )) : ( localize(
263
- 9979,
277
+ 10110,
264
278
  "Inline Chat Input, Run the Inline Chat Accessibility Help command for more information."
265
279
  ));
266
280
  }
267
- this._chatWidget.inputEditor.updateOptions({
281
+ this.#chatWidget.inputEditor.updateOptions({
268
282
  ariaLabel: label
269
283
  });
270
284
  }
271
285
  }
272
- _setupDisclaimer() {
286
+ #setupDisclaimer() {
273
287
  const disposables = this._store.add(( new DisposableStore()));
274
288
  this._store.add(autorun(reader => {
275
289
  disposables.clear();
276
290
  reset(this._elements.disclaimerLabel);
277
- const sentiment = this._chatEntitlementService.sentimentObs.read(reader);
278
- const anonymous = this._chatEntitlementService.anonymousObs.read(reader);
279
- const requestInProgress = this._chatService.requestInProgressObs.read(reader);
280
- const showDisclaimer = !sentiment.installed && anonymous && !requestInProgress;
291
+ const sentiment = this.#chatEntitlementService.sentimentObs.read(reader);
292
+ const anonymous = this.#chatEntitlementService.anonymousObs.read(reader);
293
+ const requestInProgress = this.#chatService.requestInProgressObs.read(reader);
294
+ const showDisclaimer = !sentiment.completed && anonymous && !requestInProgress;
281
295
  this._elements.disclaimerLabel.classList.toggle("hidden", !showDisclaimer);
282
296
  if (showDisclaimer) {
283
- const renderedMarkdown = disposables.add(this._markdownRendererService.render(( new MarkdownString(( localize(
284
- 9980,
297
+ const renderedMarkdown = disposables.add(this.#markdownRendererService.render(( new MarkdownString(( localize(
298
+ 10111,
285
299
  "By continuing with {0} Copilot, you agree to {1}'s [Terms]({2}) and [Privacy Statement]({3})",
286
300
  product.defaultChatAgent?.provider?.default?.name ?? "",
287
301
  product.defaultChatAgent?.provider?.default?.name ?? "",
@@ -302,18 +316,18 @@ let InlineChatWidget = class InlineChatWidget {
302
316
  return this._elements.root;
303
317
  }
304
318
  get chatWidget() {
305
- return this._chatWidget;
319
+ return this.#chatWidget;
306
320
  }
307
321
  saveState() {
308
- this._chatWidget.saveState();
322
+ this.#chatWidget.saveState();
309
323
  }
310
324
  layout(widgetDim) {
311
325
  const contentHeight = this.contentHeight;
312
- this._isLayouting = true;
326
+ this.#isLayouting = true;
313
327
  try {
314
328
  this._doLayout(widgetDim);
315
329
  } finally {
316
- this._isLayouting = false;
330
+ this.#isLayouting = false;
317
331
  if (this.contentHeight !== contentHeight) {
318
332
  this._onDidChangeHeight.fire();
319
333
  }
@@ -324,11 +338,11 @@ let InlineChatWidget = class InlineChatWidget {
324
338
  const statusHeight = getTotalHeight(this._elements.status);
325
339
  this._elements.root.style.height = `${dimension.height - extraHeight}px`;
326
340
  this._elements.root.style.width = `${dimension.width}px`;
327
- this._chatWidget.layout(dimension.height - statusHeight - extraHeight, dimension.width);
341
+ this.#chatWidget.layout(dimension.height - statusHeight - extraHeight, dimension.width);
328
342
  }
329
343
  get contentHeight() {
330
344
  const data = {
331
- chatWidgetContentHeight: this._chatWidget.contentHeight,
345
+ chatWidgetContentHeight: this.#chatWidget.contentHeight,
332
346
  statusHeight: getTotalHeight(this._elements.status),
333
347
  extraHeight: this._getExtraHeight()
334
348
  };
@@ -337,34 +351,34 @@ let InlineChatWidget = class InlineChatWidget {
337
351
  }
338
352
  get minHeight() {
339
353
  let maxWidgetOutputHeight = 100;
340
- for (const item of this._chatWidget.viewModel?.getItems() ?? []) {
354
+ for (const item of this.#chatWidget.viewModel?.getItems() ?? []) {
341
355
  if (isResponseVM(item) && ( item.response.value.some(r => r.kind === "textEditGroup" && !r.state?.applied))) {
342
356
  maxWidgetOutputHeight = 270;
343
357
  break;
344
358
  }
345
359
  }
346
360
  let value = this.contentHeight;
347
- value -= this._chatWidget.contentHeight;
361
+ value -= this.#chatWidget.contentHeight;
348
362
  value += Math.min(
349
- this._chatWidget.input.height.get() + maxWidgetOutputHeight,
350
- this._chatWidget.contentHeight
363
+ this.#chatWidget.input.height.get() + maxWidgetOutputHeight,
364
+ this.#chatWidget.contentHeight
351
365
  );
352
366
  return value;
353
367
  }
354
368
  _getExtraHeight() {
355
- return this._options.inZoneWidget ? 1 : (2 + 4) ;
369
+ return this.#options.inZoneWidget ? 1 : (2 + 4) ;
356
370
  }
357
371
  get value() {
358
- return this._chatWidget.getInput();
372
+ return this.#chatWidget.getInput();
359
373
  }
360
374
  set value(value) {
361
- this._chatWidget.setInput(value);
375
+ this.#chatWidget.setInput(value);
362
376
  }
363
377
  selectAll() {
364
- this._chatWidget.inputEditor.setSelection(( new Selection(1, 1, Number.MAX_SAFE_INTEGER, 1)));
378
+ this.#chatWidget.inputEditor.setSelection(( new Selection(1, 1, Number.MAX_SAFE_INTEGER, 1)));
365
379
  }
366
380
  set placeholder(value) {
367
- this._chatWidget.setInputPlaceholder(value);
381
+ this.#chatWidget.setInputPlaceholder(value);
368
382
  }
369
383
  toggleStatus(show) {
370
384
  this._elements.toolbar1.classList.toggle("hidden", !show);
@@ -384,7 +398,7 @@ let InlineChatWidget = class InlineChatWidget {
384
398
  async getCodeBlockInfo(codeBlockIndex) {
385
399
  const {
386
400
  viewModel
387
- } = this._chatWidget;
401
+ } = this.#chatWidget;
388
402
  if (!viewModel) {
389
403
  return undefined;
390
404
  }
@@ -393,47 +407,45 @@ let InlineChatWidget = class InlineChatWidget {
393
407
  if (!item) {
394
408
  return;
395
409
  }
396
- const existingEntry = viewModel.codeBlockModelCollection.get(viewModel.sessionResource, item, codeBlockIndex);
397
- if (existingEntry) {
398
- return existingEntry.model;
410
+ const codeBlocks = this.#chatWidget.getCodeBlockInfosForResponse(item);
411
+ const info = codeBlocks[codeBlockIndex];
412
+ if (info?.uri) {
413
+ return this.#modelService.getModel(info.uri) ?? undefined;
399
414
  }
400
415
  const markdown = item.response.getMarkdown();
401
416
  let currentCodeBlockIndex = 0;
402
- let foundCodeBlock;
403
- walkTokens(lexer(markdown), token => {
404
- if (token.type === "code") {
417
+ let foundText;
418
+ for (const line of markdown.split("\n")) {
419
+ if (line.startsWith("```") && foundText === undefined) {
420
+ foundText = "";
421
+ } else if (line.startsWith("```") && foundText !== undefined) {
405
422
  if (currentCodeBlockIndex === codeBlockIndex) {
406
- foundCodeBlock = {
407
- text: token.text,
408
- lang: token.lang || ""
409
- };
423
+ break;
410
424
  }
411
425
  currentCodeBlockIndex++;
426
+ foundText = undefined;
427
+ } else if (foundText !== undefined) {
428
+ foundText += (foundText ? "\n" : "") + line;
412
429
  }
413
- });
414
- if (!foundCodeBlock) {
415
- return undefined;
416
430
  }
417
- const entry = viewModel.codeBlockModelCollection.updateSync(viewModel.sessionResource, item, codeBlockIndex, {
418
- text: foundCodeBlock.text,
419
- languageId: foundCodeBlock.lang,
420
- isComplete: true
421
- });
422
- return entry.model;
431
+ if (foundText !== undefined && currentCodeBlockIndex === codeBlockIndex) {
432
+ return this.#modelService.createModel(foundText, null, undefined, true);
433
+ }
434
+ return undefined;
423
435
  }
424
436
  get responseContent() {
425
- const requests = this._chatWidget.viewModel?.model.getRequests();
437
+ const requests = this.#chatWidget.viewModel?.model.getRequests();
426
438
  return requests?.at(-1)?.response?.response.toString();
427
439
  }
428
440
  getChatModel() {
429
- return this._chatWidget.viewModel?.model;
441
+ return this.#chatWidget.viewModel?.model;
430
442
  }
431
443
  setChatModel(chatModel) {
432
444
  chatModel.inputModel.setState({
433
445
  inputText: "",
434
446
  selections: []
435
447
  });
436
- this._chatWidget.setModel(chatModel);
448
+ this.#chatWidget.setModel(chatModel);
437
449
  }
438
450
  updateInfo(message) {
439
451
  this._elements.infoLabel.classList.toggle("hidden", !message);
@@ -472,8 +484,8 @@ let InlineChatWidget = class InlineChatWidget {
472
484
  this._onDidChangeHeight.fire();
473
485
  }
474
486
  reset() {
475
- this._chatWidget.attachmentModel.clear(true);
476
- this._chatWidget.saveState();
487
+ this.#chatWidget.attachmentModel.clear(true);
488
+ this.#chatWidget.saveState();
477
489
  reset(this._elements.statusLabel);
478
490
  this._elements.statusLabel.classList.toggle("hidden", true);
479
491
  this._elements.toolbar1.classList.add("hidden");
@@ -483,14 +495,14 @@ let InlineChatWidget = class InlineChatWidget {
483
495
  this._onDidChangeHeight.fire();
484
496
  }
485
497
  focus() {
486
- this._chatWidget.focusInput();
498
+ this.#chatWidget.focusInput();
487
499
  }
488
500
  hasFocus() {
489
501
  return this.domNode.contains(getActiveElement());
490
502
  }
491
503
  };
492
- InlineChatWidget = ( __decorate([( __param(2, IInstantiationService)), ( __param(3, IContextKeyService)), ( __param(4, IKeybindingService)), ( __param(5, IAccessibilityService)), ( __param(6, IConfigurationService)), ( __param(7, IAccessibleViewService)), ( __param(8, ITextModelService)), ( __param(9, IChatService)), ( __param(10, IHoverService)), ( __param(11, IChatEntitlementService)), ( __param(12, IMarkdownRendererService))], InlineChatWidget));
493
- const defaultAriaLabel = ( localize(9981, "Inline Chat Input"));
504
+ InlineChatWidget = ( __decorate([( __param(2, IInstantiationService)), ( __param(3, IContextKeyService)), ( __param(4, IKeybindingService)), ( __param(5, IAccessibilityService)), ( __param(6, IConfigurationService)), ( __param(7, IAccessibleViewService)), ( __param(8, ITextModelService)), ( __param(9, IModelService)), ( __param(10, IChatService)), ( __param(11, IHoverService)), ( __param(12, IChatEntitlementService)), ( __param(13, IMarkdownRendererService))], InlineChatWidget));
505
+ const defaultAriaLabel = ( localize(10112, "Inline Chat Input"));
494
506
  let EditorBasedInlineChatWidget = class EditorBasedInlineChatWidget extends InlineChatWidget {
495
507
  constructor(
496
508
  location,
@@ -503,6 +515,7 @@ let EditorBasedInlineChatWidget = class EditorBasedInlineChatWidget extends Inli
503
515
  configurationService,
504
516
  accessibleViewService,
505
517
  textModelResolverService,
518
+ modelService,
506
519
  chatService,
507
520
  hoverService,
508
521
  layoutService,
@@ -516,7 +529,7 @@ let EditorBasedInlineChatWidget = class EditorBasedInlineChatWidget extends Inli
516
529
  ...options.chatWidgetViewOptions,
517
530
  editorOverflowWidgetsDomNode: overflowWidgetsNode
518
531
  }
519
- }, instantiationService, contextKeyService, keybindingService, accessibilityService, configurationService, accessibleViewService, textModelResolverService, chatService, hoverService, chatEntitlementService, markdownRendererService);
532
+ }, instantiationService, contextKeyService, keybindingService, accessibilityService, configurationService, accessibleViewService, textModelResolverService, modelService, chatService, hoverService, chatEntitlementService, markdownRendererService);
520
533
  this._store.add(toDisposable(() => {
521
534
  overflowWidgetsNode.remove();
522
535
  }));
@@ -531,6 +544,6 @@ let EditorBasedInlineChatWidget = class EditorBasedInlineChatWidget extends Inli
531
544
  super.reset();
532
545
  }
533
546
  };
534
- EditorBasedInlineChatWidget = ( __decorate([( __param(3, IContextKeyService)), ( __param(4, IKeybindingService)), ( __param(5, IInstantiationService)), ( __param(6, IAccessibilityService)), ( __param(7, IConfigurationService)), ( __param(8, IAccessibleViewService)), ( __param(9, ITextModelService)), ( __param(10, IChatService)), ( __param(11, IHoverService)), ( __param(12, ILayoutService)), ( __param(13, IChatEntitlementService)), ( __param(14, IMarkdownRendererService))], EditorBasedInlineChatWidget));
547
+ EditorBasedInlineChatWidget = ( __decorate([( __param(3, IContextKeyService)), ( __param(4, IKeybindingService)), ( __param(5, IInstantiationService)), ( __param(6, IAccessibilityService)), ( __param(7, IConfigurationService)), ( __param(8, IAccessibleViewService)), ( __param(9, ITextModelService)), ( __param(10, IModelService)), ( __param(11, IChatService)), ( __param(12, IHoverService)), ( __param(13, ILayoutService)), ( __param(14, IChatEntitlementService)), ( __param(15, IMarkdownRendererService))], EditorBasedInlineChatWidget));
535
548
 
536
549
  export { EditorBasedInlineChatWidget, InlineChatWidget };
@@ -1,3 +1,4 @@
1
+ import { IMarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
1
2
  import { ICodeEditor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser";
2
3
  import { Position } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/position";
3
4
  import { Range } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range";
@@ -10,32 +11,28 @@ import { IChatWidgetLocationOptions } from "../../chat/browser/widget/chatWidget
10
11
  import { INotebookEditor } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
11
12
  import { EditorBasedInlineChatWidget } from "./inlineChatWidget.js";
12
13
  export declare class InlineChatZoneWidget extends ZoneWidget {
13
- private readonly _instaService;
14
- private _logService;
15
- private static readonly _options;
14
+ #private;
16
15
  readonly widget: EditorBasedInlineChatWidget;
17
- private readonly _ctxCursorPosition;
18
- private _dimension?;
19
16
  private notebookEditor?;
20
17
  constructor(location: IChatWidgetLocationOptions, options: IChatWidgetViewOptions | undefined, editors: {
21
18
  editor: ICodeEditor;
22
19
  notebookEditor?: INotebookEditor;
23
20
  },
24
21
  /** @deprecated should go away with inline2 */
25
- clearDelegate: () => Promise<void>, _instaService: IInstantiationService, _logService: ILogService, contextKeyService: IContextKeyService);
22
+ clearDelegate: () => Promise<void>, instaService: IInstantiationService, logService: ILogService, contextKeyService: IContextKeyService);
26
23
  protected _fillContainer(container: HTMLElement): void;
24
+ showTerminationCard(message: string | IMarkdownString, instaService: IInstantiationService): void;
25
+ hideTerminationCard(): void;
26
+ get isShowingTerminationCard(): boolean;
27
27
  protected _doLayout(heightInPixel: number): void;
28
- private _computeHeight;
29
28
  protected _getResizeBounds(): {
30
29
  minLines: number;
31
30
  maxLines: number;
32
31
  };
33
32
  protected _onWidth(_widthInPixel: number): void;
34
33
  show(position: Position): void;
35
- private _updatePadding;
36
34
  reveal(position: Position): void;
37
35
  updatePositionAndHeight(position: Position): void;
38
- private _createZoneAndScrollRestoreFn;
39
36
  protected revealRange(range: Range, isLastLine: boolean): void;
40
37
  hide(): void;
41
38
  }