@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
|
@@ -225,7 +225,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
225
225
|
registerActions(context, requests, controller) {
|
|
226
226
|
class ChatSetupTriggerAction extends Action2 {
|
|
227
227
|
static {
|
|
228
|
-
this.CHAT_SETUP_ACTION_LABEL = ( localize2(
|
|
228
|
+
this.CHAT_SETUP_ACTION_LABEL = ( localize2(6544, "Use AI Features with Copilot for free..."));
|
|
229
229
|
}
|
|
230
230
|
constructor() {
|
|
231
231
|
super({
|
|
@@ -276,8 +276,8 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
276
276
|
confirmed
|
|
277
277
|
} = await dialogService.confirm({
|
|
278
278
|
type: Severity.Error,
|
|
279
|
-
message: ( localize(
|
|
280
|
-
primaryButton: ( localize(
|
|
279
|
+
message: ( localize(6545, "Chat setup failed. Would you like to try again?")),
|
|
280
|
+
primaryButton: ( localize(6546, "Retry"))
|
|
281
281
|
});
|
|
282
282
|
if (confirmed) {
|
|
283
283
|
return Boolean(await commandService.executeCommand(CHAT_SETUP_ACTION_ID, mode, options));
|
|
@@ -322,7 +322,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
322
322
|
constructor() {
|
|
323
323
|
super({
|
|
324
324
|
id: "workbench.action.chat.triggerSetupForceSignIn",
|
|
325
|
-
title: ( localize2(
|
|
325
|
+
title: ( localize2(6547, "Sign in to use AI features"))
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
328
|
async run(accessor) {
|
|
@@ -360,7 +360,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
360
360
|
constructor() {
|
|
361
361
|
super({
|
|
362
362
|
id: "workbench.action.chat.triggerSetupFromAccounts",
|
|
363
|
-
title: ( localize2(
|
|
363
|
+
title: ( localize2(6548, "Sign in to use AI features...")),
|
|
364
364
|
menu: {
|
|
365
365
|
id: MenuId.AccountsContext,
|
|
366
366
|
group: "2_copilot",
|
|
@@ -385,7 +385,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
385
385
|
constructor() {
|
|
386
386
|
super({
|
|
387
387
|
id: ChatSetupSignInTitleBarAction.ID,
|
|
388
|
-
title: ( localize(
|
|
388
|
+
title: ( localize(6549, "Sign In")),
|
|
389
389
|
f1: false,
|
|
390
390
|
menu: [{
|
|
391
391
|
id: MenuId.TitleBarAdjacentCenter,
|
|
@@ -406,7 +406,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
406
406
|
}
|
|
407
407
|
class ToggleSignInTitleBarAction extends ToggleTitleBarConfigAction {
|
|
408
408
|
constructor() {
|
|
409
|
-
super(ChatConfiguration.TitleBarSignInEnabled, ( localize(
|
|
409
|
+
super(ChatConfiguration.TitleBarSignInEnabled, ( localize(6550, "Copilot Sign In")), ( localize(6551, "Toggle visibility of the Copilot Sign In button in title bar")), 3, ( ContextKeyExpr.and(( IsWebContext.negate()), ChatContextKeys.Entitlement.signedOut, ( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabledInWorkspace.negate()))));
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
412
|
const windowFocusListener = this._register(( new MutableDisposable()));
|
|
@@ -414,8 +414,8 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
414
414
|
constructor() {
|
|
415
415
|
super({
|
|
416
416
|
id: "workbench.action.chat.upgradePlan",
|
|
417
|
-
title: ( localize2(
|
|
418
|
-
category: ( localize2(
|
|
417
|
+
title: ( localize2(6552, "Upgrade to GitHub Copilot Pro")),
|
|
418
|
+
category: ( localize2(6553, "Chat")),
|
|
419
419
|
f1: true,
|
|
420
420
|
precondition: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabledInWorkspace.negate()), ( ContextKeyExpr.or(
|
|
421
421
|
ChatContextKeys.Entitlement.canSignUp,
|
|
@@ -461,8 +461,8 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
461
461
|
constructor() {
|
|
462
462
|
super({
|
|
463
463
|
id: "workbench.action.chat.manageAdditionalSpend",
|
|
464
|
-
title: ( localize2(
|
|
465
|
-
category: ( localize2(
|
|
464
|
+
title: ( localize2(6554, "Manage GitHub Copilot Additional Spend")),
|
|
465
|
+
category: ( localize2(6553, "Chat")),
|
|
466
466
|
f1: true,
|
|
467
467
|
precondition: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabledInWorkspace.negate()), ( ContextKeyExpr.or(
|
|
468
468
|
ChatContextKeys.Entitlement.planPro,
|
|
@@ -548,7 +548,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
548
548
|
MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
549
549
|
command: {
|
|
550
550
|
id: "chat.internal.explain",
|
|
551
|
-
title: ( localize(
|
|
551
|
+
title: ( localize(6555, "Explain"))
|
|
552
552
|
},
|
|
553
553
|
group: "1_chat",
|
|
554
554
|
order: 4,
|
|
@@ -557,7 +557,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
557
557
|
MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
558
558
|
command: {
|
|
559
559
|
id: "chat.internal.fix",
|
|
560
|
-
title: ( localize(
|
|
560
|
+
title: ( localize(6556, "Fix"))
|
|
561
561
|
},
|
|
562
562
|
group: "1_chat",
|
|
563
563
|
order: 5,
|
|
@@ -566,7 +566,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
566
566
|
MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
567
567
|
command: {
|
|
568
568
|
id: "chat.internal.review",
|
|
569
|
-
title: ( localize(
|
|
569
|
+
title: ( localize(6557, "Code Review"))
|
|
570
570
|
},
|
|
571
571
|
group: "1_chat",
|
|
572
572
|
order: 6,
|
|
@@ -738,7 +738,7 @@ let ChatTeardownContribution = class ChatTeardownContribution extends Disposable
|
|
|
738
738
|
}
|
|
739
739
|
await this.extensionsWorkbenchService.setEnablement([defaultChatExtension], state);
|
|
740
740
|
await this.extensionsWorkbenchService.updateRunningExtensions(
|
|
741
|
-
state === EnablementState.EnabledGlobally || state === EnablementState.EnabledWorkspace ? ( localize(
|
|
741
|
+
state === EnablementState.EnabledGlobally || state === EnablementState.EnabledWorkspace ? ( localize(6558, "Enabling AI features")) : ( localize(6559, "Disabling AI features"))
|
|
742
742
|
);
|
|
743
743
|
}
|
|
744
744
|
maybeHideAuxiliaryBar() {
|
|
@@ -756,7 +756,7 @@ let ChatTeardownContribution = class ChatTeardownContribution extends Disposable
|
|
|
756
756
|
this.ID = "workbench.action.chat.hideSetup";
|
|
757
757
|
}
|
|
758
758
|
static {
|
|
759
|
-
this.TITLE = ( localize2(
|
|
759
|
+
this.TITLE = ( localize2(6560, "Learn How to Hide AI Features"));
|
|
760
760
|
}
|
|
761
761
|
constructor() {
|
|
762
762
|
super({
|
|
@@ -106,7 +106,7 @@ let ChatSetupController = class ChatSetupController extends Disposable {
|
|
|
106
106
|
}
|
|
107
107
|
async setup(options = {}) {
|
|
108
108
|
const watch = ( new StopWatch(false));
|
|
109
|
-
const title = ( localize(
|
|
109
|
+
const title = ( localize(6561, "Getting chat ready..."));
|
|
110
110
|
const badge = this.activityService.showViewContainerActivity(ChatViewContainerId, {
|
|
111
111
|
badge: ( new ProgressBadge(() => title))
|
|
112
112
|
});
|
|
@@ -181,12 +181,12 @@ let ChatSetupController = class ChatSetupController extends Disposable {
|
|
|
181
181
|
} = await this.dialogService.confirm({
|
|
182
182
|
type: Severity.Error,
|
|
183
183
|
message: ( localize(
|
|
184
|
-
|
|
184
|
+
6562,
|
|
185
185
|
"Failed to sign in to {0}. Would you like to try again?",
|
|
186
186
|
this.defaultAccountService.getDefaultAccountAuthenticationProvider().name
|
|
187
187
|
)),
|
|
188
|
-
detail: ( localize(
|
|
189
|
-
primaryButton: ( localize(
|
|
188
|
+
detail: ( localize(6563, "You must be signed in to use AI features.")),
|
|
189
|
+
primaryButton: ( localize(6564, "Retry"))
|
|
190
190
|
});
|
|
191
191
|
if (confirmed) {
|
|
192
192
|
return this.signIn(options);
|
|
@@ -267,11 +267,11 @@ let ChatSetupController = class ChatSetupController extends Disposable {
|
|
|
267
267
|
} = await this.dialogService.confirm({
|
|
268
268
|
type: Severity.Error,
|
|
269
269
|
message: ( localize(
|
|
270
|
-
|
|
270
|
+
6565,
|
|
271
271
|
"An error occurred while setting up chat. Would you like to try again?"
|
|
272
272
|
)),
|
|
273
273
|
detail: error && !isCancellationError(error) ? toErrorMessage(error) : undefined,
|
|
274
|
-
primaryButton: ( localize(
|
|
274
|
+
primaryButton: ( localize(6564, "Retry"))
|
|
275
275
|
});
|
|
276
276
|
if (confirmed) {
|
|
277
277
|
return this.doInstallWithRetry();
|
|
@@ -349,8 +349,8 @@ let ChatSetupController = class ChatSetupController extends Disposable {
|
|
|
349
349
|
}
|
|
350
350
|
let isSingleWord = false;
|
|
351
351
|
const result = await this.quickInputService.input({
|
|
352
|
-
prompt: ( localize(
|
|
353
|
-
placeHolder: ( localize(
|
|
352
|
+
prompt: ( localize(6566, "What is your {0} instance?", defaultChat.provider.enterprise.name)),
|
|
353
|
+
placeHolder: ( localize(6567, "i.e. \"octocat\" or \"https://octocat.ghe.com\"...")),
|
|
354
354
|
ignoreFocusLost: true,
|
|
355
355
|
value: uri,
|
|
356
356
|
validateInput: async value => {
|
|
@@ -361,14 +361,14 @@ let ChatSetupController = class ChatSetupController extends Disposable {
|
|
|
361
361
|
if (domainRegEx.test(value)) {
|
|
362
362
|
isSingleWord = true;
|
|
363
363
|
return {
|
|
364
|
-
content: ( localize(
|
|
364
|
+
content: ( localize(6568, "Will resolve to {0}", `https://${value}.ghe.com`)),
|
|
365
365
|
severity: Severity.Info
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
if (!fullUriRegEx.test(value)) {
|
|
369
369
|
return {
|
|
370
370
|
content: ( localize(
|
|
371
|
-
|
|
371
|
+
6569,
|
|
372
372
|
"You must enter a valid {0} instance (i.e. \"octocat\" or \"https://octocat.ghe.com\")",
|
|
373
373
|
defaultChat.provider.enterprise.name
|
|
374
374
|
)),
|
|
@@ -62,8 +62,8 @@ let GrowthSessionController = class GrowthSessionController extends Disposable {
|
|
|
62
62
|
}
|
|
63
63
|
return [{
|
|
64
64
|
resource: GrowthSessionController_1.SESSION_URI,
|
|
65
|
-
label: ( localize(
|
|
66
|
-
description: ( localize(
|
|
65
|
+
label: ( localize(6570, "Try Copilot")),
|
|
66
|
+
description: ( localize(6571, "GitHub Copilot is available. Try it for free.")),
|
|
67
67
|
status: ChatSessionStatus.NeedsInput,
|
|
68
68
|
iconPath: Codicon.lightbulb,
|
|
69
69
|
timing: {
|
|
@@ -103,9 +103,9 @@ class GrowthSessionOpenerParticipant {
|
|
|
103
103
|
query: "",
|
|
104
104
|
isPartialQuery: true,
|
|
105
105
|
previousRequests: [{
|
|
106
|
-
request: ( localize(
|
|
106
|
+
request: ( localize(6572, "Tell me about GitHub Copilot!")),
|
|
107
107
|
response: ( localize(
|
|
108
|
-
|
|
108
|
+
6573,
|
|
109
109
|
"Welcome to GitHub Copilot, your AI coding assistant! Here are some things you can try:\n\n- 🐛 *\"Help me debug this error\"* — paste an error message and get a fix\n- 🧪 *\"Write tests for my function\"* — select code and ask for unit tests\n- 💡 *\"Explain this code\"* — highlight something unfamiliar and ask what it does\n- 🚀 *\"Scaffold a REST API\"* — describe what you want and let Agent mode build it\n- 🎨 *\"Refactor this to be more readable\"* — select messy code and clean it up\n\nType anything below to get started!"
|
|
110
110
|
))
|
|
111
111
|
}]
|
|
@@ -126,8 +126,8 @@ registerAction2(class ResetGrowthSessionAction extends Action2 {
|
|
|
126
126
|
constructor() {
|
|
127
127
|
super({
|
|
128
128
|
id: "workbench.action.chat.resetGrowthSession",
|
|
129
|
-
title: ( localize2(
|
|
130
|
-
category: ( localize2(
|
|
129
|
+
title: ( localize2(6574, "Reset Growth Session Notification")),
|
|
130
|
+
category: ( localize2(6575, "Developer")),
|
|
131
131
|
f1: true
|
|
132
132
|
});
|
|
133
133
|
}
|
|
@@ -138,7 +138,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
138
138
|
"setup.vscode",
|
|
139
139
|
"vscode",
|
|
140
140
|
false,
|
|
141
|
-
( localize2(
|
|
141
|
+
( localize2(6576, "Ask questions about VS Code")).value,
|
|
142
142
|
ChatAgentLocation.Chat,
|
|
143
143
|
ChatModeKind.Agent,
|
|
144
144
|
context,
|
|
@@ -153,7 +153,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
153
153
|
"setup.workspace",
|
|
154
154
|
"workspace",
|
|
155
155
|
false,
|
|
156
|
-
( localize2(
|
|
156
|
+
( localize2(6577, "Ask about your workspace")).value,
|
|
157
157
|
ChatAgentLocation.Chat,
|
|
158
158
|
ChatModeKind.Agent,
|
|
159
159
|
context,
|
|
@@ -168,7 +168,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
168
168
|
"setup.terminal.agent",
|
|
169
169
|
"terminal",
|
|
170
170
|
false,
|
|
171
|
-
( localize2(
|
|
171
|
+
( localize2(6578, "Ask how to do something in the terminal")).value,
|
|
172
172
|
ChatAgentLocation.Chat,
|
|
173
173
|
ChatModeKind.Agent,
|
|
174
174
|
context,
|
|
@@ -179,9 +179,9 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
179
179
|
id: "setup_tools_createNewWorkspace",
|
|
180
180
|
source: ToolDataSource.Internal,
|
|
181
181
|
icon: Codicon.newFolder,
|
|
182
|
-
displayName: ( localize(
|
|
182
|
+
displayName: ( localize(6579, "New Workspace")),
|
|
183
183
|
modelDescription: "Scaffold a new workspace in VS Code",
|
|
184
|
-
userDescription: ( localize(
|
|
184
|
+
userDescription: ( localize(6580, "Scaffold a new workspace in VS Code")),
|
|
185
185
|
canBeReferencedInPrompt: true,
|
|
186
186
|
toolReferenceName: "new",
|
|
187
187
|
when: ContextKeyExpr.true()
|
|
@@ -236,10 +236,10 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
238
|
static {
|
|
239
|
-
this.SETUP_NEEDED_MESSAGE = ( new MarkdownString(( localize(
|
|
239
|
+
this.SETUP_NEEDED_MESSAGE = ( new MarkdownString(( localize(6581, "You need to set up GitHub Copilot and be signed in to use Chat."))));
|
|
240
240
|
}
|
|
241
241
|
static {
|
|
242
|
-
this.TRUST_NEEDED_MESSAGE = ( new MarkdownString(( localize(
|
|
242
|
+
this.TRUST_NEEDED_MESSAGE = ( new MarkdownString(( localize(6582, "You need to trust this workspace to use Chat."))));
|
|
243
243
|
}
|
|
244
244
|
static {
|
|
245
245
|
this.CHAT_RETRY_COMMAND_ID = "workbench.action.chat.retrySetup";
|
|
@@ -382,7 +382,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
382
382
|
}
|
|
383
383
|
progress({
|
|
384
384
|
kind: "progressMessage",
|
|
385
|
-
content: ( new MarkdownString(( localize(
|
|
385
|
+
content: ( new MarkdownString(( localize(6583, "Getting chat ready")))),
|
|
386
386
|
shimmer: true
|
|
387
387
|
});
|
|
388
388
|
await this.forwardRequestToChat(
|
|
@@ -419,7 +419,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
419
419
|
this.logService.error("[chat setup] Failed to forward request to chat", error);
|
|
420
420
|
progress({
|
|
421
421
|
kind: "warning",
|
|
422
|
-
content: ( new MarkdownString(( localize(
|
|
422
|
+
content: ( new MarkdownString(( localize(6584, "Failed to get a response. Please try again."))))
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
}
|
|
@@ -488,7 +488,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
488
488
|
const timeoutHandle = setTimeout(() => {
|
|
489
489
|
progress({
|
|
490
490
|
kind: "progressMessage",
|
|
491
|
-
content: ( new MarkdownString(( localize(
|
|
491
|
+
content: ( new MarkdownString(( localize(6585, "Chat is almost ready")))),
|
|
492
492
|
shimmer: true
|
|
493
493
|
});
|
|
494
494
|
}, 10000);
|
|
@@ -505,7 +505,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
505
505
|
this.environmentService.remoteAuthority ? 60000 : 20000
|
|
506
506
|
).then(() => "timedout"), this.whenPanelAgentHasGuidance(disposables).then(() => "panelGuidance"), allReady]);
|
|
507
507
|
if (ready === "panelGuidance") {
|
|
508
|
-
const warningMessage = ( localize(
|
|
508
|
+
const warningMessage = ( localize(6586, "Please try again."));
|
|
509
509
|
progress({
|
|
510
510
|
kind: "markdownContent",
|
|
511
511
|
content: ( new MarkdownString(warningMessage))
|
|
@@ -517,13 +517,13 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
517
517
|
let warningMessage;
|
|
518
518
|
if (this.chatEntitlementService.anonymous) {
|
|
519
519
|
warningMessage = ( localize(
|
|
520
|
-
|
|
520
|
+
6587,
|
|
521
521
|
"Chat took too long to get ready. Please ensure that the extension `{0}` is installed and enabled. Click restart to try again if this issue persists.",
|
|
522
522
|
defaultChat.chatExtensionId
|
|
523
523
|
));
|
|
524
524
|
} else {
|
|
525
525
|
warningMessage = ( localize(
|
|
526
|
-
|
|
526
|
+
6588,
|
|
527
527
|
"Chat took too long to get ready. Please ensure you are signed in to {0} and that the extension `{1}` is installed and enabled. Click restart to try again if this issue persists.",
|
|
528
528
|
defaultChat.provider.default.name,
|
|
529
529
|
defaultChat.chatExtensionId
|
|
@@ -550,7 +550,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
550
550
|
kind: "command",
|
|
551
551
|
command: {
|
|
552
552
|
id: SetupAgent_1.CHAT_SHOW_OUTPUT_COMMAND_ID,
|
|
553
|
-
title: ( localize(
|
|
553
|
+
title: ( localize(6589, "Show Details"))
|
|
554
554
|
}
|
|
555
555
|
});
|
|
556
556
|
} else {
|
|
@@ -561,7 +561,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
561
561
|
kind: "command",
|
|
562
562
|
command: {
|
|
563
563
|
id: SetupAgent_1.CHAT_RETRY_COMMAND_ID,
|
|
564
|
-
title: ( localize(
|
|
564
|
+
title: ( localize(6590, "Restart")),
|
|
565
565
|
arguments: [requestModel.session.sessionResource]
|
|
566
566
|
}
|
|
567
567
|
});
|
|
@@ -739,7 +739,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
739
739
|
progress({
|
|
740
740
|
kind: "progressMessage",
|
|
741
741
|
content: ( new MarkdownString(( localize(
|
|
742
|
-
|
|
742
|
+
6591,
|
|
743
743
|
"Signing in to {0}",
|
|
744
744
|
defaultAccountService.getDefaultAccountAuthenticationProvider().name
|
|
745
745
|
)))),
|
|
@@ -749,7 +749,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
749
749
|
case ChatSetupStep.Installing:
|
|
750
750
|
progress({
|
|
751
751
|
kind: "progressMessage",
|
|
752
|
-
content: ( new MarkdownString(( localize(
|
|
752
|
+
content: ( new MarkdownString(( localize(6592, "Getting chat ready")))),
|
|
753
753
|
shimmer: true
|
|
754
754
|
});
|
|
755
755
|
break;
|
|
@@ -786,7 +786,7 @@ let SetupAgent = class SetupAgent extends Disposable {
|
|
|
786
786
|
} else {
|
|
787
787
|
progress({
|
|
788
788
|
kind: "warning",
|
|
789
|
-
content: ( new MarkdownString(( localize(
|
|
789
|
+
content: ( new MarkdownString(( localize(6593, "Chat setup failed."))))
|
|
790
790
|
});
|
|
791
791
|
}
|
|
792
792
|
}
|
|
@@ -940,13 +940,13 @@ let ChatCodeActionsProvider = ChatCodeActionsProvider_1 = class ChatCodeActionsP
|
|
|
940
940
|
if (range.isEmpty()) {
|
|
941
941
|
const textAtLine = model.getLineContent(range.startLineNumber);
|
|
942
942
|
if (/^\s*$/.test(textAtLine)) {
|
|
943
|
-
generateOrModifyTitle = ( localize(
|
|
943
|
+
generateOrModifyTitle = ( localize(6594, "Generate"));
|
|
944
944
|
generateOrModifyCommand = AICodeActionsHelper.generate(range);
|
|
945
945
|
}
|
|
946
946
|
} else {
|
|
947
947
|
const textInSelection = model.getValueInRange(range);
|
|
948
948
|
if (!/^\s*$/.test(textInSelection)) {
|
|
949
|
-
generateOrModifyTitle = ( localize(
|
|
949
|
+
generateOrModifyTitle = ( localize(6595, "Modify"));
|
|
950
950
|
generateOrModifyCommand = AICodeActionsHelper.modify(range);
|
|
951
951
|
}
|
|
952
952
|
}
|
|
@@ -964,14 +964,14 @@ let ChatCodeActionsProvider = ChatCodeActionsProvider_1 = class ChatCodeActionsP
|
|
|
964
964
|
kind: CodeActionKind.QuickFix.append("copilot").value,
|
|
965
965
|
isAI: true,
|
|
966
966
|
diagnostics: markers,
|
|
967
|
-
title: ( localize(
|
|
967
|
+
title: ( localize(6596, "Fix")),
|
|
968
968
|
command: AICodeActionsHelper.fixMarkers(markers, range)
|
|
969
969
|
});
|
|
970
970
|
actions.push({
|
|
971
971
|
kind: CodeActionKind.QuickFix.append("explain").append("copilot").value,
|
|
972
972
|
isAI: true,
|
|
973
973
|
diagnostics: markers,
|
|
974
|
-
title: ( localize(
|
|
974
|
+
title: ( localize(6597, "Explain")),
|
|
975
975
|
command: AICodeActionsHelper.explainMarkers(markers)
|
|
976
976
|
});
|
|
977
977
|
}
|
|
@@ -994,7 +994,7 @@ class AICodeActionsHelper {
|
|
|
994
994
|
static modify(range) {
|
|
995
995
|
return {
|
|
996
996
|
id: ACTION_START,
|
|
997
|
-
title: ( localize(
|
|
997
|
+
title: ( localize(6595, "Modify")),
|
|
998
998
|
arguments: [{
|
|
999
999
|
initialSelection: this.rangeToSelection(range),
|
|
1000
1000
|
initialRange: range,
|
|
@@ -1005,7 +1005,7 @@ class AICodeActionsHelper {
|
|
|
1005
1005
|
static generate(range) {
|
|
1006
1006
|
return {
|
|
1007
1007
|
id: ACTION_START,
|
|
1008
|
-
title: ( localize(
|
|
1008
|
+
title: ( localize(6594, "Generate")),
|
|
1009
1009
|
arguments: [{
|
|
1010
1010
|
initialSelection: this.rangeToSelection(range),
|
|
1011
1011
|
initialRange: range,
|
|
@@ -1024,7 +1024,7 @@ class AICodeActionsHelper {
|
|
|
1024
1024
|
static explainMarkers(markers) {
|
|
1025
1025
|
return {
|
|
1026
1026
|
id: CHAT_OPEN_ACTION_ID,
|
|
1027
|
-
title: ( localize(
|
|
1027
|
+
title: ( localize(6597, "Explain")),
|
|
1028
1028
|
arguments: [{
|
|
1029
1029
|
query: `@workspace /explain ${( markers.map(marker => marker.message)).join(", ")}`,
|
|
1030
1030
|
isPartialQuery: true
|
|
@@ -1034,7 +1034,7 @@ class AICodeActionsHelper {
|
|
|
1034
1034
|
static fixMarkers(markers, range) {
|
|
1035
1035
|
return {
|
|
1036
1036
|
id: ACTION_START,
|
|
1037
|
-
title: ( localize(
|
|
1037
|
+
title: ( localize(6596, "Fix")),
|
|
1038
1038
|
arguments: [{
|
|
1039
1039
|
message: `/fix ${( markers.map(marker => marker.message)).join(", ")}`,
|
|
1040
1040
|
initialSelection: this.rangeToSelection(range),
|
|
@@ -128,7 +128,7 @@ let ChatSetup = class ChatSetup {
|
|
|
128
128
|
const dialogSkipped = this.skipDialogOnce;
|
|
129
129
|
this.skipDialogOnce = false;
|
|
130
130
|
const trusted = await this.workspaceTrustRequestService.requestWorkspaceTrust({
|
|
131
|
-
message: ( localize(
|
|
131
|
+
message: ( localize(6598, "AI features are currently only supported in trusted workspaces."))
|
|
132
132
|
});
|
|
133
133
|
if (!trusted) {
|
|
134
134
|
this.context.update({
|
|
@@ -262,20 +262,20 @@ let ChatSetup = class ChatSetup {
|
|
|
262
262
|
});
|
|
263
263
|
let buttons;
|
|
264
264
|
if (!options?.forceAnonymous && (this.context.state.entitlement === ChatEntitlement.Unknown || options?.forceSignInDialog)) {
|
|
265
|
-
const defaultProviderButton = [( localize(
|
|
265
|
+
const defaultProviderButton = [( localize(6599, "Continue with {0}", defaultChat.provider.default.name)), ChatSetupStrategy.SetupWithoutEnterpriseProvider, styleButton("continue-button", "default")];
|
|
266
266
|
const defaultProviderLink = [
|
|
267
267
|
defaultProviderButton[0],
|
|
268
268
|
defaultProviderButton[1],
|
|
269
269
|
styleButton("link-button")
|
|
270
270
|
];
|
|
271
|
-
const enterpriseProviderButton = [( localize(
|
|
271
|
+
const enterpriseProviderButton = [( localize(6599, "Continue with {0}", defaultChat.provider.enterprise.name)), ChatSetupStrategy.SetupWithEnterpriseProvider, styleButton("continue-button", "default")];
|
|
272
272
|
const enterpriseProviderLink = [
|
|
273
273
|
enterpriseProviderButton[0],
|
|
274
274
|
enterpriseProviderButton[1],
|
|
275
275
|
styleButton("link-button")
|
|
276
276
|
];
|
|
277
|
-
const googleProviderButton = [( localize(
|
|
278
|
-
const appleProviderButton = [( localize(
|
|
277
|
+
const googleProviderButton = [( localize(6599, "Continue with {0}", defaultChat.provider.google.name)), ChatSetupStrategy.SetupWithGoogleProvider, styleButton("continue-button", "google")];
|
|
278
|
+
const appleProviderButton = [( localize(6599, "Continue with {0}", defaultChat.provider.apple.name)), ChatSetupStrategy.SetupWithAppleProvider, styleButton("continue-button", "apple")];
|
|
279
279
|
if (!this.defaultAccountService.getDefaultAccountAuthenticationProvider().enterprise) {
|
|
280
280
|
buttons = coalesce([
|
|
281
281
|
defaultProviderButton,
|
|
@@ -292,7 +292,7 @@ let ChatSetup = class ChatSetup {
|
|
|
292
292
|
]);
|
|
293
293
|
}
|
|
294
294
|
} else {
|
|
295
|
-
buttons = [[( localize(
|
|
295
|
+
buttons = [[( localize(6600, "Use AI Features")), ChatSetupStrategy.DefaultSetup, undefined]];
|
|
296
296
|
}
|
|
297
297
|
return buttons;
|
|
298
298
|
}
|
|
@@ -302,22 +302,22 @@ let ChatSetup = class ChatSetup {
|
|
|
302
302
|
}
|
|
303
303
|
if (this.chatEntitlementService.anonymous) {
|
|
304
304
|
if (options?.forceAnonymous) {
|
|
305
|
-
return localize(
|
|
305
|
+
return localize(6601, "Start using AI Features");
|
|
306
306
|
} else {
|
|
307
|
-
return localize(
|
|
307
|
+
return localize(6602, "Enable more AI features");
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
if (this.context.state.entitlement === ChatEntitlement.Unknown || options?.forceSignInDialog) {
|
|
311
|
-
return localize(
|
|
311
|
+
return localize(6603, "Sign in to use AI Features");
|
|
312
312
|
}
|
|
313
|
-
return localize(
|
|
313
|
+
return localize(6601, "Start using AI Features");
|
|
314
314
|
}
|
|
315
315
|
createDialogFooter(disposables, options) {
|
|
316
316
|
const element = $(".chat-setup-dialog-footer");
|
|
317
317
|
let footer;
|
|
318
318
|
if (options?.forceAnonymous || this.telemetryService.telemetryLevel === TelemetryLevel.NONE) {
|
|
319
319
|
footer = ( localize(
|
|
320
|
-
|
|
320
|
+
6604,
|
|
321
321
|
"By continuing, you agree to {0}'s [Terms]({1}) and [Privacy Statement]({2}).",
|
|
322
322
|
defaultChat.provider.default.name,
|
|
323
323
|
defaultChat.termsStatementUrl,
|
|
@@ -325,7 +325,7 @@ let ChatSetup = class ChatSetup {
|
|
|
325
325
|
));
|
|
326
326
|
} else {
|
|
327
327
|
footer = ( localize(
|
|
328
|
-
|
|
328
|
+
6605,
|
|
329
329
|
"By continuing, you agree to {0}'s [Terms]({1}) and [Privacy Statement]({2}). {3} Copilot may show [public code]({4}) suggestions and use your data to improve the product. You can change these [settings]({5}) anytime.",
|
|
330
330
|
defaultChat.provider.default.name,
|
|
331
331
|
defaultChat.termsStatementUrl,
|