@codingame/monaco-vscode-api 10.0.0 → 10.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/api.js +1 -1
- package/missing-services.js +2 -2
- package/package.json +8 -8
- package/services.js +2 -2
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +1 -1
- package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
- package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +23 -23
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +45 -26
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +2 -2
- package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +1 -1
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +25 -25
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +11 -11
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +131 -131
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +7 -7
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +34 -34
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
- package/vscode/src/vs/workbench/common/configuration.js +10 -10
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditingService.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImagePaste.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +21 -21
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +13 -4
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +65 -65
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +34 -34
- package/vscode/src/vs/workbench/contrib/debug/browser/debugExpressionRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +173 -173
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -33
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +52 -52
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +11 -9
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +19 -19
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +6 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +41 -41
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +12 -12
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +28 -28
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +1 -0
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
|
@@ -13,7 +13,7 @@ class SubmitAction extends Action2 {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
15
|
id: SubmitAction.ID,
|
|
16
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(7261, "Send")),
|
|
17
17
|
f1: false,
|
|
18
18
|
category: CHAT_CATEGORY,
|
|
19
19
|
icon: Codicon.send,
|
|
@@ -51,7 +51,7 @@ const ChatModelPickerActionId = 'workbench.action.chat.pickModel';
|
|
|
51
51
|
MenuRegistry.appendMenuItem(MenuId.ChatExecute, {
|
|
52
52
|
command: {
|
|
53
53
|
id: ChatModelPickerActionId,
|
|
54
|
-
title: ( localize2(
|
|
54
|
+
title: ( localize2(7262, "Pick Model")),
|
|
55
55
|
},
|
|
56
56
|
order: 3,
|
|
57
57
|
group: 'navigation',
|
|
@@ -66,7 +66,7 @@ class ChatSubmitSecondaryAgentAction extends Action2 {
|
|
|
66
66
|
constructor() {
|
|
67
67
|
super({
|
|
68
68
|
id: ChatSubmitSecondaryAgentAction.ID,
|
|
69
|
-
title: ( localize2(
|
|
69
|
+
title: ( localize2(7263, "Submit to Secondary Agent")),
|
|
70
70
|
precondition: ( (ContextKeyExpr.and(
|
|
71
71
|
CONTEXT_CHAT_INPUT_HAS_TEXT,
|
|
72
72
|
(CONTEXT_CHAT_INPUT_HAS_AGENT.negate()),
|
|
@@ -108,7 +108,7 @@ class SendToNewChatAction extends Action2 {
|
|
|
108
108
|
constructor() {
|
|
109
109
|
super({
|
|
110
110
|
id: 'workbench.action.chat.sendToNewChat',
|
|
111
|
-
title: ( localize2(
|
|
111
|
+
title: ( localize2(7264, "Send to New Chat")),
|
|
112
112
|
precondition: ( (ContextKeyExpr.and(
|
|
113
113
|
(CONTEXT_CHAT_REQUEST_IN_PROGRESS.negate()),
|
|
114
114
|
CONTEXT_CHAT_INPUT_HAS_TEXT
|
|
@@ -142,7 +142,7 @@ class CancelAction extends Action2 {
|
|
|
142
142
|
constructor() {
|
|
143
143
|
super({
|
|
144
144
|
id: CancelAction.ID,
|
|
145
|
-
title: ( localize2(
|
|
145
|
+
title: ( localize2(7265, "Cancel")),
|
|
146
146
|
f1: false,
|
|
147
147
|
category: CHAT_CATEGORY,
|
|
148
148
|
icon: Codicon.stopCircle,
|
|
@@ -21,7 +21,7 @@ function registerChatTitleActions() {
|
|
|
21
21
|
constructor() {
|
|
22
22
|
super({
|
|
23
23
|
id: 'workbench.action.chat.markHelpful',
|
|
24
|
-
title: ( localize2(
|
|
24
|
+
title: ( localize2(7269, "Helpful")),
|
|
25
25
|
f1: false,
|
|
26
26
|
category: CHAT_CATEGORY,
|
|
27
27
|
icon: Codicon.thumbsup,
|
|
@@ -65,7 +65,7 @@ function registerChatTitleActions() {
|
|
|
65
65
|
constructor() {
|
|
66
66
|
super({
|
|
67
67
|
id: MarkUnhelpfulActionId,
|
|
68
|
-
title: ( localize2(
|
|
68
|
+
title: ( localize2(7270, "Unhelpful")),
|
|
69
69
|
f1: false,
|
|
70
70
|
category: CHAT_CATEGORY,
|
|
71
71
|
icon: Codicon.thumbsdown,
|
|
@@ -113,7 +113,7 @@ function registerChatTitleActions() {
|
|
|
113
113
|
constructor() {
|
|
114
114
|
super({
|
|
115
115
|
id: 'workbench.action.chat.reportIssueForBug',
|
|
116
|
-
title: ( localize2(
|
|
116
|
+
title: ( localize2(7271, "Report Issue")),
|
|
117
117
|
f1: false,
|
|
118
118
|
category: CHAT_CATEGORY,
|
|
119
119
|
icon: Codicon.report,
|
|
@@ -152,7 +152,7 @@ function registerChatTitleActions() {
|
|
|
152
152
|
constructor() {
|
|
153
153
|
super({
|
|
154
154
|
id: 'workbench.action.chat.retry',
|
|
155
|
-
title: ( localize2(
|
|
155
|
+
title: ( localize2(7272, "Retry")),
|
|
156
156
|
f1: false,
|
|
157
157
|
category: CHAT_CATEGORY,
|
|
158
158
|
icon: Codicon.refresh,
|
|
@@ -180,7 +180,7 @@ function registerChatTitleActions() {
|
|
|
180
180
|
constructor() {
|
|
181
181
|
super({
|
|
182
182
|
id: 'workbench.action.chat.insertIntoNotebook',
|
|
183
|
-
title: ( localize2(
|
|
183
|
+
title: ( localize2(7273, "Insert into Notebook")),
|
|
184
184
|
f1: false,
|
|
185
185
|
category: CHAT_CATEGORY,
|
|
186
186
|
icon: Codicon.insert,
|
|
@@ -242,7 +242,7 @@ function registerChatTitleActions() {
|
|
|
242
242
|
constructor() {
|
|
243
243
|
super({
|
|
244
244
|
id: 'workbench.action.chat.remove',
|
|
245
|
-
title: ( localize2(
|
|
245
|
+
title: ( localize2(7274, "Remove Request and Response")),
|
|
246
246
|
f1: false,
|
|
247
247
|
category: CHAT_CATEGORY,
|
|
248
248
|
icon: Codicon.x,
|
|
@@ -3,6 +3,6 @@ import { CHAT_PROVIDER_ID } from '../common/chatParticipantContribTypes.js';
|
|
|
3
3
|
async function showChatView(viewsService) {
|
|
4
4
|
return (await viewsService.openView(CHAT_VIEW_ID))?.widget;
|
|
5
5
|
}
|
|
6
|
-
const GeneratingPhrase = ( localize(
|
|
6
|
+
const GeneratingPhrase = ( localize(7087, "Generating"));
|
|
7
7
|
const CHAT_VIEW_ID = `workbench.panel.chat.view.${CHAT_PROVIDER_ID}`;
|
|
8
8
|
export { CHAT_VIEW_ID, GeneratingPhrase, showChatView };
|
|
@@ -14,7 +14,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
14
14
|
return 'listitem';
|
|
15
15
|
}
|
|
16
16
|
getWidgetAriaLabel() {
|
|
17
|
-
return ( localize(
|
|
17
|
+
return ( localize(7111, "Chat"));
|
|
18
18
|
}
|
|
19
19
|
getAriaLabel(element) {
|
|
20
20
|
if (isRequestVM(element)) {
|
|
@@ -34,23 +34,23 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
34
34
|
case 0:
|
|
35
35
|
break;
|
|
36
36
|
case 1:
|
|
37
|
-
fileTreeCountHint = ( localize(
|
|
37
|
+
fileTreeCountHint = ( localize(7112, "1 file tree"));
|
|
38
38
|
break;
|
|
39
39
|
default:
|
|
40
|
-
fileTreeCountHint = ( localize(
|
|
40
|
+
fileTreeCountHint = ( localize(7113, "{0} file trees", fileTreeCount));
|
|
41
41
|
break;
|
|
42
42
|
}
|
|
43
43
|
const codeBlockCount = marked.lexer(( (element.response.toString()))).filter(token => token.type === 'code')?.length ?? 0;
|
|
44
44
|
switch (codeBlockCount) {
|
|
45
45
|
case 0:
|
|
46
46
|
label = accessibleViewHint ? ( localize(
|
|
47
|
-
|
|
47
|
+
7114,
|
|
48
48
|
"{0} {1} {2}",
|
|
49
49
|
fileTreeCountHint,
|
|
50
50
|
(element.response.toString()),
|
|
51
51
|
accessibleViewHint
|
|
52
52
|
)) : ( localize(
|
|
53
|
-
|
|
53
|
+
7115,
|
|
54
54
|
"{0} {1}",
|
|
55
55
|
fileTreeCountHint,
|
|
56
56
|
(element.response.toString())
|
|
@@ -58,13 +58,13 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
58
58
|
break;
|
|
59
59
|
case 1:
|
|
60
60
|
label = accessibleViewHint ? ( localize(
|
|
61
|
-
|
|
61
|
+
7116,
|
|
62
62
|
"{0} 1 code block: {1} {2}",
|
|
63
63
|
fileTreeCountHint,
|
|
64
64
|
(element.response.toString()),
|
|
65
65
|
accessibleViewHint
|
|
66
66
|
)) : ( localize(
|
|
67
|
-
|
|
67
|
+
7117,
|
|
68
68
|
"{0} 1 code block: {1}",
|
|
69
69
|
fileTreeCountHint,
|
|
70
70
|
(element.response.toString())
|
|
@@ -72,14 +72,14 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
72
72
|
break;
|
|
73
73
|
default:
|
|
74
74
|
label = accessibleViewHint ? ( localize(
|
|
75
|
-
|
|
75
|
+
7118,
|
|
76
76
|
"{0} {1} code blocks: {2}",
|
|
77
77
|
fileTreeCountHint,
|
|
78
78
|
codeBlockCount,
|
|
79
79
|
(element.response.toString()),
|
|
80
80
|
accessibleViewHint
|
|
81
81
|
)) : ( localize(
|
|
82
|
-
|
|
82
|
+
7119,
|
|
83
83
|
"{0} {1} code blocks",
|
|
84
84
|
fileTreeCountHint,
|
|
85
85
|
codeBlockCount,
|
|
@@ -120,8 +120,8 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
|
|
|
120
120
|
}
|
|
121
121
|
getDropTypeName(type) {
|
|
122
122
|
switch (type) {
|
|
123
|
-
case ChatDragAndDropType.FILE: return ( localize(
|
|
124
|
-
case ChatDragAndDropType.IMAGE: return ( localize(
|
|
123
|
+
case ChatDragAndDropType.FILE: return ( localize(7120, 'File'));
|
|
124
|
+
case ChatDragAndDropType.IMAGE: return ( localize(7121, 'Image'));
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
getAttachContext(e) {
|
|
@@ -146,7 +146,7 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
|
|
|
146
146
|
this.overlayText = undefined;
|
|
147
147
|
if (type !== undefined) {
|
|
148
148
|
const typeName = this.getDropTypeName(type);
|
|
149
|
-
const iconAndtextElements = renderLabelWithIcons(`$(${Codicon.attach.id}) ${( localize(
|
|
149
|
+
const iconAndtextElements = renderLabelWithIcons(`$(${Codicon.attach.id}) ${( localize(7122, 'Attach {0} as Context', typeName))}`);
|
|
150
150
|
const htmlElements = ( (iconAndtextElements.map(element => {
|
|
151
151
|
if (typeof element === 'string') {
|
|
152
152
|
return $('span.overlay-text', undefined, element);
|
|
@@ -102,7 +102,7 @@ let ChatEditingService = class ChatEditingService extends Disposable {
|
|
|
102
102
|
}
|
|
103
103
|
const input = MultiDiffEditorInput.fromResourceMultiDiffEditorInput({
|
|
104
104
|
multiDiffSource: ChatEditingMultiDiffSourceResolver.getMultiDiffSourceUri(),
|
|
105
|
-
label: ( localize(
|
|
105
|
+
label: ( localize(3117, "Suggested Edits"))
|
|
106
106
|
}, this._instantiationService);
|
|
107
107
|
const editorPane = options?.silent ? undefined : await this._editorGroupsService.activeGroup.openEditor(input, { pinned: true, activation: EditorActivation.ACTIVATE });
|
|
108
108
|
const session = this._instantiationService.createInstance(ChatEditingSession, chatSessionId, editorPane);
|
|
@@ -146,7 +146,7 @@ let ChatEditingService = class ChatEditingService extends Disposable {
|
|
|
146
146
|
else {
|
|
147
147
|
await this._progressService.withProgress({
|
|
148
148
|
location: 10 ,
|
|
149
|
-
title: ( localize2(
|
|
149
|
+
title: ( localize2(3118, 'Generating edits...')).value,
|
|
150
150
|
}, async () => {
|
|
151
151
|
await builder(stream);
|
|
152
152
|
});
|
|
@@ -231,7 +231,7 @@ registerAction2(class OpenFileAction extends Action2 {
|
|
|
231
231
|
constructor() {
|
|
232
232
|
super({
|
|
233
233
|
id: 'chatEditing.openFile',
|
|
234
|
-
title: ( localize2(
|
|
234
|
+
title: ( localize2(3119, 'Open File')),
|
|
235
235
|
icon: Codicon.goToFile,
|
|
236
236
|
menu: [{
|
|
237
237
|
id: MenuId.ChatEditingSessionWidgetToolbar,
|
|
@@ -267,7 +267,7 @@ registerAction2(class AcceptAction extends Action2 {
|
|
|
267
267
|
constructor() {
|
|
268
268
|
super({
|
|
269
269
|
id: 'chatEditing.acceptFile',
|
|
270
|
-
title: ( localize2(
|
|
270
|
+
title: ( localize2(3120, 'Accept')),
|
|
271
271
|
icon: Codicon.check,
|
|
272
272
|
menu: [{
|
|
273
273
|
when: ( (ContextKeyExpr.and(
|
|
@@ -308,7 +308,7 @@ registerAction2(class DiscardAction extends Action2 {
|
|
|
308
308
|
constructor() {
|
|
309
309
|
super({
|
|
310
310
|
id: 'chatEditing.discardFile',
|
|
311
|
-
title: ( localize2(
|
|
311
|
+
title: ( localize2(3121, 'Discard')),
|
|
312
312
|
icon: Codicon.discard,
|
|
313
313
|
menu: [{
|
|
314
314
|
when: ( (ContextKeyExpr.and(
|
|
@@ -347,7 +347,7 @@ registerAction2(class DiscardAction extends Action2 {
|
|
|
347
347
|
});
|
|
348
348
|
class ChatEditingAcceptAllAction extends Action2 {
|
|
349
349
|
static { this.ID = 'chatEditing.acceptAllFiles'; }
|
|
350
|
-
static { this.LABEL = ( localize(
|
|
350
|
+
static { this.LABEL = ( localize(3122, 'Accept All')); }
|
|
351
351
|
constructor() {
|
|
352
352
|
super({
|
|
353
353
|
id: ChatEditingAcceptAllAction.ID,
|
|
@@ -372,7 +372,7 @@ class ChatEditingAcceptAllAction extends Action2 {
|
|
|
372
372
|
registerAction2(ChatEditingAcceptAllAction);
|
|
373
373
|
class ChatEditingDiscardAllAction extends Action2 {
|
|
374
374
|
static { this.ID = 'chatEditing.discardAllFiles'; }
|
|
375
|
-
static { this.LABEL = ( localize(
|
|
375
|
+
static { this.LABEL = ( localize(3123, 'Discard All')); }
|
|
376
376
|
constructor() {
|
|
377
377
|
super({
|
|
378
378
|
id: ChatEditingDiscardAllAction.ID,
|
|
@@ -397,7 +397,7 @@ class ChatEditingDiscardAllAction extends Action2 {
|
|
|
397
397
|
registerAction2(ChatEditingDiscardAllAction);
|
|
398
398
|
class ChatEditingStartSessionAction extends Action2 {
|
|
399
399
|
static { this.ID = 'chatEditing.startSession'; }
|
|
400
|
-
static { this.LABEL = ( localize2(
|
|
400
|
+
static { this.LABEL = ( localize2(3124, 'Start Editing Session')); }
|
|
401
401
|
constructor() {
|
|
402
402
|
super({
|
|
403
403
|
id: ChatEditingStartSessionAction.ID,
|
|
@@ -444,7 +444,7 @@ class ChatEditingStartSessionAction extends Action2 {
|
|
|
444
444
|
registerAction2(ChatEditingStartSessionAction);
|
|
445
445
|
class ChatEditingStopSessionAction extends Action2 {
|
|
446
446
|
static { this.ID = 'chatEditing.stopSession'; }
|
|
447
|
-
static { this.LABEL = ( localize2(
|
|
447
|
+
static { this.LABEL = ( localize2(3125, 'Stop Editing Session')); }
|
|
448
448
|
constructor() {
|
|
449
449
|
super({
|
|
450
450
|
id: ChatEditingStopSessionAction.ID,
|
|
@@ -461,7 +461,7 @@ class ChatEditingStopSessionAction extends Action2 {
|
|
|
461
461
|
registerAction2(ChatEditingStopSessionAction);
|
|
462
462
|
class ChatEditingShowChangesAction extends Action2 {
|
|
463
463
|
static { this.ID = 'chatEditing.openDiffs'; }
|
|
464
|
-
static { this.LABEL = ( localize(
|
|
464
|
+
static { this.LABEL = ( localize(3126, 'Open Diffs')); }
|
|
465
465
|
constructor() {
|
|
466
466
|
super({
|
|
467
467
|
id: ChatEditingShowChangesAction.ID,
|
|
@@ -600,7 +600,7 @@ let ChatEditingSession = class ChatEditingSession extends Disposable {
|
|
|
600
600
|
}
|
|
601
601
|
const input = MultiDiffEditorInput.fromResourceMultiDiffEditorInput({
|
|
602
602
|
multiDiffSource: ChatEditingMultiDiffSourceResolver.getMultiDiffSourceUri(),
|
|
603
|
-
label: ( localize(
|
|
603
|
+
label: ( localize(3117, "Suggested Edits"))
|
|
604
604
|
}, this._instantiationService);
|
|
605
605
|
const editorPane = await this._editorGroupsService.activeGroup.openEditor(input, { pinned: true, activation: EditorActivation.ACTIVATE });
|
|
606
606
|
this.editorPane = editorPane;
|
|
@@ -11,7 +11,7 @@ import { EditorInput } from '../../../common/editor/editorInput.js';
|
|
|
11
11
|
import { ChatAgentLocation } from '../common/chatAgents.js';
|
|
12
12
|
import { IChatService } from '../common/chatService.service.js';
|
|
13
13
|
var ChatEditorInput_1;
|
|
14
|
-
const ChatEditorIcon = registerIcon('chat-editor-label-icon', Codicon.commentDiscussion, ( localize(
|
|
14
|
+
const ChatEditorIcon = registerIcon('chat-editor-label-icon', Codicon.commentDiscussion, ( localize(7275, 'Icon of the chat editor label.')));
|
|
15
15
|
let ChatEditorInput = class ChatEditorInput extends EditorInput {
|
|
16
16
|
static { ChatEditorInput_1 = this; }
|
|
17
17
|
static { this.countsInUse = ( (new Set())); }
|
|
@@ -57,7 +57,7 @@ let ChatEditorInput = class ChatEditorInput extends EditorInput {
|
|
|
57
57
|
return ChatEditorInput_1.TypeID;
|
|
58
58
|
}
|
|
59
59
|
getName() {
|
|
60
|
-
return this.model?.title || ( localize(
|
|
60
|
+
return this.model?.title || ( localize(7276, "Chat")) + (this.inputCount > 0 ? ` ${this.inputCount + 1}` : '');
|
|
61
61
|
}
|
|
62
62
|
getIcon() {
|
|
63
63
|
return ChatEditorIcon;
|
|
@@ -177,15 +177,15 @@ let ChatInputPart = class ChatInputPart extends Disposable {
|
|
|
177
177
|
if (verbose) {
|
|
178
178
|
const kbLabel = this.keybindingService.lookupKeybinding("editor.action.accessibilityHelp" )?.getLabel();
|
|
179
179
|
return kbLabel ? ( localize(
|
|
180
|
-
|
|
180
|
+
7124,
|
|
181
181
|
"Chat Input, Type to ask questions or type / for topics, press enter to send out the request. Use {0} for Chat Accessibility Help.",
|
|
182
182
|
kbLabel
|
|
183
183
|
)) : ( localize(
|
|
184
|
-
|
|
184
|
+
7125,
|
|
185
185
|
"Chat Input, Type code here and press Enter to run. Use the Chat Accessibility Help command for more information."
|
|
186
186
|
));
|
|
187
187
|
}
|
|
188
|
-
return ( localize(
|
|
188
|
+
return ( localize(7126, "Chat Input"));
|
|
189
189
|
}
|
|
190
190
|
updateState(inputState) {
|
|
191
191
|
if (this.inHistoryNavigation) {
|
|
@@ -471,7 +471,7 @@ let ChatInputPart = class ChatInputPart extends Disposable {
|
|
|
471
471
|
actionViewItemProvider: (action, options) => {
|
|
472
472
|
if (this.location === ChatAgentLocation.Panel) {
|
|
473
473
|
if ((action.id === SubmitAction.ID || action.id === CancelAction.ID) && action instanceof MenuItemAction) {
|
|
474
|
-
const dropdownAction = this.instantiationService.createInstance(MenuItemAction, { id: 'chat.moreExecuteActions', title: ( localize(
|
|
474
|
+
const dropdownAction = this.instantiationService.createInstance(MenuItemAction, { id: 'chat.moreExecuteActions', title: ( localize(7127, "More...")), icon: Codicon.chevronDown }, undefined, undefined, undefined, undefined);
|
|
475
475
|
return this.instantiationService.createInstance(ChatSubmitDropdownActionItem, action, dropdownAction, options);
|
|
476
476
|
}
|
|
477
477
|
}
|
|
@@ -561,12 +561,12 @@ let ChatInputPart = class ChatInputPart extends Disposable {
|
|
|
561
561
|
const fileDirname = dirname(file.path);
|
|
562
562
|
const friendlyName = `${fileBasename} ${fileDirname}`;
|
|
563
563
|
ariaLabel = range ? ( localize(
|
|
564
|
-
|
|
564
|
+
7128,
|
|
565
565
|
"Attached file, {0}, line {1} to line {2}",
|
|
566
566
|
friendlyName,
|
|
567
567
|
range.startLineNumber,
|
|
568
568
|
range.endLineNumber
|
|
569
|
-
)) : ( localize(
|
|
569
|
+
)) : ( localize(7129, "Attached file, {0}", friendlyName));
|
|
570
570
|
hoverElement = file.fsPath;
|
|
571
571
|
label.setFile(file, {
|
|
572
572
|
fileKind: FileKind.FILE,
|
|
@@ -576,7 +576,7 @@ let ChatInputPart = class ChatInputPart extends Disposable {
|
|
|
576
576
|
this.attachButtonAndDisposables(widget, index, attachment, hoverDelegate);
|
|
577
577
|
}
|
|
578
578
|
else if (attachment.isImage) {
|
|
579
|
-
ariaLabel = ( localize(
|
|
579
|
+
ariaLabel = ( localize(7130, "Attached image, {0}", attachment.name));
|
|
580
580
|
hoverElement = $$1('div.chat-attached-context-hover');
|
|
581
581
|
hoverElement.setAttribute('aria-label', ariaLabel);
|
|
582
582
|
const pillIcon = $$1('div.chat-attached-context-pill', {}, $$1('span.codicon.codicon-file-media'));
|
|
@@ -605,7 +605,7 @@ let ChatInputPart = class ChatInputPart extends Disposable {
|
|
|
605
605
|
const attachmentLabel = attachment.fullName ?? attachment.name;
|
|
606
606
|
const withIcon = attachment.icon?.id ? `$(${attachment.icon.id}) ${attachmentLabel}` : attachmentLabel;
|
|
607
607
|
label.setLabel(withIcon, undefined);
|
|
608
|
-
ariaLabel = ( localize(
|
|
608
|
+
ariaLabel = ( localize(7131, "Attached context, {0}", attachment.name));
|
|
609
609
|
hoverElement = attachmentLabel;
|
|
610
610
|
this.attachButtonAndDisposables(widget, index, attachment, hoverDelegate);
|
|
611
611
|
}
|
|
@@ -620,7 +620,7 @@ let ChatInputPart = class ChatInputPart extends Disposable {
|
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
attachButtonAndDisposables(widget, index, attachment, hoverDelegate) {
|
|
623
|
-
const clearButton = ( (new Button(widget, { supportIcons: true, hoverDelegate, title: ( localize(
|
|
623
|
+
const clearButton = ( (new Button(widget, { supportIcons: true, hoverDelegate, title: ( localize(7132, 'Remove')) })));
|
|
624
624
|
if (index === Math.min(this._indexOfLastAttachedContextDeletedWithKeyboard, this.attachedContext.size - 1)) {
|
|
625
625
|
clearButton.focus();
|
|
626
626
|
}
|
|
@@ -676,8 +676,8 @@ let ChatInputPart = class ChatInputPart extends Disposable {
|
|
|
676
676
|
if (numberOfEditedEntries !== this._chatEditList?.object.length) {
|
|
677
677
|
const overviewText = overviewRegion.querySelector('span') ?? append(overviewRegion, $('span'));
|
|
678
678
|
overviewText.textContent = numberOfEditedEntries === 1
|
|
679
|
-
? ( localize(
|
|
680
|
-
: ( localize(
|
|
679
|
+
? ( localize(7133, "1 file changed"))
|
|
680
|
+
: ( localize(7134, "{0} files changed", numberOfEditedEntries));
|
|
681
681
|
}
|
|
682
682
|
{
|
|
683
683
|
const actionsContainer = overviewRegion.querySelector('.chat-editing-session-actions') ?? append(overviewRegion, $('.chat-editing-session-actions'));
|
|
@@ -848,7 +848,7 @@ let ChatSubmitDropdownActionItem = class ChatSubmitDropdownActionItem extends Dr
|
|
|
848
848
|
if (secondaryAgent) {
|
|
849
849
|
secondary.forEach(a => {
|
|
850
850
|
if (a.id === ChatSubmitSecondaryAgentAction.ID) {
|
|
851
|
-
a.label = ( localize(
|
|
851
|
+
a.label = ( localize(7135, "Send to @{0}", secondaryAgent.name));
|
|
852
852
|
}
|
|
853
853
|
return a;
|
|
854
854
|
});
|
|
@@ -310,10 +310,10 @@ let ChatListItemRenderer = class ChatListItemRenderer extends Disposable {
|
|
|
310
310
|
clearNode(templateData.detail);
|
|
311
311
|
if (element.agentOrSlashCommandDetected) {
|
|
312
312
|
const msg = element.slashCommand ? ( localize(
|
|
313
|
-
|
|
313
|
+
7136,
|
|
314
314
|
"used {0} [[(rerun without)]]",
|
|
315
315
|
`${chatSubcommandLeader}${element.slashCommand.name}`
|
|
316
|
-
)) : ( localize(
|
|
316
|
+
)) : ( localize(7137, "[[(rerun without)]]"));
|
|
317
317
|
reset(templateData.detail, renderFormattedText(msg, {
|
|
318
318
|
className: 'agentOrSlashCommandDetected',
|
|
319
319
|
inline: true,
|
|
@@ -332,7 +332,7 @@ let ChatListItemRenderer = class ChatListItemRenderer extends Disposable {
|
|
|
332
332
|
renderConfirmationAction(element, templateData) {
|
|
333
333
|
clearNode(templateData.detail);
|
|
334
334
|
if (element.confirmation) {
|
|
335
|
-
templateData.detail.textContent = ( localize(
|
|
335
|
+
templateData.detail.textContent = ( localize(7138, 'selected "{0}"', element.confirmation));
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
renderAvatar(element, templateData) {
|
|
@@ -774,15 +774,15 @@ ChatListDelegate = ( (__decorate([
|
|
|
774
774
|
( (__param(1, ILogService)))
|
|
775
775
|
], ChatListDelegate)));
|
|
776
776
|
const voteDownDetailLabels = {
|
|
777
|
-
[ChatAgentVoteDownReason.IncorrectCode]: ( localize(
|
|
778
|
-
[ChatAgentVoteDownReason.DidNotFollowInstructions]: ( localize(
|
|
779
|
-
[ChatAgentVoteDownReason.MissingContext]: ( localize(
|
|
780
|
-
[ChatAgentVoteDownReason.OffensiveOrUnsafe]: ( localize(
|
|
781
|
-
[ChatAgentVoteDownReason.PoorlyWrittenOrFormatted]: ( localize(
|
|
782
|
-
[ChatAgentVoteDownReason.RefusedAValidRequest]: ( localize(
|
|
783
|
-
[ChatAgentVoteDownReason.IncompleteCode]: ( localize(
|
|
784
|
-
[ChatAgentVoteDownReason.WillReportIssue]: ( localize(
|
|
785
|
-
[ChatAgentVoteDownReason.Other]: ( localize(
|
|
777
|
+
[ChatAgentVoteDownReason.IncorrectCode]: ( localize(7139, "Suggested incorrect code")),
|
|
778
|
+
[ChatAgentVoteDownReason.DidNotFollowInstructions]: ( localize(7140, "Didn't follow instructions")),
|
|
779
|
+
[ChatAgentVoteDownReason.MissingContext]: ( localize(7141, "Missing context")),
|
|
780
|
+
[ChatAgentVoteDownReason.OffensiveOrUnsafe]: ( localize(7142, "Offensive or unsafe")),
|
|
781
|
+
[ChatAgentVoteDownReason.PoorlyWrittenOrFormatted]: ( localize(7143, "Poorly written or formatted")),
|
|
782
|
+
[ChatAgentVoteDownReason.RefusedAValidRequest]: ( localize(7144, "Refused a valid request")),
|
|
783
|
+
[ChatAgentVoteDownReason.IncompleteCode]: ( localize(7145, "Incomplete code")),
|
|
784
|
+
[ChatAgentVoteDownReason.WillReportIssue]: ( localize(7146, "Report an issue")),
|
|
785
|
+
[ChatAgentVoteDownReason.Other]: ( localize(7147, "Other")),
|
|
786
786
|
};
|
|
787
787
|
let ChatVoteDownButton = class ChatVoteDownButton extends DropdownMenuActionViewItem {
|
|
788
788
|
constructor(action, options, commandService, issueService, logService, contextMenuService) {
|
|
@@ -359,7 +359,7 @@ let ChatWidget = class ChatWidget extends Disposable {
|
|
|
359
359
|
const messageResult = this._register(renderer.render(welcomeContent.message));
|
|
360
360
|
append(message, messageResult.element);
|
|
361
361
|
const tipsString = ( (new MarkdownString(( localize(
|
|
362
|
-
|
|
362
|
+
3082,
|
|
363
363
|
"{0} to attach context\n\n{1} to chat with extensions",
|
|
364
364
|
'$(attach)',
|
|
365
365
|
'$(mention)'
|
|
@@ -109,9 +109,9 @@ function isSelectAndInsertFileActionContext(context) {
|
|
|
109
109
|
class SelectAndInsertFileAction extends Action2 {
|
|
110
110
|
static { this.Name = 'files'; }
|
|
111
111
|
static { this.Item = {
|
|
112
|
-
label: ( localize(
|
|
112
|
+
label: ( localize(7088, 'All Files')),
|
|
113
113
|
description: ( localize(
|
|
114
|
-
|
|
114
|
+
7089,
|
|
115
115
|
'Search for relevant files in the workspace and provide context from them'
|
|
116
116
|
)),
|
|
117
117
|
}; }
|
|
@@ -306,7 +306,7 @@ let BuiltinDynamicCompletions = class BuiltinDynamicCompletions extends Disposab
|
|
|
306
306
|
result.suggestions.push({
|
|
307
307
|
label: `${chatVariableLeader}file`,
|
|
308
308
|
insertText: `${chatVariableLeader}file:`,
|
|
309
|
-
detail: ( localize(
|
|
309
|
+
detail: ( localize(7304, "Pick a file")),
|
|
310
310
|
range,
|
|
311
311
|
kind: 18 ,
|
|
312
312
|
command: { id: SelectAndInsertFileAction.ID, title: SelectAndInsertFileAction.ID, arguments: [{ widget, range: afterRange }] },
|
|
@@ -11,10 +11,10 @@ import '../../../../platform/theme/common/colors/minimapColors.js';
|
|
|
11
11
|
import { badgeBackground, badgeForeground } from '../../../../platform/theme/common/colors/miscColors.js';
|
|
12
12
|
import '../../../../platform/theme/common/colors/quickpickColors.js';
|
|
13
13
|
import '../../../../platform/theme/common/colors/searchColors.js';
|
|
14
|
-
registerColor('chat.requestBorder', { dark: ( (new Color( (new RGBA(255, 255, 255, 0.10))))), light: ( (new Color( (new RGBA(0, 0, 0, 0.10))))), hcDark: contrastBorder, hcLight: contrastBorder, }, ( localize(
|
|
15
|
-
const chatRequestBackground = registerColor('chat.requestBackground', { dark: ( (transparent(editorBackground, 0.62))), light: ( (transparent(editorBackground, 0.62))), hcDark: editorWidgetBackground, hcLight: null }, ( localize(
|
|
16
|
-
const chatSlashCommandBackground = registerColor('chat.slashCommandBackground', { dark: '#34414b8f', light: '#d2ecff99', hcDark: Color.white, hcLight: badgeBackground }, ( localize(
|
|
17
|
-
const chatSlashCommandForeground = registerColor('chat.slashCommandForeground', { dark: '#40A6FF', light: '#306CA2', hcDark: Color.black, hcLight: badgeForeground }, ( localize(
|
|
18
|
-
registerColor('chat.avatarBackground', { dark: '#1f1f1f', light: '#f2f2f2', hcDark: Color.black, hcLight: Color.white, }, ( localize(
|
|
19
|
-
registerColor('chat.avatarForeground', foreground, ( localize(
|
|
14
|
+
registerColor('chat.requestBorder', { dark: ( (new Color( (new RGBA(255, 255, 255, 0.10))))), light: ( (new Color( (new RGBA(0, 0, 0, 0.10))))), hcDark: contrastBorder, hcLight: contrastBorder, }, ( localize(7193, 'The border color of a chat request.')));
|
|
15
|
+
const chatRequestBackground = registerColor('chat.requestBackground', { dark: ( (transparent(editorBackground, 0.62))), light: ( (transparent(editorBackground, 0.62))), hcDark: editorWidgetBackground, hcLight: null }, ( localize(7194, 'The background color of a chat request.')));
|
|
16
|
+
const chatSlashCommandBackground = registerColor('chat.slashCommandBackground', { dark: '#34414b8f', light: '#d2ecff99', hcDark: Color.white, hcLight: badgeBackground }, ( localize(7195, 'The background color of a chat slash command.')));
|
|
17
|
+
const chatSlashCommandForeground = registerColor('chat.slashCommandForeground', { dark: '#40A6FF', light: '#306CA2', hcDark: Color.black, hcLight: badgeForeground }, ( localize(7196, 'The foreground color of a chat slash command.')));
|
|
18
|
+
registerColor('chat.avatarBackground', { dark: '#1f1f1f', light: '#f2f2f2', hcDark: Color.black, hcLight: Color.white, }, ( localize(7197, 'The background color of a chat avatar.')));
|
|
19
|
+
registerColor('chat.avatarForeground', foreground, ( localize(7198, 'The foreground color of a chat avatar.')));
|
|
20
20
|
export { chatRequestBackground, chatSlashCommandBackground, chatSlashCommandForeground };
|
|
@@ -4,75 +4,75 @@ const CONTEXT_RESPONSE_VOTE = ( (new RawContextKey(
|
|
|
4
4
|
'chatSessionResponseVote',
|
|
5
5
|
'',
|
|
6
6
|
{ type: 'string', description: ( localize(
|
|
7
|
-
|
|
7
|
+
7090,
|
|
8
8
|
"When the response has been voted up, is set to 'up'. When voted down, is set to 'down'. Otherwise an empty string."
|
|
9
9
|
)) }
|
|
10
10
|
)));
|
|
11
11
|
const CONTEXT_RESPONSE_DETECTED_AGENT_COMMAND = ( (new RawContextKey(
|
|
12
12
|
'chatSessionResponseDetectedAgentOrCommand',
|
|
13
13
|
false,
|
|
14
|
-
{ type: 'boolean', description: ( localize(
|
|
14
|
+
{ type: 'boolean', description: ( localize(7091, "When the agent or command was automatically detected")) }
|
|
15
15
|
)));
|
|
16
16
|
const CONTEXT_CHAT_RESPONSE_SUPPORT_ISSUE_REPORTING = ( (new RawContextKey(
|
|
17
17
|
'chatResponseSupportsIssueReporting',
|
|
18
18
|
false,
|
|
19
|
-
{ type: 'boolean', description: ( localize(
|
|
19
|
+
{ type: 'boolean', description: ( localize(7092, "True when the current chat response supports issue reporting.")) }
|
|
20
20
|
)));
|
|
21
21
|
const CONTEXT_RESPONSE_FILTERED = ( (new RawContextKey(
|
|
22
22
|
'chatSessionResponseFiltered',
|
|
23
23
|
false,
|
|
24
|
-
{ type: 'boolean', description: ( localize(
|
|
24
|
+
{ type: 'boolean', description: ( localize(7093, "True when the chat response was filtered out by the server.")) }
|
|
25
25
|
)));
|
|
26
26
|
const CONTEXT_RESPONSE_ERROR = ( (new RawContextKey(
|
|
27
27
|
'chatSessionResponseError',
|
|
28
28
|
false,
|
|
29
|
-
{ type: 'boolean', description: ( localize(
|
|
29
|
+
{ type: 'boolean', description: ( localize(7094, "True when the chat response resulted in an error.")) }
|
|
30
30
|
)));
|
|
31
31
|
const CONTEXT_CHAT_REQUEST_IN_PROGRESS = ( (new RawContextKey(
|
|
32
32
|
'chatSessionRequestInProgress',
|
|
33
33
|
false,
|
|
34
|
-
{ type: 'boolean', description: ( localize(
|
|
34
|
+
{ type: 'boolean', description: ( localize(7095, "True when the current request is still in progress.")) }
|
|
35
35
|
)));
|
|
36
|
-
const CONTEXT_RESPONSE = ( (new RawContextKey('chatResponse', false, { type: 'boolean', description: ( localize(
|
|
37
|
-
const CONTEXT_REQUEST = ( (new RawContextKey('chatRequest', false, { type: 'boolean', description: ( localize(
|
|
38
|
-
const CONTEXT_ITEM_ID = ( (new RawContextKey('chatItemId', '', { type: 'string', description: ( localize(
|
|
39
|
-
const CONTEXT_LAST_ITEM_ID = ( (new RawContextKey('chatLastItemId', [], { type: 'string', description: ( localize(
|
|
40
|
-
const CONTEXT_CHAT_EDIT_APPLIED = ( (new RawContextKey('chatEditApplied', false, { type: 'boolean', description: ( localize(
|
|
41
|
-
const CONTEXT_CHAT_INPUT_HAS_TEXT = ( (new RawContextKey('chatInputHasText', false, { type: 'boolean', description: ( localize(
|
|
42
|
-
const CONTEXT_CHAT_INPUT_HAS_FOCUS = ( (new RawContextKey('chatInputHasFocus', false, { type: 'boolean', description: ( localize(
|
|
43
|
-
const CONTEXT_IN_CHAT_INPUT = ( (new RawContextKey('inChatInput', false, { type: 'boolean', description: ( localize(
|
|
44
|
-
const CONTEXT_IN_CHAT_SESSION = ( (new RawContextKey('inChat', false, { type: 'boolean', description: ( localize(
|
|
36
|
+
const CONTEXT_RESPONSE = ( (new RawContextKey('chatResponse', false, { type: 'boolean', description: ( localize(7096, "The chat item is a response.")) })));
|
|
37
|
+
const CONTEXT_REQUEST = ( (new RawContextKey('chatRequest', false, { type: 'boolean', description: ( localize(7097, "The chat item is a request")) })));
|
|
38
|
+
const CONTEXT_ITEM_ID = ( (new RawContextKey('chatItemId', '', { type: 'string', description: ( localize(7098, "The id of the chat item.")) })));
|
|
39
|
+
const CONTEXT_LAST_ITEM_ID = ( (new RawContextKey('chatLastItemId', [], { type: 'string', description: ( localize(7099, "The id of the last chat item.")) })));
|
|
40
|
+
const CONTEXT_CHAT_EDIT_APPLIED = ( (new RawContextKey('chatEditApplied', false, { type: 'boolean', description: ( localize(7100, "True when the chat text edits have been applied.")) })));
|
|
41
|
+
const CONTEXT_CHAT_INPUT_HAS_TEXT = ( (new RawContextKey('chatInputHasText', false, { type: 'boolean', description: ( localize(7101, "True when the chat input has text.")) })));
|
|
42
|
+
const CONTEXT_CHAT_INPUT_HAS_FOCUS = ( (new RawContextKey('chatInputHasFocus', false, { type: 'boolean', description: ( localize(7102, "True when the chat input has focus.")) })));
|
|
43
|
+
const CONTEXT_IN_CHAT_INPUT = ( (new RawContextKey('inChatInput', false, { type: 'boolean', description: ( localize(7103, "True when focus is in the chat input, false otherwise.")) })));
|
|
44
|
+
const CONTEXT_IN_CHAT_SESSION = ( (new RawContextKey('inChat', false, { type: 'boolean', description: ( localize(7104, "True when focus is in the chat widget, false otherwise.")) })));
|
|
45
45
|
const CONTEXT_CHAT_ENABLED = ( (new RawContextKey('chatIsEnabled', false, { type: 'boolean', description: ( localize(
|
|
46
|
-
|
|
46
|
+
7105,
|
|
47
47
|
"True when chat is enabled because a default chat participant is activated with an implementation."
|
|
48
48
|
)) })));
|
|
49
49
|
const CONTEXT_CHAT_PANEL_PARTICIPANT_REGISTERED = ( (new RawContextKey(
|
|
50
50
|
'chatPanelParticipantRegistered',
|
|
51
51
|
false,
|
|
52
|
-
{ type: 'boolean', description: ( localize(
|
|
52
|
+
{ type: 'boolean', description: ( localize(7106, "True when a default chat participant is registered for the panel.")) }
|
|
53
53
|
)));
|
|
54
54
|
const CONTEXT_CHAT_EXTENSION_INVALID = ( (new RawContextKey(
|
|
55
55
|
'chatExtensionInvalid',
|
|
56
56
|
false,
|
|
57
57
|
{ type: 'boolean', description: ( localize(
|
|
58
|
-
|
|
58
|
+
7107,
|
|
59
59
|
"True when the installed chat extension is invalid and needs to be updated."
|
|
60
60
|
)) }
|
|
61
61
|
)));
|
|
62
62
|
const CONTEXT_CHAT_INPUT_CURSOR_AT_TOP = ( (new RawContextKey('chatCursorAtTop', false)));
|
|
63
63
|
const CONTEXT_CHAT_INPUT_HAS_AGENT = ( (new RawContextKey('chatInputHasAgent', false)));
|
|
64
64
|
const CONTEXT_CHAT_LOCATION = ( (new RawContextKey('chatLocation', undefined)));
|
|
65
|
-
const CONTEXT_IN_QUICK_CHAT = ( (new RawContextKey('quickChatHasFocus', false, { type: 'boolean', description: ( localize(
|
|
65
|
+
const CONTEXT_IN_QUICK_CHAT = ( (new RawContextKey('quickChatHasFocus', false, { type: 'boolean', description: ( localize(7108, "True when the quick chat UI has focus, false otherwise.")) })));
|
|
66
66
|
const CONTEXT_LANGUAGE_MODELS_ARE_USER_SELECTABLE = ( (new RawContextKey(
|
|
67
67
|
'chatModelsAreUserSelectable',
|
|
68
68
|
false,
|
|
69
|
-
{ type: 'boolean', description: ( localize(
|
|
69
|
+
{ type: 'boolean', description: ( localize(7109, "True when the chat model can be selected manually by the user.")) }
|
|
70
70
|
)));
|
|
71
71
|
const CONTEXT_PARTICIPANT_SUPPORTS_MODEL_PICKER = ( (new RawContextKey(
|
|
72
72
|
'chatParticipantSupportsModelPicker',
|
|
73
73
|
true,
|
|
74
74
|
{ type: 'boolean', description: ( localize(
|
|
75
|
-
|
|
75
|
+
7110,
|
|
76
76
|
"True when the current chat participant supports picking the model manually."
|
|
77
77
|
)) }
|
|
78
78
|
)));
|