@codingame/monaco-vscode-chat-service-override 23.0.2 → 23.0.4
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/package.json +43 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +106 -74
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +10 -10
- 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/chatEditing/simpleBrowserEditorOverlay.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +28 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/localChatSessionsProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/chatSessionsView.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.js +33 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +52 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.js +65 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsConfirmationService.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +57 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +4 -4
- 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/tools/toolSetsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +26 -26
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +53 -53
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +27 -27
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +22 -23
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +8 -8
- 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 +18 -18
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +10 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
- 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/monitoring/outputMonitor.js +9 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +10 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +15 -15
- 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
|
@@ -295,7 +295,7 @@ configurationRegistry.registerConfiguration({
|
|
|
295
295
|
'**/.vscode/*.json': false,
|
|
296
296
|
'**/.git/**': false,
|
|
297
297
|
'**/{package.json,package-lock.json,server.xml,build.rs,web.config,.gitattributes,.env}': false,
|
|
298
|
-
'**/*.{csproj,fsproj,vbproj,vcxproj,proj,targets,props}': false,
|
|
298
|
+
'**/*.{code-workspace,csproj,fsproj,vbproj,vcxproj,proj,targets,props}': false,
|
|
299
299
|
},
|
|
300
300
|
markdownDescription: ( localize(
|
|
301
301
|
4855,
|
|
@@ -306,10 +306,42 @@ configurationRegistry.registerConfiguration({
|
|
|
306
306
|
type: 'boolean',
|
|
307
307
|
}
|
|
308
308
|
},
|
|
309
|
+
[ChatConfiguration.EligibleForAutoApproval]: {
|
|
310
|
+
default: {},
|
|
311
|
+
markdownDescription: ( localize(
|
|
312
|
+
4856,
|
|
313
|
+
'Controls which tools are eligible for automatic approval. Tools set to \'false\' will always present a confirmation and will never offer the option to auto-approve. The default behavior (or setting a tool to \'true\') may result in the tool offering auto-approval options.'
|
|
314
|
+
)),
|
|
315
|
+
type: 'object',
|
|
316
|
+
additionalProperties: {
|
|
317
|
+
type: 'boolean',
|
|
318
|
+
},
|
|
319
|
+
tags: ['experimental'],
|
|
320
|
+
examples: [
|
|
321
|
+
{
|
|
322
|
+
'fetch': false,
|
|
323
|
+
'runTests': false
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
policy: {
|
|
327
|
+
name: 'ChatToolsEligibleForAutoApproval',
|
|
328
|
+
category: PolicyCategory.InteractiveSession,
|
|
329
|
+
minimumVersion: '1.106',
|
|
330
|
+
localization: {
|
|
331
|
+
description: {
|
|
332
|
+
key: 'chat.tools.eligibleForAutoApproval',
|
|
333
|
+
value: ( localize(
|
|
334
|
+
4856,
|
|
335
|
+
'Controls which tools are eligible for automatic approval. Tools set to \'false\' will always present a confirmation and will never offer the option to auto-approve. The default behavior (or setting a tool to \'true\') may result in the tool offering auto-approval options.'
|
|
336
|
+
))
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
}
|
|
340
|
+
},
|
|
309
341
|
'chat.sendElementsToChat.enabled': {
|
|
310
342
|
default: true,
|
|
311
343
|
description: ( localize(
|
|
312
|
-
|
|
344
|
+
4857,
|
|
313
345
|
"Controls whether elements can be sent to chat from the Simple Browser."
|
|
314
346
|
)),
|
|
315
347
|
type: 'boolean',
|
|
@@ -318,7 +350,7 @@ configurationRegistry.registerConfiguration({
|
|
|
318
350
|
'chat.sendElementsToChat.attachCSS': {
|
|
319
351
|
default: true,
|
|
320
352
|
markdownDescription: ( localize(
|
|
321
|
-
|
|
353
|
+
4858,
|
|
322
354
|
"Controls whether CSS of the selected element will be added to the chat. {0} must be enabled.",
|
|
323
355
|
'`#chat.sendElementsToChat.enabled#`'
|
|
324
356
|
)),
|
|
@@ -328,7 +360,7 @@ configurationRegistry.registerConfiguration({
|
|
|
328
360
|
'chat.sendElementsToChat.attachImages': {
|
|
329
361
|
default: true,
|
|
330
362
|
markdownDescription: ( localize(
|
|
331
|
-
|
|
363
|
+
4859,
|
|
332
364
|
"Controls whether a screenshot of the selected element will be added to the chat. {0} must be enabled.",
|
|
333
365
|
'`#chat.sendElementsToChat.enabled#`'
|
|
334
366
|
)),
|
|
@@ -338,7 +370,7 @@ configurationRegistry.registerConfiguration({
|
|
|
338
370
|
'chat.undoRequests.restoreInput': {
|
|
339
371
|
default: true,
|
|
340
372
|
markdownDescription: ( localize(
|
|
341
|
-
|
|
373
|
+
4860,
|
|
342
374
|
"Controls whether the input of the chat should be restored when an undo request is made. The input will be filled with the text of the request that was restored."
|
|
343
375
|
)),
|
|
344
376
|
type: 'boolean',
|
|
@@ -346,7 +378,7 @@ configurationRegistry.registerConfiguration({
|
|
|
346
378
|
},
|
|
347
379
|
'chat.editRequests': {
|
|
348
380
|
markdownDescription: ( localize(
|
|
349
|
-
|
|
381
|
+
4861,
|
|
350
382
|
"Enables editing of requests in the chat. This allows you to change the request content and resubmit it to the model."
|
|
351
383
|
)),
|
|
352
384
|
type: 'string',
|
|
@@ -356,14 +388,14 @@ configurationRegistry.registerConfiguration({
|
|
|
356
388
|
[ChatConfiguration.EmptyStateHistoryEnabled]: {
|
|
357
389
|
type: 'boolean',
|
|
358
390
|
default: product.quality === 'insiders',
|
|
359
|
-
description: ( localize(
|
|
391
|
+
description: ( localize(4862, "Show recent chat history on the empty chat state.")),
|
|
360
392
|
tags: ['experimental']
|
|
361
393
|
},
|
|
362
394
|
[ChatConfiguration.NotifyWindowOnResponseReceived]: {
|
|
363
395
|
type: 'boolean',
|
|
364
396
|
default: true,
|
|
365
397
|
description: ( localize(
|
|
366
|
-
|
|
398
|
+
4863,
|
|
367
399
|
"Controls whether a chat session should present the user with an OS notification when a response is received while the window is not in focus. This includes a window badge as well as notification toast."
|
|
368
400
|
)),
|
|
369
401
|
},
|
|
@@ -371,30 +403,30 @@ configurationRegistry.registerConfiguration({
|
|
|
371
403
|
type: 'boolean',
|
|
372
404
|
default: true,
|
|
373
405
|
description: ( localize(
|
|
374
|
-
|
|
406
|
+
4864,
|
|
375
407
|
"Enables checkpoints in chat. Checkpoints allow you to restore the chat to a previous state."
|
|
376
408
|
)),
|
|
377
409
|
},
|
|
378
410
|
'chat.checkpoints.showFileChanges': {
|
|
379
411
|
type: 'boolean',
|
|
380
|
-
description: ( localize(
|
|
412
|
+
description: ( localize(4865, "Controls whether to show chat checkpoint file changes.")),
|
|
381
413
|
default: false
|
|
382
414
|
},
|
|
383
415
|
[mcpAccessConfig]: {
|
|
384
416
|
type: 'string',
|
|
385
|
-
description: ( localize(
|
|
417
|
+
description: ( localize(4866, "Controls access to installed Model Context Protocol servers.")),
|
|
386
418
|
enum: [
|
|
387
419
|
McpAccessValue.None,
|
|
388
420
|
McpAccessValue.Registry,
|
|
389
421
|
McpAccessValue.All
|
|
390
422
|
],
|
|
391
423
|
enumDescriptions: [
|
|
392
|
-
( localize(
|
|
424
|
+
( localize(4867, "No access to MCP servers.")),
|
|
393
425
|
( localize(
|
|
394
|
-
|
|
426
|
+
4868,
|
|
395
427
|
"Allows access to MCP servers installed from the registry that VS Code is connected to."
|
|
396
428
|
)),
|
|
397
|
-
( localize(
|
|
429
|
+
( localize(4869, "Allow access to any installed MCP server."))
|
|
398
430
|
],
|
|
399
431
|
default: McpAccessValue.All,
|
|
400
432
|
policy: {
|
|
@@ -413,20 +445,20 @@ configurationRegistry.registerConfiguration({
|
|
|
413
445
|
localization: {
|
|
414
446
|
description: {
|
|
415
447
|
key: 'chat.mcp.access',
|
|
416
|
-
value: ( localize(
|
|
448
|
+
value: ( localize(4866, "Controls access to installed Model Context Protocol servers."))
|
|
417
449
|
},
|
|
418
450
|
enumDescriptions: [
|
|
419
451
|
{
|
|
420
|
-
key: 'chat.mcp.access.none', value: ( localize(
|
|
452
|
+
key: 'chat.mcp.access.none', value: ( localize(4867, "No access to MCP servers.")),
|
|
421
453
|
},
|
|
422
454
|
{
|
|
423
455
|
key: 'chat.mcp.access.registry', value: ( localize(
|
|
424
|
-
|
|
456
|
+
4868,
|
|
425
457
|
"Allows access to MCP servers installed from the registry that VS Code is connected to."
|
|
426
458
|
)),
|
|
427
459
|
},
|
|
428
460
|
{
|
|
429
|
-
key: 'chat.mcp.access.any', value: ( localize(
|
|
461
|
+
key: 'chat.mcp.access.any', value: ( localize(4869, "Allow access to any installed MCP server."))
|
|
430
462
|
}
|
|
431
463
|
]
|
|
432
464
|
},
|
|
@@ -435,7 +467,7 @@ configurationRegistry.registerConfiguration({
|
|
|
435
467
|
[mcpAutoStartConfig]: {
|
|
436
468
|
type: 'string',
|
|
437
469
|
description: ( localize(
|
|
438
|
-
|
|
470
|
+
4870,
|
|
439
471
|
"Controls whether MCP servers should be automatically started when the chat messages are submitted."
|
|
440
472
|
)),
|
|
441
473
|
default: McpAutoStartValue.NewAndOutdated,
|
|
@@ -445,10 +477,10 @@ configurationRegistry.registerConfiguration({
|
|
|
445
477
|
McpAutoStartValue.NewAndOutdated
|
|
446
478
|
],
|
|
447
479
|
enumDescriptions: [
|
|
448
|
-
( localize(
|
|
449
|
-
( localize(
|
|
480
|
+
( localize(4871, "Never automatically start MCP servers.")),
|
|
481
|
+
( localize(4872, "Only automatically start new MCP servers that have never been run.")),
|
|
450
482
|
( localize(
|
|
451
|
-
|
|
483
|
+
4873,
|
|
452
484
|
"Automatically start new and outdated MCP servers that are not yet running."
|
|
453
485
|
))
|
|
454
486
|
],
|
|
@@ -457,9 +489,9 @@ configurationRegistry.registerConfiguration({
|
|
|
457
489
|
[mcpServerSamplingSection]: {
|
|
458
490
|
type: 'object',
|
|
459
491
|
description: ( localize(
|
|
460
|
-
|
|
492
|
+
4874,
|
|
461
493
|
"Configures which models are exposed to MCP servers for sampling (making model requests in the background). This setting can be edited in a graphical way under the `{0}` command.",
|
|
462
|
-
'MCP: ' + ( localize(
|
|
494
|
+
'MCP: ' + ( localize(4875, 'List Servers'))
|
|
463
495
|
)),
|
|
464
496
|
scope: ConfigurationScope.RESOURCE,
|
|
465
497
|
additionalProperties: {
|
|
@@ -468,7 +500,7 @@ configurationRegistry.registerConfiguration({
|
|
|
468
500
|
allowedDuringChat: {
|
|
469
501
|
type: 'boolean',
|
|
470
502
|
description: ( localize(
|
|
471
|
-
|
|
503
|
+
4876,
|
|
472
504
|
"Whether this server is make sampling requests during its tool calls in a chat session."
|
|
473
505
|
)),
|
|
474
506
|
default: true,
|
|
@@ -476,7 +508,7 @@ configurationRegistry.registerConfiguration({
|
|
|
476
508
|
allowedOutsideChat: {
|
|
477
509
|
type: 'boolean',
|
|
478
510
|
description: ( localize(
|
|
479
|
-
|
|
511
|
+
4877,
|
|
480
512
|
"Whether this server is allowed to make sampling requests outside of a chat session."
|
|
481
513
|
)),
|
|
482
514
|
default: false,
|
|
@@ -485,7 +517,7 @@ configurationRegistry.registerConfiguration({
|
|
|
485
517
|
type: 'array',
|
|
486
518
|
items: {
|
|
487
519
|
type: 'string',
|
|
488
|
-
description: ( localize(
|
|
520
|
+
description: ( localize(4878, "A model the MCP server has access to.")),
|
|
489
521
|
},
|
|
490
522
|
}
|
|
491
523
|
}
|
|
@@ -494,7 +526,7 @@ configurationRegistry.registerConfiguration({
|
|
|
494
526
|
[AssistedTypes[AddConfigurationType.NuGetPackage].enabledConfigKey]: {
|
|
495
527
|
type: 'boolean',
|
|
496
528
|
description: ( localize(
|
|
497
|
-
|
|
529
|
+
4879,
|
|
498
530
|
"Enables NuGet packages for AI-assisted MCP server installation. Used to install MCP servers by name from the central registry for .NET packages (NuGet.org)."
|
|
499
531
|
)),
|
|
500
532
|
default: false,
|
|
@@ -506,14 +538,14 @@ configurationRegistry.registerConfiguration({
|
|
|
506
538
|
[ChatConfiguration.Edits2Enabled]: {
|
|
507
539
|
type: 'boolean',
|
|
508
540
|
description: ( localize(
|
|
509
|
-
|
|
541
|
+
4880,
|
|
510
542
|
"Enable the new Edits mode that is based on tool-calling. When this is enabled, models that don't support tool-calling are unavailable for Edits mode."
|
|
511
543
|
)),
|
|
512
544
|
default: false,
|
|
513
545
|
},
|
|
514
546
|
[ChatConfiguration.ExtensionToolsEnabled]: {
|
|
515
547
|
type: 'boolean',
|
|
516
|
-
description: ( localize(
|
|
548
|
+
description: ( localize(4881, "Enable using tools contributed by third-party extensions.")),
|
|
517
549
|
default: true,
|
|
518
550
|
policy: {
|
|
519
551
|
name: 'ChatAgentExtensionTools',
|
|
@@ -522,7 +554,7 @@ configurationRegistry.registerConfiguration({
|
|
|
522
554
|
localization: {
|
|
523
555
|
description: {
|
|
524
556
|
key: 'chat.extensionToolsEnabled',
|
|
525
|
-
value: ( localize(
|
|
557
|
+
value: ( localize(4881, "Enable using tools contributed by third-party extensions."))
|
|
526
558
|
}
|
|
527
559
|
},
|
|
528
560
|
}
|
|
@@ -530,7 +562,7 @@ configurationRegistry.registerConfiguration({
|
|
|
530
562
|
[ChatConfiguration.AgentEnabled]: {
|
|
531
563
|
type: 'boolean',
|
|
532
564
|
description: ( localize(
|
|
533
|
-
|
|
565
|
+
4882,
|
|
534
566
|
"Enable agent mode for chat. When this is enabled, agent mode can be activated via the dropdown in the view."
|
|
535
567
|
)),
|
|
536
568
|
default: true,
|
|
@@ -543,7 +575,7 @@ configurationRegistry.registerConfiguration({
|
|
|
543
575
|
description: {
|
|
544
576
|
key: 'chat.agent.enabled.description',
|
|
545
577
|
value: ( localize(
|
|
546
|
-
|
|
578
|
+
4882,
|
|
547
579
|
"Enable agent mode for chat. When this is enabled, agent mode can be activated via the dropdown in the view."
|
|
548
580
|
)),
|
|
549
581
|
}
|
|
@@ -552,14 +584,14 @@ configurationRegistry.registerConfiguration({
|
|
|
552
584
|
},
|
|
553
585
|
[ChatConfiguration.EnableMath]: {
|
|
554
586
|
type: 'boolean',
|
|
555
|
-
description: ( localize(
|
|
587
|
+
description: ( localize(4883, "Enable math rendering in chat responses using KaTeX.")),
|
|
556
588
|
default: true,
|
|
557
589
|
tags: ['preview'],
|
|
558
590
|
},
|
|
559
591
|
[ChatConfiguration.AgentSessionsViewLocation]: {
|
|
560
592
|
type: 'string',
|
|
561
593
|
enum: ['disabled', 'view', 'single-view'],
|
|
562
|
-
description: ( localize(
|
|
594
|
+
description: ( localize(4884, "Controls where to show the agent sessions menu.")),
|
|
563
595
|
default: 'view',
|
|
564
596
|
tags: ['experimental'],
|
|
565
597
|
experiment: {
|
|
@@ -574,7 +606,7 @@ configurationRegistry.registerConfiguration({
|
|
|
574
606
|
additionalProperties: false,
|
|
575
607
|
default: Object.fromEntries(( allDiscoverySources.map(k => [k, false]))),
|
|
576
608
|
markdownDescription: ( localize(
|
|
577
|
-
|
|
609
|
+
4885,
|
|
578
610
|
"Configures discovery of Model Context Protocol servers from configuration from various other applications."
|
|
579
611
|
)),
|
|
580
612
|
},
|
|
@@ -583,14 +615,14 @@ configurationRegistry.registerConfiguration({
|
|
|
583
615
|
default: false,
|
|
584
616
|
tags: ['preview'],
|
|
585
617
|
description: ( localize(
|
|
586
|
-
|
|
618
|
+
4886,
|
|
587
619
|
"Enables the default Marketplace for Model Context Protocol (MCP) servers."
|
|
588
620
|
)),
|
|
589
621
|
included: product.quality === 'stable'
|
|
590
622
|
},
|
|
591
623
|
[mcpGalleryServiceUrlConfig]: {
|
|
592
624
|
type: 'string',
|
|
593
|
-
description: ( localize(
|
|
625
|
+
description: ( localize(4887, "Configure the MCP Gallery service URL to connect to")),
|
|
594
626
|
default: '',
|
|
595
627
|
scope: ConfigurationScope.APPLICATION,
|
|
596
628
|
tags: ['usesOnlineServices', 'advanced'],
|
|
@@ -603,16 +635,16 @@ configurationRegistry.registerConfiguration({
|
|
|
603
635
|
localization: {
|
|
604
636
|
description: {
|
|
605
637
|
key: 'mcp.gallery.serviceUrl',
|
|
606
|
-
value: ( localize(
|
|
638
|
+
value: ( localize(4887, "Configure the MCP Gallery service URL to connect to")),
|
|
607
639
|
}
|
|
608
640
|
}
|
|
609
641
|
},
|
|
610
642
|
},
|
|
611
643
|
[PromptsConfig.INSTRUCTIONS_LOCATION_KEY]: {
|
|
612
644
|
type: 'object',
|
|
613
|
-
title: ( localize(
|
|
645
|
+
title: ( localize(4888, "Instructions File Locations")),
|
|
614
646
|
markdownDescription: ( localize(
|
|
615
|
-
|
|
647
|
+
4889,
|
|
616
648
|
"Specify location(s) of instructions files (`*{0}`) that can be attached in Chat sessions. [Learn More]({1}).\n\nRelative paths are resolved from the root folder(s) of your workspace.",
|
|
617
649
|
INSTRUCTION_FILE_EXTENSION,
|
|
618
650
|
INSTRUCTIONS_DOCUMENTATION_URL
|
|
@@ -635,9 +667,9 @@ configurationRegistry.registerConfiguration({
|
|
|
635
667
|
},
|
|
636
668
|
[PromptsConfig.PROMPT_LOCATIONS_KEY]: {
|
|
637
669
|
type: 'object',
|
|
638
|
-
title: ( localize(
|
|
670
|
+
title: ( localize(4890, "Prompt File Locations")),
|
|
639
671
|
markdownDescription: ( localize(
|
|
640
|
-
|
|
672
|
+
4891,
|
|
641
673
|
"Specify location(s) of reusable prompt files (`*{0}`) that can be run in Chat sessions. [Learn More]({1}).\n\nRelative paths are resolved from the root folder(s) of your workspace.",
|
|
642
674
|
PROMPT_FILE_EXTENSION,
|
|
643
675
|
PROMPT_DOCUMENTATION_URL
|
|
@@ -661,9 +693,9 @@ configurationRegistry.registerConfiguration({
|
|
|
661
693
|
},
|
|
662
694
|
[PromptsConfig.MODE_LOCATION_KEY]: {
|
|
663
695
|
type: 'object',
|
|
664
|
-
title: ( localize(
|
|
696
|
+
title: ( localize(4892, "Mode File Locations")),
|
|
665
697
|
markdownDescription: ( localize(
|
|
666
|
-
|
|
698
|
+
4893,
|
|
667
699
|
"Specify location(s) of custom chat mode files (`*{0}`). [Learn More]({1}).\n\nRelative paths are resolved from the root folder(s) of your workspace.",
|
|
668
700
|
LEGACY_MODE_FILE_EXTENSION,
|
|
669
701
|
AGENT_DOCUMENTATION_URL
|
|
@@ -672,7 +704,7 @@ configurationRegistry.registerConfiguration({
|
|
|
672
704
|
[LEGACY_MODE_DEFAULT_SOURCE_FOLDER]: true,
|
|
673
705
|
},
|
|
674
706
|
deprecationMessage: ( localize(
|
|
675
|
-
|
|
707
|
+
4894,
|
|
676
708
|
"This setting is deprecated and will be removed in future releases. Chat modes are now called custom agents and are located in `.github/agents`"
|
|
677
709
|
)),
|
|
678
710
|
additionalProperties: { type: 'boolean' },
|
|
@@ -691,9 +723,9 @@ configurationRegistry.registerConfiguration({
|
|
|
691
723
|
},
|
|
692
724
|
[PromptsConfig.USE_AGENT_MD]: {
|
|
693
725
|
type: 'boolean',
|
|
694
|
-
title: ( localize(
|
|
726
|
+
title: ( localize(4895, "Use AGENTS.MD file")),
|
|
695
727
|
markdownDescription: ( localize(
|
|
696
|
-
|
|
728
|
+
4896,
|
|
697
729
|
"Controls whether instructions from `AGENTS.MD` file found in a workspace roots are added to all chat requests."
|
|
698
730
|
)),
|
|
699
731
|
default: true,
|
|
@@ -703,9 +735,9 @@ configurationRegistry.registerConfiguration({
|
|
|
703
735
|
},
|
|
704
736
|
[PromptsConfig.USE_NESTED_AGENT_MD]: {
|
|
705
737
|
type: 'boolean',
|
|
706
|
-
title: ( localize(
|
|
738
|
+
title: ( localize(4897, "Use nested AGENTS.MD files")),
|
|
707
739
|
markdownDescription: ( localize(
|
|
708
|
-
|
|
740
|
+
4898,
|
|
709
741
|
"Controls whether instructions `AGENTS.MD` files found in the workspace are listed in all chat requests."
|
|
710
742
|
)),
|
|
711
743
|
default: false,
|
|
@@ -716,9 +748,9 @@ configurationRegistry.registerConfiguration({
|
|
|
716
748
|
[PromptsConfig.PROMPT_FILES_SUGGEST_KEY]: {
|
|
717
749
|
type: 'object',
|
|
718
750
|
scope: ConfigurationScope.RESOURCE,
|
|
719
|
-
title: ( localize(
|
|
751
|
+
title: ( localize(4899, "Prompt File Recommendations")),
|
|
720
752
|
markdownDescription: ( localize(
|
|
721
|
-
|
|
753
|
+
4900,
|
|
722
754
|
"Configure which prompt files to recommend in the chat welcome view. Each key is a prompt file name, and the value can be `true` to always recommend, `false` to never recommend, or a [when clause](https://aka.ms/vscode-when-clause) expression like `resourceExtname == .js` or `resourceLangId == markdown`."
|
|
723
755
|
)),
|
|
724
756
|
default: {},
|
|
@@ -741,7 +773,7 @@ configurationRegistry.registerConfiguration({
|
|
|
741
773
|
type: 'boolean',
|
|
742
774
|
default: true,
|
|
743
775
|
description: ( localize(
|
|
744
|
-
|
|
776
|
+
4901,
|
|
745
777
|
"Controls whether to show the todo list widget above the chat input. When enabled, the widget displays todo items created by the agent and updates as progress is made."
|
|
746
778
|
)),
|
|
747
779
|
tags: ['experimental'],
|
|
@@ -753,7 +785,7 @@ configurationRegistry.registerConfiguration({
|
|
|
753
785
|
type: 'boolean',
|
|
754
786
|
default: false,
|
|
755
787
|
description: ( localize(
|
|
756
|
-
|
|
788
|
+
4902,
|
|
757
789
|
"When enabled, the todo tool operates in write-only mode, requiring the agent to remember todos in context."
|
|
758
790
|
)),
|
|
759
791
|
tags: ['experimental'],
|
|
@@ -765,7 +797,7 @@ configurationRegistry.registerConfiguration({
|
|
|
765
797
|
type: 'boolean',
|
|
766
798
|
default: true,
|
|
767
799
|
description: ( localize(
|
|
768
|
-
|
|
800
|
+
4903,
|
|
769
801
|
"When enabled, todo items include detailed descriptions for implementation context. This provides more information but uses additional tokens and may slow down responses."
|
|
770
802
|
)),
|
|
771
803
|
tags: ['experimental'],
|
|
@@ -778,17 +810,17 @@ configurationRegistry.registerConfiguration({
|
|
|
778
810
|
default: 'fixedScrolling',
|
|
779
811
|
enum: ['collapsed', 'collapsedPreview', 'fixedScrolling'],
|
|
780
812
|
enumDescriptions: [
|
|
781
|
-
( localize(
|
|
813
|
+
( localize(4904, "Thinking parts will be collapsed by default.")),
|
|
782
814
|
( localize(
|
|
783
|
-
|
|
815
|
+
4905,
|
|
784
816
|
"Thinking parts will be expanded first, then collapse once we reach a part that is not thinking."
|
|
785
817
|
)),
|
|
786
818
|
( localize(
|
|
787
|
-
|
|
819
|
+
4906,
|
|
788
820
|
"Show thinking in a fixed-height streaming panel that auto-scrolls; click header to expand to full height."
|
|
789
821
|
)),
|
|
790
822
|
],
|
|
791
|
-
description: ( localize(
|
|
823
|
+
description: ( localize(4907, "Controls how thinking is rendered.")),
|
|
792
824
|
tags: ['experimental'],
|
|
793
825
|
},
|
|
794
826
|
'chat.agent.thinking.collapsedTools': {
|
|
@@ -796,15 +828,15 @@ configurationRegistry.registerConfiguration({
|
|
|
796
828
|
default: 'readOnly',
|
|
797
829
|
enum: ['none', 'all', 'readOnly'],
|
|
798
830
|
enumDescriptions: [
|
|
799
|
-
( localize(
|
|
800
|
-
( localize(
|
|
831
|
+
( localize(4908, "No tool calls are added into the collapsible thinking section.")),
|
|
832
|
+
( localize(4909, "All tool calls are added into the collapsible thinking section.")),
|
|
801
833
|
( localize(
|
|
802
|
-
|
|
834
|
+
4910,
|
|
803
835
|
"Only read-only tool calls are added into the collapsible thinking section."
|
|
804
836
|
)),
|
|
805
837
|
],
|
|
806
838
|
markdownDescription: ( localize(
|
|
807
|
-
|
|
839
|
+
4911,
|
|
808
840
|
"When enabled, tool calls are added into the collapsible thinking section according to the selected mode."
|
|
809
841
|
)),
|
|
810
842
|
tags: ['experimental'],
|
|
@@ -812,7 +844,7 @@ configurationRegistry.registerConfiguration({
|
|
|
812
844
|
'chat.disableAIFeatures': {
|
|
813
845
|
type: 'boolean',
|
|
814
846
|
description: ( localize(
|
|
815
|
-
|
|
847
|
+
4912,
|
|
816
848
|
"Disable and hide built-in AI features provided by GitHub Copilot, including chat and inline suggestions."
|
|
817
849
|
)),
|
|
818
850
|
default: false,
|
|
@@ -820,21 +852,21 @@ configurationRegistry.registerConfiguration({
|
|
|
820
852
|
},
|
|
821
853
|
[ChatConfiguration.UseCloudButtonV2]: {
|
|
822
854
|
type: 'boolean',
|
|
823
|
-
description: ( localize(
|
|
855
|
+
description: ( localize(4913, "Experimental implementation of 'cloud button'")),
|
|
824
856
|
default: true,
|
|
825
857
|
tags: ['experimental'],
|
|
826
858
|
},
|
|
827
859
|
[ChatConfiguration.ShowAgentSessionsViewDescription]: {
|
|
828
860
|
type: 'boolean',
|
|
829
861
|
description: ( localize(
|
|
830
|
-
|
|
862
|
+
4914,
|
|
831
863
|
"Controls whether session descriptions are displayed on a second row in the Chat Sessions view."
|
|
832
864
|
)),
|
|
833
865
|
default: true,
|
|
834
866
|
},
|
|
835
867
|
'chat.allowAnonymousAccess': {
|
|
836
868
|
type: 'boolean',
|
|
837
|
-
description: ( localize(
|
|
869
|
+
description: ( localize(4915, "Controls whether anonymous access is allowed in chat.")),
|
|
838
870
|
default: false,
|
|
839
871
|
tags: ['experimental'],
|
|
840
872
|
experiment: {
|
|
@@ -843,7 +875,7 @@ configurationRegistry.registerConfiguration({
|
|
|
843
875
|
},
|
|
844
876
|
'chat.signInWithAlternateScopes': {
|
|
845
877
|
type: 'boolean',
|
|
846
|
-
description: ( localize(
|
|
878
|
+
description: ( localize(4916, "Controls whether sign-in with alternate scopes is used.")),
|
|
847
879
|
default: false,
|
|
848
880
|
tags: ['experimental'],
|
|
849
881
|
experiment: {
|
|
@@ -853,7 +885,7 @@ configurationRegistry.registerConfiguration({
|
|
|
853
885
|
'chat.extensionUnification.enabled': {
|
|
854
886
|
type: 'boolean',
|
|
855
887
|
description: ( localize(
|
|
856
|
-
|
|
888
|
+
4917,
|
|
857
889
|
"Enables the unification of GitHub Copilot extensions. When enabled, all GitHub Copilot functionality is served from the GitHub Copilot Chat extension. When disabled, the GitHub Copilot and GitHub Copilot Chat extensions operate independently."
|
|
858
890
|
)),
|
|
859
891
|
default: false,
|
|
@@ -865,7 +897,7 @@ configurationRegistry.registerConfiguration({
|
|
|
865
897
|
[ChatConfiguration.SubagentToolCustomAgents]: {
|
|
866
898
|
type: 'boolean',
|
|
867
899
|
description: ( localize(
|
|
868
|
-
|
|
900
|
+
4918,
|
|
869
901
|
"Whether the runSubagent tool is able to use custom agents. When enabled, the tool can take the name of a custom agent, but it must be given the exact name of the agent."
|
|
870
902
|
)),
|
|
871
903
|
default: false,
|
|
@@ -873,7 +905,7 @@ configurationRegistry.registerConfiguration({
|
|
|
873
905
|
}
|
|
874
906
|
}
|
|
875
907
|
});
|
|
876
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(
|
|
908
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(4919, "Chat"))), [
|
|
877
909
|
( new SyncDescriptor(ChatEditorInput))
|
|
878
910
|
]);
|
|
879
911
|
( Registry.as(Extensions$1.ConfigurationMigration)).registerConfigurationMigrations([
|
|
@@ -918,7 +950,7 @@ let ChatResolverContribution = class ChatResolverContribution extends Disposable
|
|
|
918
950
|
_registerEditor(scheme) {
|
|
919
951
|
this._editorRegistrations.set(scheme, this.editorResolverService.registerEditor(`${scheme}:**/**`, {
|
|
920
952
|
id: ChatEditorInput.EditorID,
|
|
921
|
-
label: ( localize(
|
|
953
|
+
label: ( localize(4919, "Chat")),
|
|
922
954
|
priority: RegisteredEditorPriority.builtin
|
|
923
955
|
}, {
|
|
924
956
|
singlePerResource: true,
|
|
@@ -962,7 +994,7 @@ let ChatAgentSettingContribution = class ChatAgentSettingContribution extends Di
|
|
|
962
994
|
'chat.agent.maxRequests': {
|
|
963
995
|
type: 'number',
|
|
964
996
|
markdownDescription: ( localize(
|
|
965
|
-
|
|
997
|
+
4920,
|
|
966
998
|
"The maximum number of requests to allow per-turn when using an agent. When the limit is reached, will ask to confirm to continue."
|
|
967
999
|
)),
|
|
968
1000
|
default: defaultValue,
|
|
@@ -992,7 +1024,7 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
|
|
|
992
1024
|
super();
|
|
993
1025
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
994
1026
|
command: 'clear',
|
|
995
|
-
detail: ( localize(
|
|
1027
|
+
detail: ( localize(4921, "Start a new chat")),
|
|
996
1028
|
sortText: 'z2_clear',
|
|
997
1029
|
executeImmediately: true,
|
|
998
1030
|
locations: [ChatAgentLocation.Chat]
|
|
@@ -87,9 +87,9 @@ let ChatAccessibilityService = class ChatAccessibilityService extends Disposable
|
|
|
87
87
|
ds.dispose();
|
|
88
88
|
this.notifications.delete(ds);
|
|
89
89
|
}
|
|
90
|
-
const title = widget?.viewModel?.model.title ? ( localize(
|
|
90
|
+
const title = widget?.viewModel?.model.title ? ( localize(4937, "Chat: {0}", widget.viewModel.model.title)) : ( localize(4938, "Untitled Chat"));
|
|
91
91
|
const notification = await triggerNotification(title, {
|
|
92
|
-
detail: ( localize(
|
|
92
|
+
detail: ( localize(4939, "New chat response."))
|
|
93
93
|
});
|
|
94
94
|
if (!notification) {
|
|
95
95
|
return;
|
|
@@ -131,7 +131,7 @@ let ChatAttachmentResolveService = class ChatAttachmentResolveService {
|
|
|
131
131
|
}
|
|
132
132
|
const readFile = await this.fileService.readFile(resource);
|
|
133
133
|
if (stat.size > 30 * 1024 * 1024) {
|
|
134
|
-
this.dialogService.error(( localize(
|
|
134
|
+
this.dialogService.error(( localize(4942, 'Image is too large')), ( localize(4943, 'The image {0} is too large to be attached.', fileName)));
|
|
135
135
|
throw ( new Error('Image is too large'));
|
|
136
136
|
}
|
|
137
137
|
dataBuffer = readFile.value;
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js
CHANGED
|
@@ -522,7 +522,7 @@ let ChatEditingCodeEditorIntegration = class ChatEditingCodeEditorIntegration {
|
|
|
522
522
|
original: { resource: this._entry.originalURI },
|
|
523
523
|
modified: { resource: this._entry.modifiedURI },
|
|
524
524
|
options: { selection },
|
|
525
|
-
label: ( localize(
|
|
525
|
+
label: ( localize(5139, '{0} (changes from chat)', basename(this._entry.modifiedURI)))
|
|
526
526
|
});
|
|
527
527
|
if (diffEditor && diffEditor.input) {
|
|
528
528
|
diffEditor.getControl()?.setSelection(selection);
|