@codingame/monaco-vscode-chat-service-override 25.1.2 → 26.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 (334) hide show
  1. package/index.js +24 -3
  2. package/package.json +5 -5
  3. package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +23 -3
  4. package/vscode/src/vs/platform/browserElements/common/browserElements.js +13 -6
  5. package/vscode/src/vs/platform/domWidget/browser/domWidget.js +4 -4
  6. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.d.ts +1 -1
  7. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +42 -27
  8. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +14 -0
  9. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +218 -74
  10. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatTerminalOutputAccessibleView.js +6 -8
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +14 -9
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +165 -168
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +27 -25
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +141 -140
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +189 -121
  16. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +14 -15
  17. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.d.ts +60 -0
  18. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.js +435 -0
  19. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +28 -12
  20. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +10 -12
  21. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.d.ts +3 -1
  22. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +37 -16
  23. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.d.ts +11 -0
  24. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +54 -24
  25. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +73 -34
  26. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +71 -30
  27. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +151 -89
  28. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +12 -15
  29. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +39 -40
  30. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +90 -125
  31. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.d.ts +5 -2
  32. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +263 -143
  33. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTransfer.js +4 -4
  34. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +188 -126
  35. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.d.ts +1 -1
  36. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +37 -28
  37. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +21 -9
  38. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +392 -226
  39. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +31 -27
  40. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +25 -23
  41. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.js +1 -3
  42. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.d.ts +2 -0
  43. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +13 -0
  44. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.d.ts +20 -0
  45. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +83 -0
  46. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.d.ts +68 -0
  47. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +319 -0
  48. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.d.ts +1 -0
  49. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +215 -0
  50. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.d.ts +179 -0
  51. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +951 -0
  52. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agentsessionprojection.css +20 -0
  53. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css +388 -0
  54. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/unifiedQuickAccess.css +195 -0
  55. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.d.ts +120 -0
  56. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +394 -0
  57. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.d.ts +38 -0
  58. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +95 -0
  59. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsProvider.d.ts +3 -1
  60. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsProvider.js +31 -29
  61. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +49 -47
  62. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +4 -6
  63. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/media/simpleBrowserOverlay.css +0 -1
  64. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +188 -151
  65. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +1012 -639
  66. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +256 -151
  67. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.d.ts +8 -1
  68. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +182 -101
  69. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.d.ts +79 -0
  70. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.js +193 -0
  71. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorAccessibility.js +9 -7
  72. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.d.ts +68 -0
  73. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +253 -0
  74. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +4 -5
  75. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +69 -50
  76. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +3 -4
  77. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +52 -33
  78. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +5 -6
  79. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +274 -155
  80. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.js +1 -1
  81. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.d.ts +2 -10
  82. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +130 -104
  83. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +12 -2
  84. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +385 -160
  85. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.js +53 -36
  86. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +112 -75
  87. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +19 -10
  88. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditorController.css +31 -11
  89. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.js +39 -17
  90. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNewNotebookContentEdits.js +10 -14
  91. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.d.ts +0 -2
  92. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.js +25 -16
  93. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.d.ts +1 -1
  94. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +265 -203
  95. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookFileSystemProvider.js +29 -26
  96. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/helpers.js +114 -60
  97. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/notebookCellChanges.js +16 -19
  98. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.js +44 -30
  99. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +119 -45
  100. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +1 -0
  101. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +152 -136
  102. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +12 -8
  103. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.d.ts +51 -31
  104. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +323 -217
  105. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +4 -3
  106. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +653 -401
  107. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +52 -40
  108. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +22 -3
  109. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.d.ts +5 -2
  110. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +43 -28
  111. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +182 -136
  112. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.d.ts +33 -0
  113. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +548 -0
  114. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.d.ts +0 -1
  115. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +222 -138
  116. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.d.ts +3 -3
  117. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +151 -113
  118. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.d.ts +6 -4
  119. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +453 -217
  120. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +1 -1
  121. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +162 -88
  122. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/media/chatSetup.css +2 -1
  123. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatus.d.ts +0 -2
  124. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatus.js +1 -13
  125. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +1 -0
  126. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +309 -233
  127. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +55 -53
  128. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusItemService.js +3 -1
  129. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.d.ts +37 -0
  130. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +109 -0
  131. package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +35 -23
  132. package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.d.ts +9 -4
  133. package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.js +73 -33
  134. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.d.ts +47 -0
  135. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +333 -0
  136. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +39 -25
  137. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionContribution.js +9 -5
  138. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +23 -20
  139. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileActions.js +2 -0
  140. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +20 -16
  141. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +65 -57
  142. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +48 -36
  143. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +20 -12
  144. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.d.ts +4 -0
  145. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +52 -0
  146. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +155 -159
  147. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +24 -14
  148. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +521 -246
  149. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +107 -76
  150. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +28 -24
  151. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownAnchorService.js +10 -6
  152. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputStateCache.d.ts +16 -0
  153. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputStateCache.js +57 -0
  154. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatLayoutService.js +4 -6
  155. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +56 -44
  156. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.d.ts +0 -3
  157. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +37 -47
  158. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatEditorInputContentProvider.js +5 -7
  159. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.d.ts +10 -0
  160. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +1284 -0
  161. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +179 -125
  162. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +9 -11
  163. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/editorHoverWrapper.js +7 -6
  164. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +96 -78
  165. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +58 -53
  166. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +25 -11
  167. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +484 -292
  168. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.d.ts +1 -6
  169. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +65 -92
  170. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +16 -19
  171. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewTitleControl.css +1 -0
  172. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +9 -1
  173. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +331 -189
  174. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +81 -93
  175. package/vscode/src/vs/workbench/contrib/chat/common/ignoredFiles.js +1 -3
  176. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.d.ts +5 -3
  177. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.js +6 -7
  178. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.d.ts +36 -8
  179. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +169 -31
  180. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.d.ts +6 -0
  181. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +141 -0
  182. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +6 -4
  183. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +218 -144
  184. package/vscode/src/vs/workbench/contrib/chat/common/model/chatTransferService.js +20 -10
  185. package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.d.ts +109 -0
  186. package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.js +349 -0
  187. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.js +9 -8
  188. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.d.ts +9 -0
  189. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +139 -36
  190. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +3 -6
  191. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.js +64 -51
  192. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +49 -34
  193. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.js +21 -13
  194. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +1 -1
  195. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +125 -97
  196. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +91 -131
  197. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptLinkProvider.js +8 -5
  198. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +5 -0
  199. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +488 -222
  200. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileContributions.js +32 -12
  201. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +58 -13
  202. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +717 -200
  203. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +79 -18
  204. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +371 -130
  205. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.d.ts +0 -1
  206. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.js +3 -7
  207. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +79 -61
  208. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.js +27 -21
  209. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +7 -10
  210. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.d.ts +1 -1
  211. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +26 -32
  212. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +2 -2
  213. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +8 -60
  214. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +115 -426
  215. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.d.ts +15 -0
  216. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +127 -0
  217. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +1 -37
  218. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +16 -0
  219. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +21 -0
  220. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +51 -0
  221. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +334 -0
  222. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.d.ts +41 -0
  223. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +424 -0
  224. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +4 -0
  225. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +58 -0
  226. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.d.ts +7 -0
  227. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +195 -0
  228. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.d.ts +8 -0
  229. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +368 -0
  230. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.d.ts +2 -0
  231. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +7 -0
  232. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.d.ts +1 -1
  233. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.js +1 -1
  234. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +23 -25
  235. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/common/remoteCodingAgentsService.js +7 -8
  236. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +34 -38
  237. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibleView.js +8 -12
  238. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +103 -95
  239. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +28 -16
  240. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatEnabler.js +4 -5
  241. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +12 -8
  242. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +65 -54
  243. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +86 -60
  244. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.js +13 -26
  245. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/commandFileWriteParser.d.ts +24 -0
  246. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.d.ts +26 -0
  247. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.js +142 -0
  248. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +2 -1
  249. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +56 -46
  250. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +2 -2
  251. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +63 -31
  252. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +2 -1
  253. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +35 -30
  254. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +2 -1
  255. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +44 -37
  256. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +3 -4
  257. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +3 -3
  258. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +11 -0
  259. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +70 -50
  260. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +26 -394
  261. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +85 -49
  262. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +68 -27
  263. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.d.ts +1 -0
  264. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +67 -45
  265. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.d.ts +12 -0
  266. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.js +106 -0
  267. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.d.ts +2 -2
  268. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.js +177 -97
  269. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +136 -49
  270. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +2 -1
  271. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +128 -112
  272. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +51 -49
  273. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.d.ts +8 -0
  274. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.js +25 -0
  275. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/commandLinePresenter.d.ts +41 -0
  276. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.d.ts +19 -0
  277. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.js +37 -0
  278. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.d.ts +19 -0
  279. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.js +37 -0
  280. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.d.ts +19 -0
  281. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.js +44 -0
  282. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +12 -0
  283. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +21 -0
  284. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.js +5 -14
  285. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.js +2 -4
  286. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +1 -0
  287. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.d.ts +8 -0
  288. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +29 -0
  289. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +30 -31
  290. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +16 -17
  291. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +19 -20
  292. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.d.ts +11 -0
  293. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +58 -0
  294. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +31 -3
  295. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +325 -199
  296. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +1 -1
  297. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.js +1 -1
  298. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +33 -38
  299. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +45 -5
  300. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +746 -456
  301. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +145 -98
  302. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +88 -37
  303. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +120 -51
  304. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +25 -28
  305. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.d.ts +5 -0
  306. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.js +58 -12
  307. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/toolIds.d.ts +12 -0
  308. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/toolIds.js +17 -0
  309. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +8 -1
  310. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +47 -28
  311. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +37 -0
  312. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +171 -0
  313. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +0 -58
  314. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +0 -213
  315. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +0 -39
  316. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +0 -243
  317. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.d.ts +0 -7
  318. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +0 -41
  319. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +0 -166
  320. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +0 -607
  321. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +0 -255
  322. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +0 -46
  323. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +0 -396
  324. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +0 -9
  325. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +0 -379
  326. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +0 -117
  327. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +0 -141
  328. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +0 -961
  329. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +0 -36
  330. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +0 -447
  331. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.d.ts +0 -6
  332. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.js +0 -251
  333. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.d.ts +0 -10
  334. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +0 -42
