@codingame/monaco-vscode-katex-common 29.1.1 → 30.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/platform/actions/browser/buttonbar.js +14 -13
  3. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +16 -16
  4. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +9 -9
  5. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
  6. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +34 -34
  7. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +12 -20
  8. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.d.ts +14 -0
  9. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +208 -0
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.d.ts +22 -0
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +637 -0
  12. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.d.ts +1 -0
  13. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.js +1 -0
  14. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +8 -8
  15. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +9 -1
  16. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +202 -13
  17. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +4 -0
  18. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +17 -8
  19. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +1 -1
  20. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +53 -5
  21. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +296 -63
  22. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +59 -23
  23. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +55 -42
  24. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +12 -12
  25. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +110 -59
  26. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
  27. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +7 -7
  28. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
  29. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +1 -1
  30. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +5 -4
  31. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.d.ts +24 -0
  32. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +384 -0
  33. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -2
  34. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.d.ts +12 -7
  35. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.js +220 -61
  36. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +1 -2
  37. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +1 -1
  38. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +2 -2
  39. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.d.ts +6 -0
  40. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +14 -1
  41. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +1 -1
  42. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +1 -1
  43. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +1 -1
  44. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +2 -2
  45. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +1 -1
  46. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.js +5 -4
  47. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +3 -3
  48. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +1 -1
  49. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +1 -1
  50. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.d.ts +5 -0
  51. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +14 -14
  52. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +11 -0
  53. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +40 -12
  54. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +8 -8
  55. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +4 -4
  56. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +2 -2
  57. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +1 -0
  58. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +97 -54
  59. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +5 -4
  60. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +6 -6
  61. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.js +5 -5
  62. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +6 -6
  63. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +8 -7
  64. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +1 -1
  65. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +15 -2
  66. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +155 -22
  67. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +9 -9
  68. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.d.ts +3 -1
  69. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +36 -19
  70. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +2 -2
  71. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +1 -1
  72. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +3 -3
  73. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +14 -14
  74. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +13 -0
  75. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +1 -1
  76. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +4 -4
  77. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +1 -1
  78. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +3 -3
  79. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMissingSandboxDepsConfirmationSubPart.d.ts +17 -0
  80. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMissingSandboxDepsConfirmationSubPart.js +68 -0
  81. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatModifiedFilesConfirmationSubPart.js +6 -6
  82. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +16 -16
  83. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +33 -25
  84. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +7 -7
  85. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +12 -3
  86. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +2 -2
  87. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +5 -5
  88. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +5 -5
  89. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +11 -11
  90. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +4 -13
  91. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +37 -113
  92. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +1 -1
  93. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +10 -3
  94. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +66 -39
  95. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
  96. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +13 -2
  97. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +103 -61
  98. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +2 -1
  99. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +35 -23
  100. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.d.ts +4 -4
  101. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +6 -6
  102. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +5 -5
  103. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.d.ts +1 -0
  104. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.js +4 -1
  105. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.d.ts +2 -1
  106. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +39 -24
  107. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +6 -5
  108. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +44 -18
  109. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +3 -3
  110. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +60 -10
  111. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +7 -7
  112. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +2 -2
  113. package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +6 -6
  114. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +15 -15
  115. package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.js +4 -0
  116. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +4 -4
  117. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +5 -5
  118. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +4 -1
  119. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +5 -2
  120. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +6 -11
  121. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
  122. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +39 -39
  123. package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +3 -3
  124. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +7 -7
  125. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +2 -2
  126. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.d.ts +26 -0
  127. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +746 -0
  128. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +13 -0
  129. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +300 -0
  130. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.d.ts +8 -0
  131. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +55 -0
  132. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.d.ts +273 -0
  133. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +1963 -0
  134. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.d.ts +50 -0
  135. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +314 -0
  136. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.d.ts +258 -0
  137. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +886 -0
  138. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.d.ts +41 -0
  139. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +118 -0
  140. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.d.ts +17 -0
  141. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +71 -0
  142. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.d.ts +27 -0
  143. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +40 -0
  144. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.d.ts +23 -0
  145. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +313 -0
  146. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.d.ts +51 -0
  147. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.js +265 -0
  148. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.d.ts +24 -0
  149. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.js +185 -0
  150. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.d.ts +28 -0
  151. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +104 -0
  152. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.d.ts +10 -0
  153. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.js +43 -0
  154. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.d.ts +21 -0
  155. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.js +41 -0
  156. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +25 -0
  157. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.js +69 -0
  158. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css +469 -0
  159. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.d.ts +149 -0
  160. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +933 -0
  161. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.d.ts +180 -0
  162. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +32 -0
  163. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.d.ts +102 -0
  164. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +643 -0
  165. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.d.ts +30 -0
  166. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +197 -0
  167. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.d.ts +75 -0
  168. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +539 -0
  169. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.d.ts +13 -0
  170. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +39 -0
  171. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.d.ts +19 -0
  172. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +90 -0
  173. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.d.ts +26 -0
  174. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.js +92 -0
  175. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +1 -1
  176. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +1 -1
  177. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +0 -152
  178. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +0 -1317
  179. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalPromptFileSystem.d.ts +0 -47
  180. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalPromptFileSystem.js +0 -95
@@ -113,7 +113,7 @@ let ChatTerminalToolConfirmationSubPart = class ChatTerminalToolConfirmationSubP
113
113
  moreActions = [];
