@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
@@ -18,45 +18,45 @@ registerColor("agentStatusIndicator.background", {
18
18
  light: ( Color.black.transparent(0.05)),
19
19
  hcDark: null,
20
20
  hcLight: null
21
- }, ( localize(7222, "Background color of the agent status indicator in the titlebar.")));
21
+ }, ( localize(7407, "Background color of the agent status indicator in the titlebar.")));
22
22
  registerColor("chat.requestBorder", {
23
23
  dark: ( new Color(( new RGBA(255, 255, 255, 0.10)))),
24
24
  light: ( new Color(( new RGBA(0, 0, 0, 0.10)))),
25
25
  hcDark: contrastBorder,
26
26
  hcLight: contrastBorder
27
- }, ( localize(7223, "The border color of a chat request.")));
27
+ }, ( localize(7408, "The border color of a chat request.")));
28
28
  const chatRequestBackground = registerColor("chat.requestBackground", {
29
29
  dark: ( transparent(editorBackground, 0.62)),
30
30
  light: ( transparent(editorBackground, 0.62)),
31
31
  hcDark: editorWidgetBackground,
32
32
  hcLight: null
33
- }, ( localize(7224, "The background color of a chat request.")));
33
+ }, ( localize(7409, "The background color of a chat request.")));
34
34
  const chatSlashCommandBackground = registerColor("chat.slashCommandBackground", {
35
35
  dark: "#26477866",
36
36
  light: "#adceff7a",
37
37
  hcDark: Color.white,
38
38
  hcLight: badgeBackground
39
- }, ( localize(7225, "The background color of a chat slash command.")));
39
+ }, ( localize(7410, "The background color of a chat slash command.")));
40
40
  const chatSlashCommandForeground = registerColor("chat.slashCommandForeground", {
41
41
  dark: "#85b6ff",
42
42
  light: "#26569e",
43
43
  hcDark: Color.black,
44
44
  hcLight: badgeForeground
45
- }, ( localize(7226, "The foreground color of a chat slash command.")));
45
+ }, ( localize(7411, "The foreground color of a chat slash command.")));
46
46
  registerColor("chat.avatarBackground", {
47
47
  dark: "#1f1f1f",
48
48
  light: "#f2f2f2",
49
49
  hcDark: Color.black,
50
50
  hcLight: Color.white
51
- }, ( localize(7227, "The background color of a chat avatar.")));
52
- registerColor("chat.avatarForeground", foreground, ( localize(7228, "The foreground color of a chat avatar.")));
51
+ }, ( localize(7412, "The background color of a chat avatar.")));
52
+ registerColor("chat.avatarForeground", foreground, ( localize(7413, "The foreground color of a chat avatar.")));
53
53
  registerColor("chat.editedFileForeground", {
54
54
  light: "#895503",
55
55
  dark: "#E2C08D",
56
56
  hcDark: "#E2C08D",
57
57
  hcLight: "#895503"
58
58
  }, ( localize(
59
- 7229,
59
+ 7414,
60
60
  "The foreground color of a chat edited file in the edited file list."
61
61
  )));
62
62
  registerColor("chat.requestCodeBorder", {
@@ -64,42 +64,42 @@ registerColor("chat.requestCodeBorder", {
64
64
  light: "#0e639c40",
65
65
  hcDark: null,
66
66
  hcLight: null
67
- }, ( localize(7230, "Border color of code blocks within the chat request bubble.")), true);
67
+ }, ( localize(7415, "Border color of code blocks within the chat request bubble.")), true);
68
68
  registerColor("chat.requestBubbleBackground", {
69
69
  light: ( transparent(editorSelectionBackground, 0.3)),
70
70
  dark: ( transparent(editorSelectionBackground, 0.3)),
71
71
  hcDark: null,
72
72
  hcLight: null
73
- }, ( localize(7231, "Background color of the chat request bubble.")), true);
73
+ }, ( localize(7416, "Background color of the chat request bubble.")), true);
74
74
  registerColor("chat.requestBubbleHoverBackground", {
75
75
  dark: ( transparent(editorSelectionBackground, 0.6)),
76
76
  light: ( transparent(editorSelectionBackground, 0.6)),
77
77
  hcDark: null,
78
78
  hcLight: null
79
- }, ( localize(7232, "Background color of the chat request bubble on hover.")), true);
79
+ }, ( localize(7417, "Background color of the chat request bubble on hover.")), true);
80
80
  registerColor("chat.checkpointSeparator", {
81
81
  dark: "#585858",
82
82
  light: "#a9a9a9",
83
83
  hcDark: "#a9a9a9",
84
84
  hcLight: "#a5a5a5"
85
- }, ( localize(7233, "Chat checkpoint separator color.")));
85
+ }, ( localize(7418, "Chat checkpoint separator color.")));
86
86
  registerColor("chat.linesAddedForeground", {
87
87
  dark: "#54B054",
88
88
  light: "#107C10",
89
89
  hcDark: "#54B054",
90
90
  hcLight: "#107C10"
91
- }, ( localize(7234, "Foreground color of lines added in chat code block pill.")), true);
91
+ }, ( localize(7419, "Foreground color of lines added in chat code block pill.")), true);
92
92
  registerColor("chat.linesRemovedForeground", {
93
93
  dark: "#FC6A6A",
94
94
  light: "#BC2F32",
95
95
  hcDark: "#F48771",
96
96
  hcLight: "#B5200D"
97
- }, ( localize(7235, "Foreground color of lines removed in chat code block pill.")), true);
97
+ }, ( localize(7420, "Foreground color of lines removed in chat code block pill.")), true);
98
98
  registerColor("chat.thinkingShimmer", {
99
99
  dark: "#ffffff",
100
100
  light: "#000000",
101
101
  hcDark: "#ffffff",
102
102
  hcLight: "#000000"
103
- }, ( localize(7236, "Shimmer highlight for thinking/working labels.")), true);
103
+ }, ( localize(7421, "Shimmer highlight for thinking/working labels.")), true);
104
104
 