@@ -34,11 +34,11 @@ import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platfo
34
34
  import { defaultButtonStyles, defaultCheckboxStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
35
35
  import { DomWidget } from '../../../../../platform/domWidget/browser/domWidget.js';
36
36
  import { EditorResourceAccessor, SideBySideEditor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
37
- import { ChatEntitlement } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService';
37
+ import { ChatEntitlement, getChatPlanName } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService';
38
38
  import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
39
39
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
40
40
  import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
41
- import { isNewUser, isCompletionsEnabled } from './chatStatus.js';
41
+ import { isNewUser } from './chatStatus.js';
42
42
  import { IChatStatusItemService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatStatus/chatStatusItemService.service';
43
43
  import product from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/product';
44
44
  import { registerColor, transparent } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
@@ -55,52 +55,70 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/sear
55
55
  import { Color } from '@codingame/monaco-vscode-api/vscode/vs/base/common/color';
56
56
  import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
57
57
  import { ChatViewId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat';
58
+ import { isCompletionsEnabled } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/completionsEnablement';
58
59
 
59
60
  const defaultChat = product.defaultChatAgent;
60
- const gaugeForeground = registerColor('gauge.foreground', {
61
+ const gaugeForeground = registerColor("gauge.foreground", {
61
62
  dark: inputValidationInfoBorder,
62
63
  light: inputValidationInfoBorder,
63
64
  hcDark: contrastBorder,
64
65
  hcLight: contrastBorder
65
- }, ( localize(5382, "Gauge foreground color.")));
66
- registerColor('gauge.background', {
66
+ }, ( localize(5575, "Gauge foreground color.")));
67
+ registerColor("gauge.background", {
67
68
  dark: ( transparent(gaugeForeground, 0.3)),
68
69
  light: ( transparent(gaugeForeground, 0.3)),
69
70
  hcDark: Color.white,
70
71
  hcLight: Color.white
71
- }, ( localize(5383, "Gauge background color.")));
72
- registerColor('gauge.border', {
72
+ }, ( localize(5576, "Gauge background color.")));
73
+ registerColor("gauge.border", {
73
74
  dark: null,
74
75
  light: null,
75
76
  hcDark: contrastBorder,
76
77
  hcLight: contrastBorder
77
- }, ( localize(5384, "Gauge border color.")));
78
- const gaugeWarningForeground = registerColor('gauge.warningForeground', {
78
+ }, ( localize(5577, "Gauge border color.")));
79
+ const gaugeWarningForeground = registerColor("gauge.warningForeground", {
79
80
  dark: inputValidationWarningBorder,
80
81
  light: inputValidationWarningBorder,
81
82
  hcDark: contrastBorder,
82
83
  hcLight: contrastBorder
83
- }, ( localize(5385, "Gauge warning foreground color.")));
84
- registerColor('gauge.warningBackground', {
84
+ }, ( localize(5578, "Gauge warning foreground color.")));
85
+ registerColor("gauge.warningBackground", {
85
86
  dark: ( transparent(gaugeWarningForeground, 0.3)),
86
87
  light: ( transparent(gaugeWarningForeground, 0.3)),
87
88
  hcDark: Color.white,
88
89
  hcLight: Color.white
89
- }, ( localize(5386, "Gauge warning background color.")));
90
- const gaugeErrorForeground = registerColor('gauge.errorForeground', {
90
+ }, ( localize(5579, "Gauge warning background color.")));
91
+ const gaugeErrorForeground = registerColor("gauge.errorForeground", {
91
92
  dark: inputValidationErrorBorder,
92
93
  light: inputValidationErrorBorder,
93
94
  hcDark: contrastBorder,
94
95
  hcLight: contrastBorder
95
- }, ( localize(5387, "Gauge error foreground color.")));
96
- registerColor('gauge.errorBackground', {
96
+ }, ( localize(5580, "Gauge error foreground color.")));
97
+ registerColor("gauge.errorBackground", {
97
98
  dark: ( transparent(gaugeErrorForeground, 0.3)),
98
99
  light: ( transparent(gaugeErrorForeground, 0.3)),
99
100
  hcDark: Color.white,
100
101
  hcLight: Color.white
101
- }, ( localize(5388, "Gauge error background color.")));
102
+ }, ( localize(5581, "Gauge error background color.")));
102
103
  let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
103
- constructor(chatEntitlementService, chatStatusItemService, commandService, configurationService, editorService, hoverService, languageService, openerService, telemetryService, textResourceConfigurationService, inlineCompletionsService, chatSessionsService, markdownRendererService, languageFeaturesService, quickInputService, viewService) {
104
+ constructor(
105
+ chatEntitlementService,
106
+ chatStatusItemService,
107
+ commandService,
108
+ configurationService,
109
+ editorService,
110
+ hoverService,
111
+ languageService,
112
+ openerService,
113
+ telemetryService,
114
+ textResourceConfigurationService,
115
+ inlineCompletionsService,
116
+ chatSessionsService,
117
+ markdownRendererService,
118
+ languageFeaturesService,
119
+ quickInputService,
120
+ viewService
121
+ ) {
104
122
  super();
105
123
  this.chatEntitlementService = chatEntitlementService;
106
124
  this.chatStatusItemService = chatStatusItemService;
@@ -118,11 +136,27 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
118
136
  this.languageFeaturesService = languageFeaturesService;
119
137
  this.quickInputService = quickInputService;
120
138
  this.viewService = viewService;
121
- this.element = $('div.chat-status-bar-entry-tooltip');
122
- this.dateFormatter = safeIntl.DateTimeFormat(language, { year: 'numeric', month: 'long', day: 'numeric' });
123
- this.dateTimeFormatter = safeIntl.DateTimeFormat(language, { year: 'numeric', month: 'long', day: 'numeric', hour: 'numeric', minute: 'numeric' });
124
- this.quotaPercentageFormatter = safeIntl.NumberFormat(undefined, { maximumFractionDigits: 1, minimumFractionDigits: 0 });
125
- this.quotaOverageFormatter = safeIntl.NumberFormat(undefined, { maximumFractionDigits: 2, minimumFractionDigits: 0 });
139
+ this.element = $("div.chat-status-bar-entry-tooltip");
140
+ this.dateFormatter = safeIntl.DateTimeFormat(language, {
141
+ year: "numeric",
142
+ month: "long",
143
+ day: "numeric"
144
+ });
145
+ this.dateTimeFormatter = safeIntl.DateTimeFormat(language, {
146
+ year: "numeric",
147
+ month: "long",
148
+ day: "numeric",
149
+ hour: "numeric",
150
+ minute: "numeric"
151
+ });
152
+ this.quotaPercentageFormatter = safeIntl.NumberFormat(undefined, {
153
+ maximumFractionDigits: 1,
154
+ minimumFractionDigits: 0
155
+ });
156
+ this.quotaOverageFormatter = safeIntl.NumberFormat(undefined, {
157
+ maximumFractionDigits: 2,
158
+ minimumFractionDigits: 0
159
+ });
126
160
  this.render();
127
161
  }
128
162
  render() {
@@ -130,46 +164,60 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
130
164
  let needsSeparator = false;
131
165
  const addSeparator = (label, action) => {
132
166
  if (needsSeparator) {
133
- this.element.appendChild($('hr'));
167
+ this.element.appendChild($("hr"));
134
168
  }
135
169
  if (label || action) {
136
- this.renderHeader(this.element, this._store, label ?? '', action);
170
+ this.renderHeader(this.element, this._store, label ?? "", action);
137
171
  }
138
172
  needsSeparator = true;
139
173
  };
140
- const { chat: chatQuota, completions: completionsQuota, premiumChat: premiumChatQuota, resetDate, resetDateHasTime } = this.chatEntitlementService.quotas;
174
+ const {
175
+ chat: chatQuota,
176
+ completions: completionsQuota,
177
+ premiumChat: premiumChatQuota,
178
+ resetDate,
179
+ resetDateHasTime
180
+ } = this.chatEntitlementService.quotas;
141
181
  if (chatQuota || completionsQuota || premiumChatQuota) {
142
- addSeparator(( localize(5389, "Copilot Usage")), toAction({
143
- id: 'workbench.action.manageCopilot',
144
- label: ( localize(5390, "Manage Chat")),
145
- tooltip: ( localize(5391, "Manage Chat")),
182
+ const usageTitle = this.getUsageTitle();
183
+ addSeparator(usageTitle, toAction({
184
+ id: "workbench.action.manageCopilot",
185
+ label: ( localize(5582, "Manage Chat")),
186
+ tooltip: ( localize(5583, "Manage Chat")),
146
187
  class: ThemeIcon.asClassName(Codicon.settings),
147
- run: () => this.runCommandAndClose(() => this.openerService.open(( URI.parse(defaultChat.manageSettingsUrl)))),
188
+ run: () => this.runCommandAndClose(() => this.openerService.open(( URI.parse(defaultChat.manageSettingsUrl))))
148
189
  }));
149
- const completionsQuotaIndicator = completionsQuota && (completionsQuota.total > 0 || completionsQuota.unlimited) ? this.createQuotaIndicator(this.element, this._store, completionsQuota, ( localize(5392, "Inline Suggestions")), false) : undefined;
150
- const chatQuotaIndicator = chatQuota && (chatQuota.total > 0 || chatQuota.unlimited) ? this.createQuotaIndicator(this.element, this._store, chatQuota, ( localize(5393, "Chat messages")), false) : undefined;
151
- const premiumChatQuotaIndicator = premiumChatQuota && (premiumChatQuota.total > 0 || premiumChatQuota.unlimited) ? this.createQuotaIndicator(this.element, this._store, premiumChatQuota, ( localize(5394, "Premium requests")), true) : undefined;
190
+ const completionsQuotaIndicator = completionsQuota && (completionsQuota.total > 0 || completionsQuota.unlimited) ? this.createQuotaIndicator(this.element, this._store, completionsQuota, ( localize(5584, "Inline Suggestions")), false) : undefined;
191
+ const chatQuotaIndicator = chatQuota && (chatQuota.total > 0 || chatQuota.unlimited) ? this.createQuotaIndicator(this.element, this._store, chatQuota, ( localize(5585, "Chat messages")), false) : undefined;
192
+ const premiumChatQuotaIndicator = premiumChatQuota && (premiumChatQuota.total > 0 || premiumChatQuota.unlimited) ? this.createQuotaIndicator(this.element, this._store, premiumChatQuota, ( localize(5586, "Premium requests")), true) : undefined;
152
193
  if (resetDate) {
153
- this.element.appendChild($('div.description', undefined, ( localize(
154
- 5395,
194
+ this.element.appendChild($("div.description", undefined, ( localize(
195
+ 5587,
155
196
  "Allowance resets {0}.",
156
197
  resetDateHasTime ? this.dateTimeFormatter.value.format(( new Date(resetDate))) : this.dateFormatter.value.format(( new Date(resetDate)))
157
198
  ))));
158
199
  }
159
200
  if (this.chatEntitlementService.entitlement === ChatEntitlement.Free && (Number(chatQuota?.percentRemaining) <= 25 || Number(completionsQuota?.percentRemaining) <= 25)) {
160
- const upgradeProButton = this._store.add(( new Button(
161
- this.element,
162
- { ...defaultButtonStyles, hoverDelegate: nativeHoverDelegate, secondary: this.canUseChat() }
163
- )));
164
- upgradeProButton.label = ( localize(5396, "Upgrade to GitHub Copilot Pro"));
165
- this._store.add(upgradeProButton.onDidClick(() => this.runCommandAndClose('workbench.action.chat.upgradePlan')));
201
+ const upgradeProButton = this._store.add(( new Button(this.element, {
202
+ ...defaultButtonStyles,
203
+ hoverDelegate: nativeHoverDelegate,
204
+ secondary: this.canUseChat()
205
+ })));
206
+ upgradeProButton.label = ( localize(5588, "Upgrade to GitHub Copilot Pro"));
207
+ this._store.add(
208
+ upgradeProButton.onDidClick(() => this.runCommandAndClose("workbench.action.chat.upgradePlan"))
209
+ );
166
210
  }
167
211
  (async () => {
168
212
  await this.chatEntitlementService.update(token);
169
213
  if (token.isCancellationRequested) {
170
214
  return;
171
215
  }
172
- const { chat: chatQuota, completions: completionsQuota, premiumChat: premiumChatQuota } = this.chatEntitlementService.quotas;
216
+ const {
217
+ chat: chatQuota,
218
+ completions: completionsQuota,
219
+ premiumChat: premiumChatQuota
220
+ } = this.chatEntitlementService.quotas;
173
221
  if (completionsQuota) {
174
222
  completionsQuotaIndicator?.(completionsQuota);
175
223
  }
@@ -182,27 +230,30 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
182
230
  })();
183
231
  }
184
232
  else if (this.chatEntitlementService.anonymous && this.chatEntitlementService.sentiment.installed) {
185
- addSeparator(( localize(5397, "Copilot Usage")));
186
- this.createQuotaIndicator(this.element, this._store, ( localize(5398, "Limited")), ( localize(5392, "Inline Suggestions")), false);
187
- this.createQuotaIndicator(this.element, this._store, ( localize(5398, "Limited")), ( localize(5393, "Chat messages")), false);
233
+ addSeparator(( localize(5589, "Copilot Usage")));
234
+ this.createQuotaIndicator(this.element, this._store, ( localize(5590, "Limited")), ( localize(5584, "Inline Suggestions")), false);
235
+ this.createQuotaIndicator(this.element, this._store, ( localize(5590, "Limited")), ( localize(5585, "Chat messages")), false);
188
236
  }
189
237
  {
190
238
  const inProgress = this.chatSessionsService.getInProgress();
191
239
  if (( inProgress.some(item => item.count > 0))) {
192
- addSeparator(( localize(5399, "Agent Sessions")), toAction({
193
- id: 'workbench.view.chat.status.sessions',
194
- label: ( localize(5400, "View Agent Sessions")),
195
- tooltip: ( localize(5401, "View Agent Sessions")),
240
+ addSeparator(( localize(5591, "Agent Sessions")), toAction({
241
+ id: "workbench.view.chat.status.sessions",
242
+ label: ( localize(5592, "View Agent Sessions")),
243
+ tooltip: ( localize(5593, "View Agent Sessions")),
196
244
  class: ThemeIcon.asClassName(Codicon.eye),
197
245
  run: () => {
198
246
  this.viewService.openView(ChatViewId, true);
199
247
  this.hoverService.hideHover(true);
200
248
  }
201
249
  }));
202
- for (const { displayName, count } of inProgress) {
250
+ for (const {
251
+ displayName,
252
+ count
253
+ } of inProgress) {
203
254
  if (count > 0) {
204
- const text = ( localize(5402, "$(loading~spin) {0} in progress", displayName));
205
- const chatSessionsElement = this.element.appendChild($('div.description'));
255
+ const text = ( localize(5594, "$(loading~spin) {0} in progress", displayName));
256
+ const chatSessionsElement = this.element.appendChild($("div.description"));
206
257
  const parts = renderLabelWithIcons(text);
207
258
  chatSessionsElement.append(...parts);
208
259
  }
@@ -228,12 +279,16 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
228
279
  }
229
280
  {
230
281
  const chatSentiment = this.chatEntitlementService.sentiment;
231
- addSeparator(( localize(5403, "Inline Suggestions")), chatSentiment.installed && !chatSentiment.disabled && !chatSentiment.untrusted ? toAction({
232
- id: 'workbench.action.openChatSettings',
233
- label: ( localize(5404, "Settings")),
234
- tooltip: ( localize(5405, "Open Settings")),
282
+ addSeparator(( localize(5595, "Inline Suggestions")), chatSentiment.installed && !chatSentiment.disabled && !chatSentiment.untrusted ? toAction({
283
+ id: "workbench.action.openChatSettings",
284
+ label: ( localize(5596, "Settings")),
285
+ tooltip: ( localize(5597, "Open Settings")),
235
286
  class: ThemeIcon.asClassName(Codicon.settingsGear),
236
- run: () => this.runCommandAndClose(() => this.commandService.executeCommand('workbench.action.openSettings', { query: `@id:${defaultChat.completionsEnablementSetting} @id:${defaultChat.nextEditSuggestionsSetting}` })),
287
+ run: () => this.runCommandAndClose(
288
+ () => this.commandService.executeCommand("workbench.action.openSettings", {
289
+ query: `@id:${defaultChat.completionsEnablementSetting} @id:${defaultChat.nextEditSuggestionsSetting}`
290
+ })
291
+ )
237
292
  }) : undefined);
238
293
  this.createSettings(this.element, this._store);
239
294
  }
@@ -244,25 +299,30 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
244
299
  const modelInfo = provider.modelInfo;
245
300
  const currentModel = modelInfo.models.find(m => m.id === modelInfo.currentModelId);
246
301
  if (currentModel) {
247
- const modelContainer = this.element.appendChild($('div.model-selection'));
248
- modelContainer.appendChild($('span.model-text', undefined, ( localize(5406, "Model: {0}", currentModel.name))));
249
- const actionBar = modelContainer.appendChild($('div.model-action-bar'));
250
- const toolbar = this._store.add(( new ActionBar(actionBar, { hoverDelegate: nativeHoverDelegate })));
302
+ const modelContainer = this.element.appendChild($("div.model-selection"));
303
+ modelContainer.appendChild($("span.model-text", undefined, ( localize(5598, "Model: {0}", currentModel.name))));
304
+ const actionBar = modelContainer.appendChild($("div.model-action-bar"));
305
+ const toolbar = this._store.add(( new ActionBar(actionBar, {
306
+ hoverDelegate: nativeHoverDelegate
307
+ })));
251
308
  toolbar.push([toAction({
252
- id: 'workbench.action.selectInlineCompletionsModel',
253
- label: ( localize(5407, "Select Model")),
254
- tooltip: ( localize(5407, "Select Model")),
255
- class: ThemeIcon.asClassName(Codicon.gear),
256
- run: async () => {
257
- await this.showModelPicker(provider);
258
- }
259
- })], { icon: true, label: false });
309
+ id: "workbench.action.selectInlineCompletionsModel",
310
+ label: ( localize(5599, "Select Model")),
311
+ tooltip: ( localize(5599, "Select Model")),
312
+ class: ThemeIcon.asClassName(Codicon.gear),
313
+ run: async () => {
314
+ await this.showModelPicker(provider);
315
+ }
316
+ })], {
317
+ icon: true,
318
+ label: false
319
+ });
260
320
  }
261
321
  }
262
322
  }
263
323
  if (this.canUseChat()) {
264
- const snooze = append(this.element, $('div.snooze-completions'));
265
- this.createCompletionsSnooze(snooze, ( localize(5408, "Snooze")), this._store);
324
+ const snooze = append(this.element, $("div.snooze-completions"));
325
+ this.createCompletionsSnooze(snooze, ( localize(5600, "Snooze")), this._store);
266
326
  }
267
327
  {
268
328
  const newUser = isNewUser(this.chatEntitlementService);
@@ -272,60 +332,57 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
272
332
  if (newUser || signedOut || disabled) {
273
333
  addSeparator();
274
334
  let descriptionText;
275
- let descriptionClass = '.description';
335
+ let descriptionClass = ".description";
276
336
  if (newUser && anonymousUser) {
277
337
  descriptionText = ( new MarkdownString(( localize(
278
- 5409,
338
+ 5601,
279
339
  "By continuing with {0} Copilot, you agree to {1}'s [Terms]({2}) and [Privacy Statement]({3})",
280
340
  defaultChat.provider.default.name,
281
341
  defaultChat.provider.default.name,
282
342
  defaultChat.termsStatementUrl,
283
343
  defaultChat.privacyStatementUrl
284
- )), { isTrusted: true }));
344
+ )), {
345
+ isTrusted: true
346
+ }));
285
347
  descriptionClass = `${descriptionClass}.terms`;
286
- }
287
- else if (newUser) {
288
- descriptionText = ( localize(5410, "Set up Copilot to use AI features."));
289
- }
290
- else if (anonymousUser) {
291
- descriptionText = ( localize(5411, "Sign in to enable more Copilot AI features."));
292
- }
293
- else if (disabled) {
294
- descriptionText = ( localize(5412, "Enable Copilot to use AI features."));
295
- }
296
- else {
297
- descriptionText = ( localize(5413, "Sign in to use Copilot AI features."));
348
+ } else if (newUser) {
349
+ descriptionText = ( localize(5602, "Set up Copilot to use AI features."));
350
+ } else if (anonymousUser) {
351
+ descriptionText = ( localize(5603, "Sign in to enable more Copilot AI features."));
352
+ } else if (disabled) {
353
+ descriptionText = ( localize(5604, "Enable Copilot to use AI features."));
354
+ } else {
355
+ descriptionText = ( localize(5605, "Sign in to use Copilot AI features."));
298
356
  }
299
357
  let buttonLabel;
300
358
  if (newUser) {
301
- buttonLabel = ( localize(5414, "Use AI Features"));
302
- }
303
- else if (anonymousUser) {
304
- buttonLabel = ( localize(5415, "Enable more AI Features"));
305
- }
306
- else if (disabled) {
307
- buttonLabel = ( localize(5416, "Enable AI Features"));
308
- }
309
- else {
310
- buttonLabel = ( localize(5417, "Sign in to use AI Features"));
359
+ buttonLabel = ( localize(5606, "Use AI Features"));
360
+ } else if (anonymousUser) {
361
+ buttonLabel = ( localize(5607, "Enable more AI Features"));
362
+ } else if (disabled) {
363
+ buttonLabel = ( localize(5608, "Enable AI Features"));
364
+ } else {
365
+ buttonLabel = ( localize(5609, "Sign in to use AI Features"));
311
366
  }
312
367
  let commandId;
313
368
  if (newUser && anonymousUser) {
314
- commandId = 'workbench.action.chat.triggerSetupAnonymousWithoutDialog';
369
+ commandId = "workbench.action.chat.triggerSetupAnonymousWithoutDialog";
370
+ } else {
371
+ commandId = "workbench.action.chat.triggerSetup";
315
372
  }
316
- else {
317
- commandId = 'workbench.action.chat.triggerSetup';
318
- }
319
- if (typeof descriptionText === 'string') {
373
+ if (typeof descriptionText === "string") {
320
374
  this.element.appendChild($(`div${descriptionClass}`, undefined, descriptionText));
375
+ } else {
376
+ this.element.appendChild($(
377
+ `div${descriptionClass}`,
378
+ undefined,
379
+ this._store.add(this.markdownRendererService.render(descriptionText)).element
380
+ ));
321
381
  }
322
- else {
323
- this.element.appendChild($(`div${descriptionClass}`, undefined, this._store.add(this.markdownRendererService.render(descriptionText)).element));
324
- }
325
- const button = this._store.add(( new Button(
326
- this.element,
327
- { ...defaultButtonStyles, hoverDelegate: nativeHoverDelegate }
328
- )));
382
+ const button = this._store.add(( new Button(this.element, {
383
+ ...defaultButtonStyles,
384
+ hoverDelegate: nativeHoverDelegate
385
+ })));
329
386
  button.label = buttonLabel;
330
387
  this._store.add(button.onDidClick(() => this.runCommandAndClose(commandId)));
331
388
  }
@@ -343,111 +400,126 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
343
400
  }
344
401
  return true;
345
402
  }
403
+ getUsageTitle() {
404
+ const planName = getChatPlanName(this.chatEntitlementService.entitlement);
405
+ return localize(5610, "{0} Usage", planName);
406
+ }
346
407
  renderHeader(container, disposables, label, action) {
347
- const header = container.appendChild($('div.header', undefined, label ?? ''));
408
+ const header = container.appendChild($("div.header", undefined, label ?? ""));
348
409
  if (action) {
349
- const toolbar = disposables.add(( new ActionBar(header, { hoverDelegate: nativeHoverDelegate })));
350
- toolbar.push([action], { icon: true, label: false });
410
+ const toolbar = disposables.add(( new ActionBar(header, {
411
+ hoverDelegate: nativeHoverDelegate
412
+ })));
413
+ toolbar.push([action], {
414
+ icon: true,
415
+ label: false
416
+ });
351
417
  }
352
418
  }
353
419
  renderContributedChatStatusItem(item) {
354
420
  const disposables = ( new DisposableStore());
355
- const itemElement = $('div.contribution');
356
- const headerLabel = typeof item.label === 'string' ? item.label : item.label.label;
357
- const headerLink = typeof item.label === 'string' ? undefined : item.label.link;
421
+ const itemElement = $("div.contribution");
422
+ const headerLabel = typeof item.label === "string" ? item.label : item.label.label;
423
+ const headerLink = typeof item.label === "string" ? undefined : item.label.link;
358
424
  this.renderHeader(itemElement, disposables, headerLabel, headerLink ? toAction({
359
- id: 'workbench.action.openChatStatusItemLink',
360
- label: ( localize(5418, "Learn More")),
361
- tooltip: ( localize(5418, "Learn More")),
425
+ id: "workbench.action.openChatStatusItemLink",
426
+ label: ( localize(5611, "Learn More")),
427
+ tooltip: ( localize(5611, "Learn More")),
362
428
  class: ThemeIcon.asClassName(Codicon.linkExternal),
363
- run: () => this.runCommandAndClose(() => this.openerService.open(( URI.parse(headerLink)))),
429
+ run: () => this.runCommandAndClose(() => this.openerService.open(( URI.parse(headerLink))))
364
430
  }) : undefined);
365
- const itemBody = itemElement.appendChild($('div.body'));
366
- const description = itemBody.appendChild($('span.description'));
431
+ const itemBody = itemElement.appendChild($("div.body"));
432
+ const description = itemBody.appendChild($("span.description"));
367
433
  this.renderTextPlus(description, item.description, disposables);
368
434
  if (item.detail) {
369
- const detail = itemBody.appendChild($('div.detail-item'));
435
+ const detail = itemBody.appendChild($("div.detail-item"));
370
436
  this.renderTextPlus(detail, item.detail, disposables);
371
437
  }
372
- return { element: itemElement, disposables };
438
+ return {
439
+ element: itemElement,
440
+ disposables
441
+ };
373
442
  }
374
443
  renderTextPlus(target, text, store) {
375
444
  for (const node of parseLinkedText(text).nodes) {
376
- if (typeof node === 'string') {
445
+ if (typeof node === "string") {
377
446
  const parts = renderLabelWithIcons(node);
378
447
  target.append(...parts);
379
- }
380
- else {
448
+ } else {
381
449
  store.add(( new Link(target, node, undefined, this.hoverService, this.openerService)));
382
450
  }
383
451
  }
384
452
  }
385
453
  runCommandAndClose(commandOrFn, ...args) {
386
- if (typeof commandOrFn === 'function') {
454
+ if (typeof commandOrFn === "function") {
387
455
  commandOrFn(...args);
388
- }
389
- else {
390
- this.telemetryService.publicLog2('workbenchActionExecuted', { id: commandOrFn, from: 'chat-status' });
456
+ } else {
457
+ this.telemetryService.publicLog2("workbenchActionExecuted", {
458
+ id: commandOrFn,
459
+ from: "chat-status"
460
+ });
391
461
  this.commandService.executeCommand(commandOrFn, ...args);
392
462
  }
393
463
  this.hoverService.hideHover(true);
394
464
  }
395
465
  createQuotaIndicator(container, disposables, quota, label, supportsOverage) {
396
- const quotaValue = $('span.quota-value');
397
- const quotaBit = $('div.quota-bit');
398
- const overageLabel = $('span.overage-label');
399
- const quotaIndicator = container.appendChild($('div.quota-indicator', undefined, $('div.quota-label', undefined, $('span', undefined, label), quotaValue), $('div.quota-bar', undefined, quotaBit), $('div.description', undefined, overageLabel)));
466
+ const quotaValue = $("span.quota-value");
467
+ const quotaBit = $("div.quota-bit");
468
+ const overageLabel = $("span.overage-label");
469
+ const quotaIndicator = container.appendChild($(
470
+ "div.quota-indicator",
471
+ undefined,
472
+ $("div.quota-label", undefined, $("span", undefined, label), quotaValue),
473
+ $("div.quota-bar", undefined, quotaBit),
474
+ $("div.description", undefined, overageLabel)
475
+ ));
400
476
  if (supportsOverage && (this.chatEntitlementService.entitlement === ChatEntitlement.Pro || this.chatEntitlementService.entitlement === ChatEntitlement.ProPlus)) {
401
- const manageOverageButton = disposables.add(( new Button(
402
- quotaIndicator,
403
- { ...defaultButtonStyles, secondary: true, hoverDelegate: nativeHoverDelegate }
404
- )));
405
- manageOverageButton.label = ( localize(5419, "Manage paid premium requests"));
406
- disposables.add(manageOverageButton.onDidClick(() => this.runCommandAndClose(() => this.openerService.open(( URI.parse(defaultChat.manageOverageUrl))))));
477
+ const manageOverageButton = disposables.add(( new Button(quotaIndicator, {
478
+ ...defaultButtonStyles,
479
+ secondary: true,
480
+ hoverDelegate: nativeHoverDelegate
481
+ })));
482
+ manageOverageButton.label = ( localize(5612, "Manage paid premium requests"));
483
+ disposables.add(
484
+ manageOverageButton.onDidClick(() => this.runCommandAndClose(() => this.openerService.open(( URI.parse(defaultChat.manageOverageUrl)))))
485
+ );
407
486
  }
408
- const update = (quota) => {
409
- quotaIndicator.classList.remove('error');
410
- quotaIndicator.classList.remove('warning');
487
+ const update = quota => {
488
+ quotaIndicator.classList.remove("error");
489
+ quotaIndicator.classList.remove("warning");
411
490
  let usedPercentage;
412
- if (typeof quota === 'string' || quota.unlimited) {
491
+ if (typeof quota === "string" || quota.unlimited) {
413
492
  usedPercentage = 0;
414
- }
415
- else {
493
+ } else {
416
494
  usedPercentage = Math.max(0, 100 - quota.percentRemaining);
417
495
  }
418
- if (typeof quota === 'string') {
496
+ if (typeof quota === "string") {
419
497
  quotaValue.textContent = quota;
420
- }
421
- else if (quota.unlimited) {
422
- quotaValue.textContent = ( localize(5420, "Included"));
423
- }
424
- else if (quota.overageCount) {
498
+ } else if (quota.unlimited) {
499
+ quotaValue.textContent = ( localize(5613, "Included"));
500
+ } else if (quota.overageCount) {
425
501
  quotaValue.textContent = ( localize(
426
- 5421,
502
+ 5614,
427
503
  "+{0} requests",
428
504
  this.quotaOverageFormatter.value.format(quota.overageCount)
429
505
  ));
430
- }
431
- else {
432
- quotaValue.textContent = ( localize(5422, "{0}%", this.quotaPercentageFormatter.value.format(usedPercentage)));
506
+ } else {
507
+ quotaValue.textContent = ( localize(5615, "{0}%", this.quotaPercentageFormatter.value.format(usedPercentage)));
433
508
  }
434
509
  quotaBit.style.width = `${usedPercentage}%`;
435
510
  if (usedPercentage >= 90) {
436
- quotaIndicator.classList.add('error');
437
- }
438
- else if (usedPercentage >= 75) {
439
- quotaIndicator.classList.add('warning');
511
+ quotaIndicator.classList.add("error");
512
+ } else if (usedPercentage >= 75) {
513
+ quotaIndicator.classList.add("warning");
440
514
  }
441
515
  if (supportsOverage) {
442
- if (typeof quota !== 'string' && quota?.overageEnabled) {
443
- overageLabel.textContent = ( localize(5423, "Additional paid premium requests enabled."));
516
+ if (typeof quota !== "string" && quota?.overageEnabled) {
517
+ overageLabel.textContent = ( localize(5616, "Additional paid premium requests enabled."));
518
+ } else {
519
+ overageLabel.textContent = ( localize(5617, "Additional paid premium requests disabled."));
444
520
  }
445
- else {
446
- overageLabel.textContent = ( localize(5424, "Additional paid premium requests disabled."));
447
- }
448
- }
449
- else {
450
- overageLabel.textContent = '';
521
+ } else {
522
+ overageLabel.textContent = "";
451
523
  }
452
524
  };
453
525
  update(quota);
@@ -455,25 +527,27 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
455
527
  }
456
528
  createSettings(container, disposables) {
457
529
  const modeId = this.editorService.activeTextEditorLanguageId;
458
- const settings = container.appendChild($('div.settings'));
530
+ const settings = container.appendChild($("div.settings"));
459
531
  {
460
- const globalSetting = append(settings, $('div.setting'));
461
- this.createInlineSuggestionsSetting(globalSetting, ( localize(5425, "All files")), '*', disposables);
532
+ const globalSetting = append(settings, $("div.setting"));
533
+ this.createInlineSuggestionsSetting(globalSetting, ( localize(5618, "All files")), "*", disposables);
462
534
  if (modeId) {
463
- const languageSetting = append(settings, $('div.setting'));
464
- this.createInlineSuggestionsSetting(languageSetting, ( localize(5426, "{0}", this.languageService.getLanguageName(modeId) ?? modeId)), modeId, disposables);
535
+ const languageSetting = append(settings, $("div.setting"));
536
+ this.createInlineSuggestionsSetting(languageSetting, ( localize(5619, "{0}", this.languageService.getLanguageName(modeId) ?? modeId)), modeId, disposables);
465
537
  }
466
538
  }
467
539
  {
468
- const setting = append(settings, $('div.setting'));
469
- this.createNextEditSuggestionsSetting(setting, ( localize(5427, "Next edit suggestions")), this.getCompletionsSettingAccessor(modeId), disposables);
540
+ const setting = append(settings, $("div.setting"));
541
+ this.createNextEditSuggestionsSetting(setting, ( localize(5620, "Next edit suggestions")), this.getCompletionsSettingAccessor(modeId), disposables);
470
542
  }
471
543
  return settings;
472
544
  }
473
545
  createSetting(container, settingIdsToReEvaluate, label, accessor, disposables) {
474
- const checkbox = disposables.add(( new Checkbox(label, Boolean(accessor.readSetting()), { ...defaultCheckboxStyles })));
546
+ const checkbox = disposables.add(( new Checkbox(label, Boolean(accessor.readSetting()), {
547
+ ...defaultCheckboxStyles
548
+ })));
475
549
  container.appendChild(checkbox.domNode);
476
- const settingLabel = append(container, $('span.setting-label', undefined, label));
550
+ const settingLabel = append(container, $("span.setting-label", undefined, label));
477
551
  disposables.add(Gesture.addTarget(settingLabel));
478
552
  [EventType.CLICK, EventType$1.Tap].forEach(eventType => {
479
553
  disposables.add(addDisposableListener(settingLabel, eventType, e => {
@@ -494,60 +568,70 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
494
568
  }
495
569
  }));
496
570
  if (!this.canUseChat()) {
497
- container.classList.add('disabled');
571
+ container.classList.add("disabled");
498
572
  checkbox.disable();
499
573
  checkbox.checked = false;
500
574
  }
501
575
  return checkbox;
502
576
  }
503
577
  createInlineSuggestionsSetting(container, label, modeId, disposables) {
504
- this.createSetting(container, [defaultChat.completionsEnablementSetting], label, this.getCompletionsSettingAccessor(modeId), disposables);
578
+ this.createSetting(
579
+ container,
580
+ [defaultChat.completionsEnablementSetting],
581
+ label,
582
+ this.getCompletionsSettingAccessor(modeId),
583
+ disposables
584
+ );
505
585
  }
506
- getCompletionsSettingAccessor(modeId = '*') {
586
+ getCompletionsSettingAccessor(modeId = "*") {
507
587
  const settingId = defaultChat.completionsEnablementSetting;
508
588
  return {
509
589
  readSetting: () => isCompletionsEnabled(this.configurationService, modeId),
510
- writeSetting: (value) => {
511
- this.telemetryService.publicLog2('chatStatus.settingChanged', {
590
+ writeSetting: value => {
591
+ this.telemetryService.publicLog2("chatStatus.settingChanged", {
512
592
  settingIdentifier: settingId,
513
593
  settingMode: modeId,
514
- settingEnablement: value ? 'enabled' : 'disabled'
594
+ settingEnablement: value ? "enabled" : "disabled"
515
595
  });
516
596
  let result = this.configurationService.getValue(settingId);
517
597
  if (!isObject(result)) {
518
598
  result = Object.create(null);
519
599
  }
520
- return this.configurationService.updateValue(settingId, { ...result, [modeId]: value });
600
+ return this.configurationService.updateValue(settingId, {
601
+ ...result,
602
+ [modeId]: value
603
+ });
521
604
  }
522
605
  };
523
606
  }
524
607
  createNextEditSuggestionsSetting(container, label, completionsSettingAccessor, disposables) {
525
608
  const nesSettingId = defaultChat.nextEditSuggestionsSetting;
526
609
  const completionsSettingId = defaultChat.completionsEnablementSetting;
527
- const resource = EditorResourceAccessor.getOriginalUri(this.editorService.activeEditor, { supportSideBySide: SideBySideEditor.PRIMARY });
610
+ const resource = EditorResourceAccessor.getOriginalUri(this.editorService.activeEditor, {
611
+ supportSideBySide: SideBySideEditor.PRIMARY
612
+ });
528
613
  const checkbox = this.createSetting(container, [nesSettingId, completionsSettingId], label, {
529
614
  readSetting: () => completionsSettingAccessor.readSetting() && this.textResourceConfigurationService.getValue(resource, nesSettingId),
530
- writeSetting: (value) => {
531
- this.telemetryService.publicLog2('chatStatus.settingChanged', {
615
+ writeSetting: value => {
616
+ this.telemetryService.publicLog2("chatStatus.settingChanged", {
532
617
  settingIdentifier: nesSettingId,
533
- settingEnablement: value ? 'enabled' : 'disabled'
618
+ settingEnablement: value ? "enabled" : "disabled"
534
619
  });
535
620
  return this.textResourceConfigurationService.updateValue(resource, nesSettingId, value);
536
621
  }
537
622
  }, disposables);
538
623
  if (!completionsSettingAccessor.readSetting()) {
539
- container.classList.add('disabled');
624
+ container.classList.add("disabled");
540
625
  checkbox.disable();
541
626
  }
542
627
  disposables.add(this.configurationService.onDidChangeConfiguration(e => {
543
628
  if (e.affectsConfiguration(completionsSettingId)) {
544
629
  if (completionsSettingAccessor.readSetting() && this.canUseChat()) {
545
630
  checkbox.enable();
546
- container.classList.remove('disabled');
547
- }
548
- else {
631
+ container.classList.remove("disabled");
632
+ } else {
549
633
  checkbox.disable();
550
- container.classList.add('disabled');
634
+ container.classList.add("disabled");
551
635
  }
552
636
  }
553
637
  }));
@@ -558,38 +642,45 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
558
642
  const completionsEnabledActiveLanguage = isCompletionsEnabled(this.configurationService, this.editorService.activeTextEditorLanguageId);
559
643
  return completionsEnabled || completionsEnabledActiveLanguage;
560
644
  };
561
- const button = disposables.add(( new Button(
562
- container,
563
- { disabled: !isEnabled(), ...defaultButtonStyles, hoverDelegate: nativeHoverDelegate, secondary: true }
564
- )));
565
- const timerDisplay = container.appendChild($('span.snooze-label'));
566
- const actionBar = container.appendChild($('div.snooze-action-bar'));
567
- const toolbar = disposables.add(( new ActionBar(actionBar, { hoverDelegate: nativeHoverDelegate })));
645
+ const button = disposables.add(( new Button(container, {
646
+ disabled: !isEnabled(),
647
+ ...defaultButtonStyles,
648
+ hoverDelegate: nativeHoverDelegate,
649
+ secondary: true
650
+ })));
651
+ const timerDisplay = container.appendChild($("span.snooze-label"));
652
+ const actionBar = container.appendChild($("div.snooze-action-bar"));
653
+ const toolbar = disposables.add(( new ActionBar(actionBar, {
654
+ hoverDelegate: nativeHoverDelegate
655
+ })));
568
656
  const cancelAction = toAction({
569
- id: 'workbench.action.cancelSnoozeStatusBarLink',
570
- label: ( localize(5428, "Cancel Snooze")),
657
+ id: "workbench.action.cancelSnoozeStatusBarLink",
658
+ label: ( localize(5621, "Cancel Snooze")),
571
659
  run: () => this.inlineCompletionsService.cancelSnooze(),
572
660
  class: ThemeIcon.asClassName(Codicon.stopCircle)
573
661
  });
574
- const update = (isEnabled) => {
575
- container.classList.toggle('disabled', !isEnabled);
662
+ const update = isEnabled => {
663
+ container.classList.toggle("disabled", !isEnabled);
576
664
  toolbar.clear();
577
665
  const timeLeftMs = this.inlineCompletionsService.snoozeTimeLeft;
578
666
  if (!isEnabled || timeLeftMs <= 0) {
579
- timerDisplay.textContent = ( localize(5429, "Hide suggestions for 5 min"));
580
- timerDisplay.title = '';
667
+ timerDisplay.textContent = ( localize(5622, "Hide suggestions for 5 min"));
668
+ timerDisplay.title = "";
581
669
  button.label = label;
582
- button.setTitle(( localize(5430, "Hide inline suggestions for 5 min")));
670
+ button.setTitle(( localize(5623, "Hide inline suggestions for 5 min")));
583
671
  return true;
584
672
  }
585
673
  const timeLeftSeconds = Math.ceil(timeLeftMs / 1000);
586
674
  const minutes = Math.floor(timeLeftSeconds / 60);
587
675
  const seconds = timeLeftSeconds % 60;
588
- timerDisplay.textContent = `${minutes}:${seconds < 10 ? '0' : ''}${seconds} ${( localize(5431, "remaining"))}`;
589
- timerDisplay.title = ( localize(5432, "Inline suggestions are hidden for the remaining duration"));
590
- button.label = ( localize(5433, "+5 min"));
591
- button.setTitle(( localize(5434, "Snooze additional 5 min")));
592
- toolbar.push([cancelAction], { icon: true, label: false });
676
+ timerDisplay.textContent = `${minutes}:${seconds < 10 ? "0" : ""}${seconds} ${( localize(5624, "remaining"))}`;
677
+ timerDisplay.title = ( localize(5625, "Inline suggestions are hidden for the remaining duration"));
678
+ button.label = ( localize(5626, "+5 min"));
679
+ button.setTitle(( localize(5627, "Snooze additional 5 min")));
680
+ toolbar.push([cancelAction], {
681
+ icon: true,
682
+ label: false
683
+ });
593
684
  return false;
594
685
  };
595
686
  const timerDisposables = disposables.add(( new DisposableStore()));
@@ -599,7 +690,9 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
599
690
  if (update(enabled)) {
600
691
  return;
601
692
  }
602
- timerDisposables.add(disposableWindowInterval(getWindow(container), () => update(enabled), 1000));
693
+ timerDisposables.add(
694
+ disposableWindowInterval(getWindow(container), () => update(enabled), 1000)
695
+ );
603
696
  }
604
697
  updateIntervalTimer();
605
698
  disposables.add(button.onDidClick(() => {
@@ -624,14 +717,14 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
624
717
  const items = ( modelInfo.models.map(model => ({
625
718
  id: model.id,
626
719
  label: model.name,
627
- description: model.id === modelInfo.currentModelId ? ( localize(5435, "Currently selected")) : undefined,
720
+ description: model.id === modelInfo.currentModelId ? ( localize(5628, "Currently selected")) : undefined,
628
721
  picked: model.id === modelInfo.currentModelId
629
722
  })));
630
723
  const selected = await this.quickInputService.pick(items, {
631
724
  placeHolder: ( localize(
632
- 5436,
725
+ 5629,
633
726
  "Select a model for {0}",
634
- provider.displayName || 'inline completions'
727
+ provider.displayName || "inline completions"
635
728
  )),
636
729
  canPickMany: false
637
730
  });
@@ -641,23 +734,6 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
641
734
  this.hoverService.hideHover(true);
642
735
  }
643
736
  };
644
- ChatStatusDashboard = ( __decorate([
645
- ( __param(0, IChatEntitlementService)),
646
- ( __param(1, IChatStatusItemService)),
647
- ( __param(2, ICommandService)),
648
- ( __param(3, IConfigurationService)),
649
- ( __param(4, IEditorService)),
650
- ( __param(5, IHoverService)),
651
- ( __param(6, ILanguageService)),
652
- ( __param(7, IOpenerService)),
653
- ( __param(8, ITelemetryService)),
654
- ( __param(9, ITextResourceConfigurationService)),
655
- ( __param(10, IInlineCompletionsService)),
656
- ( __param(11, IChatSessionsService)),
657
- ( __param(12, IMarkdownRendererService)),
658
- ( __param(13, ILanguageFeaturesService)),
659
- ( __param(14, IQuickInputService)),
660
- ( __param(15, IViewsService))
661
- ], ChatStatusDashboard));
737
+ ChatStatusDashboard = ( __decorate([( __param(0, IChatEntitlementService)), ( __param(1, IChatStatusItemService)), ( __param(2, ICommandService)), ( __param(3, IConfigurationService)), ( __param(4, IEditorService)), ( __param(5, IHoverService)), ( __param(6, ILanguageService)), ( __param(7, IOpenerService)), ( __param(8, ITelemetryService)), ( __param(9, ITextResourceConfigurationService)), ( __param(10, IInlineCompletionsService)), ( __param(11, IChatSessionsService)), ( __param(12, IMarkdownRendererService)), ( __param(13, ILanguageFeaturesService)), ( __param(14, IQuickInputService)), ( __param(15, IViewsService))], ChatStatusDashboard));
662
738
 
663
739
  export { ChatStatusDashboard };