114
114
  if (!autoApproveWarningAccepted) {
115
115
  moreActions.push({
116
- label: ( localize(6863, "Enable Auto Approve...")),
116
+ label: ( localize(6926, "Enable Auto Approve...")),
117
117
  data: {
118
118
  type: "enable"
119
119
  }
@@ -205,7 +205,7 @@ let ChatTerminalToolConfirmationSubPart = class ChatTerminalToolConfirmationSubP
205
205
  );
206
206
  if (terminalData.requestUnsandboxedExecution) {
207
207
  const reasonText = (terminalData.requestUnsandboxedExecutionReason && terminalData.requestUnsandboxedExecutionReason.trim()) || ( localize(
208
- 6864,
208
+ 6927,
209
209
  "The model did not provide a reason for requesting unsandboxed execution."
210
210
  ));
211
211
  const unsandboxedReasonMarkdown = ( new MarkdownString(undefined, {
@@ -331,7 +331,7 @@ let ChatTerminalToolConfirmationSubPart = class ChatTerminalToolConfirmationSubP
331
331
  }
332
332
  const target = scope === "workspace" ? ConfigurationTarget.WORKSPACE : ConfigurationTarget.USER;
333
333
  const settingsUri = createCommandUri(TerminalContribCommandId.OpenTerminalSettingsLink, target);
334
- return `[\`${e.key}\`](${( settingsUri.toString())} "${( localize(6865, "View rule in settings"))}")`;
334
+ return `[\`${e.key}\`](${( settingsUri.toString())} "${( localize(6928, "View rule in settings"))}")`;
335
335
  })).join(", ");
336
336
  }
337
337
  const mdTrustSettings = {
@@ -342,33 +342,33 @@ let ChatTerminalToolConfirmationSubPart = class ChatTerminalToolConfirmationSubP
342
342
  const parts = [];
343
343
  if (sessionRules.length > 0) {
344
344
  parts.push(sessionRules.length === 1 ? ( localize(
345
- 6866,
345
+ 6929,
346
346
  "Session auto approve rule {0} added",
347
347
  formatRuleLinks(sessionRules, "session")
348
348
  )) : ( localize(
349
- 6867,
349
+ 6930,
350
350
  "Session auto approve rules {0} added",
351
351
  formatRuleLinks(sessionRules, "session")
352
352
  )));
353
353
  }
354
354
  if (workspaceRules.length > 0) {
355
355
  parts.push(workspaceRules.length === 1 ? ( localize(
356
- 6868,
356
+ 6931,
357
357
  "Workspace auto approve rule {0} added",
358
358
  formatRuleLinks(workspaceRules, "workspace")
359
359
  )) : ( localize(
360
- 6869,
360
+ 6932,
361
361
  "Workspace auto approve rules {0} added",
362
362
  formatRuleLinks(workspaceRules, "workspace")
363
363
  )));
364
364
  }
365
365
  if (userRules.length > 0) {
366
366
  parts.push(userRules.length === 1 ? ( localize(
367
- 6870,
367
+ 6933,
368
368
  "User auto approve rule {0} added",
369
369
  formatRuleLinks(userRules, "user")
370
370
  )) : ( localize(
371
- 6871,
371
+ 6934,
372
372
  "User auto approve rules {0} added",
373
373
  formatRuleLinks(userRules, "user")
374
374
  )));
@@ -398,7 +398,7 @@ let ChatTerminalToolConfirmationSubPart = class ChatTerminalToolConfirmationSubP
398
398
  enabledCommands: [TerminalContribCommandId.DisableSessionAutoApproval]
399
399
  }
400
400
  };
401
- terminalData.autoApproveInfo = ( new MarkdownString(`${( localize(6872, "All commands will be auto approved for this session"))} ([${( localize(6873, "Disable"))}](${( disableUri.toString())}))`, mdTrustSettings));
401
+ terminalData.autoApproveInfo = ( new MarkdownString(`${( localize(6935, "All commands will be auto approved for this session"))} ([${( localize(6936, "Disable"))}](${( disableUri.toString())}))`, mdTrustSettings));
402
402
  toolConfirmKind = ToolConfirmKind.UserAction;
403
403
  break;
404
404
  }
@@ -422,11 +422,11 @@ let ChatTerminalToolConfirmationSubPart = class ChatTerminalToolConfirmationSubP
422
422
  };
423
423
  };
424
424
  return [{
425
- ...getLabelAndTooltip(( localize(6874, "Allow")), AcceptToolConfirmationActionId),
425
+ ...getLabelAndTooltip(( localize(6937, "Allow")), AcceptToolConfirmationActionId),
426
426
  data: true,
427
427
  moreActions
428
428
  }, {
429
- ...getLabelAndTooltip(( localize(6875, "Skip")), SkipToolConfirmationActionId, ( localize(6876, "Proceed without executing this command"))),
429
+ ...getLabelAndTooltip(( localize(6938, "Skip")), SkipToolConfirmationActionId, ( localize(6939, "Proceed without executing this command"))),
430
430
  data: {
431
431
  type: "skip"
432
432
  },
@@ -436,9 +436,9 @@ let ChatTerminalToolConfirmationSubPart = class ChatTerminalToolConfirmationSubP
436
436
  async _showAutoApproveWarning() {
437
437
  const promptResult = await this.dialogService.prompt({
438
438
  type: Severity.Info,
439
- message: ( localize(6877, "Enable terminal auto approve?")),
439
+ message: ( localize(6940, "Enable terminal auto approve?")),
440
440
  buttons: [{
441
- label: ( localize(6878, "Enable")),
441
+ label: ( localize(6941, "Enable")),
442
442
  run: () => true
443
443
  }],
444
444
  cancelButton: true,
@@ -446,11 +446,11 @@ let ChatTerminalToolConfirmationSubPart = class ChatTerminalToolConfirmationSubP
446
446
  icon: Codicon.shield,
447
447
  markdownDetails: [{
448
448
  markdown: ( new MarkdownString(( localize(
449
- 6879,
449
+ 6942,
450
450
  "This will enable a configurable subset of commands to run in the terminal autonomously. It provides *best effort protections* and assumes the agent is not acting maliciously."
451
451
  ))))
452
452
  }, {
453
- markdown: ( new MarkdownString(`[${( localize(6880, "Learn more about the potential risks and how to avoid them."))}](https://code.visualstudio.com/docs/copilot/security#_security-considerations)`))
453
+ markdown: ( new MarkdownString(`[${( localize(6943, "Learn more about the potential risks and how to avoid them."))}](https://code.visualstudio.com/docs/copilot/security#_security-considerations)`))
454
454
  }]
455
455
  }
456
456
  });
@@ -245,9 +245,12 @@ let ChatTerminalToolProgressPart = class ChatTerminalToolProgressPart extends Ba
245
245
  () => this._getResolvedCommand(),
246
246
  () => this._terminalData.terminalCommandOutput,
247
247
  () => this._commandText,
248
- () => this._terminalData.terminalTheme
248
+ () => this._terminalData.terminalTheme,
249
+ !!this._terminalData.terminalToolSessionId
249
250
  ));
