@codingame/monaco-vscode-api 19.1.3 → 20.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 +141 -54
- package/package.json +8 -8
- package/services.d.ts +5 -5
- package/services.js +3 -3
- package/vscode/src/vs/base/browser/dom.d.ts +7 -5
- package/vscode/src/vs/base/browser/dom.js +21 -132
- package/vscode/src/vs/base/browser/domSanitize.d.ts +28 -0
- package/vscode/src/vs/base/browser/domSanitize.js +175 -0
- package/vscode/src/vs/base/browser/formattedTextRenderer.d.ts +2 -5
- package/vscode/src/vs/base/browser/formattedTextRenderer.js +13 -20
- package/vscode/src/vs/base/browser/markdownRenderer.d.ts +23 -13
- package/vscode/src/vs/base/browser/markdownRenderer.js +155 -126
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.d.ts +2 -0
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +9 -11
- package/vscode/src/vs/base/browser/ui/button/button.d.ts +2 -0
- package/vscode/src/vs/base/browser/ui/button/button.js +24 -15
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.js +5 -10
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css +9 -0
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +3 -21
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +7 -7
- package/vscode/src/vs/base/browser/ui/list/listPaging.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +2 -0
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +3 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/abstractScrollbar.js +9 -5
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.d.ts +3 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +48 -1
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElementOptions.d.ts +2 -0
- package/vscode/src/vs/base/browser/ui/toggle/toggle.css +0 -3
- package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +22 -12
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +93 -33
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.d.ts +3 -0
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +3 -0
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.d.ts +3 -1
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +19 -17
- package/vscode/src/vs/base/browser/webWorkerFactory.d.ts +1 -1
- package/vscode/src/vs/base/browser/webWorkerFactory.js +3 -2
- package/vscode/src/vs/base/common/arrays.js +4 -1
- package/vscode/src/vs/base/common/arraysFind.d.ts +1 -0
- package/vscode/src/vs/base/common/async.d.ts +26 -0
- package/vscode/src/vs/base/common/async.js +103 -1
- package/vscode/src/vs/base/common/codicons.d.ts +1 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +1 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +1 -0
- package/vscode/src/vs/base/common/lifecycle.js +4 -0
- package/vscode/src/vs/base/common/marshallingIds.d.ts +3 -1
- package/vscode/src/vs/base/common/marshallingIds.js +2 -0
- package/vscode/src/vs/base/common/network.d.ts +2 -1
- package/vscode/src/vs/base/common/network.js +2 -1
- package/vscode/src/vs/base/common/oauth.d.ts +2 -8
- package/vscode/src/vs/base/common/oauth.js +6 -27
- package/vscode/src/vs/base/common/observableInternal/changeTracker.d.ts +10 -0
- package/vscode/src/vs/base/common/observableInternal/changeTracker.js +33 -1
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +2 -2
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/devToolsLogger.js +22 -1
- package/vscode/src/vs/base/common/observableInternal/map.d.ts +24 -0
- package/vscode/src/vs/base/common/observableInternal/map.js +63 -0
- package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.d.ts +1 -0
- package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.js +8 -0
- package/vscode/src/vs/base/common/platform.js +1 -1
- package/vscode/src/vs/base/common/product.d.ts +19 -7
- package/vscode/src/vs/base/common/strings.d.ts +1 -0
- package/vscode/src/vs/base/common/strings.js +16 -1
- package/vscode/src/vs/editor/browser/config/editorConfiguration.js +4 -4
- package/vscode/src/vs/editor/browser/config/migrateOptions.js +1 -0
- package/vscode/src/vs/editor/browser/controller/dragScrolling.d.ts +48 -0
- package/vscode/src/vs/editor/browser/controller/dragScrolling.js +182 -0
- package/vscode/src/vs/editor/browser/controller/editContext/clipboardUtils.d.ts +1 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +3 -5
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +30 -73
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentRich.d.ts +35 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentRich.js +329 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentSimple.d.ts +31 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentSimple.js +176 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.d.ts +12 -12
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +50 -88
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderUtils.d.ts +11 -0
- package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.d.ts +9 -12
- package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.js +22 -11
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +5 -21
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.js +23 -2
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextState.d.ts +2 -2
- package/vscode/src/vs/editor/browser/controller/mouseHandler.d.ts +1 -0
- package/vscode/src/vs/editor/browser/controller/mouseHandler.js +31 -114
- package/vscode/src/vs/editor/browser/controller/mouseTarget.d.ts +1 -0
- package/vscode/src/vs/editor/browser/controller/mouseTarget.js +26 -7
- package/vscode/src/vs/editor/browser/coreCommands.d.ts +3 -3
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +1 -1
- package/vscode/src/vs/editor/browser/editorExtensions.d.ts +2 -2
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.js +1 -1
- package/vscode/src/vs/editor/browser/gpu/taskQueue.d.ts +5 -2
- package/vscode/src/vs/editor/browser/gpu/taskQueue.js +11 -4
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +1 -1
- package/vscode/src/vs/editor/browser/services/bulkEditService.d.ts +2 -2
- package/vscode/src/vs/editor/browser/services/editorWorkerService.d.ts +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.d.ts +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +33 -1
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.d.ts +1 -0
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +6 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.d.ts +4 -1
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.js +13 -2
- package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.d.ts +1 -1
- package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.js +1 -1
- package/vscode/src/vs/editor/browser/view/renderingContext.d.ts +2 -1
- package/vscode/src/vs/editor/browser/view/viewUserInputEvents.d.ts +1 -1
- package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +4 -3
- package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.css +8 -2
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.d.ts +3 -2
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +44 -13
- package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.d.ts +1 -0
- package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +7 -2
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.d.ts +1 -0
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.js +9 -4
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.d.ts +1 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +43 -35
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.d.ts +1 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.js +2 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.css +1 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.d.ts +1 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.js +21 -4
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +3 -3
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +3 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +4 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.d.ts +3 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +9 -3
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.d.ts +2 -2
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +4 -4
- package/vscode/src/vs/editor/common/commands/surroundSelectionCommand.js +1 -1
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +21 -6
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +178 -162
- package/vscode/src/vs/editor/common/config/editorOptions.js +592 -495
- package/vscode/src/vs/editor/common/coordinatesConverter.d.ts +30 -0
- package/vscode/src/vs/editor/common/coordinatesConverter.js +56 -0
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/core/edits/edit.d.ts +3 -3
- package/vscode/src/vs/editor/common/core/edits/lineEdit.d.ts +2 -2
- package/vscode/src/vs/editor/common/core/edits/lineEdit.js +14 -14
- package/vscode/src/vs/editor/common/core/edits/stringEdit.d.ts +11 -4
- package/vscode/src/vs/editor/common/core/edits/stringEdit.js +36 -12
- package/vscode/src/vs/editor/common/core/edits/textEdit.d.ts +3 -0
- package/vscode/src/vs/editor/common/core/edits/textEdit.js +20 -0
- package/vscode/src/vs/editor/common/core/text/abstractText.d.ts +2 -0
- package/vscode/src/vs/editor/common/core/text/abstractText.js +3 -0
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.d.ts +1 -1
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.js +2 -2
- package/vscode/src/vs/editor/common/cursor/cursor.d.ts +4 -4
- package/vscode/src/vs/editor/common/cursor/cursor.js +9 -9
- package/vscode/src/vs/editor/common/cursor/cursorContext.d.ts +1 -1
- package/vscode/src/vs/editor/common/cursor/cursorDeleteOperations.d.ts +2 -1
- package/vscode/src/vs/editor/common/cursor/cursorDeleteOperations.js +28 -13
- package/vscode/src/vs/editor/common/cursor/cursorMoveCommands.js +15 -6
- package/vscode/src/vs/editor/common/cursorCommon.d.ts +1 -0
- package/vscode/src/vs/editor/common/cursorCommon.js +2 -0
- package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
- package/vscode/src/vs/editor/common/languages/defaultDocumentColorsComputer.js +3 -3
- package/vscode/src/vs/editor/common/languages/linkComputer.js +1 -4
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +19 -0
- package/vscode/src/vs/editor/common/languages.js +83 -57
- package/vscode/src/vs/editor/common/model/editStack.d.ts +2 -2
- package/vscode/src/vs/editor/common/model/editStack.js +3 -3
- package/vscode/src/vs/editor/common/model/textModel.d.ts +7 -6
- package/vscode/src/vs/editor/common/model/textModel.js +5 -4
- package/vscode/src/vs/editor/common/model.d.ts +6 -1
- package/vscode/src/vs/editor/common/model.js +6 -1
- package/vscode/src/vs/editor/common/modelLineProjectionData.d.ts +1 -1
- package/vscode/src/vs/editor/common/services/editorWebWorker.d.ts +1 -1
- package/vscode/src/vs/editor/common/services/model.service.d.ts +2 -2
- package/vscode/src/vs/editor/common/services/modelService.d.ts +2 -2
- package/vscode/src/vs/editor/common/services/modelService.js +2 -2
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +172 -160
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +174 -161
- package/vscode/src/vs/editor/common/standaloneStrings.js +47 -47
- package/vscode/src/vs/editor/common/textModelEditSource.d.ts +151 -0
- package/vscode/src/vs/editor/common/{textModelEditReason.js → textModelEditSource.js} +44 -23
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +2 -2
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +1 -1
- package/vscode/src/vs/editor/common/viewLayout/lineDecorations.d.ts +1 -1
- package/vscode/src/vs/editor/common/viewLayout/lineDecorations.js +1 -1
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.d.ts +8 -5
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +29 -29
- package/vscode/src/vs/editor/common/viewLayout/viewLinesViewportData.d.ts +2 -1
- package/vscode/src/vs/editor/common/viewModel/inlineDecorations.d.ts +21 -0
- package/vscode/src/vs/editor/common/viewModel/inlineDecorations.js +30 -0
- package/vscode/src/vs/editor/common/viewModel/modelLineProjection.js +2 -1
- package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.d.ts +1 -1
- package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +11 -3
- package/vscode/src/vs/editor/common/viewModel/screenReaderSimpleModel.d.ts +10 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelDecoration.d.ts +11 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelDecoration.js +49 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.d.ts +7 -11
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.js +5 -43
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +7 -4
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +32 -9
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.d.ts +4 -2
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.js +5 -55
- package/vscode/src/vs/editor/common/viewModel.d.ts +8 -34
- package/vscode/src/vs/editor/common/viewModel.js +3 -35
- 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 +44 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +8 -7
- 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/codeActionModel.js +5 -1
- 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/colorPickerParts/colorPickerSaturationBox.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerSaturationBox.js +0 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +4 -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 -19
- 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.d.ts +3 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +54 -29
- 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.d.ts +4 -4
- 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/folding/browser/folding.js +20 -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/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/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.d.ts +3 -1
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +31 -3
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.d.ts +3 -1
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.js +6 -3
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +7 -2
- package/vscode/src/vs/editor/contrib/hover/browser/getHover.d.ts +1 -2
- package/vscode/src/vs/editor/contrib/hover/browser/getHover.js +6 -2
- 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/hoverTypes.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.d.ts +1 -2
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +18 -19
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +17 -15
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.d.ts +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +22 -1
- 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/ghostText.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +5 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +107 -83
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +31 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +4 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +27 -16
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +6 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +11 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/typingSpeed.d.ts +32 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/typingSpeed.js +145 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +2 -21
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +14 -9
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +3 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +42 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- 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 +5 -0
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +105 -33
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +34 -28
- 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 +13 -13
- 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 +2 -2
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +2 -2
- 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/stickyScrollWidget.js +5 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +13 -13
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
- 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.d.ts +6 -6
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +30 -30
- 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 +9 -6
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
- package/vscode/src/vs/editor/editor.worker.start.d.ts +1 -1
- package/vscode/src/vs/editor/editor.worker.start.js +26 -18
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.d.ts +2 -1
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +3 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.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.d.ts +3 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +45 -8
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +20 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/vscode/src/vs/platform/actions/browser/actionViewItemService.service.d.ts +5 -5
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +1 -0
- package/vscode/src/vs/platform/actions/browser/toolbar.js +6 -3
- package/vscode/src/vs/platform/actions/common/actions.d.ts +4 -3
- package/vscode/src/vs/platform/actions/common/actions.js +4 -3
- 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/clipboard/browser/clipboardService.d.ts +1 -1
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +12 -2
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +5 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +20 -10
- package/vscode/src/vs/platform/configuration/common/configurations.js +2 -2
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/diagnostics/common/diagnostics.d.ts +1 -1
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.d.ts +1 -0
- package/vscode/src/vs/platform/dnd/browser/dnd.js +2 -1
- package/vscode/src/vs/platform/environment/common/argv.d.ts +2 -0
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionGalleryManifest.d.ts +62 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionGalleryManifest.js +55 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionGalleryManifest.service.d.ts +3 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +2 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +19 -19
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +21 -0
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +21 -0
- 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/imageResize/common/imageResizeService.service.d.ts +5 -0
- package/vscode/src/vs/platform/imageResize/common/imageResizeService.service.js +6 -0
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
- 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/mcpManagement.service.d.ts +8 -0
- package/vscode/src/vs/platform/mcp/common/mcpManagement.service.js +2 -1
- package/vscode/src/vs/platform/notification/common/notification.js +3 -3
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.d.ts +1 -0
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.js +20 -9
- package/vscode/src/vs/platform/opener/browser/link.js +1 -4
- package/vscode/src/vs/platform/policy/common/policy.d.ts +2 -2
- package/vscode/src/vs/platform/policy/common/policy.service.d.ts +1 -1
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +81 -14
- package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +10 -7
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +19 -14
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.d.ts +2 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +38 -11
- package/vscode/src/vs/platform/quickinput/browser/{quickInputTree.d.ts → quickInputList.d.ts} +1 -1
- package/vscode/src/vs/platform/quickinput/browser/{quickInputTree.js → quickInputList.js} +9 -9
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.d.ts +2 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +3 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputDelegate.d.ts +6 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputDelegate.js +13 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTree.d.ts +9 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTree.js +35 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.d.ts +13 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +33 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.d.ts +42 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.js +296 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeFilter.d.ts +10 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeFilter.js +39 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.d.ts +33 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +148 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.d.ts +53 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +189 -0
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +46 -2
- package/vscode/src/vs/platform/quickinput/common/quickInput.js +1 -0
- package/vscode/src/vs/platform/quickinput/common/quickInput.service.d.ts +2 -1
- package/vscode/src/vs/platform/request/common/request.js +18 -18
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/terminal/common/environmentVariableShared.d.ts +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +6 -5
- package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +2 -4
- package/vscode/src/vs/platform/terminal/common/terminalProcess.d.ts +1 -1
- package/vscode/src/vs/platform/theme/browser/defaultStyles.d.ts +1 -1
- 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.d.ts +12 -2
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +14 -6
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +2 -1
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +64 -9
- package/vscode/src/vs/workbench/api/common/extHost.common.services.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +102 -41
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +6 -0
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +4 -2
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +98 -27
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +22 -4
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +24 -5
- package/vscode/src/vs/workbench/api/common/extHostChatOutputRenderer.d.ts +14 -0
- package/vscode/src/vs/workbench/api/common/extHostChatOutputRenderer.js +32 -0
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.d.ts +35 -0
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +222 -0
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDataChannels.d.ts +15 -0
- package/vscode/src/vs/workbench/api/common/extHostDataChannels.js +44 -0
- 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 +3 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +32 -34
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.d.ts +12 -15
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +127 -120
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +40 -25
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +1 -2
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +28 -10
- package/vscode/src/vs/workbench/api/common/extHostSecretState.d.ts +1 -0
- package/vscode/src/vs/workbench/api/common/extHostSecretState.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostSecrets.d.ts +2 -0
- package/vscode/src/vs/workbench/api/common/extHostSecrets.js +6 -0
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTask.d.ts +3 -0
- package/vscode/src/vs/workbench/api/common/extHostTask.js +12 -1
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.d.ts +8 -8
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +203 -198
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +19 -8
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +211 -33
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +77 -13
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +69 -11
- 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 +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.d.ts +4 -2
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +24 -10
- package/vscode/src/vs/workbench/browser/contextkeys.js +10 -5
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.d.ts +1 -1
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.js +87 -78
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.d.ts +32 -0
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +180 -0
- package/vscode/src/vs/workbench/common/editor/diffEditorModel.d.ts +12 -0
- package/vscode/src/vs/workbench/common/editor/diffEditorModel.js +26 -0
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor/editorModel.d.ts +10 -0
- package/vscode/src/vs/workbench/common/editor/editorModel.js +27 -0
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.d.ts +51 -0
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +303 -0
- package/vscode/src/vs/workbench/common/editor/textDiffEditorModel.d.ts +18 -0
- package/vscode/src/vs/workbench/common/editor/textDiffEditorModel.js +45 -0
- package/vscode/src/vs/workbench/common/editor/textEditorModel.d.ts +47 -0
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +181 -0
- package/vscode/src/vs/workbench/common/editor.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.d.ts +2 -2
- package/vscode/src/vs/workbench/common/theme.js +161 -161
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +164 -156
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.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.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.service.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +59 -48
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +81 -11
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +7 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.service.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +32 -11
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +8 -5
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +47 -17
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +147 -65
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.service.d.ts +9 -7
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.js +203 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.js +4 -0
- 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 +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.d.ts +1 -1
- 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/extensions/common/extensions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +4 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +5 -5
- 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/inlineChat/browser/inlineChatSessionService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +1 -1
- 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 +7 -2
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryTypes.service.d.ts +5 -4
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +33 -9
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +28 -10
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +11 -3
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.d.ts +1 -1
- 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 +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +9 -7
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.service.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.d.ts +2 -0
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +8 -10
- package/vscode/src/vs/workbench/services/activity/common/activity.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.service.js +1 -1
- package/vscode/src/vs/workbench/services/authentication/common/dynamicAuthenticationProviderStorage.service.d.ts +5 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/dataChannel/common/dataChannel.d.ts +7 -0
- package/vscode/src/vs/workbench/services/dataChannel/common/dataChannel.service.d.ts +8 -0
- package/vscode/src/vs/workbench/services/dataChannel/common/dataChannel.service.js +6 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +10 -13
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.service.d.ts +2 -5
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +100 -84
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.d.ts +61 -0
- package/vscode/src/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.js +7 -0
- package/vscode/src/vs/workbench/services/localization/common/locale.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.service.d.ts +11 -8
- package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.service.js +3 -2
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +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/statusbar/browser/statusbar.d.ts +1 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +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/src/vs/workbench/services/workingCopy/common/workingCopyBackup.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.service.d.ts +1 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.d.ts +1 -1
- package/vscode-dts/vscode.d.ts +5 -5
- package/vscode-dts/vscode.proposed.chatOutputRenderer.d.ts +86 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +142 -5
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +25 -19
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +2 -103
- package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +129 -0
- package/vscode-dts/vscode.proposed.d.ts +7 -0
- package/vscode-dts/vscode.proposed.dataChannels.d.ts +19 -0
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +2 -0
- package/vscode-dts/vscode.proposed.languageModelToolResultAudience.d.ts +25 -0
- package/vscode-dts/vscode.proposed.scmProviderOptions.d.ts +39 -0
- package/vscode-dts/vscode.proposed.secretStorageKeys.d.ts +16 -0
- package/vscode-dts/vscode.proposed.taskExecutionTerminal.d.ts +15 -0
- package/workbench.d.ts +1 -1
- package/workers/editor.worker.js +17 -16
- package/vscode/src/vs/base/common/policy.d.ts +0 -8
- package/vscode/src/vs/editor/common/textModelEditReason.d.ts +0 -98
- package/vscode/src/vs/platform/assignment/common/assignment.d.ts +0 -33
|
@@ -22,23 +22,23 @@ import { Range } from '../../../common/core/range.js';
|
|
|
22
22
|
var LightBulbWidget_1;
|
|
23
23
|
registerCss(lightBulbWidget);
|
|
24
24
|
const GUTTER_LIGHTBULB_ICON = registerIcon('gutter-lightbulb', Codicon.lightBulb, ( localize(
|
|
25
|
-
|
|
25
|
+
961,
|
|
26
26
|
'Icon which spawns code actions menu from the gutter when there is no space in the editor.'
|
|
27
27
|
)));
|
|
28
28
|
const GUTTER_LIGHTBULB_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-auto-fix', Codicon.lightbulbAutofix, ( localize(
|
|
29
|
-
|
|
29
|
+
962,
|
|
30
30
|
'Icon which spawns code actions menu from the gutter when there is no space in the editor and a quick fix is available.'
|
|
31
31
|
)));
|
|
32
32
|
const GUTTER_LIGHTBULB_AIFIX_ICON = registerIcon('gutter-lightbulb-sparkle', Codicon.lightbulbSparkle, ( localize(
|
|
33
|
-
|
|
33
|
+
963,
|
|
34
34
|
'Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix is available.'
|
|
35
35
|
)));
|
|
36
36
|
const GUTTER_LIGHTBULB_AIFIX_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-aifix-auto-fix', Codicon.lightbulbSparkleAutofix, ( localize(
|
|
37
|
-
|
|
37
|
+
964,
|
|
38
38
|
'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.'
|
|
39
39
|
)));
|
|
40
40
|
const GUTTER_SPARKLE_FILLED_ICON = registerIcon('gutter-lightbulb-sparkle-filled', Codicon.sparkleFilled, ( localize(
|
|
41
|
-
|
|
41
|
+
965,
|
|
42
42
|
'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.'
|
|
43
43
|
)));
|
|
44
44
|
var LightBulbState;
|
|
@@ -401,20 +401,20 @@ let LightBulbWidget = class LightBulbWidget extends Disposable {
|
|
|
401
401
|
return;
|
|
402
402
|
}
|
|
403
403
|
if (autoRun) {
|
|
404
|
-
this.title = ( localize(
|
|
404
|
+
this.title = ( localize(966, "Run: {0}", this.state.actions.validActions[0].action.title));
|
|
405
405
|
}
|
|
406
406
|
else if (autoFix && this._preferredKbLabel) {
|
|
407
407
|
this.title = ( localize(
|
|
408
|
-
|
|
408
|
+
967,
|
|
409
409
|
"Show Code Actions. Preferred Quick Fix Available ({0})",
|
|
410
410
|
this._preferredKbLabel
|
|
411
411
|
));
|
|
412
412
|
}
|
|
413
413
|
else if (!autoFix && this._quickFixKbLabel) {
|
|
414
|
-
this.title = ( localize(
|
|
414
|
+
this.title = ( localize(968, "Show Code Actions ({0})", this._quickFixKbLabel));
|
|
415
415
|
}
|
|
416
416
|
else if (!autoFix) {
|
|
417
|
-
this.title = ( localize(
|
|
417
|
+
this.title = ( localize(969, "Show Code Actions"));
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
set title(value) {
|
|
@@ -391,7 +391,7 @@ registerEditorAction(class ShowLensesInCurrentLine extends EditorAction {
|
|
|
391
391
|
super({
|
|
392
392
|
id: 'codelens.showLensesInCurrentLine',
|
|
393
393
|
precondition: EditorContextKeys.hasCodeLensProvider,
|
|
394
|
-
label: ( localize2(
|
|
394
|
+
label: ( localize2(970, "Show CodeLens Commands for Current Line")),
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
397
|
async run(accessor, editor) {
|
|
@@ -424,7 +424,7 @@ registerEditorAction(class ShowLensesInCurrentLine extends EditorAction {
|
|
|
424
424
|
}
|
|
425
425
|
const item = await quickInputService.pick(items, {
|
|
426
426
|
canPickMany: false,
|
|
427
|
-
placeHolder: ( localize(
|
|
427
|
+
placeHolder: ( localize(971, "Select a command"))
|
|
428
428
|
});
|
|
429
429
|
if (!item) {
|
|
430
430
|
return;
|
package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js
CHANGED
|
@@ -22,7 +22,7 @@ class CloseButton extends Disposable {
|
|
|
22
22
|
const innerDiv = createElement('div');
|
|
23
23
|
innerDiv.classList.add('close-button-inner-div');
|
|
24
24
|
append(this._button, innerDiv);
|
|
25
|
-
const closeButton = append(innerDiv, $('.button' + ThemeIcon.asCSSSelector(registerIcon('color-picker-close', Codicon.close, ( localize(
|
|
25
|
+
const closeButton = append(innerDiv, $('.button' + ThemeIcon.asCSSSelector(registerIcon('color-picker-close', Codicon.close, ( localize(972, 'Icon to close the color picker'))))));
|
|
26
26
|
closeButton.classList.add('close-icon');
|
|
27
27
|
this._register(addDisposableListener(this._button, EventType.CLICK, () => {
|
|
28
28
|
this._onClicked.fire();
|
package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js
CHANGED
|
@@ -33,7 +33,7 @@ class ColorPickerHeader extends Disposable {
|
|
|
33
33
|
append(this._pickedColorNode, $('span.codicon.codicon-color-mode'));
|
|
34
34
|
this._pickedColorPresentation = append(this._pickedColorNode, createElement('span'));
|
|
35
35
|
this._pickedColorPresentation.classList.add('picked-color-presentation');
|
|
36
|
-
const tooltip = ( localize(
|
|
36
|
+
const tooltip = ( localize(973, "Click to toggle color options (rgb/hsl/hex)"));
|
|
37
37
|
this._pickedColorNode.setAttribute('title', tooltip);
|
|
38
38
|
this._originalColorNode = append(this._domNode, $('.original-color'));
|
|
39
39
|
this._originalColorNode.style.backgroundColor = Color.Format.CSS.format(this.model.originalColor) || '';
|
|
@@ -19,7 +19,6 @@ export declare class SaturationBox extends Disposable {
|
|
|
19
19
|
readonly onColorFlushed: Event<void>;
|
|
20
20
|
constructor(container: HTMLElement, model: ColorPickerModel, pixelRatio: number);
|
|
21
21
|
get domNode(): HTMLElement;
|
|
22
|
-
get canvas(): HTMLCanvasElement;
|
|
23
22
|
private onPointerDown;
|
|
24
23
|
private onDidChangePosition;
|
|
25
24
|
layout(): void;
|
|
@@ -32,6 +32,7 @@ export declare class HoverColorPickerParticipant implements IEditorHoverParticip
|
|
|
32
32
|
renderHoverParts(context: IEditorHoverRenderContext, hoverParts: ColorHover[]): IRenderedHoverParts<ColorHover>;
|
|
33
33
|
getAccessibleContent(hoverPart: ColorHover): string;
|
|
34
34
|
handleResize(): void;
|
|
35
|
+
handleContentsChanged(): void;
|
|
35
36
|
handleHide(): void;
|
|
36
37
|
isColorPickerVisible(): boolean;
|
|
37
38
|
}
|
|
@@ -126,11 +126,14 @@ let HoverColorPickerParticipant = class HoverColorPickerParticipant {
|
|
|
126
126
|
return ( new RenderedHoverParts([renderedHoverPart]));
|
|
127
127
|
}
|
|
128
128
|
getAccessibleContent(hoverPart) {
|
|
129
|
-
return localize(
|
|
129
|
+
return localize(974, 'There is a color picker here.');
|
|
130
130
|
}
|
|
131
131
|
handleResize() {
|
|
132
132
|
this._colorPicker?.layout();
|
|
133
133
|
}
|
|
134
|
+
handleContentsChanged() {
|
|
135
|
+
this._colorPicker?.layout();
|
|
136
|
+
}
|
|
134
137
|
handleHide() {
|
|
135
138
|
this._colorPicker?.dispose();
|
|
136
139
|
this._colorPicker = undefined;
|
|
@@ -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(975, "Show or Focus Standalone Color Picker")),
|
|
16
|
+
mnemonicTitle: ( localize(976, "&&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
|
+
977,
|
|
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(978, "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(979, "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(980, "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(981, "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(982, "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(983, "&&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(984, "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(985, "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(986, "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(987, "Toggle &&Block Comment")),
|
|
123
123
|
order: 2
|
|
124
124
|
}
|
|
125
125
|
});
|
|
@@ -149,12 +149,6 @@ let ContextMenuController = class ContextMenuController {
|
|
|
149
149
|
if (!this._editor.hasModel()) {
|
|
150
150
|
return;
|
|
151
151
|
}
|
|
152
|
-
const oldHoverSetting = this._editor.getOption(EditorOption.hover);
|
|
153
|
-
this._editor.updateOptions({
|
|
154
|
-
hover: {
|
|
155
|
-
enabled: false
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
152
|
let anchor = event;
|
|
159
153
|
if (!anchor) {
|
|
160
154
|
this._editor.revealPosition(this._editor.getPosition(), ScrollType.Immediate);
|
|
@@ -191,9 +185,6 @@ let ContextMenuController = class ContextMenuController {
|
|
|
191
185
|
},
|
|
192
186
|
onHide: (wasCancelled) => {
|
|
193
187
|
this._contextMenuIsBeingShownCount--;
|
|
194
|
-
this._editor.updateOptions({
|
|
195
|
-
hover: oldHoverSetting
|
|
196
|
-
});
|
|
197
188
|
}
|
|
198
189
|
});
|
|
199
190
|
}
|
|
@@ -241,7 +232,7 @@ let ContextMenuController = class ContextMenuController {
|
|
|
241
232
|
};
|
|
242
233
|
const actions = [];
|
|
243
234
|
actions.push(createAction({
|
|
244
|
-
label: ( localize(
|
|
235
|
+
label: ( localize(988, "Minimap")),
|
|
245
236
|
checked: minimapOptions.enabled,
|
|
246
237
|
run: () => {
|
|
247
238
|
this._configurationService.updateValue(`editor.minimap.enabled`, !minimapOptions.enabled);
|
|
@@ -249,28 +240,28 @@ let ContextMenuController = class ContextMenuController {
|
|
|
249
240
|
}));
|
|
250
241
|
actions.push(( new Separator()));
|
|
251
242
|
actions.push(createAction({
|
|
252
|
-
label: ( localize(
|
|
243
|
+
label: ( localize(989, "Render Characters")),
|
|
253
244
|
enabled: minimapOptions.enabled,
|
|
254
245
|
checked: minimapOptions.renderCharacters,
|
|
255
246
|
run: () => {
|
|
256
247
|
this._configurationService.updateValue(`editor.minimap.renderCharacters`, !minimapOptions.renderCharacters);
|
|
257
248
|
}
|
|
258
249
|
}));
|
|
259
|
-
actions.push(createEnumAction(( localize(
|
|
260
|
-
label: ( localize(
|
|
250
|
+
actions.push(createEnumAction(( localize(990, "Vertical size")), minimapOptions.enabled, 'editor.minimap.size', minimapOptions.size, [{
|
|
251
|
+
label: ( localize(991, "Proportional")),
|
|
261
252
|
value: 'proportional'
|
|
262
253
|
}, {
|
|
263
|
-
label: ( localize(
|
|
254
|
+
label: ( localize(992, "Fill")),
|
|
264
255
|
value: 'fill'
|
|
265
256
|
}, {
|
|
266
|
-
label: ( localize(
|
|
257
|
+
label: ( localize(993, "Fit")),
|
|
267
258
|
value: 'fit'
|
|
268
259
|
}]));
|
|
269
|
-
actions.push(createEnumAction(( localize(
|
|
270
|
-
label: ( localize(
|
|
260
|
+
actions.push(createEnumAction(( localize(994, "Slider")), minimapOptions.enabled, 'editor.minimap.showSlider', minimapOptions.showSlider, [{
|
|
261
|
+
label: ( localize(995, "Mouse Over")),
|
|
271
262
|
value: 'mouseover'
|
|
272
263
|
}, {
|
|
273
|
-
label: ( localize(
|
|
264
|
+
label: ( localize(996, "Always")),
|
|
274
265
|
value: 'always'
|
|
275
266
|
}]));
|
|
276
267
|
const useShadowDOM = this._editor.getOption(EditorOption.useShadowDOM) && !isIOS;
|
|
@@ -308,7 +299,7 @@ class ShowContextMenu extends EditorAction {
|
|
|
308
299
|
constructor() {
|
|
309
300
|
super({
|
|
310
301
|
id: 'editor.action.showContextMenu',
|
|
311
|
-
label: ( localize2(
|
|
302
|
+
label: ( localize2(997, "Show Editor Context Menu")),
|
|
312
303
|
precondition: undefined,
|
|
313
304
|
kbOpts: {
|
|
314
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(998, "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(999, "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
|
+
1000,
|
|
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
|
+
1001,
|
|
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(1002, "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(1003, "Paste as Text")),
|
|
109
109
|
precondition: EditorContextKeys.writable,
|
|
110
110
|
});
|
|
111
111
|
}
|
|
@@ -6,6 +6,7 @@ import { ICommandService } from "../../../../platform/commands/common/commands.s
|
|
|
6
6
|
import { IConfigurationService } from "../../../../platform/configuration/common/configuration.service.js";
|
|
7
7
|
import { RawContextKey } from "../../../../platform/contextkey/common/contextkey.js";
|
|
8
8
|
import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js";
|
|
9
|
+
import { ILogService } from "../../../../platform/log/common/log.service.js";
|
|
9
10
|
import { IProgressService } from "../../../../platform/progress/common/progress.service.js";
|
|
10
11
|
import { IQuickInputService } from "../../../../platform/quickinput/common/quickInput.service.js";
|
|
11
12
|
import { ICodeEditor } from "../../../browser/editorBrowser.js";
|
|
@@ -23,6 +24,7 @@ export type PastePreference = {
|
|
|
23
24
|
readonly providerId: string;
|
|
24
25
|
};
|
|
25
26
|
export declare class CopyPasteController extends Disposable implements IEditorContribution {
|
|
27
|
+
private readonly _logService;
|
|
26
28
|
private readonly _bulkEditService;
|
|
27
29
|
private readonly _clipboardService;
|
|
28
30
|
private readonly _commandService;
|
|
@@ -40,7 +42,7 @@ export declare class CopyPasteController extends Disposable implements IEditorCo
|
|
|
40
42
|
private _pasteAsActionContext?;
|
|
41
43
|
private readonly _pasteProgressManager;
|
|
42
44
|
private readonly _postPasteWidgetManager;
|
|
43
|
-
constructor(editor: ICodeEditor, instantiationService: IInstantiationService, _bulkEditService: IBulkEditService, _clipboardService: IClipboardService, _commandService: ICommandService, _configService: IConfigurationService, _languageFeaturesService: ILanguageFeaturesService, _quickInputService: IQuickInputService, _progressService: IProgressService);
|
|
45
|
+
constructor(editor: ICodeEditor, instantiationService: IInstantiationService, _logService: ILogService, _bulkEditService: IBulkEditService, _clipboardService: IClipboardService, _commandService: ICommandService, _configService: IConfigurationService, _languageFeaturesService: ILanguageFeaturesService, _quickInputService: IQuickInputService, _progressService: IProgressService);
|
|
44
46
|
changePasteType(): void;
|
|
45
47
|
pasteAs(preferred?: PastePreference): Promise<void>;
|
|
46
48
|
clearWidgets(): void;
|
|
@@ -18,10 +18,11 @@ import { ICommandService } from '../../../../platform/commands/common/commands.s
|
|
|
18
18
|
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.service.js';
|
|
19
19
|
import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
|
|
20
20
|
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
21
|
+
import { ILogService } from '../../../../platform/log/common/log.service.js';
|
|
21
22
|
import { ProgressLocation } from '../../../../platform/progress/common/progress.js';
|
|
22
23
|
import { IProgressService } from '../../../../platform/progress/common/progress.service.js';
|
|
23
24
|
import { IQuickInputService } from '../../../../platform/quickinput/common/quickInput.service.js';
|
|
24
|
-
import { ClipboardEventUtils } from '../../../browser/controller/editContext/clipboardUtils.js';
|
|
25
|
+
import { ClipboardEventUtils, InMemoryClipboardMetadataManager } from '../../../browser/controller/editContext/clipboardUtils.js';
|
|
25
26
|
import { toVSDataTransfer, toExternalVSDataTransfer } from '../../../browser/dataTransfer.js';
|
|
26
27
|
import { IBulkEditService } from '../../../browser/services/bulkEditService.service.js';
|
|
27
28
|
import { EditorOption } from '../../../common/config/editorOptions.js';
|
|
@@ -39,7 +40,7 @@ import { PostEditWidgetManager } from './postEditWidget.js';
|
|
|
39
40
|
var CopyPasteController_1;
|
|
40
41
|
const changePasteTypeCommandId = 'editor.changePasteType';
|
|
41
42
|
const pasteAsPreferenceConfig = 'editor.pasteAs.preferences';
|
|
42
|
-
const pasteWidgetVisibleCtx = ( new RawContextKey('pasteWidgetVisible', false, ( localize(
|
|
43
|
+
const pasteWidgetVisibleCtx = ( new RawContextKey('pasteWidgetVisible', false, ( localize(1004, "Whether the paste widget is showing"))));
|
|
43
44
|
const vscodeClipboardMime = 'application/vnd.code.copymetadata';
|
|
44
45
|
let CopyPasteController = class CopyPasteController extends Disposable {
|
|
45
46
|
static { CopyPasteController_1 = this; }
|
|
@@ -50,8 +51,9 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
50
51
|
static setConfigureDefaultAction(action) {
|
|
51
52
|
CopyPasteController_1._configureDefaultAction = action;
|
|
52
53
|
}
|
|
53
|
-
constructor(editor, instantiationService, _bulkEditService, _clipboardService, _commandService, _configService, _languageFeaturesService, _quickInputService, _progressService) {
|
|
54
|
+
constructor(editor, instantiationService, _logService, _bulkEditService, _clipboardService, _commandService, _configService, _languageFeaturesService, _quickInputService, _progressService) {
|
|
54
55
|
super();
|
|
56
|
+
this._logService = _logService;
|
|
55
57
|
this._bulkEditService = _bulkEditService;
|
|
56
58
|
this._clipboardService = _clipboardService;
|
|
57
59
|
this._commandService = _commandService;
|
|
@@ -65,14 +67,16 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
65
67
|
this._register(addDisposableListener(container, 'cut', e => this.handleCopy(e)));
|
|
66
68
|
this._register(addDisposableListener(container, 'paste', e => this.handlePaste(e), true));
|
|
67
69
|
this._pasteProgressManager = this._register(( new InlineProgressManager('pasteIntoEditor', editor, instantiationService)));
|
|
68
|
-
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(1005, "Show paste options...")) }, () => CopyPasteController_1._configureDefaultAction ? [CopyPasteController_1._configureDefaultAction] : []));
|
|
69
71
|
}
|
|
70
72
|
changePasteType() {
|
|
71
73
|
this._postPasteWidgetManager.tryShowSelector();
|
|
72
74
|
}
|
|
73
75
|
async pasteAs(preferred) {
|
|
76
|
+
this._logService.trace('CopyPasteController.pasteAs');
|
|
74
77
|
this._editor.focus();
|
|
75
78
|
try {
|
|
79
|
+
this._logService.trace('Before calling editor.action.clipboardPasteAction');
|
|
76
80
|
this._pasteAsActionContext = { preferred };
|
|
77
81
|
await this._commandService.executeCommand('editor.action.clipboardPasteAction');
|
|
78
82
|
}
|
|
@@ -90,6 +94,16 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
90
94
|
await this._currentPasteOperation;
|
|
91
95
|
}
|
|
92
96
|
handleCopy(e) {
|
|
97
|
+
let id = null;
|
|
98
|
+
if (e.clipboardData) {
|
|
99
|
+
const [text, metadata] = ClipboardEventUtils.getTextData(e.clipboardData);
|
|
100
|
+
const storedMetadata = metadata || InMemoryClipboardMetadataManager.INSTANCE.get(text);
|
|
101
|
+
id = storedMetadata?.id || null;
|
|
102
|
+
this._logService.trace('CopyPasteController#handleCopy for id : ', id, ' with text.length : ', text.length);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
this._logService.trace('CopyPasteController#handleCopy');
|
|
106
|
+
}
|
|
93
107
|
if (!this._editor.hasTextFocus()) {
|
|
94
108
|
return;
|
|
95
109
|
}
|
|
@@ -132,7 +146,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
132
146
|
}
|
|
133
147
|
const dataTransfer = toVSDataTransfer(e.clipboardData);
|
|
134
148
|
const providerCopyMimeTypes = providers.flatMap(x => x.copyMimeTypes ?? []);
|
|
135
|
-
const handle = generateUuid();
|
|
149
|
+
const handle = id ?? generateUuid();
|
|
136
150
|
this.setCopyMetadata(e.clipboardData, {
|
|
137
151
|
id: handle,
|
|
138
152
|
providerCopyMimeTypes,
|
|
@@ -152,6 +166,14 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
152
166
|
CopyPasteController_1._currentCopyOperation = { handle, operations };
|
|
153
167
|
}
|
|
154
168
|
async handlePaste(e) {
|
|
169
|
+
if (e.clipboardData) {
|
|
170
|
+
const [text, metadata] = ClipboardEventUtils.getTextData(e.clipboardData);
|
|
171
|
+
const metadataComputed = metadata || InMemoryClipboardMetadataManager.INSTANCE.get(text);
|
|
172
|
+
this._logService.trace('CopyPasteController#handlePaste for id : ', metadataComputed?.id);
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
this._logService.trace('CopyPasteController#handlePaste');
|
|
176
|
+
}
|
|
155
177
|
if (!e.clipboardData || !this._editor.hasTextFocus()) {
|
|
156
178
|
return;
|
|
157
179
|
}
|
|
@@ -169,6 +191,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
169
191
|
return;
|
|
170
192
|
}
|
|
171
193
|
const metadata = this.fetchCopyMetadata(e);
|
|
194
|
+
this._logService.trace('CopyPasteController#handlePaste with metadata : ', metadata?.id, ' and text.length : ', e.clipboardData.getData('text/plain').length);
|
|
172
195
|
const dataTransfer = toExternalVSDataTransfer(e.clipboardData);
|
|
173
196
|
dataTransfer.delete(vscodeClipboardMime);
|
|
174
197
|
const fileTypes = ( Array.from(e.clipboardData.files).map(file => file.type));
|
|
@@ -210,11 +233,12 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
210
233
|
const kindLabel = 'only' in preference
|
|
211
234
|
? preference.only.value
|
|
212
235
|
: 'preferences' in preference
|
|
213
|
-
? (preference.preferences.length ? ( preference.preferences.map(preference => preference.value)).join(', ') : ( localize(
|
|
236
|
+
? (preference.preferences.length ? ( preference.preferences.map(preference => preference.value)).join(', ') : ( localize(1006, "empty")))
|
|
214
237
|
: preference.providerId;
|
|
215
|
-
MessageController.get(this._editor)?.showMessage(( localize(
|
|
238
|
+
MessageController.get(this._editor)?.showMessage(( localize(1007, "No paste edits for '{0}' found", kindLabel)), selections[0].getStartPosition());
|
|
216
239
|
}
|
|
217
240
|
doPasteInline(allProviders, selections, dataTransfer, metadata, clipboardEvent) {
|
|
241
|
+
this._logService.trace('CopyPasteController#doPasteInline');
|
|
218
242
|
const editor = this._editor;
|
|
219
243
|
if (!editor.hasModel()) {
|
|
220
244
|
return;
|
|
@@ -264,7 +288,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
264
288
|
}
|
|
265
289
|
const resolveP = edit.provider.resolveDocumentPasteEdit(edit, resolveToken);
|
|
266
290
|
const showP = ( new DeferredPromise());
|
|
267
|
-
const resolved = await this._pasteProgressManager.showWhile(selections[0].getEndPosition(), ( localize(
|
|
291
|
+
const resolved = await this._pasteProgressManager.showWhile(selections[0].getEndPosition(), ( localize(1008, "Resolving paste edit for '{0}'. Click to cancel", edit.title)), raceCancellation(Promise.race([showP.p, resolveP]), resolveToken), {
|
|
268
292
|
cancel: () => showP.cancel()
|
|
269
293
|
}, 0);
|
|
270
294
|
if (resolved) {
|
|
@@ -283,25 +307,21 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
283
307
|
}
|
|
284
308
|
}
|
|
285
309
|
});
|
|
286
|
-
this._pasteProgressManager.showWhile(selections[0].getEndPosition(), ( localize(
|
|
310
|
+
this._pasteProgressManager.showWhile(selections[0].getEndPosition(), ( localize(1009, "Running paste handlers. Click to cancel and do basic paste")), p, {
|
|
287
311
|
cancel: async () => {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
return;
|
|
292
|
-
}
|
|
293
|
-
await this.applyDefaultPasteHandler(dataTransfer, metadata, editorStateCts.token, clipboardEvent);
|
|
294
|
-
}
|
|
295
|
-
finally {
|
|
296
|
-
editorStateCts.dispose();
|
|
312
|
+
p.cancel();
|
|
313
|
+
if (editorStateCts.token.isCancellationRequested) {
|
|
314
|
+
return;
|
|
297
315
|
}
|
|
316
|
+
await this.applyDefaultPasteHandler(dataTransfer, metadata, editorStateCts.token, clipboardEvent);
|
|
298
317
|
}
|
|
299
|
-
}).
|
|
318
|
+
}).finally(() => {
|
|
300
319
|
editorStateCts.dispose();
|
|
301
320
|
});
|
|
302
321
|
this._currentPasteOperation = p;
|
|
303
322
|
}
|
|
304
323
|
showPasteAsPick(preference, allProviders, selections, dataTransfer, metadata) {
|
|
324
|
+
this._logService.trace('CopyPasteController#showPasteAsPick');
|
|
305
325
|
const p = createCancelablePromise(async (token) => {
|
|
306
326
|
const editor = this._editor;
|
|
307
327
|
if (!editor.hasModel()) {
|
|
@@ -361,7 +381,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
361
381
|
else {
|
|
362
382
|
const configureDefaultItem = {
|
|
363
383
|
id: 'editor.pasteAs.default',
|
|
364
|
-
label: ( localize(
|
|
384
|
+
label: ( localize(1010, "Configure default paste action")),
|
|
365
385
|
edit: undefined,
|
|
366
386
|
};
|
|
367
387
|
const selected = await this._quickInputService.pick([
|
|
@@ -378,7 +398,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
378
398
|
}
|
|
379
399
|
] : [])
|
|
380
400
|
], {
|
|
381
|
-
placeHolder: ( localize(
|
|
401
|
+
placeHolder: ( localize(1011, "Select Paste Action")),
|
|
382
402
|
});
|
|
383
403
|
if (selected === configureDefaultItem) {
|
|
384
404
|
CopyPasteController_1._configureDefaultAction?.run();
|
|
@@ -401,13 +421,15 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
401
421
|
});
|
|
402
422
|
this._progressService.withProgress({
|
|
403
423
|
location: ProgressLocation.Window,
|
|
404
|
-
title: ( localize(
|
|
424
|
+
title: ( localize(1012, "Running paste handlers")),
|
|
405
425
|
}, () => p);
|
|
406
426
|
}
|
|
407
427
|
setCopyMetadata(dataTransfer, metadata) {
|
|
428
|
+
this._logService.trace('CopyPasteController#setCopyMetadata new id : ', metadata.id);
|
|
408
429
|
dataTransfer.setData(vscodeClipboardMime, JSON.stringify(metadata));
|
|
409
430
|
}
|
|
410
431
|
fetchCopyMetadata(e) {
|
|
432
|
+
this._logService.trace('CopyPasteController#fetchCopyMetadata');
|
|
411
433
|
if (!e.clipboardData) {
|
|
412
434
|
return;
|
|
413
435
|
}
|
|
@@ -433,6 +455,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
433
455
|
return undefined;
|
|
434
456
|
}
|
|
435
457
|
async mergeInDataFromCopy(allProviders, dataTransfer, metadata, token) {
|
|
458
|
+
this._logService.trace('CopyPasteController#mergeInDataFromCopy with metadata : ', metadata?.id);
|
|
436
459
|
if (metadata?.id && CopyPasteController_1._currentCopyOperation?.handle === metadata.id) {
|
|
437
460
|
const toResolve = ( CopyPasteController_1._currentCopyOperation.operations
|
|
438
461
|
.filter(op => ( allProviders.some(provider => ( provider.pasteMimeTypes.some(type => matchesMimeType(type, op.providerMimeTypes))))))
|
|
@@ -497,6 +520,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
497
520
|
multicursorText: metadata?.defaultPastePayload.multicursorText ?? null,
|
|
498
521
|
mode: null,
|
|
499
522
|
};
|
|
523
|
+
this._logService.trace('CopyPasteController#applyDefaultPasteHandler for id : ', metadata?.id);
|
|
500
524
|
this._editor.trigger('keyboard', Handler.Paste, payload);
|
|
501
525
|
}
|
|
502
526
|
isSupportedPasteProvider(provider, dataTransfer, preference) {
|
|
@@ -530,13 +554,14 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
530
554
|
};
|
|
531
555
|
CopyPasteController = CopyPasteController_1 = ( __decorate([
|
|
532
556
|
( __param(1, IInstantiationService)),
|
|
533
|
-
( __param(2,
|
|
534
|
-
( __param(3,
|
|
535
|
-
( __param(4,
|
|
536
|
-
( __param(5,
|
|
537
|
-
( __param(6,
|
|
538
|
-
( __param(7,
|
|
539
|
-
( __param(8,
|
|
557
|
+
( __param(2, ILogService)),
|
|
558
|
+
( __param(3, IBulkEditService)),
|
|
559
|
+
( __param(4, IClipboardService)),
|
|
560
|
+
( __param(5, ICommandService)),
|
|
561
|
+
( __param(6, IConfigurationService)),
|
|
562
|
+
( __param(7, ILanguageFeaturesService)),
|
|
563
|
+
( __param(8, IQuickInputService)),
|
|
564
|
+
( __param(9, IProgressService))
|
|
540
565
|
], CopyPasteController));
|
|
541
566
|
|
|
542
567
|
export { CopyPasteController, changePasteTypeCommandId, pasteAsPreferenceConfig, pasteWidgetVisibleCtx };
|