@codingame/monaco-vscode-katex-common 30.0.1 → 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
@@ -6,8 +6,10 @@ import { $, append, setVisibility, DisposableResizeObserver, getTotalWidth, addD
6
6
  import { DEFAULT_FONT_FAMILY } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/fonts';
7
7
  import { StandardKeyboardEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/keyboardEvent';
8
8
  import { renderAsPlaintext, renderMarkdown } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/markdownRenderer';
9
- import { ActionBar, ActionsOrientation } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionbar';
9
+ import { ActionsOrientation } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionbar';
10
+ import { WorkbenchActionBar } from '../../../../platform/actions/browser/actionbar.js';
10
11
  import { DomScrollableElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
12
+ import { ActionRunner } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
11
13
  import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
12
14
  import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
13
15
  import { KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
@@ -31,7 +33,6 @@ import { ChatEditingAcceptRejectActionViewItem } from '../../chat/browser/chatEd
31
33
  import { CTX_INLINE_CHAT_INPUT_HAS_TEXT, CTX_INLINE_CHAT_INPUT_WIDGET_FOCUSED } from '../common/inlineChat.js';
32
34
  import { StickyScrollController } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/stickyScroll/browser/stickyScrollController';
33
35
  import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
34
- import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
35
36
  import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
36
37
  import { getSimpleEditorOptions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/codeEditor/browser/simpleEditorOptions';
37
38
  import { PlaceholderTextContribution } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/placeholderText/browser/placeholderTextContribution';
@@ -45,38 +46,51 @@ import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/obse
45
46
 
46
47
  registerCss(inlineChatOverlayWidget);
47
48
  let InlineChatInputWidget = class InlineChatInputWidget extends Disposable {
49
+ #domNode;
50
+ #container;
51
+ #inputContainer;
52
+ #toolbarContainer;
53
+ #input;
54
+ #position;
55
+ #showStore;
56
+ #stickyScrollHeight;
57
+ #layoutData;
58
+ #anchorLineNumber;
59
+ #anchorLeft;
60
+ #anchorAbove;
61
+ #editorObs;
62
+ #historyService;
48
63
  constructor(
49
- _editorObs,
50
- _contextKeyService,
51
- _menuService,
64
+ editorObs,
65
+ contextKeyService,
66
+ menuService,
52
67
  instantiationService,
53
68
  modelService,
54
69
  configurationService,
55
- _historyService
70
+ historyService
56
71
  ) {
57
72
  super();
58
- this._editorObs = _editorObs;
59
- this._contextKeyService = _contextKeyService;
60
- this._menuService = _menuService;
61
- this._historyService = _historyService;
62
- this._position = observableValue(this, null);
63
- this.position = this._position;
64
- this._showStore = this._store.add(( new DisposableStore()));
65
- this._anchorLineNumber = 0;
66
- this._anchorLeft = 0;
67
- this._anchorAbove = false;
68
- this._domNode = $(".inline-chat-gutter-menu");
69
- this._container = append(this._domNode, $(".inline-chat-gutter-container"));
70
- this._inputContainer = append(this._container, $(".input"));
71
- this._toolbarContainer = append(this._container, $(".toolbar"));
72
- const actionsContainer = append(this._domNode, $(".inline-chat-gutter-actions"));
73
- const actionBar = this._store.add(( new ActionBar(actionsContainer, {
74
- orientation: ActionsOrientation.VERTICAL,
75
- preventLoopNavigation: true
76
- })));
77
- const actionsMenu = this._store.add(
78
- this._menuService.createMenu(MenuId.ChatEditorInlineMenu, this._contextKeyService)
73
+ this.#position = observableValue(this, null);
74
+ this.position = this.#position;
75
+ this.#showStore = this._store.add(( new DisposableStore()));
76
+ this.#anchorLineNumber = 0;
77
+ this.#anchorLeft = 0;
78
+ this.#anchorAbove = false;
79
+ this.#editorObs = editorObs;
80
+ this.#historyService = historyService;
81
+ this.#domNode = $(".inline-chat-gutter-menu");
82
+ this.#container = append(this.#domNode, $(".inline-chat-gutter-container"));
83
+ this.#inputContainer = append(this.#container, $(".input"));
84
+ this.#toolbarContainer = append(this.#container, $(".toolbar"));
85
+ const actionsContainer = append(this.#domNode, $(".inline-chat-gutter-actions"));
86
+ const actionBar = this._store.add(
87
+ instantiationService.createInstance(WorkbenchActionBar, actionsContainer, {
88
+ orientation: ActionsOrientation.VERTICAL,
89
+ preventLoopNavigation: true,
90
+ telemetrySource: "inlineChatInput.actionBar"
91
+ })
79
92
  );
93
+ const actionsMenu = this._store.add(menuService.createMenu(MenuId.ChatEditorInlineMenu, contextKeyService));
80
94
  const updateActions = () => {
81
95
  const actions = getFlatActionBarActions(actionsMenu.getActions({
82
96
  shouldForwardArgs: true
@@ -116,13 +130,13 @@ let InlineChatInputWidget = class InlineChatInputWidget extends Disposable {
116
130
  isSimpleWidget: true,
117
131
  contributions: EditorExtensionsRegistry.getSomeEditorContributions([PlaceholderTextContribution.ID])
118
132
  };
119
- this._input = this._store.add(
120
- instantiationService.createInstance(CodeEditorWidget, this._inputContainer, options, codeEditorWidgetOptions)
133
+ this.#input = this._store.add(
134
+ instantiationService.createInstance(CodeEditorWidget, this.#inputContainer, options, codeEditorWidgetOptions)
121
135
  );
122
136
  const model = this._store.add(modelService.createModel("", null, ( URI.parse(`gutter-input:${Date.now()}`)), true));
123
- this._input.setModel(model);
137
+ this.#input.setModel(model);
124
138
  const toolbar = this._store.add(
125
- instantiationService.createInstance(MenuWorkbenchToolBar, this._toolbarContainer, MenuId.InlineChatInput, {
139
+ instantiationService.createInstance(MenuWorkbenchToolBar, this.#toolbarContainer, MenuId.InlineChatInput, {
126
140
  telemetrySource: "inlineChatInput.toolbar",
127
141
  hiddenItemStrategy: HiddenItemStrategy.NoHide,
128
142
  toolbarOptions: {
@@ -133,8 +147,8 @@ let InlineChatInputWidget = class InlineChatInputWidget extends Disposable {
133
147
  }
134
148
  })
135
149
  );
136
- const stickyScrollController = StickyScrollController.get(this._editorObs.editor);
137
- this._stickyScrollHeight = stickyScrollController ? observableFromEvent(
150
+ const stickyScrollController = StickyScrollController.get(this.#editorObs.editor);
151
+ this.#stickyScrollHeight = stickyScrollController ? observableFromEvent(
138
152
  stickyScrollController.onDidChangeStickyScrollHeight,
139
153
  () => stickyScrollController.stickyScrollWidgetHeight
140
154
  ) : constObservable(0);
@@ -146,22 +160,22 @@ let InlineChatInputWidget = class InlineChatInputWidget extends Disposable {
146
160
  this._store.add(resizeObserver.observe(toolbar.getElement()));
147
161
  const contentWidth = observableFromEvent(
148
162
  this,
149
- this._input.onDidChangeModelContent,
150
- () => this._input.getContentWidth()
163
+ this.#input.onDidChangeModelContent,
164
+ () => this.#input.getContentWidth()
151
165
  );
152
166
  const contentHeight = observableFromEvent(
153
167
  this,
154
- this._input.onDidContentSizeChange,
155
- () => this._input.getContentHeight()
168
+ this.#input.onDidContentSizeChange,
169
+ () => this.#input.getContentHeight()
156
170
  );
157
- this._layoutData = derived(r => {
171
+ this.#layoutData = derived(r => {
158
172
  const editorPad = 6;
159
173
  const totalWidth = contentWidth.read(r) + editorPad + toolbarWidth.read(r);
160
174
  const minWidth = 220;
161
175
  const maxWidth = 600;
162
176
  const midWidth = Math.round(maxWidth / 1.618);
163
177
  let clampedWidth;
164
- if (this._input.getOption(EditorOption.wordWrap) === "on") {
178
+ if (this.#input.getOption(EditorOption.wordWrap) === "on") {
165
179
  clampedWidth = maxWidth;
166
180
  } else if (totalWidth <= minWidth) {
167
181
  clampedWidth = minWidth;
@@ -170,10 +184,10 @@ let InlineChatInputWidget = class InlineChatInputWidget extends Disposable {
170
184
  } else {
171
185
  clampedWidth = maxWidth;
172
186
  }
173
- const lineHeight = this._input.getOption(EditorOption.lineHeight);
187
+ const lineHeight = this.#input.getOption(EditorOption.lineHeight);
174
188
  const clampedHeight = Math.min(contentHeight.read(r), (3 * lineHeight));
175
189
  if (totalWidth > clampedWidth) {
176
- this._input.updateOptions({
190
+ this.#input.updateOptions({
177
191
  wordWrap: "on"
178
192
  });
179
193
  }
@@ -190,47 +204,50 @@ let InlineChatInputWidget = class InlineChatInputWidget extends Disposable {
190
204
  toolbarWidth,
191
205
  totalWidth,
192
206
  height
193
- } = this._layoutData.read(r);
207
+ } = this.#layoutData.read(r);
194
208
  const inputWidth = totalWidth - toolbarWidth - editorPad;
195
- this._container.style.width = `${totalWidth}px`;
196
- this._inputContainer.style.width = `${inputWidth}px`;
197
- this._input.layout({
209
+ this.#container.style.width = `${totalWidth}px`;
210
+ this.#inputContainer.style.width = `${inputWidth}px`;
211
+ this.#input.layout({
198
212
  width: inputWidth,
199
213
  height
200
214
  });
215
+ if (this.#position.read(undefined) !== null) {
216
+ this.#updatePosition();
217
+ }
201
218
  }));
202
219
  this._store.add(
203
- this._input.onDidFocusEditorText(() => this._container.classList.add("focused"))
220
+ this.#input.onDidFocusEditorText(() => this.#container.classList.add("focused"))
204
221
  );
205
222
  this._store.add(
206
- this._input.onDidBlurEditorText(() => this._container.classList.remove("focused"))
223
+ this.#input.onDidBlurEditorText(() => this.#container.classList.remove("focused"))
207
224
  );
208
- this._store.add(this._input.onDidScrollChange(e => {
209
- this._toolbarContainer.classList.toggle("fake-scroll-decoration", e.scrollTop > 0);
225
+ this._store.add(this.#input.onDidScrollChange(e => {
226
+ this.#toolbarContainer.classList.toggle("fake-scroll-decoration", e.scrollTop > 0);
210
227
  }));
211
- const inputHasText = CTX_INLINE_CHAT_INPUT_HAS_TEXT.bindTo(this._contextKeyService);
212
- this._store.add(this._input.onDidChangeModelContent(() => {
213
- inputHasText.set(this._input.getModel().getValue().trim().length > 0);
228
+ const inputHasText = CTX_INLINE_CHAT_INPUT_HAS_TEXT.bindTo(contextKeyService);
229
+ this._store.add(this.#input.onDidChangeModelContent(() => {
230
+ inputHasText.set(this.#input.getModel().getValue().trim().length > 0);
214
231
  }));
215
232
  this._store.add(toDisposable(() => inputHasText.reset()));
216
- const inputWidgetFocused = CTX_INLINE_CHAT_INPUT_WIDGET_FOCUSED.bindTo(this._contextKeyService);
217
- this._store.add(this._input.onDidFocusEditorText(() => inputWidgetFocused.set(true)));
218
- this._store.add(this._input.onDidBlurEditorText(() => inputWidgetFocused.set(false)));
233
+ const inputWidgetFocused = CTX_INLINE_CHAT_INPUT_WIDGET_FOCUSED.bindTo(contextKeyService);
234
+ this._store.add(this.#input.onDidFocusEditorText(() => inputWidgetFocused.set(true)));
235
+ this._store.add(this.#input.onDidBlurEditorText(() => inputWidgetFocused.set(false)));
219
236
  this._store.add(toDisposable(() => inputWidgetFocused.reset()));
220
- this._store.add(this._input.onKeyDown(e => {
237
+ this._store.add(this.#input.onKeyDown(e => {
221
238
  if (e.keyCode === KeyCode.UpArrow) {
222
- const position = this._input.getPosition();
239
+ const position = this.#input.getPosition();
223
240
  if (position && position.lineNumber === 1) {
224
- this._showPreviousHistoryValue();
241
+ this.#showPreviousHistoryValue();
225
242
  e.preventDefault();
226
243
  e.stopPropagation();
227
244
  }
228
245
  } else if (e.keyCode === KeyCode.DownArrow) {
229
- const model = this._input.getModel();
230
- const position = this._input.getPosition();
246
+ const model = this.#input.getModel();
247
+ const position = this.#input.getPosition();
231
248
  if (position && position.lineNumber === model.getLineCount()) {
232
- if (!this._historyService.isAtEnd()) {
233
- this._showNextHistoryValue();
249
+ if (!this.#historyService.isAtEnd()) {
250
+ this.#showNextHistoryValue();
234
251
  e.preventDefault();
235
252
  e.stopPropagation();
236
253
  } else if (!actionBar.isEmpty()) {
@@ -252,160 +269,177 @@ let InlineChatInputWidget = class InlineChatInputWidget extends Disposable {
252
269
  if (firstItem?.element && isAncestorOfActiveElement(firstItem.element)) {
253
270
  event.preventDefault();
254
271
  event.stopPropagation();
255
- this._input.focus();
272
+ this.#input.focus();
256
273
  }
257
274
  }
258
275
  }, true));
259
- const focusTracker = this._store.add(trackFocus(this._domNode));
276
+ const focusTracker = this._store.add(trackFocus(this.#domNode));
260
277
  this._store.add(focusTracker.onDidBlur(() => this.hide()));
261
278
  }
262
279
  get value() {
263
- return this._input.getModel().getValue().trim();
280
+ return this.#input.getModel().getValue().trim();
264
281
  }
265
282
  addToHistory(value) {
266
- this._historyService.addToHistory(value);
283
+ this.#historyService.addToHistory(value);
267
284
  }
268
- _showPreviousHistoryValue() {
269
- if (this._historyService.isAtEnd()) {
270
- this._historyService.replaceLast(this._input.getModel().getValue());
285
+ #showPreviousHistoryValue() {
286
+ if (this.#historyService.isAtEnd()) {
287
+ this.#historyService.replaceLast(this.#input.getModel().getValue());
271
288
  }
272
- const value = this._historyService.previousValue();
289
+ const value = this.#historyService.previousValue();
273
290
  if (value !== undefined) {
274
- this._input.getModel().setValue(value);
291
+ this.#input.getModel().setValue(value);
275
292
  }
276
293
  }
277
- _showNextHistoryValue() {
278
- if (this._historyService.isAtEnd()) {
294
+ #showNextHistoryValue() {
295
+ if (this.#historyService.isAtEnd()) {
279
296
  return;
280
297
  }
281
- const value = this._historyService.nextValue();
298
+ const value = this.#historyService.nextValue();
282
299
  if (value !== undefined) {
283
- this._input.getModel().setValue(value);
300
+ this.#input.getModel().setValue(value);
284
301
  }
285
302
  }
286
303
  show(lineNumber, left, anchorAbove, placeholder, value) {
287
- this._showStore.clear();
288
- this._historyService.resetCursor();
289
- this._input.updateOptions({
304
+ this.#showStore.clear();
305
+ this.#historyService.resetCursor();
306
+ this.#input.updateOptions({
290
307
  wordWrap: "off",
291
308
  placeholder
292
309
  });
293
- this._input.getModel().setValue(value ?? "");
294
- this._anchorLineNumber = lineNumber;
295
- this._anchorLeft = left;
296
- this._anchorAbove = anchorAbove;
297
- this._updatePosition();
298
- this._showStore.add(this._editorObs.createOverlayWidget({
299
- domNode: this._domNode,
300
- position: this._position,
310
+ this.#input.getModel().setValue(value ?? "");
311
+ this.#anchorLineNumber = lineNumber;
312
+ this.#anchorLeft = left;
313
+ this.#anchorAbove = anchorAbove;
314
+ this.#updatePosition();
315
+ this.#showStore.add(this.#editorObs.createOverlayWidget({
316
+ domNode: this.#domNode,
317
+ position: this.#position,
301
318
  minContentWidthInPx: constObservable(0),
302
319
  allowEditorOverflow: true
303
320
  }));
304
- if (anchorAbove) {
305
- this._updatePosition();
306
- }
307
- this._showStore.add(this._editorObs.editor.onDidScrollChange(() => {
308
- const visibleRanges = this._editorObs.editor.getVisibleRanges();
321
+ this.#updatePosition();
322
+ this.#showStore.add(this.#editorObs.editor.onDidScrollChange(() => {
323
+ const visibleRanges = this.#editorObs.editor.getVisibleRanges();
309
324
  const isLineVisible = ( visibleRanges.some(
310
- range => this._anchorLineNumber >= range.startLineNumber && this._anchorLineNumber <= range.endLineNumber
325
+ range => this.#anchorLineNumber >= range.startLineNumber && this.#anchorLineNumber <= range.endLineNumber
311
326
  ));
312
- const hasContent = !!this._input.getModel().getValue();
327
+ const hasContent = !!this.#input.getModel().getValue();
313
328
  if (!isLineVisible && !hasContent) {
314
329
  this.hide();
315
330
  } else {
316
- this._updatePosition();
331
+ this.#updatePosition();
317
332
  }
318
333
  }));
334
+ this.#showStore.add(this.#editorObs.editor.onDidLayoutChange(() => {
335
+ this.#updatePosition();
336
+ }));
319
337
  setTimeout(() => {
320
- this._input.focus();
338
+ this.#input.focus();
321
339
  if (value) {
322
- this._input.setSelection(this._input.getModel().getFullModelRange());
340
+ this.#input.setSelection(this.#input.getModel().getFullModelRange());
323
341
  }
324
342
  }, 0);
325
343
  }
326
- _updatePosition() {
327
- const editor = this._editorObs.editor;
344
+ #updatePosition() {
345
+ const editor = this.#editorObs.editor;
328
346
  const lineHeight = editor.getOption(EditorOption.lineHeight);
329
- const top = editor.getTopForLineNumber(this._anchorLineNumber) - editor.getScrollTop();
347
+ const top = editor.getTopForLineNumber(this.#anchorLineNumber) - editor.getScrollTop();
330
348
  let adjustedTop = top;
331
- if (this._anchorAbove) {
332
- const widgetHeight = this._domNode.offsetHeight;
349
+ if (this.#anchorAbove) {
350
+ const widgetHeight = this.#domNode.offsetHeight;
333
351
  adjustedTop = top - widgetHeight;
334
352
  } else {
335
353
  adjustedTop = top + lineHeight;
336
354
  }
337
- const stickyScrollHeight = this._stickyScrollHeight.get();
355
+ const stickyScrollHeight = this.#stickyScrollHeight.get();
338
356
  const layoutInfo = editor.getLayoutInfo();
339
- const widgetHeight = this._domNode.offsetHeight;
357
+ const widgetHeight = this.#domNode.offsetHeight;
358
+ const widgetWidth = this.#domNode.offsetWidth;
340
359
  const minTop = stickyScrollHeight;
341
360
  const maxTop = layoutInfo.height - widgetHeight;
361
+ const padding = 8;
362
+ const maxLeft = layoutInfo.width - layoutInfo.verticalScrollbarWidth - layoutInfo.minimap.minimapWidth - widgetWidth - padding;
342
363
  const clampedTop = Math.max(minTop, Math.min(adjustedTop, maxTop));
343
- const isClamped = clampedTop !== adjustedTop;
344
- this._domNode.classList.toggle("clamped", isClamped);
345
- this._position.set({
364
+ const clampedLeft = Math.max(0, Math.min(this.#anchorLeft, maxLeft));
365
+ const isClamped = clampedTop !== adjustedTop || clampedLeft !== this.#anchorLeft;
366
+ this.#domNode.classList.toggle("clamped", isClamped);
367
+ this.#position.set({
346
368
  preference: {
347
369
  top: clampedTop,
348
- left: this._anchorLeft
370
+ left: clampedLeft
349
371
  },
350
372
  stackOrdinal: 10000
351
373
  }, undefined);
352
374
  }
353
375
  hide() {
354
- const editorDomNode = this._editorObs.editor.getDomNode();
376
+ const editorDomNode = this.#editorObs.editor.getDomNode();
355
377
  if (editorDomNode && isAncestorOfActiveElement(editorDomNode)) {
356
- this._editorObs.editor.focus();
378
+ this.#editorObs.editor.focus();
357
379
  }
358
- this._position.set(null, undefined);
359
- this._input.getModel().setValue("");
360
- this._showStore.clear();
380
+ this.#position.set(null, undefined);
381
+ this.#input.getModel().setValue("");
382
+ this.#showStore.clear();
361
383
  }
362
384
  };
363
385
  InlineChatInputWidget = ( __decorate([( __param(1, IContextKeyService)), ( __param(2, IMenuService)), ( __param(3, IInstantiationService)), ( __param(4, IModelService)), ( __param(5, IConfigurationService)), ( __param(6, IInlineChatHistoryService))], InlineChatInputWidget));
364
386
  let InlineChatSessionOverlayWidget = class InlineChatSessionOverlayWidget extends Disposable {
365
- constructor(_editorObs, _instaService, _keybindingService, _logService) {
387
+ #domNode = createElement("div");
388
+ #container;
389
+ #markdownContainer;
390
+ #markdownMessage;
391
+ #markdownScrollable;
392
+ #contentRow;
393
+ #statusNode;
394
+ #icon;
395
+ #message;
396
+ #toolbarNode;
397
+ #showStore = this._store.add(( new DisposableStore()));
398
+ #position = observableValue(this, null);
399
+ #minContentWidthInPx = constObservable(0);
400
+ #stickyScrollHeight;
401
+ #editorObs;
402
+ #instaService;
403
+ #keybindingService;
404
+ constructor(editorObs, instaService, keybindingService) {
366
405
  super();
367
- this._editorObs = _editorObs;
368
- this._instaService = _instaService;
369
- this._keybindingService = _keybindingService;
370
- this._logService = _logService;
371
- this._domNode = createElement("div");
372
- this._showStore = this._store.add(( new DisposableStore()));
373
- this._position = observableValue(this, null);
374
- this._minContentWidthInPx = constObservable(0);
375
- this._domNode.classList.add("inline-chat-session-overlay-widget");
376
- this._container = createElement("div");
377
- this._domNode.appendChild(this._container);
378
- this._container.classList.add("inline-chat-session-overlay-container");
379
- this._markdownContainer = createElement("div");
380
- this._markdownContainer.classList.add("markdown-scroll-container");
381
- this._markdownMessage = createElement("div");
382
- this._markdownMessage.classList.add("markdown-message");
383
- this._markdownContainer.appendChild(this._markdownMessage);
384
- this._markdownScrollable = this._store.add(( new DomScrollableElement(this._markdownContainer, {
406
+ this.#editorObs = editorObs;
407
+ this.#instaService = instaService;
408
+ this.#keybindingService = keybindingService;
409
+ this.#domNode.classList.add("inline-chat-session-overlay-widget");
410
+ this.#container = createElement("div");
411
+ this.#domNode.appendChild(this.#container);
412
+ this.#container.classList.add("inline-chat-session-overlay-container");
413
+ this.#markdownContainer = createElement("div");
414
+ this.#markdownContainer.classList.add("markdown-scroll-container");
415
+ this.#markdownMessage = createElement("div");
416
+ this.#markdownMessage.classList.add("markdown-message");
417
+ this.#markdownContainer.appendChild(this.#markdownMessage);
418
+ this.#markdownScrollable = this._store.add(( new DomScrollableElement(this.#markdownContainer, {
385
419
  consumeMouseWheelIfScrollbarIsNeeded: true,
386
420
  horizontal: ScrollbarVisibility.Hidden,
387
421
  vertical: ScrollbarVisibility.Auto
388
422
  })));
389
- this._container.appendChild(this._markdownScrollable.getDomNode());
390
- this._contentRow = createElement("div");
391
- this._contentRow.classList.add("content-row");
392
- this._container.appendChild(this._contentRow);
393
- this._statusNode = createElement("div");
394
- this._statusNode.classList.add("status");
395
- this._icon = append(this._statusNode, $("span"));
396
- this._message = append(this._statusNode, $("span.message"));
397
- this._contentRow.appendChild(this._statusNode);
398
- this._toolbarNode = createElement("div");
399
- this._toolbarNode.classList.add("toolbar");
400
- const stickyScrollController = StickyScrollController.get(this._editorObs.editor);
401
- this._stickyScrollHeight = stickyScrollController ? observableFromEvent(
423
+ this.#container.appendChild(this.#markdownScrollable.getDomNode());
424
+ this.#contentRow = createElement("div");
425
+ this.#contentRow.classList.add("content-row");
426
+ this.#container.appendChild(this.#contentRow);
427
+ this.#statusNode = createElement("div");
428
+ this.#statusNode.classList.add("status");
429
+ this.#icon = append(this.#statusNode, $("span"));
430
+ this.#message = append(this.#statusNode, $("span.message"));
431
+ this.#contentRow.appendChild(this.#statusNode);
432
+ this.#toolbarNode = createElement("div");
433
+ this.#toolbarNode.classList.add("toolbar");
434
+ const stickyScrollController = StickyScrollController.get(this.#editorObs.editor);
435
+ this.#stickyScrollHeight = stickyScrollController ? observableFromEvent(
402
436
  stickyScrollController.onDidChangeStickyScrollHeight,
403
437
  () => stickyScrollController.stickyScrollWidgetHeight
404
438
  ) : constObservable(0);
405
439
  }
406
440
  show(session) {
407
- assertType(this._editorObs.editor.hasModel());
408
- this._showStore.clear();
441
+ assertType(this.#editorObs.editor.hasModel());
442
+ this.#showStore.clear();
409
443
  const entry = derived(r => session.editingSession.readEntry(session.uri, r));
410
444
  const requestMessage = derived(r => {
411
445
  const chatModel = session?.chatModel;
@@ -422,7 +456,7 @@ let InlineChatSessionOverlayWidget = class InlineChatSessionOverlayWidget extend
422
456
  const response = chatModel.lastRequestObs.read(r)?.response;
423
457
  if (!response) {
424
458
  return {
425
- message: ( localize(9960, "Working...")),
459
+ message: ( localize(10098, "Working...")),
426
460
  icon: ThemeIcon.modify(Codicon.loading, "spin")
427
461
  };
428
462
  }
@@ -430,20 +464,20 @@ let InlineChatSessionOverlayWidget = class InlineChatSessionOverlayWidget extend
430
464
  const result = response.result;
431
465
  if (result?.errorDetails) {
432
466
  return {
433
- message: ( localize(9961, "Sorry, your request failed")),
467
+ message: ( localize(10099, "Sorry, your request failed")),
434
468
  icon: Codicon.error
435
469
  };
436
470
  }
437
471
  const changes = entry.read(r)?.changesCount.read(r) ?? 0;
438
472
  return {
439
- message: changes === 0 ? ( localize(9962, "Done")) : changes === 1 ? ( localize(9963, "Done, 1 change")) : ( localize(9964, "Done, {0} changes", changes)),
473
+ message: changes === 0 ? ( localize(10100, "Done")) : changes === 1 ? ( localize(10101, "Done, 1 change")) : ( localize(10102, "Done, {0} changes", changes)),
440
474
  icon: Codicon.check
441
475
  };
442
476
  }
443
477
  const pendingConfirmation = response.isPendingConfirmation.read(r);
444
478
  if (pendingConfirmation) {
445
479
  return {
446
- message: ( localize(9965, "Sorry, but an expected error happened")),
480
+ message: ( localize(10103, "Sorry, but an unexpected error happened")),
447
481
  icon: Codicon.error
448
482
  };
449
483
  }
@@ -462,62 +496,62 @@ let InlineChatSessionOverlayWidget = class InlineChatSessionOverlayWidget extend
462
496
  };
463
497
  } else {
464
498
  return {
465
- message: ( localize(9960, "Working...")),
499
+ message: ( localize(10098, "Working...")),
466
500
  icon: ThemeIcon.modify(Codicon.loading, "spin")
467
501
  };
468
502
  }
469
503
  });
470
- const markdownStore = this._showStore.add(( new DisposableStore()));
471
- this._showStore.add(autorun(r => {
504
+ const markdownStore = this.#showStore.add(( new DisposableStore()));
505
+ this.#showStore.add(autorun(r => {
472
506
  const value = requestMessage.read(r);
473
507
  if (value) {
474
508
  if (value.message && value.icon) {
475
- this._message.innerText = renderAsPlaintext(value.message);
476
- this._icon.className = "";
477
- this._icon.classList.add(...ThemeIcon.asClassNameArray(value.icon));
478
- this._statusNode.classList.remove("hidden");
479
- this._contentRow.classList.remove("status-hidden");
509
+ this.#message.innerText = renderAsPlaintext(value.message);
510
+ this.#icon.className = "";
511
+ this.#icon.classList.add(...ThemeIcon.asClassNameArray(value.icon));
512
+ this.#statusNode.classList.remove("hidden");
513
+ this.#contentRow.classList.remove("status-hidden");
480
514
  } else {
481
- this._message.innerText = "";
482
- this._icon.className = "";
483
- this._statusNode.classList.add("hidden");
484
- this._contentRow.classList.add("status-hidden");
515
+ this.#message.innerText = "";
516
+ this.#icon.className = "";
517
+ this.#statusNode.classList.add("hidden");
518
+ this.#contentRow.classList.add("status-hidden");
485
519
  }
486
520
  markdownStore.clear();
487
- this._markdownMessage.replaceChildren();
521
+ this.#markdownMessage.replaceChildren();
488
522
  if (value.markdown) {
489
- this._markdownScrollable.getDomNode().classList.remove("hidden");
523
+ this.#markdownScrollable.getDomNode().classList.remove("hidden");
490
524
  const markdown = typeof value.markdown === "string" ? ( new MarkdownString(value.markdown)) : value.markdown;
491
525
  const rendered = markdownStore.add(renderMarkdown(markdown));
492
- this._markdownMessage.appendChild(rendered.element);
493
- this._markdownScrollable.scanDomNode();
526
+ this.#markdownMessage.appendChild(rendered.element);
527
+ this.#markdownScrollable.scanDomNode();
494
528
  } else {
495
- this._markdownScrollable.getDomNode().classList.add("hidden");
529
+ this.#markdownScrollable.getDomNode().classList.add("hidden");
496
530
  }
497
531
  } else {
498
- this._message.innerText = "";
499
- this._icon.className = "";
500
- this._statusNode.classList.add("hidden");
501
- this._contentRow.classList.add("status-hidden");
532
+ this.#message.innerText = "";
533
+ this.#icon.className = "";
534
+ this.#statusNode.classList.add("hidden");
535
+ this.#contentRow.classList.add("status-hidden");
502
536
  markdownStore.clear();
503
- this._markdownMessage.replaceChildren();
504
- this._markdownScrollable.getDomNode().classList.add("hidden");
505
- }
506
- }));
507
- this._showStore.add(autorun(r => {
508
- const response = session.chatModel.lastRequestObs.read(r)?.response;
509
- const pending = response?.isPendingConfirmation.read(r);
510
- if (pending) {
511
- this._logService.info(`[InlineChat] UNEXPECTED approval needed: ${pending.detail ?? "unknown"}`);
537
+ this.#markdownMessage.replaceChildren();
538
+ this.#markdownScrollable.getDomNode().classList.add("hidden");
512
539
  }
513
540
  }));
514
- this._contentRow.appendChild(this._toolbarNode);
515
- this._showStore.add(toDisposable(() => this._toolbarNode.remove()));
541
+ this.#contentRow.appendChild(this.#toolbarNode);
542
+ this.#showStore.add(toDisposable(() => this.#toolbarNode.remove()));
516
543
  const that = this;
517
- this._showStore.add(
518
- this._instaService.createInstance(MenuWorkbenchToolBar, this._toolbarNode, MenuId.ChatEditorInlineExecute, {
544
+ const actionRunner = this.#showStore.add(new (class extends ActionRunner {
545
+ async runAction(action, context) {
546
+ that.#editorObs.editor.focus();
547
+ return super.runAction(action, context);
548
+ }
549
+ })());
550
+ this.#showStore.add(
551
+ this.#instaService.createInstance(MenuWorkbenchToolBar, this.#toolbarNode, MenuId.ChatEditorInlineExecute, {
519
552
  telemetrySource: "inlineChatProgress.overlayToolbar",
520
553
  hiddenItemStrategy: HiddenItemStrategy.Ignore,
554
+ actionRunner,
521
555
  toolbarOptions: {
522
556
  primaryGroup: () => true,
523
557
  useSeparatorsInPrimaryActions: true
@@ -534,31 +568,31 @@ let InlineChatSessionOverlayWidget = class InlineChatSessionOverlayWidget extend
534
568
  return ( new ChatEditingAcceptRejectActionViewItem(action, {
535
569
  ...options,
536
570
  keybinding: undefined
537
- }, entry, undefined, that._keybindingService, primaryActions));
571
+ }, entry, undefined, that.#keybindingService, primaryActions));
538
572
  }
539
573
  })
540
574
  );
541
- const lineHeight = this._editorObs.getOption(EditorOption.lineHeight);
575
+ const lineHeight = this.#editorObs.getOption(EditorOption.lineHeight);
542
576
  const widgetWidth = observableValue(this, 0);
543
577
  const resizeObserver = new DisposableResizeObserver(() => {
544
- widgetWidth.set(this._domNode.offsetWidth, undefined);
578
+ widgetWidth.set(this.#domNode.offsetWidth, undefined);
545
579
  });
546
- this._showStore.add(resizeObserver);
547
- this._showStore.add(resizeObserver.observe(this._domNode));
548
- this._showStore.add(autorun(r => {
549
- const layoutInfo = this._editorObs.layoutInfo.read(r);
550
- const stickyScrollHeight = this._stickyScrollHeight.read(r);
580
+ this.#showStore.add(resizeObserver);
581
+ this.#showStore.add(resizeObserver.observe(this.#domNode));
582
+ this.#showStore.add(autorun(r => {
583
+ const layoutInfo = this.#editorObs.layoutInfo.read(r);
584
+ const stickyScrollHeight = this.#stickyScrollHeight.read(r);
551
585
  const width = widgetWidth.read(r);
552
586
  const padding = Math.round(lineHeight.read(r) * 2 / 3);
553
587
  const maxWidth = Math.min(400, layoutInfo.contentWidth - 2 * padding);
554
588
  const maxHeight = Math.min(150, Math.floor(layoutInfo.height / 3));
555
- this._domNode.style.maxWidth = `${maxWidth}px`;
556
- this._markdownScrollable.getDomNode().style.maxHeight = `${maxHeight}px`;
557
- this._markdownContainer.style.maxHeight = `${maxHeight}px`;
558
- this._markdownScrollable.scanDomNode();
589
+ this.#domNode.style.maxWidth = `${maxWidth}px`;
590
+ this.#markdownScrollable.getDomNode().style.maxHeight = `${maxHeight}px`;
591
+ this.#markdownContainer.style.maxHeight = `${maxHeight}px`;
592
+ this.#markdownScrollable.scanDomNode();
559
593
  const top = stickyScrollHeight + padding;
560
594
  const left = layoutInfo.width - width - layoutInfo.verticalScrollbarWidth - layoutInfo.minimap.minimapWidth - padding;
561
- this._position.set({
595
+ this.#position.set({
562
596
  preference: {
563
597
  top,
564
598
  left
@@ -566,18 +600,18 @@ let InlineChatSessionOverlayWidget = class InlineChatSessionOverlayWidget extend
566
600
  stackOrdinal: 10000
567
601
  }, undefined);
568
602
  }));
569
- this._showStore.add(this._editorObs.createOverlayWidget({
570
- domNode: this._domNode,
571
- position: this._position,
572
- minContentWidthInPx: this._minContentWidthInPx,
603
+ this.#showStore.add(this.#editorObs.createOverlayWidget({
604
+ domNode: this.#domNode,
605
+ position: this.#position,
606
+ minContentWidthInPx: this.#minContentWidthInPx,
573
607
  allowEditorOverflow: false
574
608
  }));
575
609
  }
576
610
  hide() {
577
- this._position.set(null, undefined);
578
- this._showStore.clear();
611
+ this.#position.set(null, undefined);
612
+ this.#showStore.clear();
579
613
  }
580
614
  };
581
- InlineChatSessionOverlayWidget = ( __decorate([( __param(1, IInstantiationService)), ( __param(2, IKeybindingService)), ( __param(3, ILogService))], InlineChatSessionOverlayWidget));
615
+ InlineChatSessionOverlayWidget = ( __decorate([( __param(1, IInstantiationService)), ( __param(2, IKeybindingService))], InlineChatSessionOverlayWidget));
582
616
 
583
617
  export { InlineChatInputWidget, InlineChatSessionOverlayWidget };