250
- elements.container.append(this._outputView.domNode);
251
+ if (this._terminalData.terminalToolSessionId || this._terminalData.terminalCommandOutput) {
252
+ elements.container.append(this._outputView.domNode);
253
+ }
251
254
  this._register(this._outputView.onDidFocus(() => this._handleOutputFocus()));
252
255
  this._register(this._outputView.onDidBlur(e => this._handleOutputBlur(e)));
253
256
  this._register(toDisposable(() => this._handleDispose()));
@@ -283,7 +286,7 @@ let ChatTerminalToolProgressPart = class ChatTerminalToolProgressPart extends Ba
283
286
  const markdownOptions = {
284
287
  codeBlockRenderOptions,
285
288
  accessibilityOptions: pastTenseMessage ? {
286
- statusMessage: ( localize(6881, "{0}", stripIcons(pastTenseMessage)))
289
+ statusMessage: ( localize(6944, "{0}", stripIcons(pastTenseMessage)))
287
290
  } : undefined
288
291
  };
289
292
  this.markdownPart = this._register(_instantiationService.createInstance(
@@ -810,6 +813,7 @@ let ChatTerminalToolOutputSection = class ChatTerminalToolOutputSection extends
810
813
  _getTerminalCommandOutput,
811
814
  _getCommandText,
812
815
  _getStoredTheme,
816
+ _hasTerminalSession,
813
817
  _accessibleViewService,
814
818
  _instantiationService,
815
819
  _terminalConfigurationService,
@@ -822,6 +826,7 @@ let ChatTerminalToolOutputSection = class ChatTerminalToolOutputSection extends
822
826
  this._getTerminalCommandOutput = _getTerminalCommandOutput;
823
827
  this._getCommandText = _getCommandText;
824
828
  this._getStoredTheme = _getStoredTheme;
829
+ this._hasTerminalSession = _hasTerminalSession;
825
830
  this._accessibleViewService = _accessibleViewService;
826
831
  this._instantiationService = _instantiationService;
827
832
  this._terminalConfigurationService = _terminalConfigurationService;
@@ -898,7 +903,7 @@ let ChatTerminalToolOutputSection = class ChatTerminalToolOutputSection extends
898
903
  if (!commandText) {
899
904
  return;
900
905
  }
901
- const ariaLabel = ( localize(6882, "Terminal output for {0}", commandText));
906
+ const ariaLabel = ( localize(6945, "Terminal output for {0}", commandText));
902
907
  const scrollableDomNode = this._scrollableContainer.getDomNode();
903
908
  scrollableDomNode.setAttribute("role", "region");
904
909
  const accessibleViewHint = this._accessibleViewService.getOpenAriaHint(AccessibilityVerbositySettingId.TerminalChatOutput);
@@ -911,26 +916,26 @@ let ChatTerminalToolOutputSection = class ChatTerminalToolOutputSection extends
911
916
  if (!commandText) {
912
917
  return undefined;
913
918
  }
914
- const commandHeader = ( localize(6883, "Command: {0}", commandText));
919
+ const commandHeader = ( localize(6946, "Command: {0}", commandText));
915
920
  if (command) {
916
921
  const rawOutput = command.getOutput();
917
922
  if (!rawOutput || rawOutput.trim().length === 0) {
918
- return `${commandHeader}\n${( localize(6884, "No output was produced by the command."))}`;
923
+ return `${commandHeader}\n${( localize(6947, "No output was produced by the command."))}`;
919
924
  }
920
925
  const lines = rawOutput.split("\n");
921
926
  return `${commandHeader}\n${lines.join("\n").trimEnd()}`;
922
927
  }
923
928
  const snapshot = this._getTerminalCommandOutput();
924
929
  if (!snapshot) {
925
- return `${commandHeader}\n${( localize(6885, "Command output is no longer available."))}`;
930
+ return `${commandHeader}\n${( localize(6948, "Command output is no longer available."))}`;
926
931
  }
927
932
  const plain = removeAnsiEscapeCodes((snapshot.text ?? ""));
928
933
  if (!plain.trim().length) {
929
- return `${commandHeader}\n${( localize(6884, "No output was produced by the command."))}`;
934
+ return `${commandHeader}\n${( localize(6947, "No output was produced by the command."))}`;
930
935
  }
931
936
  let outputText = plain.trimEnd();
932
937
  if (snapshot.truncated) {
933
- outputText += `\n${( localize(6886, "Output truncated."))}`;
938
+ outputText += `\n${( localize(6949, "Output truncated."))}`;
934
939
  }
935
940
  return `${commandHeader}\n${outputText}`;
936
941
  }
@@ -990,6 +995,9 @@ let ChatTerminalToolOutputSection = class ChatTerminalToolOutputSection extends
990
995
  await this._renderSnapshotOutput(snapshot);
991
996
  return;
992
997
  }