105
105
  export { chatRequestBackground, chatSlashCommandBackground, chatSlashCommandForeground };
@@ -6,8 +6,10 @@ import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/
6
6
  import { InlineChatInputWidget } from "./inlineChatOverlayWidget.js";
7
7
  import { IInlineChatSessionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service";
8
8
  import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
9
+ import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
9
10
  export declare class InlineChatAffordance extends Disposable {
10
11
  #private;
11
- constructor(editor: ICodeEditor, inputWidget: InlineChatInputWidget, instantiationService: IInstantiationService, configurationService: IConfigurationService, chatEntiteldService: IChatEntitlementService, inlineChatSessionService: IInlineChatSessionService, telemetryService: ITelemetryService);
12
+ constructor(editor: ICodeEditor, inputWidget: InlineChatInputWidget, instantiationService: IInstantiationService, configurationService: IConfigurationService, chatEntiteldService: IChatEntitlementService, inlineChatSessionService: IInlineChatSessionService, telemetryService: ITelemetryService, contextKeyService: IContextKeyService);
13
+ dismiss(): void;
12
14
  showMenuAtSelection(placeholder: string): Promise<void>;
13
15
  }
@@ -5,7 +5,7 @@ import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/in
5
5
  import { observableCodeEditor } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/observableCodeEditor';
6
6
  import { ScrollType } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorCommon';
7
7
  import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
8
- import { InlineChatConfigKeys } from '../common/inlineChat.js';
8
+ import { InlineChatConfigKeys, CTX_INLINE_CHAT_AFFORDANCE_VISIBLE } from '../common/inlineChat.js';
9
9
  import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
10
10
  import { observableConfigValue } from '@codingame/monaco-vscode-api/vscode/vs/platform/observable/common/platformObservableUtils';
11
11
  import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
@@ -19,6 +19,7 @@ import { CodeActionController } from '@codingame/monaco-vscode-api/vscode/vs/edi
19
19
  import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
20
20
  import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
21
21
  import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
22
+ import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
22
23
  import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
23
24
  import { debouncedObservable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/utils/utils';
24
25
  import { runOnChange } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/utils/runOnChange';
@@ -32,6 +33,7 @@ let InlineChatAffordance = class InlineChatAffordance extends Disposable {
32
33
  #inputWidget;
33
34
  #instantiationService;
34
35
  #menuData = observableValue(this, undefined);
36
+ #selectionData = observableValue(this, undefined);
35
37
  constructor(
36
38
  editor,
37
39
  inputWidget,
@@ -39,7 +41,8 @@ let InlineChatAffordance = class InlineChatAffordance extends Disposable {
39
41
  configurationService,
40
42
  chatEntiteldService,
41
43
  inlineChatSessionService,
42
- telemetryService
44
+ telemetryService,
45
+ contextKeyService
43
46
  ) {
44
47
  super();
45
48
  this.#editor = editor;
@@ -48,7 +51,11 @@ let InlineChatAffordance = class InlineChatAffordance extends Disposable {
48
51
  const editorObs = observableCodeEditor(this.#editor);
49
52
  const affordance = observableConfigValue(InlineChatConfigKeys.Affordance, "off", configurationService);
50
53
  const debouncedSelection = debouncedObservable(editorObs.cursorSelection, 500);
51
- const selectionData = observableValue(this, undefined);
54
+ const selectionData = this.#selectionData;
55
+ const ctxAffordanceVisible = CTX_INLINE_CHAT_AFFORDANCE_VISIBLE.bindTo(contextKeyService);
56
+ this._store.add({
57
+ dispose: () => ctxAffordanceVisible.reset()
58
+ });
52
59
  let explicitSelection = false;
53
60
  let affordanceId;
54
61
  this._store.add(runOnChange(editorObs.selections, (value, _prev, events) => {
@@ -93,6 +100,16 @@ let InlineChatAffordance = class InlineChatAffordance extends Disposable {
93
100
  this._store.add(this.#editor.onContextMenu(() => {
94
101
  selectionData.set(undefined, undefined);
95
102
  }));
103
+ this._store.add(autorun(r => {
104
+ if (!editorObs.isFocused.read(r)) {
105
+ selectionData.set(undefined, undefined);
106
+ }
107
+ }));
108
+ this._store.add(autorun(r => {
109
+ const sel = selectionData.read(r);
110
+ const mode = affordance.read(r);
111
+ ctxAffordanceVisible.set(sel !== undefined && (mode === "editor" || mode === "gutter"));
112
+ }));
96
113
  const gutterAffordance = this._store.add(this.#instantiationService.createInstance(
97
114
  InlineChatGutterAffordance,
98
115
  editorObs,
@@ -141,6 +158,9 @@ let InlineChatAffordance = class InlineChatAffordance extends Disposable {
141
158
  }
142
159
  }));
143
160
  }
161
+ dismiss() {
162
+ this.#selectionData.set(undefined, undefined);
163
+ }
144
164
  async showMenuAtSelection(placeholder) {
145
165
  assertType(this.#editor.hasModel());
146
166
  const direction = this.#editor.getSelection().getDirection();
@@ -159,6 +179,6 @@ let InlineChatAffordance = class InlineChatAffordance extends Disposable {
159
179
  await waitForState(this.#inputWidget.position, pos => pos === null);
160
180
  }
161
181
  };
162
- InlineChatAffordance = ( __decorate([( __param(2, IInstantiationService)), ( __param(3, IConfigurationService)), ( __param(4, IChatEntitlementService)), ( __param(5, IInlineChatSessionService)), ( __param(6, ITelemetryService))], InlineChatAffordance));
182
+ InlineChatAffordance = ( __decorate([( __param(2, IInstantiationService)), ( __param(3, IConfigurationService)), ( __param(4, IChatEntitlementService)), ( __param(5, IInlineChatSessionService)), ( __param(6, ITelemetryService)), ( __param(7, IContextKeyService))], InlineChatAffordance));
163
183
 
164
184
  export { InlineChatAffordance };
@@ -273,7 +273,7 @@ let InlineChatController = class InlineChatController {
273
273
  }
274
274
  }));
275
275
  const defaultPlaceholderObs = ( visibleSessionObs.map((session, r) => {
276
- return session?.initialSelection.isEmpty() ? ( localize(9472, "Generate code")) : ( localize(9473, "Modify selected code"));
276
+ return session?.initialSelection.isEmpty() ? ( localize(9658, "Generate code")) : ( localize(9659, "Modify selected code"));
277
277
  }));
278
278
  this._store.add(autorun(r => {
279
279
  const session = visibleSessionObs.read(r);
@@ -379,7 +379,7 @@ let InlineChatController = class InlineChatController {
379
379
  if (lastProgress) {
380
380
  placeholder = renderAsPlaintext(lastProgress.content);
381
381
  }
382
- this._zone.rawValue?.widget.chatWidget.setInputPlaceholder(placeholder || ( localize(9474, "Working...")));
382
+ this._zone.rawValue?.widget.chatWidget.setInputPlaceholder(placeholder || ( localize(9660, "Working...")));
383
383
  }
384
384
  }));
385
385
  this._store.add(autorun(r => {
@@ -450,7 +450,7 @@ let InlineChatController = class InlineChatController {
450
450
  }
451
451
  if (entries.length > 0) {
452
452
  this._zone.value.widget.chatWidget.attachmentModel.addContext(...entries);
453
- const msg = entries.length > 1 ? ( localize(9475, "Fix the attached problems")) : ( localize(9476, "Fix the attached problem"));
453
+ const msg = entries.length > 1 ? ( localize(9661, "Fix the attached problems")) : ( localize(9662, "Fix the attached problem"));
454
454
  this._zone.value.widget.chatWidget.input.setValue(msg, true);
455
455
  arg.message = msg;
456
456
  this._zone.value.widget.chatWidget.inputEditor.setSelection(( new Selection(1, 1, Number.MAX_SAFE_INTEGER, 1)));
@@ -345,7 +345,7 @@ let InlineChatSessionOverlayWidget = class InlineChatSessionOverlayWidget extend
345
345
  const response = chatModel.lastRequestObs.read(r)?.response;
346
346
  if (!response) {
347
347
  return {
348
- message: ( localize(9479, "Working...")),
348
+ message: ( localize(9665, "Working...")),
349
349
  icon: ThemeIcon.modify(Codicon.loading, "spin")
350
350
  };
351
351
  }
@@ -353,20 +353,20 @@ let InlineChatSessionOverlayWidget = class InlineChatSessionOverlayWidget extend
353
353
  const result = response.result;
354
354
  if (result?.errorDetails) {
355
355
  return {
356
- message: ( localize(9480, "Sorry, your request failed")),
356
+ message: ( localize(9666, "Sorry, your request failed")),
357
357
  icon: Codicon.error
358
358
  };
359
359
  }
360
360
  const changes = entry.read(r)?.changesCount.read(r) ?? 0;
361
361
  return {
362
- message: changes === 0 ? ( localize(9481, "Done")) : changes === 1 ? ( localize(9482, "Done, 1 change")) : ( localize(9483, "Done, {0} changes", changes)),
362
+ message: changes === 0 ? ( localize(9667, "Done")) : changes === 1 ? ( localize(9668, "Done, 1 change")) : ( localize(9669, "Done, {0} changes", changes)),
363
363
  icon: Codicon.check
364
364
  };
365
365
  }
366
366
  const pendingConfirmation = response.isPendingConfirmation.read(r);
367
367
  if (pendingConfirmation) {
368
368
  return {
369
- message: ( localize(9484, "Sorry, but an expected error happened")),
369
+ message: ( localize(9670, "Sorry, but an expected error happened")),
370
370
  icon: Codicon.error
371
371
  };
372
372
  }
@@ -385,7 +385,7 @@ let InlineChatSessionOverlayWidget = class InlineChatSessionOverlayWidget extend
385
385
  };
386
386
  } else {
387
387
  return {
388
- message: ( localize(9479, "Working...")),
388
+ message: ( localize(9665, "Working...")),
389
389
  icon: ThemeIcon.modify(Codicon.loading, "spin")
390
390
  };
391
391
  }
@@ -248,7 +248,7 @@ let InlineChatWidget = class InlineChatWidget {
248
248
  );
249
249
  this._store.add(this._chatService.onDidPerformUserAction(e => {
250
250
  if (isEqual(e.sessionResource, this._chatWidget.viewModel?.model.sessionResource) && e.action.kind === "vote") {
251
- this.updateStatus(( localize(9493, "Thank you for your feedback!")), {
251
+ this.updateStatus(( localize(9679, "Thank you for your feedback!")), {
252
252
  resetAfter: 1250
253
253
  });
254
254
  }
@@ -261,11 +261,11 @@ let InlineChatWidget = class InlineChatWidget {
261
261
  if (this._configurationService.getValue(AccessibilityVerbositySettingId.InlineChat)) {
262
262
  const kbLabel = this._keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
263
263
  label = kbLabel ? ( localize(
264
- 9494,
264
+ 9680,
265
265
  "Inline Chat Input, Use {0} for Inline Chat Accessibility Help.",
266
266
  kbLabel
267
267
  )) : ( localize(
268
- 9495,
268
+ 9681,
269
269
  "Inline Chat Input, Run the Inline Chat Accessibility Help command for more information."
270
270
  ));
271
271
  }
@@ -286,7 +286,7 @@ let InlineChatWidget = class InlineChatWidget {
286
286
  this._elements.disclaimerLabel.classList.toggle("hidden", !showDisclaimer);
287
287
  if (showDisclaimer) {
288
288
  const renderedMarkdown = disposables.add(this._markdownRendererService.render(( new MarkdownString(( localize(
289
- 9496,
289
+ 9682,
290
290
  "By continuing with {0} Copilot, you agree to {1}'s [Terms]({2}) and [Privacy Statement]({3})",
291
291
  product.defaultChatAgent?.provider?.default?.name ?? "",
292
292
  product.defaultChatAgent?.provider?.default?.name ?? "",
@@ -495,7 +495,7 @@ let InlineChatWidget = class InlineChatWidget {
495
495
  }
496
496
  };
497
497
  InlineChatWidget = ( __decorate([( __param(2, IInstantiationService)), ( __param(3, IContextKeyService)), ( __param(4, IKeybindingService)), ( __param(5, IAccessibilityService)), ( __param(6, IConfigurationService)), ( __param(7, IAccessibleViewService)), ( __param(8, ITextModelService)), ( __param(9, IChatService)), ( __param(10, IHoverService)), ( __param(11, IChatEntitlementService)), ( __param(12, IMarkdownRendererService))], InlineChatWidget));
498
- const defaultAriaLabel = ( localize(9497, "Inline Chat Input"));
498
+ const defaultAriaLabel = ( localize(9683, "Inline Chat Input"));
499
499
  let EditorBasedInlineChatWidget = class EditorBasedInlineChatWidget extends InlineChatWidget {
500
500
  constructor(
501
501
  location,
@@ -240,7 +240,7 @@ let InlineChatZoneWidget = class InlineChatZoneWidget extends ZoneWidget {
240
240
  this._ctxCursorPosition.reset();
241
241
  this.widget.chatWidget.setVisible(false);
242
242
  super.hide();
243
- status(( localize(9498, "Closed inline chat widget")));
243
+ status(( localize(9684, "Closed inline chat widget")));
244
244
  scrollState.restore(this.editor);
245
245
  }
246
246
  };
@@ -6,9 +6,9 @@
6
6
 
7
7
  .monaco-workbench .inline-chat {
8
8
  color: inherit;
9
- border-radius: 4px;
9
+ border-radius: var(--vscode-cornerRadius-large);
10
10
  border: 1px solid var(--vscode-inlineChat-border);
11
- box-shadow: 0 2px 4px 0 var(--vscode-widget-shadow);
11
+ box-shadow: var(--vscode-shadow-lg);
12
12
  background: var(--vscode-inlineChat-background);
13
13
  padding-top: 3px;
14
14
  position: relative;
@@ -9,7 +9,7 @@
9
9
  border-radius: 8px;
10
10
  display: flex;
11
11
  align-items: center;
12
- box-shadow: 0 4px 8px var(--vscode-widget-shadow);
12
+ box-shadow: var(--vscode-shadow-lg);
13
13
  cursor: pointer;
14
14
  min-width: var(--vscode-inline-chat-affordance-height);
15
15
  min-height: var(--vscode-inline-chat-affordance-height);
@@ -8,8 +8,8 @@
8
8
  .inline-chat-gutter-menu {
9
9
  background: var(--vscode-panel-background);
10
10
  border: 1px solid var(--vscode-menu-border, var(--vscode-widget-border));
11
- border-radius: 8px;
12
- box-shadow: 0 2px 8px var(--vscode-widget-shadow);
11
+ border-radius: var(--vscode-cornerRadius-large);
12
+ box-shadow: var(--vscode-shadow-lg);
13
13
  z-index: 100;
14
14
  }
15
15
 
@@ -108,7 +108,7 @@
108
108
  justify-content: center;
109
109
  gap: 4px;
110
110
  z-index: 10;
111
- box-shadow: 0 2px 8px var(--vscode-widget-shadow);
111
+ box-shadow: var(--vscode-shadow-lg);
112
112
  overflow: hidden;
113
113
  }
114
114
 
@@ -2,7 +2,6 @@ import { MenuId } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/
2
2
  import { RawContextKey } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey";
3
3
  export declare enum InlineChatConfigKeys {
4
4
  FinishOnType = "inlineChat.finishOnType",
5
- HoldToSpeech = "inlineChat.holdToSpeech",
6
5
  /** @deprecated do not read on client */
7
6
  EnableV2 = "inlineChat.enableV2",
8
7
  notebookAgent = "inlineChat.notebookAgent",
@@ -39,6 +38,7 @@ export declare const CTX_INLINE_CHAT_REQUEST_IN_PROGRESS: RawContextKey<boolean>
39
38
  export declare const CTX_INLINE_CHAT_RESPONSE_TYPE: RawContextKey<InlineChatResponseType>;
40
39
  export declare const CTX_INLINE_CHAT_FILE_BELONGS_TO_CHAT: RawContextKey<boolean>;
41
40
  export declare const CTX_INLINE_CHAT_PENDING_CONFIRMATION: RawContextKey<boolean>;
41
+ export declare const CTX_INLINE_CHAT_AFFORDANCE_VISIBLE: RawContextKey<boolean>;
42
42
  export declare const CTX_INLINE_CHAT_V1_ENABLED: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
43
43
  export declare const CTX_INLINE_CHAT_V2_ENABLED: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
44
44
  export declare const CTX_HOVER_MODE: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression;
@@ -20,7 +20,6 @@ import { NOTEBOOK_IS_ACTIVE_EDITOR } from '@codingame/monaco-vscode-api/vscode/v
20
20
  var InlineChatConfigKeys;
21
21
  (function(InlineChatConfigKeys) {
22
22
  InlineChatConfigKeys["FinishOnType"] = "inlineChat.finishOnType";
23
- InlineChatConfigKeys["HoldToSpeech"] = "inlineChat.holdToSpeech";
24
23
  InlineChatConfigKeys["EnableV2"] = "inlineChat.enableV2";
25
24
  InlineChatConfigKeys["notebookAgent"] = "inlineChat.notebookAgent";
26
25
  InlineChatConfigKeys["DefaultModel"] = "inlineChat.defaultModel";
@@ -33,22 +32,14 @@ var InlineChatConfigKeys;
33
32
  properties: {
34
33
  [InlineChatConfigKeys.FinishOnType]: {
35
34
  description: ( localize(
36
- 9499,
35
+ 9685,
37
36
  "Whether to finish an inline chat session when typing outside of changed regions."
38
37
  )),
39
38
  default: false,
40
39
  type: "boolean"
41
40
  },
42
- [InlineChatConfigKeys.HoldToSpeech]: {
43
- description: ( localize(
44
- 9500,
45
- "Whether holding the inline chat keybinding will automatically enable speech recognition."
46
- )),
47
- default: true,
48
- type: "boolean"
49
- },
50
41
  [InlineChatConfigKeys.EnableV2]: {
51
- description: ( localize(9501, "Whether to use the next version of inline chat.")),
42
+ description: ( localize(9686, "Whether to use the next version of inline chat.")),
52
43
  default: false,
53
44
  type: "boolean",
54
45
  tags: ["preview"],
@@ -57,7 +48,7 @@ var InlineChatConfigKeys;
57
48
  }
58
49
  },
59
50
  [InlineChatConfigKeys.notebookAgent]: {
60
- markdownDescription: ( localize(9502, "Enable agent-like behavior for inline chat widget in notebooks.")),
51
+ markdownDescription: ( localize(9687, "Enable agent-like behavior for inline chat widget in notebooks.")),
61
52
  default: false,
62
53
  type: "boolean",
63
54
  tags: ["experimental"],
@@ -67,24 +58,24 @@ var InlineChatConfigKeys;
67
58
  },
68
59
  [InlineChatConfigKeys.Affordance]: {
69
60
  description: ( localize(
70
- 9503,
61
+ 9688,
71
62
  "Controls whether an inline chat affordance is shown when text is selected."
72
63
  )),
73
64
  default: "off",
74
65
  type: "string",
75
66
  enum: ["off", "gutter", "editor"],
76
- enumDescriptions: [( localize(9504, "No affordance is shown.")), ( localize(9505, "Show an affordance in the gutter.")), ( localize(9506, "Show an affordance in the editor at the cursor position."))],
67
+ enumDescriptions: [( localize(9689, "No affordance is shown.")), ( localize(9690, "Show an affordance in the gutter.")), ( localize(9691, "Show an affordance in the editor at the cursor position."))],
77
68
  experiment: {
78
69
  mode: "auto"
79
70
  },
80
71
  tags: ["experimental"]
81
72
  },
82
73
  [InlineChatConfigKeys.RenderMode]: {
83
- description: ( localize(9507, "Controls how inline chat is rendered.")),
74
+ description: ( localize(9692, "Controls how inline chat is rendered.")),
84
75
  default: "zone",
85
76
  type: "string",
86
77
  enum: ["zone", "hover"],
87
- enumDescriptions: [( localize(9508, "Render inline chat as a zone widget below the current line.")), ( localize(9509, "Render inline chat as a hover overlay."))],
78
+ enumDescriptions: [( localize(9693, "Render inline chat as a zone widget below the current line.")), ( localize(9694, "Render inline chat as a hover overlay."))],
88
79
  experiment: {
89
80
  mode: "auto"
90
81
  },
@@ -92,7 +83,7 @@ var InlineChatConfigKeys;
92
83
  },
93
84
  [InlineChatConfigKeys.FixDiagnostics]: {
94
85
  description: ( localize(
95
- 9510,
86
+ 9695,
96
87
  "Controls whether the Fix action is shown for diagnostics in the editor."
97
88
  )),
98
89
  default: true,
@@ -112,32 +103,33 @@ var InlineChatResponseType;
112
103
  InlineChatResponseType["MessagesAndEdits"] = "messagesAndEdits";
113
104
  })(InlineChatResponseType || (InlineChatResponseType = {}));
114
105
  const CTX_INLINE_CHAT_POSSIBLE = ( new RawContextKey("inlineChatPossible", false, ( localize(
115
- 9511,
106
+ 9696,
116
107
  "Whether a provider for inline chat exists and whether an editor for inline chat is open"
117
108
  ))));
118
- const CTX_INLINE_CHAT_HAS_AGENT2 = ( new RawContextKey("inlineChatHasEditsAgent", false, ( localize(9512, "Whether an agent for inline for interactive editors exists"))));
119
- const CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE = ( new RawContextKey("inlineChatHasNotebookInline", false, ( localize(9513, "Whether an agent for notebook cells exists"))));
120
- const CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT = ( new RawContextKey("inlineChatHasNotebookAgent", false, ( localize(9514, "Whether an agent for notebook cells exists"))));
121
- const CTX_INLINE_CHAT_VISIBLE = ( new RawContextKey("inlineChatVisible", false, ( localize(9515, "Whether the interactive editor input is visible"))));
122
- const CTX_INLINE_CHAT_FOCUSED = ( new RawContextKey("inlineChatFocused", false, ( localize(9516, "Whether the interactive editor input is focused"))));
109
+ const CTX_INLINE_CHAT_HAS_AGENT2 = ( new RawContextKey("inlineChatHasEditsAgent", false, ( localize(9697, "Whether an agent for inline for interactive editors exists"))));
110
+ const CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE = ( new RawContextKey("inlineChatHasNotebookInline", false, ( localize(9698, "Whether an agent for notebook cells exists"))));
111
+ const CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT = ( new RawContextKey("inlineChatHasNotebookAgent", false, ( localize(9699, "Whether an agent for notebook cells exists"))));
112
+ const CTX_INLINE_CHAT_VISIBLE = ( new RawContextKey("inlineChatVisible", false, ( localize(9700, "Whether the interactive editor input is visible"))));
113
+ const CTX_INLINE_CHAT_FOCUSED = ( new RawContextKey("inlineChatFocused", false, ( localize(9701, "Whether the interactive editor input is focused"))));
123
114
  const CTX_INLINE_CHAT_EDITING = ( new RawContextKey("inlineChatEditing", true, ( localize(
124
- 9517,
115
+ 9702,
125
116
  "Whether the user is currently editing or generating code in the inline chat"
126
117
  ))));
127
- const CTX_INLINE_CHAT_RESPONSE_FOCUSED = ( new RawContextKey("inlineChatResponseFocused", false, ( localize(9518, "Whether the interactive widget's response is focused"))));
128
- const CTX_INLINE_CHAT_INPUT_HAS_TEXT = ( new RawContextKey("inlineChatInputHasText", false, ( localize(9519, "Whether the inline chat input widget has text"))));
129
- const CTX_INLINE_CHAT_INPUT_WIDGET_FOCUSED = ( new RawContextKey("inlineChatInputWidgetFocused", false, ( localize(9520, "Whether the inline chat input widget editor is focused"))));
118
+ const CTX_INLINE_CHAT_RESPONSE_FOCUSED = ( new RawContextKey("inlineChatResponseFocused", false, ( localize(9703, "Whether the interactive widget's response is focused"))));
119
+ const CTX_INLINE_CHAT_INPUT_HAS_TEXT = ( new RawContextKey("inlineChatInputHasText", false, ( localize(9704, "Whether the inline chat input widget has text"))));
120
+ const CTX_INLINE_CHAT_INPUT_WIDGET_FOCUSED = ( new RawContextKey("inlineChatInputWidgetFocused", false, ( localize(9705, "Whether the inline chat input widget editor is focused"))));
130
121
  const CTX_INLINE_CHAT_OUTER_CURSOR_POSITION = ( new RawContextKey("inlineChatOuterCursorPosition", "", ( localize(
131
- 9521,
122
+ 9706,
132
123
  "Whether the cursor of the outer editor is above or below the interactive editor input"
133
124
  ))));
134
- const CTX_INLINE_CHAT_REQUEST_IN_PROGRESS = ( new RawContextKey("inlineChatRequestInProgress", false, ( localize(9522, "Whether an inline chat request is currently in progress"))));
125
+ const CTX_INLINE_CHAT_REQUEST_IN_PROGRESS = ( new RawContextKey("inlineChatRequestInProgress", false, ( localize(9707, "Whether an inline chat request is currently in progress"))));
135
126
  const CTX_INLINE_CHAT_RESPONSE_TYPE = ( new RawContextKey("inlineChatResponseType", InlineChatResponseType.None, ( localize(
136
- 9523,
127
+ 9708,
137
128
  "What type was the responses have been receieved, nothing yet, just messages, or messaged and local edits"
138
129
  ))));
139
- const CTX_INLINE_CHAT_FILE_BELONGS_TO_CHAT = ( new RawContextKey("inlineChatFileBelongsToChat", false, ( localize(9524, "Whether the current file belongs to a chat editing session"))));
140
- const CTX_INLINE_CHAT_PENDING_CONFIRMATION = ( new RawContextKey("inlineChatPendingConfirmation", false, ( localize(9525, "Whether an inline chat request is pending user confirmation"))));
130
+ const CTX_INLINE_CHAT_FILE_BELONGS_TO_CHAT = ( new RawContextKey("inlineChatFileBelongsToChat", false, ( localize(9709, "Whether the current file belongs to a chat editing session"))));
131
+ const CTX_INLINE_CHAT_PENDING_CONFIRMATION = ( new RawContextKey("inlineChatPendingConfirmation", false, ( localize(9710, "Whether an inline chat request is pending user confirmation"))));
132
+ const CTX_INLINE_CHAT_AFFORDANCE_VISIBLE = ( new RawContextKey("inlineChatAffordanceVisible", false, ( localize(9711, "Whether an inline chat affordance widget is visible"))));
141
133
  const CTX_INLINE_CHAT_V1_ENABLED = ( ContextKeyExpr.or(( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE))));
142
134
  const CTX_INLINE_CHAT_V2_ENABLED = ( ContextKeyExpr.or(CTX_INLINE_CHAT_HAS_AGENT2, ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT))));
143
135
  const CTX_HOVER_MODE = ( ContextKeyExpr.equals("config.inlineChat.renderMode", "hover"));
@@ -152,37 +144,37 @@ const MENU_INLINE_CHAT_WIDGET_STATUS = MenuId.for("inlineChatWidget.status");
152
144
  const MENU_INLINE_CHAT_WIDGET_SECONDARY = MenuId.for("inlineChatWidget.secondary");
153
145
  MenuId.for("inlineChatWidget.changesZone");
154
146
  const MENU_INLINE_CHAT_SIDE = MenuId.for("inlineChatWidget.side");
155
- const inlineChatForeground = registerColor("inlineChat.foreground", editorWidgetForeground, ( localize(9526, "Foreground color of the interactive editor widget")));
156
- const inlineChatBackground = registerColor("inlineChat.background", editorWidgetBackground, ( localize(9527, "Background color of the interactive editor widget")));
157
- registerColor("inlineChat.border", editorWidgetBorder, ( localize(9528, "Border color of the interactive editor widget")));
158
- registerColor("inlineChat.shadow", widgetShadow, ( localize(9529, "Shadow color of the interactive editor widget")));
159
- registerColor("inlineChatInput.border", editorWidgetBorder, ( localize(9530, "Border color of the interactive editor input")));
160
- registerColor("inlineChatInput.focusBorder", focusBorder, ( localize(9531, "Border color of the interactive editor input when focused")));
147
+ const inlineChatForeground = registerColor("inlineChat.foreground", editorWidgetForeground, ( localize(9712, "Foreground color of the interactive editor widget")));
148
+ const inlineChatBackground = registerColor("inlineChat.background", editorWidgetBackground, ( localize(9713, "Background color of the interactive editor widget")));
149
+ registerColor("inlineChat.border", editorWidgetBorder, ( localize(9714, "Border color of the interactive editor widget")));
150
+ registerColor("inlineChat.shadow", widgetShadow, ( localize(9715, "Shadow color of the interactive editor widget")));
151
+ registerColor("inlineChatInput.border", editorWidgetBorder, ( localize(9716, "Border color of the interactive editor input")));
152
+ registerColor("inlineChatInput.focusBorder", focusBorder, ( localize(9717, "Border color of the interactive editor input when focused")));
161
153
  registerColor(
162
154
  "inlineChatInput.placeholderForeground",
163
155
  inputPlaceholderForeground,
164
- ( localize(9532, "Foreground color of the interactive editor input placeholder"))
156
+ ( localize(9718, "Foreground color of the interactive editor input placeholder"))
165
157
  );
166
- registerColor("inlineChatInput.background", inputBackground, ( localize(9533, "Background color of the interactive editor input")));
167
- registerColor("inlineChatDiff.inserted", ( transparent(diffInserted, .5)), ( localize(9534, "Background color of inserted text in the interactive editor input")));
158
+ registerColor("inlineChatInput.background", inputBackground, ( localize(9719, "Background color of the interactive editor input")));
159
+ registerColor("inlineChatDiff.inserted", ( transparent(diffInserted, .5)), ( localize(9720, "Background color of inserted text in the interactive editor input")));
168
160
  registerColor("editorOverviewRuler.inlineChatInserted", {
169
161
  dark: ( transparent(diffInserted, 0.6)),
170
162
  light: ( transparent(diffInserted, 0.8)),
171
163
  hcDark: ( transparent(diffInserted, 0.6)),
172
164
  hcLight: ( transparent(diffInserted, 0.8))
173
- }, ( localize(9535, "Overview ruler marker color for inline chat inserted content.")));
165
+ }, ( localize(9721, "Overview ruler marker color for inline chat inserted content.")));
174
166
  registerColor("editorMinimap.inlineChatInserted", {
175
167
  dark: ( transparent(diffInserted, 0.6)),
176
168
  light: ( transparent(diffInserted, 0.8)),
177
169
  hcDark: ( transparent(diffInserted, 0.6)),
178
170
  hcLight: ( transparent(diffInserted, 0.8))
179
- }, ( localize(9536, "Minimap marker color for inline chat inserted content.")));
180
- registerColor("inlineChatDiff.removed", ( transparent(diffRemoved, .5)), ( localize(9537, "Background color of removed text in the interactive editor input")));
171
+ }, ( localize(9722, "Minimap marker color for inline chat inserted content.")));
172
+ registerColor("inlineChatDiff.removed", ( transparent(diffRemoved, .5)), ( localize(9723, "Background color of removed text in the interactive editor input")));
181
173
  registerColor("editorOverviewRuler.inlineChatRemoved", {
182
174
  dark: ( transparent(diffRemoved, 0.6)),
183
175
  light: ( transparent(diffRemoved, 0.8)),
184
176
  hcDark: ( transparent(diffRemoved, 0.6)),
185
177
  hcLight: ( transparent(diffRemoved, 0.8))
186
- }, ( localize(9538, "Overview ruler marker color for inline chat removed content.")));
178
+ }, ( localize(9724, "Overview ruler marker color for inline chat removed content.")));
187
179
 
188
- export { ACTION_ACCEPT_CHANGES, ACTION_ASK_IN_CHAT, ACTION_REGENERATE_RESPONSE, ACTION_REPORT_ISSUE, ACTION_START, ACTION_TOGGLE_DIFF, CTX_FIX_DIAGNOSTICS_ENABLED, CTX_HOVER_MODE, CTX_INLINE_CHAT_EDITING, CTX_INLINE_CHAT_FILE_BELONGS_TO_CHAT, CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_HAS_AGENT2, CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT, CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE, CTX_INLINE_CHAT_INPUT_HAS_TEXT, CTX_INLINE_CHAT_INPUT_WIDGET_FOCUSED, CTX_INLINE_CHAT_OUTER_CURSOR_POSITION, CTX_INLINE_CHAT_PENDING_CONFIRMATION, CTX_INLINE_CHAT_POSSIBLE, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS, CTX_INLINE_CHAT_RESPONSE_FOCUSED, CTX_INLINE_CHAT_RESPONSE_TYPE, CTX_INLINE_CHAT_V1_ENABLED, CTX_INLINE_CHAT_V2_ENABLED, CTX_INLINE_CHAT_VISIBLE, INLINE_CHAT_ID, InlineChatConfigKeys, InlineChatResponseType, MENU_INLINE_CHAT_SIDE, MENU_INLINE_CHAT_WIDGET_SECONDARY, MENU_INLINE_CHAT_WIDGET_STATUS, inlineChatBackground, inlineChatForeground };
180
+ export { ACTION_ACCEPT_CHANGES, ACTION_ASK_IN_CHAT, ACTION_REGENERATE_RESPONSE, ACTION_REPORT_ISSUE, ACTION_START, ACTION_TOGGLE_DIFF, CTX_FIX_DIAGNOSTICS_ENABLED, CTX_HOVER_MODE, CTX_INLINE_CHAT_AFFORDANCE_VISIBLE, CTX_INLINE_CHAT_EDITING, CTX_INLINE_CHAT_FILE_BELONGS_TO_CHAT, CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_HAS_AGENT2, CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT, CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE, CTX_INLINE_CHAT_INPUT_HAS_TEXT, CTX_INLINE_CHAT_INPUT_WIDGET_FOCUSED, CTX_INLINE_CHAT_OUTER_CURSOR_POSITION, CTX_INLINE_CHAT_PENDING_CONFIRMATION, CTX_INLINE_CHAT_POSSIBLE, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS, CTX_INLINE_CHAT_RESPONSE_FOCUSED, CTX_INLINE_CHAT_RESPONSE_TYPE, CTX_INLINE_CHAT_V1_ENABLED, CTX_INLINE_CHAT_V2_ENABLED, CTX_INLINE_CHAT_VISIBLE, INLINE_CHAT_ID, InlineChatConfigKeys, InlineChatResponseType, MENU_INLINE_CHAT_SIDE, MENU_INLINE_CHAT_WIDGET_SECONDARY, MENU_INLINE_CHAT_WIDGET_STATUS, inlineChatBackground, inlineChatForeground };
@@ -88,7 +88,7 @@ let ReplInputHintContentWidget = class ReplInputHintContentWidget extends Dispos
88
88
  const keybinding = this.getKeybinding();
89
89
  const keybindingHintLabel = keybinding?.getLabel();
90
90
  if (keybinding && keybindingHintLabel) {
91
- const actionPart = ( localize(9555, "Press {0} to execute. ", keybindingHintLabel));
91
+ const actionPart = ( localize(9741, "Press {0} to execute. ", keybindingHintLabel));
92
92
  const [before, after] = ( actionPart.split(keybindingHintLabel).map(fragment => {
93
93
  const hintPart = $("span", undefined, fragment);
94
94
  hintPart.style.fontStyle = "italic";
@@ -105,9 +105,9 @@ let ReplInputHintContentWidget = class ReplInputHintContentWidget extends Dispos
105
105
  hintElement.appendChild(after);
106
106
  this.domNode.append(hintElement);
107
107
  const helpKeybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
108
- const helpInfo = helpKeybinding ? ( localize(9556, "Use {0} for accessibility help. ", helpKeybinding)) : ( localize(9557, "Run the Open Accessibility Help command for more information. "));
108
+ const helpInfo = helpKeybinding ? ( localize(9742, "Use {0} for accessibility help. ", helpKeybinding)) : ( localize(9743, "Run the Open Accessibility Help command for more information. "));
109
109
  this.ariaLabel = actionPart.concat(helpInfo, ( localize(
110
- 9558,
110
+ 9744,
111
111
  " Toggle {0} in settings to disable this hint.",
112
112
  AccessibilityVerbositySettingId.ReplEditor
113
113
  )));