@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
|
@@ -48,7 +48,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
48
48
|
this.environmentService = environmentService;
|
|
49
49
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
50
50
|
command: "clear",
|
|
51
|
-
detail: ( localize(
|
|
51
|
+
detail: ( localize(6606, "Start a new chat and archive the current one")),
|
|
52
52
|
sortText: "z2_clear",
|
|
53
53
|
executeImmediately: true,
|
|
54
54
|
locations: [ChatAgentLocation.Chat]
|
|
@@ -58,7 +58,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
58
58
|
}));
|
|
59
59
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
60
60
|
command: "hooks",
|
|
61
|
-
detail: ( localize(
|
|
61
|
+
detail: ( localize(6607, "Configure hooks")),
|
|
62
62
|
sortText: "z3_hooks",
|
|
63
63
|
executeImmediately: true,
|
|
64
64
|
silent: true,
|
|
@@ -69,7 +69,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
69
69
|
}));
|
|
70
70
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
71
71
|
command: "models",
|
|
72
|
-
detail: ( localize(
|
|
72
|
+
detail: ( localize(6608, "Open the model picker")),
|
|
73
73
|
sortText: "z3_models",
|
|
74
74
|
executeImmediately: true,
|
|
75
75
|
silent: true,
|
|
@@ -79,7 +79,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
79
79
|
}));
|
|
80
80
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
81
81
|
command: "tools",
|
|
82
|
-
detail: ( localize(
|
|
82
|
+
detail: ( localize(6609, "Configure tools")),
|
|
83
83
|
sortText: "z3_tools",
|
|
84
84
|
executeImmediately: true,
|
|
85
85
|
silent: true,
|
|
@@ -90,7 +90,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
90
90
|
}));
|
|
91
91
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
92
92
|
command: "plugins",
|
|
93
|
-
detail: ( localize(
|
|
93
|
+
detail: ( localize(6610, "Manage plugins")),
|
|
94
94
|
sortText: "z3_plugins",
|
|
95
95
|
executeImmediately: true,
|
|
96
96
|
silent: true,
|
|
@@ -102,7 +102,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
102
102
|
if (!this.environmentService.isSessionsWindow) {
|
|
103
103
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
104
104
|
command: "debug",
|
|
105
|
-
detail: ( localize(
|
|
105
|
+
detail: ( localize(6611, "Show Chat Debug View")),
|
|
106
106
|
sortText: "z3_debug",
|
|
107
107
|
executeImmediately: true,
|
|
108
108
|
silent: true,
|
|
@@ -113,7 +113,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
113
113
|
}
|
|
114
114
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
115
115
|
command: "agents",
|
|
116
|
-
detail: ( localize(
|
|
116
|
+
detail: ( localize(6612, "Configure custom agents")),
|
|
117
117
|
sortText: "z3_agents",
|
|
118
118
|
executeImmediately: true,
|
|
119
119
|
silent: true,
|
|
@@ -124,7 +124,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
124
124
|
}));
|
|
125
125
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
126
126
|
command: "skills",
|
|
127
|
-
detail: ( localize(
|
|
127
|
+
detail: ( localize(6613, "Configure skills")),
|
|
128
128
|
sortText: "z3_skills",
|
|
129
129
|
executeImmediately: true,
|
|
130
130
|
silent: true,
|
|
@@ -135,7 +135,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
135
135
|
}));
|
|
136
136
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
137
137
|
command: "instructions",
|
|
138
|
-
detail: ( localize(
|
|
138
|
+
detail: ( localize(6614, "Configure instructions")),
|
|
139
139
|
sortText: "z3_instructions",
|
|
140
140
|
executeImmediately: true,
|
|
141
141
|
silent: true,
|
|
@@ -146,7 +146,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
146
146
|
}));
|
|
147
147
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
148
148
|
command: "prompts",
|
|
149
|
-
detail: ( localize(
|
|
149
|
+
detail: ( localize(6615, "Configure prompt files")),
|
|
150
150
|
sortText: "z3_prompts",
|
|
151
151
|
executeImmediately: true,
|
|
152
152
|
silent: true,
|
|
@@ -157,7 +157,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
157
157
|
}));
|
|
158
158
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
159
159
|
command: "fork",
|
|
160
|
-
detail: ( localize(
|
|
160
|
+
detail: ( localize(6616, "Fork conversation into a new chat session")),
|
|
161
161
|
sortText: "z2_fork",
|
|
162
162
|
executeImmediately: true,
|
|
163
163
|
silent: true,
|
|
@@ -168,7 +168,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
168
168
|
}));
|
|
169
169
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
170
170
|
command: "rename",
|
|
171
|
-
detail: ( localize(
|
|
171
|
+
detail: ( localize(6617, "Rename this chat")),
|
|
172
172
|
sortText: "z2_rename",
|
|
173
173
|
executeImmediately: false,
|
|
174
174
|
silent: true,
|
|
@@ -190,7 +190,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
190
190
|
if (autoApprovePolicyValue !== false) {
|
|
191
191
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
192
192
|
command: "autoApprove",
|
|
193
|
-
detail: ( localize(
|
|
193
|
+
detail: ( localize(6618, "Set permissions to bypass approvals")),
|
|
194
194
|
sortText: "z1_autoApprove",
|
|
195
195
|
executeImmediately: true,
|
|
196
196
|
silent: true,
|
|
@@ -201,7 +201,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
201
201
|
}));
|
|
202
202
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
203
203
|
command: "disableAutoApprove",
|
|
204
|
-
detail: ( localize(
|
|
204
|
+
detail: ( localize(6619, "Set permissions back to default")),
|
|
205
205
|
sortText: "z1_disableAutoApprove",
|
|
206
206
|
executeImmediately: true,
|
|
207
207
|
silent: true,
|
|
@@ -212,7 +212,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
212
212
|
}));
|
|
213
213
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
214
214
|
command: "yolo",
|
|
215
|
-
detail: ( localize(
|
|
215
|
+
detail: ( localize(6620, "Set permissions to bypass approvals")),
|
|
216
216
|
sortText: "z1_yolo",
|
|
217
217
|
executeImmediately: true,
|
|
218
218
|
silent: true,
|
|
@@ -223,7 +223,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
223
223
|
}));
|
|
224
224
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
225
225
|
command: "disableYolo",
|
|
226
|
-
detail: ( localize(
|
|
226
|
+
detail: ( localize(6621, "Set permissions back to default")),
|
|
227
227
|
sortText: "z1_disableYolo",
|
|
228
228
|
executeImmediately: true,
|
|
229
229
|
silent: true,
|
|
@@ -235,7 +235,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
235
235
|
if (configurationService.getValue(ChatConfiguration.AutopilotEnabled) !== false) {
|
|
236
236
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
237
237
|
command: "autopilot",
|
|
238
|
-
detail: ( localize(
|
|
238
|
+
detail: ( localize(6622, "Set permissions to autopilot mode")),
|
|
239
239
|
sortText: "z1_autopilot",
|
|
240
240
|
executeImmediately: true,
|
|
241
241
|
silent: true,
|
|
@@ -246,7 +246,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
246
246
|
}));
|
|
247
247
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
248
248
|
command: "exitAutopilot",
|
|
249
|
-
detail: ( localize(
|
|
249
|
+
detail: ( localize(6623, "Set permissions back to default")),
|
|
250
250
|
sortText: "z1_exitAutopilot",
|
|
251
251
|
executeImmediately: true,
|
|
252
252
|
silent: true,
|
|
@@ -378,7 +378,7 @@ let ChatSessionOptionSlashCommandsContribution = class ChatSessionOptionSlashCom
|
|
|
378
378
|
registerOne(chatSessionType, group, item, name) {
|
|
379
379
|
return this.slashCommandService.registerSlashCommand({
|
|
380
380
|
command: name,
|
|
381
|
-
detail: item.description ?? ( localize(
|
|
381
|
+
detail: item.description ?? ( localize(6624, "Switch to '{0}'", item.name)),
|
|
382
382
|
sortText: `z1_${name}`,
|
|
383
383
|
executeImmediately: true,
|
|
384
384
|
silent: true,
|
|
@@ -131,8 +131,8 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
131
131
|
const headerHost = this.options?.titleHeaderContainer ?? this.element;
|
|
132
132
|
const header = this.renderHeader(headerHost, this._store, planName, toAction({
|
|
133
133
|
id: "workbench.action.manageCopilot",
|
|
134
|
-
label: ( localize(
|
|
135
|
-
tooltip: ( localize(
|
|
134
|
+
label: ( localize(6625, "Manage Copilot Settings")),
|
|
135
|
+
tooltip: ( localize(6626, "Manage Copilot Settings")),
|
|
136
136
|
class: ThemeIcon.asClassName(Codicon.settings),
|
|
137
137
|
run: () => this.runCommandAndClose(() => this.openerService.open(( URI.parse(defaultChat.manageSettingsUrl))))
|
|
138
138
|
}));
|
|
@@ -149,9 +149,9 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
149
149
|
})));
|
|
150
150
|
headerAdditionalSpendButton.element.classList.add("header-cta-button");
|
|
151
151
|
if (initialIsUsageBasedBilling) {
|
|
152
|
-
headerAdditionalSpendButton.label = initialAdditionalUsageEnabled ? ( localize(
|
|
152
|
+
headerAdditionalSpendButton.label = initialAdditionalUsageEnabled ? ( localize(6627, "Manage Additional Spend")) : ( localize(6628, "Configure Additional Spend"));
|
|
153
153
|
} else {
|
|
154
|
-
headerAdditionalSpendButton.label = initialAdditionalUsageEnabled ? ( localize(
|
|
154
|
+
headerAdditionalSpendButton.label = initialAdditionalUsageEnabled ? ( localize(6629, "Manage Budget")) : ( localize(6630, "Configure Budget"));
|
|
155
155
|
}
|
|
156
156
|
this._store.add(headerAdditionalSpendButton.onDidClick(() => {
|
|
157
157
|
this.telemetryService.publicLog2("workbenchActionExecuted", {
|
|
@@ -170,7 +170,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
170
170
|
hoverDelegate: nativeHoverDelegate
|
|
171
171
|
})));
|
|
172
172
|
upgradeButton.element.classList.add("header-cta-button");
|
|
173
|
-
upgradeButton.label = ( localize(
|
|
173
|
+
upgradeButton.label = ( localize(6631, "Upgrade"));
|
|
174
174
|
this._store.add(
|
|
175
175
|
upgradeButton.onDidClick(() => this.runCommandAndClose("workbench.action.chat.upgradePlan"))
|
|
176
176
|
);
|
|
@@ -185,10 +185,10 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
185
185
|
}
|
|
186
186
|
const hasPremiumUnlimited = !!premiumChat?.unlimited;
|
|
187
187
|
if (hasPremiumUnlimited) {
|
|
188
|
-
const includedTitle = this.chatEntitlementService.quotas.usageBasedBilling ? ( localize(
|
|
188
|
+
const includedTitle = this.chatEntitlementService.quotas.usageBasedBilling ? ( localize(6632, "Credits")) : ( localize(6633, "Premium Requests"));
|
|
189
189
|
const includedContainer = this.element.appendChild($("div.quota-indicator.included"));
|
|
190
190
|
includedContainer.appendChild($("div.quota-title", undefined, includedTitle));
|
|
191
|
-
includedContainer.appendChild($("div.description", undefined, ( localize(
|
|
191
|
+
includedContainer.appendChild($("div.description", undefined, ( localize(6634, "Included with your organization's plan."))));
|
|
192
192
|
}
|
|
193
193
|
if (hasQuickSettingsContent) {
|
|
194
194
|
const hasContentAbove = hasUsageSection || hasVisibleUsageContent || hasPremiumUnlimited;
|
|
@@ -209,12 +209,12 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
209
209
|
} = this.chatEntitlementService.quotas;
|
|
210
210
|
if (chatQuota || premiumChatQuota || completionsQuota) {
|
|
211
211
|
const resetLabel = resetDate ? (resetDateHasTime ? ( localize(
|
|
212
|
-
|
|
212
|
+
6635,
|
|
213
213
|
"Resets {0} at {1}",
|
|
214
214
|
this.dateFormatter.value.format(( new Date(resetDate))),
|
|
215
215
|
this.timeFormatter.value.format(( new Date(resetDate)))
|
|
216
216
|
)) : ( localize(
|
|
217
|
-
|
|
217
|
+
6636,
|
|
218
218
|
"Resets {0}",
|
|
219
219
|
this.dateFormatter.value.format(( new Date(resetDate)))
|
|
220
220
|
))) : undefined;
|
|
@@ -227,20 +227,20 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
227
227
|
}
|
|
228
228
|
let chatQuotaIndicator;
|
|
229
229
|
if (chatQuota && !chatQuota.unlimited && (!this.chatEntitlementService.quotas.usageBasedBilling || this.chatEntitlementService.entitlement === ChatEntitlement.Free)) {
|
|
230
|
-
const chatLabel = this.chatEntitlementService.quotas.usageBasedBilling && this.chatEntitlementService.entitlement === ChatEntitlement.Free ? ( localize(
|
|
230
|
+
const chatLabel = this.chatEntitlementService.quotas.usageBasedBilling && this.chatEntitlementService.entitlement === ChatEntitlement.Free ? ( localize(6637, "Credits")) : ( localize(6638, "Chat messages"));
|
|
231
231
|
chatQuotaIndicator = this.createQuotaIndicator(container, chatQuota, chatLabel, resetLabel);
|
|
232
232
|
}
|
|
233
233
|
let premiumChatQuotaIndicator;
|
|
234
234
|
if (premiumChatQuota && !premiumChatQuota.unlimited && premiumChatQuota.percentRemaining >= 0) {
|
|
235
235
|
const isUBB = this.chatEntitlementService.quotas.usageBasedBilling;
|
|
236
|
-
const premiumChatLabel = isUBB ? ( localize(
|
|
236
|
+
const premiumChatLabel = isUBB ? ( localize(6637, "Credits")) : this.chatEntitlementService.quotas.additionalUsageEnabled ? ( localize(6639, "Included premium requests")) : ( localize(6640, "Premium requests"));
|
|
237
237
|
const premiumChatResetLabel = isUBB ? this.formatResetAtLabel(premiumChatQuota.resetAt) ?? resetLabel : resetLabel;
|
|
238
238
|
premiumChatQuotaIndicator = this.createQuotaIndicator(container, premiumChatQuota, premiumChatLabel, premiumChatResetLabel);
|
|
239
239
|
}
|
|
240
240
|
let completionsQuotaIndicator;
|
|
241
241
|
const showCompletions = completionsQuota && !completionsQuota.unlimited && completionsQuota.percentRemaining >= 0 && (!this.chatEntitlementService.quotas.usageBasedBilling || this.chatEntitlementService.entitlement === ChatEntitlement.Free);
|
|
242
242
|
if (showCompletions) {
|
|
243
|
-
completionsQuotaIndicator = this.createQuotaIndicator(container, completionsQuota, ( localize(
|
|
243
|
+
completionsQuotaIndicator = this.createQuotaIndicator(container, completionsQuota, ( localize(6641, "Inline Suggestions")), resetLabel);
|
|
244
244
|
}
|
|
245
245
|
(async () => {
|
|
246
246
|
await updatePromise;
|
|
@@ -269,15 +269,15 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
269
269
|
headerAdditionalSpendButton.element.style.display = calloutVisible ? "" : "none";
|
|
270
270
|
const isUBB = this.chatEntitlementService.quotas.usageBasedBilling === true;
|
|
271
271
|
if (isUBB) {
|
|
272
|
-
headerAdditionalSpendButton.label = isAdditionalUsageEnabled ? ( localize(
|
|
272
|
+
headerAdditionalSpendButton.label = isAdditionalUsageEnabled ? ( localize(6627, "Manage Additional Spend")) : ( localize(6628, "Configure Additional Spend"));
|
|
273
273
|
} else {
|
|
274
|
-
headerAdditionalSpendButton.label = isAdditionalUsageEnabled ? ( localize(
|
|
274
|
+
headerAdditionalSpendButton.label = isAdditionalUsageEnabled ? ( localize(6629, "Manage Budget")) : ( localize(6630, "Configure Budget"));
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
})();
|
|
278
278
|
}
|
|
279
279
|
else if (this.chatEntitlementService.anonymous && this.chatEntitlementService.sentiment.completed) {
|
|
280
|
-
this.createQuotaIndicator(container, ( localize(
|
|
280
|
+
this.createQuotaIndicator(container, ( localize(6642, "Limited")), ( localize(6638, "Chat messages")));
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
renderInlineSuggestionsSection(hasContentAbove) {
|
|
@@ -290,10 +290,10 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
290
290
|
const activeLanguageId = this.editorService.activeTextEditorLanguageId;
|
|
291
291
|
const getStatusText = () => {
|
|
292
292
|
if (!this.canUseChat()) {
|
|
293
|
-
return localize(
|
|
293
|
+
return localize(6643, "Disabled");
|
|
294
294
|
}
|
|
295
295
|
const enabled = activeLanguageId ? isCompletionsEnabled(this.configurationService, activeLanguageId) : isCompletionsEnabled(this.configurationService);
|
|
296
|
-
return enabled ? ( localize(
|
|
296
|
+
return enabled ? ( localize(6644, "Enabled")) : ( localize(6643, "Disabled"));
|
|
297
297
|
};
|
|
298
298
|
let disclosureHeader;
|
|
299
299
|
let chevron;
|
|
@@ -304,7 +304,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
304
304
|
disclosureHeader.classList.add("no-border");
|
|
305
305
|
}
|
|
306
306
|
disclosureHeader.setAttribute("aria-expanded", String(!collapsed));
|
|
307
|
-
disclosureHeader.appendChild($("span.collapsible-label", undefined, ( localize(
|
|
307
|
+
disclosureHeader.appendChild($("span.collapsible-label", undefined, ( localize(6645, "Inline Suggestions"))));
|
|
308
308
|
chevron = disclosureHeader.appendChild($("span.collapsible-chevron"));
|
|
309
309
|
chevron.classList.add(
|
|
310
310
|
...ThemeIcon.asClassNameArray(collapsed ? Codicon.chevronRight : Codicon.chevronDown)
|
|
@@ -392,7 +392,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
392
392
|
let descriptionEl;
|
|
393
393
|
if (headerLink) {
|
|
394
394
|
descriptionEl = collapsibleInner.appendChild($("div.section-description"));
|
|
395
|
-
const descText = linkDescription ? `${linkDescription} [${( localize(
|
|
395
|
+
const descText = linkDescription ? `${linkDescription} [${( localize(6646, "Learn More"))}](${headerLink})` : `[${( localize(6646, "Learn More"))}](${headerLink})`;
|
|
396
396
|
this.renderTextPlus(descriptionEl, descText, sectionStore);
|
|
397
397
|
}
|
|
398
398
|
let detailEl;
|
|
@@ -424,7 +424,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
424
424
|
if (descriptionEl) {
|
|
425
425
|
if (updatedLink) {
|
|
426
426
|
descriptionEl.textContent = "";
|
|
427
|
-
const descText = updatedLinkDesc ? `${updatedLinkDesc} [${( localize(
|
|
427
|
+
const descText = updatedLinkDesc ? `${updatedLinkDesc} [${( localize(6646, "Learn More"))}](${updatedLink})` : `[${( localize(6646, "Learn More"))}](${updatedLink})`;
|
|
428
428
|
this.renderTextPlus(descriptionEl, descText, newStore);
|
|
429
429
|
} else {
|
|
430
430
|
descriptionEl.remove();
|
|
@@ -432,7 +432,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
432
432
|
}
|
|
433
433
|
} else if (updatedLink) {
|
|
434
434
|
descriptionEl = collapsibleInner.insertBefore($("div.section-description"), detailEl ?? null);
|
|
435
|
-
const descText = updatedLinkDesc ? `${updatedLinkDesc} [${( localize(
|
|
435
|
+
const descText = updatedLinkDesc ? `${updatedLinkDesc} [${( localize(6646, "Learn More"))}](${updatedLink})` : `[${( localize(6646, "Learn More"))}](${updatedLink})`;
|
|
436
436
|
this.renderTextPlus(descriptionEl, descText, newStore);
|
|
437
437
|
}
|
|
438
438
|
}
|
|
@@ -452,7 +452,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
452
452
|
let descriptionClass = ".description";
|
|
453
453
|
if (newUser && anonymousUser) {
|
|
454
454
|
descriptionText = ( new MarkdownString(( localize(
|
|
455
|
-
|
|
455
|
+
6647,
|
|
456
456
|
"By continuing with {0} Copilot, you agree to {1}'s [Terms]({2}) and [Privacy Statement]({3})",
|
|
457
457
|
defaultChat.provider.default.name,
|
|
458
458
|
defaultChat.provider.default.name,
|
|
@@ -463,23 +463,23 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
463
463
|
}));
|
|
464
464
|
descriptionClass = `${descriptionClass}.terms`;
|
|
465
465
|
} else if (newUser) {
|
|
466
|
-
descriptionText = ( localize(
|
|
466
|
+
descriptionText = ( localize(6648, "Set up Copilot to use AI features."));
|
|
467
467
|
} else if (anonymousUser) {
|
|
468
|
-
descriptionText = ( localize(
|
|
468
|
+
descriptionText = ( localize(6649, "Sign in to enable more Copilot AI features."));
|
|
469
469
|
} else if (disabled) {
|
|
470
|
-
descriptionText = ( localize(
|
|
470
|
+
descriptionText = ( localize(6650, "Enable Copilot to use AI features."));
|
|
471
471
|
} else {
|
|
472
|
-
descriptionText = ( localize(
|
|
472
|
+
descriptionText = ( localize(6651, "Sign in to use Copilot AI features."));
|
|
473
473
|
}
|
|
474
474
|
let buttonLabel;
|
|
475
475
|
if (newUser) {
|
|
476
|
-
buttonLabel = ( localize(
|
|
476
|
+
buttonLabel = ( localize(6652, "Use AI Features"));
|
|
477
477
|
} else if (anonymousUser) {
|
|
478
|
-
buttonLabel = ( localize(
|
|
478
|
+
buttonLabel = ( localize(6653, "Enable more AI Features"));
|
|
479
479
|
} else if (disabled) {
|
|
480
|
-
buttonLabel = ( localize(
|
|
480
|
+
buttonLabel = ( localize(6654, "Enable AI Features"));
|
|
481
481
|
} else {
|
|
482
|
-
buttonLabel = ( localize(
|
|
482
|
+
buttonLabel = ( localize(6655, "Sign in to use AI Features"));
|
|
483
483
|
}
|
|
484
484
|
let commandId;
|
|
485
485
|
if (newUser && anonymousUser) {
|
|
@@ -515,7 +515,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
515
515
|
const currentModel = modelInfo.models.find(m => m.id === modelInfo.currentModelId);
|
|
516
516
|
if (currentModel) {
|
|
517
517
|
const modelContainer = container.appendChild($("div.model-selection"));
|
|
518
|
-
modelContainer.appendChild($("span.model-text", undefined, ( localize(
|
|
518
|
+
modelContainer.appendChild($("span.model-text", undefined, ( localize(6656, "Model"))));
|
|
519
519
|
const selectOptions = ( modelInfo.models.map(m => ({
|
|
520
520
|
text: m.name
|
|
521
521
|
})));
|
|
@@ -526,7 +526,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
526
526
|
this.contextViewService,
|
|
527
527
|
defaultSelectBoxStyles,
|
|
528
528
|
{
|
|
529
|
-
ariaLabel: ( localize(
|
|
529
|
+
ariaLabel: ( localize(6657, "Select Model")),
|
|
530
530
|
optionsAsChildren: true
|
|
531
531
|
}
|
|
532
532
|
)));
|
|
@@ -559,7 +559,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
559
559
|
this.contextViewService,
|
|
560
560
|
defaultSelectBoxStyles,
|
|
561
561
|
{
|
|
562
|
-
ariaLabel: ( localize(
|
|
562
|
+
ariaLabel: ( localize(6658, "Select {0}", option.label)),
|
|
563
563
|
optionsAsChildren: true
|
|
564
564
|
}
|
|
565
565
|
)));
|
|
@@ -578,7 +578,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
578
578
|
}
|
|
579
579
|
if (!this.options?.disableCompletionsSnooze && this.canUseChat()) {
|
|
580
580
|
const snooze = append(container, $("div.snooze-completions"));
|
|
581
|
-
this.createCompletionsSnooze(snooze, ( localize(
|
|
581
|
+
this.createCompletionsSnooze(snooze, ( localize(6659, "Snooze")));
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
584
|
canUseChat() {
|
|
@@ -635,7 +635,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
635
635
|
}
|
|
636
636
|
const resetDate = ( new Date(resetAt * 1000));
|
|
637
637
|
return localize(
|
|
638
|
-
|
|
638
|
+
6635,
|
|
639
639
|
"Resets {0} at {1}",
|
|
640
640
|
this.dateFormatter.value.format(resetDate),
|
|
641
641
|
this.timeFormatter.value.format(resetDate)
|
|
@@ -667,11 +667,11 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
667
667
|
} else {
|
|
668
668
|
const usedPercentage = Math.max(0, 100 - currentQuota.percentRemaining);
|
|
669
669
|
quotaValue.textContent = ( localize(
|
|
670
|
-
|
|
670
|
+
6660,
|
|
671
671
|
"{0}%",
|
|
672
672
|
this.quotaPercentageFormatter.value.format(Math.floor(usedPercentage))
|
|
673
673
|
));
|
|
674
|
-
quotaValueSuffix.textContent = ` ${( localize(
|
|
674
|
+
quotaValueSuffix.textContent = ` ${( localize(6661, "used"))}`;
|
|
675
675
|
}
|
|
676
676
|
};
|
|
677
677
|
const showCredits = () => {
|
|
@@ -680,8 +680,8 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
680
680
|
const used = total * (100 - currentQuota.percentRemaining) / 100;
|
|
681
681
|
const usedFormatted = this.quotaCreditsFormatter.value.format(used);
|
|
682
682
|
const totalFormatted = this.quotaCreditsFormatter.value.format(total);
|
|
683
|
-
quotaValue.textContent = ( localize(
|
|
684
|
-
quotaValueSuffix.textContent = ` ${( localize(
|
|
683
|
+
quotaValue.textContent = ( localize(6662, "{0} / {1}", usedFormatted, totalFormatted));
|
|
684
|
+
quotaValueSuffix.textContent = ` ${( localize(6661, "used"))}`;
|
|
685
685
|
}
|
|
686
686
|
};
|
|
687
687
|
this._store.add(addDisposableListener(quotaPercentage, EventType.MOUSE_ENTER, () => {
|
|
@@ -744,33 +744,33 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
744
744
|
quotaCallout.className = "quota-callout info";
|
|
745
745
|
calloutIcon.className = `callout-icon ${ThemeIcon.asClassName(Codicon.info)}`;
|
|
746
746
|
calloutText.textContent = isUsageBasedBilling ? ( localize(
|
|
747
|
-
|
|
747
|
+
6663,
|
|
748
748
|
"Additional spend is configured. Usage will continue until limits reset."
|
|
749
749
|
)) : ( localize(
|
|
750
|
-
|
|
750
|
+
6664,
|
|
751
751
|
"Premium request budget is configured. Usage will continue until limits reset."
|
|
752
752
|
));
|
|
753
753
|
} else if (maxUsedPercentage >= 75 && maxUsedPercentage < 100 && additionalUsageEnabled) {
|
|
754
754
|
quotaCallout.style.display = "";
|
|
755
755
|
quotaCallout.className = "quota-callout info";
|
|
756
756
|
calloutIcon.className = `callout-icon ${ThemeIcon.asClassName(Codicon.info)}`;
|
|
757
|
-
calloutText.textContent = isUsageBasedBilling ? ( localize(
|
|
757
|
+
calloutText.textContent = isUsageBasedBilling ? ( localize(6665, "Once the limit is reached, additional spend will be used.")) : ( localize(6666, "Once the limit is reached, premium request budget will be used."));
|
|
758
758
|
} else if (maxUsedPercentage >= 100 && !additionalUsageEnabled) {
|
|
759
759
|
quotaCallout.style.display = "";
|
|
760
760
|
quotaCallout.className = "quota-callout info";
|
|
761
761
|
calloutIcon.className = `callout-icon ${ThemeIcon.asClassName(Codicon.info)}`;
|
|
762
762
|
calloutText.textContent = isEnterpriseUser ? ( localize(
|
|
763
|
-
|
|
763
|
+
6667,
|
|
764
764
|
"Copilot is paused until the limit resets. Contact your administrator for more information."
|
|
765
|
-
)) : ( localize(
|
|
765
|
+
)) : ( localize(6668, "Copilot is paused until the limit resets."));
|
|
766
766
|
} else if (maxUsedPercentage >= 75 && !additionalUsageEnabled) {
|
|
767
767
|
quotaCallout.style.display = "";
|
|
768
768
|
quotaCallout.className = "quota-callout info";
|
|
769
769
|
calloutIcon.className = `callout-icon ${ThemeIcon.asClassName(Codicon.info)}`;
|
|
770
770
|
calloutText.textContent = isEnterpriseUser ? ( localize(
|
|
771
|
-
|
|
771
|
+
6669,
|
|
772
772
|
"Copilot will pause when the limit is reached. Contact your administrator for more information."
|
|
773
|
-
)) : ( localize(
|
|
773
|
+
)) : ( localize(6670, "Copilot will pause when the limit is reached."));
|
|
774
774
|
} else {
|
|
775
775
|
quotaCallout.style.display = "none";
|
|
776
776
|
}
|
|
@@ -787,23 +787,23 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
787
787
|
const settings = container.appendChild($("div.settings"));
|
|
788
788
|
{
|
|
789
789
|
const globalSetting = append(settings, $("div.setting"));
|
|
790
|
-
this.createInlineSuggestionsSetting(globalSetting, ( localize(
|
|
790
|
+
this.createInlineSuggestionsSetting(globalSetting, ( localize(6671, "Ghost text suggestions")), "*");
|
|
791
791
|
const overriddenHint = globalSetting.appendChild($("span.setting-overridden"));
|
|
792
792
|
const updateOverriddenHint = () => {
|
|
793
793
|
const obj = this.configurationService.getValue(defaultChat.completionsEnablementSetting);
|
|
794
794
|
const hasOverride = modeId && isObject(obj) && typeof obj[modeId] !== "undefined" && Boolean(obj[modeId]) !== Boolean(obj["*"]);
|
|
795
|
-
overriddenHint.textContent = hasOverride ? ( localize(
|
|
795
|
+
overriddenHint.textContent = hasOverride ? ( localize(6672, "(overridden)")) : "";
|
|
796
796
|
};
|
|
797
797
|
updateOverriddenHint();
|
|
798
798
|
if (modeId) {
|
|
799
799
|
const languageSetting = append(settings, $("div.setting"));
|
|
800
800
|
const languageName = this.languageService.getLanguageName(modeId) ?? modeId;
|
|
801
|
-
this.createTriStateLanguageSetting(languageSetting, ( localize(
|
|
801
|
+
this.createTriStateLanguageSetting(languageSetting, ( localize(6673, "Ghost text suggestions for {0}", languageName)), modeId, updateOverriddenHint);
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
804
|
{
|
|
805
805
|
const setting = append(settings, $("div.setting"));
|
|
806
|
-
this.createNextEditSuggestionsSetting(setting, ( localize(
|
|
806
|
+
this.createNextEditSuggestionsSetting(setting, ( localize(6674, "Next edit suggestions")), this.getCompletionsSettingAccessor(modeId));
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
809
|
createSetting(container, settingIdsToReEvaluate, label, accessor) {
|
|
@@ -1005,7 +1005,7 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
1005
1005
|
})));
|
|
1006
1006
|
const cancelAction = toAction({
|
|
1007
1007
|
id: "workbench.action.cancelSnoozeStatusBarLink",
|
|
1008
|
-
label: ( localize(
|
|
1008
|
+
label: ( localize(6675, "Cancel Snooze")),
|
|
1009
1009
|
run: () => this.inlineCompletionsService.cancelSnooze(),
|
|
1010
1010
|
class: ThemeIcon.asClassName(Codicon.stopCircle)
|
|
1011
1011
|
});
|
|
@@ -1014,19 +1014,19 @@ let ChatStatusDashboard = class ChatStatusDashboard extends DomWidget {
|
|
|
1014
1014
|
toolbar.clear();
|
|
1015
1015
|
const timeLeftMs = this.inlineCompletionsService.snoozeTimeLeft;
|
|
1016
1016
|
if (!isEnabled || timeLeftMs <= 0) {
|
|
1017
|
-
timerDisplay.textContent = ( localize(
|
|
1017
|
+
timerDisplay.textContent = ( localize(6676, "Hide suggestions for 5 min"));
|
|
1018
1018
|
timerDisplay.title = "";
|
|
1019
1019
|
button.label = label;
|
|
1020
|
-
button.setTitle(( localize(
|
|
1020
|
+
button.setTitle(( localize(6677, "Hide inline suggestions for 5 min")));
|
|
1021
1021
|
return true;
|
|
1022
1022
|
}
|
|
1023
1023
|
const timeLeftSeconds = Math.ceil(timeLeftMs / 1000);
|
|
1024
1024
|
const minutes = Math.floor(timeLeftSeconds / 60);
|
|
1025
1025
|
const seconds = timeLeftSeconds % 60;
|
|
1026
|
-
timerDisplay.textContent = `${minutes}:${seconds < 10 ? "0" : ""}${seconds} ${( localize(
|
|
1027
|
-
timerDisplay.title = ( localize(
|
|
1028
|
-
button.label = ( localize(
|
|
1029
|
-
button.setTitle(( localize(
|
|
1026
|
+
timerDisplay.textContent = `${minutes}:${seconds < 10 ? "0" : ""}${seconds} ${( localize(6678, "remaining"))}`;
|
|
1027
|
+
timerDisplay.title = ( localize(6679, "Inline suggestions are hidden for the remaining duration"));
|
|
1028
|
+
button.label = ( localize(6680, "+5 min"));
|
|
1029
|
+
button.setTitle(( localize(6681, "Snooze additional 5 min")));
|
|
1030
1030
|
toolbar.push([cancelAction], {
|
|
1031
1031
|
icon: true,
|
|
1032
1032
|
label: false
|
|
@@ -157,7 +157,7 @@ let ChatStatusBarEntry = class ChatStatusBarEntry extends Disposable {
|
|
|
157
157
|
}
|
|
158
158
|
getEntryProps() {
|
|
159
159
|
let text = "$(copilot)";
|
|
160
|
-
let ariaLabel = ( localize(
|
|
160
|
+
let ariaLabel = ( localize(6682, "Copilot status"));
|
|
161
161
|
let kind;
|
|
162
162
|
if (isNewUser(this.chatEntitlementService)) {
|
|
163
163
|
const entitlement = this.chatEntitlementService.entitlement;
|
|
@@ -170,14 +170,14 @@ let ChatStatusBarEntry = class ChatStatusBarEntry extends Disposable {
|
|
|
170
170
|
const completionsQuotaExceeded = this.chatEntitlementService.quotas.completions?.percentRemaining === 0;
|
|
171
171
|
if (this.chatEntitlementService.sentiment.disabled || this.chatEntitlementService.sentiment.untrusted) {
|
|
172
172
|
text = "$(copilot-unavailable)";
|
|
173
|
-
ariaLabel = ( localize(
|
|
173
|
+
ariaLabel = ( localize(6683, "Copilot disabled"));
|
|
174
174
|
}
|
|
175
175
|
else if (this.runningSessionsCount > 0) {
|
|
176
176
|
text = "$(copilot-in-progress)";
|
|
177
177
|
if (this.runningSessionsCount > 1) {
|
|
178
|
-
ariaLabel = ( localize(
|
|
178
|
+
ariaLabel = ( localize(6684, "{0} agent sessions in progress", this.runningSessionsCount));
|
|
179
179
|
} else {
|
|
180
|
-
ariaLabel = ( localize(
|
|
180
|
+
ariaLabel = ( localize(6685, "1 agent session in progress"));
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
else if (this.chatEntitlementService.entitlement === ChatEntitlement.Unknown) {
|
|
@@ -186,11 +186,11 @@ let ChatStatusBarEntry = class ChatStatusBarEntry extends Disposable {
|
|
|
186
186
|
else if (this.chatEntitlementService.entitlement === ChatEntitlement.Free && (chatQuotaExceeded || completionsQuotaExceeded)) {
|
|
187
187
|
let quotaWarning;
|
|
188
188
|
if (chatQuotaExceeded && !completionsQuotaExceeded) {
|
|
189
|
-
quotaWarning = ( localize(
|
|
189
|
+
quotaWarning = ( localize(6686, "Chat quota reached"));
|
|
190
190
|
} else if (completionsQuotaExceeded && !chatQuotaExceeded) {
|
|
191
|
-
quotaWarning = ( localize(
|
|
191
|
+
quotaWarning = ( localize(6687, "Inline suggestions quota reached"));
|
|
192
192
|
} else {
|
|
193
|
-
quotaWarning = ( localize(
|
|
193
|
+
quotaWarning = ( localize(6688, "Quota reached"));
|
|
194
194
|
}
|
|
195
195
|
text = `$(copilot-warning) ${quotaWarning}`;
|
|
196
196
|
ariaLabel = quotaWarning;
|
|
@@ -198,15 +198,15 @@ let ChatStatusBarEntry = class ChatStatusBarEntry extends Disposable {
|
|
|
198
198
|
}
|
|
199
199
|
else if (this.editorService.activeTextEditorLanguageId && !isCompletionsEnabled(this.configurationService, this.editorService.activeTextEditorLanguageId)) {
|
|
200
200
|
text = "$(copilot-unavailable)";
|
|
201
|
-
ariaLabel = ( localize(
|
|
201
|
+
ariaLabel = ( localize(6689, "Inline suggestions disabled"));
|
|
202
202
|
}
|
|
203
203
|
else if (this.completionsService.isSnoozing()) {
|
|
204
204
|
text = "$(copilot-snooze)";
|
|
205
|
-
ariaLabel = ( localize(
|
|
205
|
+
ariaLabel = ( localize(6690, "Inline suggestions snoozed"));
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
const baseResult = {
|
|
209
|
-
name: ( localize(
|
|
209
|
+
name: ( localize(6691, "Copilot Status")),
|
|
210
210
|
text,
|
|
211
211
|
ariaLabel,
|
|
212
212
|
command: ShowTooltipCommand,
|
|
@@ -233,11 +233,11 @@ let ChatStatusBarEntry = class ChatStatusBarEntry extends Disposable {
|
|
|
233
233
|
}
|
|
234
234
|
getSetupEntryProps() {
|
|
235
235
|
const showSignInLabel = !this.isSignInTitleBarAffordanceVisible();
|
|
236
|
-
const signInLabel = ( localize(
|
|
236
|
+
const signInLabel = ( localize(6692, "Sign In"));
|
|
237
237
|
return {
|
|
238
|
-
name: ( localize(
|
|
238
|
+
name: ( localize(6691, "Copilot Status")),
|
|
239
239
|
text: showSignInLabel ? `$(copilot) ${signInLabel}` : "$(copilot)",
|
|
240
|
-
ariaLabel: showSignInLabel ? signInLabel : ( localize(
|
|
240
|
+
ariaLabel: showSignInLabel ? signInLabel : ( localize(6682, "Copilot status")),
|
|
241
241
|
command: CHAT_SETUP_ACTION_ID,
|
|
242
242
|
showInAllWindows: true,
|
|
243
243
|
kind: undefined,
|