monaco-editor-core 0.56.0-dev-20251125 → 0.56.0-dev-20251218
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/esm/nls.keys.json +1 -1
- package/esm/nls.messages.cs.js +2 -2
- package/esm/nls.messages.de.js +2 -2
- package/esm/nls.messages.es.js +2 -2
- package/esm/nls.messages.fr.js +2 -2
- package/esm/nls.messages.it.js +2 -2
- package/esm/nls.messages.ja.js +2 -2
- package/esm/nls.messages.js +1 -1
- package/esm/nls.messages.json +1 -1
- package/esm/nls.messages.ko.js +2 -2
- package/esm/nls.messages.pl.js +2 -2
- package/esm/nls.messages.pt-br.js +2 -2
- package/esm/nls.messages.ru.js +2 -2
- package/esm/nls.messages.tr.js +2 -2
- package/esm/nls.messages.zh-cn.js +2 -2
- package/esm/nls.messages.zh-tw.js +2 -2
- package/esm/nls.metadata.json +34 -6
- package/esm/vs/base/browser/dom.js +1 -4
- package/esm/vs/base/browser/dom.js.map +1 -1
- package/esm/vs/base/browser/markdownRenderer.js +25 -11
- package/esm/vs/base/browser/markdownRenderer.js.map +1 -1
- package/esm/vs/base/browser/ui/actionbar/actionViewItems.js.map +1 -1
- package/esm/vs/base/browser/ui/button/button.js +15 -8
- package/esm/vs/base/browser/ui/button/button.js.map +1 -1
- package/esm/vs/base/browser/ui/codicons/codicon/codicon-modifiers.css +3 -8
- package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/esm/vs/base/browser/ui/findinput/findInput.js +6 -1
- package/esm/vs/base/browser/ui/findinput/findInput.js.map +1 -1
- package/esm/vs/base/browser/ui/inputbox/inputBox.js +17 -1
- package/esm/vs/base/browser/ui/inputbox/inputBox.js.map +1 -1
- package/esm/vs/base/browser/ui/list/list.css +1 -0
- package/esm/vs/base/browser/ui/toggle/toggle.js +78 -6
- package/esm/vs/base/browser/ui/toggle/toggle.js.map +1 -1
- package/esm/vs/base/browser/ui/toolbar/toolbar.js +3 -0
- package/esm/vs/base/browser/ui/toolbar/toolbar.js.map +1 -1
- package/esm/vs/base/common/codiconsLibrary.js +11 -2
- package/esm/vs/base/common/codiconsLibrary.js.map +1 -1
- package/esm/vs/base/common/defaultAccount.js +6 -0
- package/esm/vs/base/common/defaultAccount.js.map +1 -0
- package/esm/vs/base/common/equals.js +73 -24
- package/esm/vs/base/common/equals.js.map +1 -1
- package/esm/vs/base/common/event.js +14 -4
- package/esm/vs/base/common/event.js.map +1 -1
- package/esm/vs/base/common/iterator.js.map +1 -1
- package/esm/vs/base/common/keybindings.js +0 -8
- package/esm/vs/base/common/keybindings.js.map +1 -1
- package/esm/vs/base/common/lifecycle.js +2 -2
- package/esm/vs/base/common/lifecycle.js.map +1 -1
- package/esm/vs/base/common/marshallingIds.js.map +1 -1
- package/esm/vs/base/common/observableInternal/index.js +1 -1
- package/esm/vs/base/common/observableInternal/index.js.map +1 -1
- package/esm/vs/base/common/observableInternal/observables/observableFromEvent.js +1 -1
- package/esm/vs/base/common/observableInternal/observables/observableFromEvent.js.map +1 -1
- package/esm/vs/base/common/observableInternal/reactions/autorunImpl.js +16 -0
- package/esm/vs/base/common/observableInternal/reactions/autorunImpl.js.map +1 -1
- package/esm/vs/base/common/observableInternal/utils/utils.js +11 -0
- package/esm/vs/base/common/observableInternal/utils/utils.js.map +1 -1
- package/esm/vs/base/common/product.js.map +1 -1
- package/esm/vs/base/common/strings.js +3 -1
- package/esm/vs/base/common/strings.js.map +1 -1
- package/esm/vs/editor/browser/controller/dragScrolling.js +2 -1
- package/esm/vs/editor/browser/controller/dragScrolling.js.map +1 -1
- package/esm/vs/editor/browser/controller/editContext/clipboardUtils.js +73 -2
- package/esm/vs/editor/browser/controller/editContext/clipboardUtils.js.map +1 -1
- package/esm/vs/editor/browser/controller/editContext/native/nativeEditContext.js +7 -51
- package/esm/vs/editor/browser/controller/editContext/native/nativeEditContext.js.map +1 -1
- package/esm/vs/editor/browser/controller/editContext/screenReaderUtils.js.map +1 -1
- package/esm/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +7 -20
- package/esm/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js.map +1 -1
- package/esm/vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.js +14 -44
- package/esm/vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.js.map +1 -1
- package/esm/vs/editor/browser/controller/editContext/textArea/textAreaEditContextRegistry.js +19 -0
- package/esm/vs/editor/browser/controller/editContext/textArea/textAreaEditContextRegistry.js.map +1 -0
- package/esm/vs/editor/browser/controller/editContext/textArea/textAreaEditContextState.js +14 -1
- package/esm/vs/editor/browser/controller/editContext/textArea/textAreaEditContextState.js.map +1 -1
- package/esm/vs/editor/browser/controller/mouseHandler.js +5 -2
- package/esm/vs/editor/browser/controller/mouseHandler.js.map +1 -1
- package/esm/vs/editor/browser/editorBrowser.js.map +1 -1
- package/esm/vs/editor/browser/observableCodeEditor.js +32 -15
- package/esm/vs/editor/browser/observableCodeEditor.js.map +1 -1
- package/esm/vs/editor/browser/services/editorWorkerService.js +6 -2
- package/esm/vs/editor/browser/services/editorWorkerService.js.map +1 -1
- package/esm/vs/editor/browser/view.js +11 -2
- package/esm/vs/editor/browser/view.js.map +1 -1
- package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +5 -2
- package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js.map +1 -1
- package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +10 -0
- package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js.map +1 -1
- package/esm/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js.map +1 -1
- package/esm/vs/editor/browser/widget/multiDiffEditor/style.css +48 -0
- package/esm/vs/editor/common/config/editorConfigurationSchema.js +49 -47
- package/esm/vs/editor/common/config/editorConfigurationSchema.js.map +1 -1
- package/esm/vs/editor/common/config/editorOptions.js +410 -410
- package/esm/vs/editor/common/config/fontInfo.js +1 -1
- package/esm/vs/editor/common/config/fontInfo.js.map +1 -1
- package/esm/vs/editor/common/core/editorColorRegistry.js +69 -69
- package/esm/vs/editor/common/core/edits/edit.js +19 -0
- package/esm/vs/editor/common/core/edits/edit.js.map +1 -1
- package/esm/vs/editor/common/core/edits/stringEdit.js +13 -0
- package/esm/vs/editor/common/core/edits/stringEdit.js.map +1 -1
- package/esm/vs/editor/common/core/edits/textEdit.js +0 -3
- package/esm/vs/editor/common/core/edits/textEdit.js.map +1 -1
- package/esm/vs/editor/common/core/text/positionToOffsetImpl.js +24 -10
- package/esm/vs/editor/common/core/text/positionToOffsetImpl.js.map +1 -1
- package/esm/vs/editor/common/cursor/cursorMoveCommands.js +4 -4
- package/esm/vs/editor/common/cursor/cursorMoveCommands.js.map +1 -1
- package/esm/vs/editor/common/cursor/cursorWordOperations.js +6 -3
- package/esm/vs/editor/common/cursor/cursorWordOperations.js.map +1 -1
- package/esm/vs/editor/common/editorContextKeys.js +47 -47
- package/esm/vs/editor/common/languages/defaultDocumentColorsComputer.js +2 -2
- package/esm/vs/editor/common/languages/defaultDocumentColorsComputer.js.map +1 -1
- package/esm/vs/editor/common/languages/modesRegistry.js +1 -1
- package/esm/vs/editor/common/languages/nullTokenize.js +1 -1
- package/esm/vs/editor/common/languages/nullTokenize.js.map +1 -1
- package/esm/vs/editor/common/languages/supports/tokenization.js +3 -0
- package/esm/vs/editor/common/languages/supports/tokenization.js.map +1 -1
- package/esm/vs/editor/common/languages.js +58 -57
- package/esm/vs/editor/common/languages.js.map +1 -1
- package/esm/vs/editor/common/model/decorationProvider.js +21 -1
- package/esm/vs/editor/common/model/decorationProvider.js.map +1 -1
- package/esm/vs/editor/common/model/editStack.js +1 -1
- package/esm/vs/editor/common/model/textModel.js +49 -30
- package/esm/vs/editor/common/model/textModel.js.map +1 -1
- package/esm/vs/editor/common/model/tokens/abstractSyntaxTokenBackend.js +6 -3
- package/esm/vs/editor/common/model/tokens/abstractSyntaxTokenBackend.js.map +1 -1
- package/esm/vs/editor/common/model/tokens/annotations.js +177 -0
- package/esm/vs/editor/common/model/tokens/annotations.js.map +1 -0
- package/esm/vs/editor/common/model/tokens/tokenizationFontDecorationsProvider.js +131 -0
- package/esm/vs/editor/common/model/tokens/tokenizationFontDecorationsProvider.js.map +1 -0
- package/esm/vs/editor/common/model/tokens/tokenizationTextModelPart.js +9 -0
- package/esm/vs/editor/common/model/tokens/tokenizationTextModelPart.js.map +1 -1
- package/esm/vs/editor/common/model/tokens/tokenizerSyntaxTokenBackend.js +9 -0
- package/esm/vs/editor/common/model/tokens/tokenizerSyntaxTokenBackend.js.map +1 -1
- package/esm/vs/editor/common/standaloneStrings.js +11 -11
- package/esm/vs/editor/common/textModelEditSource.js +2 -0
- package/esm/vs/editor/common/textModelEditSource.js.map +1 -1
- package/esm/vs/editor/common/textModelEvents.js.map +1 -1
- package/esm/vs/editor/common/viewLayout/lineDecorations.js.map +1 -1
- package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +3 -3
- package/esm/vs/editor/common/viewLayout/viewLineRenderer.js.map +1 -1
- package/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/esm/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/esm/vs/editor/contrib/clipboard/browser/clipboard.js +71 -53
- package/esm/vs/editor/contrib/clipboard/browser/clipboard.js.map +1 -1
- package/esm/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/esm/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +23 -10
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js.map +1 -1
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/esm/vs/editor/contrib/find/browser/findController.js +16 -16
- package/esm/vs/editor/contrib/find/browser/findWidget.js +26 -26
- package/esm/vs/editor/contrib/floatingMenu/browser/floatingMenu.css +1 -1
- package/esm/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/esm/vs/editor/contrib/folding/browser/folding.js.map +1 -1
- package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/esm/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/esm/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/esm/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/esm/vs/editor/contrib/hover/browser/hover.css +1 -1
- package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/esm/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +10 -10
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/esm/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +1 -0
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsController.js.map +1 -1
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commandIds.js +1 -0
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commandIds.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +50 -21
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +13 -12
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +7 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +2 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/InlineSuggestAlternativeAction.js +8 -0
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/InlineSuggestAlternativeAction.js.map +1 -0
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/editKind.js +198 -0
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/editKind.js.map +1 -0
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionIsVisible.js +40 -0
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionIsVisible.js.map +1 -0
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +128 -70
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +59 -11
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +152 -95
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +113 -54
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +317 -75
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/telemetry.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/utils.js +20 -0
- package/esm/vs/editor/contrib/inlineCompletions/browser/utils.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +59 -42
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +29 -8
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +78 -46
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js +9 -4
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +11 -4
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +81 -41
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.js +48 -0
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +18 -15
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.js +3 -4
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +6 -7
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.js +4 -5
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +4 -3
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +8 -8
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +9 -7
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +203 -41
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/jumpToView.js +189 -0
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/jumpToView.js.map +1 -0
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/inlineEditsLongDistanceHint.js +85 -102
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/inlineEditsLongDistanceHint.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/longDistancePreviewEditor.js +75 -32
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/longDistancePreviewEditor.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/longDistnaceWidgetPlacement.js +121 -0
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/longDistnaceWidgetPlacement.js.map +1 -0
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/originalEditorInlineDiffView.js +2 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/originalEditorInlineDiffView.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +22 -20
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +15 -5
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css +39 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineSuggestionsView.js +10 -5
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineSuggestionsView.js.map +1 -1
- package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +32 -32
- package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js.map +1 -1
- package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/esm/vs/editor/contrib/links/browser/links.js +10 -10
- package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
- package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +25 -27
- package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js.map +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/esm/vs/editor/contrib/rename/browser/rename.js +19 -15
- package/esm/vs/editor/contrib/rename/browser/rename.js.map +1 -1
- package/esm/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
- package/esm/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js +3 -2
- package/esm/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js.map +1 -1
- package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetParser.js +33 -0
- package/esm/vs/editor/contrib/snippet/browser/snippetParser.js.map +1 -1
- package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +12 -4
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js.map +1 -1
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +1 -0
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js.map +1 -1
- package/esm/vs/editor/contrib/suggest/browser/suggest.js +9 -8
- package/esm/vs/editor/contrib/suggest/browser/suggest.js.map +1 -1
- package/esm/vs/editor/contrib/suggest/browser/suggestController.js +39 -28
- package/esm/vs/editor/contrib/suggest/browser/suggestController.js.map +1 -1
- package/esm/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +1 -0
- package/esm/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js.map +1 -1
- package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +22 -18
- package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js.map +1 -1
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +28 -6
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js.map +1 -1
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +19 -2
- package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js.map +1 -1
- package/esm/vs/editor/editor.api.d.ts +34 -3
- package/esm/vs/editor/standalone/browser/standaloneLanguages.js +2 -2
- package/esm/vs/editor/standalone/browser/standaloneLanguages.js.map +1 -1
- package/esm/vs/editor/standalone/browser/standaloneServices.js +11 -1
- package/esm/vs/editor/standalone/browser/standaloneServices.js.map +1 -1
- package/esm/vs/editor/standalone/common/monarch/monarchLexer.js +1 -1
- package/esm/vs/editor/standalone/common/monarch/monarchLexer.js.map +1 -1
- package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
- package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/esm/vs/platform/actionWidget/browser/actionList.js +4 -4
- package/esm/vs/platform/actionWidget/browser/actionWidget.css +11 -8
- package/esm/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/esm/vs/platform/actions/browser/toolbar.js +2 -2
- package/esm/vs/platform/actions/common/actions.js +11 -5
- package/esm/vs/platform/actions/common/actions.js.map +1 -1
- package/esm/vs/platform/actions/common/menuService.js +2 -2
- package/esm/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
- package/esm/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/esm/vs/platform/contextkey/common/scanner.js +5 -5
- package/esm/vs/platform/{product/common/productService.js → defaultAccount/common/defaultAccount.js} +2 -2
- package/esm/vs/platform/defaultAccount/common/defaultAccount.js.map +1 -0
- package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/esm/vs/platform/hover/browser/hoverWidget.js +1 -1
- package/esm/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
- package/esm/vs/platform/instantiation/common/instantiation.js.map +1 -1
- package/esm/vs/platform/instantiation/common/instantiationService.js +1 -8
- package/esm/vs/platform/instantiation/common/instantiationService.js.map +1 -1
- package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/esm/vs/platform/list/browser/listService.js +27 -27
- package/esm/vs/platform/log/common/log.js +1 -1
- package/esm/vs/platform/log/common/log.js.map +1 -1
- package/esm/vs/platform/markers/common/markerService.js +6 -6
- package/esm/vs/platform/markers/common/markerService.js.map +1 -1
- package/esm/vs/platform/markers/common/markers.js +6 -6
- package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +8 -8
- package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
- package/esm/vs/platform/quickinput/browser/media/quickInput.css +45 -7
- package/esm/vs/platform/quickinput/browser/quickInput.js +51 -15
- package/esm/vs/platform/quickinput/browser/quickInput.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/esm/vs/platform/quickinput/browser/quickInputBox.js +13 -1
- package/esm/vs/platform/quickinput/browser/quickInputBox.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputController.js +22 -12
- package/esm/vs/platform/quickinput/browser/quickInputController.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputList.js +17 -12
- package/esm/vs/platform/quickinput/browser/quickInputList.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputUtils.js +36 -8
- package/esm/vs/platform/quickinput/browser/quickInputUtils.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeController.js +3 -3
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeController.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +8 -4
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js.map +1 -1
- package/esm/vs/platform/quickinput/common/quickInput.js.map +1 -1
- package/esm/vs/platform/theme/common/colorUtils.js +2 -2
- package/esm/vs/platform/theme/common/colors/baseColors.js +18 -17
- package/esm/vs/platform/theme/common/colors/baseColors.js.map +1 -1
- package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/esm/vs/platform/theme/common/colors/inputColors.js +47 -47
- package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
- package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/esm/vs/platform/theme/common/colors/minimapColors.js +13 -13
- package/esm/vs/platform/theme/common/colors/minimapColors.js.map +1 -1
- package/esm/vs/platform/theme/common/colors/miscColors.js +16 -16
- package/esm/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
- package/esm/vs/platform/undoRedo/common/undoRedoService.js +21 -21
- package/esm/vs/platform/undoRedo/common/undoRedoService.js.map +1 -1
- package/esm/vs/platform/window/common/window.js +1 -1
- package/esm/vs/platform/window/common/window.js.map +1 -1
- package/esm/vs/platform/workspace/common/workspace.js +1 -1
- package/monaco.d.ts +34 -3
- package/package.json +2 -2
- package/version.txt +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineEdit.js +0 -16
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineEdit.js.map +0 -1
- package/esm/vs/platform/product/common/productService.js.map +0 -1
|
@@ -267,7 +267,7 @@ let CodeActionController = class CodeActionController extends Disposable {
|
|
|
267
267
|
const diagnostic = diagnostics[0];
|
|
268
268
|
if (diagnostic.startLineNumber && diagnostic.startColumn) {
|
|
269
269
|
const selectionText = this._editor.getModel()?.getWordAtPosition({ lineNumber: diagnostic.startLineNumber, column: diagnostic.startColumn })?.word;
|
|
270
|
-
aria.status(localize(
|
|
270
|
+
aria.status(localize(870, "Context: {0} at line {1} and column {2}.", selectionText, diagnostic.startLineNumber, diagnostic.startColumn));
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
}
|
|
@@ -310,7 +310,7 @@ let CodeActionController = class CodeActionController extends Disposable {
|
|
|
310
310
|
if (options.includeDisabledActions && actions.validActions.length > 0 && actions.allActions.length !== actions.validActions.length) {
|
|
311
311
|
resultActions.push(this._showDisabled ? {
|
|
312
312
|
id: 'hideMoreActions',
|
|
313
|
-
label: localize(
|
|
313
|
+
label: localize(871, 'Hide Disabled'),
|
|
314
314
|
enabled: true,
|
|
315
315
|
tooltip: '',
|
|
316
316
|
class: undefined,
|
|
@@ -320,7 +320,7 @@ let CodeActionController = class CodeActionController extends Disposable {
|
|
|
320
320
|
}
|
|
321
321
|
} : {
|
|
322
322
|
id: 'showMoreActions',
|
|
323
|
-
label: localize(
|
|
323
|
+
label: localize(872, 'Show Disabled'),
|
|
324
324
|
enabled: true,
|
|
325
325
|
tooltip: '',
|
|
326
326
|
class: undefined,
|
|
@@ -8,15 +8,15 @@ import { CodeActionKind } from '../common/types.js';
|
|
|
8
8
|
import '../../symbolIcons/browser/symbolIcons.js'; // The codicon symbol colors are defined here and must be loaded to get colors
|
|
9
9
|
import { localize } from '../../../../nls.js';
|
|
10
10
|
import { HierarchicalKind } from '../../../../base/common/hierarchicalKind.js';
|
|
11
|
-
const uncategorizedCodeActionGroup = Object.freeze({ kind: HierarchicalKind.Empty, title: localize(
|
|
11
|
+
const uncategorizedCodeActionGroup = Object.freeze({ kind: HierarchicalKind.Empty, title: localize(873, 'More Actions...') });
|
|
12
12
|
const codeActionGroups = Object.freeze([
|
|
13
|
-
{ kind: CodeActionKind.QuickFix, title: localize(
|
|
14
|
-
{ kind: CodeActionKind.RefactorExtract, title: localize(
|
|
15
|
-
{ kind: CodeActionKind.RefactorInline, title: localize(
|
|
16
|
-
{ kind: CodeActionKind.RefactorRewrite, title: localize(
|
|
17
|
-
{ kind: CodeActionKind.RefactorMove, title: localize(
|
|
18
|
-
{ kind: CodeActionKind.SurroundWith, title: localize(
|
|
19
|
-
{ kind: CodeActionKind.Source, title: localize(
|
|
13
|
+
{ kind: CodeActionKind.QuickFix, title: localize(874, 'Quick Fix') },
|
|
14
|
+
{ kind: CodeActionKind.RefactorExtract, title: localize(875, 'Extract'), icon: Codicon.wrench },
|
|
15
|
+
{ kind: CodeActionKind.RefactorInline, title: localize(876, 'Inline'), icon: Codicon.wrench },
|
|
16
|
+
{ kind: CodeActionKind.RefactorRewrite, title: localize(877, 'Rewrite'), icon: Codicon.wrench },
|
|
17
|
+
{ kind: CodeActionKind.RefactorMove, title: localize(878, 'Move'), icon: Codicon.wrench },
|
|
18
|
+
{ kind: CodeActionKind.SurroundWith, title: localize(879, 'Surround With'), icon: Codicon.surroundWith },
|
|
19
|
+
{ kind: CodeActionKind.Source, title: localize(880, 'Source Action'), icon: Codicon.symbolFile },
|
|
20
20
|
uncategorizedCodeActionGroup,
|
|
21
21
|
]);
|
|
22
22
|
export function toMenuItems(inputCodeActions, showHeaders, keybindingResolver) {
|
|
@@ -27,11 +27,11 @@ import * as nls from '../../../../nls.js';
|
|
|
27
27
|
import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.js';
|
|
28
28
|
import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
|
|
29
29
|
import { Range } from '../../../common/core/range.js';
|
|
30
|
-
const GUTTER_LIGHTBULB_ICON = registerIcon('gutter-lightbulb', Codicon.lightBulb, nls.localize(
|
|
31
|
-
const GUTTER_LIGHTBULB_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-auto-fix', Codicon.lightbulbAutofix, nls.localize(
|
|
32
|
-
const GUTTER_LIGHTBULB_AIFIX_ICON = registerIcon('gutter-lightbulb-sparkle', Codicon.lightbulbSparkle, nls.localize(
|
|
33
|
-
const GUTTER_LIGHTBULB_AIFIX_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-aifix-auto-fix', Codicon.lightbulbSparkleAutofix, nls.localize(
|
|
34
|
-
const GUTTER_SPARKLE_FILLED_ICON = registerIcon('gutter-lightbulb-sparkle-filled', Codicon.sparkleFilled, nls.localize(
|
|
30
|
+
const GUTTER_LIGHTBULB_ICON = registerIcon('gutter-lightbulb', Codicon.lightBulb, nls.localize(881, 'Icon which spawns code actions menu from the gutter when there is no space in the editor.'));
|
|
31
|
+
const GUTTER_LIGHTBULB_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-auto-fix', Codicon.lightbulbAutofix, nls.localize(882, 'Icon which spawns code actions menu from the gutter when there is no space in the editor and a quick fix is available.'));
|
|
32
|
+
const GUTTER_LIGHTBULB_AIFIX_ICON = registerIcon('gutter-lightbulb-sparkle', Codicon.lightbulbSparkle, nls.localize(883, 'Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix is available.'));
|
|
33
|
+
const GUTTER_LIGHTBULB_AIFIX_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-aifix-auto-fix', Codicon.lightbulbSparkleAutofix, nls.localize(884, 'Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available.'));
|
|
34
|
+
const GUTTER_SPARKLE_FILLED_ICON = registerIcon('gutter-lightbulb-sparkle-filled', Codicon.sparkleFilled, nls.localize(885, 'Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available.'));
|
|
35
35
|
var LightBulbState;
|
|
36
36
|
(function (LightBulbState) {
|
|
37
37
|
LightBulbState.Hidden = { type: 0 /* Type.Hidden */ };
|
|
@@ -403,16 +403,16 @@ let LightBulbWidget = class LightBulbWidget extends Disposable {
|
|
|
403
403
|
return;
|
|
404
404
|
}
|
|
405
405
|
if (autoRun) {
|
|
406
|
-
this.title = nls.localize(
|
|
406
|
+
this.title = nls.localize(886, "Run: {0}", this.state.actions.validActions[0].action.title);
|
|
407
407
|
}
|
|
408
408
|
else if (autoFix && this._preferredKbLabel) {
|
|
409
|
-
this.title = nls.localize(
|
|
409
|
+
this.title = nls.localize(887, "Show Code Actions. Preferred Quick Fix Available ({0})", this._preferredKbLabel);
|
|
410
410
|
}
|
|
411
411
|
else if (!autoFix && this._quickFixKbLabel) {
|
|
412
|
-
this.title = nls.localize(
|
|
412
|
+
this.title = nls.localize(888, "Show Code Actions ({0})", this._quickFixKbLabel);
|
|
413
413
|
}
|
|
414
414
|
else if (!autoFix) {
|
|
415
|
-
this.title = nls.localize(
|
|
415
|
+
this.title = nls.localize(889, "Show Code Actions");
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
set title(value) {
|
|
@@ -404,7 +404,7 @@ registerEditorAction(class ShowLensesInCurrentLine extends EditorAction {
|
|
|
404
404
|
super({
|
|
405
405
|
id: 'codelens.showLensesInCurrentLine',
|
|
406
406
|
precondition: EditorContextKeys.hasCodeLensProvider,
|
|
407
|
-
label: localize2(
|
|
407
|
+
label: localize2(891, "Show CodeLens Commands for Current Line"),
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
async run(accessor, editor) {
|
|
@@ -439,7 +439,7 @@ registerEditorAction(class ShowLensesInCurrentLine extends EditorAction {
|
|
|
439
439
|
}
|
|
440
440
|
const item = await quickInputService.pick(items, {
|
|
441
441
|
canPickMany: false,
|
|
442
|
-
placeHolder: localize(
|
|
442
|
+
placeHolder: localize(890, "Select a command")
|
|
443
443
|
});
|
|
444
444
|
if (!item) {
|
|
445
445
|
// Nothing picked
|
package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js
CHANGED
|
@@ -22,7 +22,7 @@ export class CloseButton extends Disposable {
|
|
|
22
22
|
const innerDiv = document.createElement('div');
|
|
23
23
|
innerDiv.classList.add('close-button-inner-div');
|
|
24
24
|
dom.append(this._button, innerDiv);
|
|
25
|
-
const closeButton = dom.append(innerDiv, $('.button' + ThemeIcon.asCSSSelector(registerIcon('color-picker-close', Codicon.close, localize(
|
|
25
|
+
const closeButton = dom.append(innerDiv, $('.button' + ThemeIcon.asCSSSelector(registerIcon('color-picker-close', Codicon.close, localize(892, 'Icon to close the color picker')))));
|
|
26
26
|
closeButton.classList.add('close-icon');
|
|
27
27
|
this._register(dom.addDisposableListener(this._button, dom.EventType.CLICK, () => {
|
|
28
28
|
this._onClicked.fire();
|
|
@@ -22,7 +22,7 @@ export class ColorPickerHeader extends Disposable {
|
|
|
22
22
|
dom.append(this._pickedColorNode, $('span.codicon.codicon-color-mode'));
|
|
23
23
|
this._pickedColorPresentation = dom.append(this._pickedColorNode, document.createElement('span'));
|
|
24
24
|
this._pickedColorPresentation.classList.add('picked-color-presentation');
|
|
25
|
-
const tooltip = localize(
|
|
25
|
+
const tooltip = localize(893, "Click to toggle color options (rgb/hsl/hex)");
|
|
26
26
|
this._pickedColorNode.setAttribute('title', tooltip);
|
|
27
27
|
this._originalColorNode = dom.append(this._domNode, $('.original-color'));
|
|
28
28
|
this._originalColorNode.style.backgroundColor = Color.Format.CSS.format(this.model.originalColor) || '';
|
package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js
CHANGED
|
@@ -127,7 +127,7 @@ let HoverColorPickerParticipant = class HoverColorPickerParticipant {
|
|
|
127
127
|
return new RenderedHoverParts([renderedHoverPart]);
|
|
128
128
|
}
|
|
129
129
|
getAccessibleContent(hoverPart) {
|
|
130
|
-
return nls.localize(
|
|
130
|
+
return nls.localize(894, 'There is a color picker here.');
|
|
131
131
|
}
|
|
132
132
|
handleResize() {
|
|
133
133
|
this._colorPicker?.layout();
|
|
@@ -12,15 +12,15 @@ export class ShowOrFocusStandaloneColorPicker extends EditorAction2 {
|
|
|
12
12
|
super({
|
|
13
13
|
id: 'editor.action.showOrFocusStandaloneColorPicker',
|
|
14
14
|
title: {
|
|
15
|
-
...localize2(
|
|
16
|
-
mnemonicTitle: localize(
|
|
15
|
+
...localize2(896, "Show or Focus Standalone Color Picker"),
|
|
16
|
+
mnemonicTitle: localize(895, "&&Show or Focus Standalone Color Picker"),
|
|
17
17
|
},
|
|
18
18
|
precondition: undefined,
|
|
19
19
|
menu: [
|
|
20
20
|
{ id: MenuId.CommandPalette },
|
|
21
21
|
],
|
|
22
22
|
metadata: {
|
|
23
|
-
description: localize2(
|
|
23
|
+
description: localize2(897, "Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors."),
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
}
|
|
@@ -32,7 +32,7 @@ export class HideStandaloneColorPicker extends EditorAction {
|
|
|
32
32
|
constructor() {
|
|
33
33
|
super({
|
|
34
34
|
id: 'editor.action.hideColorPicker',
|
|
35
|
-
label: localize2(
|
|
35
|
+
label: localize2(898, "Hide the Color Picker"),
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,7 +44,7 @@ export class HideStandaloneColorPicker extends EditorAction {
|
|
|
44
44
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
45
45
|
},
|
|
46
46
|
metadata: {
|
|
47
|
-
description: localize2(
|
|
47
|
+
description: localize2(899, "Hide the standalone color picker."),
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
}
|
|
@@ -56,7 +56,7 @@ export class InsertColorWithStandaloneColorPicker extends EditorAction {
|
|
|
56
56
|
constructor() {
|
|
57
57
|
super({
|
|
58
58
|
id: 'editor.action.insertColorWithStandaloneColorPicker',
|
|
59
|
-
label: localize2(
|
|
59
|
+
label: localize2(900, "Insert Color with Standalone Color Picker"),
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
|
|
@@ -68,7 +68,7 @@ export class InsertColorWithStandaloneColorPicker extends EditorAction {
|
|
|
68
68
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
69
69
|
},
|
|
70
70
|
metadata: {
|
|
71
|
-
description: localize2(
|
|
71
|
+
description: localize2(901, "Insert hex/rgb/hsl colors with the focused standalone color picker."),
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
}
|
|
@@ -56,7 +56,7 @@ class ToggleCommentLineAction extends CommentLineAction {
|
|
|
56
56
|
constructor() {
|
|
57
57
|
super(0 /* Type.Toggle */, {
|
|
58
58
|
id: 'editor.action.commentLine',
|
|
59
|
-
label: nls.localize2(
|
|
59
|
+
label: nls.localize2(904, "Toggle Line Comment"),
|
|
60
60
|
precondition: EditorContextKeys.writable,
|
|
61
61
|
kbOpts: {
|
|
62
62
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -66,7 +66,7 @@ class ToggleCommentLineAction extends CommentLineAction {
|
|
|
66
66
|
menuOpts: {
|
|
67
67
|
menuId: MenuId.MenubarEditMenu,
|
|
68
68
|
group: '5_insert',
|
|
69
|
-
title: nls.localize(
|
|
69
|
+
title: nls.localize(902, "&&Toggle Line Comment"),
|
|
70
70
|
order: 1
|
|
71
71
|
},
|
|
72
72
|
canTriggerInlineEdits: true,
|
|
@@ -77,7 +77,7 @@ class AddLineCommentAction extends CommentLineAction {
|
|
|
77
77
|
constructor() {
|
|
78
78
|
super(1 /* Type.ForceAdd */, {
|
|
79
79
|
id: 'editor.action.addCommentLine',
|
|
80
|
-
label: nls.localize2(
|
|
80
|
+
label: nls.localize2(905, "Add Line Comment"),
|
|
81
81
|
precondition: EditorContextKeys.writable,
|
|
82
82
|
kbOpts: {
|
|
83
83
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -92,7 +92,7 @@ class RemoveLineCommentAction extends CommentLineAction {
|
|
|
92
92
|
constructor() {
|
|
93
93
|
super(2 /* Type.ForceRemove */, {
|
|
94
94
|
id: 'editor.action.removeCommentLine',
|
|
95
|
-
label: nls.localize2(
|
|
95
|
+
label: nls.localize2(906, "Remove Line Comment"),
|
|
96
96
|
precondition: EditorContextKeys.writable,
|
|
97
97
|
kbOpts: {
|
|
98
98
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -107,7 +107,7 @@ class BlockCommentAction extends EditorAction {
|
|
|
107
107
|
constructor() {
|
|
108
108
|
super({
|
|
109
109
|
id: 'editor.action.blockComment',
|
|
110
|
-
label: nls.localize2(
|
|
110
|
+
label: nls.localize2(907, "Toggle Block Comment"),
|
|
111
111
|
precondition: EditorContextKeys.writable,
|
|
112
112
|
kbOpts: {
|
|
113
113
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -118,7 +118,7 @@ class BlockCommentAction extends EditorAction {
|
|
|
118
118
|
menuOpts: {
|
|
119
119
|
menuId: MenuId.MenubarEditMenu,
|
|
120
120
|
group: '5_insert',
|
|
121
|
-
title: nls.localize(
|
|
121
|
+
title: nls.localize(903, "Toggle &&Block Comment"),
|
|
122
122
|
order: 2
|
|
123
123
|
},
|
|
124
124
|
canTriggerInlineEdits: true,
|
|
@@ -247,7 +247,7 @@ let ContextMenuController = class ContextMenuController {
|
|
|
247
247
|
};
|
|
248
248
|
const actions = [];
|
|
249
249
|
actions.push(createAction({
|
|
250
|
-
label: nls.localize(
|
|
250
|
+
label: nls.localize(908, "Minimap"),
|
|
251
251
|
checked: minimapOptions.enabled,
|
|
252
252
|
run: () => {
|
|
253
253
|
this._configurationService.updateValue(`editor.minimap.enabled`, !minimapOptions.enabled);
|
|
@@ -255,28 +255,28 @@ let ContextMenuController = class ContextMenuController {
|
|
|
255
255
|
}));
|
|
256
256
|
actions.push(new Separator());
|
|
257
257
|
actions.push(createAction({
|
|
258
|
-
label: nls.localize(
|
|
258
|
+
label: nls.localize(909, "Render Characters"),
|
|
259
259
|
enabled: minimapOptions.enabled,
|
|
260
260
|
checked: minimapOptions.renderCharacters,
|
|
261
261
|
run: () => {
|
|
262
262
|
this._configurationService.updateValue(`editor.minimap.renderCharacters`, !minimapOptions.renderCharacters);
|
|
263
263
|
}
|
|
264
264
|
}));
|
|
265
|
-
actions.push(createEnumAction(nls.localize(
|
|
266
|
-
label: nls.localize(
|
|
265
|
+
actions.push(createEnumAction(nls.localize(910, "Vertical size"), minimapOptions.enabled, 'editor.minimap.size', minimapOptions.size, [{
|
|
266
|
+
label: nls.localize(911, "Proportional"),
|
|
267
267
|
value: 'proportional'
|
|
268
268
|
}, {
|
|
269
|
-
label: nls.localize(
|
|
269
|
+
label: nls.localize(912, "Fill"),
|
|
270
270
|
value: 'fill'
|
|
271
271
|
}, {
|
|
272
|
-
label: nls.localize(
|
|
272
|
+
label: nls.localize(913, "Fit"),
|
|
273
273
|
value: 'fit'
|
|
274
274
|
}]));
|
|
275
|
-
actions.push(createEnumAction(nls.localize(
|
|
276
|
-
label: nls.localize(
|
|
275
|
+
actions.push(createEnumAction(nls.localize(914, "Slider"), minimapOptions.enabled, 'editor.minimap.showSlider', minimapOptions.showSlider, [{
|
|
276
|
+
label: nls.localize(915, "Mouse Over"),
|
|
277
277
|
value: 'mouseover'
|
|
278
278
|
}, {
|
|
279
|
-
label: nls.localize(
|
|
279
|
+
label: nls.localize(916, "Always"),
|
|
280
280
|
value: 'always'
|
|
281
281
|
}]));
|
|
282
282
|
const useShadowDOM = this._editor.getOption(144 /* EditorOption.useShadowDOM */) && !isIOS; // Do not use shadow dom on IOS #122035
|
|
@@ -315,7 +315,7 @@ class ShowContextMenu extends EditorAction {
|
|
|
315
315
|
constructor() {
|
|
316
316
|
super({
|
|
317
317
|
id: 'editor.action.showContextMenu',
|
|
318
|
-
label: nls.localize2(
|
|
318
|
+
label: nls.localize2(917, "Show Editor Context Menu"),
|
|
319
319
|
precondition: undefined,
|
|
320
320
|
kbOpts: {
|
|
321
321
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -100,7 +100,7 @@ export class CursorUndo extends EditorAction {
|
|
|
100
100
|
constructor() {
|
|
101
101
|
super({
|
|
102
102
|
id: 'cursorUndo',
|
|
103
|
-
label: nls.localize2(
|
|
103
|
+
label: nls.localize2(918, "Cursor Undo"),
|
|
104
104
|
precondition: undefined,
|
|
105
105
|
kbOpts: {
|
|
106
106
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -117,7 +117,7 @@ export class CursorRedo extends EditorAction {
|
|
|
117
117
|
constructor() {
|
|
118
118
|
super({
|
|
119
119
|
id: 'cursorRedo',
|
|
120
|
-
label: nls.localize2(
|
|
120
|
+
label: nls.localize2(919, "Cursor Redo"),
|
|
121
121
|
precondition: undefined
|
|
122
122
|
});
|
|
123
123
|
}
|
|
@@ -51,7 +51,7 @@ registerEditorAction(class PasteAsAction extends EditorAction {
|
|
|
51
51
|
properties: {
|
|
52
52
|
kind: {
|
|
53
53
|
type: 'string',
|
|
54
|
-
description: nls.localize(
|
|
54
|
+
description: nls.localize(920, "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."),
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
},
|
|
@@ -61,7 +61,7 @@ registerEditorAction(class PasteAsAction extends EditorAction {
|
|
|
61
61
|
properties: {
|
|
62
62
|
preferences: {
|
|
63
63
|
type: 'array',
|
|
64
|
-
description: nls.localize(
|
|
64
|
+
description: nls.localize(921, "List of preferred paste edit kind to try applying.\nThe first edit matching the preferences will be applied."),
|
|
65
65
|
items: { type: 'string' }
|
|
66
66
|
}
|
|
67
67
|
},
|
|
@@ -71,7 +71,7 @@ registerEditorAction(class PasteAsAction extends EditorAction {
|
|
|
71
71
|
constructor() {
|
|
72
72
|
super({
|
|
73
73
|
id: pasteAsCommandId,
|
|
74
|
-
label: nls.localize2(
|
|
74
|
+
label: nls.localize2(922, "Paste As..."),
|
|
75
75
|
precondition: EditorContextKeys.writable,
|
|
76
76
|
metadata: {
|
|
77
77
|
description: 'Paste as',
|
|
@@ -100,7 +100,7 @@ registerEditorAction(class extends EditorAction {
|
|
|
100
100
|
constructor() {
|
|
101
101
|
super({
|
|
102
102
|
id: 'editor.action.pasteAsText',
|
|
103
|
-
label: nls.localize2(
|
|
103
|
+
label: nls.localize2(923, "Paste as Text"),
|
|
104
104
|
precondition: EditorContextKeys.writable,
|
|
105
105
|
canTriggerInlineEdits: true,
|
|
106
106
|
});
|
|
@@ -33,7 +33,7 @@ import { IInstantiationService } from '../../../../platform/instantiation/common
|
|
|
33
33
|
import { ILogService } from '../../../../platform/log/common/log.js';
|
|
34
34
|
import { IProgressService } from '../../../../platform/progress/common/progress.js';
|
|
35
35
|
import { IQuickInputService } from '../../../../platform/quickinput/common/quickInput.js';
|
|
36
|
-
import { ClipboardEventUtils, InMemoryClipboardMetadataManager } from '../../../browser/controller/editContext/clipboardUtils.js';
|
|
36
|
+
import { ClipboardEventUtils, CopyOptions, InMemoryClipboardMetadataManager, PasteOptions } from '../../../browser/controller/editContext/clipboardUtils.js';
|
|
37
37
|
import { toExternalVSDataTransfer, toVSDataTransfer } from '../../../browser/dataTransfer.js';
|
|
38
38
|
import { IBulkEditService } from '../../../browser/services/bulkEditService.js';
|
|
39
39
|
import { Range } from '../../../common/core/range.js';
|
|
@@ -47,7 +47,7 @@ import { createCombinedWorkspaceEdit, sortEditsByYieldTo } from './edit.js';
|
|
|
47
47
|
import { PostEditWidgetManager } from './postEditWidget.js';
|
|
48
48
|
export const changePasteTypeCommandId = 'editor.changePasteType';
|
|
49
49
|
export const pasteAsPreferenceConfig = 'editor.pasteAs.preferences';
|
|
50
|
-
export const pasteWidgetVisibleCtx = new RawContextKey('pasteWidgetVisible', false, localize(
|
|
50
|
+
export const pasteWidgetVisibleCtx = new RawContextKey('pasteWidgetVisible', false, localize(924, "Whether the paste widget is showing"));
|
|
51
51
|
const vscodeClipboardMime = 'application/vnd.code.copymetadata';
|
|
52
52
|
let CopyPasteController = class CopyPasteController extends Disposable {
|
|
53
53
|
static { CopyPasteController_1 = this; }
|
|
@@ -71,7 +71,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
71
71
|
this._register(addDisposableListener(container, 'cut', e => this.handleCopy(e)));
|
|
72
72
|
this._register(addDisposableListener(container, 'paste', e => this.handlePaste(e), true));
|
|
73
73
|
this._pasteProgressManager = this._register(new InlineProgressManager('pasteIntoEditor', editor, instantiationService));
|
|
74
|
-
this._postPasteWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'pasteIntoEditor', editor, pasteWidgetVisibleCtx, { id: changePasteTypeCommandId, label: localize(
|
|
74
|
+
this._postPasteWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'pasteIntoEditor', editor, pasteWidgetVisibleCtx, { id: changePasteTypeCommandId, label: localize(925, "Show paste options...") }, () => CopyPasteController_1._configureDefaultAction ? [CopyPasteController_1._configureDefaultAction] : []));
|
|
75
75
|
}
|
|
76
76
|
changePasteType() {
|
|
77
77
|
this._postPasteWidgetManager.tryShowSelector();
|
|
@@ -98,6 +98,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
98
98
|
await this._currentPasteOperation;
|
|
99
99
|
}
|
|
100
100
|
handleCopy(e) {
|
|
101
|
+
CopyOptions.electronBugWorkaroundCopyEventHasFired = true;
|
|
101
102
|
let id = null;
|
|
102
103
|
if (e.clipboardData) {
|
|
103
104
|
const [text, metadata] = ClipboardEventUtils.getTextData(e.clipboardData);
|
|
@@ -109,6 +110,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
109
110
|
this._logService.trace('CopyPasteController#handleCopy');
|
|
110
111
|
}
|
|
111
112
|
if (!this._editor.hasTextFocus()) {
|
|
113
|
+
this._logService.trace('CopyPasteController#handleCopy/earlyReturn1');
|
|
112
114
|
return;
|
|
113
115
|
}
|
|
114
116
|
// Explicitly clear the clipboard internal state.
|
|
@@ -116,11 +118,13 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
116
118
|
// This means the resources clipboard is not properly updated when copying from the editor.
|
|
117
119
|
this._clipboardService.clearInternalState?.();
|
|
118
120
|
if (!e.clipboardData || !this.isPasteAsEnabled()) {
|
|
121
|
+
this._logService.trace('CopyPasteController#handleCopy/earlyReturn2');
|
|
119
122
|
return;
|
|
120
123
|
}
|
|
121
124
|
const model = this._editor.getModel();
|
|
122
125
|
const selections = this._editor.getSelections();
|
|
123
126
|
if (!model || !selections?.length) {
|
|
127
|
+
this._logService.trace('CopyPasteController#handleCopy/earlyReturn3');
|
|
124
128
|
return;
|
|
125
129
|
}
|
|
126
130
|
const enableEmptySelectionClipboard = this._editor.getOption(45 /* EditorOption.emptySelectionClipboard */);
|
|
@@ -128,6 +132,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
128
132
|
const wasFromEmptySelection = selections.length === 1 && selections[0].isEmpty();
|
|
129
133
|
if (wasFromEmptySelection) {
|
|
130
134
|
if (!enableEmptySelectionClipboard) {
|
|
135
|
+
this._logService.trace('CopyPasteController#handleCopy/earlyReturn4');
|
|
131
136
|
return;
|
|
132
137
|
}
|
|
133
138
|
ranges = [new Range(ranges[0].startLineNumber, 1, ranges[0].startLineNumber, 1 + model.getLineLength(ranges[0].startLineNumber))];
|
|
@@ -144,6 +149,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
144
149
|
.filter(x => !!x.prepareDocumentPaste);
|
|
145
150
|
if (!providers.length) {
|
|
146
151
|
this.setCopyMetadata(e.clipboardData, { defaultPastePayload });
|
|
152
|
+
this._logService.trace('CopyPasteController#handleCopy/earlyReturn5');
|
|
147
153
|
return;
|
|
148
154
|
}
|
|
149
155
|
const dataTransfer = toVSDataTransfer(e.clipboardData);
|
|
@@ -167,8 +173,10 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
167
173
|
});
|
|
168
174
|
CopyPasteController_1._currentCopyOperation?.operations.forEach(entry => entry.operation.cancel());
|
|
169
175
|
CopyPasteController_1._currentCopyOperation = { handle, operations };
|
|
176
|
+
this._logService.trace('CopyPasteController#handleCopy/end');
|
|
170
177
|
}
|
|
171
178
|
async handlePaste(e) {
|
|
179
|
+
PasteOptions.electronBugWorkaroundPasteEventHasFired = true;
|
|
172
180
|
if (e.clipboardData) {
|
|
173
181
|
const [text, metadata] = ClipboardEventUtils.getTextData(e.clipboardData);
|
|
174
182
|
const metadataComputed = metadata || InMemoryClipboardMetadataManager.INSTANCE.get(text);
|
|
@@ -178,6 +186,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
178
186
|
this._logService.trace('CopyPasteController#handlePaste');
|
|
179
187
|
}
|
|
180
188
|
if (!e.clipboardData || !this._editor.hasTextFocus()) {
|
|
189
|
+
this._logService.trace('CopyPasteController#handlePaste/earlyReturn1');
|
|
181
190
|
return;
|
|
182
191
|
}
|
|
183
192
|
MessageController.get(this._editor)?.closeMessage();
|
|
@@ -186,11 +195,13 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
186
195
|
const model = this._editor.getModel();
|
|
187
196
|
const selections = this._editor.getSelections();
|
|
188
197
|
if (!selections?.length || !model) {
|
|
198
|
+
this._logService.trace('CopyPasteController#handlePaste/earlyReturn2');
|
|
189
199
|
return;
|
|
190
200
|
}
|
|
191
201
|
if (this._editor.getOption(104 /* EditorOption.readOnly */) // Never enabled if editor is readonly.
|
|
192
202
|
|| (!this.isPasteAsEnabled() && !this._pasteAsActionContext) // Or feature disabled (but still enable if paste was explicitly requested)
|
|
193
203
|
) {
|
|
204
|
+
this._logService.trace('CopyPasteController#handlePaste/earlyReturn3');
|
|
194
205
|
return;
|
|
195
206
|
}
|
|
196
207
|
const metadata = this.fetchCopyMetadata(e);
|
|
@@ -227,6 +238,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
227
238
|
e.preventDefault();
|
|
228
239
|
e.stopImmediatePropagation();
|
|
229
240
|
}
|
|
241
|
+
this._logService.trace('CopyPasteController#handlePaste/earlyReturn4');
|
|
230
242
|
return;
|
|
231
243
|
}
|
|
232
244
|
// Prevent the editor's default paste handler from running.
|
|
@@ -240,14 +252,15 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
240
252
|
else {
|
|
241
253
|
this.doPasteInline(allProviders, selections, dataTransfer, metadata, e);
|
|
242
254
|
}
|
|
255
|
+
this._logService.trace('CopyPasteController#handlePaste/end');
|
|
243
256
|
}
|
|
244
257
|
showPasteAsNoEditMessage(selections, preference) {
|
|
245
258
|
const kindLabel = 'only' in preference
|
|
246
259
|
? preference.only.value
|
|
247
260
|
: 'preferences' in preference
|
|
248
|
-
? (preference.preferences.length ? preference.preferences.map(preference => preference.value).join(', ') : localize(
|
|
261
|
+
? (preference.preferences.length ? preference.preferences.map(preference => preference.value).join(', ') : localize(926, "empty"))
|
|
249
262
|
: preference.providerId;
|
|
250
|
-
MessageController.get(this._editor)?.showMessage(localize(
|
|
263
|
+
MessageController.get(this._editor)?.showMessage(localize(927, "No paste edits for '{0}' found", kindLabel), selections[0].getStartPosition());
|
|
251
264
|
}
|
|
252
265
|
doPasteInline(allProviders, selections, dataTransfer, metadata, clipboardEvent) {
|
|
253
266
|
this._logService.trace('CopyPasteController#doPasteInline');
|
|
@@ -297,7 +310,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
297
310
|
}
|
|
298
311
|
const resolveP = edit.provider.resolveDocumentPasteEdit(edit, resolveToken);
|
|
299
312
|
const showP = new DeferredPromise();
|
|
300
|
-
const resolved = await this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(
|
|
313
|
+
const resolved = await this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(928, "Resolving paste edit for '{0}'. Click to cancel", edit.title), raceCancellation(Promise.race([showP.p, resolveP]), resolveToken), {
|
|
301
314
|
cancel: () => showP.cancel()
|
|
302
315
|
}, 0);
|
|
303
316
|
if (resolved) {
|
|
@@ -316,7 +329,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
316
329
|
}
|
|
317
330
|
}
|
|
318
331
|
});
|
|
319
|
-
this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(
|
|
332
|
+
this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(929, "Running paste handlers. Click to cancel and do basic paste"), p, {
|
|
320
333
|
cancel: async () => {
|
|
321
334
|
p.cancel();
|
|
322
335
|
if (editorStateCts.token.isCancellationRequested) {
|
|
@@ -388,7 +401,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
388
401
|
else {
|
|
389
402
|
const configureDefaultItem = {
|
|
390
403
|
id: 'editor.pasteAs.default',
|
|
391
|
-
label: localize(
|
|
404
|
+
label: localize(930, "Configure default paste action"),
|
|
392
405
|
edit: undefined,
|
|
393
406
|
};
|
|
394
407
|
const selected = await this._quickInputService.pick([
|
|
@@ -405,7 +418,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
405
418
|
}
|
|
406
419
|
] : [])
|
|
407
420
|
], {
|
|
408
|
-
placeHolder: localize(
|
|
421
|
+
placeHolder: localize(931, "Select Paste Action"),
|
|
409
422
|
});
|
|
410
423
|
if (selected === configureDefaultItem) {
|
|
411
424
|
CopyPasteController_1._configureDefaultAction?.run();
|
|
@@ -428,7 +441,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
428
441
|
});
|
|
429
442
|
this._progressService.withProgress({
|
|
430
443
|
location: 10 /* ProgressLocation.Window */,
|
|
431
|
-
title: localize(
|
|
444
|
+
title: localize(932, "Running paste handlers"),
|
|
432
445
|
}, () => p);
|
|
433
446
|
}
|
|
434
447
|
setCopyMetadata(dataTransfer, metadata) {
|