@codingame/monaco-vscode-api 8.0.2 → 8.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.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/inputbox/inputBox.js +6 -6
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +6 -6
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +1 -1
- package/vscode/src/vs/base/common/actions.js +1 -1
- package/vscode/src/vs/base/common/date.js +59 -59
- package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
- package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +5 -5
- package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
- package/vscode/src/vs/editor/browser/editorExtensions.js +6 -6
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.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 +1 -1
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +49 -49
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +27 -27
- 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/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +28 -28
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js +7 -7
- 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/copyPasteController.js +7 -7
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +1 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +27 -27
- 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/gotoError/browser/gotoErrorWidget.js +14 -14
- 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/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- 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/hover/browser/markerHoverParticipant.js +5 -5
- 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/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys.js +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/commands.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/consts.js +2 -2
- 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/message/browser/messageController.js +1 -1
- 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/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +17 -17
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- 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/rename/browser/renameWidget.js +6 -6
- 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/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +16 -16
- 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/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/editor/editor.api.d.ts +91 -69
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- 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/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
- 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/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +19 -19
- 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/keybinding/common/abstractKeybindingService.js +4 -4
- 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/request/common/request.js +14 -14
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- 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/extHostTreeViews.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/editor.js +2 -2
- 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/editorCommands.js +16 -16
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +7 -7
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
- package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +219 -216
- 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/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +127 -127
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +9 -9
- 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/chatInputPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +14 -14
- 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/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
- 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/commentReply.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- 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 +166 -166
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
- 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 +57 -57
- 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/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/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/foldingController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
- 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/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 +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +12 -12
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +15 -15
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
- 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/terminal/common/terminalStrings.js +28 -28
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +1 -1
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +82 -82
- 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/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- 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/workingCopy/common/storedFileWorkingCopy.js +17 -17
|
@@ -25,13 +25,13 @@ import { IViewsService } from '../../../../services/views/common/viewsService.se
|
|
|
25
25
|
function isChatViewTitleActionContext(obj) {
|
|
26
26
|
return obj instanceof Object && 'chatView' in obj;
|
|
27
27
|
}
|
|
28
|
-
const CHAT_CATEGORY = ( localize2(
|
|
28
|
+
const CHAT_CATEGORY = ( localize2(4617, 'Chat'));
|
|
29
29
|
const CHAT_OPEN_ACTION_ID = 'workbench.action.chat.open';
|
|
30
30
|
class OpenChatGlobalAction extends Action2 {
|
|
31
31
|
constructor() {
|
|
32
32
|
super({
|
|
33
33
|
id: CHAT_OPEN_ACTION_ID,
|
|
34
|
-
title: ( localize2(
|
|
34
|
+
title: ( localize2(4618, "Open Chat")),
|
|
35
35
|
icon: Codicon.commentDiscussion,
|
|
36
36
|
f1: false,
|
|
37
37
|
category: CHAT_CATEGORY,
|
|
@@ -71,7 +71,7 @@ class ChatHistoryAction extends Action2 {
|
|
|
71
71
|
constructor() {
|
|
72
72
|
super({
|
|
73
73
|
id: `workbench.action.chat.history`,
|
|
74
|
-
title: ( localize2(
|
|
74
|
+
title: ( localize2(4619, "Show Chats...")),
|
|
75
75
|
menu: {
|
|
76
76
|
id: MenuId.ViewTitle,
|
|
77
77
|
when: ( (ContextKeyExpr.equals('view', CHAT_VIEW_ID))),
|
|
@@ -91,11 +91,11 @@ class ChatHistoryAction extends Action2 {
|
|
|
91
91
|
const editorService = accessor.get(IEditorService);
|
|
92
92
|
const openInEditorButton = {
|
|
93
93
|
iconClass: ThemeIcon.asClassName(Codicon.file),
|
|
94
|
-
tooltip: ( localize(
|
|
94
|
+
tooltip: ( localize(4620, "Open in Editor")),
|
|
95
95
|
};
|
|
96
96
|
const deleteButton = {
|
|
97
97
|
iconClass: ThemeIcon.asClassName(Codicon.x),
|
|
98
|
-
tooltip: ( localize(
|
|
98
|
+
tooltip: ( localize(4621, "Delete")),
|
|
99
99
|
};
|
|
100
100
|
const getPicks = () => {
|
|
101
101
|
const items = chatService.getHistory();
|
|
@@ -112,7 +112,7 @@ class ChatHistoryAction extends Action2 {
|
|
|
112
112
|
};
|
|
113
113
|
const store = ( (new DisposableStore()));
|
|
114
114
|
const picker = store.add(quickInputService.createQuickPick());
|
|
115
|
-
picker.placeholder = ( localize(
|
|
115
|
+
picker.placeholder = ( localize(4622, "Switch to chat"));
|
|
116
116
|
picker.items = getPicks();
|
|
117
117
|
store.add(picker.onDidTriggerItemButton(context => {
|
|
118
118
|
if (context.button === openInEditorButton) {
|
|
@@ -143,7 +143,7 @@ class OpenChatEditorAction extends Action2 {
|
|
|
143
143
|
constructor() {
|
|
144
144
|
super({
|
|
145
145
|
id: `workbench.action.openChat`,
|
|
146
|
-
title: ( localize2(
|
|
146
|
+
title: ( localize2(4623, "Open Editor")),
|
|
147
147
|
f1: true,
|
|
148
148
|
category: CHAT_CATEGORY,
|
|
149
149
|
precondition: CONTEXT_CHAT_ENABLED
|
|
@@ -162,7 +162,7 @@ function registerChatActions() {
|
|
|
162
162
|
constructor() {
|
|
163
163
|
super({
|
|
164
164
|
id: 'workbench.action.chat.clearInputHistory',
|
|
165
|
-
title: ( localize2(
|
|
165
|
+
title: ( localize2(4624, "Clear Input History")),
|
|
166
166
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
167
167
|
category: CHAT_CATEGORY,
|
|
168
168
|
f1: true,
|
|
@@ -177,7 +177,7 @@ function registerChatActions() {
|
|
|
177
177
|
constructor() {
|
|
178
178
|
super({
|
|
179
179
|
id: 'workbench.action.chat.clearHistory',
|
|
180
|
-
title: ( localize2(
|
|
180
|
+
title: ( localize2(4625, "Clear All Workspace Chats")),
|
|
181
181
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
182
182
|
category: CHAT_CATEGORY,
|
|
183
183
|
f1: true,
|
|
@@ -205,7 +205,7 @@ function registerChatActions() {
|
|
|
205
205
|
constructor() {
|
|
206
206
|
super({
|
|
207
207
|
id: 'chat.action.focus',
|
|
208
|
-
title: ( localize2(
|
|
208
|
+
title: ( localize2(4626, 'Focus Chat List')),
|
|
209
209
|
precondition: ( (ContextKeyExpr.and(
|
|
210
210
|
CONTEXT_IN_CHAT_INPUT,
|
|
211
211
|
(CONTEXT_CHAT_LOCATION.isEqualTo(ChatAgentLocation.Panel))
|
|
@@ -237,7 +237,7 @@ function registerChatActions() {
|
|
|
237
237
|
constructor() {
|
|
238
238
|
super({
|
|
239
239
|
id: 'workbench.action.chat.focusInput',
|
|
240
|
-
title: ( localize2(
|
|
240
|
+
title: ( localize2(4627, "Focus Chat Input")),
|
|
241
241
|
f1: false,
|
|
242
242
|
keybinding: {
|
|
243
243
|
primary: KeyMod$1.CtrlCmd | KeyCode.DownArrow,
|
|
@@ -17,7 +17,7 @@ function registerQuickChatActions() {
|
|
|
17
17
|
constructor() {
|
|
18
18
|
super({
|
|
19
19
|
id: 'workbench.action.quickchat.openInChatView',
|
|
20
|
-
title: ( localize2(
|
|
20
|
+
title: ( localize2(4628, "Open in Chat View")),
|
|
21
21
|
f1: false,
|
|
22
22
|
category: CHAT_CATEGORY,
|
|
23
23
|
icon: Codicon.commentDiscussion,
|
|
@@ -37,7 +37,7 @@ function registerQuickChatActions() {
|
|
|
37
37
|
constructor() {
|
|
38
38
|
super({
|
|
39
39
|
id: 'workbench.action.quickchat.close',
|
|
40
|
-
title: ( localize2(
|
|
40
|
+
title: ( localize2(4629, "Close Quick Chat")),
|
|
41
41
|
f1: false,
|
|
42
42
|
category: CHAT_CATEGORY,
|
|
43
43
|
icon: Codicon.close,
|
|
@@ -57,7 +57,7 @@ function registerQuickChatActions() {
|
|
|
57
57
|
constructor() {
|
|
58
58
|
super({
|
|
59
59
|
id: 'workbench.action.quickchat.launchInlineChat',
|
|
60
|
-
title: ( localize2(
|
|
60
|
+
title: ( localize2(4630, "Launch Inline Chat")),
|
|
61
61
|
f1: false,
|
|
62
62
|
category: CHAT_CATEGORY
|
|
63
63
|
});
|
|
@@ -85,7 +85,7 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
85
85
|
constructor() {
|
|
86
86
|
super({
|
|
87
87
|
id: ASK_QUICK_QUESTION_ACTION_ID,
|
|
88
|
-
title: ( localize2(
|
|
88
|
+
title: ( localize2(4631, 'Quick Chat')),
|
|
89
89
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
90
90
|
icon: Codicon.commentDiscussion,
|
|
91
91
|
f1: false,
|
|
@@ -98,7 +98,7 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
metadata: {
|
|
101
|
-
description: ( localize(
|
|
101
|
+
description: ( localize(4632, 'Toggle the quick chat')),
|
|
102
102
|
args: [{
|
|
103
103
|
name: 'args',
|
|
104
104
|
schema: {
|
|
@@ -108,18 +108,18 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
108
108
|
required: ['query'],
|
|
109
109
|
properties: {
|
|
110
110
|
query: {
|
|
111
|
-
description: ( localize(
|
|
111
|
+
description: ( localize(4633, "The query to open the quick chat with")),
|
|
112
112
|
type: 'string'
|
|
113
113
|
},
|
|
114
114
|
isPartialQuery: {
|
|
115
|
-
description: ( localize(
|
|
115
|
+
description: ( localize(4634, "Whether the query is partial; it will wait for more user input")),
|
|
116
116
|
type: 'boolean'
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
121
|
type: 'string',
|
|
122
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(4633, "The query to open the quick chat with"))
|
|
123
123
|
}
|
|
124
124
|
]
|
|
125
125
|
}
|
|
@@ -149,7 +149,7 @@ class AskQuickChatAction extends Action2 {
|
|
|
149
149
|
super({
|
|
150
150
|
id: `workbench.action.openQuickChat`,
|
|
151
151
|
category: CHAT_CATEGORY,
|
|
152
|
-
title: ( localize2(
|
|
152
|
+
title: ( localize2(4635, "Open Quick Chat")),
|
|
153
153
|
f1: true
|
|
154
154
|
});
|
|
155
155
|
}
|
|
@@ -15,7 +15,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
15
15
|
return 'listitem';
|
|
16
16
|
}
|
|
17
17
|
getWidgetAriaLabel() {
|
|
18
|
-
return ( localize(
|
|
18
|
+
return ( localize(7005, "Chat"));
|
|
19
19
|
}
|
|
20
20
|
getAriaLabel(element) {
|
|
21
21
|
if (isRequestVM(element)) {
|
|
@@ -40,23 +40,23 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
40
40
|
case 0:
|
|
41
41
|
break;
|
|
42
42
|
case 1:
|
|
43
|
-
fileTreeCountHint = ( localize(
|
|
43
|
+
fileTreeCountHint = ( localize(7006, "1 file tree"));
|
|
44
44
|
break;
|
|
45
45
|
default:
|
|
46
|
-
fileTreeCountHint = ( localize(
|
|
46
|
+
fileTreeCountHint = ( localize(7007, "{0} file trees", fileTreeCount));
|
|
47
47
|
break;
|
|
48
48
|
}
|
|
49
49
|
const codeBlockCount = marked_1.lexer(( (element.response.toString()))).filter(token => token.type === 'code')?.length ?? 0;
|
|
50
50
|
switch (codeBlockCount) {
|
|
51
51
|
case 0:
|
|
52
52
|
label = accessibleViewHint ? ( localize(
|
|
53
|
-
|
|
53
|
+
7008,
|
|
54
54
|
"{0} {1} {2}",
|
|
55
55
|
fileTreeCountHint,
|
|
56
56
|
(element.response.toString()),
|
|
57
57
|
accessibleViewHint
|
|
58
58
|
)) : ( localize(
|
|
59
|
-
|
|
59
|
+
7009,
|
|
60
60
|
"{0} {1}",
|
|
61
61
|
fileTreeCountHint,
|
|
62
62
|
(element.response.toString())
|
|
@@ -64,13 +64,13 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
64
64
|
break;
|
|
65
65
|
case 1:
|
|
66
66
|
label = accessibleViewHint ? ( localize(
|
|
67
|
-
|
|
67
|
+
7010,
|
|
68
68
|
"{0} 1 code block: {1} {2}",
|
|
69
69
|
fileTreeCountHint,
|
|
70
70
|
(element.response.toString()),
|
|
71
71
|
accessibleViewHint
|
|
72
72
|
)) : ( localize(
|
|
73
|
-
|
|
73
|
+
7011,
|
|
74
74
|
"{0} 1 code block: {1}",
|
|
75
75
|
fileTreeCountHint,
|
|
76
76
|
(element.response.toString())
|
|
@@ -78,14 +78,14 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
78
78
|
break;
|
|
79
79
|
default:
|
|
80
80
|
label = accessibleViewHint ? ( localize(
|
|
81
|
-
|
|
81
|
+
7012,
|
|
82
82
|
"{0} {1} code blocks: {2}",
|
|
83
83
|
fileTreeCountHint,
|
|
84
84
|
codeBlockCount,
|
|
85
85
|
(element.response.toString()),
|
|
86
86
|
accessibleViewHint
|
|
87
87
|
)) : ( localize(
|
|
88
|
-
|
|
88
|
+
7013,
|
|
89
89
|
"{0} {1} code blocks",
|
|
90
90
|
fileTreeCountHint,
|
|
91
91
|
codeBlockCount,
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCodeCitationContentPart.js
CHANGED
|
@@ -27,7 +27,7 @@ let ChatCodeCitationContentPart = class ChatCodeCitationContentPart extends Disp
|
|
|
27
27
|
buttonSecondaryHoverBackground: undefined,
|
|
28
28
|
buttonSeparator: undefined
|
|
29
29
|
}))));
|
|
30
|
-
button.label = ( localize(
|
|
30
|
+
button.label = ( localize(10566, "View matches"));
|
|
31
31
|
this._register(button.onDidClick(() => {
|
|
32
32
|
const citationText = `# Code Citations\n\n` + ( (citations.citations.map(
|
|
33
33
|
c => `## License: ${c.license}\n${( (c.value.toString()))}\n\n\`\`\`\n${c.snippet}\n\`\`\`\n\n`
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCommandContentPart.js
CHANGED
|
@@ -15,7 +15,7 @@ let ChatCommandButtonContentPart = class ChatCommandButtonContentPart extends Di
|
|
|
15
15
|
const enabled = !isResponseVM(context.element) || !context.element.isStale;
|
|
16
16
|
const tooltip = enabled ?
|
|
17
17
|
commandButton.command.tooltip :
|
|
18
|
-
( localize(
|
|
18
|
+
( localize(10565, "Button not available in restored chat"));
|
|
19
19
|
const button = this._register(( (new Button(
|
|
20
20
|
this.domNode,
|
|
21
21
|
{ ...defaultButtonStyles, supportIcons: true, title: tooltip }
|
|
@@ -122,15 +122,15 @@ let ChatInputPart = class ChatInputPart extends Disposable {
|
|
|
122
122
|
if (verbose) {
|
|
123
123
|
const kbLabel = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
124
124
|
return kbLabel ? ( localize(
|
|
125
|
-
|
|
125
|
+
7014,
|
|
126
126
|
"Chat Input, Type to ask questions or type / for topics, press enter to send out the request. Use {0} for Chat Accessibility Help.",
|
|
127
127
|
kbLabel
|
|
128
128
|
)) : ( localize(
|
|
129
|
-
|
|
129
|
+
7015,
|
|
130
130
|
"Chat Input, Type code here and press Enter to run. Use the Chat Accessibility Help command for more information."
|
|
131
131
|
));
|
|
132
132
|
}
|
|
133
|
-
return ( localize(
|
|
133
|
+
return ( localize(7016, "Chat Input"));
|
|
134
134
|
}
|
|
135
135
|
updateState(inputState) {
|
|
136
136
|
if (this.inHistoryNavigation) {
|
|
@@ -354,7 +354,7 @@ let ChatInputPart = class ChatInputPart extends Disposable {
|
|
|
354
354
|
actionViewItemProvider: (action, options) => {
|
|
355
355
|
if (this.location === ChatAgentLocation.Panel) {
|
|
356
356
|
if ((action.id === SubmitAction.ID || action.id === CancelAction.ID) && action instanceof MenuItemAction) {
|
|
357
|
-
const dropdownAction = this.instantiationService.createInstance(MenuItemAction, { id: 'chat.moreExecuteActions', title: ( localize(
|
|
357
|
+
const dropdownAction = this.instantiationService.createInstance(MenuItemAction, { id: 'chat.moreExecuteActions', title: ( localize(7017, "More...")), icon: Codicon.chevronDown }, undefined, undefined, undefined, undefined);
|
|
358
358
|
return this.instantiationService.createInstance(ChatSubmitDropdownActionItem, action, dropdownAction);
|
|
359
359
|
}
|
|
360
360
|
}
|
|
@@ -411,12 +411,12 @@ let ChatInputPart = class ChatInputPart extends Disposable {
|
|
|
411
411
|
const fileDirname = dirname(file.path);
|
|
412
412
|
const friendlyName = `${fileBasename} ${fileDirname}`;
|
|
413
413
|
const ariaLabel = range ? ( localize(
|
|
414
|
-
|
|
414
|
+
7018,
|
|
415
415
|
"Attached file, {0}, line {1} to line {2}",
|
|
416
416
|
friendlyName,
|
|
417
417
|
range.startLineNumber,
|
|
418
418
|
range.endLineNumber
|
|
419
|
-
)) : ( localize(
|
|
419
|
+
)) : ( localize(7019, "Attached file, {0}", friendlyName));
|
|
420
420
|
label.setFile(file, {
|
|
421
421
|
fileKind: FileKind.FILE,
|
|
422
422
|
hidePath: true,
|
|
@@ -429,7 +429,7 @@ let ChatInputPart = class ChatInputPart extends Disposable {
|
|
|
429
429
|
const attachmentLabel = attachment.fullName ?? attachment.name;
|
|
430
430
|
const withIcon = attachment.icon?.id ? `$(${attachment.icon.id}) ${attachmentLabel}` : attachmentLabel;
|
|
431
431
|
label.setLabel(withIcon, undefined);
|
|
432
|
-
widget.ariaLabel = ( localize(
|
|
432
|
+
widget.ariaLabel = ( localize(7020, "Attached context, {0}", attachment.name));
|
|
433
433
|
widget.tabIndex = 0;
|
|
434
434
|
}
|
|
435
435
|
const clearButton = ( (new Button(widget, { supportIcons: true })));
|
|
@@ -540,7 +540,7 @@ let ChatSubmitDropdownActionItem = class ChatSubmitDropdownActionItem extends Dr
|
|
|
540
540
|
if (secondaryAgent) {
|
|
541
541
|
secondary.forEach(a => {
|
|
542
542
|
if (a.id === ChatSubmitSecondaryAgentAction.ID) {
|
|
543
|
-
a.label = ( localize(
|
|
543
|
+
a.label = ( localize(7021, "Send to @{0}", secondaryAgent.name));
|
|
544
544
|
}
|
|
545
545
|
return a;
|
|
546
546
|
});
|
|
@@ -301,10 +301,10 @@ let ChatListItemRenderer = class ChatListItemRenderer extends Disposable {
|
|
|
301
301
|
clearNode(templateData.detail);
|
|
302
302
|
if (element.agentOrSlashCommandDetected) {
|
|
303
303
|
const msg = element.slashCommand ? ( localize(
|
|
304
|
-
|
|
304
|
+
7022,
|
|
305
305
|
"used {0} [[(rerun without)]]",
|
|
306
306
|
`${chatSubcommandLeader}${element.slashCommand.name}`
|
|
307
|
-
)) : ( localize(
|
|
307
|
+
)) : ( localize(7023, "[[(rerun without)]]"));
|
|
308
308
|
reset(templateData.detail, renderFormattedText(msg, {
|
|
309
309
|
className: 'agentOrSlashCommandDetected',
|
|
310
310
|
inline: true,
|
|
@@ -4,43 +4,43 @@ const CONTEXT_RESPONSE_VOTE = ( (new RawContextKey(
|
|
|
4
4
|
'chatSessionResponseVote',
|
|
5
5
|
'',
|
|
6
6
|
{ type: 'string', description: ( localize(
|
|
7
|
-
|
|
7
|
+
7024,
|
|
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(7025, "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(7026, "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(7027, "True when the chat response was filtered out by the server.")) }
|
|
25
25
|
)));
|
|
26
26
|
const CONTEXT_CHAT_REQUEST_IN_PROGRESS = ( (new RawContextKey(
|
|
27
27
|
'chatSessionRequestInProgress',
|
|
28
28
|
false,
|
|
29
|
-
{ type: 'boolean', description: ( localize(
|
|
29
|
+
{ type: 'boolean', description: ( localize(7028, "True when the current request is still in progress.")) }
|
|
30
30
|
)));
|
|
31
|
-
const CONTEXT_RESPONSE = ( (new RawContextKey('chatResponse', false, { type: 'boolean', description: ( localize(
|
|
32
|
-
const CONTEXT_REQUEST = ( (new RawContextKey('chatRequest', false, { type: 'boolean', description: ( localize(
|
|
33
|
-
const CONTEXT_CHAT_EDIT_APPLIED = ( (new RawContextKey('chatEditApplied', false, { type: 'boolean', description: ( localize(
|
|
34
|
-
const CONTEXT_CHAT_INPUT_HAS_TEXT = ( (new RawContextKey('chatInputHasText', false, { type: 'boolean', description: ( localize(
|
|
35
|
-
const CONTEXT_CHAT_INPUT_HAS_FOCUS = ( (new RawContextKey('chatInputHasFocus', false, { type: 'boolean', description: ( localize(
|
|
36
|
-
const CONTEXT_IN_CHAT_INPUT = ( (new RawContextKey('inChatInput', false, { type: 'boolean', description: ( localize(
|
|
37
|
-
const CONTEXT_IN_CHAT_SESSION = ( (new RawContextKey('inChat', false, { type: 'boolean', description: ( localize(
|
|
31
|
+
const CONTEXT_RESPONSE = ( (new RawContextKey('chatResponse', false, { type: 'boolean', description: ( localize(7029, "The chat item is a response.")) })));
|
|
32
|
+
const CONTEXT_REQUEST = ( (new RawContextKey('chatRequest', false, { type: 'boolean', description: ( localize(7030, "The chat item is a request")) })));
|
|
33
|
+
const CONTEXT_CHAT_EDIT_APPLIED = ( (new RawContextKey('chatEditApplied', false, { type: 'boolean', description: ( localize(7031, "True when the chat text edits have been applied.")) })));
|
|
34
|
+
const CONTEXT_CHAT_INPUT_HAS_TEXT = ( (new RawContextKey('chatInputHasText', false, { type: 'boolean', description: ( localize(7032, "True when the chat input has text.")) })));
|
|
35
|
+
const CONTEXT_CHAT_INPUT_HAS_FOCUS = ( (new RawContextKey('chatInputHasFocus', false, { type: 'boolean', description: ( localize(7033, "True when the chat input has focus.")) })));
|
|
36
|
+
const CONTEXT_IN_CHAT_INPUT = ( (new RawContextKey('inChatInput', false, { type: 'boolean', description: ( localize(7034, "True when focus is in the chat input, false otherwise.")) })));
|
|
37
|
+
const CONTEXT_IN_CHAT_SESSION = ( (new RawContextKey('inChat', false, { type: 'boolean', description: ( localize(7035, "True when focus is in the chat widget, false otherwise.")) })));
|
|
38
38
|
const CONTEXT_CHAT_ENABLED = ( (new RawContextKey('chatIsEnabled', false, { type: 'boolean', description: ( localize(
|
|
39
|
-
|
|
39
|
+
7036,
|
|
40
40
|
"True when chat is enabled because a default chat participant is registered."
|
|
41
41
|
)) })));
|
|
42
42
|
const CONTEXT_CHAT_INPUT_CURSOR_AT_TOP = ( (new RawContextKey('chatCursorAtTop', false)));
|
|
43
43
|
const CONTEXT_CHAT_INPUT_HAS_AGENT = ( (new RawContextKey('chatInputHasAgent', false)));
|
|
44
44
|
const CONTEXT_CHAT_LOCATION = ( (new RawContextKey('chatLocation', undefined)));
|
|
45
|
-
const CONTEXT_IN_QUICK_CHAT = ( (new RawContextKey('quickChatHasFocus', false, { type: 'boolean', description: ( localize(
|
|
45
|
+
const CONTEXT_IN_QUICK_CHAT = ( (new RawContextKey('quickChatHasFocus', false, { type: 'boolean', description: ( localize(7037, "True when the quick chat UI has focus, false otherwise.")) })));
|
|
46
46
|
export { CONTEXT_CHAT_EDIT_APPLIED, CONTEXT_CHAT_ENABLED, CONTEXT_CHAT_INPUT_CURSOR_AT_TOP, CONTEXT_CHAT_INPUT_HAS_AGENT, CONTEXT_CHAT_INPUT_HAS_FOCUS, CONTEXT_CHAT_INPUT_HAS_TEXT, CONTEXT_CHAT_LOCATION, CONTEXT_CHAT_REQUEST_IN_PROGRESS, CONTEXT_CHAT_RESPONSE_SUPPORT_ISSUE_REPORTING, CONTEXT_IN_CHAT_INPUT, CONTEXT_IN_CHAT_SESSION, CONTEXT_IN_QUICK_CHAT, CONTEXT_REQUEST, CONTEXT_RESPONSE, CONTEXT_RESPONSE_DETECTED_AGENT_COMMAND, CONTEXT_RESPONSE_FILTERED, CONTEXT_RESPONSE_VOTE };
|
|
@@ -16,17 +16,17 @@ const createCodeActionsAutoSave = (description) => {
|
|
|
16
16
|
enum: ['always', 'explicit', 'never', true, false],
|
|
17
17
|
enumDescriptions: [
|
|
18
18
|
( localize(
|
|
19
|
-
|
|
19
|
+
4568,
|
|
20
20
|
'Triggers Code Actions on explicit saves and auto saves triggered by window or focus changes.'
|
|
21
21
|
)),
|
|
22
|
-
( localize(
|
|
23
|
-
( localize(
|
|
22
|
+
( localize(4569, 'Triggers Code Actions only when explicitly saved')),
|
|
23
|
+
( localize(4570, 'Never triggers Code Actions on save')),
|
|
24
24
|
( localize(
|
|
25
|
-
|
|
25
|
+
4571,
|
|
26
26
|
'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "explicit".'
|
|
27
27
|
)),
|
|
28
28
|
( localize(
|
|
29
|
-
|
|
29
|
+
4572,
|
|
30
30
|
'Never triggers Code Actions on save. This value will be deprecated in favor of "never".'
|
|
31
31
|
))
|
|
32
32
|
],
|
|
@@ -39,14 +39,14 @@ const createNotebookCodeActionsAutoSave = (description) => {
|
|
|
39
39
|
type: ['string', 'boolean'],
|
|
40
40
|
enum: ['explicit', 'never', true, false],
|
|
41
41
|
enumDescriptions: [
|
|
42
|
-
( localize(
|
|
43
|
-
( localize(
|
|
42
|
+
( localize(4573, 'Triggers Code Actions only when explicitly saved.')),
|
|
43
|
+
( localize(4574, 'Never triggers Code Actions on save.')),
|
|
44
44
|
( localize(
|
|
45
|
-
|
|
45
|
+
4575,
|
|
46
46
|
'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "explicit".'
|
|
47
47
|
)),
|
|
48
48
|
( localize(
|
|
49
|
-
|
|
49
|
+
4576,
|
|
50
50
|
'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "never".'
|
|
51
51
|
))
|
|
52
52
|
],
|
|
@@ -68,7 +68,7 @@ const codeActionsOnSaveSchema = {
|
|
|
68
68
|
}
|
|
69
69
|
],
|
|
70
70
|
markdownDescription: ( localize(
|
|
71
|
-
|
|
71
|
+
4577,
|
|
72
72
|
'Run Code Actions for the editor on save. Code Actions must be specified and the editor must not be shutting down. Example: `"source.organizeImports": "explicit" `'
|
|
73
73
|
)),
|
|
74
74
|
type: ['object', 'array'],
|
|
@@ -99,7 +99,7 @@ const notebookCodeActionsOnSaveSchema = {
|
|
|
99
99
|
}
|
|
100
100
|
],
|
|
101
101
|
markdownDescription: ( localize(
|
|
102
|
-
|
|
102
|
+
4578,
|
|
103
103
|
'Run a series of Code Actions for a notebook on save. Code Actions must be specified, the file must not be saved after delay, and the editor must not be shutting down. Example: `"notebook.source.organizeImports": "explicit"`'
|
|
104
104
|
)),
|
|
105
105
|
type: 'object',
|
|
@@ -154,12 +154,12 @@ let CodeActionsContribution = class CodeActionsContribution extends Disposable {
|
|
|
154
154
|
for (const [sourceAction, props] of this.getSourceActions(codeActionContributions)) {
|
|
155
155
|
this.settings.add(sourceAction);
|
|
156
156
|
newProperties[sourceAction] = createCodeActionsAutoSave(( localize(
|
|
157
|
-
|
|
157
|
+
4579,
|
|
158
158
|
"Controls whether '{0}' actions should be run on file save.",
|
|
159
159
|
props.title
|
|
160
160
|
)));
|
|
161
161
|
newNotebookProperties[sourceAction] = createNotebookCodeActionsAutoSave(( localize(
|
|
162
|
-
|
|
162
|
+
4579,
|
|
163
163
|
"Controls whether '{0}' actions should be run on file save.",
|
|
164
164
|
props.title
|
|
165
165
|
)));
|
|
@@ -175,12 +175,12 @@ let CodeActionsContribution = class CodeActionsContribution extends Disposable {
|
|
|
175
175
|
for (const codeActionKind of this.settings) {
|
|
176
176
|
if (!properties[codeActionKind]) {
|
|
177
177
|
properties[codeActionKind] = createCodeActionsAutoSave(( localize(
|
|
178
|
-
|
|
178
|
+
4579,
|
|
179
179
|
"Controls whether '{0}' actions should be run on file save.",
|
|
180
180
|
codeActionKind
|
|
181
181
|
)));
|
|
182
182
|
notebookProperties[codeActionKind] = createNotebookCodeActionsAutoSave(( localize(
|
|
183
|
-
|
|
183
|
+
4579,
|
|
184
184
|
"Controls whether '{0}' actions should be run on file save.",
|
|
185
185
|
codeActionKind
|
|
186
186
|
)));
|
|
@@ -15,14 +15,14 @@ var CodeActionExtensionPointFields;
|
|
|
15
15
|
})(CodeActionExtensionPointFields || (CodeActionExtensionPointFields = {}))));
|
|
16
16
|
const codeActionsExtensionPointSchema = ( (Object.freeze({
|
|
17
17
|
type: 'array',
|
|
18
|
-
markdownDescription: ( localize(
|
|
18
|
+
markdownDescription: ( localize(4552, "Configure which editor to use for a resource.")),
|
|
19
19
|
items: {
|
|
20
20
|
type: 'object',
|
|
21
21
|
required: [CodeActionExtensionPointFields.languages, CodeActionExtensionPointFields.actions],
|
|
22
22
|
properties: {
|
|
23
23
|
[CodeActionExtensionPointFields.languages]: {
|
|
24
24
|
type: 'array',
|
|
25
|
-
description: ( localize(
|
|
25
|
+
description: ( localize(4553, "Language modes that the code actions are enabled for.")),
|
|
26
26
|
items: { type: 'string' }
|
|
27
27
|
},
|
|
28
28
|
[CodeActionExtensionPointFields.actions]: {
|
|
@@ -31,15 +31,15 @@ const codeActionsExtensionPointSchema = ( (Object.freeze({
|
|
|
31
31
|
properties: {
|
|
32
32
|
[CodeActionExtensionPointFields.kind]: {
|
|
33
33
|
type: 'string',
|
|
34
|
-
markdownDescription: ( localize(
|
|
34
|
+
markdownDescription: ( localize(4554, "`CodeActionKind` of the contributed code action.")),
|
|
35
35
|
},
|
|
36
36
|
[CodeActionExtensionPointFields.title]: {
|
|
37
37
|
type: 'string',
|
|
38
|
-
description: ( localize(
|
|
38
|
+
description: ( localize(4555, "Label for the code action used in the UI.")),
|
|
39
39
|
},
|
|
40
40
|
[CodeActionExtensionPointFields.description]: {
|
|
41
41
|
type: 'string',
|
|
42
|
-
description: ( localize(
|
|
42
|
+
description: ( localize(4556, "Description of what the code action does.")),
|
|
43
43
|
},
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -68,10 +68,10 @@ class CodeActionsTableRenderer extends Disposable {
|
|
|
68
68
|
contribution => ( (contribution.actions.map(action => ({ ...action, languages: contribution.languages }))))
|
|
69
69
|
))).flat();
|
|
70
70
|
const headers = [
|
|
71
|
-
( localize(
|
|
72
|
-
( localize(
|
|
73
|
-
( localize(
|
|
74
|
-
( localize(
|
|
71
|
+
( localize(4557, "Title")),
|
|
72
|
+
( localize(4558, "Kind")),
|
|
73
|
+
( localize(4559, "Description")),
|
|
74
|
+
( localize(4560, "Languages"))
|
|
75
75
|
];
|
|
76
76
|
const rows = ( (flatActions.sort((a, b) => a.title.localeCompare(b.title))
|
|
77
77
|
.map(action => {
|
|
@@ -93,7 +93,7 @@ class CodeActionsTableRenderer extends Disposable {
|
|
|
93
93
|
}
|
|
94
94
|
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
95
95
|
id: 'codeActions',
|
|
96
|
-
label: ( localize(
|
|
96
|
+
label: ( localize(4561, "Code Actions")),
|
|
97
97
|
access: {
|
|
98
98
|
canToggle: false,
|
|
99
99
|
},
|
|
@@ -10,14 +10,14 @@ var DocumentationExtensionPointFields;
|
|
|
10
10
|
)));
|
|
11
11
|
const documentationExtensionPointSchema = ( (Object.freeze({
|
|
12
12
|
type: 'object',
|
|
13
|
-
description: ( localize(
|
|
13
|
+
description: ( localize(4562, "Contributed documentation.")),
|
|
14
14
|
properties: {
|
|
15
15
|
'refactoring': {
|
|
16
16
|
type: 'array',
|
|
17
|
-
description: ( localize(
|
|
17
|
+
description: ( localize(4563, "Contributed documentation for refactorings.")),
|
|
18
18
|
items: {
|
|
19
19
|
type: 'object',
|
|
20
|
-
description: ( localize(
|
|
20
|
+
description: ( localize(4564, "Contributed documentation for refactoring.")),
|
|
21
21
|
required: [
|
|
22
22
|
DocumentationExtensionPointFields.title,
|
|
23
23
|
DocumentationExtensionPointFields.when,
|
|
@@ -26,15 +26,15 @@ const documentationExtensionPointSchema = ( (Object.freeze({
|
|
|
26
26
|
properties: {
|
|
27
27
|
[DocumentationExtensionPointFields.title]: {
|
|
28
28
|
type: 'string',
|
|
29
|
-
description: ( localize(
|
|
29
|
+
description: ( localize(4565, "Label for the documentation used in the UI.")),
|
|
30
30
|
},
|
|
31
31
|
[DocumentationExtensionPointFields.when]: {
|
|
32
32
|
type: 'string',
|
|
33
|
-
description: ( localize(
|
|
33
|
+
description: ( localize(4566, "When clause.")),
|
|
34
34
|
},
|
|
35
35
|
[DocumentationExtensionPointFields.command]: {
|
|
36
36
|
type: 'string',
|
|
37
|
-
description: ( localize(
|
|
37
|
+
description: ( localize(4567, "Command executed.")),
|
|
38
38
|
},
|
|
39
39
|
},
|
|
40
40
|
}
|
|
@@ -29,19 +29,19 @@ class DiffEditorAccessibilityHelp {
|
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
const switchSides = ( localize(
|
|
32
|
-
|
|
32
|
+
4516,
|
|
33
33
|
"Run the command Diff Editor: Switch Side{0} to toggle between the original and modified editors.",
|
|
34
34
|
'<keybinding:diffEditor.switchSide>'
|
|
35
35
|
));
|
|
36
36
|
const diffEditorActiveAnnouncement = ( localize(
|
|
37
|
-
|
|
37
|
+
4517,
|
|
38
38
|
"The setting, accessibility.verbosity.diffEditorActive, controls if a diff editor announcement is made when it becomes the active editor."
|
|
39
39
|
));
|
|
40
40
|
const keys = ['accessibility.signals.diffLineDeleted', 'accessibility.signals.diffLineInserted', 'accessibility.signals.diffLineModified'];
|
|
41
41
|
const content = [
|
|
42
|
-
( localize(
|
|
42
|
+
( localize(4518, "You are in a diff editor.")),
|
|
43
43
|
( localize(
|
|
44
|
-
|
|
44
|
+
4519,
|
|
45
45
|
"View the next{0} or previous{1} diff in diff review mode, which is optimized for screen readers.",
|
|
46
46
|
'<keybinding:' + AccessibleDiffViewerNext.id + '>',
|
|
47
47
|
'<keybinding:' + AccessibleDiffViewerPrev.id + '>'
|
|
@@ -49,7 +49,7 @@ class DiffEditorAccessibilityHelp {
|
|
|
49
49
|
switchSides,
|
|
50
50
|
diffEditorActiveAnnouncement,
|
|
51
51
|
( localize(
|
|
52
|
-
|
|
52
|
+
4520,
|
|
53
53
|
"To control which accessibility signals should be played, the following settings can be configured: {0}.",
|
|
54
54
|
keys.join(', ')
|
|
55
55
|
)),
|
|
@@ -32,7 +32,7 @@ let DiffEditorHelperContribution = class DiffEditorHelperContribution extends Di
|
|
|
32
32
|
const onlyWhiteSpaceChange = ( (computationResult.map(r => r && !r.identical && r.changes2.length === 0)));
|
|
33
33
|
this._register(autorunWithStore((reader, store) => {
|
|
34
34
|
if (onlyWhiteSpaceChange.read(reader)) {
|
|
35
|
-
const helperWidget = store.add(this._instantiationService.createInstance(FloatingEditorClickWidget, this._diffEditor.getModifiedEditor(), ( localize(
|
|
35
|
+
const helperWidget = store.add(this._instantiationService.createInstance(FloatingEditorClickWidget, this._diffEditor.getModifiedEditor(), ( localize(718, "Show Whitespace Differences")), null));
|
|
36
36
|
store.add(helperWidget.onClick(() => {
|
|
37
37
|
this._textResourceConfigurationService.updateValue(this._diffEditor.getModel().modified.uri, 'diffEditor.ignoreTrimWhitespace', false);
|
|
38
38
|
}));
|
|
@@ -43,11 +43,11 @@ let DiffEditorHelperContribution = class DiffEditorHelperContribution extends Di
|
|
|
43
43
|
const diffComputationResult = this._diffEditor.getDiffComputationResult();
|
|
44
44
|
if (diffComputationResult && diffComputationResult.quitEarly) {
|
|
45
45
|
this._notificationService.prompt(Severity$1.Warning, ( localize(
|
|
46
|
-
|
|
46
|
+
719,
|
|
47
47
|
"The diff algorithm was stopped early (after {0} ms.)",
|
|
48
48
|
this._diffEditor.maxComputationTime
|
|
49
49
|
)), [{
|
|
50
|
-
label: ( localize(
|
|
50
|
+
label: ( localize(720, "Remove Limit")),
|
|
51
51
|
run: () => {
|
|
52
52
|
this._textResourceConfigurationService.updateValue(this._diffEditor.getModel().modified.uri, 'diffEditor.maxComputationTime', 0);
|
|
53
53
|
}
|