@codingame/monaco-vscode-chat-service-override 32.0.0 → 32.0.2
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.
- package/index.js +1 -0
- package/package.json +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +637 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +53 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +22 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +97 -97
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +43 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +58 -58
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +25 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +50 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +51 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +229 -229
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.view.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.view.contribution.js +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +99 -99
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +22 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +24 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +23 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +33 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +43 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +26 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +57 -57
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +25 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +27 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +39 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +23 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +150 -150
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +15 -15
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +20 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +10 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
|
@@ -46,7 +46,7 @@ const VENDOR_ROW_HEIGHT = 30;
|
|
|
46
46
|
const MODEL_ROW_HEIGHT = 26;
|
|
47
47
|
class ModelsFilterAction extends Action {
|
|
48
48
|
constructor() {
|
|
49
|
-
super("workbench.models.filter", ( localize(
|
|
49
|
+
super("workbench.models.filter", ( localize(6409, "Filter")), ThemeIcon.asClassName(Codicon.filter));
|
|
50
50
|
}
|
|
51
51
|
async run() {}
|
|
52
52
|
}
|
|
@@ -97,7 +97,7 @@ let ModelsSearchFilterDropdownMenuActionViewItem = class ModelsSearchFilterDropd
|
|
|
97
97
|
return {
|
|
98
98
|
id: `provider-${vendor}`,
|
|
99
99
|
label: displayName,
|
|
100
|
-
tooltip: ( localize(
|
|
100
|
+
tooltip: ( localize(6410, "Filter by {0}", displayName)),
|
|
101
101
|
class: undefined,
|
|
102
102
|
enabled: true,
|
|
103
103
|
checked: isChecked,
|
|
@@ -114,7 +114,7 @@ let ModelsSearchFilterDropdownMenuActionViewItem = class ModelsSearchFilterDropd
|
|
|
114
114
|
return {
|
|
115
115
|
id: `capability-${capability}`,
|
|
116
116
|
label,
|
|
117
|
-
tooltip: ( localize(
|
|
117
|
+
tooltip: ( localize(6411, "Filter by {0}", label)),
|
|
118
118
|
class: undefined,
|
|
119
119
|
enabled: true,
|
|
120
120
|
checked: isChecked,
|
|
@@ -130,7 +130,7 @@ let ModelsSearchFilterDropdownMenuActionViewItem = class ModelsSearchFilterDropd
|
|
|
130
130
|
}
|
|
131
131
|
getActions() {
|
|
132
132
|
const actions = [];
|
|
133
|
-
actions.push(this.createCapabilityAction("tools", ( localize(
|
|
133
|
+
actions.push(this.createCapabilityAction("tools", ( localize(6412, "Tools"))), this.createCapabilityAction("vision", ( localize(6413, "Vision"))), this.createCapabilityAction("agent", ( localize(6414, "Agent Mode"))));
|
|
134
134
|
const configuredVendors = this.viewModel.getConfiguredVendors();
|
|
135
135
|
if (configuredVendors.length > 1) {
|
|
136
136
|
actions.push(( new Separator()));
|
|
@@ -212,7 +212,7 @@ class GutterColumnRenderer extends ModelsTableColumnRenderer {
|
|
|
212
212
|
if (templateData.listRowElement) {
|
|
213
213
|
templateData.listRowElement.setAttribute("aria-expanded", entry.collapsed ? "false" : "true");
|
|
214
214
|
}
|
|
215
|
-
const label = entry.collapsed ? ( localize(
|
|
215
|
+
const label = entry.collapsed ? ( localize(6415, "Expand")) : ( localize(6416, "Collapse"));
|
|
216
216
|
const toggleCollapseAction = {
|
|
217
217
|
id: "toggleCollapse",
|
|
218
218
|
label,
|
|
@@ -381,18 +381,18 @@ let CombinedCostColumnRenderer = class CombinedCostColumnRenderer extends Models
|
|
|
381
381
|
} = entry.model.metadata;
|
|
382
382
|
const hasCost = inputCost !== undefined || outputCost !== undefined || cacheCost !== undefined;
|
|
383
383
|
if (hasCost) {
|
|
384
|
-
templateData.inputCell.textContent = inputCost !== undefined ? ( localize(
|
|
385
|
-
templateData.outputCell.textContent = outputCost !== undefined ? ( localize(
|
|
386
|
-
templateData.cacheCell.textContent = cacheCost !== undefined ? ( localize(
|
|
384
|
+
templateData.inputCell.textContent = inputCost !== undefined ? ( localize(6417, "In: {0}", inputCost)) : "";
|
|
385
|
+
templateData.outputCell.textContent = outputCost !== undefined ? ( localize(6418, "Out: {0}", outputCost)) : "";
|
|
386
|
+
templateData.cacheCell.textContent = cacheCost !== undefined ? ( localize(6419, "Cache: {0}", cacheCost)) : "";
|
|
387
387
|
const parts = [];
|
|
388
388
|
if (inputCost !== undefined) {
|
|
389
|
-
parts.push(inputCost === 1 ? ( localize(
|
|
389
|
+
parts.push(inputCost === 1 ? ( localize(6420, "Input: {0} credit per 1M tokens", inputCost)) : ( localize(6421, "Input: {0} credits per 1M tokens", inputCost)));
|
|
390
390
|
}
|
|
391
391
|
if (outputCost !== undefined) {
|
|
392
|
-
parts.push(outputCost === 1 ? ( localize(
|
|
392
|
+
parts.push(outputCost === 1 ? ( localize(6422, "Output: {0} credit per 1M tokens", outputCost)) : ( localize(6423, "Output: {0} credits per 1M tokens", outputCost)));
|
|
393
393
|
}
|
|
394
394
|
if (cacheCost !== undefined) {
|
|
395
|
-
parts.push(cacheCost === 1 ? ( localize(
|
|
395
|
+
parts.push(cacheCost === 1 ? ( localize(6424, "Cache: {0} credit per 1M tokens", cacheCost)) : ( localize(6425, "Cache: {0} credits per 1M tokens", cacheCost)));
|
|
396
396
|
}
|
|
397
397
|
templateData.elementDisposables.add(
|
|
398
398
|
this.hoverService.setupDelayedHoverAtMouse(templateData.container, () => ({
|
|
@@ -409,7 +409,7 @@ let CombinedCostColumnRenderer = class CombinedCostColumnRenderer extends Models
|
|
|
409
409
|
templateData.inputCell.textContent = pricingText;
|
|
410
410
|
templateData.elementDisposables.add(
|
|
411
411
|
this.hoverService.setupDelayedHoverAtMouse(templateData.container, () => ({
|
|
412
|
-
content: ( localize(
|
|
412
|
+
content: ( localize(6426, "Pricing: {0}", pricingText)),
|
|
413
413
|
appearance: {
|
|
414
414
|
compact: true,
|
|
415
415
|
skipFadeInAnimation: true
|
|
@@ -463,7 +463,7 @@ let TokenLimitsColumnRenderer = class TokenLimitsColumnRenderer extends ModelsTa
|
|
|
463
463
|
const tokenDiv = append(templateData.tokenLimitsElement, $(".token-limit-item"));
|
|
464
464
|
const tokenText = append(tokenDiv, $("span"));
|
|
465
465
|
tokenText.textContent = formatTokenCount(totalTokens);
|
|
466
|
-
markdown.appendMarkdown(`${( localize(
|
|
466
|
+
markdown.appendMarkdown(`${( localize(6427, "Context Size"))}: `);
|
|
467
467
|
markdown.appendMarkdown(`${formatTokenCount(totalTokens)}`);
|
|
468
468
|
}
|
|
469
469
|
templateData.elementDisposables.add(
|
|
@@ -518,7 +518,7 @@ class CapabilitiesColumnRenderer extends ModelsTableColumnRenderer {
|
|
|
518
518
|
templateData.elementDisposables.add(this.createCapabilityButton(
|
|
519
519
|
templateData.metadataRow,
|
|
520
520
|
capabilityMatches?.includes("toolCalling") || false,
|
|
521
|
-
( localize(
|
|
521
|
+
( localize(6428, "Tools")),
|
|
522
522
|
"tools"
|
|
523
523
|
));
|
|
524
524
|
}
|
|
@@ -526,7 +526,7 @@ class CapabilitiesColumnRenderer extends ModelsTableColumnRenderer {
|
|
|
526
526
|
templateData.elementDisposables.add(this.createCapabilityButton(
|
|
527
527
|
templateData.metadataRow,
|
|
528
528
|
capabilityMatches?.includes("vision") || false,
|
|
529
|
-
( localize(
|
|
529
|
+
( localize(6429, "Vision")),
|
|
530
530
|
"vision"
|
|
531
531
|
));
|
|
532
532
|
}
|
|
@@ -601,17 +601,17 @@ let ActionsColumnRenderer = class ActionsColumnRenderer extends ModelsTableColum
|
|
|
601
601
|
if (vendorEntry.vendor.configuration) {
|
|
602
602
|
secondaryActions.push(toAction({
|
|
603
603
|
id: "configureAction",
|
|
604
|
-
label: ( localize(
|
|
604
|
+
label: ( localize(6430, "Configure...")),
|
|
605
605
|
run: () => this.languageModelsService.configureLanguageModelsProviderGroup(vendorEntry.vendor.vendor, vendorEntry.group.name)
|
|
606
606
|
}));
|
|
607
607
|
secondaryActions.push(toAction({
|
|
608
608
|
id: "deleteAction",
|
|
609
|
-
label: ( localize(
|
|
609
|
+
label: ( localize(6431, "Delete")),
|
|
610
610
|
class: ThemeIcon.asClassName(Codicon.trash),
|
|
611
611
|
run: async () => {
|
|
612
612
|
const result = await this.dialogService.confirm({
|
|
613
613
|
type: "info",
|
|
614
|
-
message: ( localize(
|
|
614
|
+
message: ( localize(6432, "Would you like to delete {0}?", vendorEntry.group.name))
|
|
615
615
|
});
|
|
616
616
|
if (!result.confirmed) {
|
|
617
617
|
return;
|
|
@@ -623,7 +623,7 @@ let ActionsColumnRenderer = class ActionsColumnRenderer extends ModelsTableColum
|
|
|
623
623
|
} else if (vendorEntry.vendor.managementCommand) {
|
|
624
624
|
primaryActions.push(toAction({
|
|
625
625
|
id: "manageVendor",
|
|
626
|
-
label: ( localize(
|
|
626
|
+
label: ( localize(6433, "Manage {0}...", vendorEntry.group.name)),
|
|
627
627
|
class: ThemeIcon.asClassName(Codicon.gear),
|
|
628
628
|
run: async () => {
|
|
629
629
|
await this.commandService.executeCommand(vendorEntry.vendor.managementCommand, vendorEntry.vendor.vendor);
|
|
@@ -642,7 +642,7 @@ let ActionsColumnRenderer = class ActionsColumnRenderer extends ModelsTableColum
|
|
|
642
642
|
const secondaryActions = [...configActions];
|
|
643
643
|
secondaryActions.push(toAction({
|
|
644
644
|
id: "configureModel",
|
|
645
|
-
label: ( localize(
|
|
645
|
+
label: ( localize(6434, "Configure...")),
|
|
646
646
|
run: () => this.languageModelsService.configureModel(entry.model.identifier)
|
|
647
647
|
}));
|
|
648
648
|
templateData.actionBar.setActions([], secondaryActions);
|
|
@@ -726,7 +726,7 @@ let ChatModelsWidget = class ChatModelsWidget extends Disposable {
|
|
|
726
726
|
}
|
|
727
727
|
create(container) {
|
|
728
728
|
const searchAndButtonContainer = append(container, $(".models-search-and-button-container"));
|
|
729
|
-
const placeholder = ( localize(
|
|
729
|
+
const placeholder = ( localize(6435, "Type to search..."));
|
|
730
730
|
const searchContainer = append(searchAndButtonContainer, $(".models-search-container"));
|
|
731
731
|
this.searchWidget = this._register(
|
|
732
732
|
this.instantiationService.createInstance(SuggestEnabledInput, "chatModelsWidget.searchbox", searchContainer, {
|
|
@@ -757,8 +757,8 @@ let ChatModelsWidget = class ChatModelsWidget extends Disposable {
|
|
|
757
757
|
})
|
|
758
758
|
);
|
|
759
759
|
const filterAction = this._register(( new ModelsFilterAction()));
|
|
760
|
-
const clearSearchAction = this._register(( new Action("workbench.models.clearSearch", ( localize(
|
|
761
|
-
const collapseAllAction = this._register(( new Action("workbench.models.collapseAll", ( localize(
|
|
760
|
+
const clearSearchAction = this._register(( new Action("workbench.models.clearSearch", ( localize(6436, "Clear Search")), ThemeIcon.asClassName(preferencesClearInputIcon), false, () => this.clearSearch())));
|
|
761
|
+
const collapseAllAction = this._register(( new Action("workbench.models.collapseAll", ( localize(6437, "Collapse All")), ThemeIcon.asClassName(Codicon.collapseAll), false, () => {
|
|
762
762
|
this.viewModel.collapseAll();
|
|
763
763
|
})));
|
|
764
764
|
collapseAllAction.enabled = ( this.viewModel.viewModelEntries.some(e => isLanguageModelGroupEntry(e) || isLanguageModelProviderEntry(e)));
|
|
@@ -791,7 +791,7 @@ let ChatModelsWidget = class ChatModelsWidget extends Disposable {
|
|
|
791
791
|
supportIcons: true
|
|
792
792
|
};
|
|
793
793
|
this.addButton = this._register(( new Button(this.addButtonContainer, buttonOptions)));
|
|
794
|
-
this.addButton.label = `$(${Codicon.add.id}) ${( localize(
|
|
794
|
+
this.addButton.label = `$(${Codicon.add.id}) ${( localize(6438, "Add Models..."))}`;
|
|
795
795
|
this.addButton.element.classList.add("models-add-model-button");
|
|
796
796
|
this.updateAddModelsButton();
|
|
797
797
|
this._register(this.addButton.onDidClick(e => {
|
|
@@ -848,7 +848,7 @@ let ChatModelsWidget = class ChatModelsWidget extends Disposable {
|
|
|
848
848
|
return row;
|
|
849
849
|
}
|
|
850
850
|
}, {
|
|
851
|
-
label: ( localize(
|
|
851
|
+
label: ( localize(6439, "Name")),
|
|
852
852
|
tooltip: "",
|
|
853
853
|
weight: 0.35,
|
|
854
854
|
minimumWidth: 200,
|
|
@@ -861,7 +861,7 @@ let ChatModelsWidget = class ChatModelsWidget extends Disposable {
|
|
|
861
861
|
e => !isLanguageModelProviderEntry(e) && !isLanguageModelGroupEntry(e) && !isStatusEntry(e) && (e.model.metadata.inputCost !== undefined || e.model.metadata.outputCost !== undefined || e.model.metadata.cacheCost !== undefined)
|
|
862
862
|
));
|
|
863
863
|
columns.push({
|
|
864
|
-
label: ( localize(
|
|
864
|
+
label: ( localize(6440, "Context Size")),
|
|
865
865
|
tooltip: "",
|
|
866
866
|
weight: 0.1,
|
|
867
867
|
minimumWidth: 140,
|
|
@@ -870,7 +870,7 @@ let ChatModelsWidget = class ChatModelsWidget extends Disposable {
|
|
|
870
870
|
return row;
|
|
871
871
|
}
|
|
872
872
|
}, {
|
|
873
|
-
label: ( localize(
|
|
873
|
+
label: ( localize(6441, "Capabilities")),
|
|
874
874
|
tooltip: "",
|
|
875
875
|
weight: 0.15,
|
|
876
876
|
minimumWidth: 180,
|
|
@@ -879,7 +879,7 @@ let ChatModelsWidget = class ChatModelsWidget extends Disposable {
|
|
|
879
879
|
return row;
|
|
880
880
|
}
|
|
881
881
|
}, {
|
|
882
|
-
label: hasAnyCostFields ? ( localize(
|
|
882
|
+
label: hasAnyCostFields ? ( localize(6442, "Cost (Credits per 1M Tokens)")) : ( localize(6443, "Pricing")),
|
|
883
883
|
tooltip: "",
|
|
884
884
|
weight: hasAnyCostFields ? 0.24 : 0.15,
|
|
885
885
|
minimumWidth: hasAnyCostFields ? 240 : 200,
|
|
@@ -915,50 +915,50 @@ let ChatModelsWidget = class ChatModelsWidget extends Disposable {
|
|
|
915
915
|
accessibilityProvider: {
|
|
916
916
|
getAriaLabel: e => {
|
|
917
917
|
if (isLanguageModelProviderEntry(e)) {
|
|
918
|
-
return localize(
|
|
918
|
+
return localize(6444, "{0} Models", e.vendorEntry.group.name);
|
|
919
919
|
} else if (isLanguageModelGroupEntry(e)) {
|
|
920
|
-
return e.id === "visible" ? ( localize(
|
|
920
|
+
return e.id === "visible" ? ( localize(6445, "Visible Models")) : ( localize(6446, "Hidden Models"));
|
|
921
921
|
} else if (isStatusEntry(e)) {
|
|
922
|
-
return localize(
|
|
922
|
+
return localize(6447, "Status: {0}", e.message);
|
|
923
923
|
}
|
|
924
924
|
const ariaLabels = [];
|
|
925
925
|
ariaLabels.push(( localize(
|
|
926
|
-
|
|
926
|
+
6448,
|
|
927
927
|
"{0} from {1}",
|
|
928
928
|
e.model.metadata.name,
|
|
929
929
|
e.model.provider.vendor.displayName
|
|
930
930
|
)));
|
|
931
931
|
if (e.model.metadata.maxInputTokens || e.model.metadata.maxOutputTokens) {
|
|
932
932
|
const totalTokens = (e.model.metadata.maxInputTokens ?? 0) + (e.model.metadata.maxOutputTokens ?? 0);
|
|
933
|
-
ariaLabels.push(( localize(
|
|
933
|
+
ariaLabels.push(( localize(6449, "Context size: {0} tokens", formatTokenCount(totalTokens))));
|
|
934
934
|
}
|
|
935
935
|
if (e.model.metadata.capabilities) {
|
|
936
936
|
ariaLabels.push(( localize(
|
|
937
|
-
|
|
937
|
+
6450,
|
|
938
938
|
"Capabilities: {0}",
|
|
939
939
|
( Object.keys(e.model.metadata.capabilities)).join(", ")
|
|
940
940
|
)));
|
|
941
941
|
}
|
|
942
942
|
const pricingText = e.model.metadata.pricing ?? "-";
|
|
943
943
|
if (pricingText !== "-") {
|
|
944
|
-
ariaLabels.push(( localize(
|
|
944
|
+
ariaLabels.push(( localize(6451, "Pricing: {0}", pricingText)));
|
|
945
945
|
}
|
|
946
946
|
if (e.model.metadata.inputCost !== undefined) {
|
|
947
|
-
ariaLabels.push(e.model.metadata.inputCost === 1 ? ( localize(
|
|
947
|
+
ariaLabels.push(e.model.metadata.inputCost === 1 ? ( localize(6452, "Input cost: {0} credit per 1M tokens", e.model.metadata.inputCost)) : ( localize(6453, "Input cost: {0} credits per 1M tokens", e.model.metadata.inputCost)));
|
|
948
948
|
}
|
|
949
949
|
if (e.model.metadata.outputCost !== undefined) {
|
|
950
|
-
ariaLabels.push(e.model.metadata.outputCost === 1 ? ( localize(
|
|
951
|
-
|
|
950
|
+
ariaLabels.push(e.model.metadata.outputCost === 1 ? ( localize(6454, "Output cost: {0} credit per 1M tokens", e.model.metadata.outputCost)) : ( localize(
|
|
951
|
+
6455,
|
|
952
952
|
"Output cost: {0} credits per 1M tokens",
|
|
953
953
|
e.model.metadata.outputCost
|
|
954
954
|
)));
|
|
955
955
|
}
|
|
956
956
|
if (e.model.metadata.cacheCost !== undefined) {
|
|
957
|
-
ariaLabels.push(e.model.metadata.cacheCost === 1 ? ( localize(
|
|
957
|
+
ariaLabels.push(e.model.metadata.cacheCost === 1 ? ( localize(6456, "Cache cost: {0} credit per 1M tokens", e.model.metadata.cacheCost)) : ( localize(6457, "Cache cost: {0} credits per 1M tokens", e.model.metadata.cacheCost)));
|
|
958
958
|
}
|
|
959
959
|
return ariaLabels.join(". ");
|
|
960
960
|
},
|
|
961
|
-
getWidgetAriaLabel: () => ( localize(
|
|
961
|
+
getWidgetAriaLabel: () => ( localize(6458, "Language Models"))
|
|
962
962
|
},
|
|
963
963
|
multipleSelectionSupport: true,
|
|
964
964
|
setRowLineHeight: false,
|
|
@@ -1009,7 +1009,7 @@ let ChatModelsWidget = class ChatModelsWidget extends Disposable {
|
|
|
1009
1009
|
if (configureVendor.managementCommand) {
|
|
1010
1010
|
actions.push(toAction({
|
|
1011
1011
|
id: "configureVendor",
|
|
1012
|
-
label: ( localize(
|
|
1012
|
+
label: ( localize(6459, "Configure")),
|
|
1013
1013
|
run: async () => {
|
|
1014
1014
|
await this.commandService.executeCommand(configureVendor.managementCommand, configureVendor.vendor);
|
|
1015
1015
|
await this.viewModel.refresh();
|
|
@@ -1018,7 +1018,7 @@ let ChatModelsWidget = class ChatModelsWidget extends Disposable {
|
|
|
1018
1018
|
} else {
|
|
1019
1019
|
actions.push(toAction({
|
|
1020
1020
|
id: "configureVendor",
|
|
1021
|
-
label: ( localize(
|
|
1021
|
+
label: ( localize(6459, "Configure")),
|
|
1022
1022
|
run: () => this.languageModelsService.configureLanguageModelsProviderGroup(configureVendor.vendor, configureGroup)
|
|
1023
1023
|
}));
|
|
1024
1024
|
}
|
|
@@ -1080,7 +1080,7 @@ let ChatModelsWidget = class ChatModelsWidget extends Disposable {
|
|
|
1080
1080
|
const isManagedEntitlement = entitlement === ChatEntitlement.Business || entitlement === ChatEntitlement.Enterprise;
|
|
1081
1081
|
const supportsAddingModels = this.chatEntitlementService.isInternal || (isManagedEntitlement && this.chatEntitlementService.clientByokEnabled) || (entitlement !== ChatEntitlement.Unknown && entitlement !== ChatEntitlement.Available && !isManagedEntitlement);
|
|
1082
1082
|
this.addButton.enabled = supportsAddingModels && configurableVendors.length > 0;
|
|
1083
|
-
this.addButton.setTitle(!supportsAddingModels && isManagedEntitlement ? ( localize(
|
|
1083
|
+
this.addButton.setTitle(!supportsAddingModels && isManagedEntitlement ? ( localize(6460, "Adding models is managed by your organization")) : "");
|
|
1084
1084
|
this.dropdownActions = ( configurableVendors.map(vendor => toAction({
|
|
1085
1085
|
id: `enable-${vendor.vendor}`,
|
|
1086
1086
|
label: vendor.displayName,
|
|
@@ -133,11 +133,11 @@ const chatOutputRendererContributionSchema = {
|
|
|
133
133
|
properties: {
|
|
134
134
|
viewType: {
|
|
135
135
|
type: "string",
|
|
136
|
-
description: ( localize(
|
|
136
|
+
description: ( localize(6461, "Unique identifier for the renderer."))
|
|
137
137
|
},
|
|
138
138
|
mimeTypes: {
|
|
139
139
|
type: "array",
|
|
140
|
-
description: ( localize(
|
|
140
|
+
description: ( localize(6462, "MIME types that this renderer can handle")),
|
|
141
141
|
items: {
|
|
142
142
|
type: "string"
|
|
143
143
|
}
|
|
@@ -152,7 +152,7 @@ const chatOutputRenderContributionPoint = ExtensionsRegistry.registerExtensionPo
|
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
154
|
jsonSchema: {
|
|
155
|
-
description: ( localize(
|
|
155
|
+
description: ( localize(6463, "Contributes a renderer for specific MIME types in chat outputs")),
|
|
156
156
|
type: "array",
|
|
157
157
|
items: chatOutputRendererContributionSchema
|
|
158
158
|
}
|
|
@@ -29,10 +29,10 @@ import { ChatModeKind, ChatAgentLocation } from '@codingame/monaco-vscode-api/vs
|
|
|
29
29
|
import { ChatViewContainerId, ChatViewId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
30
30
|
import { ChatViewPane } from './widgetHosts/viewPane/chatViewPane.js';
|
|
31
31
|
|
|
32
|
-
const chatViewIcon = registerIcon("chat-view-icon", Codicon.chatSparkle, ( localize(
|
|
32
|
+
const chatViewIcon = registerIcon("chat-view-icon", Codicon.chatSparkle, ( localize(6464, "View icon of the chat view.")));
|
|
33
33
|
const chatViewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
34
34
|
id: ChatViewContainerId,
|
|
35
|
-
title: ( localize2(
|
|
35
|
+
title: ( localize2(6465, "Chat")),
|
|
36
36
|
icon: chatViewIcon,
|
|
37
37
|
ctorDescriptor: ( new SyncDescriptor(ViewPaneContainer, [ChatViewContainerId, {
|
|
38
38
|
mergeViewWithContainerWhenSingleView: true
|
|
@@ -49,13 +49,13 @@ const chatViewDescriptor = {
|
|
|
49
49
|
containerIcon: chatViewContainer.icon,
|
|
50
50
|
containerTitle: chatViewContainer.title.value,
|
|
51
51
|
singleViewPaneContainerTitle: chatViewContainer.title.value,
|
|
52
|
-
name: ( localize2(
|
|
52
|
+
name: ( localize2(6465, "Chat")),
|
|
53
53
|
canToggleVisibility: false,
|
|
54
54
|
canMoveView: true,
|
|
55
55
|
openCommandActionDescriptor: {
|
|
56
56
|
id: ChatViewContainerId,
|
|
57
57
|
title: chatViewContainer.title,
|
|
58
|
-
mnemonicTitle: ( localize(
|
|
58
|
+
mnemonicTitle: ( localize(6466, "&&Chat")),
|
|
59
59
|
keybindings: {
|
|
60
60
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyI,
|
|
61
61
|
mac: {
|
|
@@ -71,7 +71,7 @@ const chatViewDescriptor = {
|
|
|
71
71
|
const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
72
72
|
extensionPoint: "chatParticipants",
|
|
73
73
|
jsonSchema: {
|
|
74
|
-
description: ( localize(
|
|
74
|
+
description: ( localize(6467, "Contributes a chat participant")),
|
|
75
75
|
type: "array",
|
|
76
76
|
items: {
|
|
77
77
|
additionalProperties: false,
|
|
@@ -85,12 +85,12 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
85
85
|
required: ["name", "id"],
|
|
86
86
|
properties: {
|
|
87
87
|
id: {
|
|
88
|
-
description: ( localize(
|
|
88
|
+
description: ( localize(6468, "A unique id for this chat participant.")),
|
|
89
89
|
type: "string"
|
|
90
90
|
},
|
|
91
91
|
name: {
|
|
92
92
|
description: ( localize(
|
|
93
|
-
|
|
93
|
+
6469,
|
|
94
94
|
"User-facing name for this chat participant. The user will use '@' with this name to invoke the participant. Name must not contain whitespace."
|
|
95
95
|
)),
|
|
96
96
|
type: "string",
|
|
@@ -98,37 +98,37 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
98
98
|
},
|
|
99
99
|
fullName: {
|
|
100
100
|
markdownDescription: ( localize(
|
|
101
|
-
|
|
101
|
+
6470,
|
|
102
102
|
"The full name of this chat participant, which is shown as the label for responses coming from this participant. If not provided, {0} is used.",
|
|
103
103
|
"`name`"
|
|
104
104
|
)),
|
|
105
105
|
type: "string"
|
|
106
106
|
},
|
|
107
107
|
description: {
|
|
108
|
-
description: ( localize(
|
|
108
|
+
description: ( localize(6471, "A description of this chat participant, shown in the UI.")),
|
|
109
109
|
type: "string"
|
|
110
110
|
},
|
|
111
111
|
isSticky: {
|
|
112
112
|
description: ( localize(
|
|
113
|
-
|
|
113
|
+
6472,
|
|
114
114
|
"Whether invoking the command puts the chat into a persistent mode, where the command is automatically added to the chat input for the next message."
|
|
115
115
|
)),
|
|
116
116
|
type: "boolean"
|
|
117
117
|
},
|
|
118
118
|
sampleRequest: {
|
|
119
119
|
description: ( localize(
|
|
120
|
-
|
|
120
|
+
6473,
|
|
121
121
|
"When the user clicks this participant in `/help`, this text will be submitted to the participant."
|
|
122
122
|
)),
|
|
123
123
|
type: "string"
|
|
124
124
|
},
|
|
125
125
|
when: {
|
|
126
|
-
description: ( localize(
|
|
126
|
+
description: ( localize(6474, "A condition which must be true to enable this participant.")),
|
|
127
127
|
type: "string"
|
|
128
128
|
},
|
|
129
129
|
disambiguation: {
|
|
130
130
|
description: ( localize(
|
|
131
|
-
|
|
131
|
+
6475,
|
|
132
132
|
"Metadata to help with automatically routing user questions to this chat participant."
|
|
133
133
|
)),
|
|
134
134
|
type: "array",
|
|
@@ -146,21 +146,21 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
146
146
|
properties: {
|
|
147
147
|
category: {
|
|
148
148
|
markdownDescription: ( localize(
|
|
149
|
-
|
|
149
|
+
6476,
|
|
150
150
|
"A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
|
|
151
151
|
)),
|
|
152
152
|
type: "string"
|
|
153
153
|
},
|
|
154
154
|
description: {
|
|
155
155
|
description: ( localize(
|
|
156
|
-
|
|
156
|
+
6477,
|
|
157
157
|
"A detailed description of the kinds of questions that are suitable for this chat participant."
|
|
158
158
|
)),
|
|
159
159
|
type: "string"
|
|
160
160
|
},
|
|
161
161
|
examples: {
|
|
162
162
|
description: ( localize(
|
|
163
|
-
|
|
163
|
+
6478,
|
|
164
164
|
"A list of representative example questions that are suitable for this chat participant."
|
|
165
165
|
)),
|
|
166
166
|
type: "array"
|
|
@@ -170,7 +170,7 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
170
170
|
},
|
|
171
171
|
commands: {
|
|
172
172
|
markdownDescription: ( localize(
|
|
173
|
-
|
|
173
|
+
6479,
|
|
174
174
|
"Commands available for this chat participant, which the user can invoke with a `/`."
|
|
175
175
|
)),
|
|
176
176
|
type: "array",
|
|
@@ -187,36 +187,36 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
187
187
|
properties: {
|
|
188
188
|
name: {
|
|
189
189
|
description: ( localize(
|
|
190
|
-
|
|
190
|
+
6480,
|
|
191
191
|
"A short name by which this command is referred to in the UI, e.g. `fix` or `explain` for commands that fix an issue or explain code. The name should be unique among the commands provided by this participant."
|
|
192
192
|
)),
|
|
193
193
|
type: "string"
|
|
194
194
|
},
|
|
195
195
|
description: {
|
|
196
|
-
description: ( localize(
|
|
196
|
+
description: ( localize(6481, "A description of this command.")),
|
|
197
197
|
type: "string"
|
|
198
198
|
},
|
|
199
199
|
when: {
|
|
200
|
-
description: ( localize(
|
|
200
|
+
description: ( localize(6482, "A condition which must be true to enable this command.")),
|
|
201
201
|
type: "string"
|
|
202
202
|
},
|
|
203
203
|
sampleRequest: {
|
|
204
204
|
description: ( localize(
|
|
205
|
-
|
|
205
|
+
6483,
|
|
206
206
|
"When the user clicks this command in `/help`, this text will be submitted to the participant."
|
|
207
207
|
)),
|
|
208
208
|
type: "string"
|
|
209
209
|
},
|
|
210
210
|
isSticky: {
|
|
211
211
|
description: ( localize(
|
|
212
|
-
|
|
212
|
+
6472,
|
|
213
213
|
"Whether invoking the command puts the chat into a persistent mode, where the command is automatically added to the chat input for the next message."
|
|
214
214
|
)),
|
|
215
215
|
type: "boolean"
|
|
216
216
|
},
|
|
217
217
|
disambiguation: {
|
|
218
218
|
description: ( localize(
|
|
219
|
-
|
|
219
|
+
6484,
|
|
220
220
|
"Metadata to help with automatically routing user questions to this chat command."
|
|
221
221
|
)),
|
|
222
222
|
type: "array",
|
|
@@ -234,21 +234,21 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
234
234
|
properties: {
|
|
235
235
|
category: {
|
|
236
236
|
markdownDescription: ( localize(
|
|
237
|
-
|
|
237
|
+
6485,
|
|
238
238
|
"A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
|
|
239
239
|
)),
|
|
240
240
|
type: "string"
|
|
241
241
|
},
|
|
242
242
|
description: {
|
|
243
243
|
description: ( localize(
|
|
244
|
-
|
|
244
|
+
6486,
|
|
245
245
|
"A detailed description of the kinds of questions that are suitable for this chat command."
|
|
246
246
|
)),
|
|
247
247
|
type: "string"
|
|
248
248
|
},
|
|
249
249
|
examples: {
|
|
250
250
|
description: ( localize(
|
|
251
|
-
|
|
251
|
+
6487,
|
|
252
252
|
"A list of representative example questions that are suitable for this chat command."
|
|
253
253
|
)),
|
|
254
254
|
type: "array"
|
|
@@ -399,9 +399,9 @@ let ChatCompatibilityNotifier = class ChatCompatibilityNotifier extends Disposab
|
|
|
399
399
|
return;
|
|
400
400
|
}
|
|
401
401
|
this.registeredWelcomeView = true;
|
|
402
|
-
const showExtensionLabel = ( localize(
|
|
402
|
+
const showExtensionLabel = ( localize(6488, "Show Extension"));
|
|
403
403
|
const mainMessage = ( localize(
|
|
404
|
-
|
|
404
|
+
6489,
|
|
405
405
|
"Chat failed to load because the installed version of the Copilot Chat extension is not compatible with this version of {0}. Please ensure that the Copilot Chat extension is up to date.",
|
|
406
406
|
this.productService.nameLong
|
|
407
407
|
));
|
|
@@ -437,7 +437,7 @@ class ChatParticipantDataRenderer extends Disposable {
|
|
|
437
437
|
dispose: () => {}
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
const headers = [( localize(
|
|
440
|
+
const headers = [( localize(6490, "Name")), ( localize(6491, "Full Name")), ( localize(6492, "Description")), ( localize(6493, "Commands"))];
|
|
441
441
|
const rows = ( nonDefaultContributions.map(d => {
|
|
442
442
|
return [
|
|
443
443
|
"@" + d.name,
|
|
@@ -457,7 +457,7 @@ class ChatParticipantDataRenderer extends Disposable {
|
|
|
457
457
|
}
|
|
458
458
|
( Registry.as(Extensions$1.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
459
459
|
id: "chatParticipants",
|
|
460
|
-
label: ( localize(
|
|
460
|
+
label: ( localize(6494, "Chat Participants")),
|
|
461
461
|
access: {
|
|
462
462
|
canToggle: false
|
|
463
463
|
},
|
|
@@ -127,13 +127,13 @@ let ChatRepoInfoContribution = class ChatRepoInfoContribution extends Disposable
|
|
|
127
127
|
const registry = ( Registry.as(Extensions.Configuration));
|
|
128
128
|
registry.registerConfiguration({
|
|
129
129
|
id: "chatRepoInfo",
|
|
130
|
-
title: ( localize(
|
|
130
|
+
title: ( localize(6495, "Chat Repository Info")),
|
|
131
131
|
type: "object",
|
|
132
132
|
properties: {
|
|
133
133
|
[ChatConfiguration.RepoInfoEnabled]: {
|
|
134
134
|
type: "boolean",
|
|
135
135
|
description: ( localize(
|
|
136
|
-
|
|
136
|
+
6496,
|
|
137
137
|
"Controls whether lightweight repository metadata (branch, commit, remotes) is captured when a chat request is submitted for internal diagnostics."
|
|
138
138
|
)),
|
|
139
139
|
default: false
|