@codingame/monaco-vscode-katex-common 27.0.0 → 28.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 (181) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +2 -0
  3. package/vscode/src/vs/platform/actions/browser/buttonbar.js +2 -2
  4. package/vscode/src/vs/platform/mcp/common/modelContextProtocolApps.d.ts +30 -2
  5. package/vscode/src/vs/platform/mcp/common/modelContextProtocolApps.js +1 -0
  6. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +15 -15
  7. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +17 -11
  8. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
  9. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.d.ts +5 -0
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +90 -43
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +10 -10
  12. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.d.ts +26 -0
  13. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.js +106 -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 +6 -0
  16. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +63 -10
  17. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +1 -0
  18. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +13 -10
  19. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +2 -2
  20. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +28 -2
  21. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +133 -28
  22. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +69 -0
  23. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +55 -46
  24. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +10 -10
  25. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +38 -37
  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/chatEditing/media/chatEditingEditorOverlay.css +5 -5
  30. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +1 -1
  31. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +1 -1
  32. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +2 -2
  33. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +72 -57
  34. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +4 -4
  35. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.d.ts +1 -16
  36. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +4 -110
  37. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -2
  38. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.d.ts +1 -1
  39. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +1 -1
  40. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.d.ts +1 -1
  41. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +2 -2
  42. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.d.ts +1 -1
  43. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +1 -1
  44. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.d.ts +1 -1
  45. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +1 -1
  46. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.d.ts +1 -1
  47. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.d.ts +1 -1
  48. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.d.ts +1 -1
  49. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +1 -1
  50. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.d.ts +1 -1
  51. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +2 -2
  52. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +1 -1
  53. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +1 -1
  54. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts.d.ts +59 -0
  55. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts.js +29 -0
  56. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.d.ts +1 -1
  57. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +2 -2
  58. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.d.ts +1 -1
  59. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.d.ts +1 -1
  60. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorContentPart.d.ts +1 -1
  61. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.d.ts +1 -1
  62. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +1 -1
  63. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.d.ts +1 -1
  64. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +3 -3
  65. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +13 -13
  66. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +1 -1
  67. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +8 -6
  68. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownTableScrolling.d.ts +15 -0
  69. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownTableScrolling.js +55 -0
  70. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.d.ts +1 -1
  71. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +6 -6
  72. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.d.ts +1 -1
  73. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +4 -4
  74. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +1 -1
  75. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +6 -4
  76. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.d.ts +1 -1
  77. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +26 -6
  78. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +290 -126
  79. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.d.ts +1 -1
  80. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +4 -4
  81. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.d.ts +1 -1
  82. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +9 -7
  83. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.d.ts +22 -0
  84. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.js +263 -0
  85. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.d.ts +1 -1
  86. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +6 -6
  87. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +5 -5
  88. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.d.ts +1 -1
  89. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.d.ts +1 -1
  90. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +1 -1
  91. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +1 -1
  92. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +22 -13
  93. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +12 -18
  94. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +17 -17
  95. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +1 -1
  96. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +2 -2
  97. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.d.ts +3 -13
  98. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +6 -260
  99. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.d.ts +1 -1
  100. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +1 -1
  101. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.d.ts +1 -1
  102. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +3 -3
  103. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +14 -14
  104. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +17 -0
  105. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +129 -117
  106. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTipContent.css +0 -1
  107. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.d.ts +1 -1
  108. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +1 -1
  109. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.d.ts +1 -1
  110. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +4 -4
  111. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +1 -1
  112. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.d.ts +8 -1
  113. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +56 -3
  114. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.d.ts +5 -1
  115. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +20 -4
  116. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatResultListSubPart.d.ts +1 -1
  117. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatSimpleToolProgressPart.d.ts +1 -1
  118. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.d.ts +1 -1
  119. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +15 -15
  120. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +43 -1
  121. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +42 -41
  122. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.d.ts +2 -4
  123. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +14 -14
  124. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +1 -1
  125. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.d.ts +1 -1
  126. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +2 -2
  127. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +3 -3
  128. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +1 -1
  129. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +5 -5
  130. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.d.ts +1 -1
  131. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.d.ts +1 -1
  132. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +11 -11
  133. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +4 -2
  134. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +61 -39
  135. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatQuestionCarouselAutoReply.js +7 -8
  136. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +1 -10
  137. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +81 -191
  138. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
  139. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +31 -17
  140. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +334 -181
  141. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +1 -1
  142. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.js +7 -1
  143. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +3 -0
  144. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +51 -55
  145. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.d.ts +104 -0
  146. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.js +127 -0
  147. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +5 -5
  148. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.d.ts +2 -1
  149. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +16 -9
  150. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.js +2 -1
  151. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.d.ts +22 -0
  152. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +213 -0
  153. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +1 -0
  154. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +10 -16
  155. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +6 -4
  156. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +174 -10
  157. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatViewWelcome.css +2 -12
  158. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +12 -16
  159. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.d.ts +1 -0
  160. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +5 -1
  161. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageDetails.css +36 -50
  162. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageWidget.css +19 -4
  163. package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +22 -6
  164. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +15 -15
  165. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.d.ts +3 -1
  166. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +24 -4
  167. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +3 -3
  168. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +5 -5
  169. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +5 -5
  170. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
  171. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +2 -2
  172. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatEditorAffordance.css +1 -1
  173. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatOverlayWidget.css +3 -3
  174. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +1 -1
  175. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +38 -46
  176. package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +3 -3
  177. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +7 -7
  178. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +2 -2
  179. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +1 -1
  180. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +1 -1
  181. package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +6 -10
