@codingame/monaco-vscode-api 10.0.1 → 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/button/button.js +1 -1
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +6 -6
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +3 -3
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -2
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +6 -6
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +1 -1
- 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/controller/editContext/textArea/textAreaEditContext.js +1 -1
- 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/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
- 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/common/viewLayout/viewLineRenderer.js +2 -2
- 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/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- 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/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.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/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- 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/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- 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/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- 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/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- 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/actionWidget/browser/actionWidget.js +7 -7
- 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/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/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- 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/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- 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/extHostStatusBar.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/extHostTreeViews.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/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +129 -129
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +25 -25
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
- 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/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +61 -61
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +17 -17
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +34 -34
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -7
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/views.js +4 -4
- 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/chatAgentHover.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCodeCitationContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatReferencesContentPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatToolInvocationPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTreeContentPart.js +1 -1
- 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/chatFollowups.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImagePaste.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInlineAnchorWidget.js +5 -5
- 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/codeBlockPart.js +15 -15
- 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/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.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/comments/browser/commentReply.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -5
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
- 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/debugExpressionRenderer.js +1 -1
- 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/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/extensions/common/extensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
- 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/workspaceWatcher.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
- 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/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.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/controller/foldingController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +8 -8
- 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/cellEditorOptions.js +4 -4
- 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/renderers/backLayerWebView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
- 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/scm/browser/scmHistory.js +13 -13
- 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/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/terminalChat.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +1 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
- 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/userDataProfile/common/userDataProfile.js +3 -3
|
@@ -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)'
|
|
@@ -120,7 +120,7 @@ let CodeBlockPart = class CodeBlockPart extends Disposable {
|
|
|
120
120
|
multipleDefinitions: 'goto',
|
|
121
121
|
multipleImplementations: 'goto',
|
|
122
122
|
},
|
|
123
|
-
ariaLabel: ( localize(
|
|
123
|
+
ariaLabel: ( localize(10714, 'Code block')),
|
|
124
124
|
overflowWidgetsDomNode,
|
|
125
125
|
...this.getEditorOptionsFromConfig(),
|
|
126
126
|
});
|
|
@@ -234,7 +234,7 @@ let CodeBlockPart = class CodeBlockPart extends Disposable {
|
|
|
234
234
|
const toolbarElt = this.toolbar.getElement();
|
|
235
235
|
if (this.accessibilityService.isScreenReaderOptimized()) {
|
|
236
236
|
toolbarElt.style.display = 'block';
|
|
237
|
-
toolbarElt.ariaLabel = this.configurationService.getValue("accessibility.verbosity.panelChat" ) ? ( localize(
|
|
237
|
+
toolbarElt.ariaLabel = this.configurationService.getValue("accessibility.verbosity.panelChat" ) ? ( localize(10715, 'Toolbar for code block which can be reached via tab')) : ( localize(10716, 'Code block toolbar'));
|
|
238
238
|
}
|
|
239
239
|
else {
|
|
240
240
|
toolbarElt.style.display = '';
|
|
@@ -285,7 +285,7 @@ let CodeBlockPart = class CodeBlockPart extends Disposable {
|
|
|
285
285
|
this.disposableStore.add(this.editor.onDidFocusEditorWidget(() => TabFocus.setTabFocusMode(true)));
|
|
286
286
|
this.disposableStore.add(this.editor.onDidBlurEditorWidget(() => TabFocus.setTabFocusMode(false)));
|
|
287
287
|
}
|
|
288
|
-
this.editor.updateOptions({ ariaLabel: ( localize(
|
|
288
|
+
this.editor.updateOptions({ ariaLabel: ( localize(10717, "Code block {0}", data.codeBlockIndex + 1)), readOnly: !editable });
|
|
289
289
|
if (data.hideToolbar) {
|
|
290
290
|
hide(this.toolbar.getElement());
|
|
291
291
|
}
|
|
@@ -333,8 +333,8 @@ let CodeBlockPart = class CodeBlockPart extends Disposable {
|
|
|
333
333
|
return '';
|
|
334
334
|
}
|
|
335
335
|
const referencesLabel = this.currentCodeBlockData.vulns.length > 1 ?
|
|
336
|
-
( localize(
|
|
337
|
-
( localize(
|
|
336
|
+
( localize(10718, "{0} vulnerabilities", this.currentCodeBlockData.vulns.length)) :
|
|
337
|
+
( localize(10719, "{0} vulnerability", 1));
|
|
338
338
|
const icon = (element) => element.vulnerabilitiesListExpanded ? Codicon.chevronDown : Codicon.chevronRight;
|
|
339
339
|
return `${referencesLabel} $(${icon(this.currentCodeBlockData.element).id})`;
|
|
340
340
|
}
|
|
@@ -407,7 +407,7 @@ let CodeCompareBlockPart = class CodeCompareBlockPart extends Disposable {
|
|
|
407
407
|
multipleDefinitions: 'goto',
|
|
408
408
|
multipleImplementations: 'goto',
|
|
409
409
|
},
|
|
410
|
-
ariaLabel: ( localize(
|
|
410
|
+
ariaLabel: ( localize(10714, 'Code block')),
|
|
411
411
|
overflowWidgetsDomNode,
|
|
412
412
|
...this.getEditorOptionsFromConfig(),
|
|
413
413
|
});
|
|
@@ -479,8 +479,8 @@ let CodeCompareBlockPart = class CodeCompareBlockPart extends Disposable {
|
|
|
479
479
|
diffCodeLens: false,
|
|
480
480
|
scrollBeyondLastLine: false,
|
|
481
481
|
stickyScroll: { enabled: false },
|
|
482
|
-
originalAriaLabel: ( localize(
|
|
483
|
-
modifiedAriaLabel: ( localize(
|
|
482
|
+
originalAriaLabel: ( localize(10720, 'Original')),
|
|
483
|
+
modifiedAriaLabel: ( localize(10721, 'Modified')),
|
|
484
484
|
diffAlgorithm: 'advanced',
|
|
485
485
|
readOnly: false,
|
|
486
486
|
isInEmbeddedEditor: true,
|
|
@@ -512,7 +512,7 @@ let CodeCompareBlockPart = class CodeCompareBlockPart extends Disposable {
|
|
|
512
512
|
const toolbarElt = this.toolbar.getElement();
|
|
513
513
|
if (this.accessibilityService.isScreenReaderOptimized()) {
|
|
514
514
|
toolbarElt.style.display = 'block';
|
|
515
|
-
toolbarElt.ariaLabel = this.configurationService.getValue("accessibility.verbosity.panelChat" ) ? ( localize(
|
|
515
|
+
toolbarElt.ariaLabel = this.configurationService.getValue("accessibility.verbosity.panelChat" ) ? ( localize(10715, 'Toolbar for code block which can be reached via tab')) : ( localize(10716, 'Code block toolbar'));
|
|
516
516
|
}
|
|
517
517
|
else {
|
|
518
518
|
toolbarElt.style.display = '';
|
|
@@ -552,7 +552,7 @@ let CodeCompareBlockPart = class CodeCompareBlockPart extends Disposable {
|
|
|
552
552
|
}
|
|
553
553
|
await this.updateEditor(data, token);
|
|
554
554
|
this.layout(width);
|
|
555
|
-
this.diffEditor.updateOptions({ ariaLabel: ( localize(
|
|
555
|
+
this.diffEditor.updateOptions({ ariaLabel: ( localize(10722, "Code Edits")) });
|
|
556
556
|
this.resourceLabel.element.setFile(data.edit.uri, {
|
|
557
557
|
fileKind: FileKind.FILE,
|
|
558
558
|
fileDecorations: { colors: true, badges: false }
|
|
@@ -579,14 +579,14 @@ let CodeCompareBlockPart = class CodeCompareBlockPart extends Disposable {
|
|
|
579
579
|
const uriLabel = this.labelService.getUriLabel(data.edit.uri, { relative: true, noPrefix: true });
|
|
580
580
|
let template;
|
|
581
581
|
if (data.edit.state.applied === 1) {
|
|
582
|
-
template = ( localize(
|
|
582
|
+
template = ( localize(10723, "Made 1 change in [[``{0}``]]", uriLabel));
|
|
583
583
|
}
|
|
584
584
|
else if (data.edit.state.applied < 0) {
|
|
585
|
-
template = ( localize(
|
|
585
|
+
template = ( localize(10724, "Edits in [[``{0}``]] have been rejected", uriLabel));
|
|
586
586
|
}
|
|
587
587
|
else {
|
|
588
588
|
template = ( localize(
|
|
589
|
-
|
|
589
|
+
10725,
|
|
590
590
|
"Made {0} changes in [[``{1}``]]",
|
|
591
591
|
data.edit.state.applied,
|
|
592
592
|
uriLabel
|
|
@@ -713,8 +713,8 @@ let DefaultChatTextEditor = class DefaultChatTextEditor {
|
|
|
713
713
|
async _checkSha1(model, item) {
|
|
714
714
|
if (item.state?.sha1 && this._sha1.computeSHA1(model) && this._sha1.computeSHA1(model) !== item.state.sha1) {
|
|
715
715
|
const result = await this.dialogService.confirm({
|
|
716
|
-
message: ( localize(
|
|
717
|
-
detail: ( localize(
|
|
716
|
+
message: ( localize(10726, "The original file has been modified.")),
|
|
717
|
+
detail: ( localize(10727, "Do you want to apply the changes anyway?")),
|
|
718
718
|
});
|
|
719
719
|
if (!result.confirmed) {
|
|
720
720
|
return false;
|
|
@@ -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
|
)));
|
|
@@ -87,7 +87,13 @@ class Response extends Disposable {
|
|
|
87
87
|
this._responseRepr = '';
|
|
88
88
|
this._markdownContent = '';
|
|
89
89
|
this._citations = [];
|
|
90
|
-
|
|
90
|
+
const valueArr = asArray(value).filter(v => {
|
|
91
|
+
if ('kind' in v && v.kind === 'inlineReference' && !( (Object.keys(v.inlineReference))).length) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
return true;
|
|
95
|
+
});
|
|
96
|
+
this._responseParts = ( (valueArr.map((v) => (isMarkdownString(v) ?
|
|
91
97
|
{ content: v, kind: 'markdownContent' } :
|
|
92
98
|
'kind' in v ? v : { kind: 'treeData', treeData: v }))));
|
|
93
99
|
this._updateRepr(true);
|
|
@@ -103,6 +109,9 @@ class Response extends Disposable {
|
|
|
103
109
|
this._updateRepr(true);
|
|
104
110
|
}
|
|
105
111
|
updateContent(progress, quiet) {
|
|
112
|
+
if (progress.kind === 'inlineReference' && !( (Object.keys(progress.inlineReference))).length) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
106
115
|
if (progress.kind === 'markdownContent') {
|
|
107
116
|
const responsePartLength = this._responseParts.length - 1;
|
|
108
117
|
const lastResponsePart = this._responseParts[responsePartLength];
|
|
@@ -170,7 +179,7 @@ class Response extends Disposable {
|
|
|
170
179
|
return part.command.title;
|
|
171
180
|
}
|
|
172
181
|
else if (part.kind === 'textEditGroup') {
|
|
173
|
-
return ( localize(
|
|
182
|
+
return ( localize(7148, "Made changes."));
|
|
174
183
|
}
|
|
175
184
|
else if (part.kind === 'progressMessage' || part.kind === 'codeblockUri' || part.kind === 'toolInvocation' || part.kind === 'toolInvocationSerialized') {
|
|
176
185
|
return '';
|
|
@@ -836,8 +845,8 @@ function getCodeCitationsMessage(citations) {
|
|
|
836
845
|
}
|
|
837
846
|
const licenseTypes = citations.reduce((set, c) => set.add(c.license), ( (new Set())));
|
|
838
847
|
const label = licenseTypes.size === 1 ?
|
|
839
|
-
( localize(
|
|
840
|
-
( localize(
|
|
848
|
+
( localize(7149, "Similar code found with 1 license type", licenseTypes.size)) :
|
|
849
|
+
( localize(7150, "Similar code found with {0} license types", licenseTypes.size));
|
|
841
850
|
return label;
|
|
842
851
|
}
|
|
843
852
|
export { ChatModel, ChatModelInitState, ChatRequestModel, ChatResponseModel, Response, appendMarkdownString, canMergeMarkdownStrings, getCodeCitationsMessage, isChatRequestVariableEntry, isExportableSessionData, isSerializableSessionData, normalizeSerializableChatData, toChatHistoryContent, updateRanges };
|
|
@@ -23,12 +23,12 @@ import { ThemeIcon } from '../../../../../base/common/themables.js';
|
|
|
23
23
|
import { isWindows } from '../../../../../base/common/platform.js';
|
|
24
24
|
var EditorDictation_1;
|
|
25
25
|
const EDITOR_DICTATION_IN_PROGRESS = ( (new RawContextKey('editorDictation.inProgress', false)));
|
|
26
|
-
const VOICE_CATEGORY = ( localize2(
|
|
26
|
+
const VOICE_CATEGORY = ( localize2(10549, "Voice"));
|
|
27
27
|
class EditorDictationStartAction extends EditorAction2 {
|
|
28
28
|
constructor() {
|
|
29
29
|
super({
|
|
30
30
|
id: 'workbench.action.editorDictation.start',
|
|
31
|
-
title: ( localize2(
|
|
31
|
+
title: ( localize2(10550, "Start Dictation in Editor")),
|
|
32
32
|
category: VOICE_CATEGORY,
|
|
33
33
|
precondition: ( (ContextKeyExpr.and(
|
|
34
34
|
HasSpeechProvider,
|
|
@@ -68,7 +68,7 @@ class EditorDictationStopAction extends EditorAction2 {
|
|
|
68
68
|
constructor() {
|
|
69
69
|
super({
|
|
70
70
|
id: EditorDictationStopAction.ID,
|
|
71
|
-
title: ( localize2(
|
|
71
|
+
title: ( localize2(10551, "Stop Dictation in Editor")),
|
|
72
72
|
category: VOICE_CATEGORY,
|
|
73
73
|
precondition: EDITOR_DICTATION_IN_PROGRESS,
|
|
74
74
|
f1: true,
|
|
@@ -93,7 +93,7 @@ class DictationWidget extends Disposable {
|
|
|
93
93
|
const stopActionKeybinding = keybindingService.lookupKeybinding(EditorDictationStopAction.ID)?.getLabel();
|
|
94
94
|
actionBar.push(toAction({
|
|
95
95
|
id: EditorDictationStopAction.ID,
|
|
96
|
-
label: stopActionKeybinding ? ( localize(
|
|
96
|
+
label: stopActionKeybinding ? ( localize(10552, "Stop Dictation ({0})", stopActionKeybinding)) : ( localize(10553, "Stop Dictation")),
|
|
97
97
|
class: ThemeIcon.asClassName(Codicon.micFilled),
|
|
98
98
|
run: () => EditorDictation.get(editor)?.stop()
|
|
99
99
|
}), { icon: true, label: false, keybinding: stopActionKeybinding });
|
|
@@ -96,7 +96,7 @@ class InspectEditorTokens extends EditorAction {
|
|
|
96
96
|
constructor() {
|
|
97
97
|
super({
|
|
98
98
|
id: 'editor.action.inspectTMScopes',
|
|
99
|
-
label: ( localize(
|
|
99
|
+
label: ( localize(3162, "Developer: Inspect Editor Tokens and Scopes")),
|
|
100
100
|
alias: 'Developer: Inspect Editor Tokens and Scopes',
|
|
101
101
|
precondition: undefined
|
|
102
102
|
});
|
|
@@ -164,7 +164,7 @@ class InspectEditorTokensWidget extends Disposable {
|
|
|
164
164
|
const semanticTokens = this._computeSemanticTokens(position);
|
|
165
165
|
const tree = this._treeSitterService.getParseResult(this._model);
|
|
166
166
|
clearNode(this._domNode);
|
|
167
|
-
this._domNode.appendChild(document.createTextNode(( localize(
|
|
167
|
+
this._domNode.appendChild(document.createTextNode(( localize(3163, "Loading..."))));
|
|
168
168
|
Promise.all([grammar, semanticTokens]).then(([grammar, semanticTokens]) => {
|
|
169
169
|
if (this._isDisposed) {
|
|
170
170
|
return;
|
|
@@ -14,7 +14,7 @@ class ToggleMultiCursorModifierAction extends Action2 {
|
|
|
14
14
|
constructor() {
|
|
15
15
|
super({
|
|
16
16
|
id: ToggleMultiCursorModifierAction.ID,
|
|
17
|
-
title: ( localize2(
|
|
17
|
+
title: ( localize2(652, 'Toggle Multi-Cursor Modifier')),
|
|
18
18
|
f1: true
|
|
19
19
|
});
|
|
20
20
|
}
|
|
@@ -54,7 +54,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSelectionMenu, {
|
|
|
54
54
|
group: '4_config',
|
|
55
55
|
command: {
|
|
56
56
|
id: ToggleMultiCursorModifierAction.ID,
|
|
57
|
-
title: ( localize(
|
|
57
|
+
title: ( localize(653, "Switch to Alt+Click for Multi-Cursor"))
|
|
58
58
|
},
|
|
59
59
|
when: ( (multiCursorModifier.isEqualTo('ctrlCmd'))),
|
|
60
60
|
order: 1
|
|
@@ -64,8 +64,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSelectionMenu, {
|
|
|
64
64
|
command: {
|
|
65
65
|
id: ToggleMultiCursorModifierAction.ID,
|
|
66
66
|
title: (isMacintosh
|
|
67
|
-
? ( localize(
|
|
68
|
-
: ( localize(
|
|
67
|
+
? ( localize(654, "Switch to Cmd+Click for Multi-Cursor"))
|
|
68
|
+
: ( localize(655, "Switch to Ctrl+Click for Multi-Cursor")))
|
|
69
69
|
},
|
|
70
70
|
when: ( (multiCursorModifier.isEqualTo('altKey'))),
|
|
71
71
|
order: 1
|
|
@@ -9,8 +9,8 @@ class ToggleRenderControlCharacterAction extends Action2 {
|
|
|
9
9
|
super({
|
|
10
10
|
id: ToggleRenderControlCharacterAction.ID,
|
|
11
11
|
title: {
|
|
12
|
-
...( localize2(
|
|
13
|
-
mnemonicTitle: ( localize(
|
|
12
|
+
...( localize2(656, "Toggle Control Characters")),
|
|
13
|
+
mnemonicTitle: ( localize(657, "Render &&Control Characters")),
|
|
14
14
|
},
|
|
15
15
|
category: Categories.View,
|
|
16
16
|
f1: true,
|
|
@@ -159,8 +159,8 @@ let CommentReply = class CommentReply extends Disposable {
|
|
|
159
159
|
setCommentEditorDecorations() {
|
|
160
160
|
const hasExistingComments = this._commentThread.comments && this._commentThread.comments.length > 0;
|
|
161
161
|
const placeholder = hasExistingComments
|
|
162
|
-
? (this._commentOptions?.placeHolder || ( localize(
|
|
163
|
-
: (this._commentOptions?.placeHolder || ( localize(
|
|
162
|
+
? (this._commentOptions?.placeHolder || ( localize(8131, "Reply...")))
|
|
163
|
+
: (this._commentOptions?.placeHolder || ( localize(8132, "Type a new comment")));
|
|
164
164
|
this.commentEditor.updateOptions({ placeholder });
|
|
165
165
|
}
|
|
166
166
|
createTextModelListener(commentEditor, commentForm) {
|
|
@@ -279,8 +279,8 @@ let CommentReply = class CommentReply extends Disposable {
|
|
|
279
279
|
}
|
|
280
280
|
createReplyButton(commentEditor, commentForm) {
|
|
281
281
|
this._reviewThreadReplyButton = append(commentForm, $(`button.review-thread-reply-button.${MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`));
|
|
282
|
-
this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), this._reviewThreadReplyButton, this._commentOptions?.prompt || ( localize(
|
|
283
|
-
this._reviewThreadReplyButton.textContent = this._commentOptions?.prompt || ( localize(
|
|
282
|
+
this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), this._reviewThreadReplyButton, this._commentOptions?.prompt || ( localize(8131, "Reply..."))));
|
|
283
|
+
this._reviewThreadReplyButton.textContent = this._commentOptions?.prompt || ( localize(8131, "Reply..."));
|
|
284
284
|
this._register(addDisposableListener(this._reviewThreadReplyButton, 'click', _ => this.clearAndExpandReplyArea()));
|
|
285
285
|
this._register(addDisposableListener(this._reviewThreadReplyButton, 'focus', _ => this.clearAndExpandReplyArea()));
|
|
286
286
|
commentEditor.onDidBlurEditorWidget(() => {
|
|
@@ -794,7 +794,7 @@ let CommentController = class CommentController {
|
|
|
794
794
|
const commentRangeEnd = range?.getEndPosition().lineNumber;
|
|
795
795
|
if (commentRangeStart && commentRangeEnd) {
|
|
796
796
|
const oneLine = commentRangeStart === commentRangeEnd;
|
|
797
|
-
oneLine ? status(( localize(
|
|
797
|
+
oneLine ? status(( localize(5367, "Line {0}", commentRangeStart))) : status(( localize(5368, "Lines {0} to {1}", commentRangeStart, commentRangeEnd)));
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
800
|
}
|
|
@@ -966,20 +966,20 @@ let CommentController = class CommentController {
|
|
|
966
966
|
const keybinding = this.keybindingService.lookupKeybinding("editor.action.accessibilityHelp" )?.getAriaLabel();
|
|
967
967
|
if (keybinding) {
|
|
968
968
|
status(( localize(
|
|
969
|
-
|
|
969
|
+
5369,
|
|
970
970
|
"Editor has commenting ranges, run the command Open Accessibility Help ({0}), for more information.",
|
|
971
971
|
keybinding
|
|
972
972
|
)));
|
|
973
973
|
}
|
|
974
974
|
else {
|
|
975
975
|
status(( localize(
|
|
976
|
-
|
|
976
|
+
5370,
|
|
977
977
|
"Editor has commenting ranges, run the command Open Accessibility Help, which is currently not triggerable via keybinding, for more information."
|
|
978
978
|
)));
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
981
|
else {
|
|
982
|
-
status(( localize(
|
|
982
|
+
status(( localize(5371, "Editor has commenting ranges.")));
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
985
|
}
|
|
@@ -1132,7 +1132,7 @@ let CommentController = class CommentController {
|
|
|
1132
1132
|
}
|
|
1133
1133
|
else {
|
|
1134
1134
|
const picks = this.getCommentProvidersQuickPicks(newCommentInfos);
|
|
1135
|
-
return this.quickInputService.pick(picks, { placeHolder: ( localize(
|
|
1135
|
+
return this.quickInputService.pick(picks, { placeHolder: ( localize(5372, "Select Comment Provider")), matchOnDescription: true }).then(pick => {
|
|
1136
1136
|
if (!pick) {
|
|
1137
1137
|
return;
|
|
1138
1138
|
}
|
|
@@ -304,12 +304,12 @@ let CustomEditorInput = class CustomEditorInput extends LazilyResolvedWebviewEdi
|
|
|
304
304
|
claim(claimant, targetWindow, scopedContextKeyService) {
|
|
305
305
|
if (this.doCanMove(targetWindow.vscodeWindowId) !== true) {
|
|
306
306
|
throw createEditorOpenError(localize(
|
|
307
|
-
|
|
307
|
+
9616,
|
|
308
308
|
"Unable to open the editor in this window, it contains modifications that can only be saved in the original window."
|
|
309
309
|
), [
|
|
310
310
|
toAction({
|
|
311
311
|
id: 'openInOriginalWindow',
|
|
312
|
-
label: localize(
|
|
312
|
+
label: localize(9617, "Open in Original Window"),
|
|
313
313
|
run: async () => {
|
|
314
314
|
const originalPart = this.editorGroupsService.getPart(this.layoutService.getContainer(getWindow(this.webview.container).window));
|
|
315
315
|
const currentPart = this.editorGroupsService.getPart(this.layoutService.getContainer(targetWindow.window));
|
|
@@ -335,7 +335,7 @@ let CustomEditorInput = class CustomEditorInput extends LazilyResolvedWebviewEdi
|
|
|
335
335
|
const sourceWindowId = getWindow(this.webview.container).vscodeWindowId;
|
|
336
336
|
if (sourceWindowId !== targetWindowId) {
|
|
337
337
|
return ( localize(
|
|
338
|
-
|
|
338
|
+
9618,
|
|
339
339
|
"Unable to move '{0}': The editor contains changes that can only be saved in its current window.",
|
|
340
340
|
this.getName()
|
|
341
341
|
));
|