@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
package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js
CHANGED
|
@@ -207,9 +207,9 @@ let AICustomizationItemRenderer = class AICustomizationItemRenderer {
|
|
|
207
207
|
templateData.elementDisposables.add(this.hoverService.setupDelayedHover(templateData.container, () => {
|
|
208
208
|
let content;
|
|
209
209
|
if (element.isBuiltin) {
|
|
210
|
-
content = `${element.name}\n${( localize(
|
|
210
|
+
content = `${element.name}\n${( localize(5377, "Built-in"))}`;
|
|
211
211
|
} else if (element.extensionId) {
|
|
212
|
-
content = `${element.name}\n${( localize(
|
|
212
|
+
content = `${element.name}\n${( localize(5378, "Extension: {0}", element.extensionId))}`;
|
|
213
213
|
} else {
|
|
214
214
|
const isWorkspaceItem = element.storage === PromptsStorage.local;
|
|
215
215
|
const uriLabel = this.labelService.getUriLabel(element.uri, {
|
|
@@ -222,7 +222,7 @@ let AICustomizationItemRenderer = class AICustomizationItemRenderer {
|
|
|
222
222
|
}
|
|
223
223
|
const plugin = element.pluginUri && this.agentPluginService.plugins.get().find(p => isEqual(p.uri, element.pluginUri));
|
|
224
224
|
if (plugin) {
|
|
225
|
-
content += `\n${( localize(
|
|
225
|
+
content += `\n${( localize(5379, "Plugin: {0}", plugin.label))}`;
|
|
226
226
|
}
|
|
227
227
|
return {
|
|
228
228
|
content,
|
|
@@ -370,89 +370,89 @@ function getCountAnnouncement(section, count, isFiltering) {
|
|
|
370
370
|
case AICustomizationManagementSection.Agents:
|
|
371
371
|
if (isFiltering) {
|
|
372
372
|
if (count === 0) {
|
|
373
|
-
return localize(
|
|
373
|
+
return localize(5380, "No agents found");
|
|
374
374
|
}
|
|
375
375
|
if (count === 1) {
|
|
376
|
-
return localize(
|
|
376
|
+
return localize(5381, "1 agent found");
|
|
377
377
|
}
|
|
378
|
-
return localize(
|
|
378
|
+
return localize(5382, "{0} agents found", count);
|
|
379
379
|
}
|
|
380
380
|
if (count === 0) {
|
|
381
|
-
return localize(
|
|
381
|
+
return localize(5383, "No agents");
|
|
382
382
|
}
|
|
383
383
|
if (count === 1) {
|
|
384
|
-
return localize(
|
|
384
|
+
return localize(5384, "1 agent");
|
|
385
385
|
}
|
|
386
|
-
return localize(
|
|
386
|
+
return localize(5385, "{0} agents", count);
|
|
387
387
|
case AICustomizationManagementSection.Skills:
|
|
388
388
|
if (isFiltering) {
|
|
389
389
|
if (count === 0) {
|
|
390
|
-
return localize(
|
|
390
|
+
return localize(5386, "No skills found");
|
|
391
391
|
}
|
|
392
392
|
if (count === 1) {
|
|
393
|
-
return localize(
|
|
393
|
+
return localize(5387, "1 skill found");
|
|
394
394
|
}
|
|
395
|
-
return localize(
|
|
395
|
+
return localize(5388, "{0} skills found", count);
|
|
396
396
|
}
|
|
397
397
|
if (count === 0) {
|
|
398
|
-
return localize(
|
|
398
|
+
return localize(5389, "No skills");
|
|
399
399
|
}
|
|
400
400
|
if (count === 1) {
|
|
401
|
-
return localize(
|
|
401
|
+
return localize(5390, "1 skill");
|
|
402
402
|
}
|
|
403
|
-
return localize(
|
|
403
|
+
return localize(5391, "{0} skills", count);
|
|
404
404
|
case AICustomizationManagementSection.Instructions:
|
|
405
405
|
if (isFiltering) {
|
|
406
406
|
if (count === 0) {
|
|
407
|
-
return localize(
|
|
407
|
+
return localize(5392, "No instructions found");
|
|
408
408
|
}
|
|
409
409
|
if (count === 1) {
|
|
410
|
-
return localize(
|
|
410
|
+
return localize(5393, "1 instruction file found");
|
|
411
411
|
}
|
|
412
|
-
return localize(
|
|
412
|
+
return localize(5394, "{0} instruction files found", count);
|
|
413
413
|
}
|
|
414
414
|
if (count === 0) {
|
|
415
|
-
return localize(
|
|
415
|
+
return localize(5395, "No instructions");
|
|
416
416
|
}
|
|
417
417
|
if (count === 1) {
|
|
418
|
-
return localize(
|
|
418
|
+
return localize(5396, "1 instruction file");
|
|
419
419
|
}
|
|
420
|
-
return localize(
|
|
420
|
+
return localize(5397, "{0} instruction files", count);
|
|
421
421
|
case AICustomizationManagementSection.Hooks:
|
|
422
422
|
if (isFiltering) {
|
|
423
423
|
if (count === 0) {
|
|
424
|
-
return localize(
|
|
424
|
+
return localize(5398, "No hooks found");
|
|
425
425
|
}
|
|
426
426
|
if (count === 1) {
|
|
427
|
-
return localize(
|
|
427
|
+
return localize(5399, "1 hook found");
|
|
428
428
|
}
|
|
429
|
-
return localize(
|
|
429
|
+
return localize(5400, "{0} hooks found", count);
|
|
430
430
|
}
|
|
431
431
|
if (count === 0) {
|
|
432
|
-
return localize(
|
|
432
|
+
return localize(5401, "No hooks");
|
|
433
433
|
}
|
|
434
434
|
if (count === 1) {
|
|
435
|
-
return localize(
|
|
435
|
+
return localize(5402, "1 hook");
|
|
436
436
|
}
|
|
437
|
-
return localize(
|
|
437
|
+
return localize(5403, "{0} hooks", count);
|
|
438
438
|
case AICustomizationManagementSection.Prompts:
|
|
439
439
|
default:
|
|
440
440
|
if (isFiltering) {
|
|
441
441
|
if (count === 0) {
|
|
442
|
-
return localize(
|
|
442
|
+
return localize(5404, "No prompts found");
|
|
443
443
|
}
|
|
444
444
|
if (count === 1) {
|
|
445
|
-
return localize(
|
|
445
|
+
return localize(5405, "1 prompt found");
|
|
446
446
|
}
|
|
447
|
-
return localize(
|
|
447
|
+
return localize(5406, "{0} prompts found", count);
|
|
448
448
|
}
|
|
449
449
|
if (count === 0) {
|
|
450
|
-
return localize(
|
|
450
|
+
return localize(5407, "No prompts");
|
|
451
451
|
}
|
|
452
452
|
if (count === 1) {
|
|
453
|
-
return localize(
|
|
453
|
+
return localize(5408, "1 prompt");
|
|
454
454
|
}
|
|
455
|
-
return localize(
|
|
455
|
+
return localize(5409, "{0} prompts", count);
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
458
|
let AICustomizationListWidget = class AICustomizationListWidget extends Disposable {
|
|
@@ -527,7 +527,7 @@ let AICustomizationListWidget = class AICustomizationListWidget extends Disposab
|
|
|
527
527
|
this.searchAndButtonContainer = append(this.element, $(".list-search-and-button-container"));
|
|
528
528
|
this.searchContainer = append(this.searchAndButtonContainer, $(".list-search-container"));
|
|
529
529
|
this.searchInput = this._register(( new InputBox(this.searchContainer, this.contextViewService, {
|
|
530
|
-
placeholder: ( localize(
|
|
530
|
+
placeholder: ( localize(5410, "Type to search...")),
|
|
531
531
|
inputBoxStyles: defaultInputBoxStyles
|
|
532
532
|
})));
|
|
533
533
|
this._register(this.searchInput.onDidChange(() => {
|
|
@@ -584,19 +584,19 @@ let AICustomizationListWidget = class AICustomizationListWidget extends Disposab
|
|
|
584
584
|
getAriaLabel: entry => {
|
|
585
585
|
if (entry.type === "group-header") {
|
|
586
586
|
return localize(
|
|
587
|
-
|
|
587
|
+
5411,
|
|
588
588
|
"{0}, {1} items, {2}",
|
|
589
589
|
entry.label,
|
|
590
590
|
entry.count,
|
|
591
|
-
entry.collapsed ? ( localize(
|
|
591
|
+
entry.collapsed ? ( localize(5412, "collapsed")) : ( localize(5413, "expanded"))
|
|
592
592
|
);
|
|
593
593
|
}
|
|
594
594
|
const displayName = entry.item.displayName ?? formatDisplayName(entry.item.name);
|
|
595
595
|
const secondaryText = getCustomizationSecondaryText(entry.item.description, entry.item.filename, entry.item.promptType);
|
|
596
|
-
const nameAndDesc = secondaryText ? ( localize(
|
|
597
|
-
return entry.item.disabled ? ( localize(
|
|
596
|
+
const nameAndDesc = secondaryText ? ( localize(5414, "{0}. {1}", displayName, secondaryText)) : displayName;
|
|
597
|
+
return entry.item.disabled ? ( localize(5415, "{0}, disabled", nameAndDesc)) : nameAndDesc;
|
|
598
598
|
},
|
|
599
|
-
getWidgetAriaLabel: () => ( localize(
|
|
599
|
+
getWidgetAriaLabel: () => ( localize(5416, "Agent Customizations"))
|
|
600
600
|
},
|
|
601
601
|
keyboardNavigationLabelProvider: {
|
|
602
602
|
getKeyboardNavigationLabel: entry => entry.type === "group-header" ? entry.label : entry.item.name
|
|
@@ -672,9 +672,9 @@ let AICustomizationListWidget = class AICustomizationListWidget extends Disposab
|
|
|
672
672
|
const {
|
|
673
673
|
secondary
|
|
674
674
|
} = getContextMenuActions(actions, "inline");
|
|
675
|
-
const copyActions = item.isBuiltin ? [] : [( new Separator()), ( new Action("copyFullPath", ( localize(
|
|
675
|
+
const copyActions = item.isBuiltin ? [] : [( new Separator()), ( new Action("copyFullPath", ( localize(5417, "Copy Full Path")), undefined, true, async () => {
|
|
676
676
|
await this.clipboardService.writeText(item.uri.fsPath);
|
|
677
|
-
})), ( new Action("copyRelativePath", ( localize(
|
|
677
|
+
})), ( new Action("copyRelativePath", ( localize(5418, "Copy Relative Path")), undefined, true, async () => {
|
|
678
678
|
const basePath = this.workspaceService.getActiveProjectRoot();
|
|
679
679
|
if (basePath && item.uri.fsPath.startsWith(basePath.fsPath)) {
|
|
680
680
|
const relative = item.uri.fsPath.substring(basePath.fsPath.length + 1);
|
|
@@ -728,41 +728,41 @@ let AICustomizationListWidget = class AICustomizationListWidget extends Disposab
|
|
|
728
728
|
switch (this.currentSection) {
|
|
729
729
|
case AICustomizationManagementSection.Agents:
|
|
730
730
|
description = ( localize(
|
|
731
|
-
|
|
731
|
+
5419,
|
|
732
732
|
"Configure the AI to adopt different personas tailored to specific development tasks. Each agent has its own instructions, tools, and behavior."
|
|
733
733
|
));
|
|
734
734
|
docsUrl = "https://code.visualstudio.com/docs/copilot/customization/custom-agents";
|
|
735
|
-
learnMoreLabel = ( localize(
|
|
735
|
+
learnMoreLabel = ( localize(5420, "Learn more about custom agents"));
|
|
736
736
|
break;
|
|
737
737
|
case AICustomizationManagementSection.Skills:
|
|
738
738
|
description = ( localize(
|
|
739
|
-
|
|
739
|
+
5421,
|
|
740
740
|
"Folders of instructions, scripts, and resources that Copilot loads when relevant to perform specialized tasks."
|
|
741
741
|
));
|
|
742
742
|
docsUrl = "https://code.visualstudio.com/docs/copilot/customization/agent-skills";
|
|
743
|
-
learnMoreLabel = ( localize(
|
|
743
|
+
learnMoreLabel = ( localize(5422, "Learn more about agent skills"));
|
|
744
744
|
break;
|
|
745
745
|
case AICustomizationManagementSection.Instructions:
|
|
746
746
|
description = ( localize(
|
|
747
|
-
|
|
747
|
+
5423,
|
|
748
748
|
"Define common guidelines and rules that automatically influence how AI generates code and handles development tasks."
|
|
749
749
|
));
|
|
750
750
|
docsUrl = "https://code.visualstudio.com/docs/copilot/customization/custom-instructions";
|
|
751
|
-
learnMoreLabel = ( localize(
|
|
751
|
+
learnMoreLabel = ( localize(5424, "Learn more about custom instructions"));
|
|
752
752
|
break;
|
|
753
753
|
case AICustomizationManagementSection.Hooks:
|
|
754
|
-
description = ( localize(
|
|
754
|
+
description = ( localize(5425, "Prompts executed at specific points during an agentic lifecycle."));
|
|
755
755
|
docsUrl = "https://code.visualstudio.com/docs/copilot/customization/hooks";
|
|
756
|
-
learnMoreLabel = ( localize(
|
|
756
|
+
learnMoreLabel = ( localize(5426, "Learn more about hooks"));
|
|
757
757
|
break;
|
|
758
758
|
case AICustomizationManagementSection.Prompts:
|
|
759
759
|
default:
|
|
760
760
|
description = ( localize(
|
|
761
|
-
|
|
761
|
+
5427,
|
|
762
762
|
"Reusable prompts for common development tasks like generating code, performing reviews, or scaffolding components."
|
|
763
763
|
));
|
|
764
764
|
docsUrl = "https://code.visualstudio.com/docs/copilot/customization/prompt-files";
|
|
765
|
-
learnMoreLabel = ( localize(
|
|
765
|
+
learnMoreLabel = ( localize(5428, "Learn more about prompt files"));
|
|
766
766
|
break;
|
|
767
767
|
}
|
|
768
768
|
this.sectionDescription.textContent = description;
|
|
@@ -854,7 +854,7 @@ let AICustomizationListWidget = class AICustomizationListWidget extends Disposab
|
|
|
854
854
|
});
|
|
855
855
|
if (hasWorkspace) {
|
|
856
856
|
actions.push({
|
|
857
|
-
label: `$(${Codicon.add.id}) ${( localize(
|
|
857
|
+
label: `$(${Codicon.add.id}) ${( localize(5429, "Configure Hooks"))}`,
|
|
858
858
|
enabled: true,
|
|
859
859
|
run: () => {
|
|
860
860
|
this._onDidRequestCreateManual.fire({
|
|
@@ -866,9 +866,9 @@ let AICustomizationListWidget = class AICustomizationListWidget extends Disposab
|
|
|
866
866
|
}
|
|
867
867
|
} else if (!override?.commandId) {
|
|
868
868
|
actions.push({
|
|
869
|
-
label: `$(${Codicon.add.id}) ${( localize(
|
|
869
|
+
label: `$(${Codicon.add.id}) ${( localize(5429, "Configure Hooks"))}`,
|
|
870
870
|
enabled: hasWorkspace,
|
|
871
|
-
tooltip: hasWorkspace ? undefined : ( localize(
|
|
871
|
+
tooltip: hasWorkspace ? undefined : ( localize(5430, "Open a workspace folder to configure hooks.")),
|
|
872
872
|
run: () => {
|
|
873
873
|
this._onDidRequestCreateManual.fire({
|
|
874
874
|
type: promptType,
|
|
@@ -972,16 +972,16 @@ let AICustomizationListWidget = class AICustomizationListWidget extends Disposab
|
|
|
972
972
|
getTypeLabel() {
|
|
973
973
|
switch (this.currentSection) {
|
|
974
974
|
case AICustomizationManagementSection.Agents:
|
|
975
|
-
return localize(
|
|
975
|
+
return localize(5431, "Agent");
|
|
976
976
|
case AICustomizationManagementSection.Skills:
|
|
977
|
-
return localize(
|
|
977
|
+
return localize(5432, "Skill");
|
|
978
978
|
case AICustomizationManagementSection.Instructions:
|
|
979
|
-
return localize(
|
|
979
|
+
return localize(5433, "Instructions");
|
|
980
980
|
case AICustomizationManagementSection.Hooks:
|
|
981
|
-
return localize(
|
|
981
|
+
return localize(5434, "Hook");
|
|
982
982
|
case AICustomizationManagementSection.Prompts:
|
|
983
983
|
default:
|
|
984
|
-
return localize(
|
|
984
|
+
return localize(5435, "Prompt");
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
987
|
announceItemCount(count) {
|
|
@@ -1071,93 +1071,93 @@ let AICustomizationListWidget = class AICustomizationListWidget extends Disposab
|
|
|
1071
1071
|
groupMatchedItems(matchedItems) {
|
|
1072
1072
|
const groups = this.currentSection === AICustomizationManagementSection.Instructions ? [{
|
|
1073
1073
|
groupKey: "agent-instructions",
|
|
1074
|
-
label: ( localize(
|
|
1074
|
+
label: ( localize(5436, "Agent Instructions")),
|
|
1075
1075
|
icon: instructionsIcon,
|
|
1076
1076
|
description: ( localize(
|
|
1077
|
-
|
|
1077
|
+
5437,
|
|
1078
1078
|
"Instruction files automatically loaded for all agent interactions (e.g. AGENTS.md, CLAUDE.md, copilot-instructions.md)."
|
|
1079
1079
|
)),
|
|
1080
1080
|
items: []
|
|
1081
1081
|
}, {
|
|
1082
1082
|
groupKey: "context-instructions",
|
|
1083
|
-
label: ( localize(
|
|
1083
|
+
label: ( localize(5438, "Included Based on Context")),
|
|
1084
1084
|
icon: instructionsIcon,
|
|
1085
1085
|
description: ( localize(
|
|
1086
|
-
|
|
1086
|
+
5439,
|
|
1087
1087
|
"Instructions automatically loaded when matching files are part of the context."
|
|
1088
1088
|
)),
|
|
1089
1089
|
items: []
|
|
1090
1090
|
}, {
|
|
1091
1091
|
groupKey: "on-demand-instructions",
|
|
1092
|
-
label: ( localize(
|
|
1092
|
+
label: ( localize(5440, "Loaded on Demand")),
|
|
1093
1093
|
icon: instructionsIcon,
|
|
1094
|
-
description: ( localize(
|
|
1094
|
+
description: ( localize(5441, "Instructions loaded only when explicitly referenced.")),
|
|
1095
1095
|
items: []
|
|
1096
1096
|
}, {
|
|
1097
1097
|
groupKey: PromptsStorage.local,
|
|
1098
|
-
label: ( localize(
|
|
1098
|
+
label: ( localize(5442, "Workspace")),
|
|
1099
1099
|
icon: workspaceIcon,
|
|
1100
1100
|
description: ( localize(
|
|
1101
|
-
|
|
1101
|
+
5443,
|
|
1102
1102
|
"Customizations stored as files in your project folder and shared with your team via version control."
|
|
1103
1103
|
)),
|
|
1104
1104
|
items: []
|
|
1105
1105
|
}, {
|
|
1106
1106
|
groupKey: PromptsStorage.user,
|
|
1107
|
-
label: ( localize(
|
|
1107
|
+
label: ( localize(5444, "User")),
|
|
1108
1108
|
icon: userIcon,
|
|
1109
1109
|
description: ( localize(
|
|
1110
|
-
|
|
1110
|
+
5445,
|
|
1111
1111
|
"Customizations stored locally on your machine in a central location. Private to you and available across all projects."
|
|
1112
1112
|
)),
|
|
1113
1113
|
items: []
|
|
1114
1114
|
}, {
|
|
1115
1115
|
groupKey: PromptsStorage.plugin,
|
|
1116
|
-
label: ( localize(
|
|
1116
|
+
label: ( localize(5446, "Plugins")),
|
|
1117
1117
|
icon: pluginIcon,
|
|
1118
|
-
description: ( localize(
|
|
1118
|
+
description: ( localize(5447, "Read-only customizations provided by installed plugins.")),
|
|
1119
1119
|
items: []
|
|
1120
1120
|
}, {
|
|
1121
1121
|
groupKey: BUILTIN_STORAGE,
|
|
1122
|
-
label: ( localize(
|
|
1122
|
+
label: ( localize(5448, "Built-in")),
|
|
1123
1123
|
icon: builtinIcon,
|
|
1124
|
-
description: ( localize(
|
|
1124
|
+
description: ( localize(5449, "Built-in customizations shipped with the application.")),
|
|
1125
1125
|
items: []
|
|
1126
1126
|
}] : [{
|
|
1127
1127
|
groupKey: PromptsStorage.local,
|
|
1128
|
-
label: ( localize(
|
|
1128
|
+
label: ( localize(5442, "Workspace")),
|
|
1129
1129
|
icon: workspaceIcon,
|
|
1130
1130
|
description: ( localize(
|
|
1131
|
-
|
|
1131
|
+
5443,
|
|
1132
1132
|
"Customizations stored as files in your project folder and shared with your team via version control."
|
|
1133
1133
|
)),
|
|
1134
1134
|
items: []
|
|
1135
1135
|
}, {
|
|
1136
1136
|
groupKey: PromptsStorage.user,
|
|
1137
|
-
label: ( localize(
|
|
1137
|
+
label: ( localize(5444, "User")),
|
|
1138
1138
|
icon: userIcon,
|
|
1139
1139
|
description: ( localize(
|
|
1140
|
-
|
|
1140
|
+
5445,
|
|
1141
1141
|
"Customizations stored locally on your machine in a central location. Private to you and available across all projects."
|
|
1142
1142
|
)),
|
|
1143
1143
|
items: []
|
|
1144
1144
|
}, {
|
|
1145
1145
|
groupKey: PromptsStorage.plugin,
|
|
1146
|
-
label: ( localize(
|
|
1146
|
+
label: ( localize(5446, "Plugins")),
|
|
1147
1147
|
icon: pluginIcon,
|
|
1148
|
-
description: ( localize(
|
|
1148
|
+
description: ( localize(5447, "Read-only customizations provided by installed plugins.")),
|
|
1149
1149
|
items: []
|
|
1150
1150
|
}, {
|
|
1151
1151
|
groupKey: PromptsStorage.extension,
|
|
1152
|
-
label: ( localize(
|
|
1152
|
+
label: ( localize(5450, "Extensions")),
|
|
1153
1153
|
icon: extensionIcon,
|
|
1154
|
-
description: ( localize(
|
|
1154
|
+
description: ( localize(5451, "Read-only customizations provided by installed extensions.")),
|
|
1155
1155
|
items: []
|
|
1156
1156
|
}, {
|
|
1157
1157
|
groupKey: BUILTIN_STORAGE,
|
|
1158
|
-
label: ( localize(
|
|
1158
|
+
label: ( localize(5448, "Built-in")),
|
|
1159
1159
|
icon: builtinIcon,
|
|
1160
|
-
description: ( localize(
|
|
1160
|
+
description: ( localize(5449, "Built-in customizations shipped with the application.")),
|
|
1161
1161
|
items: []
|
|
1162
1162
|
}];
|
|
1163
1163
|
for (const item of matchedItems) {
|
|
@@ -1167,10 +1167,10 @@ let AICustomizationListWidget = class AICustomizationListWidget extends Disposab
|
|
|
1167
1167
|
let label;
|
|
1168
1168
|
switch (key) {
|
|
1169
1169
|
case "remote-host":
|
|
1170
|
-
label = ( localize(
|
|
1170
|
+
label = ( localize(5452, "Remote"));
|
|
1171
1171
|
break;
|
|
1172
1172
|
case "remote-client":
|
|
1173
|
-
label = ( localize(
|
|
1173
|
+
label = ( localize(5453, "Local"));
|
|
1174
1174
|
break;
|
|
1175
1175
|
default:
|
|
1176
1176
|
label = formatDisplayName(key);
|
|
@@ -1216,8 +1216,8 @@ let AICustomizationListWidget = class AICustomizationListWidget extends Disposab
|
|
|
1216
1216
|
const sectionIcon = this.getSectionIcon();
|
|
1217
1217
|
this.emptyStateIcon.classList.add(...ThemeIcon.asClassNameArray(sectionIcon));
|
|
1218
1218
|
if (this.searchQuery.trim()) {
|
|
1219
|
-
this.emptyStateText.textContent = ( localize(
|
|
1220
|
-
this.emptyStateSubtext.textContent = ( localize(
|
|
1219
|
+
this.emptyStateText.textContent = ( localize(5454, "No items match '{0}'", this.searchQuery));
|
|
1220
|
+
this.emptyStateSubtext.textContent = ( localize(5455, "Try a different search term"));
|
|
1221
1221
|
} else {
|
|
1222
1222
|
const emptyInfo = this.getEmptyStateInfo();
|
|
1223
1223
|
this.emptyStateText.textContent = emptyInfo.title;
|
|
@@ -1247,29 +1247,29 @@ let AICustomizationListWidget = class AICustomizationListWidget extends Disposab
|
|
|
1247
1247
|
switch (this.currentSection) {
|
|
1248
1248
|
case AICustomizationManagementSection.Agents:
|
|
1249
1249
|
return {
|
|
1250
|
-
title: ( localize(
|
|
1251
|
-
description: ( localize(
|
|
1250
|
+
title: ( localize(5456, "No agents yet")),
|
|
1251
|
+
description: ( localize(5457, "Create your first custom agent to get started"))
|
|
1252
1252
|
};
|
|
1253
1253
|
case AICustomizationManagementSection.Skills:
|
|
1254
1254
|
return {
|
|
1255
|
-
title: ( localize(
|
|
1256
|
-
description: ( localize(
|
|
1255
|
+
title: ( localize(5458, "No skills yet")),
|
|
1256
|
+
description: ( localize(5459, "Create your first skill to extend agent capabilities"))
|
|
1257
1257
|
};
|
|
1258
1258
|
case AICustomizationManagementSection.Instructions:
|
|
1259
1259
|
return {
|
|
1260
|
-
title: ( localize(
|
|
1261
|
-
description: ( localize(
|
|
1260
|
+
title: ( localize(5460, "No instructions yet")),
|
|
1261
|
+
description: ( localize(5461, "Add instructions to teach Copilot about your codebase"))
|
|
1262
1262
|
};
|
|
1263
1263
|
case AICustomizationManagementSection.Hooks:
|
|
1264
1264
|
return {
|
|
1265
|
-
title: ( localize(
|
|
1266
|
-
description: ( localize(
|
|
1265
|
+
title: ( localize(5462, "No hooks yet")),
|
|
1266
|
+
description: ( localize(5463, "Create hooks to execute commands at agent lifecycle events"))
|
|
1267
1267
|
};
|
|
1268
1268
|
case AICustomizationManagementSection.Prompts:
|
|
1269
1269
|
default:
|
|
1270
1270
|
return {
|
|
1271
|
-
title: ( localize(
|
|
1272
|
-
description: ( localize(
|
|
1271
|
+
title: ( localize(5464, "No prompts yet")),
|
|
1272
|
+
description: ( localize(5465, "Create reusable prompts for common tasks"))
|
|
1273
1273
|
};
|
|
1274
1274
|
}
|
|
1275
1275
|
}
|