@@ -46,7 +46,7 @@ import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/
46
46
  import { FolderThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService';
47
47
  import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
48
48
  import { fillEditorsDragData } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/dnd';
49
- import { ResourceContextKey } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
49
+ import { StaticResourceContextKey } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
50
50
  import { SIDE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
51
51
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
52
52
  import { IPreferencesService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/preferences/common/preferences.service';
@@ -139,7 +139,7 @@ let AbstractChatAttachmentWidget = class AbstractChatAttachmentWidget extends Di
139
139
  const clearButton = ( new Button(this.element, {
140
140
  supportIcons: true,
141
141
  hoverDelegate: createInstantHoverDelegate(),
142
- title: ( localize(5325, "Remove from context"))
142
+ title: ( localize(5390, "Remove from context"))
143
143
  }));
144
144
  clearButton.element.tabIndex = -1;
145
145
  clearButton.icon = Codicon.close;
@@ -230,14 +230,14 @@ let FileAttachmentWidget = class FileAttachmentWidget extends AbstractChatAttach
230
230
  const fileDirname = dirname(resource.path);
231
231
  const friendlyName = `${fileBasename} ${fileDirname}`;
232
232
  let ariaLabel = range ? ( localize(
233
- 5326,
233
+ 5391,
234
234
  "Attached file, {0}, line {1} to line {2}",
235
235
  friendlyName,
236
236
  range.startLineNumber,
237
237
  range.endLineNumber
238
- )) : ( localize(5327, "Attached file, {0}", friendlyName));
238
+ )) : ( localize(5392, "Attached file, {0}", friendlyName));
239
239
  if (attachment.omittedState === OmittedState.Full) {
240
- ariaLabel = ( localize(5328, "Omitted this file: {0}", attachment.name));
240
+ ariaLabel = ( localize(5393, "Omitted this file: {0}", attachment.name));
241
241
  this.renderOmittedWarning(friendlyName, ariaLabel);
242
242
  } else {
243
243
  const fileOptions = {
@@ -275,7 +275,7 @@ let FileAttachmentWidget = class FileAttachmentWidget extends AbstractChatAttach
275
275
  hoverElement.setAttribute("aria-label", ariaLabel);
276
276
  this.element.classList.add("warning");
277
277
  hoverElement.textContent = ( localize(
278
- 5329,
278
+ 5394,
279
279
  "{0} does not support this file type.",
280
280
  this.currentLanguageModel ? this.languageModelsService.lookupLanguageModel(this.currentLanguageModel.identifier)?.name : this.currentLanguageModel ?? "This model"
281
281
  ));
@@ -312,7 +312,7 @@ let TerminalCommandAttachmentWidget = class TerminalCommandAttachmentWidget exte
312
312
  );
313
313
  this.hoverService = hoverService;
314
314
  this.terminalService = terminalService;
315
- const ariaLabel = ( localize(5330, "Terminal command, {0}", attachment.command));
315
+ const ariaLabel = ( localize(5395, "Terminal command, {0}", attachment.command));
316
316
  const clickHandler = () => this.openResource(attachment.resource, {
317
317
  editorOptions: {
318
318
  preserveFocus: true
@@ -365,16 +365,16 @@ function getHoverContent(ariaLabel, attachment) {
365
365
  const hoverElement = $("div.chat-attached-context-hover");
366
366
  hoverElement.setAttribute("aria-label", ariaLabel);
367
367
  const commandTitle = $("div", {}, typeof attachment.exitCode === "number" ? ( localize(
368
- 5331,
368
+ 5396,
369
369
  "Command: {0}, exit code: {1}",
370
370
  attachment.command,
371
371
  attachment.exitCode
372
- )) : ( localize(5332, "Command")));
372
+ )) : ( localize(5397, "Command")));
373
373
  commandTitle.classList.add("attachment-additional-info");
374
374
  const commandBlock = $("pre.chat-terminal-command-block");
375
375
  hoverElement.append(commandTitle, commandBlock);
376
376
  if (attachment.output && attachment.output.trim().length > 0) {
377
- const outputTitle = $("div", {}, ( localize(5333, "Output:")));
377
+ const outputTitle = $("div", {}, ( localize(5398, "Output:")));
378
378
  outputTitle.classList.add("attachment-additional-info");
379
379
  const outputBlock = $("pre.chat-terminal-command-output");
380
380
  const fullOutputLines = attachment.output.split("\n");
@@ -436,11 +436,11 @@ let ImageAttachmentWidget = class ImageAttachmentWidget extends AbstractChatAtta
436
436
  this.chatEntitlementService = chatEntitlementService;
437
437
  let ariaLabel;
438
438
  if (attachment.omittedState === OmittedState.Full) {
439
- ariaLabel = ( localize(5334, "Omitted this image: {0}", attachment.name));
439
+ ariaLabel = ( localize(5399, "Omitted this image: {0}", attachment.name));
440
440
  } else if (attachment.omittedState === OmittedState.Partial) {
441
- ariaLabel = ( localize(5335, "Partially omitted this image: {0}", attachment.name));
441
+ ariaLabel = ( localize(5400, "Partially omitted this image: {0}", attachment.name));
442
442
  } else {
443
- ariaLabel = ( localize(5336, "Attached image, {0}", attachment.name));
443
+ ariaLabel = ( localize(5401, "Attached image, {0}", attachment.name));
444
444
  }
445
445
  const ref = attachment.references?.[0]?.reference;
446
446
  resource = ref && URI.isUri(ref) ? ref : undefined;
@@ -515,7 +515,7 @@ function createImageElements(
515
515
  hoverElement.setAttribute("aria-label", ariaLabel);
516
516
  if (previewFeaturesDisabled) {
517
517
  element.classList.add("warning");
518
- hoverElement.textContent = ( localize(5337, "Vision is disabled by your organization."));
518
+ hoverElement.textContent = ( localize(5402, "Vision is disabled by your organization."));
519
519
  disposable.add(hoverService.setupDelayedHover(element, {
520
520
  content: hoverElement,
521
521
  style: HoverStyle.Pointer
@@ -523,7 +523,7 @@ function createImageElements(
523
523
  } else if ((!supportsVision && currentLanguageModel) || omittedState === OmittedState.Full) {
524
524
  element.classList.add("warning");
525
525
  hoverElement.textContent = ( localize(
526
- 5338,
526
+ 5403,
527
527
  "{0} does not support images.",
528
528
  currentLanguageModelName ?? "This model"
529
529
  ));
@@ -559,7 +559,7 @@ function createImageElements(
559
559
  const urlContainer = $(
560
560
  "a.chat-attached-context-url",
561
561
  {},
562
- omittedState === OmittedState.Partial ? ( localize(5339, "This GIF was partially omitted - current frame will be sent.")) : fullName
562
+ omittedState === OmittedState.Partial ? ( localize(5404, "This GIF was partially omitted - current frame will be sent.")) : fullName
563
563
  );
564
564
  const separator = $("div.chat-attached-context-url-separator");
565
565
  disposable.add(addDisposableListener(urlContainer, "click", () => clickHandler()));
@@ -608,7 +608,7 @@ let PasteAttachmentWidget = class PasteAttachmentWidget extends AbstractChatAtta
608
608
  );
609
609
  this.hoverService = hoverService;
610
610
  this.instantiationService = instantiationService;
611
- const ariaLabel = ( localize(5340, "Attached context, {0}", attachment.name));
611
+ const ariaLabel = ( localize(5405, "Attached context, {0}", attachment.name));
612
612
  this.element.ariaLabel = ariaLabel;
613
613
  const classNames = ["file-icon", `${attachment.language}-lang-file-icon`];
614
614
  let resource;
@@ -701,7 +701,7 @@ let DefaultChatAttachmentWidget = class DefaultChatAttachmentWidget extends Abst
701
701
  const withIcon = attachment.icon?.id ? `$(${attachment.icon.id})\u00A0${attachmentLabel}` : attachmentLabel;
702
702
  this.label.setLabel(withIcon, correspondingContentReference?.options?.status?.description);
703
703
  }
704
- this.element.ariaLabel = ( localize(5340, "Attached context, {0}", attachment.name));
704
+ this.element.ariaLabel = ( localize(5405, "Attached context, {0}", attachment.name));
705
705
  if (attachment.kind === "diagnostic") {
706
706
  if (attachment.filterUri) {
707
707
  resource = attachment.filterUri ? URI.revive(attachment.filterUri) : undefined;
@@ -733,6 +733,18 @@ let DefaultChatAttachmentWidget = class DefaultChatAttachmentWidget extends Abst
733
733
  await chatContextService.executeChatContextItemCommand(contextItemHandle);
734
734
  }));
735
735
  }
736
+ if (attachment.kind === "debugEvents") {
737
+ this.element.style.cursor = "pointer";
738
+ this._register(addDisposableListener(this.element, EventType.CLICK, () => {
739
+ const d = ( new Date(attachment.snapshotTime));
740
+ const filter = `before:${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}T${String(d.getHours()).padStart(2, "0")}:${String(d.getMinutes()).padStart(2, "0")}:${String(d.getSeconds()).padStart(2, "0")}`;
741
+ this.commandService.executeCommand(
742
+ "workbench.action.chat.openAgentDebugPanelForSession",
743
+ attachment.sessionResource,
744
+ filter
745
+ );
746
+ }));
747
+ }
736
748
  if ((isStringVariableEntry(attachment) || attachment.kind === "generic") && attachment.tooltip) {
737
749
  this._setupTooltipHover(attachment.tooltip);
738
750
  }
@@ -790,8 +802,8 @@ let PromptFileAttachmentWidget = class PromptFileAttachmentWidget extends Abstra
790
802
  const fileDirname = dirname(resource.path);
791
803
  const friendlyName = `${fileBasename} ${fileDirname}`;
792
804
  const isPrompt = attachment.id.startsWith(PromptFileVariableKind.PromptFile);
793
- const ariaLabel = isPrompt ? ( localize(5341, "Prompt file, {0}", friendlyName)) : ( localize(5342, "Instructions attachment, {0}", friendlyName));
794
- const typeLabel = isPrompt ? ( localize(5343, "Prompt")) : ( localize(5344, "Instructions"));
805
+ const ariaLabel = isPrompt ? ( localize(5406, "Prompt file, {0}", friendlyName)) : ( localize(5407, "Instructions attachment, {0}", friendlyName));
806
+ const typeLabel = isPrompt ? ( localize(5408, "Prompt")) : ( localize(5409, "Instructions"));
795
807
  const title = this.labelService.getUriLabel(resource) + (attachment.originLabel ? `\n${attachment.originLabel}` : "");
796
808
  this.element.classList.remove("warning", "error");
797
809
  const fileWithoutExtension = getCleanPromptName(resource);
@@ -851,7 +863,7 @@ let PromptTextAttachmentWidget = class PromptTextAttachmentWidget extends Abstra
851
863
  })
852
864
  );
853
865
  }
854
- this.label.setLabel(( localize(5345, "Additional Instructions")), undefined, undefined);
866
+ this.label.setLabel(( localize(5410, "Additional Instructions")), undefined, undefined);
855
867
  this._register(hoverService.setupDelayedHover(this.element, {
856
868
  ...commonHoverOptions,
857
869
  content: attachment.value
@@ -898,18 +910,18 @@ let ToolSetOrToolItemAttachmentWidget = class ToolSetOrToolItemAttachmentWidget
898
910
  }
899
911
  this.label.setLabel(`$(${icon.id})\u00A0${name}`, undefined);
900
912
  this.element.style.cursor = "pointer";
901
- this.element.ariaLabel = ( localize(5340, "Attached context, {0}", name));
913
+ this.element.ariaLabel = ( localize(5405, "Attached context, {0}", name));
902
914
  let hoverContent;
903
915
  if (isToolSet(toolOrToolSet)) {
904
916
  hoverContent = ( localize(
905
- 5346,
917
+ 5411,
906
918
  "{0} - {1}",
907
919
  toolOrToolSet.description ?? toolOrToolSet.referenceName,
908
920
  toolOrToolSet.source.label
909
921
  ));
910
922
  } else if (toolOrToolSet) {
911
923
  hoverContent = ( localize(
912
- 5347,
924
+ 5412,
913
925
  "{0} - {1}",
914
926
  toolOrToolSet.userDescription ?? toolOrToolSet.modelDescription,
915
927
  toolOrToolSet.source.label
@@ -982,7 +994,7 @@ let NotebookCellOutputChatAttachmentWidget = class NotebookCellOutputChatAttachm
982
994
  this.addResourceOpenHandlers(resource, undefined);
983
995
  }
984
996
  getAriaLabel(attachment) {
985
- return localize(5348, "Attached Notebook output, {0}", attachment.name);
997
+ return localize(5413, "Attached Notebook output, {0}", attachment.name);
986
998
  }
987
999
  renderErrorOutput(resource, attachment) {
988
1000
  const attachmentLabel = attachment.name;
@@ -1010,9 +1022,9 @@ let NotebookCellOutputChatAttachmentWidget = class NotebookCellOutputChatAttachm
1010
1022
  renderImageOutput(resource, attachment) {
1011
1023
  let ariaLabel;
1012
1024
  if (attachment.omittedState === OmittedState.Full) {
1013
- ariaLabel = ( localize(5349, "Omitted this Notebook ouput: {0}", attachment.name));
1025
+ ariaLabel = ( localize(5414, "Omitted this Notebook ouput: {0}", attachment.name));
1014
1026
  } else if (attachment.omittedState === OmittedState.Partial) {
1015
- ariaLabel = ( localize(5350, "Partially omitted this Notebook output: {0}", attachment.name));
1027
+ ariaLabel = ( localize(5415, "Partially omitted this Notebook output: {0}", attachment.name));
1016
1028
  } else {
1017
1029
  ariaLabel = this.getAriaLabel(attachment);
1018
1030
  }
@@ -1081,14 +1093,14 @@ let ElementChatAttachmentWidget = class ElementChatAttachmentWidget extends Abst
1081
1093
  );
1082
1094
  this.editorService = editorService;
1083
1095
  this.hoverService = hoverService;
1084
- const ariaLabel = ( localize(5351, "Attached element, {0}", attachment.name));
1096
+ const ariaLabel = ( localize(5416, "Attached element, {0}", attachment.name));
1085
1097
  this.element.ariaLabel = ariaLabel;
1086
1098
  this.element.style.position = "relative";
1087
1099
  this.element.style.cursor = "pointer";
1088
1100
  const attachmentLabel = attachment.name;
1089
1101
  const withIcon = attachment.icon?.id ? `$(${attachment.icon.id})\u00A0${attachmentLabel}` : attachmentLabel;
1090
1102
  this.label.setLabel(withIcon, undefined, {
1091
- title: ( localize(5352, "Click to view the contents of: {0}", attachmentLabel))
1103
+ title: ( localize(5417, "Click to view the contents of: {0}", attachmentLabel))
1092
1104
  });
1093
1105
  this._register(this.hoverService.setupDelayedHover(
1094
1106
  this.element,
@@ -1108,7 +1120,7 @@ let ElementChatAttachmentWidget = class ElementChatAttachmentWidget extends Abst
1108
1120
  const innerScrollables = [];
1109
1121
  {
1110
1122
  const section = $("div.chat-element-hover-section");
1111
- const header = $("div.chat-element-hover-header", {}, ( localize(5353, "ELEMENT")));
1123
+ const header = $("div.chat-element-hover-header", {}, ( localize(5418, "ELEMENT")));
1112
1124
  section.appendChild(header);
1113
1125
  const elementPre = $("pre.chat-element-hover-code");
1114
1126
  const elementCode = $("code");
@@ -1126,7 +1138,7 @@ let ElementChatAttachmentWidget = class ElementChatAttachmentWidget extends Abst
1126
1138
  const computedStyleEntries = this.getComputedStyleEntriesForHover(attachment.computedStyles);
1127
1139
  if (computedStyleEntries.length > 0) {
1128
1140
  const section = $("div.chat-element-hover-section");
1129
- const header = $("div.chat-element-hover-header", {}, ( localize(5354, "KEY COMPUTED STYLES")));
1141
+ const header = $("div.chat-element-hover-header", {}, ( localize(5419, "KEY COMPUTED STYLES")));
1130
1142
  section.appendChild(header);
1131
1143
  const table = $("div.chat-element-hover-table");
1132
1144
  for (const [name, value] of computedStyleEntries) {
@@ -1145,7 +1157,7 @@ let ElementChatAttachmentWidget = class ElementChatAttachmentWidget extends Abst
1145
1157
  section.appendChild(table);
1146
1158
  const showMoreButton = $("button.chat-element-hover-show-more", {
1147
1159
  type: "button"
1148
- }, ( localize(5355, "Show More...")));
1160
+ }, ( localize(5420, "Show More...")));
1149
1161
  this._register(
1150
1162
  addDisposableListener(showMoreButton, EventType.CLICK, async e => {
1151
1163
  EventHelper.stop(e, true);
@@ -1157,7 +1169,7 @@ let ElementChatAttachmentWidget = class ElementChatAttachmentWidget extends Abst
1157
1169
  }
1158
1170
  if (attachment.ancestors && attachment.ancestors.length > 1) {
1159
1171
  const section = $("div.chat-element-hover-section");
1160
- const header = $("div.chat-element-hover-header", {}, ( localize(5356, "HTML PATH")));
1172
+ const header = $("div.chat-element-hover-header", {}, ( localize(5421, "HTML PATH")));
1161
1173
  section.appendChild(header);
1162
1174
  const lines = [];
1163
1175
  for (let i = 0; i < attachment.ancestors.length; i++) {
@@ -1180,7 +1192,7 @@ let ElementChatAttachmentWidget = class ElementChatAttachmentWidget extends Abst
1180
1192
  }
1181
1193
  if (attachment.attributes && ( Object.keys(attachment.attributes)).length > 0) {
1182
1194
  const section = $("div.chat-element-hover-section");
1183
- const header = $("div.chat-element-hover-header", {}, ( localize(5357, "ATTRIBUTES")));
1195
+ const header = $("div.chat-element-hover-header", {}, ( localize(5422, "ATTRIBUTES")));
1184
1196
  section.appendChild(header);
1185
1197
  const table = $("div.chat-element-hover-table");
1186
1198
  for (const [name, value] of Object.entries(attachment.attributes)) {
@@ -1194,7 +1206,7 @@ let ElementChatAttachmentWidget = class ElementChatAttachmentWidget extends Abst
1194
1206
  }
1195
1207
  if (attachment.dimensions) {
1196
1208
  const section = $("div.chat-element-hover-section");
1197
- const header = $("div.chat-element-hover-header", {}, ( localize(5358, "POSITION & SIZE")));
1209
+ const header = $("div.chat-element-hover-header", {}, ( localize(5423, "POSITION & SIZE")));
1198
1210
  section.appendChild(header);
1199
1211
  const table = $("div.chat-element-hover-table");
1200
1212
  const dims = [
@@ -1214,7 +1226,7 @@ let ElementChatAttachmentWidget = class ElementChatAttachmentWidget extends Abst
1214
1226
  }
1215
1227
  if (attachment.innerText) {
1216
1228
  const section = $("div.chat-element-hover-section");
1217
- const header = $("div.chat-element-hover-header", {}, ( localize(5359, "INNER TEXT")));
1229
+ const header = $("div.chat-element-hover-header", {}, ( localize(5424, "INNER TEXT")));
1218
1230
  section.appendChild(header);
1219
1231
  section.appendChild($("div.chat-element-hover-text", {}, attachment.innerText));
1220
1232
  scrollableContent.appendChild(section);
@@ -1360,7 +1372,7 @@ let SCMHistoryItemAttachmentWidget = class SCMHistoryItemAttachmentWidget extend
1360
1372
  );
1361
1373
  this.label.setLabel(attachment.name, undefined);
1362
1374
  this.element.style.cursor = "pointer";
1363
- this.element.ariaLabel = ( localize(5340, "Attached context, {0}", attachment.name));
1375
+ this.element.ariaLabel = ( localize(5405, "Attached context, {0}", attachment.name));
1364
1376
  const {
1365
1377
  content,
1366
1378
  disposables
@@ -1422,7 +1434,7 @@ let SCMHistoryItemChangeAttachmentWidget = class SCMHistoryItemChangeAttachmentW
1422
1434
  hidePath: true,
1423
1435
  nameSuffix
1424
1436
  });
1425
- this.element.ariaLabel = ( localize(5340, "Attached context, {0}", attachment.name));
1437
+ this.element.ariaLabel = ( localize(5405, "Attached context, {0}", attachment.name));
1426
1438
  const {
1427
1439
  content,
1428
1440
  disposables
@@ -1478,7 +1490,7 @@ let SCMHistoryItemChangeRangeAttachmentWidget = class SCMHistoryItemChangeRangeA
1478
1490
  hidePath: true,
1479
1491
  nameSuffix
1480
1492
  });
1481
- this.element.ariaLabel = ( localize(5340, "Attached context, {0}", attachment.name));
1493
+ this.element.ariaLabel = ( localize(5405, "Attached context, {0}", attachment.name));
1482
1494
  this.addResourceOpenHandlers(attachment.value, undefined);
1483
1495
  }
1484
1496
  async openResource(resource, options, isDirectory, range) {
@@ -1507,7 +1519,7 @@ function hookUpResourceAttachmentDragAndContextMenu(accessor, widget, resource)
1507
1519
  const instantiationService = accessor.get(IInstantiationService);
1508
1520
  const store = ( new DisposableStore());
1509
1521
  const scopedContextKeyService = store.add(contextKeyService.createScoped(widget));
1510
- store.add(setResourceContext(accessor, scopedContextKeyService, resource));
1522
+ setResourceContext(accessor, scopedContextKeyService, resource);
1511
1523
  widget.draggable = true;
1512
1524
  store.add(addDisposableListener(widget, "dragstart", e => {
1513
1525
  instantiationService.invokeFunction(accessor => fillEditorsDragData(accessor, [resource], e));
@@ -1545,9 +1557,7 @@ function hookUpSymbolAttachmentDragAndContextMenu(accessor, widget, parentContex
1545
1557
  }));
1546
1558
  const scopedContextKeyService = store.add(parentContextKeyService.createScoped(widget));
1547
1559
  chatAttachmentResourceContextKey.bindTo(scopedContextKeyService).set(( attachment.value.uri.toString()));
1548
- store.add(
1549
- setResourceContext(accessor, scopedContextKeyService, attachment.value.uri)
1550
- );
1560
+ setResourceContext(accessor, scopedContextKeyService, attachment.value.uri);
1551
1561
  let providerContexts;
1552
1562
  const ensureProviderContexts = () => {
1553
1563
  if (!providerContexts) {
@@ -1605,9 +1615,8 @@ function setResourceContext(accessor, scopedContextKeyService, resource) {
1605
1615
  const fileService = accessor.get(IFileService);
1606
1616
  const languageService = accessor.get(ILanguageService);
1607
1617
  const modelService = accessor.get(IModelService);
1608
- const resourceContextKey = ( new ResourceContextKey(scopedContextKeyService, fileService, languageService, modelService));
1618
+ const resourceContextKey = ( new StaticResourceContextKey(scopedContextKeyService, fileService, languageService, modelService));
1609
1619
  resourceContextKey.set(resource);
1610
- return resourceContextKey;
1611
1620
  }
1612
1621
  function addBasicContextMenu(accessor, widget, scopedContextKeyService, menuId, arg, updateContextKeys) {
1613
1622
  const contextMenuService = accessor.get(IContextMenuService);
@@ -1635,7 +1644,7 @@ function addBasicContextMenu(accessor, widget, scopedContextKeyService, menuId,
1635
1644
  const chatAttachmentResourceContextKey = ( new RawContextKey("chatAttachmentResource", undefined, {
1636
1645
  type: "URI",
1637
1646
  description: ( localize(
1638
- 5360,
1647
+ 5425,
1639
1648
  "The full value of the chat attachment resource, including scheme and path"
1640
1649
  ))
1641
1650
  }));
@@ -93,11 +93,11 @@ let ImplicitContextAttachmentWidget = class ImplicitContextAttachmentWidget exte
93
93
  contextNode.tabIndex = 0;
94
94
  contextNode.classList.toggle("disabled", !context.enabled);
95
95
  const file = context.uri;
96
- const attachmentTypeName = file?.scheme === Schemas.vscodeNotebookCell ? ( localize(5362, "cell")) : ( localize(5363, "file"));
96
+ const attachmentTypeName = file?.scheme === Schemas.vscodeNotebookCell ? ( localize(5427, "cell")) : ( localize(5428, "file"));
97
97
  const isSuggestedEnabled = this.configService.getValue("chat.implicitContext.suggestedContext");
98
98
  if (isSuggestedEnabled) {
99
99
  if (!isSelection) {
100
- const buttonMsg = context.enabled ? ( localize(5364, "Disable current {0} context", attachmentTypeName)) : "";
100
+ const buttonMsg = context.enabled ? ( localize(5429, "Disable current {0} context", attachmentTypeName)) : "";
101
101
  const toggleButton = this.renderDisposables.add(( new Button(contextNode, {
102
102
  supportIcons: true,
103
103
  title: buttonMsg
@@ -112,7 +112,7 @@ let ImplicitContextAttachmentWidget = class ImplicitContextAttachmentWidget exte
112
112
  context.enabled = false;
113
113
  }));
114
114
  } else {
115
- const pinButtonMsg = ( localize(5365, "Pin selection"));
115
+ const pinButtonMsg = ( localize(5430, "Pin selection"));
116
116
  const pinButton = this.renderDisposables.add(( new Button(contextNode, {
117
117
  supportIcons: true,
118
118
  title: pinButtonMsg
@@ -145,7 +145,7 @@ let ImplicitContextAttachmentWidget = class ImplicitContextAttachmentWidget exte
145
145
  })
146
146
  );
147
147
  } else {
148
- const buttonMsg = context.enabled ? ( localize(5364, "Disable current {0} context", attachmentTypeName)) : ( localize(5366, "Enable current {0} context", attachmentTypeName));
148
+ const buttonMsg = context.enabled ? ( localize(5429, "Disable current {0} context", attachmentTypeName)) : ( localize(5431, "Enable current {0} context", attachmentTypeName));
149
149
  const toggleButton = this.renderDisposables.add(( new Button(contextNode, {
150
150
  supportIcons: true,
151
151
  title: buttonMsg
@@ -169,7 +169,7 @@ let ImplicitContextAttachmentWidget = class ImplicitContextAttachmentWidget exte
169
169
  context.icon,
170
170
  context.value.resourceUri,
171
171
  markdownTooltip,
172
- ( localize(5367, "Current file context"))
172
+ ( localize(5432, "Current file context"))
173
173
  );
174
174
  } else {
175
175
  title = this.renderResource(context.value, context.isSelection, context.enabled, label, contextNode);
@@ -227,23 +227,23 @@ let ImplicitContextAttachmentWidget = class ImplicitContextAttachmentWidget exte
227
227
  renderResource(attachmentValue, isSelection, enabled, label, contextNode) {
228
228
  const file = URI.isUri(attachmentValue) ? attachmentValue : attachmentValue.uri;
229
229
  const range = URI.isUri(attachmentValue) || !isSelection ? undefined : attachmentValue.range;
230
- const attachmentTypeName = file.scheme === Schemas.vscodeNotebookCell ? ( localize(5362, "cell")) : ( localize(5363, "file"));
230
+ const attachmentTypeName = file.scheme === Schemas.vscodeNotebookCell ? ( localize(5427, "cell")) : ( localize(5428, "file"));
231
231
  const fileBasename = basename(file);
232
232
  const fileDirname = dirname(file);
233
233
  const friendlyName = `${fileBasename} ${fileDirname}`;
234
234
  const ariaLabel = range ? ( localize(
235
- 5368,
235
+ 5433,
236
236
  "Attached {0}, {1}, line {2} to line {3}",
237
237
  attachmentTypeName,
238
238
  friendlyName,
239
239
  range.startLineNumber,
240
240
  range.endLineNumber
241
- )) : ( localize(5369, "Attached {0}, {1}", attachmentTypeName, friendlyName));
241
+ )) : ( localize(5434, "Attached {0}, {1}", attachmentTypeName, friendlyName));
242
242
  const uriLabel = this.labelService.getUriLabel(file, {
243
243
  relative: true
244
244
  });
245
- const currentFile = ( localize(5370, "Current {0} context", attachmentTypeName));
246
- const inactive = ( localize(5371, "Enable current {0} context", attachmentTypeName));
245
+ const currentFile = ( localize(5435, "Current {0} context", attachmentTypeName));
246
+ const inactive = ( localize(5436, "Enable current {0} context", attachmentTypeName));
247
247
  const currentFileHint = enabled || isSelection ? currentFile : inactive;
248
248
  const title = `${currentFileHint}\n${uriLabel}`;
249
249
  label.setFile(file, {