@codingame/monaco-vscode-api 8.0.2 → 8.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +3 -3
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +6 -6
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +6 -6
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +1 -1
- package/vscode/src/vs/base/common/actions.js +1 -1
- package/vscode/src/vs/base/common/date.js +59 -59
- package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
- package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +5 -5
- package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
- package/vscode/src/vs/editor/browser/editorExtensions.js +6 -6
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +1 -1
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +49 -49
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +27 -27
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +28 -28
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +7 -7
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +1 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +27 -27
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +23 -23
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys.js +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/commands.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/consts.js +2 -2
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +17 -17
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +16 -16
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/editor/editor.api.d.ts +91 -69
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +19 -19
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/request/common/request.js +14 -14
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +131 -131
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +16 -16
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +7 -7
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
- package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +219 -216
- package/vscode/src/vs/workbench/common/configuration.js +10 -10
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +127 -127
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCodeCitationContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +14 -14
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +166 -166
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -33
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +57 -57
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +12 -12
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +15 -15
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +28 -28
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +1 -1
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +82 -82
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
|
@@ -419,7 +419,7 @@ class DeleteInsideWord extends EditorAction {
|
|
|
419
419
|
super({
|
|
420
420
|
id: 'deleteInsideWord',
|
|
421
421
|
precondition: EditorContextKeys.writable,
|
|
422
|
-
label: ( localize(
|
|
422
|
+
label: ( localize(1608, "Delete Word")),
|
|
423
423
|
alias: 'Delete Word'
|
|
424
424
|
});
|
|
425
425
|
}
|
|
@@ -3742,6 +3742,11 @@ export namespace editor {
|
|
|
3742
3742
|
* Defaults to false.
|
|
3743
3743
|
*/
|
|
3744
3744
|
peekWidgetDefaultFocus?: 'tree' | 'editor';
|
|
3745
|
+
/**
|
|
3746
|
+
* Sets a placeholder for the editor.
|
|
3747
|
+
* If set, the placeholder is shown if the editor is empty.
|
|
3748
|
+
*/
|
|
3749
|
+
placeholder?: string | undefined;
|
|
3745
3750
|
/**
|
|
3746
3751
|
* Controls whether the definition link opens element in the peek widget.
|
|
3747
3752
|
* Defaults to false.
|
|
@@ -3823,6 +3828,11 @@ export namespace editor {
|
|
|
3823
3828
|
* and the diff editor has a width less than `renderSideBySideInlineBreakpoint`, the inline view is used.
|
|
3824
3829
|
*/
|
|
3825
3830
|
useInlineViewWhenSpaceIsLimited?: boolean;
|
|
3831
|
+
/**
|
|
3832
|
+
* If set, the diff editor is optimized for small views.
|
|
3833
|
+
* Defaults to `false`.
|
|
3834
|
+
*/
|
|
3835
|
+
compactMode?: boolean;
|
|
3826
3836
|
/**
|
|
3827
3837
|
* Timeout in milliseconds after which diff computation is cancelled.
|
|
3828
3838
|
* Defaults to 5000.
|
|
@@ -3885,6 +3895,10 @@ export namespace editor {
|
|
|
3885
3895
|
*/
|
|
3886
3896
|
showMoves?: boolean;
|
|
3887
3897
|
showEmptyDecorations?: boolean;
|
|
3898
|
+
/**
|
|
3899
|
+
* Only applies when `renderSideBySide` is set to false.
|
|
3900
|
+
*/
|
|
3901
|
+
useTrueInlineView?: boolean;
|
|
3888
3902
|
};
|
|
3889
3903
|
/**
|
|
3890
3904
|
* Is the diff editor inside another editor
|
|
@@ -4050,11 +4064,13 @@ export namespace editor {
|
|
|
4050
4064
|
multipleDeclarations?: GoToLocationValues;
|
|
4051
4065
|
multipleImplementations?: GoToLocationValues;
|
|
4052
4066
|
multipleReferences?: GoToLocationValues;
|
|
4067
|
+
multipleTests?: GoToLocationValues;
|
|
4053
4068
|
alternativeDefinitionCommand?: string;
|
|
4054
4069
|
alternativeTypeDefinitionCommand?: string;
|
|
4055
4070
|
alternativeDeclarationCommand?: string;
|
|
4056
4071
|
alternativeImplementationCommand?: string;
|
|
4057
4072
|
alternativeReferenceCommand?: string;
|
|
4073
|
+
alternativeTestsCommand?: string;
|
|
4058
4074
|
}
|
|
4059
4075
|
|
|
4060
4076
|
/**
|
|
@@ -4573,7 +4589,6 @@ export namespace editor {
|
|
|
4573
4589
|
* Does not clear active inline suggestions when the editor loses focus.
|
|
4574
4590
|
*/
|
|
4575
4591
|
keepOnBlur?: boolean;
|
|
4576
|
-
backgroundColoring?: boolean;
|
|
4577
4592
|
}
|
|
4578
4593
|
|
|
4579
4594
|
export interface IBracketPairColorizationOptions {
|
|
@@ -4936,68 +4951,69 @@ export namespace editor {
|
|
|
4936
4951
|
pasteAs = 85,
|
|
4937
4952
|
parameterHints = 86,
|
|
4938
4953
|
peekWidgetDefaultFocus = 87,
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
4954
|
+
placeholder = 88,
|
|
4955
|
+
definitionLinkOpensInPeek = 89,
|
|
4956
|
+
quickSuggestions = 90,
|
|
4957
|
+
quickSuggestionsDelay = 91,
|
|
4958
|
+
readOnly = 92,
|
|
4959
|
+
readOnlyMessage = 93,
|
|
4960
|
+
renameOnType = 94,
|
|
4961
|
+
renderControlCharacters = 95,
|
|
4962
|
+
renderFinalNewline = 96,
|
|
4963
|
+
renderLineHighlight = 97,
|
|
4964
|
+
renderLineHighlightOnlyWhenFocus = 98,
|
|
4965
|
+
renderValidationDecorations = 99,
|
|
4966
|
+
renderWhitespace = 100,
|
|
4967
|
+
revealHorizontalRightPadding = 101,
|
|
4968
|
+
roundedSelection = 102,
|
|
4969
|
+
rulers = 103,
|
|
4970
|
+
scrollbar = 104,
|
|
4971
|
+
scrollBeyondLastColumn = 105,
|
|
4972
|
+
scrollBeyondLastLine = 106,
|
|
4973
|
+
scrollPredominantAxis = 107,
|
|
4974
|
+
selectionClipboard = 108,
|
|
4975
|
+
selectionHighlight = 109,
|
|
4976
|
+
selectOnLineNumbers = 110,
|
|
4977
|
+
showFoldingControls = 111,
|
|
4978
|
+
showUnused = 112,
|
|
4979
|
+
snippetSuggestions = 113,
|
|
4980
|
+
smartSelect = 114,
|
|
4981
|
+
smoothScrolling = 115,
|
|
4982
|
+
stickyScroll = 116,
|
|
4983
|
+
stickyTabStops = 117,
|
|
4984
|
+
stopRenderingLineAfter = 118,
|
|
4985
|
+
suggest = 119,
|
|
4986
|
+
suggestFontSize = 120,
|
|
4987
|
+
suggestLineHeight = 121,
|
|
4988
|
+
suggestOnTriggerCharacters = 122,
|
|
4989
|
+
suggestSelection = 123,
|
|
4990
|
+
tabCompletion = 124,
|
|
4991
|
+
tabIndex = 125,
|
|
4992
|
+
unicodeHighlighting = 126,
|
|
4993
|
+
unusualLineTerminators = 127,
|
|
4994
|
+
useShadowDOM = 128,
|
|
4995
|
+
useTabStops = 129,
|
|
4996
|
+
wordBreak = 130,
|
|
4997
|
+
wordSegmenterLocales = 131,
|
|
4998
|
+
wordSeparators = 132,
|
|
4999
|
+
wordWrap = 133,
|
|
5000
|
+
wordWrapBreakAfterCharacters = 134,
|
|
5001
|
+
wordWrapBreakBeforeCharacters = 135,
|
|
5002
|
+
wordWrapColumn = 136,
|
|
5003
|
+
wordWrapOverride1 = 137,
|
|
5004
|
+
wordWrapOverride2 = 138,
|
|
5005
|
+
wrappingIndent = 139,
|
|
5006
|
+
wrappingStrategy = 140,
|
|
5007
|
+
showDeprecated = 141,
|
|
5008
|
+
inlayHints = 142,
|
|
5009
|
+
editorClassName = 143,
|
|
5010
|
+
pixelRatio = 144,
|
|
5011
|
+
tabFocusMode = 145,
|
|
5012
|
+
layoutInfo = 146,
|
|
5013
|
+
wrappingInfo = 147,
|
|
5014
|
+
defaultColorDecorators = 148,
|
|
5015
|
+
colorDecoratorsActivatedOn = 149,
|
|
5016
|
+
inlineCompletionsAccessibilityVerbose = 150
|
|
5001
5017
|
}
|
|
5002
5018
|
|
|
5003
5019
|
export const EditorOptions: {
|
|
@@ -5010,8 +5026,8 @@ export namespace editor {
|
|
|
5010
5026
|
screenReaderAnnounceInlineSuggestion: IEditorOption<EditorOption.screenReaderAnnounceInlineSuggestion, boolean>;
|
|
5011
5027
|
autoClosingBrackets: IEditorOption<EditorOption.autoClosingBrackets, 'always' | 'languageDefined' | 'beforeWhitespace' | 'never'>;
|
|
5012
5028
|
autoClosingComments: IEditorOption<EditorOption.autoClosingComments, 'always' | 'languageDefined' | 'beforeWhitespace' | 'never'>;
|
|
5013
|
-
autoClosingDelete: IEditorOption<EditorOption.autoClosingDelete, '
|
|
5014
|
-
autoClosingOvertype: IEditorOption<EditorOption.autoClosingOvertype, '
|
|
5029
|
+
autoClosingDelete: IEditorOption<EditorOption.autoClosingDelete, 'auto' | 'always' | 'never'>;
|
|
5030
|
+
autoClosingOvertype: IEditorOption<EditorOption.autoClosingOvertype, 'auto' | 'always' | 'never'>;
|
|
5015
5031
|
autoClosingQuotes: IEditorOption<EditorOption.autoClosingQuotes, 'always' | 'languageDefined' | 'beforeWhitespace' | 'never'>;
|
|
5016
5032
|
autoIndent: IEditorOption<EditorOption.autoIndent, EditorAutoIndentStrategy>;
|
|
5017
5033
|
automaticLayout: IEditorOption<EditorOption.automaticLayout, boolean>;
|
|
@@ -5023,7 +5039,7 @@ export namespace editor {
|
|
|
5023
5039
|
codeLensFontFamily: IEditorOption<EditorOption.codeLensFontFamily, string>;
|
|
5024
5040
|
codeLensFontSize: IEditorOption<EditorOption.codeLensFontSize, number>;
|
|
5025
5041
|
colorDecorators: IEditorOption<EditorOption.colorDecorators, boolean>;
|
|
5026
|
-
colorDecoratorActivatedOn: IEditorOption<EditorOption.colorDecoratorsActivatedOn, '
|
|
5042
|
+
colorDecoratorActivatedOn: IEditorOption<EditorOption.colorDecoratorsActivatedOn, 'hover' | 'clickAndHover' | 'click'>;
|
|
5027
5043
|
colorDecoratorsLimit: IEditorOption<EditorOption.colorDecoratorsLimit, number>;
|
|
5028
5044
|
columnSelection: IEditorOption<EditorOption.columnSelection, boolean>;
|
|
5029
5045
|
comments: IEditorOption<EditorOption.comments, Readonly<Required<IEditorCommentsOptions>>>;
|
|
@@ -5090,6 +5106,7 @@ export namespace editor {
|
|
|
5090
5106
|
pasteAs: IEditorOption<EditorOption.pasteAs, Readonly<Required<IPasteAsOptions>>>;
|
|
5091
5107
|
parameterHints: IEditorOption<EditorOption.parameterHints, Readonly<Required<IEditorParameterHintOptions>>>;
|
|
5092
5108
|
peekWidgetDefaultFocus: IEditorOption<EditorOption.peekWidgetDefaultFocus, 'tree' | 'editor'>;
|
|
5109
|
+
placeholder: IEditorOption<EditorOption.placeholder, string>;
|
|
5093
5110
|
definitionLinkOpensInPeek: IEditorOption<EditorOption.definitionLinkOpensInPeek, boolean>;
|
|
5094
5111
|
quickSuggestions: IEditorOption<EditorOption.quickSuggestions, InternalQuickSuggestionsOptions>;
|
|
5095
5112
|
quickSuggestionsDelay: IEditorOption<EditorOption.quickSuggestionsDelay, number>;
|
|
@@ -5131,13 +5148,13 @@ export namespace editor {
|
|
|
5131
5148
|
tabCompletion: IEditorOption<EditorOption.tabCompletion, 'on' | 'off' | 'onlySnippets'>;
|
|
5132
5149
|
tabIndex: IEditorOption<EditorOption.tabIndex, number>;
|
|
5133
5150
|
unicodeHighlight: IEditorOption<EditorOption.unicodeHighlighting, any>;
|
|
5134
|
-
unusualLineTerminators: IEditorOption<EditorOption.unusualLineTerminators, '
|
|
5151
|
+
unusualLineTerminators: IEditorOption<EditorOption.unusualLineTerminators, 'off' | 'auto' | 'prompt'>;
|
|
5135
5152
|
useShadowDOM: IEditorOption<EditorOption.useShadowDOM, boolean>;
|
|
5136
5153
|
useTabStops: IEditorOption<EditorOption.useTabStops, boolean>;
|
|
5137
5154
|
wordBreak: IEditorOption<EditorOption.wordBreak, 'normal' | 'keepAll'>;
|
|
5138
5155
|
wordSegmenterLocales: IEditorOption<EditorOption.wordSegmenterLocales, {}>;
|
|
5139
5156
|
wordSeparators: IEditorOption<EditorOption.wordSeparators, string>;
|
|
5140
|
-
wordWrap: IEditorOption<EditorOption.wordWrap, '
|
|
5157
|
+
wordWrap: IEditorOption<EditorOption.wordWrap, 'wordWrapColumn' | 'on' | 'off' | 'bounded'>;
|
|
5141
5158
|
wordWrapBreakAfterCharacters: IEditorOption<EditorOption.wordWrapBreakAfterCharacters, string>;
|
|
5142
5159
|
wordWrapBreakBeforeCharacters: IEditorOption<EditorOption.wordWrapBreakBeforeCharacters, string>;
|
|
5143
5160
|
wordWrapColumn: IEditorOption<EditorOption.wordWrapColumn, number>;
|
|
@@ -7946,6 +7963,11 @@ export namespace languages {
|
|
|
7946
7963
|
arguments?: any[];
|
|
7947
7964
|
}
|
|
7948
7965
|
|
|
7966
|
+
export interface CommentThreadRevealOptions {
|
|
7967
|
+
preserveFocus: boolean;
|
|
7968
|
+
focusReply: boolean;
|
|
7969
|
+
}
|
|
7970
|
+
|
|
7949
7971
|
export interface CommentAuthorInformation {
|
|
7950
7972
|
name: string;
|
|
7951
7973
|
iconPath?: UriComponents;
|
|
@@ -8060,7 +8082,7 @@ export namespace languages {
|
|
|
8060
8082
|
*
|
|
8061
8083
|
* @param document The document to provide mapped edits for.
|
|
8062
8084
|
* @param codeBlocks Code blocks that come from an LLM's reply.
|
|
8063
|
-
* "
|
|
8085
|
+
* "Apply in Editor" in the panel chat only sends one edit that the user clicks on, but inline chat can send multiple blocks and let the lang server decide what to do with them.
|
|
8064
8086
|
* @param context The context for providing mapped edits.
|
|
8065
8087
|
* @param token A cancellation token.
|
|
8066
8088
|
* @returns A provider result of text edits.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { localize2 } from '../../../nls.js';
|
|
2
2
|
const Categories = ( (Object.freeze({
|
|
3
|
-
View: ( localize2(
|
|
4
|
-
Help: ( localize2(
|
|
5
|
-
Test: ( localize2(
|
|
6
|
-
File: ( localize2(
|
|
7
|
-
Preferences: ( localize2(
|
|
8
|
-
Developer: ( localize2(
|
|
3
|
+
View: ( localize2(4523, 'View')),
|
|
4
|
+
Help: ( localize2(4524, 'Help')),
|
|
5
|
+
Test: ( localize2(4525, 'Test')),
|
|
6
|
+
File: ( localize2(4526, 'File')),
|
|
7
|
+
Preferences: ( localize2(4527, 'Preferences')),
|
|
8
|
+
Developer: ( localize2(4528, "Developer")),
|
|
9
9
|
})));
|
|
10
10
|
export { Categories };
|
|
@@ -24,9 +24,9 @@ import '../../theme/common/colors/minimapColors.js';
|
|
|
24
24
|
import '../../theme/common/colors/miscColors.js';
|
|
25
25
|
import '../../theme/common/colors/quickpickColors.js';
|
|
26
26
|
import '../../theme/common/colors/searchColors.js';
|
|
27
|
-
registerColor('actionBar.toggledBackground', inputActiveOptionBackground, ( localize(
|
|
27
|
+
registerColor('actionBar.toggledBackground', inputActiveOptionBackground, ( localize(9855, 'Background color for toggled action items in action bar.')));
|
|
28
28
|
const ActionWidgetContextKeys = {
|
|
29
|
-
Visible: ( (new RawContextKey('codeActionMenuVisible', false, ( localize(
|
|
29
|
+
Visible: ( (new RawContextKey('codeActionMenuVisible', false, ( localize(9856, "Whether the action widget list is visible")))))
|
|
30
30
|
};
|
|
31
31
|
const IActionWidgetService = ( (createDecorator('actionWidgetService')));
|
|
32
32
|
let ActionWidgetService = class ActionWidgetService extends Disposable {
|
|
@@ -131,7 +131,7 @@ registerAction2(class extends Action2 {
|
|
|
131
131
|
constructor() {
|
|
132
132
|
super({
|
|
133
133
|
id: 'hideCodeActionWidget',
|
|
134
|
-
title: ( localize2(
|
|
134
|
+
title: ( localize2(9857, "Hide action widget")),
|
|
135
135
|
precondition: ActionWidgetContextKeys.Visible,
|
|
136
136
|
keybinding: {
|
|
137
137
|
weight,
|
|
@@ -148,7 +148,7 @@ registerAction2(class extends Action2 {
|
|
|
148
148
|
constructor() {
|
|
149
149
|
super({
|
|
150
150
|
id: 'selectPrevCodeAction',
|
|
151
|
-
title: ( localize2(
|
|
151
|
+
title: ( localize2(9858, "Select previous action")),
|
|
152
152
|
precondition: ActionWidgetContextKeys.Visible,
|
|
153
153
|
keybinding: {
|
|
154
154
|
weight,
|
|
@@ -169,7 +169,7 @@ registerAction2(class extends Action2 {
|
|
|
169
169
|
constructor() {
|
|
170
170
|
super({
|
|
171
171
|
id: 'selectNextCodeAction',
|
|
172
|
-
title: ( localize2(
|
|
172
|
+
title: ( localize2(9859, "Select next action")),
|
|
173
173
|
precondition: ActionWidgetContextKeys.Visible,
|
|
174
174
|
keybinding: {
|
|
175
175
|
weight,
|
|
@@ -190,7 +190,7 @@ registerAction2(class extends Action2 {
|
|
|
190
190
|
constructor() {
|
|
191
191
|
super({
|
|
192
192
|
id: acceptSelectedActionCommand,
|
|
193
|
-
title: ( localize2(
|
|
193
|
+
title: ( localize2(9860, "Accept selected action")),
|
|
194
194
|
precondition: ActionWidgetContextKeys.Visible,
|
|
195
195
|
keybinding: {
|
|
196
196
|
weight,
|
|
@@ -210,7 +210,7 @@ registerAction2(class extends Action2 {
|
|
|
210
210
|
constructor() {
|
|
211
211
|
super({
|
|
212
212
|
id: previewSelectedActionCommand,
|
|
213
|
-
title: ( localize2(
|
|
213
|
+
title: ( localize2(9861, "Preview selected action")),
|
|
214
214
|
precondition: ActionWidgetContextKeys.Visible,
|
|
215
215
|
keybinding: {
|
|
216
216
|
weight,
|
|
@@ -195,17 +195,17 @@ let MenuEntryActionViewItem = class MenuEntryActionViewItem extends ActionViewIt
|
|
|
195
195
|
const keybindingLabel = keybinding && keybinding.getLabel();
|
|
196
196
|
const tooltip = this._commandAction.tooltip || this._commandAction.label;
|
|
197
197
|
let title = keybindingLabel
|
|
198
|
-
? ( localize(
|
|
198
|
+
? ( localize(4886, "{0} ({1})", tooltip, keybindingLabel))
|
|
199
199
|
: tooltip;
|
|
200
200
|
if (!this._wantsAltCommand && this._menuItemAction.alt?.enabled) {
|
|
201
201
|
const altTooltip = this._menuItemAction.alt.tooltip || this._menuItemAction.alt.label;
|
|
202
202
|
const altKeybinding = this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id, this._contextKeyService);
|
|
203
203
|
const altKeybindingLabel = altKeybinding && altKeybinding.getLabel();
|
|
204
204
|
const altTitleSection = altKeybindingLabel
|
|
205
|
-
? ( localize(
|
|
205
|
+
? ( localize(4886, "{0} ({1})", altTooltip, altKeybindingLabel))
|
|
206
206
|
: altTooltip;
|
|
207
207
|
title = ( localize(
|
|
208
|
-
|
|
208
|
+
4887,
|
|
209
209
|
"{0}\n[{1}] {2}",
|
|
210
210
|
title,
|
|
211
211
|
UILabelProvider.modifierLabels[OS].altKey,
|
|
@@ -281,10 +281,10 @@ class TextOnlyMenuEntryActionViewItem extends MenuEntryActionViewItem {
|
|
|
281
281
|
if (this.label) {
|
|
282
282
|
const kb2 = TextOnlyMenuEntryActionViewItem._symbolPrintEnter(kb);
|
|
283
283
|
if (this._options?.conversational) {
|
|
284
|
-
this.label.textContent = ( localize(
|
|
284
|
+
this.label.textContent = ( localize(4888, '{1} to {0}', this._action.label, kb2));
|
|
285
285
|
}
|
|
286
286
|
else {
|
|
287
|
-
this.label.textContent = ( localize(
|
|
287
|
+
this.label.textContent = ( localize(4889, '{0} ({1})', this._action.label, kb2));
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
}
|
|
@@ -400,7 +400,7 @@ function createMenuHide(menu, command, states) {
|
|
|
400
400
|
const title = typeof command.title === 'string' ? command.title : command.title.value;
|
|
401
401
|
const hide = toAction({
|
|
402
402
|
id: `hide/${menu.id}/${id}`,
|
|
403
|
-
label: ( localize(
|
|
403
|
+
label: ( localize(1292, 'Hide \'{0}\'', title)),
|
|
404
404
|
run() { states.updateHidden(menu, id, true); }
|
|
405
405
|
});
|
|
406
406
|
const toggle = toAction({
|
|
@@ -418,7 +418,7 @@ function createMenuHide(menu, command, states) {
|
|
|
418
418
|
function createConfigureKeybindingAction(commandService, keybindingService, commandId, when = undefined, enabled = true) {
|
|
419
419
|
return toAction({
|
|
420
420
|
id: `configureKeybinding/${commandId}`,
|
|
421
|
-
label: ( localize(
|
|
421
|
+
label: ( localize(1293, "Configure Keybinding")),
|
|
422
422
|
enabled,
|
|
423
423
|
run() {
|
|
424
424
|
const hasKeybinding = !!keybindingService.lookupKeybinding(commandId);
|
|
@@ -505,7 +505,7 @@ CommandsRegistry.registerCommand({
|
|
|
505
505
|
return [...RawContextKey.all()].sort((a, b) => a.key.localeCompare(b.key));
|
|
506
506
|
},
|
|
507
507
|
metadata: {
|
|
508
|
-
description: ( localize(
|
|
508
|
+
description: ( localize(1294, "A command that returns information about context keys")),
|
|
509
509
|
args: []
|
|
510
510
|
}
|
|
511
511
|
});
|
|
@@ -45,17 +45,17 @@ var ContextKeyExprType;
|
|
|
45
45
|
const defaultConfig = {
|
|
46
46
|
regexParsingWithErrorRecovery: true
|
|
47
47
|
};
|
|
48
|
-
const errorEmptyString = ( localize(
|
|
48
|
+
const errorEmptyString = ( localize(556, "Empty context key expression"));
|
|
49
49
|
const hintEmptyString = ( localize(
|
|
50
|
-
|
|
50
|
+
557,
|
|
51
51
|
"Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."
|
|
52
52
|
));
|
|
53
|
-
const errorNoInAfterNot = ( localize(
|
|
54
|
-
const errorClosingParenthesis = ( localize(
|
|
55
|
-
const errorUnexpectedToken = ( localize(
|
|
56
|
-
const hintUnexpectedToken = ( localize(
|
|
57
|
-
const errorUnexpectedEOF = ( localize(
|
|
58
|
-
const hintUnexpectedEOF = ( localize(
|
|
53
|
+
const errorNoInAfterNot = ( localize(558, "'in' after 'not'."));
|
|
54
|
+
const errorClosingParenthesis = ( localize(559, "closing parenthesis ')'"));
|
|
55
|
+
const errorUnexpectedToken = ( localize(560, "Unexpected token"));
|
|
56
|
+
const hintUnexpectedToken = ( localize(561, "Did you forget to put && or || before the token?"));
|
|
57
|
+
const errorUnexpectedEOF = ( localize(562, "Unexpected end of expression"));
|
|
58
|
+
const hintUnexpectedEOF = ( localize(563, "Did you forget to put a context key?"));
|
|
59
59
|
class Parser {
|
|
60
60
|
static { this._parseError = ( (new Error())); }
|
|
61
61
|
get lexingErrors() {
|
|
@@ -387,7 +387,7 @@ class Parser {
|
|
|
387
387
|
throw this._errExpectedButGot(message, this._peek());
|
|
388
388
|
}
|
|
389
389
|
_errExpectedButGot(expected, got, additionalInfo) {
|
|
390
|
-
const message = ( localize(
|
|
390
|
+
const message = ( localize(564, "Expected: {0}\nReceived: '{1}'.", expected, Scanner.getLexeme(got)));
|
|
391
391
|
const offset = got.offset;
|
|
392
392
|
const lexeme = Scanner.getLexeme(got);
|
|
393
393
|
this._parsingErrors.push({ message, offset, lexeme, additionalInfo });
|
|
@@ -471,8 +471,8 @@ function validateWhenClauses(whenClauses) {
|
|
|
471
471
|
return (
|
|
472
472
|
(parser.lexingErrors.map((se) => ({
|
|
473
473
|
errorMessage: se.additionalInfo ?
|
|
474
|
-
( localize(
|
|
475
|
-
( localize(
|
|
474
|
+
( localize(565, "Unexpected token. Hint: {0}", se.additionalInfo)) :
|
|
475
|
+
( localize(566, "Unexpected token.")),
|
|
476
476
|
offset: se.offset,
|
|
477
477
|
length: se.lexeme.length,
|
|
478
478
|
})))
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { isWeb, isMacintosh, isLinux, isWindows, isIOS, isMobile } from '../../../base/common/platform.js';
|
|
2
2
|
import { localize } from '../../../nls.js';
|
|
3
3
|
import { RawContextKey } from './contextkey.js';
|
|
4
|
-
const IsMacContext = ( (new RawContextKey('isMac', isMacintosh, ( localize(
|
|
5
|
-
const IsLinuxContext = ( (new RawContextKey('isLinux', isLinux, ( localize(
|
|
6
|
-
const IsWindowsContext = ( (new RawContextKey('isWindows', isWindows, ( localize(
|
|
7
|
-
const IsWebContext = ( (new RawContextKey('isWeb', isWeb, ( localize(
|
|
8
|
-
const IsMacNativeContext = ( (new RawContextKey('isMacNative', isMacintosh && !isWeb, ( localize(
|
|
9
|
-
const IsIOSContext = ( (new RawContextKey('isIOS', isIOS, ( localize(
|
|
10
|
-
const IsMobileContext = ( (new RawContextKey('isMobile', isMobile, ( localize(
|
|
4
|
+
const IsMacContext = ( (new RawContextKey('isMac', isMacintosh, ( localize(4967, "Whether the operating system is macOS")))));
|
|
5
|
+
const IsLinuxContext = ( (new RawContextKey('isLinux', isLinux, ( localize(4968, "Whether the operating system is Linux")))));
|
|
6
|
+
const IsWindowsContext = ( (new RawContextKey('isWindows', isWindows, ( localize(4969, "Whether the operating system is Windows")))));
|
|
7
|
+
const IsWebContext = ( (new RawContextKey('isWeb', isWeb, ( localize(4970, "Whether the platform is a web browser")))));
|
|
8
|
+
const IsMacNativeContext = ( (new RawContextKey('isMacNative', isMacintosh && !isWeb, ( localize(4971, "Whether the operating system is macOS on a non-browser platform")))));
|
|
9
|
+
const IsIOSContext = ( (new RawContextKey('isIOS', isIOS, ( localize(4972, "Whether the operating system is iOS")))));
|
|
10
|
+
const IsMobileContext = ( (new RawContextKey('isMobile', isMobile, ( localize(4973, "Whether the platform is a mobile web browser")))));
|
|
11
11
|
const IsDevelopmentContext = ( (new RawContextKey('isDevelopment', false, true)));
|
|
12
|
-
const ProductQualityContext = ( (new RawContextKey('productQualityType', '', ( localize(
|
|
12
|
+
const ProductQualityContext = ( (new RawContextKey('productQualityType', '', ( localize(4974, "Quality type of VS Code")))));
|
|
13
13
|
const InputFocusedContextKey = 'inputFocus';
|
|
14
|
-
const InputFocusedContext = ( (new RawContextKey(InputFocusedContextKey, false, ( localize(
|
|
14
|
+
const InputFocusedContext = ( (new RawContextKey(InputFocusedContextKey, false, ( localize(4975, "Whether keyboard focus is inside an input box")))));
|
|
15
15
|
export { InputFocusedContext, InputFocusedContextKey, IsDevelopmentContext, IsIOSContext, IsLinuxContext, IsMacContext, IsMacNativeContext, IsMobileContext, IsWebContext, IsWindowsContext, ProductQualityContext };
|
|
@@ -28,13 +28,13 @@ class AbstractDialogHandler {
|
|
|
28
28
|
buttons.push(confirmationDialog.primaryButton);
|
|
29
29
|
}
|
|
30
30
|
else {
|
|
31
|
-
buttons.push(( localize(
|
|
31
|
+
buttons.push(( localize(5687, "&&Yes")));
|
|
32
32
|
}
|
|
33
33
|
if (confirmationDialog.cancelButton) {
|
|
34
34
|
buttons.push(confirmationDialog.cancelButton);
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
37
|
-
buttons.push(( localize(
|
|
37
|
+
buttons.push(( localize(5688, "Cancel")));
|
|
38
38
|
}
|
|
39
39
|
break;
|
|
40
40
|
}
|
|
@@ -45,7 +45,7 @@ class AbstractDialogHandler {
|
|
|
45
45
|
}
|
|
46
46
|
if (promptDialog.cancelButton) {
|
|
47
47
|
if (promptDialog.cancelButton === true) {
|
|
48
|
-
buttons.push(( localize(
|
|
48
|
+
buttons.push(( localize(5688, "Cancel")));
|
|
49
49
|
}
|
|
50
50
|
else if (typeof promptDialog.cancelButton === 'string') {
|
|
51
51
|
buttons.push(promptDialog.cancelButton);
|
|
@@ -55,12 +55,12 @@ class AbstractDialogHandler {
|
|
|
55
55
|
buttons.push(promptDialog.cancelButton.label);
|
|
56
56
|
}
|
|
57
57
|
else {
|
|
58
|
-
buttons.push(( localize(
|
|
58
|
+
buttons.push(( localize(5688, "Cancel")));
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
if (buttons.length === 0) {
|
|
63
|
-
buttons.push(( localize(
|
|
63
|
+
buttons.push(( localize(5689, "&&OK")));
|
|
64
64
|
}
|
|
65
65
|
break;
|
|
66
66
|
}
|
|
@@ -70,13 +70,13 @@ class AbstractDialogHandler {
|
|
|
70
70
|
buttons.push(inputDialog.primaryButton);
|
|
71
71
|
}
|
|
72
72
|
else {
|
|
73
|
-
buttons.push(( localize(
|
|
73
|
+
buttons.push(( localize(5689, "&&OK")));
|
|
74
74
|
}
|
|
75
75
|
if (inputDialog.cancelButton) {
|
|
76
76
|
buttons.push(inputDialog.cancelButton);
|
|
77
77
|
}
|
|
78
78
|
else {
|
|
79
|
-
buttons.push(( localize(
|
|
79
|
+
buttons.push(( localize(5688, "Cancel")));
|
|
80
80
|
}
|
|
81
81
|
break;
|
|
82
82
|
}
|
|
@@ -118,11 +118,11 @@ function getFileNamesMessage(fileNamesOrResources) {
|
|
|
118
118
|
))));
|
|
119
119
|
if (fileNamesOrResources.length > MAX_CONFIRM_FILES) {
|
|
120
120
|
if (fileNamesOrResources.length - MAX_CONFIRM_FILES === 1) {
|
|
121
|
-
message.push(( localize(
|
|
121
|
+
message.push(( localize(5690, "...1 additional file not shown")));
|
|
122
122
|
}
|
|
123
123
|
else {
|
|
124
124
|
message.push(( localize(
|
|
125
|
-
|
|
125
|
+
5691,
|
|
126
126
|
"...{0} additional files not shown",
|
|
127
127
|
fileNamesOrResources.length - MAX_CONFIRM_FILES
|
|
128
128
|
)));
|
|
@@ -198,6 +198,6 @@ class ExtensionManagementError extends Error {
|
|
|
198
198
|
}
|
|
199
199
|
const DISABLED_EXTENSIONS_STORAGE_PATH = 'extensionsIdentifiers/disabled';
|
|
200
200
|
const ENABLED_EXTENSIONS_STORAGE_PATH = 'extensionsIdentifiers/enabled';
|
|
201
|
-
const ExtensionsLocalizedLabel = ( localize2(
|
|
202
|
-
const PreferencesLocalizedLabel = ( localize2(
|
|
201
|
+
const ExtensionsLocalizedLabel = ( localize2(1160, "Extensions"));
|
|
202
|
+
const PreferencesLocalizedLabel = ( localize2(1161, 'Preferences'));
|
|
203
203
|
export { DISABLED_EXTENSIONS_STORAGE_PATH, ENABLED_EXTENSIONS_STORAGE_PATH, EXTENSION_IDENTIFIER_PATTERN, EXTENSION_IDENTIFIER_REGEX, EXTENSION_INSTALL_DEP_PACK_CONTEXT, EXTENSION_INSTALL_SKIP_WALKTHROUGH_CONTEXT, EXTENSION_INSTALL_SOURCE_CONTEXT, ExtensionGalleryError, ExtensionGalleryErrorCode, ExtensionInstallSource, ExtensionManagementError, ExtensionManagementErrorCode, ExtensionsLocalizedLabel, InstallOperation, PreferencesLocalizedLabel, SortBy, SortOrder, StatisticType, TargetPlatformToString, WEB_EXTENSION_TAG, getTargetPlatform, isIExtensionIdentifier, isNotWebExtensionInWebTargetPlatform, isTargetPlatformCompatible, toTargetPlatform };
|
|
@@ -26,7 +26,7 @@ function replaceNLStrings(logger, extensionManifest, messages, originalMessages)
|
|
|
26
26
|
const originalMessage = typeof original === 'string' ? original : original?.message;
|
|
27
27
|
if (!message) {
|
|
28
28
|
if (!originalMessage) {
|
|
29
|
-
logger.warn(`[${extensionManifest.name}]: ${( localize(
|
|
29
|
+
logger.warn(`[${extensionManifest.name}]: ${( localize(1190, "Couldn't find message for key {0}.", messageKey))}`);
|
|
30
30
|
}
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
@@ -457,7 +457,7 @@ let ExtensionManifestTranslator = class ExtensionManifestTranslator extends Disp
|
|
|
457
457
|
const reportErrors = (localized, errors) => {
|
|
458
458
|
errors.forEach((error) => {
|
|
459
459
|
this.logService.error(this.formatMessage(extensionLocation, ( localize(
|
|
460
|
-
|
|
460
|
+
444,
|
|
461
461
|
"Failed to parse {0}: {1}.",
|
|
462
462
|
localized?.path,
|
|
463
463
|
getParseErrorMessage(error.error)
|
|
@@ -465,7 +465,7 @@ let ExtensionManifestTranslator = class ExtensionManifestTranslator extends Disp
|
|
|
465
465
|
});
|
|
466
466
|
};
|
|
467
467
|
const reportInvalidFormat = (localized) => {
|
|
468
|
-
this.logService.error(this.formatMessage(extensionLocation, ( localize(
|
|
468
|
+
this.logService.error(this.formatMessage(extensionLocation, ( localize(445, "Invalid format {0}: JSON object expected.", localized?.path))));
|
|
469
469
|
};
|
|
470
470
|
const translationId = `${extensionManifest.publisher}.${extensionManifest.name}`;
|
|
471
471
|
const translationPath = nlsConfiguration.translations[translationId];
|
|
@@ -535,7 +535,7 @@ let ExtensionManifestTranslator = class ExtensionManifestTranslator extends Disp
|
|
|
535
535
|
if (errors.length > 0) {
|
|
536
536
|
errors.forEach((error) => {
|
|
537
537
|
this.logService.error(this.formatMessage(extensionLocation, ( localize(
|
|
538
|
-
|
|
538
|
+
444,
|
|
539
539
|
"Failed to parse {0}: {1}.",
|
|
540
540
|
localizedMessages.default?.path,
|
|
541
541
|
getParseErrorMessage(error.error)
|
|
@@ -545,7 +545,7 @@ let ExtensionManifestTranslator = class ExtensionManifestTranslator extends Disp
|
|
|
545
545
|
}
|
|
546
546
|
else if (getNodeType(localizedMessages) !== 'object') {
|
|
547
547
|
this.logService.error(this.formatMessage(extensionLocation, ( localize(
|
|
548
|
-
|
|
548
|
+
445,
|
|
549
549
|
"Invalid format {0}: JSON object expected.",
|
|
550
550
|
localizedMessages.default?.path
|
|
551
551
|
))));
|
|
@@ -778,7 +778,7 @@ let ExtensionsScanner = class ExtensionsScanner extends ExtensionManifestTransla
|
|
|
778
778
|
}
|
|
779
779
|
catch (error) {
|
|
780
780
|
if (toFileOperationResult(error) !== FileOperationResult.FILE_NOT_FOUND) {
|
|
781
|
-
this.logService.error(this.formatMessage(extensionLocation, ( localize(
|
|
781
|
+
this.logService.error(this.formatMessage(extensionLocation, ( localize(446, "Cannot read file {0}: {1}.", manifestLocation.path, error.message))));
|
|
782
782
|
}
|
|
783
783
|
return null;
|
|
784
784
|
}
|
|
@@ -791,7 +791,7 @@ let ExtensionsScanner = class ExtensionsScanner extends ExtensionManifestTransla
|
|
|
791
791
|
parse(content, errors);
|
|
792
792
|
for (const e of errors) {
|
|
793
793
|
this.logService.error(this.formatMessage(extensionLocation, ( localize(
|
|
794
|
-
|
|
794
|
+
447,
|
|
795
795
|
"Failed to parse {0}: [{1}, {2}] {3}.",
|
|
796
796
|
manifestLocation.path,
|
|
797
797
|
e.offset,
|
|
@@ -803,7 +803,7 @@ let ExtensionsScanner = class ExtensionsScanner extends ExtensionManifestTransla
|
|
|
803
803
|
}
|
|
804
804
|
if (getNodeType(manifest) !== 'object') {
|
|
805
805
|
this.logService.error(this.formatMessage(extensionLocation, ( localize(
|
|
806
|
-
|
|
806
|
+
448,
|
|
807
807
|
"Invalid manifest file {0}: Not a JSON object.",
|
|
808
808
|
manifestLocation.path
|
|
809
809
|
))));
|