998
+ if (!this._hasTerminalSession) {
999
+ return;
1000
+ }
993
1001
  this._renderUnavailableMessage(liveTerminalInstance);
994
1002
  }
995
1003
  async _renderLiveOutput(liveTerminalInstance, command) {
@@ -1039,7 +1047,7 @@ let ChatTerminalToolOutputSection = class ChatTerminalToolOutputSection extends
1039
1047
  }
1040
1048
  if (!hasOutput) {
1041
1049
  if (commandFinished) {
1042
- this._showEmptyMessage(( localize(6884, "No output was produced by the command.")));
1050
+ this._showEmptyMessage(( localize(6947, "No output was produced by the command.")));
1043
1051
  }
1044
1052
  } else {
1045
1053
  this._hideEmptyMessage();
@@ -1049,7 +1057,7 @@ let ChatTerminalToolOutputSection = class ChatTerminalToolOutputSection extends
1049
1057
  }
1050
1058
  async _renderSnapshotOutput(snapshot) {
1051
1059
  if (this._snapshotMirror) {
1052
- this._layoutOutput(snapshot.lineCount ?? 0);
1060
+ this._layoutOutput(snapshot.lineCount ?? this._lastRenderedLineCount ?? 0);
1053
1061
  return;
1054
1062
  }
1055
1063
  if (this._store.isDisposed) {
@@ -1066,7 +1074,7 @@ let ChatTerminalToolOutputSection = class ChatTerminalToolOutputSection extends
1066
1074
  if (hasText) {
1067
1075
  this._hideEmptyMessage();
1068
1076
  } else {
1069
- this._showEmptyMessage(( localize(6884, "No output was produced by the command.")));
1077
+ this._showEmptyMessage(( localize(6947, "No output was produced by the command.")));
1070
1078
  }
1071
1079
  const lineCount = result?.lineCount ?? snapshot.lineCount ?? 0;
1072
1080
  this._layoutOutput(lineCount);
@@ -1075,9 +1083,9 @@ let ChatTerminalToolOutputSection = class ChatTerminalToolOutputSection extends
1075
1083
  clearNode(this._terminalContainer);
1076
1084
  this._lastRenderedLineCount = undefined;
1077
1085
  if (!liveTerminalInstance) {
1078
- this._showEmptyMessage(( localize(6887, "Terminal is no longer available.")));
1086
+ this._showEmptyMessage(( localize(6950, "Terminal is no longer available.")));
1079
1087
  } else {
1080
- this._showEmptyMessage(( localize(6888, "Command information is not available.")));
1088
+ this._showEmptyMessage(( localize(6951, "Command information is not available.")));
1081
1089
  }
1082
1090
  }
1083
1091
  async _resolveLiveTerminal() {
@@ -1193,10 +1201,10 @@ let ChatTerminalToolOutputSection = class ChatTerminalToolOutputSection extends
1193
1201
  }
1194
1202
  }
1195
1203
  };
