@codingame/monaco-vscode-api 10.1.1 → 10.1.3
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/README.md +137 -332
- package/package.json +9 -9
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +1 -1
- package/vscode/src/vs/base/common/date.js +61 -61
- package/vscode/src/vs/base/common/errorMessage.js +6 -15
- package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
- package/vscode/src/vs/base/common/worker/simpleWorkerBootstrap.js +23 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +1 -1
- package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.js +4 -4
- 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/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +51 -51
- package/vscode/src/vs/editor/common/config/editorOptions.js +368 -368
- package/vscode/src/vs/editor/common/services/editorWorkerBootstrap.js +3 -8
- package/vscode/src/vs/editor/common/standaloneStrings.js +32 -32
- 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/codeAction/browser/codeAction.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/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- 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/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- 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/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- 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/platform/accessibilitySignal/browser/accessibilitySignalService.js +49 -49
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +3 -3
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- 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/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 +11 -7
- 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/files/common/files.js +6 -6
- 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/log/common/log.js +6 -6
- 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/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
- 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/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/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/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +25 -25
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/labels.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +41 -41
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +16 -16
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +61 -61
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
- package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +217 -217
- package/vscode/src/vs/workbench/common/configuration.js +10 -10
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.js +1 -1
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/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/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +65 -65
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +34 -34
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +63 -63
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
- 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 +52 -52
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +8 -8
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +19 -19
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +6 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +41 -41
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +21 -21
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
- 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/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/search/browser/searchActionsFind.js +10 -10
- 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/tasks/common/taskService.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +16 -16
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +15 -15
- 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/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/preferences/common/preferencesEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
- package/workers/editor.worker.js +1 -1
|
@@ -38,7 +38,7 @@ let ChatFollowups = class ChatFollowups extends Disposable {
|
|
|
38
38
|
else if (followup.kind === 'command') {
|
|
39
39
|
button.element.classList.add('interactive-followup-command');
|
|
40
40
|
}
|
|
41
|
-
button.element.ariaLabel = ( localize(
|
|
41
|
+
button.element.ariaLabel = ( localize(10699, "Follow up question: {0}", baseTitle));
|
|
42
42
|
button.label = ( (new MarkdownString(baseTitle)));
|
|
43
43
|
this._register(button.onDidClick(() => this.clickHandler(followup)));
|
|
44
44
|
}
|
|
@@ -140,7 +140,7 @@ registerAction2(class AddFileToChatAction extends Action2 {
|
|
|
140
140
|
super({
|
|
141
141
|
id: AddFileToChatAction.id,
|
|
142
142
|
title: {
|
|
143
|
-
...( localize2(
|
|
143
|
+
...( localize2(10742, "Add File to Chat")),
|
|
144
144
|
},
|
|
145
145
|
menu: [{
|
|
146
146
|
id: MenuId.ChatInlineResourceAnchorContext,
|
|
@@ -166,8 +166,8 @@ registerAction2(class GoToDefinitionAction extends Action2 {
|
|
|
166
166
|
super({
|
|
167
167
|
id: GoToDefinitionAction.id,
|
|
168
168
|
title: {
|
|
169
|
-
...( localize2(
|
|
170
|
-
mnemonicTitle: ( localize(
|
|
169
|
+
...( localize2(10743, "Go to Definition")),
|
|
170
|
+
mnemonicTitle: ( localize(10744, "Go to &&Definition")),
|
|
171
171
|
},
|
|
172
172
|
precondition: EditorContextKeys.hasDefinitionProvider,
|
|
173
173
|
menu: [{
|
|
@@ -200,8 +200,8 @@ registerAction2(class GoToReferencesAction extends Action2 {
|
|
|
200
200
|
super({
|
|
201
201
|
id: GoToReferencesAction.id,
|
|
202
202
|
title: {
|
|
203
|
-
...( localize2(
|
|
204
|
-
mnemonicTitle: ( localize(
|
|
203
|
+
...( localize2(10745, "Go to References")),
|
|
204
|
+
mnemonicTitle: ( localize(10746, "Go to &&References")),
|
|
205
205
|
},
|
|
206
206
|
precondition: EditorContextKeys.hasReferenceProvider,
|
|
207
207
|
menu: [{
|
|
@@ -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
|
+
7176,
|
|
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
|
+
7177,
|
|
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(7178, "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(7179, "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
|
+
7180,
|
|
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(7181, "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(7182, "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(7183, "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(7184, '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(7185, "1 file changed"))
|
|
680
|
+
: ( localize(7186, "{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(7187, "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
|
+
7188,
|
|
314
314
|
"used {0} [[(rerun without)]]",
|
|
315
315
|
`${chatSubcommandLeader}${element.slashCommand.name}`
|
|
316
|
-
)) : ( localize(
|
|
316
|
+
)) : ( localize(7189, "[[(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(7190, '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(7191, "Suggested incorrect code")),
|
|
778
|
+
[ChatAgentVoteDownReason.DidNotFollowInstructions]: ( localize(7192, "Didn't follow instructions")),
|
|
779
|
+
[ChatAgentVoteDownReason.MissingContext]: ( localize(7193, "Missing context")),
|
|
780
|
+
[ChatAgentVoteDownReason.OffensiveOrUnsafe]: ( localize(7194, "Offensive or unsafe")),
|
|
781
|
+
[ChatAgentVoteDownReason.PoorlyWrittenOrFormatted]: ( localize(7195, "Poorly written or formatted")),
|
|
782
|
+
[ChatAgentVoteDownReason.RefusedAValidRequest]: ( localize(7196, "Refused a valid request")),
|
|
783
|
+
[ChatAgentVoteDownReason.IncompleteCode]: ( localize(7197, "Incomplete code")),
|
|
784
|
+
[ChatAgentVoteDownReason.WillReportIssue]: ( localize(7198, "Report an issue")),
|
|
785
|
+
[ChatAgentVoteDownReason.Other]: ( localize(7199, "Other")),
|
|
786
786
|
};
|
|
787
787
|
let ChatVoteDownButton = class ChatVoteDownButton extends DropdownMenuActionViewItem {
|
|
788
788
|
constructor(action, options, commandService, issueService, logService, contextMenuService) {
|
|
@@ -358,7 +358,7 @@ let ChatWidget = class ChatWidget extends Disposable {
|
|
|
358
358
|
const messageResult = this._register(renderer.render(welcomeContent.message));
|
|
359
359
|
append(message, messageResult.element);
|
|
360
360
|
const tipsString = ( (new MarkdownString(( localize(
|
|
361
|
-
|
|
361
|
+
3153,
|
|
362
362
|
"{0} to attach context\n\n{1} to chat with extensions",
|
|
363
363
|
'$(attach)',
|
|
364
364
|
'$(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(10719, '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(10720, 'Toolbar for code block which can be reached via tab')) : ( localize(10721, '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(10722, "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(10723, "{0} vulnerabilities", this.currentCodeBlockData.vulns.length)) :
|
|
337
|
+
( localize(10724, "{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(10719, '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(10725, 'Original')),
|
|
483
|
+
modifiedAriaLabel: ( localize(10726, '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(10720, 'Toolbar for code block which can be reached via tab')) : ( localize(10721, '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(10727, "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(10728, "Made 1 change in [[``{0}``]]", uriLabel));
|
|
583
583
|
}
|
|
584
584
|
else if (data.edit.state.applied < 0) {
|
|
585
|
-
template = ( localize(
|
|
585
|
+
template = ( localize(10729, "Edits in [[``{0}``]] have been rejected", uriLabel));
|
|
586
586
|
}
|
|
587
587
|
else {
|
|
588
588
|
template = ( localize(
|
|
589
|
-
|
|
589
|
+
10730,
|
|
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(10731, "The original file has been modified.")),
|
|
717
|
+
detail: ( localize(10732, "Do you want to apply the changes anyway?")),
|
|
718
718
|
});
|
|
719
719
|
if (!result.confirmed) {
|
|
720
720
|
return false;
|
|
@@ -110,9 +110,9 @@ function isSelectAndInsertFileActionContext(context) {
|
|
|
110
110
|
class SelectAndInsertFileAction extends Action2 {
|
|
111
111
|
static { this.Name = 'files'; }
|
|
112
112
|
static { this.Item = {
|
|
113
|
-
label: ( localize(
|
|
113
|
+
label: ( localize(7140, 'All Files')),
|
|
114
114
|
description: ( localize(
|
|
115
|
-
|
|
115
|
+
7141,
|
|
116
116
|
'Search for relevant files in the workspace and provide context from them'
|
|
117
117
|
)),
|
|
118
118
|
}; }
|
|
@@ -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(7380, "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(7245, '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(7246, 'The background color of a chat request.')));
|
|
16
|
+
const chatSlashCommandBackground = registerColor('chat.slashCommandBackground', { dark: '#34414b8f', light: '#d2ecff99', hcDark: Color.white, hcLight: badgeBackground }, ( localize(7247, 'The background color of a chat slash command.')));
|
|
17
|
+
const chatSlashCommandForeground = registerColor('chat.slashCommandForeground', { dark: '#40A6FF', light: '#306CA2', hcDark: Color.black, hcLight: badgeForeground }, ( localize(7248, 'The foreground color of a chat slash command.')));
|
|
18
|
+
registerColor('chat.avatarBackground', { dark: '#1f1f1f', light: '#f2f2f2', hcDark: Color.black, hcLight: Color.white, }, ( localize(7249, 'The background color of a chat avatar.')));
|
|
19
|
+
registerColor('chat.avatarForeground', foreground, ( localize(7250, '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
|
+
7142,
|
|
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(7143, "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(7144, "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(7145, "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(7146, "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(7147, "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(7148, "The chat item is a response.")) })));
|
|
37
|
+
const CONTEXT_REQUEST = ( (new RawContextKey('chatRequest', false, { type: 'boolean', description: ( localize(7149, "The chat item is a request")) })));
|
|
38
|
+
const CONTEXT_ITEM_ID = ( (new RawContextKey('chatItemId', '', { type: 'string', description: ( localize(7150, "The id of the chat item.")) })));
|
|
39
|
+
const CONTEXT_LAST_ITEM_ID = ( (new RawContextKey('chatLastItemId', [], { type: 'string', description: ( localize(7151, "The id of the last chat item.")) })));
|
|
40
|
+
const CONTEXT_CHAT_EDIT_APPLIED = ( (new RawContextKey('chatEditApplied', false, { type: 'boolean', description: ( localize(7152, "True when the chat text edits have been applied.")) })));
|
|
41
|
+
const CONTEXT_CHAT_INPUT_HAS_TEXT = ( (new RawContextKey('chatInputHasText', false, { type: 'boolean', description: ( localize(7153, "True when the chat input has text.")) })));
|
|
42
|
+
const CONTEXT_CHAT_INPUT_HAS_FOCUS = ( (new RawContextKey('chatInputHasFocus', false, { type: 'boolean', description: ( localize(7154, "True when the chat input has focus.")) })));
|
|
43
|
+
const CONTEXT_IN_CHAT_INPUT = ( (new RawContextKey('inChatInput', false, { type: 'boolean', description: ( localize(7155, "True when focus is in the chat input, false otherwise.")) })));
|
|
44
|
+
const CONTEXT_IN_CHAT_SESSION = ( (new RawContextKey('inChat', false, { type: 'boolean', description: ( localize(7156, "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
|
+
7157,
|
|
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(7158, "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
|
+
7159,
|
|
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(7160, "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(7161, "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
|
+
7162,
|
|
76
76
|
"True when the current chat participant supports picking the model manually."
|
|
77
77
|
)) }
|
|
78
78
|
)));
|
|
@@ -179,7 +179,7 @@ class Response extends Disposable {
|
|
|
179
179
|
return part.command.title;
|
|
180
180
|
}
|
|
181
181
|
else if (part.kind === 'textEditGroup') {
|
|
182
|
-
return ( localize(
|
|
182
|
+
return ( localize(7200, "Made changes."));
|
|
183
183
|
}
|
|
184
184
|
else if (part.kind === 'progressMessage' || part.kind === 'codeblockUri' || part.kind === 'toolInvocation' || part.kind === 'toolInvocationSerialized') {
|
|
185
185
|
return '';
|
|
@@ -845,8 +845,8 @@ function getCodeCitationsMessage(citations) {
|
|
|
845
845
|
}
|
|
846
846
|
const licenseTypes = citations.reduce((set, c) => set.add(c.license), ( (new Set())));
|
|
847
847
|
const label = licenseTypes.size === 1 ?
|
|
848
|
-
( localize(
|
|
849
|
-
( localize(
|
|
848
|
+
( localize(7201, "Similar code found with 1 license type", licenseTypes.size)) :
|
|
849
|
+
( localize(7202, "Similar code found with {0} license types", licenseTypes.size));
|
|
850
850
|
return label;
|
|
851
851
|
}
|
|
852
852
|
export { ChatModel, ChatModelInitState, ChatRequestModel, ChatResponseModel, Response, appendMarkdownString, canMergeMarkdownStrings, getCodeCitationsMessage, isChatRequestVariableEntry, isExportableSessionData, isSerializableSessionData, normalizeSerializableChatData, toChatHistoryContent, updateRanges };
|
|
@@ -16,17 +16,17 @@ const createCodeActionsAutoSave = (description) => {
|
|
|
16
16
|
enum: ['always', 'explicit', 'never', true, false],
|
|
17
17
|
enumDescriptions: [
|
|
18
18
|
( localize(
|
|
19
|
-
|
|
19
|
+
4544,
|
|
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(4545, 'Triggers Code Actions only when explicitly saved')),
|
|
23
|
+
( localize(4546, 'Never triggers Code Actions on save')),
|
|
24
24
|
( localize(
|
|
25
|
-
|
|
25
|
+
4547,
|
|
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
|
+
4548,
|
|
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(4549, 'Triggers Code Actions only when explicitly saved.')),
|
|
43
|
+
( localize(4550, 'Never triggers Code Actions on save.')),
|
|
44
44
|
( localize(
|
|
45
|
-
|
|
45
|
+
4551,
|
|
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
|
+
4552,
|
|
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
|
+
4553,
|
|
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
|
+
4554,
|
|
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
|
+
4555,
|
|
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
|
+
4555,
|
|
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
|
+
4555,
|
|
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
|
+
4555,
|
|
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(4528, "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(4529, "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(4530, "`CodeActionKind` of the contributed code action.")),
|
|
35
35
|
},
|
|
36
36
|
[CodeActionExtensionPointFields.title]: {
|
|
37
37
|
type: 'string',
|
|
38
|
-
description: ( localize(
|
|
38
|
+
description: ( localize(4531, "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(4532, "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(4533, "Title")),
|
|
72
|
+
( localize(4534, "Kind")),
|
|
73
|
+
( localize(4535, "Description")),
|
|
74
|
+
( localize(4536, "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(4537, "Code Actions")),
|
|
97
97
|
access: {
|
|
98
98
|
canToggle: false,
|
|
99
99
|
},
|