@codingame/monaco-vscode-api 10.0.1 → 10.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.js +1 -1
- package/missing-services.js +7062 -1575
- package/monaco.d.ts +1 -1
- package/monaco.js +1 -1
- package/package.json +8 -8
- package/services.js +2 -2
- package/vscode/src/vs/base/browser/ui/button/button.js +1 -1
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +6 -6
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +3 -3
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -2
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +6 -6
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +9 -9
- package/vscode/src/vs/base/common/date.js +61 -61
- package/vscode/src/vs/base/common/errorMessage.js +15 -6
- package/vscode/src/vs/base/common/errors.d.ts +3 -1
- package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +1 -1
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +1 -1
- 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/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +7 -7
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +51 -51
- package/vscode/src/vs/editor/common/config/editorOptions.js +368 -368
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +32 -32
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/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/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/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- 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/wordHighlighter/browser/wordHighlighter.js +42 -23
- 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/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/contextkeys.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 -11
- 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/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/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +2 -2
- package/vscode/src/vs/platform/request/common/request.js +14 -14
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/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/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/layoutActions.js +129 -129
- 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/binaryDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +41 -41
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +131 -131
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +61 -61
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +17 -17
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -7
- 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/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
- 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/common/chatModel.js +10 -1
- 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/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/commentReply.js +4 -4
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugExpressionRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +63 -63
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +173 -173
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +52 -52
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +11 -9
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
- 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/inlineChatController.js +6 -6
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/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/cellOperations.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +10 -10
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +50 -50
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
- 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/terminalContrib/chat/browser/terminalChatController.js +1 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/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/webviewPanel/browser/webviewEditor.js +1 -1
- 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/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +15 -15
- 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/keybindingsEditorModel.js +7 -7
- 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/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
|
@@ -34,10 +34,10 @@ import { SuggestController } from '../../../../../editor/contrib/suggest/browser
|
|
|
34
34
|
function isChatViewTitleActionContext(obj) {
|
|
35
35
|
return obj instanceof Object && 'chatView' in obj;
|
|
36
36
|
}
|
|
37
|
-
const CHAT_CATEGORY = ( localize2(
|
|
37
|
+
const CHAT_CATEGORY = ( localize2(4770, 'Chat'));
|
|
38
38
|
const CHAT_OPEN_ACTION_ID = 'workbench.action.chat.open';
|
|
39
39
|
class OpenChatGlobalAction extends Action2 {
|
|
40
|
-
static { this.TITLE = ( localize2(
|
|
40
|
+
static { this.TITLE = ( localize2(4771, "Open Chat")); }
|
|
41
41
|
constructor() {
|
|
42
42
|
super({
|
|
43
43
|
id: CHAT_OPEN_ACTION_ID,
|
|
@@ -86,7 +86,7 @@ class ChatHistoryAction extends Action2 {
|
|
|
86
86
|
constructor() {
|
|
87
87
|
super({
|
|
88
88
|
id: `workbench.action.chat.history`,
|
|
89
|
-
title: ( localize2(
|
|
89
|
+
title: ( localize2(4772, "Show Chats...")),
|
|
90
90
|
menu: {
|
|
91
91
|
id: MenuId.ViewTitle,
|
|
92
92
|
when: ( (ContextKeyExpr.equals('view', CHAT_VIEW_ID))),
|
|
@@ -107,15 +107,15 @@ class ChatHistoryAction extends Action2 {
|
|
|
107
107
|
const showPicker = () => {
|
|
108
108
|
const openInEditorButton = {
|
|
109
109
|
iconClass: ThemeIcon.asClassName(Codicon.file),
|
|
110
|
-
tooltip: ( localize(
|
|
110
|
+
tooltip: ( localize(4773, "Open in Editor")),
|
|
111
111
|
};
|
|
112
112
|
const deleteButton = {
|
|
113
113
|
iconClass: ThemeIcon.asClassName(Codicon.x),
|
|
114
|
-
tooltip: ( localize(
|
|
114
|
+
tooltip: ( localize(4774, "Delete")),
|
|
115
115
|
};
|
|
116
116
|
const renameButton = {
|
|
117
117
|
iconClass: ThemeIcon.asClassName(Codicon.pencil),
|
|
118
|
-
tooltip: ( localize(
|
|
118
|
+
tooltip: ( localize(4775, "Rename")),
|
|
119
119
|
};
|
|
120
120
|
const getPicks = () => {
|
|
121
121
|
const items = chatService.getHistory();
|
|
@@ -131,7 +131,7 @@ class ChatHistoryAction extends Action2 {
|
|
|
131
131
|
separator,
|
|
132
132
|
{
|
|
133
133
|
label: i.title,
|
|
134
|
-
description: i.isActive ? `(${( localize(
|
|
134
|
+
description: i.isActive ? `(${( localize(4776, 'current'))})` : '',
|
|
135
135
|
chat: i,
|
|
136
136
|
buttons: i.isActive ? [renameButton] : [
|
|
137
137
|
renameButton,
|
|
@@ -145,7 +145,7 @@ class ChatHistoryAction extends Action2 {
|
|
|
145
145
|
};
|
|
146
146
|
const store = ( (new DisposableStore()));
|
|
147
147
|
const picker = store.add(quickInputService.createQuickPick({ useSeparators: true }));
|
|
148
|
-
picker.placeholder = ( localize(
|
|
148
|
+
picker.placeholder = ( localize(4777, "Switch to chat"));
|
|
149
149
|
const picks = getPicks();
|
|
150
150
|
picker.items = picks;
|
|
151
151
|
store.add(picker.onDidTriggerItemButton(async (context) => {
|
|
@@ -159,7 +159,7 @@ class ChatHistoryAction extends Action2 {
|
|
|
159
159
|
picker.items = getPicks();
|
|
160
160
|
}
|
|
161
161
|
else if (context.button === renameButton) {
|
|
162
|
-
const title = await quickInputService.input({ title: ( localize(
|
|
162
|
+
const title = await quickInputService.input({ title: ( localize(4778, "New chat title")), value: context.item.chat.title });
|
|
163
163
|
if (title) {
|
|
164
164
|
chatService.setChatSessionTitle(context.item.chat.sessionId, title);
|
|
165
165
|
}
|
|
@@ -187,7 +187,7 @@ class OpenChatEditorAction extends Action2 {
|
|
|
187
187
|
constructor() {
|
|
188
188
|
super({
|
|
189
189
|
id: `workbench.action.openChat`,
|
|
190
|
-
title: ( localize2(
|
|
190
|
+
title: ( localize2(4779, "Open Editor")),
|
|
191
191
|
f1: true,
|
|
192
192
|
category: CHAT_CATEGORY,
|
|
193
193
|
precondition: CONTEXT_CHAT_ENABLED
|
|
@@ -202,7 +202,7 @@ class ChatAddAction extends Action2 {
|
|
|
202
202
|
constructor() {
|
|
203
203
|
super({
|
|
204
204
|
id: 'workbench.action.chat.addParticipant',
|
|
205
|
-
title: ( localize2(
|
|
205
|
+
title: ( localize2(4780, "Chat with Extension")),
|
|
206
206
|
icon: Codicon.mention,
|
|
207
207
|
f1: false,
|
|
208
208
|
category: CHAT_CATEGORY,
|
|
@@ -246,7 +246,7 @@ function registerChatActions() {
|
|
|
246
246
|
constructor() {
|
|
247
247
|
super({
|
|
248
248
|
id: 'workbench.action.chat.clearInputHistory',
|
|
249
|
-
title: ( localize2(
|
|
249
|
+
title: ( localize2(4781, "Clear Input History")),
|
|
250
250
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
251
251
|
category: CHAT_CATEGORY,
|
|
252
252
|
f1: true,
|
|
@@ -261,7 +261,7 @@ function registerChatActions() {
|
|
|
261
261
|
constructor() {
|
|
262
262
|
super({
|
|
263
263
|
id: 'workbench.action.chat.clearHistory',
|
|
264
|
-
title: ( localize2(
|
|
264
|
+
title: ( localize2(4782, "Clear All Workspace Chats")),
|
|
265
265
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
266
266
|
category: CHAT_CATEGORY,
|
|
267
267
|
f1: true,
|
|
@@ -289,7 +289,7 @@ function registerChatActions() {
|
|
|
289
289
|
constructor() {
|
|
290
290
|
super({
|
|
291
291
|
id: 'chat.action.focus',
|
|
292
|
-
title: ( localize2(
|
|
292
|
+
title: ( localize2(4783, 'Focus Chat List')),
|
|
293
293
|
precondition: ( (ContextKeyExpr.and(CONTEXT_IN_CHAT_INPUT))),
|
|
294
294
|
category: CHAT_CATEGORY,
|
|
295
295
|
keybinding: [
|
|
@@ -329,7 +329,7 @@ function registerChatActions() {
|
|
|
329
329
|
constructor() {
|
|
330
330
|
super({
|
|
331
331
|
id: 'workbench.action.chat.focusInput',
|
|
332
|
-
title: ( localize2(
|
|
332
|
+
title: ( localize2(4784, "Focus Chat Input")),
|
|
333
333
|
f1: false,
|
|
334
334
|
keybinding: [
|
|
335
335
|
{
|
|
@@ -369,7 +369,7 @@ function stringifyItem(item, includeName = true) {
|
|
|
369
369
|
}
|
|
370
370
|
MenuRegistry.appendMenuItem(MenuId.CommandCenter, {
|
|
371
371
|
submenu: MenuId.ChatCommandCenter,
|
|
372
|
-
title: ( localize(
|
|
372
|
+
title: ( localize(4785, "Chat")),
|
|
373
373
|
icon: Codicon.commentDiscussion,
|
|
374
374
|
when: ( (ContextKeyExpr.and(
|
|
375
375
|
CONTEXT_CHAT_ENABLED,
|
|
@@ -392,7 +392,7 @@ let ChatCommandCenterRendering = class ChatCommandCenterRendering {
|
|
|
392
392
|
}
|
|
393
393
|
const dropdownAction = toAction({
|
|
394
394
|
id: agent.id,
|
|
395
|
-
label: ( localize(
|
|
395
|
+
label: ( localize(4786, "More...")),
|
|
396
396
|
run() { }
|
|
397
397
|
});
|
|
398
398
|
const primaryAction = instantiationService.createInstance(MenuItemAction, {
|
|
@@ -13,7 +13,7 @@ class SubmitAction extends Action2 {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
15
|
id: SubmitAction.ID,
|
|
16
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(7331, "Send")),
|
|
17
17
|
f1: false,
|
|
18
18
|
category: CHAT_CATEGORY,
|
|
19
19
|
icon: Codicon.send,
|
|
@@ -51,7 +51,7 @@ const ChatModelPickerActionId = 'workbench.action.chat.pickModel';
|
|
|
51
51
|
MenuRegistry.appendMenuItem(MenuId.ChatExecute, {
|
|
52
52
|
command: {
|
|
53
53
|
id: ChatModelPickerActionId,
|
|
54
|
-
title: ( localize2(
|
|
54
|
+
title: ( localize2(7332, "Pick Model")),
|
|
55
55
|
},
|
|
56
56
|
order: 3,
|
|
57
57
|
group: 'navigation',
|
|
@@ -66,7 +66,7 @@ class ChatSubmitSecondaryAgentAction extends Action2 {
|
|
|
66
66
|
constructor() {
|
|
67
67
|
super({
|
|
68
68
|
id: ChatSubmitSecondaryAgentAction.ID,
|
|
69
|
-
title: ( localize2(
|
|
69
|
+
title: ( localize2(7333, "Submit to Secondary Agent")),
|
|
70
70
|
precondition: ( (ContextKeyExpr.and(
|
|
71
71
|
CONTEXT_CHAT_INPUT_HAS_TEXT,
|
|
72
72
|
(CONTEXT_CHAT_INPUT_HAS_AGENT.negate()),
|
|
@@ -108,7 +108,7 @@ class SendToNewChatAction extends Action2 {
|
|
|
108
108
|
constructor() {
|
|
109
109
|
super({
|
|
110
110
|
id: 'workbench.action.chat.sendToNewChat',
|
|
111
|
-
title: ( localize2(
|
|
111
|
+
title: ( localize2(7334, "Send to New Chat")),
|
|
112
112
|
precondition: ( (ContextKeyExpr.and(
|
|
113
113
|
(CONTEXT_CHAT_REQUEST_IN_PROGRESS.negate()),
|
|
114
114
|
CONTEXT_CHAT_INPUT_HAS_TEXT
|
|
@@ -142,7 +142,7 @@ class CancelAction extends Action2 {
|
|
|
142
142
|
constructor() {
|
|
143
143
|
super({
|
|
144
144
|
id: CancelAction.ID,
|
|
145
|
-
title: ( localize2(
|
|
145
|
+
title: ( localize2(7335, "Cancel")),
|
|
146
146
|
f1: false,
|
|
147
147
|
category: CHAT_CATEGORY,
|
|
148
148
|
icon: Codicon.stopCircle,
|
|
@@ -15,7 +15,7 @@ function registerQuickChatActions() {
|
|
|
15
15
|
constructor() {
|
|
16
16
|
super({
|
|
17
17
|
id: 'workbench.action.quickchat.openInChatView',
|
|
18
|
-
title: ( localize2(
|
|
18
|
+
title: ( localize2(4787, "Open in Chat View")),
|
|
19
19
|
f1: false,
|
|
20
20
|
category: CHAT_CATEGORY,
|
|
21
21
|
icon: Codicon.commentDiscussion,
|
|
@@ -35,7 +35,7 @@ function registerQuickChatActions() {
|
|
|
35
35
|
constructor() {
|
|
36
36
|
super({
|
|
37
37
|
id: 'workbench.action.quickchat.close',
|
|
38
|
-
title: ( localize2(
|
|
38
|
+
title: ( localize2(4788, "Close Quick Chat")),
|
|
39
39
|
f1: false,
|
|
40
40
|
category: CHAT_CATEGORY,
|
|
41
41
|
icon: Codicon.close,
|
|
@@ -55,7 +55,7 @@ function registerQuickChatActions() {
|
|
|
55
55
|
constructor() {
|
|
56
56
|
super({
|
|
57
57
|
id: 'workbench.action.quickchat.launchInlineChat',
|
|
58
|
-
title: ( localize2(
|
|
58
|
+
title: ( localize2(4789, "Launch Inline Chat")),
|
|
59
59
|
f1: false,
|
|
60
60
|
category: CHAT_CATEGORY
|
|
61
61
|
});
|
|
@@ -83,7 +83,7 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
83
83
|
constructor() {
|
|
84
84
|
super({
|
|
85
85
|
id: ASK_QUICK_QUESTION_ACTION_ID,
|
|
86
|
-
title: ( localize2(
|
|
86
|
+
title: ( localize2(4790, 'Quick Chat')),
|
|
87
87
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
88
88
|
icon: Codicon.commentDiscussion,
|
|
89
89
|
f1: false,
|
|
@@ -101,7 +101,7 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
101
101
|
order: 5
|
|
102
102
|
},
|
|
103
103
|
metadata: {
|
|
104
|
-
description: ( localize(
|
|
104
|
+
description: ( localize(4791, 'Toggle the quick chat')),
|
|
105
105
|
args: [{
|
|
106
106
|
name: 'args',
|
|
107
107
|
schema: {
|
|
@@ -111,18 +111,18 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
111
111
|
required: ['query'],
|
|
112
112
|
properties: {
|
|
113
113
|
query: {
|
|
114
|
-
description: ( localize(
|
|
114
|
+
description: ( localize(4792, "The query to open the quick chat with")),
|
|
115
115
|
type: 'string'
|
|
116
116
|
},
|
|
117
117
|
isPartialQuery: {
|
|
118
|
-
description: ( localize(
|
|
118
|
+
description: ( localize(4793, "Whether the query is partial; it will wait for more user input")),
|
|
119
119
|
type: 'boolean'
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
type: 'string',
|
|
125
|
-
description: ( localize(
|
|
125
|
+
description: ( localize(4792, "The query to open the quick chat with"))
|
|
126
126
|
}
|
|
127
127
|
]
|
|
128
128
|
}
|
|
@@ -152,7 +152,7 @@ class AskQuickChatAction extends Action2 {
|
|
|
152
152
|
super({
|
|
153
153
|
id: `workbench.action.openQuickChat`,
|
|
154
154
|
category: CHAT_CATEGORY,
|
|
155
|
-
title: ( localize2(
|
|
155
|
+
title: ( localize2(4794, "Open Quick Chat")),
|
|
156
156
|
f1: true
|
|
157
157
|
});
|
|
158
158
|
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js
CHANGED
|
@@ -50,30 +50,30 @@ let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Dispos
|
|
|
50
50
|
const friendlyName = `${fileBasename} ${fileDirname}`;
|
|
51
51
|
if (isAttachmentOmitted) {
|
|
52
52
|
ariaLabel = range ? ( localize(
|
|
53
|
-
|
|
53
|
+
10702,
|
|
54
54
|
"Omitted: {0}, line {1} to line {2}.",
|
|
55
55
|
friendlyName,
|
|
56
56
|
range.startLineNumber,
|
|
57
57
|
range.endLineNumber
|
|
58
|
-
)) : ( localize(
|
|
58
|
+
)) : ( localize(10703, "Omitted: {0}.", friendlyName));
|
|
59
59
|
}
|
|
60
60
|
else if (isAttachmentPartialOrOmitted) {
|
|
61
61
|
ariaLabel = range ? ( localize(
|
|
62
|
-
|
|
62
|
+
10704,
|
|
63
63
|
"Partially attached: {0}, line {1} to line {2}.",
|
|
64
64
|
friendlyName,
|
|
65
65
|
range.startLineNumber,
|
|
66
66
|
range.endLineNumber
|
|
67
|
-
)) : ( localize(
|
|
67
|
+
)) : ( localize(10705, "Partially attached: {0}.", friendlyName));
|
|
68
68
|
}
|
|
69
69
|
else {
|
|
70
70
|
ariaLabel = range ? ( localize(
|
|
71
|
-
|
|
71
|
+
10706,
|
|
72
72
|
"Attached: {0}, line {1} to line {2}.",
|
|
73
73
|
friendlyName,
|
|
74
74
|
range.startLineNumber,
|
|
75
75
|
range.endLineNumber
|
|
76
|
-
)) : ( localize(
|
|
76
|
+
)) : ( localize(10707, "Attached: {0}.", friendlyName));
|
|
77
77
|
}
|
|
78
78
|
hoverElement = file.fsPath;
|
|
79
79
|
label.setFile(file, {
|
|
@@ -84,7 +84,7 @@ let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Dispos
|
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
else if (attachment.isImage) {
|
|
87
|
-
ariaLabel = ( localize(
|
|
87
|
+
ariaLabel = ( localize(10708, "Attached image, {0}", attachment.name));
|
|
88
88
|
hoverElement = $('div.chat-attached-context-hover');
|
|
89
89
|
hoverElement.setAttribute('aria-label', ariaLabel);
|
|
90
90
|
const pillIcon = $('div.chat-attached-context-pill', {}, $('span.codicon.codicon-file-media'));
|
|
@@ -112,7 +112,7 @@ let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Dispos
|
|
|
112
112
|
const withIcon = attachment.icon?.id ? `$(${attachment.icon.id}) ${attachmentLabel}` : attachmentLabel;
|
|
113
113
|
label.setLabel(withIcon, correspondingContentReference?.options?.status?.description);
|
|
114
114
|
hoverElement = attachmentLabel;
|
|
115
|
-
ariaLabel = ( localize(
|
|
115
|
+
ariaLabel = ( localize(10709, "Attached context: {0}.", attachment.name));
|
|
116
116
|
}
|
|
117
117
|
if (isAttachmentPartialOrOmitted) {
|
|
118
118
|
widget.classList.add('warning');
|
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(10710, "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`
|
|
@@ -87,7 +87,13 @@ class Response extends Disposable {
|
|
|
87
87
|
this._responseRepr = '';
|
|
88
88
|
this._markdownContent = '';
|
|
89
89
|
this._citations = [];
|
|
90
|
-
|
|
90
|
+
const valueArr = asArray(value).filter(v => {
|
|
91
|
+
if ('kind' in v && v.kind === 'inlineReference' && !( (Object.keys(v.inlineReference))).length) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
return true;
|
|
95
|
+
});
|
|
96
|
+
this._responseParts = ( (valueArr.map((v) => (isMarkdownString(v) ?
|
|
91
97
|
{ content: v, kind: 'markdownContent' } :
|
|
92
98
|
'kind' in v ? v : { kind: 'treeData', treeData: v }))));
|
|
93
99
|
this._updateRepr(true);
|
|
@@ -103,6 +109,9 @@ class Response extends Disposable {
|
|
|
103
109
|
this._updateRepr(true);
|
|
104
110
|
}
|
|
105
111
|
updateContent(progress, quiet) {
|
|
112
|
+
if (progress.kind === 'inlineReference' && !( (Object.keys(progress.inlineReference))).length) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
106
115
|
if (progress.kind === 'markdownContent') {
|
|
107
116
|
const responsePartLength = this._responseParts.length - 1;
|
|
108
117
|
const lastResponsePart = this._responseParts[responsePartLength];
|
|
@@ -16,17 +16,17 @@ const createCodeActionsAutoSave = (description) => {
|
|
|
16
16
|
enum: ['always', 'explicit', 'never', true, false],
|
|
17
17
|
enumDescriptions: [
|
|
18
18
|
( localize(
|
|
19
|
-
|
|
19
|
+
4633,
|
|
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(4634, 'Triggers Code Actions only when explicitly saved')),
|
|
23
|
+
( localize(4635, 'Never triggers Code Actions on save')),
|
|
24
24
|
( localize(
|
|
25
|
-
|
|
25
|
+
4636,
|
|
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
|
+
4637,
|
|
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(4638, 'Triggers Code Actions only when explicitly saved.')),
|
|
43
|
+
( localize(4639, 'Never triggers Code Actions on save.')),
|
|
44
44
|
( localize(
|
|
45
|
-
|
|
45
|
+
4640,
|
|
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
|
+
4641,
|
|
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
|
+
4642,
|
|
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
|
+
4643,
|
|
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
|
+
4644,
|
|
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
|
+
4644,
|
|
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
|
+
4644,
|
|
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
|
+
4644,
|
|
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(4617, "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(4618, "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(4619, "`CodeActionKind` of the contributed code action.")),
|
|
35
35
|
},
|
|
36
36
|
[CodeActionExtensionPointFields.title]: {
|
|
37
37
|
type: 'string',
|
|
38
|
-
description: ( localize(
|
|
38
|
+
description: ( localize(4620, "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(4621, "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(4622, "Title")),
|
|
72
|
+
( localize(4623, "Kind")),
|
|
73
|
+
( localize(4624, "Description")),
|
|
74
|
+
( localize(4625, "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(4626, "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(4627, "Contributed documentation.")),
|
|
14
14
|
properties: {
|
|
15
15
|
'refactoring': {
|
|
16
16
|
type: 'array',
|
|
17
|
-
description: ( localize(
|
|
17
|
+
description: ( localize(4628, "Contributed documentation for refactorings.")),
|
|
18
18
|
items: {
|
|
19
19
|
type: 'object',
|
|
20
|
-
description: ( localize(
|
|
20
|
+
description: ( localize(4629, "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(4630, "Label for the documentation used in the UI.")),
|
|
30
30
|
},
|
|
31
31
|
[DocumentationExtensionPointFields.when]: {
|
|
32
32
|
type: 'string',
|
|
33
|
-
description: ( localize(
|
|
33
|
+
description: ( localize(4631, "When clause.")),
|
|
34
34
|
},
|
|
35
35
|
[DocumentationExtensionPointFields.command]: {
|
|
36
36
|
type: 'string',
|
|
37
|
-
description: ( localize(
|
|
37
|
+
description: ( localize(4632, "Command executed.")),
|
|
38
38
|
},
|
|
39
39
|
},
|
|
40
40
|
}
|
|
@@ -28,19 +28,19 @@ class DiffEditorAccessibilityHelp {
|
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
const switchSides = ( localize(
|
|
31
|
-
|
|
31
|
+
4587,
|
|
32
32
|
"Run the command Diff Editor: Switch Side{0} to toggle between the original and modified editors.",
|
|
33
33
|
'<keybinding:diffEditor.switchSide>'
|
|
34
34
|
));
|
|
35
35
|
const diffEditorActiveAnnouncement = ( localize(
|
|
36
|
-
|
|
36
|
+
4588,
|
|
37
37
|
"The setting, accessibility.verbosity.diffEditorActive, controls if a diff editor announcement is made when it becomes the active editor."
|
|
38
38
|
));
|
|
39
39
|
const keys = ['accessibility.signals.diffLineDeleted', 'accessibility.signals.diffLineInserted', 'accessibility.signals.diffLineModified'];
|
|
40
40
|
const content = [
|
|
41
|
-
( localize(
|
|
41
|
+
( localize(4589, "You are in a diff editor.")),
|
|
42
42
|
( localize(
|
|
43
|
-
|
|
43
|
+
4590,
|
|
44
44
|
"View the next{0} or previous{1} diff in diff review mode, which is optimized for screen readers.",
|
|
45
45
|
'<keybinding:' + AccessibleDiffViewerNext.id + '>',
|
|
46
46
|
'<keybinding:' + AccessibleDiffViewerPrev.id + '>'
|
|
@@ -48,7 +48,7 @@ class DiffEditorAccessibilityHelp {
|
|
|
48
48
|
switchSides,
|
|
49
49
|
diffEditorActiveAnnouncement,
|
|
50
50
|
( localize(
|
|
51
|
-
|
|
51
|
+
4591,
|
|
52
52
|
"To control which accessibility signals should be played, the following settings can be configured: {0}.",
|
|
53
53
|
keys.join(', ')
|
|
54
54
|
)),
|
|
@@ -33,7 +33,7 @@ let DiffEditorHelperContribution = class DiffEditorHelperContribution extends Di
|
|
|
33
33
|
const onlyWhiteSpaceChange = ( (computationResult.map(r => r && !r.identical && r.changes2.length === 0)));
|
|
34
34
|
this._register(autorunWithStore((reader, store) => {
|
|
35
35
|
if (onlyWhiteSpaceChange.read(reader)) {
|
|
36
|
-
const helperWidget = store.add(this._instantiationService.createInstance(FloatingEditorClickWidget, this._diffEditor.getModifiedEditor(), ( localize(
|
|
36
|
+
const helperWidget = store.add(this._instantiationService.createInstance(FloatingEditorClickWidget, this._diffEditor.getModifiedEditor(), ( localize(763, "Show Whitespace Differences")), null));
|
|
37
37
|
store.add(helperWidget.onClick(() => {
|
|
38
38
|
this._textResourceConfigurationService.updateValue(this._diffEditor.getModel().modified.uri, 'diffEditor.ignoreTrimWhitespace', false);
|
|
39
39
|
}));
|
|
@@ -44,11 +44,11 @@ let DiffEditorHelperContribution = class DiffEditorHelperContribution extends Di
|
|
|
44
44
|
const diffComputationResult = this._diffEditor.getDiffComputationResult();
|
|
45
45
|
if (diffComputationResult && diffComputationResult.quitEarly) {
|
|
46
46
|
this._notificationService.prompt(Severity$1.Warning, ( localize(
|
|
47
|
-
|
|
47
|
+
764,
|
|
48
48
|
"The diff algorithm was stopped early (after {0} ms.)",
|
|
49
49
|
this._diffEditor.maxComputationTime
|
|
50
50
|
)), [{
|
|
51
|
-
label: ( localize(
|
|
51
|
+
label: ( localize(765, "Remove Limit")),
|
|
52
52
|
run: () => {
|
|
53
53
|
this._textResourceConfigurationService.updateValue(this._diffEditor.getModel().modified.uri, 'diffEditor.maxComputationTime', 0);
|
|
54
54
|
}
|
|
@@ -24,11 +24,11 @@ import '../../../../../platform/theme/common/colors/minimapColors.js';
|
|
|
24
24
|
import '../../../../../platform/theme/common/colors/miscColors.js';
|
|
25
25
|
import '../../../../../platform/theme/common/colors/quickpickColors.js';
|
|
26
26
|
import '../../../../../platform/theme/common/colors/searchColors.js';
|
|
27
|
-
const NLS_FIND_INPUT_LABEL = ( localize(
|
|
28
|
-
const NLS_FIND_INPUT_PLACEHOLDER = ( localize(
|
|
29
|
-
const NLS_PREVIOUS_MATCH_BTN_LABEL = ( localize(
|
|
30
|
-
const NLS_NEXT_MATCH_BTN_LABEL = ( localize(
|
|
31
|
-
const NLS_CLOSE_BTN_LABEL = ( localize(
|
|
27
|
+
const NLS_FIND_INPUT_LABEL = ( localize(11663, "Find"));
|
|
28
|
+
const NLS_FIND_INPUT_PLACEHOLDER = ( localize(11664, "Find"));
|
|
29
|
+
const NLS_PREVIOUS_MATCH_BTN_LABEL = ( localize(11665, "Previous Match"));
|
|
30
|
+
const NLS_NEXT_MATCH_BTN_LABEL = ( localize(11666, "Next Match"));
|
|
31
|
+
const NLS_CLOSE_BTN_LABEL = ( localize(11667, "Close"));
|
|
32
32
|
const SIMPLE_FIND_WIDGET_INITIAL_WIDTH = 310;
|
|
33
33
|
const MATCHES_COUNT_WIDTH = 73;
|
|
34
34
|
class SimpleFindWidget extends Widget {
|
|
@@ -334,17 +334,17 @@ class SimpleFindWidget extends Widget {
|
|
|
334
334
|
}
|
|
335
335
|
_announceSearchResults(label, searchString) {
|
|
336
336
|
if (!searchString) {
|
|
337
|
-
return ( localize(
|
|
337
|
+
return ( localize(11668, "Enter search input"));
|
|
338
338
|
}
|
|
339
339
|
if (label === NLS_NO_RESULTS) {
|
|
340
340
|
return searchString === ''
|
|
341
|
-
? ( localize(
|
|
342
|
-
: ( localize(
|
|
341
|
+
? ( localize(11669, "{0} found", label))
|
|
342
|
+
: ( localize(11670, "{0} found for '{1}'", label, searchString));
|
|
343
343
|
}
|
|
344
|
-
return ( localize(
|
|
344
|
+
return ( localize(11671, "{0} found for '{1}'", label, searchString));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
const simpleFindWidgetSashBorder = registerColor('simpleFindWidget.sashBorder', { dark: '#454545', light: '#C8C8C8', hcDark: '#6FC3DF', hcLight: '#0F4A85' }, ( localize(
|
|
347
|
+
const simpleFindWidgetSashBorder = registerColor('simpleFindWidget.sashBorder', { dark: '#454545', light: '#C8C8C8', hcDark: '#6FC3DF', hcLight: '#0F4A85' }, ( localize(11672, 'Border color of the sash border.')));
|
|
348
348
|
registerThemingParticipant((theme, collector) => {
|
|
349
349
|
const resizeBorderBackground = theme.getColor(simpleFindWidgetSashBorder);
|
|
350
350
|
collector.addRule(`.monaco-workbench .simple-find-part .monaco-sash { background-color: ${resizeBorderBackground}; border-color: ${resizeBorderBackground} }`);
|