@codingame/monaco-vscode-api 21.6.0 → 22.0.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/missing-services.js +68 -78
- package/package.json +8 -8
- package/services.d.ts +4 -4
- package/services.js +5 -4
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/base/browser/dom.js +6 -3
- package/vscode/src/vs/base/browser/domSanitize.d.ts +8 -0
- package/vscode/src/vs/base/browser/domSanitize.js +49 -27
- package/vscode/src/vs/base/browser/domStylesheets.js +5 -1
- package/vscode/src/vs/base/browser/markdownRenderer.js +7 -5
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +2 -2
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +1 -1
- package/vscode/src/vs/base/browser/ui/menu/menu.js +1 -0
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.d.ts +1 -1
- package/vscode/src/vs/base/common/async.js +6 -0
- package/vscode/src/vs/base/common/cancellation.d.ts +21 -0
- package/vscode/src/vs/base/common/cancellation.js +42 -1
- package/vscode/src/vs/base/common/codicons.d.ts +3 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +3 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +3 -0
- package/vscode/src/vs/base/common/decorators/cancelPreviousCalls.d.ts +84 -0
- package/vscode/src/vs/base/common/decorators.d.ts +1 -1
- package/vscode/src/vs/base/common/htmlContent.d.ts +2 -0
- package/vscode/src/vs/base/common/htmlContent.js +9 -6
- package/vscode/src/vs/base/common/lifecycle.js +21 -7
- package/vscode/src/vs/base/common/numbers.d.ts +0 -45
- package/vscode/src/vs/base/common/oauth.d.ts +33 -0
- package/vscode/src/vs/base/common/oauth.js +79 -3
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +4 -0
- package/vscode/src/vs/base/common/observableInternal/index.js +3 -0
- package/vscode/src/vs/base/common/observableInternal/logging/debugGetDependencyGraph.d.ts +4 -0
- package/vscode/src/vs/base/common/observableInternal/logging/debugGetDependencyGraph.js +98 -0
- package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.d.ts +4 -0
- package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.js +8 -1
- package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.d.ts +1 -0
- package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.js +10 -0
- package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.d.ts +4 -0
- package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.js +3 -0
- package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.d.ts +1 -0
- package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.js +9 -0
- package/vscode/src/vs/base/common/product.d.ts +7 -1
- package/vscode/src/vs/base/common/strings.d.ts +0 -1
- package/vscode/src/vs/base/common/strings.js +9 -4
- package/vscode/src/vs/base/common/uriIpc.js +24 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentRich.js +26 -16
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentSimple.js +3 -3
- package/vscode/src/vs/editor/browser/services/hoverService/hover.css +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.d.ts +3 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +8 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +4 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.d.ts +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +26 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +1 -1
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +93 -85
- package/vscode/src/vs/editor/common/config/editorOptions.js +386 -351
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/core/ranges/lineRange.d.ts +3 -3
- package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +5 -1
- package/vscode/src/vs/editor/common/languages.js +56 -56
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +86 -85
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +86 -85
- package/vscode/src/vs/editor/common/standaloneStrings.js +47 -47
- package/vscode/src/vs/editor/common/textModelEditSource.d.ts +1 -0
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +9 -7
- package/vscode/src/vs/editor/common/viewModel/screenReaderSimpleModel.d.ts +1 -0
- 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 +29 -29
- 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/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/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 +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- 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/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +26 -26
- package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.contribution.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.contribution.js +8 -0
- package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.css +44 -0
- package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.d.ts +10 -0
- package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.js +81 -0
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +21 -20
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/format.js +3 -0
- 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/clickLinkGesture.d.ts +4 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js +20 -11
- 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/referencesTree.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/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +2 -1
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.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 +24 -24
- 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/inlayHints.js +2 -7
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +19 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +18 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +14 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +7 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +154 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +3 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +7 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +18 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/telemetry.d.ts +45 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/telemetry.js +7 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +16 -15
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +5 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +24 -21
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css +13 -4
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +36 -35
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +11 -11
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScrollController.js +3 -3
- 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 +18 -18
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/vscode/src/vs/editor/contrib/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.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +13 -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/stickyScroll/browser/stickyScrollController.js +12 -19
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +10 -1
- 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 +18 -18
- 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/suggest/browser/wordContextKey.js +1 -1
- 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/bannerController.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +26 -26
- 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/standalone/browser/quickInput/standaloneQuickInputService.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +0 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +1 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +9 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +13 -14
- 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/browser/toolbar.d.ts +1 -1
- package/vscode/src/vs/platform/actions/browser/toolbar.js +5 -5
- package/vscode/src/vs/platform/actions/common/actions.d.ts +2 -0
- package/vscode/src/vs/platform/actions/common/actions.js +2 -0
- 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/assignment/common/assignment.d.ts +6 -1
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +2 -2
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.d.ts +2 -0
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +32 -3
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.d.ts +0 -1
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +10 -11
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/dataChannel/browser/forwardingTelemetryService.d.ts +32 -0
- package/vscode/src/vs/platform/dataChannel/browser/forwardingTelemetryService.js +86 -0
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/environment/common/argv.d.ts +1 -0
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +19 -19
- 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/extensionManagement/common/implicitActivationEvents.d.ts +1 -3
- package/vscode/src/vs/platform/extensionManagement/common/implicitActivationEvents.js +1 -1
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +2 -1
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +4 -3
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +4 -3
- 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/markerService.js +2 -2
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.d.ts +10 -2
- package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.js +10 -2
- package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +3 -3
- package/vscode/src/vs/platform/notification/common/notification.js +3 -3
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +1 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +23 -15
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +47 -13
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +10 -61
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.d.ts +6 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.js +10 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +10 -5
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +4 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +10 -1
- package/vscode/src/vs/platform/request/common/request.js +34 -18
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +2 -3
- package/vscode/src/vs/platform/terminal/common/terminal.js +6 -7
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- 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/editorColors.js +95 -95
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +47 -47
- 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/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- 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/extHost.api.impl.js +11 -10
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +25 -24
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +4 -4
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +10 -18
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +5 -0
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +16 -4
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.d.ts +1 -3
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +9 -5
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +0 -3
- 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/extHostLanguageModelTools.js +9 -4
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +7 -2
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +97 -9
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +66 -62
- package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +2 -0
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +22 -0
- package/vscode/src/vs/workbench/api/common/extHostSecrets.d.ts +0 -1
- package/vscode/src/vs/workbench/api/common/extHostSecrets.js +0 -3
- 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.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +8 -8
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +53 -3
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.d.ts +2 -0
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +5 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +6 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +60 -9
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +18 -14
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +7 -7
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- 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 +262 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/contextkeys.d.ts +5 -7
- package/vscode/src/vs/workbench/browser/contextkeys.js +15 -43
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.js +73 -73
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +167 -167
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +175 -158
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextPickService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +15 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +61 -66
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.service.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +24 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.d.ts +28 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +35 -6
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +16 -6
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +11 -8
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +9 -2
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +10 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +8 -4
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +50 -42
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +23 -8
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.js +29 -29
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.js +4 -3
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +7 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- 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/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryTypes.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +16 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.d.ts +217 -60
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/common/history.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +7 -7
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +16 -3
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +18 -6
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +42 -8
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/testing/common/constants.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +12 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +2 -2
- package/vscode/src/vs/workbench/services/activity/common/activity.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +4 -4
- package/vscode/src/vs/workbench/services/authentication/common/authentication.js +2 -2
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +6 -6
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.d.ts +286 -0
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +861 -0
- package/vscode/src/vs/workbench/{contrib → services}/chat/common/chatEntitlementService.service.d.ts +8 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +87 -87
- package/vscode/src/vs/workbench/services/language/common/languageService.js +30 -30
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/textfile/common/encoding.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/userDataSync/common/userDataSync.js +13 -13
- package/vscode-dts/vscode.d.ts +92 -47
- package/vscode-dts/vscode.proposed.authenticationChallenges.d.ts +7 -80
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +14 -1
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +12 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +19 -0
- package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +19 -11
- package/vscode-dts/vscode.proposed.d.ts +1 -1
- package/vscode-dts/{vscode.proposed.secretStorageKeys.d.ts → vscode.proposed.devDeviceId.d.ts} +3 -4
- package/vscode-dts/vscode.proposed.languageModelCapabilities.d.ts +5 -0
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +2 -0
- package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +70 -16
- package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/frontMatterCodec/tokens/index.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/simpleCodec/tokens/tokens.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +0 -55
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +0 -91
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +0 -125
- /package/vscode/src/vs/workbench/{contrib → services}/chat/common/chatEntitlementService.service.js +0 -0
|
@@ -126,7 +126,7 @@ let HoverColorPickerParticipant = class HoverColorPickerParticipant {
|
|
|
126
126
|
return ( new RenderedHoverParts([renderedHoverPart]));
|
|
127
127
|
}
|
|
128
128
|
getAccessibleContent(hoverPart) {
|
|
129
|
-
return localize(
|
|
129
|
+
return localize(979, 'There is a color picker here.');
|
|
130
130
|
}
|
|
131
131
|
handleResize() {
|
|
132
132
|
this._colorPicker?.layout();
|
|
@@ -12,8 +12,8 @@ class ShowOrFocusStandaloneColorPicker extends EditorAction2 {
|
|
|
12
12
|
super({
|
|
13
13
|
id: 'editor.action.showOrFocusStandaloneColorPicker',
|
|
14
14
|
title: {
|
|
15
|
-
...( localize2(
|
|
16
|
-
mnemonicTitle: ( localize(
|
|
15
|
+
...( localize2(980, "Show or Focus Standalone Color Picker")),
|
|
16
|
+
mnemonicTitle: ( localize(981, "&&Show or Focus Standalone Color Picker")),
|
|
17
17
|
},
|
|
18
18
|
precondition: undefined,
|
|
19
19
|
menu: [
|
|
@@ -21,7 +21,7 @@ class ShowOrFocusStandaloneColorPicker extends EditorAction2 {
|
|
|
21
21
|
],
|
|
22
22
|
metadata: {
|
|
23
23
|
description: ( localize2(
|
|
24
|
-
|
|
24
|
+
982,
|
|
25
25
|
"Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors."
|
|
26
26
|
)),
|
|
27
27
|
}
|
|
@@ -35,14 +35,14 @@ class HideStandaloneColorPicker extends EditorAction {
|
|
|
35
35
|
constructor() {
|
|
36
36
|
super({
|
|
37
37
|
id: 'editor.action.hideColorPicker',
|
|
38
|
-
label: ( localize2(
|
|
38
|
+
label: ( localize2(983, "Hide the Color Picker")),
|
|
39
39
|
precondition: ( EditorContextKeys.standaloneColorPickerVisible.isEqualTo(true)),
|
|
40
40
|
kbOpts: {
|
|
41
41
|
primary: KeyCode.Escape,
|
|
42
42
|
weight: KeybindingWeight.EditorContrib
|
|
43
43
|
},
|
|
44
44
|
metadata: {
|
|
45
|
-
description: ( localize2(
|
|
45
|
+
description: ( localize2(984, "Hide the standalone color picker.")),
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
}
|
|
@@ -54,14 +54,14 @@ class InsertColorWithStandaloneColorPicker extends EditorAction {
|
|
|
54
54
|
constructor() {
|
|
55
55
|
super({
|
|
56
56
|
id: 'editor.action.insertColorWithStandaloneColorPicker',
|
|
57
|
-
label: ( localize2(
|
|
57
|
+
label: ( localize2(985, "Insert Color with Standalone Color Picker")),
|
|
58
58
|
precondition: ( EditorContextKeys.standaloneColorPickerFocused.isEqualTo(true)),
|
|
59
59
|
kbOpts: {
|
|
60
60
|
primary: KeyCode.Enter,
|
|
61
61
|
weight: KeybindingWeight.EditorContrib
|
|
62
62
|
},
|
|
63
63
|
metadata: {
|
|
64
|
-
description: ( localize2(
|
|
64
|
+
description: ( localize2(986, "Insert hex/rgb/hsl colors with the focused standalone color picker.")),
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
}
|
|
@@ -60,7 +60,7 @@ class ToggleCommentLineAction extends CommentLineAction {
|
|
|
60
60
|
constructor() {
|
|
61
61
|
super(Type.Toggle, {
|
|
62
62
|
id: 'editor.action.commentLine',
|
|
63
|
-
label: ( localize2(
|
|
63
|
+
label: ( localize2(987, "Toggle Line Comment")),
|
|
64
64
|
precondition: EditorContextKeys.writable,
|
|
65
65
|
kbOpts: {
|
|
66
66
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -70,7 +70,7 @@ class ToggleCommentLineAction extends CommentLineAction {
|
|
|
70
70
|
menuOpts: {
|
|
71
71
|
menuId: MenuId.MenubarEditMenu,
|
|
72
72
|
group: '5_insert',
|
|
73
|
-
title: ( localize(
|
|
73
|
+
title: ( localize(988, "&&Toggle Line Comment")),
|
|
74
74
|
order: 1
|
|
75
75
|
}
|
|
76
76
|
});
|
|
@@ -80,7 +80,7 @@ class AddLineCommentAction extends CommentLineAction {
|
|
|
80
80
|
constructor() {
|
|
81
81
|
super(Type.ForceAdd, {
|
|
82
82
|
id: 'editor.action.addCommentLine',
|
|
83
|
-
label: ( localize2(
|
|
83
|
+
label: ( localize2(989, "Add Line Comment")),
|
|
84
84
|
precondition: EditorContextKeys.writable,
|
|
85
85
|
kbOpts: {
|
|
86
86
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -94,7 +94,7 @@ class RemoveLineCommentAction extends CommentLineAction {
|
|
|
94
94
|
constructor() {
|
|
95
95
|
super(Type.ForceRemove, {
|
|
96
96
|
id: 'editor.action.removeCommentLine',
|
|
97
|
-
label: ( localize2(
|
|
97
|
+
label: ( localize2(990, "Remove Line Comment")),
|
|
98
98
|
precondition: EditorContextKeys.writable,
|
|
99
99
|
kbOpts: {
|
|
100
100
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -108,7 +108,7 @@ class BlockCommentAction extends EditorAction {
|
|
|
108
108
|
constructor() {
|
|
109
109
|
super({
|
|
110
110
|
id: 'editor.action.blockComment',
|
|
111
|
-
label: ( localize2(
|
|
111
|
+
label: ( localize2(991, "Toggle Block Comment")),
|
|
112
112
|
precondition: EditorContextKeys.writable,
|
|
113
113
|
kbOpts: {
|
|
114
114
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -119,7 +119,7 @@ class BlockCommentAction extends EditorAction {
|
|
|
119
119
|
menuOpts: {
|
|
120
120
|
menuId: MenuId.MenubarEditMenu,
|
|
121
121
|
group: '5_insert',
|
|
122
|
-
title: ( localize(
|
|
122
|
+
title: ( localize(992, "Toggle &&Block Comment")),
|
|
123
123
|
order: 2
|
|
124
124
|
}
|
|
125
125
|
});
|
|
@@ -232,7 +232,7 @@ let ContextMenuController = class ContextMenuController {
|
|
|
232
232
|
};
|
|
233
233
|
const actions = [];
|
|
234
234
|
actions.push(createAction({
|
|
235
|
-
label: ( localize(
|
|
235
|
+
label: ( localize(993, "Minimap")),
|
|
236
236
|
checked: minimapOptions.enabled,
|
|
237
237
|
run: () => {
|
|
238
238
|
this._configurationService.updateValue(`editor.minimap.enabled`, !minimapOptions.enabled);
|
|
@@ -240,28 +240,28 @@ let ContextMenuController = class ContextMenuController {
|
|
|
240
240
|
}));
|
|
241
241
|
actions.push(( new Separator()));
|
|
242
242
|
actions.push(createAction({
|
|
243
|
-
label: ( localize(
|
|
243
|
+
label: ( localize(994, "Render Characters")),
|
|
244
244
|
enabled: minimapOptions.enabled,
|
|
245
245
|
checked: minimapOptions.renderCharacters,
|
|
246
246
|
run: () => {
|
|
247
247
|
this._configurationService.updateValue(`editor.minimap.renderCharacters`, !minimapOptions.renderCharacters);
|
|
248
248
|
}
|
|
249
249
|
}));
|
|
250
|
-
actions.push(createEnumAction(( localize(
|
|
251
|
-
label: ( localize(
|
|
250
|
+
actions.push(createEnumAction(( localize(995, "Vertical size")), minimapOptions.enabled, 'editor.minimap.size', minimapOptions.size, [{
|
|
251
|
+
label: ( localize(996, "Proportional")),
|
|
252
252
|
value: 'proportional'
|
|
253
253
|
}, {
|
|
254
|
-
label: ( localize(
|
|
254
|
+
label: ( localize(997, "Fill")),
|
|
255
255
|
value: 'fill'
|
|
256
256
|
}, {
|
|
257
|
-
label: ( localize(
|
|
257
|
+
label: ( localize(998, "Fit")),
|
|
258
258
|
value: 'fit'
|
|
259
259
|
}]));
|
|
260
|
-
actions.push(createEnumAction(( localize(
|
|
261
|
-
label: ( localize(
|
|
260
|
+
actions.push(createEnumAction(( localize(999, "Slider")), minimapOptions.enabled, 'editor.minimap.showSlider', minimapOptions.showSlider, [{
|
|
261
|
+
label: ( localize(1000, "Mouse Over")),
|
|
262
262
|
value: 'mouseover'
|
|
263
263
|
}, {
|
|
264
|
-
label: ( localize(
|
|
264
|
+
label: ( localize(1001, "Always")),
|
|
265
265
|
value: 'always'
|
|
266
266
|
}]));
|
|
267
267
|
const useShadowDOM = this._editor.getOption(EditorOption.useShadowDOM) && !isIOS;
|
|
@@ -299,7 +299,7 @@ class ShowContextMenu extends EditorAction {
|
|
|
299
299
|
constructor() {
|
|
300
300
|
super({
|
|
301
301
|
id: 'editor.action.showContextMenu',
|
|
302
|
-
label: ( localize2(
|
|
302
|
+
label: ( localize2(1002, "Show Editor Context Menu")),
|
|
303
303
|
precondition: undefined,
|
|
304
304
|
kbOpts: {
|
|
305
305
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -99,7 +99,7 @@ class CursorUndo extends EditorAction {
|
|
|
99
99
|
constructor() {
|
|
100
100
|
super({
|
|
101
101
|
id: 'cursorUndo',
|
|
102
|
-
label: ( localize2(
|
|
102
|
+
label: ( localize2(1003, "Cursor Undo")),
|
|
103
103
|
precondition: undefined,
|
|
104
104
|
kbOpts: {
|
|
105
105
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -116,7 +116,7 @@ class CursorRedo extends EditorAction {
|
|
|
116
116
|
constructor() {
|
|
117
117
|
super({
|
|
118
118
|
id: 'cursorRedo',
|
|
119
|
-
label: ( localize2(
|
|
119
|
+
label: ( localize2(1004, "Cursor Redo")),
|
|
120
120
|
precondition: undefined
|
|
121
121
|
});
|
|
122
122
|
}
|
|
@@ -52,7 +52,7 @@ registerEditorAction(class PasteAsAction extends EditorAction {
|
|
|
52
52
|
kind: {
|
|
53
53
|
type: 'string',
|
|
54
54
|
description: ( localize(
|
|
55
|
-
|
|
55
|
+
1005,
|
|
56
56
|
"The kind of the paste edit to try pasting with.\nIf there are multiple edits for this kind, the editor will show a picker. If there are no edits of this kind, the editor will show an error message."
|
|
57
57
|
)),
|
|
58
58
|
}
|
|
@@ -65,7 +65,7 @@ registerEditorAction(class PasteAsAction extends EditorAction {
|
|
|
65
65
|
preferences: {
|
|
66
66
|
type: 'array',
|
|
67
67
|
description: ( localize(
|
|
68
|
-
|
|
68
|
+
1006,
|
|
69
69
|
"List of preferred paste edit kind to try applying.\nThe first edit matching the preferences will be applied."
|
|
70
70
|
)),
|
|
71
71
|
items: { type: 'string' }
|
|
@@ -77,7 +77,7 @@ registerEditorAction(class PasteAsAction extends EditorAction {
|
|
|
77
77
|
constructor() {
|
|
78
78
|
super({
|
|
79
79
|
id: pasteAsCommandId,
|
|
80
|
-
label: ( localize2(
|
|
80
|
+
label: ( localize2(1007, "Paste As...")),
|
|
81
81
|
precondition: EditorContextKeys.writable,
|
|
82
82
|
metadata: {
|
|
83
83
|
description: 'Paste as',
|
|
@@ -105,7 +105,7 @@ registerEditorAction(class extends EditorAction {
|
|
|
105
105
|
constructor() {
|
|
106
106
|
super({
|
|
107
107
|
id: 'editor.action.pasteAsText',
|
|
108
|
-
label: ( localize2(
|
|
108
|
+
label: ( localize2(1008, "Paste as Text")),
|
|
109
109
|
precondition: EditorContextKeys.writable,
|
|
110
110
|
});
|
|
111
111
|
}
|
|
@@ -40,7 +40,7 @@ import { PostEditWidgetManager } from './postEditWidget.js';
|
|
|
40
40
|
var CopyPasteController_1;
|
|
41
41
|
const changePasteTypeCommandId = 'editor.changePasteType';
|
|
42
42
|
const pasteAsPreferenceConfig = 'editor.pasteAs.preferences';
|
|
43
|
-
const pasteWidgetVisibleCtx = ( new RawContextKey('pasteWidgetVisible', false, ( localize(
|
|
43
|
+
const pasteWidgetVisibleCtx = ( new RawContextKey('pasteWidgetVisible', false, ( localize(1009, "Whether the paste widget is showing"))));
|
|
44
44
|
const vscodeClipboardMime = 'application/vnd.code.copymetadata';
|
|
45
45
|
let CopyPasteController = class CopyPasteController extends Disposable {
|
|
46
46
|
static { CopyPasteController_1 = this; }
|
|
@@ -67,7 +67,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
67
67
|
this._register(addDisposableListener(container, 'cut', e => this.handleCopy(e)));
|
|
68
68
|
this._register(addDisposableListener(container, 'paste', e => this.handlePaste(e), true));
|
|
69
69
|
this._pasteProgressManager = this._register(( new InlineProgressManager('pasteIntoEditor', editor, instantiationService)));
|
|
70
|
-
this._postPasteWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'pasteIntoEditor', editor, pasteWidgetVisibleCtx, { id: changePasteTypeCommandId, label: ( localize(
|
|
70
|
+
this._postPasteWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'pasteIntoEditor', editor, pasteWidgetVisibleCtx, { id: changePasteTypeCommandId, label: ( localize(1010, "Show paste options...")) }, () => CopyPasteController_1._configureDefaultAction ? [CopyPasteController_1._configureDefaultAction] : []));
|
|
71
71
|
}
|
|
72
72
|
changePasteType() {
|
|
73
73
|
this._postPasteWidgetManager.tryShowSelector();
|
|
@@ -233,9 +233,9 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
233
233
|
const kindLabel = 'only' in preference
|
|
234
234
|
? preference.only.value
|
|
235
235
|
: 'preferences' in preference
|
|
236
|
-
? (preference.preferences.length ? ( preference.preferences.map(preference => preference.value)).join(', ') : ( localize(
|
|
236
|
+
? (preference.preferences.length ? ( preference.preferences.map(preference => preference.value)).join(', ') : ( localize(1011, "empty")))
|
|
237
237
|
: preference.providerId;
|
|
238
|
-
MessageController.get(this._editor)?.showMessage(( localize(
|
|
238
|
+
MessageController.get(this._editor)?.showMessage(( localize(1012, "No paste edits for '{0}' found", kindLabel)), selections[0].getStartPosition());
|
|
239
239
|
}
|
|
240
240
|
doPasteInline(allProviders, selections, dataTransfer, metadata, clipboardEvent) {
|
|
241
241
|
this._logService.trace('CopyPasteController#doPasteInline');
|
|
@@ -288,7 +288,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
288
288
|
}
|
|
289
289
|
const resolveP = edit.provider.resolveDocumentPasteEdit(edit, resolveToken);
|
|
290
290
|
const showP = ( new DeferredPromise());
|
|
291
|
-
const resolved = await this._pasteProgressManager.showWhile(selections[0].getEndPosition(), ( localize(
|
|
291
|
+
const resolved = await this._pasteProgressManager.showWhile(selections[0].getEndPosition(), ( localize(1013, "Resolving paste edit for '{0}'. Click to cancel", edit.title)), raceCancellation(Promise.race([showP.p, resolveP]), resolveToken), {
|
|
292
292
|
cancel: () => showP.cancel()
|
|
293
293
|
}, 0);
|
|
294
294
|
if (resolved) {
|
|
@@ -307,7 +307,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
});
|
|
310
|
-
this._pasteProgressManager.showWhile(selections[0].getEndPosition(), ( localize(
|
|
310
|
+
this._pasteProgressManager.showWhile(selections[0].getEndPosition(), ( localize(1014, "Running paste handlers. Click to cancel and do basic paste")), p, {
|
|
311
311
|
cancel: async () => {
|
|
312
312
|
p.cancel();
|
|
313
313
|
if (editorStateCts.token.isCancellationRequested) {
|
|
@@ -381,7 +381,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
381
381
|
else {
|
|
382
382
|
const configureDefaultItem = {
|
|
383
383
|
id: 'editor.pasteAs.default',
|
|
384
|
-
label: ( localize(
|
|
384
|
+
label: ( localize(1015, "Configure default paste action")),
|
|
385
385
|
edit: undefined,
|
|
386
386
|
};
|
|
387
387
|
const selected = await this._quickInputService.pick([
|
|
@@ -398,7 +398,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
398
398
|
}
|
|
399
399
|
] : [])
|
|
400
400
|
], {
|
|
401
|
-
placeHolder: ( localize(
|
|
401
|
+
placeHolder: ( localize(1016, "Select Paste Action")),
|
|
402
402
|
});
|
|
403
403
|
if (selected === configureDefaultItem) {
|
|
404
404
|
CopyPasteController_1._configureDefaultAction?.run();
|
|
@@ -421,7 +421,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
421
421
|
});
|
|
422
422
|
this._progressService.withProgress({
|
|
423
423
|
location: ProgressLocation.Window,
|
|
424
|
-
title: ( localize(
|
|
424
|
+
title: ( localize(1017, "Running paste handlers")),
|
|
425
425
|
}, () => p);
|
|
426
426
|
}
|
|
427
427
|
setCopyMetadata(dataTransfer, metadata) {
|
|
@@ -60,7 +60,7 @@ class DefaultTextPasteOrDropEditProvider extends SimplePasteAndDropProvider {
|
|
|
60
60
|
const insertText = await textEntry.asString();
|
|
61
61
|
return {
|
|
62
62
|
handledMimeType: Mimes.text,
|
|
63
|
-
title: ( localize(
|
|
63
|
+
title: ( localize(1018, "Insert Plain Text")),
|
|
64
64
|
insertText,
|
|
65
65
|
kind: this.kind,
|
|
66
66
|
};
|
|
@@ -92,13 +92,13 @@ class PathProvider extends SimplePasteAndDropProvider {
|
|
|
92
92
|
let label;
|
|
93
93
|
if (uriCount > 0) {
|
|
94
94
|
label = entries.length > 1
|
|
95
|
-
? ( localize(
|
|
96
|
-
: ( localize(
|
|
95
|
+
? ( localize(1019, "Insert Uris"))
|
|
96
|
+
: ( localize(1020, "Insert Uri"));
|
|
97
97
|
}
|
|
98
98
|
else {
|
|
99
99
|
label = entries.length > 1
|
|
100
|
-
? ( localize(
|
|
101
|
-
: ( localize(
|
|
100
|
+
? ( localize(1021, "Insert Paths"))
|
|
101
|
+
: ( localize(1022, "Insert Path"));
|
|
102
102
|
}
|
|
103
103
|
return {
|
|
104
104
|
handledMimeType: Mimes.uriList,
|
|
@@ -131,8 +131,8 @@ let RelativePathProvider = class RelativePathProvider extends SimplePasteAndDrop
|
|
|
131
131
|
handledMimeType: Mimes.uriList,
|
|
132
132
|
insertText: relativeUris.join(' '),
|
|
133
133
|
title: entries.length > 1
|
|
134
|
-
? ( localize(
|
|
135
|
-
: ( localize(
|
|
134
|
+
? ( localize(1023, "Insert Relative Paths"))
|
|
135
|
+
: ( localize(1024, "Insert Relative Path")),
|
|
136
136
|
kind: this.kind,
|
|
137
137
|
};
|
|
138
138
|
}
|
|
@@ -162,7 +162,7 @@ class PasteHtmlProvider {
|
|
|
162
162
|
edits: [{
|
|
163
163
|
insertText: htmlText,
|
|
164
164
|
yieldTo: this._yieldTo,
|
|
165
|
-
title: ( localize(
|
|
165
|
+
title: ( localize(1025, 'Insert HTML')),
|
|
166
166
|
kind: this.kind,
|
|
167
167
|
}],
|
|
168
168
|
};
|
|
@@ -25,7 +25,7 @@ import { PostEditWidgetManager } from './postEditWidget.js';
|
|
|
25
25
|
var DropIntoEditorController_1;
|
|
26
26
|
const dropAsPreferenceConfig = 'editor.dropIntoEditor.preferences';
|
|
27
27
|
const changeDropTypeCommandId = 'editor.changeDropType';
|
|
28
|
-
const dropWidgetVisibleCtx = ( new RawContextKey('dropWidgetVisible', false, ( localize(
|
|
28
|
+
const dropWidgetVisibleCtx = ( new RawContextKey('dropWidgetVisible', false, ( localize(1026, "Whether the drop widget is showing"))));
|
|
29
29
|
let DropIntoEditorController = class DropIntoEditorController extends Disposable {
|
|
30
30
|
static { DropIntoEditorController_1 = this; }
|
|
31
31
|
static { this.ID = 'editor.contrib.dropIntoEditorController'; }
|
|
@@ -42,7 +42,7 @@ let DropIntoEditorController = class DropIntoEditorController extends Disposable
|
|
|
42
42
|
this._treeViewsDragAndDropService = _treeViewsDragAndDropService;
|
|
43
43
|
this.treeItemsTransfer = LocalSelectionTransfer.getInstance();
|
|
44
44
|
this._dropProgressManager = this._register(instantiationService.createInstance(InlineProgressManager, 'dropIntoEditor', editor));
|
|
45
|
-
this._postDropWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'dropIntoEditor', editor, dropWidgetVisibleCtx, { id: changeDropTypeCommandId, label: ( localize(
|
|
45
|
+
this._postDropWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'dropIntoEditor', editor, dropWidgetVisibleCtx, { id: changeDropTypeCommandId, label: ( localize(1027, "Show drop options...")) }, () => DropIntoEditorController_1._configureDefaultAction ? [DropIntoEditorController_1._configureDefaultAction] : []));
|
|
46
46
|
this._register(editor.onDropIntoEditor(e => this.onDropIntoEditor(editor, e.position, e.event)));
|
|
47
47
|
}
|
|
48
48
|
clearWidgets() {
|
|
@@ -95,7 +95,7 @@ let DropIntoEditorController = class DropIntoEditorController extends Disposable
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
|
-
this._dropProgressManager.showWhile(position, ( localize(
|
|
98
|
+
this._dropProgressManager.showWhile(position, ( localize(1028, "Running drop handlers. Click to cancel")), p, { cancel: () => p.cancel() });
|
|
99
99
|
DropIntoEditorController_1._currentDropOperation = p;
|
|
100
100
|
}
|
|
101
101
|
async getDropEdits(providers, model, position, dataTransfer, token) {
|
|
@@ -162,7 +162,7 @@ let PostEditWidgetManager = class PostEditWidgetManager extends Disposable {
|
|
|
162
162
|
resolvedEdit = await raceCancellationError(resolve(edit, editorStateCts.token), editorStateCts.token);
|
|
163
163
|
}
|
|
164
164
|
catch (e) {
|
|
165
|
-
return handleError(e, ( localize(
|
|
165
|
+
return handleError(e, ( localize(1029, "Error resolving edit '{0}':\n{1}", edit.title, toErrorMessage(e))));
|
|
166
166
|
}
|
|
167
167
|
finally {
|
|
168
168
|
editorStateCts.dispose();
|
|
@@ -184,7 +184,7 @@ let PostEditWidgetManager = class PostEditWidgetManager extends Disposable {
|
|
|
184
184
|
editRange = model.getDecorationRange(editTrackingDecoration[0]);
|
|
185
185
|
}
|
|
186
186
|
catch (e) {
|
|
187
|
-
return handleError(e, ( localize(
|
|
187
|
+
return handleError(e, ( localize(1030, "Error applying edit '{0}':\n{1}", edit.title, toErrorMessage(e))));
|
|
188
188
|
}
|
|
189
189
|
finally {
|
|
190
190
|
model.deltaDecorations(editTrackingDecoration, []);
|
|
@@ -11,7 +11,7 @@ import { localize } from '../../../../nls.js';
|
|
|
11
11
|
import { IEditorCancellationTokens } from './keybindingCancellation.service.js';
|
|
12
12
|
|
|
13
13
|
const ctxCancellableOperation = ( new RawContextKey('cancellableOperation', false, ( localize(
|
|
14
|
-
|
|
14
|
+
1031,
|
|
15
15
|
'Whether the editor runs a cancellable operation, e.g. like \'Peek References\''
|
|
16
16
|
))));
|
|
17
17
|
class EditorCancellationTokens {
|
|
@@ -309,7 +309,7 @@ let CommonFindController = class CommonFindController extends Disposable {
|
|
|
309
309
|
replaceAll() {
|
|
310
310
|
if (this._model) {
|
|
311
311
|
if (this._editor.getModel()?.isTooLargeForHeapOperation()) {
|
|
312
|
-
this._notificationService.warn(( localize(
|
|
312
|
+
this._notificationService.warn(( localize(1032, "The file is too large to perform a replace all operation.")));
|
|
313
313
|
return false;
|
|
314
314
|
}
|
|
315
315
|
this._model.replaceAll();
|
|
@@ -431,7 +431,7 @@ FindController = ( __decorate([
|
|
|
431
431
|
], FindController));
|
|
432
432
|
const StartFindAction = registerMultiEditorAction(( new MultiEditorAction({
|
|
433
433
|
id: FIND_IDS.StartFindAction,
|
|
434
|
-
label: ( localize2(
|
|
434
|
+
label: ( localize2(1033, "Find")),
|
|
435
435
|
precondition: ( ContextKeyExpr.or(EditorContextKeys.focus, ( ContextKeyExpr.has('editorIsOpen')))),
|
|
436
436
|
kbOpts: {
|
|
437
437
|
kbExpr: null,
|
|
@@ -441,7 +441,7 @@ const StartFindAction = registerMultiEditorAction(( new MultiEditorAction({
|
|
|
441
441
|
menuOpts: {
|
|
442
442
|
menuId: MenuId.MenubarEditMenu,
|
|
443
443
|
group: '3_find',
|
|
444
|
-
title: ( localize(
|
|
444
|
+
title: ( localize(1034, "&&Find")),
|
|
445
445
|
order: 1
|
|
446
446
|
}
|
|
447
447
|
})));
|
|
@@ -482,7 +482,7 @@ class StartFindWithArgsAction extends EditorAction {
|
|
|
482
482
|
constructor() {
|
|
483
483
|
super({
|
|
484
484
|
id: FIND_IDS.StartFindWithArgs,
|
|
485
|
-
label: ( localize2(
|
|
485
|
+
label: ( localize2(1035, "Find with Arguments")),
|
|
486
486
|
precondition: undefined,
|
|
487
487
|
kbOpts: {
|
|
488
488
|
kbExpr: null,
|
|
@@ -522,7 +522,7 @@ class StartFindWithSelectionAction extends EditorAction {
|
|
|
522
522
|
constructor() {
|
|
523
523
|
super({
|
|
524
524
|
id: FIND_IDS.StartFindWithSelection,
|
|
525
|
-
label: ( localize2(
|
|
525
|
+
label: ( localize2(1036, "Find with Selection")),
|
|
526
526
|
precondition: undefined,
|
|
527
527
|
kbOpts: {
|
|
528
528
|
kbExpr: null,
|
|
@@ -573,7 +573,7 @@ class NextMatchFindAction extends MatchFindAction {
|
|
|
573
573
|
constructor() {
|
|
574
574
|
super({
|
|
575
575
|
id: FIND_IDS.NextMatchFindAction,
|
|
576
|
-
label: ( localize2(
|
|
576
|
+
label: ( localize2(1037, "Find Next")),
|
|
577
577
|
precondition: undefined,
|
|
578
578
|
kbOpts: [{
|
|
579
579
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -600,7 +600,7 @@ class PreviousMatchFindAction extends MatchFindAction {
|
|
|
600
600
|
constructor() {
|
|
601
601
|
super({
|
|
602
602
|
id: FIND_IDS.PreviousMatchFindAction,
|
|
603
|
-
label: ( localize2(
|
|
603
|
+
label: ( localize2(1038, "Find Previous")),
|
|
604
604
|
precondition: undefined,
|
|
605
605
|
kbOpts: [{
|
|
606
606
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -623,7 +623,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
623
623
|
constructor() {
|
|
624
624
|
super({
|
|
625
625
|
id: FIND_IDS.GoToMatchFindAction,
|
|
626
|
-
label: ( localize2(
|
|
626
|
+
label: ( localize2(1039, "Go to Match...")),
|
|
627
627
|
precondition: CONTEXT_FIND_WIDGET_VISIBLE
|
|
628
628
|
});
|
|
629
629
|
this._highlightDecorations = [];
|
|
@@ -638,7 +638,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
638
638
|
const notificationService = accessor.get(INotificationService);
|
|
639
639
|
notificationService.notify({
|
|
640
640
|
severity: Severity$1.Warning,
|
|
641
|
-
message: ( localize(
|
|
641
|
+
message: ( localize(1040, "No matches. Try searching for something else."))
|
|
642
642
|
});
|
|
643
643
|
return;
|
|
644
644
|
}
|
|
@@ -646,7 +646,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
646
646
|
const disposables = ( new DisposableStore());
|
|
647
647
|
const inputBox = disposables.add(quickInputService.createInputBox());
|
|
648
648
|
inputBox.placeholder = ( localize(
|
|
649
|
-
|
|
649
|
+
1041,
|
|
650
650
|
"Type a number to go to a specific match (between 1 and {0})",
|
|
651
651
|
matchesCount
|
|
652
652
|
));
|
|
@@ -676,7 +676,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
676
676
|
}
|
|
677
677
|
else {
|
|
678
678
|
inputBox.validationMessage = ( localize(
|
|
679
|
-
|
|
679
|
+
1042,
|
|
680
680
|
"Please type a number between 1 and {0}",
|
|
681
681
|
controller.getState().matchesCount
|
|
682
682
|
));
|
|
@@ -694,7 +694,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
694
694
|
}
|
|
695
695
|
else {
|
|
696
696
|
inputBox.validationMessage = ( localize(
|
|
697
|
-
|
|
697
|
+
1042,
|
|
698
698
|
"Please type a number between 1 and {0}",
|
|
699
699
|
controller.getState().matchesCount
|
|
700
700
|
));
|
|
@@ -765,7 +765,7 @@ class NextSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
765
765
|
constructor() {
|
|
766
766
|
super({
|
|
767
767
|
id: FIND_IDS.NextSelectionMatchFindAction,
|
|
768
|
-
label: ( localize2(
|
|
768
|
+
label: ( localize2(1043, "Find Next Selection")),
|
|
769
769
|
precondition: undefined,
|
|
770
770
|
kbOpts: {
|
|
771
771
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -782,7 +782,7 @@ class PreviousSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
782
782
|
constructor() {
|
|
783
783
|
super({
|
|
784
784
|
id: FIND_IDS.PreviousSelectionMatchFindAction,
|
|
785
|
-
label: ( localize2(
|
|
785
|
+
label: ( localize2(1044, "Find Previous Selection")),
|
|
786
786
|
precondition: undefined,
|
|
787
787
|
kbOpts: {
|
|
788
788
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -797,7 +797,7 @@ class PreviousSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
797
797
|
}
|
|
798
798
|
const StartFindReplaceAction = registerMultiEditorAction(( new MultiEditorAction({
|
|
799
799
|
id: FIND_IDS.StartFindReplaceAction,
|
|
800
|
-
label: ( localize2(
|
|
800
|
+
label: ( localize2(1045, "Replace")),
|
|
801
801
|
precondition: ( ContextKeyExpr.or(EditorContextKeys.focus, ( ContextKeyExpr.has('editorIsOpen')))),
|
|
802
802
|
kbOpts: {
|
|
803
803
|
kbExpr: null,
|
|
@@ -808,7 +808,7 @@ const StartFindReplaceAction = registerMultiEditorAction(( new MultiEditorAction
|
|
|
808
808
|
menuOpts: {
|
|
809
809
|
menuId: MenuId.MenubarEditMenu,
|
|
810
810
|
group: '3_find',
|
|
811
|
-
title: ( localize(
|
|
811
|
+
title: ( localize(1046, "&&Replace")),
|
|
812
812
|
order: 2
|
|
813
813
|
}
|
|
814
814
|
})));
|
|
@@ -41,32 +41,32 @@ import { defaultToggleStyles, defaultInputBoxStyles } from '../../../../platform
|
|
|
41
41
|
import { createInstantHoverDelegate, getDefaultHoverDelegate } from '../../../../base/browser/ui/hover/hoverDelegateFactory.js';
|
|
42
42
|
|
|
43
43
|
registerCss(findWidget);
|
|
44
|
-
const findCollapsedIcon = registerIcon('find-collapsed', Codicon.chevronRight, ( localize(
|
|
45
|
-
const findExpandedIcon = registerIcon('find-expanded', Codicon.chevronDown, ( localize(
|
|
46
|
-
const findSelectionIcon = registerIcon('find-selection', Codicon.selection, ( localize(
|
|
47
|
-
const findReplaceIcon = registerIcon('find-replace', Codicon.replace, ( localize(
|
|
48
|
-
const findReplaceAllIcon = registerIcon('find-replace-all', Codicon.replaceAll, ( localize(
|
|
49
|
-
const findPreviousMatchIcon = registerIcon('find-previous-match', Codicon.arrowUp, ( localize(
|
|
50
|
-
const findNextMatchIcon = registerIcon('find-next-match', Codicon.arrowDown, ( localize(
|
|
51
|
-
const NLS_FIND_DIALOG_LABEL = ( localize(
|
|
52
|
-
const NLS_FIND_INPUT_LABEL = ( localize(
|
|
53
|
-
const NLS_FIND_INPUT_PLACEHOLDER = ( localize(
|
|
54
|
-
const NLS_PREVIOUS_MATCH_BTN_LABEL = ( localize(
|
|
55
|
-
const NLS_NEXT_MATCH_BTN_LABEL = ( localize(
|
|
56
|
-
const NLS_TOGGLE_SELECTION_FIND_TITLE = ( localize(
|
|
57
|
-
const NLS_CLOSE_BTN_LABEL = ( localize(
|
|
58
|
-
const NLS_REPLACE_INPUT_LABEL = ( localize(
|
|
59
|
-
const NLS_REPLACE_INPUT_PLACEHOLDER = ( localize(
|
|
60
|
-
const NLS_REPLACE_BTN_LABEL = ( localize(
|
|
61
|
-
const NLS_REPLACE_ALL_BTN_LABEL = ( localize(
|
|
62
|
-
const NLS_TOGGLE_REPLACE_MODE_BTN_LABEL = ( localize(
|
|
44
|
+
const findCollapsedIcon = registerIcon('find-collapsed', Codicon.chevronRight, ( localize(1047, 'Icon to indicate that the editor find widget is collapsed.')));
|
|
45
|
+
const findExpandedIcon = registerIcon('find-expanded', Codicon.chevronDown, ( localize(1048, 'Icon to indicate that the editor find widget is expanded.')));
|
|
46
|
+
const findSelectionIcon = registerIcon('find-selection', Codicon.selection, ( localize(1049, 'Icon for \'Find in Selection\' in the editor find widget.')));
|
|
47
|
+
const findReplaceIcon = registerIcon('find-replace', Codicon.replace, ( localize(1050, 'Icon for \'Replace\' in the editor find widget.')));
|
|
48
|
+
const findReplaceAllIcon = registerIcon('find-replace-all', Codicon.replaceAll, ( localize(1051, 'Icon for \'Replace All\' in the editor find widget.')));
|
|
49
|
+
const findPreviousMatchIcon = registerIcon('find-previous-match', Codicon.arrowUp, ( localize(1052, 'Icon for \'Find Previous\' in the editor find widget.')));
|
|
50
|
+
const findNextMatchIcon = registerIcon('find-next-match', Codicon.arrowDown, ( localize(1053, 'Icon for \'Find Next\' in the editor find widget.')));
|
|
51
|
+
const NLS_FIND_DIALOG_LABEL = ( localize(1054, "Find / Replace"));
|
|
52
|
+
const NLS_FIND_INPUT_LABEL = ( localize(1055, "Find"));
|
|
53
|
+
const NLS_FIND_INPUT_PLACEHOLDER = ( localize(1056, "Find"));
|
|
54
|
+
const NLS_PREVIOUS_MATCH_BTN_LABEL = ( localize(1057, "Previous Match"));
|
|
55
|
+
const NLS_NEXT_MATCH_BTN_LABEL = ( localize(1058, "Next Match"));
|
|
56
|
+
const NLS_TOGGLE_SELECTION_FIND_TITLE = ( localize(1059, "Find in Selection"));
|
|
57
|
+
const NLS_CLOSE_BTN_LABEL = ( localize(1060, "Close"));
|
|
58
|
+
const NLS_REPLACE_INPUT_LABEL = ( localize(1061, "Replace"));
|
|
59
|
+
const NLS_REPLACE_INPUT_PLACEHOLDER = ( localize(1062, "Replace"));
|
|
60
|
+
const NLS_REPLACE_BTN_LABEL = ( localize(1063, "Replace"));
|
|
61
|
+
const NLS_REPLACE_ALL_BTN_LABEL = ( localize(1064, "Replace All"));
|
|
62
|
+
const NLS_TOGGLE_REPLACE_MODE_BTN_LABEL = ( localize(1065, "Toggle Replace"));
|
|
63
63
|
const NLS_MATCHES_COUNT_LIMIT_TITLE = ( localize(
|
|
64
|
-
|
|
64
|
+
1066,
|
|
65
65
|
"Only the first {0} results are highlighted, but all find operations work on the entire text.",
|
|
66
66
|
MATCHES_LIMIT
|
|
67
67
|
));
|
|
68
|
-
const NLS_MATCHES_LOCATION = ( localize(
|
|
69
|
-
const NLS_NO_RESULTS = ( localize(
|
|
68
|
+
const NLS_MATCHES_LOCATION = ( localize(1067, "{0} of {1}"));
|
|
69
|
+
const NLS_NO_RESULTS = ( localize(1068, "No results"));
|
|
70
70
|
const FIND_WIDGET_INITIAL_WIDTH = 419;
|
|
71
71
|
const PART_WIDTH = 275;
|
|
72
72
|
const FIND_INPUT_AREA_WIDTH = PART_WIDTH - 54;
|
|
@@ -336,12 +336,12 @@ class FindWidget extends Widget {
|
|
|
336
336
|
_getAriaLabel(label, currentMatch, searchString) {
|
|
337
337
|
if (label === NLS_NO_RESULTS) {
|
|
338
338
|
return searchString === ''
|
|
339
|
-
? ( localize(
|
|
340
|
-
: ( localize(
|
|
339
|
+
? ( localize(1069, "{0} found", label))
|
|
340
|
+
: ( localize(1070, "{0} found for '{1}'", label, searchString));
|
|
341
341
|
}
|
|
342
342
|
if (currentMatch) {
|
|
343
343
|
const ariaLabel = ( localize(
|
|
344
|
-
|
|
344
|
+
1071,
|
|
345
345
|
"{0} found for '{1}', at {2}",
|
|
346
346
|
label,
|
|
347
347
|
searchString,
|
|
@@ -354,7 +354,7 @@ class FindWidget extends Widget {
|
|
|
354
354
|
}
|
|
355
355
|
return ariaLabel;
|
|
356
356
|
}
|
|
357
|
-
return localize(
|
|
357
|
+
return localize(1072, "{0} found for '{1}'", label, searchString);
|
|
358
358
|
}
|
|
359
359
|
_updateToggleSelectionFindButton() {
|
|
360
360
|
const selection = this._codeEditor.getSelection();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import * as floatingMenu from './floatingMenu.css';
|
|
4
|
+
import { registerEditorContribution, EditorContributionInstantiation } from '../../../browser/editorExtensions.js';
|
|
5
|
+
import { FloatingEditorToolbar } from './floatingMenu.js';
|
|
6
|
+
|
|
7
|
+
registerCss(floatingMenu);
|
|
8
|
+
registerEditorContribution(FloatingEditorToolbar.ID, FloatingEditorToolbar, EditorContributionInstantiation.AfterFirstRender);
|