1196
- ChatTerminalToolOutputSection = ( __decorate([( __param(5, IAccessibleViewService)), ( __param(6, IInstantiationService)), ( __param(7, ITerminalConfigurationService)), ( __param(8, IThemeService)), ( __param(9, IContextKeyService))], ChatTerminalToolOutputSection));
1204
+ ChatTerminalToolOutputSection = ( __decorate([( __param(6, IAccessibleViewService)), ( __param(7, IInstantiationService)), ( __param(8, ITerminalConfigurationService)), ( __param(9, IThemeService)), ( __param(10, IContextKeyService))], ChatTerminalToolOutputSection));
1197
1205
  let ToggleChatTerminalOutputAction = class ToggleChatTerminalOutputAction extends Action {
1198
1206
  constructor(_toggle, _keybindingService, _telemetryService) {
1199
- super(TerminalContribCommandId.ToggleChatTerminalOutput, ( localize(6889, "Show Output")), ThemeIcon.asClassName(Codicon.chevronRight), true);
1207
+ super(TerminalContribCommandId.ToggleChatTerminalOutput, ( localize(6952, "Show Output")), ThemeIcon.asClassName(Codicon.chevronRight), true);
1200
1208
  this._toggle = _toggle;
1201
1209
  this._keybindingService = _keybindingService;
1202
1210
  this._telemetryService = _telemetryService;
@@ -1219,10 +1227,10 @@ let ToggleChatTerminalOutputAction = class ToggleChatTerminalOutputAction extend
1219
1227
  }
1220
1228
  _updatePresentation() {
1221
1229
  if (this._expanded) {
1222
- this.label = ( localize(6890, "Hide Output"));
1230
+ this.label = ( localize(6953, "Hide Output"));
1223
1231
  this.class = ThemeIcon.asClassName(Codicon.chevronDown);
1224
1232
  } else {
1225
- this.label = ( localize(6889, "Show Output"));
1233
+ this.label = ( localize(6952, "Show Output"));
1226
1234
  this.class = ThemeIcon.asClassName(Codicon.chevronRight);
1227
1235
  }
1228
1236
  }
@@ -1246,7 +1254,7 @@ let FocusChatInstanceAction = class FocusChatInstanceAction extends Action {
1246
1254
  ) {
1247
1255
  super(
1248
1256
  TerminalContribCommandId.FocusChatInstanceAction,
1249
- isTerminalHidden ? ( localize(6891, "Show and Focus Terminal")) : ( localize(6892, "Focus Terminal")),
1257
+ isTerminalHidden ? ( localize(6954, "Show and Focus Terminal")) : ( localize(6955, "Focus Terminal")),
1250
1258
  ThemeIcon.asClassName(Codicon.openInProduct),
1251
1259
  true
1252
1260
  );
@@ -1262,7 +1270,7 @@ let FocusChatInstanceAction = class FocusChatInstanceAction extends Action {
1262
1270
  this._updateTooltip();
1263
1271
  }
1264
1272
  async run() {
1265
- this.label = this._instance?.shellLaunchConfig.hideFromUser ? ( localize(6893, "Show and Focus Terminal")) : ( localize(6892, "Focus Terminal"));
1273
+ this.label = this._instance?.shellLaunchConfig.hideFromUser ? ( localize(6956, "Show and Focus Terminal")) : ( localize(6955, "Focus Terminal"));
1266
1274
  this._updateTooltip();
1267
1275
  let target = "none";
1268
1276
  let location = "panel";
@@ -1319,7 +1327,7 @@ let FocusChatInstanceAction = class FocusChatInstanceAction extends Action {
1319
1327
  FocusChatInstanceAction = ( __decorate([( __param(5, ITerminalService)), ( __param(6, ITerminalEditorService)), ( __param(7, ITerminalGroupService)), ( __param(8, IKeybindingService)), ( __param(9, ITelemetryService))], FocusChatInstanceAction));
1320
1328
  let ContinueInBackgroundAction = class ContinueInBackgroundAction extends Action {
1321
1329
  constructor(_terminalToolSessionId, _terminalChatService) {
1322
- super(TerminalContribCommandId.ContinueInBackground, ( localize(6894, "Continue in Background")), ThemeIcon.asClassName(Codicon.debugContinue), true);
1330
+ super(TerminalContribCommandId.ContinueInBackground, ( localize(6957, "Continue in Background")), ThemeIcon.asClassName(Codicon.debugContinue), true);
1323
1331
  this._terminalToolSessionId = _terminalToolSessionId;
1324
1332
  this._terminalChatService = _terminalChatService;
1325
1333
  }
@@ -1339,7 +1347,7 @@ let ChatTerminalThinkingCollapsibleWrapper = class ChatTerminalThinkingCollapsib
1339
1347
  hoverService,
1340
1348
  configurationService
1341
1349
  ) {
1342
- const title = isComplete ? ( localize(6895, "Ran {0}", commandText)) : ( localize(6896, "Running {0}", commandText));
1350
+ const title = isComplete ? ( localize(6958, "Ran {0}", commandText)) : ( localize(6959, "Running {0}", commandText));
1343
1351
  super(title, context, undefined, hoverService, configurationService);
1344
1352
  this._terminalContentElement = contentElement;
1345
1353
  this._commandText = commandText;
@@ -1359,8 +1367,8 @@ let ChatTerminalThinkingCollapsibleWrapper = class ChatTerminalThinkingCollapsib
1359
1367
  const labelElement = this._collapseButton.labelElement;
1360
1368
  labelElement.textContent = "";
1361
1369
  if (this._isSandboxWrapped) {
1362
- const prefixText = this._isComplete ? ( localize(6897, "Ran ")) : ( localize(6898, "Running "));
1363
- const suffixText = ( localize(6899, " in sandbox"));
1370
+ const prefixText = this._isComplete ? ( localize(6960, "Ran ")) : ( localize(6961, "Running "));
1371
+ const suffixText = ( localize(6962, " in sandbox"));
1364
1372
  labelElement.appendChild(createTextNode(prefixText));
1365
1373
  const codeElement = createElement("code");
1366
1374
  codeElement.textContent = this._commandText;
@@ -1368,7 +1376,7 @@ let ChatTerminalThinkingCollapsibleWrapper = class ChatTerminalThinkingCollapsib
1368
1376
  labelElement.appendChild(createTextNode(suffixText));
1369
1377
  return;
1370
1378
  }
1371
- const prefixText = this._isComplete ? ( localize(6900, "Ran ")) : ( localize(6901, "Running "));
1379
+ const prefixText = this._isComplete ? ( localize(6963, "Ran ")) : ( localize(6964, "Running "));
1372
1380
  const ranText = createTextNode(prefixText);
1373
1381
  const codeElement = createElement("code");
1374
1382
  codeElement.textContent = this._commandText;
@@ -28,7 +28,7 @@ import { IChatMarkdownAnchorService } from '@codingame/monaco-vscode-api/vscode/
28
28
  import { ChatMarkdownContentPart } from '../chatMarkdownContentPart.js';
29
29
  import { AbstractToolConfirmationSubPart } from './abstractToolConfirmationSubPart.js';
30
30
 
31
- const SHOW_MORE_MESSAGE_HEIGHT_TRIGGER = 45;
31
+ const SHOW_MORE_MESSAGE_HEIGHT_TRIGGER = 100;
32
32
  let ToolConfirmationSubPart = class ToolConfirmationSubPart extends AbstractToolConfirmationSubPart {
33
33
  get codeblocks() {
34
34
  return this.markdownParts.flatMap(part => part.codeblocks);
@@ -79,8 +79,8 @@ let ToolConfirmationSubPart = class ToolConfirmationSubPart extends AbstractTool
79
79
  this.render({
80
80
  allowActionId: AcceptToolConfirmationActionId,
81
81
  skipActionId: SkipToolConfirmationActionId,
82
- allowLabel: state.confirmationMessages.confirmResults ? ( localize(6902, "Allow and Review Once")) : ( localize(6903, "Allow Once")),
83
- skipLabel: ( localize(6904, "Proceed without running this tool")),
82
+ allowLabel: state.confirmationMessages.confirmResults ? ( localize(6965, "Allow and Review Once")) : ( localize(6966, "Allow Once")),
83
+ skipLabel: ( localize(6967, "Proceed without running this tool")),
84
84
  partType: "chatToolConfirmation",
85
85
  subtitle: typeof toolInvocation.originMessage === "string" ? toolInvocation.originMessage : toolInvocation.originMessage?.value
86
86
  });
@@ -125,7 +125,7 @@ let ToolConfirmationSubPart = class ToolConfirmationSubPart extends AbstractTool
125
125
  }
126
126
  if (state.confirmationMessages?.confirmResults) {
127
127
  actions.unshift({
128
- label: ( localize(6905, "Allow and Skip Reviewing Result")),
128
+ label: ( localize(6968, "Allow and Skip Reviewing Result")),
129
129
  data: () => {
130
130
  state.confirmationMessages.confirmResults = undefined;
131
131
  this.confirmWith(this.toolInvocation, {
@@ -167,11 +167,11 @@ let ToolConfirmationSubPart = class ToolConfirmationSubPart extends AbstractTool
167
167
  };
168
168
  const elements = h("div", [h(".message@messageContainer", [
169
169
  h(".message-wrapper@message"),
170
- h(".see-more@showMore", [h("a", [( localize(6906, "Show More"))])])
170
+ h(".see-more@showMore", [h("a", [( localize(6969, "Show More"))])])
171
171
  ]), h(".editor@editor"), h(".disclaimer@disclaimer")]);
172
172
  if (toolInvocation.toolSpecificData?.kind === "input" && toolInvocation.toolSpecificData.rawInput && !isEmptyObject(toolInvocation.toolSpecificData.rawInput)) {
173
173
  const titleEl = createElement("h3");
174
- titleEl.textContent = ( localize(6907, "Input"));
174
+ titleEl.textContent = ( localize(6970, "Input"));
175
175
  elements.editor.appendChild(titleEl);
176
176
  const inputData = toolInvocation.toolSpecificData;
177
177
  const codeBlockRenderOptions = {
@@ -247,7 +247,7 @@ let ToolConfirmationSubPart = class ToolConfirmationSubPart extends AbstractTool
247
247
  elements.editor.append(editor.object.element);
248
248
  if (canSeeMore) {
249
249
  const seeMore = h("div.see-more", [h("a@link")]);
250
- seeMore.link.textContent = ( localize(6908, "See more"));
250
+ seeMore.link.textContent = ( localize(6971, "See more"));
251
251
  this._register(addDisposableGenericMouseDownListener(seeMore.link, () => {
252
252
  try {
253
253
  const parsed = JSON.parse(model.getValue());
@@ -5,7 +5,7 @@ import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/even
5
5
  import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
6
6
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
7
7
  import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
8
- import { IChatToolInvocation, ToolConfirmKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
8
+ import { IChatToolInvocation, ToolConfirmKind, isLegacyChatTerminalToolInvocationData } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
9
9
  import { IChatTodoListService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/chatTodoListService.service';
10
10
  import { ToolInvocationPresentation, isToolResultOutputDetails, isToolResultInputOutputDetails } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService';
11
11
  import { ExtensionsInstallConfirmationWidgetSubPart } from './chatExtensionsInstallToolSubPart.js';
@@ -13,6 +13,7 @@ import { ChatInputOutputMarkdownProgressPart } from './chatInputOutputMarkdownPr
13
13
  import { ChatMcpAppSubPart } from './chatMcpAppSubPart.js';
14
14
  import { ChatResultListSubPart } from './chatResultListSubPart.js';
15
15
  import { ChatSimpleToolProgressPart } from './chatSimpleToolProgressPart.js';
16
+ import { ChatMissingSandboxDepsConfirmationSubPart } from './chatMissingSandboxDepsConfirmationSubPart.js';
16
17
  import { ChatModifiedFilesConfirmationSubPart } from './chatModifiedFilesConfirmationSubPart.js';
17
18
  import { ChatTerminalToolConfirmationSubPart } from './chatTerminalToolConfirmationSubPart.js';
18
19
  import { ChatTerminalToolProgressPart } from './chatTerminalToolProgressPart.js';
@@ -99,7 +100,7 @@ let ChatToolInvocationPart = class ChatToolInvocationPart extends Disposable {
99
100
  this.subPart = partStore.add(this.createToolInvocationSubPart());
100
101
  subPartDomNode.replaceWith(this.subPart.domNode);
101
102
  subPartDomNode = this.subPart.domNode;
102
- const isConfirmation = this.subPart instanceof ToolConfirmationSubPart || this.subPart instanceof ChatTerminalToolConfirmationSubPart || this.subPart instanceof ChatModifiedFilesConfirmationSubPart || this.subPart instanceof ExtensionsInstallConfirmationWidgetSubPart || this.subPart instanceof ChatToolPostExecuteConfirmationPart;
103
+ const isConfirmation = this.subPart instanceof ToolConfirmationSubPart || this.subPart instanceof ChatTerminalToolConfirmationSubPart || this.subPart instanceof ChatModifiedFilesConfirmationSubPart || this.subPart instanceof ChatMissingSandboxDepsConfirmationSubPart || this.subPart instanceof ExtensionsInstallConfirmationWidgetSubPart || this.subPart instanceof ChatToolPostExecuteConfirmationPart;
103
104
  this.domNode.classList.toggle("has-confirmation", isConfirmation);
104
105
  partStore.add(this.subPart.onNeedsRerender(render));
105
106
  };
@@ -144,7 +145,15 @@ let ChatToolInvocationPart = class ChatToolInvocationPart extends Disposable {
144
145
  return this.instantiationService.createInstance(ChatToolStreamingSubPart, this.toolInvocation, this.context, this.renderer);
145
146
  }
146
147
  if (state.type === IChatToolInvocation.StateKind.WaitingForConfirmation) {
147
- if (this.toolInvocation.toolSpecificData?.kind === "terminal") {
148
+ if (this.toolInvocation.toolSpecificData?.kind === "terminal" && !isLegacyChatTerminalToolInvocationData(this.toolInvocation.toolSpecificData) && this.toolInvocation.toolSpecificData.missingSandboxDependencies?.length) {
149
+ return this.instantiationService.createInstance(
150
+ ChatMissingSandboxDepsConfirmationSubPart,
151
+ this.toolInvocation,
152
+ this.toolInvocation.toolSpecificData,
153
+ this.context,
154
+ this.renderer
155
+ );
156
+ } else if (this.toolInvocation.toolSpecificData?.kind === "terminal") {
148
157
  return this.instantiationService.createInstance(
149
158
  ChatTerminalToolConfirmationSubPart,
150
159
  this.toolInvocation,
@@ -75,7 +75,7 @@ let ChatToolOutputSubPart = class ChatToolOutputSubPart extends BaseChatToolInvo
75
75
  partState.webviewOrigin = partState.webviewOrigin;
76
76
  }
77
77
  const progressMessage = $("span");
78
- progressMessage.textContent = ( localize(6909, "Rendering tool output..."));
78
+ progressMessage.textContent = ( localize(6972, "Rendering tool output..."));
79
79
  const progressPart = this._register(this.instantiationService.createInstance(
80
80
  ChatProgressSubPart,
81
81
  progressMessage,
@@ -125,7 +125,7 @@ let ChatToolOutputSubPart = class ChatToolOutputSubPart extends BaseChatToolInvo
125
125
  iconElement.classList.add(...ThemeIcon.asClassNameArray(Codicon.error));
126
126
  errorHeaderNode.append(iconElement);
127
127
  const errorTitleNode = $(".output-error-title");
128
- errorTitleNode.textContent = ( localize(6910, "Error rendering the tool output"));
128
+ errorTitleNode.textContent = ( localize(6973, "Error rendering the tool output"));
129
129
  errorHeaderNode.append(errorTitleNode);
130
130
  const errorMessageNode = $(".output-error-details");
131
131
  errorMessageNode.textContent = error?.message || String(error);
@@ -26,20 +26,20 @@ function getApprovalMessageFromReason(reason) {
26
26
  let md;
27
27
  switch (reason.type) {
28
28
  case ToolConfirmKind.Setting:
29
- md = ( localize(6911, "Auto approved by {0}", createMarkdownCommandLink({
29
+ md = ( localize(6974, "Auto approved by {0}", createMarkdownCommandLink({
30
30
  text: "`" + reason.id + "`",
31
31
  id: "workbench.action.openSettings",
32
32
  arguments: [reason.id],
33
- tooltip: ( localize(6912, "Open settings"))
33
+ tooltip: ( localize(6975, "Open settings"))
34
34
  }, false)));
35
35
  break;
36
36
  case ToolConfirmKind.LmServicePerTool:
37
- md = reason.scope === "session" ? ( localize(6913, "Auto approved for this session")) : reason.scope === "workspace" ? ( localize(6914, "Auto approved for this workspace")) : ( localize(6915, "Auto approved for this profile"));
37
+ md = reason.scope === "session" ? ( localize(6976, "Auto approved for this session")) : reason.scope === "workspace" ? ( localize(6977, "Auto approved for this workspace")) : ( localize(6978, "Auto approved for this profile"));
38
38
  md += " (" + createMarkdownCommandLink({
39
- text: ( localize(6916, "Edit")),
39
+ text: ( localize(6979, "Edit")),
40
40
  id: "workbench.action.chat.editToolApproval",
41
41
  arguments: [reason.scope],
42
- tooltip: ( localize(6917, "Edit tool approval settings"))
42
+ tooltip: ( localize(6980, "Edit tool approval settings"))
43
43
  }) + ")";
44
44
  break;
45
45
  case ToolConfirmKind.ConfirmationNotNeeded:
@@ -46,8 +46,8 @@ let ChatToolPostExecuteConfirmationPart = class ChatToolPostExecuteConfirmationP
46
46
  this.render({
47
47
  allowActionId: AcceptToolPostConfirmationActionId,
48
48
  skipActionId: SkipToolPostConfirmationActionId,
49
- allowLabel: ( localize(6918, "Allow Once")),
50
- skipLabel: ( localize(6919, "Skip Results")),
49
+ allowLabel: ( localize(6981, "Allow Once")),
50
+ skipLabel: ( localize(6982, "Skip Results")),
51
51
  partType: "chatToolPostConfirmation",
52
52
  subtitle: typeof subtitle === "string" ? subtitle : subtitle?.value
53
53
  });
@@ -63,7 +63,7 @@ let ChatToolPostExecuteConfirmationPart = class ChatToolPostExecuteConfirmationP
63
63
  return this.createResultsDisplay(this.toolInvocation, state.contentForModel);
64
64
  }
65
65
  getTitle() {
66
- return localize(6920, "Approve Tool Result");
66
+ return localize(6983, "Approve Tool Result");
67
67
  }
68
68
  additionalPrimaryActions() {
69
69
  const actions = super.additionalPrimaryActions();
@@ -99,7 +99,7 @@ let ChatToolPostExecuteConfirmationPart = class ChatToolPostExecuteConfirmationP
99
99
  createResultsDisplay(toolInvocation, contentForModel) {
100
100
  const container = $(".tool-postconfirm-display");
101
101
  if (!contentForModel || contentForModel.length === 0) {
102
- container.textContent = ( localize(6921, "No results to display"));
102
+ container.textContent = ( localize(6984, "No results to display"));
103
103
  return container;
104
104
  }
105
105
  const parts = [];
@@ -214,7 +214,7 @@ let ChatToolPostExecuteConfirmationPart = class ChatToolPostExecuteConfirmationP
214
214
  outputSubPart.domNode.classList.add("tool-postconfirm-display");
215
215
  return outputSubPart.domNode;
216
216
  }
217
- container.textContent = ( localize(6922, "No displayable results"));
217
+ container.textContent = ( localize(6985, "No displayable results"));
218
218
  return container;
219
219
  }
220
220
  };
@@ -209,23 +209,23 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
209
209
  getDropTypeName(type) {
210
210
  switch (type) {
211
211
  case ChatDragAndDropType.FILE_INTERNAL:
212
- return localize(6923, "File");
212
+ return localize(6986, "File");
213
213
  case ChatDragAndDropType.FILE_EXTERNAL:
214
- return localize(6923, "File");
214
+ return localize(6986, "File");
215
215
  case ChatDragAndDropType.FOLDER:
216
- return localize(6924, "Folder");
216
+ return localize(6987, "Folder");
217
217
  case ChatDragAndDropType.IMAGE:
218
- return localize(6925, "Image");
218
+ return localize(6988, "Image");
219
219
  case ChatDragAndDropType.SYMBOL:
220
- return localize(6926, "Symbol");
220
+ return localize(6989, "Symbol");
221
221
  case ChatDragAndDropType.MARKER:
222
- return localize(6927, "Problem");
222
+ return localize(6990, "Problem");
223
223
  case ChatDragAndDropType.HTML:
224
- return localize(6928, "URL");
224
+ return localize(6991, "URL");
225
225
  case ChatDragAndDropType.NOTEBOOK_CELL_OUTPUT:
226
- return localize(6929, "Output");
226
+ return localize(6992, "Output");
227
227
  case ChatDragAndDropType.SCM_HISTORY_ITEM:
228
- return localize(6930, "Change");
228
+ return localize(6993, "Change");
229
229
  }
230
230
  }
231
231
  async resolveAttachmentsFromDragEvent(e) {
@@ -297,7 +297,7 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
297
297
  async resolveHTMLAttachContext(e) {
298
298
  const existingAttachmentNames = ( new Set(( this.attachmentModel.attachments.map(attachment => attachment.name))));
299
299
  const createDisplayName = () => {
300
- const baseName = ( localize(6931, "Image from URL"));
300
+ const baseName = ( localize(6994, "Image from URL"));
301
301
  let uniqueName = baseName;
302
302
  let baseNameInstance = 1;
303
303
  while (( existingAttachmentNames.has(uniqueName))) {
@@ -375,7 +375,7 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
375
375
  }
376
376
  getOverlayText(type) {
377
377
  const typeName = this.getDropTypeName(type);
378
- return localize(6932, "Attach {0} as Context", typeName);
378
+ return localize(6995, "Attach {0} as Context", typeName);
379
379
  }
380
380
  updateOverlayStyles(overlay) {
381
381
  overlay.style.backgroundColor = this.getColor(this.styles.overlayBackground) || "";
@@ -1,7 +1,5 @@
1
- import { DropdownMenuActionViewItem, IDropdownMenuActionViewItemOptions } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/dropdown/dropdownActionViewItem";
2
1
  import { CachedListVirtualDelegate, IListElementRenderDetails } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/list/list";
3
2
  import { ITreeNode, ITreeRenderer } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/tree/tree";
4
- import { IAction } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions";
5
3
  import { Emitter, Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
6
4
  import { FuzzyScore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/filters";
7
5
  import { Disposable, DisposableStore, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
@@ -11,14 +9,12 @@ import { MenuWorkbenchToolBar } from "@codingame/monaco-vscode-api/vscode/vs/pla
11
9
  import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
12
10
  import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
13
11
  import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
14
- import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
15
12
  import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
16
13
  import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
17
14
  import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
18
15
  import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
19
16
  import { IAccessibilitySignalService } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service";
20
17
  import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
21
- import { IWorkbenchIssueService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/issue/common/issue.service";
22
18
  import { IChatFollowup, IChatThinkingPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
23
19
  import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
24
20
  import { IChatResponseViewModel, IChatViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
@@ -180,6 +176,10 @@ export declare class ChatListItemRenderer extends Disposable implements ITreeRen
180
176
  private getAgentIcon;
181
177
  private renderChatResponseBasic;
182
178
  private shouldShowWorkingProgress;
179
+ /**
180
+ * Adds a debounce on when to show "working" shimmer.
181
+ */
182
+ private hasBeenCaughtUpLongEnough;
183
183
  private getChatFileChangesSummaryPart;
184
184
  private renderChatRequest;
185
185
  /**
@@ -250,13 +250,4 @@ export declare class ChatListDelegate extends CachedListVirtualDelegate<ChatTree
250
250
  getTemplateId(element: ChatTreeItem): string;
251
251
  hasDynamicHeight(element: ChatTreeItem): boolean;
252
252
  }
253
- export declare class ChatVoteDownButton extends DropdownMenuActionViewItem {
254
- private readonly commandService;
255
- private readonly issueService;
256
- private readonly logService;
257
- constructor(action: IAction, options: IDropdownMenuActionViewItemOptions | undefined, commandService: ICommandService, issueService: IWorkbenchIssueService, logService: ILogService, contextMenuService: IContextMenuService);
258
- getActions(): readonly IAction[];
259
- render(container: HTMLElement): void;
260
- private getVoteDownDetailAction;
261
- }
262
253
  export {};