@codingame/monaco-vscode-api 2.2.2 → 3.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/README.md +16 -3
- package/api.js +8 -10
- package/contributions.js +3 -3
- package/debugProtocol.d.ts +143 -51
- package/extensions.d.ts +9 -5
- package/external/@xterm/xterm/typings/xterm.d.ts +2 -2
- package/missing-services.js +48 -13
- package/monaco.js +30 -14
- package/package.json +8 -8
- package/service-override/tools/editor.js +31 -8
- package/service-override/tools/views.d.ts +5 -6
- package/service-override/tools/views.js +10 -11
- package/services.d.ts +2 -2
- package/services.js +4 -3
- package/vscode/src/vs/base/browser/browser.js +2 -66
- package/vscode/src/vs/base/browser/dom.js +10 -22
- package/vscode/src/vs/base/browser/markdownRenderer.js +13 -5
- package/vscode/src/vs/base/browser/mouseEvent.js +9 -3
- package/vscode/src/vs/base/browser/pixelRatio.js +72 -0
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +4 -3
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +3 -4
- package/vscode/src/vs/base/browser/ui/button/button.js +16 -4
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +1 -3
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +8 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +6 -2
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate.js +22 -0
- package/vscode/src/vs/base/browser/ui/iconLabel/iconHoverDelegate.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +3 -2
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabelHover.js +2 -1
- package/vscode/src/vs/base/browser/ui/list/listView.js +27 -42
- package/vscode/src/vs/base/browser/ui/menu/menu.js +0 -4
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +7 -4
- package/vscode/src/vs/base/browser/ui/table/tableWidget.js +8 -4
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +4 -2
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +7 -2
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +1 -0
- package/vscode/src/vs/base/common/actions.js +1 -1
- package/vscode/src/vs/base/common/assert.js +1 -1
- package/vscode/src/vs/base/common/async.js +11 -7
- package/vscode/src/vs/base/common/codicons.d.ts +4 -0
- package/vscode/src/vs/base/common/codicons.js +4 -0
- package/vscode/src/vs/base/common/date.js +55 -1
- package/vscode/src/vs/base/common/event.js +5 -3
- package/vscode/src/vs/base/common/filters.js +1 -1
- package/vscode/src/vs/base/common/hotReload.js +5 -4
- package/vscode/src/vs/base/common/network.js +3 -0
- package/vscode/src/vs/base/common/observableInternal/autorun.js +19 -35
- package/vscode/src/vs/base/common/observableInternal/base.js +3 -82
- package/vscode/src/vs/base/common/observableInternal/debugName.js +100 -0
- package/vscode/src/vs/base/common/observableInternal/derived.js +14 -46
- package/vscode/src/vs/base/common/observableInternal/promise.js +94 -0
- package/vscode/src/vs/base/common/observableInternal/utils.js +5 -27
- package/vscode/src/vs/base/common/prefixTree.js +56 -22
- package/vscode/src/vs/base/common/product.d.ts +1 -1
- package/vscode/src/vs/base/common/strings.js +9 -1
- package/vscode/src/vs/editor/browser/config/charWidthReader.js +5 -6
- package/vscode/src/vs/editor/browser/config/editorConfiguration.js +7 -4
- package/vscode/src/vs/editor/browser/config/fontMeasurements.js +39 -26
- package/vscode/src/vs/editor/browser/controller/mouseHandler.js +10 -10
- package/vscode/src/vs/editor/browser/controller/mouseTarget.js +4 -4
- package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +12 -12
- package/vscode/src/vs/editor/browser/coreCommands.js +2 -2
- package/vscode/src/vs/editor/browser/view/viewController.js +3 -3
- package/vscode/src/vs/editor/browser/view/viewLayer.js +1 -1
- package/vscode/src/vs/editor/browser/view/viewOverlays.js +6 -6
- package/vscode/src/vs/editor/browser/view.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/blockDecorations/blockDecorations.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +5 -5
- package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +8 -8
- package/vscode/src/vs/editor/browser/viewParts/decorations/decorations.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +11 -11
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +4 -4
- package/vscode/src/vs/editor/browser/viewParts/indentGuides/indentGuides.js +4 -4
- package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +4 -4
- package/vscode/src/vs/editor/browser/viewParts/lines/viewLine.js +4 -4
- package/vscode/src/vs/editor/browser/viewParts/lines/viewLines.js +13 -13
- package/vscode/src/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/margin/margin.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +7 -7
- package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js +7 -7
- package/vscode/src/vs/editor/browser/viewParts/overviewRuler/overviewRuler.js +6 -6
- package/vscode/src/vs/editor/browser/viewParts/rulers/rulers.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.js +3 -3
- package/vscode/src/vs/editor/browser/viewParts/selections/selections.js +4 -4
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/viewZones/viewZones.js +5 -5
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +5 -5
- package/vscode/src/vs/editor/browser/widget/codeEditorContributions.js +2 -2
- package/vscode/src/vs/editor/browser/widget/codeEditorWidget.js +34 -32
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.css.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +82 -37
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +3 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +3 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +6 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +10 -16
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +2 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +2 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +17 -18
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +1 -1
- package/vscode/src/vs/editor/browser/widget/embeddedCodeEditorWidget.js +4 -4
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/renderedMarkdown.css.js +1 -1
- package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/colors.js +2 -2
- package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/diffEditorItemTemplate.js +43 -16
- package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorWidget.js +3 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorWidgetImpl.js +42 -8
- package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/style.css.js +1 -1
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +18 -1
- package/vscode/src/vs/editor/common/config/editorOptions.js +188 -107
- package/vscode/src/vs/editor/common/config/fontInfo.js +2 -2
- package/vscode/src/vs/editor/common/cursorCommon.js +14 -14
- package/vscode/src/vs/editor/common/editorContextKeys.js +1 -1
- package/vscode/src/vs/editor/common/languageSelector.js +12 -1
- package/vscode/src/vs/editor/common/languages.d.ts +28 -1
- package/vscode/src/vs/editor/common/languages.js +6 -1
- package/vscode/src/vs/editor/common/services/languageFeatures.d.ts +3 -1
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +2 -0
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +96 -86
- package/vscode/src/vs/editor/common/standaloneStrings.js +5 -5
- package/vscode/src/vs/editor/common/viewLayout/viewLayout.js +19 -19
- package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +2 -2
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +12 -12
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +3 -3
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +6 -6
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +5 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorContributions.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +3 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js +2 -3
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +3 -3
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findModel.js +6 -6
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +9 -62
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/format.js +5 -5
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +5 -5
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +58 -84
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +8 -2
- package/vscode/src/vs/editor/contrib/hover/browser/contentHover.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/hover.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/marginHover.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +18 -15
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +3 -3
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +1 -1
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostText.js +14 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostTextWidget.js +10 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +54 -27
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +115 -45
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsSource.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/singleTextEdit.js +6 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +46 -1
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/commandIds.js +5 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/commands.js +145 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.js +188 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/hoverParticipant.js +91 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEdit.contribution.js +12 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEdit.css.js +4 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +309 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.css.js +4 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +193 -0
- package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgress.js +2 -2
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +1 -1
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +5 -5
- package/vscode/src/vs/editor/contrib/longLinesHelper/browser/longLinesHelper.js +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +10 -10
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsModel.js +3 -3
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +1 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +143 -9
- package/vscode/src/vs/editor/contrib/rename/browser/renameInputField.css.js +1 -1
- package/vscode/src/vs/editor/contrib/rename/browser/renameInputField.js +347 -17
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +1 -1
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +2 -2
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +23 -37
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +11 -10
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +2 -2
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +4 -4
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +3 -3
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +3 -3
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/wordDistance.js +1 -1
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +3 -3
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +4 -4
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +26 -16
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
- package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.js +7 -3
- package/vscode/src/vs/editor/editor.api.d.ts +146 -85
- package/vscode/src/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +3 -5
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +7 -4
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +10 -10
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +99 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +608 -0
- package/vscode/src/vs/platform/action/common/actionCommonCategories.d.ts +1 -4
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +3 -3
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +26 -41
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +6 -4
- package/vscode/src/vs/platform/actions/common/actions.d.ts +11 -0
- package/vscode/src/vs/platform/actions/common/actions.js +11 -0
- package/vscode/src/vs/platform/configuration/common/configuration.d.ts +17 -33
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +42 -29
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +3 -4
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +2 -2
- package/vscode/src/vs/platform/hover/browser/hover.js +69 -1
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +14 -20
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +11 -5
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +22 -2
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +9 -7
- package/vscode/src/vs/platform/remote/common/remoteAgentConnection.js +2 -5
- package/vscode/src/vs/platform/request/common/request.js +111 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +1 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +15 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +9 -0
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +5 -3
- package/vscode/src/vs/platform/theme/common/colorRegistry.js +5 -5
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +6 -2
- package/vscode/src/vs/platform/window/common/window.js +4 -1
- package/vscode/src/vs/platform/workspace/common/workspace.js +2 -1
- package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +2 -2
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +130 -14
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +76 -24
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +4 -1
- package/vscode/src/vs/workbench/api/common/extHostChat.js +0 -39
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +309 -137
- package/vscode/src/vs/workbench/api/common/extHostChatProvider.js +164 -49
- package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +67 -7
- package/vscode/src/vs/workbench/api/common/extHostComments.js +28 -0
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +129 -48
- package/vscode/src/vs/workbench/api/common/extHostDocumentData.js +1 -2
- package/vscode/src/vs/workbench/api/common/extHostDocumentsAndEditors.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +5 -4
- package/vscode/src/vs/workbench/api/common/extHostInteractive.js +0 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +130 -16
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +12 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocument.js +14 -5
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +19 -1
- package/vscode/src/vs/workbench/api/common/extHostSpeech.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +301 -75
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +127 -45
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +46 -7
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +55 -2
- package/vscode/src/vs/workbench/api/worker/extensionHostWorker.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +146 -99
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +2 -3
- package/vscode/src/vs/workbench/browser/actions/widgetNavigationCommands.js +3 -4
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +4 -8
- package/vscode/src/vs/workbench/browser/composite.d.ts +2 -1
- package/vscode/src/vs/workbench/browser/composite.js +1 -1
- package/vscode/src/vs/workbench/browser/editor.js +11 -1
- package/vscode/src/vs/workbench/browser/media/style.css.js +1 -1
- package/vscode/src/vs/workbench/browser/panecomposite.d.ts +2 -1
- package/vscode/src/vs/workbench/browser/panecomposite.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +4 -6
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +10 -10
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +8 -5
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +39 -29
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +20 -24
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +6 -4
- package/vscode/src/vs/workbench/browser/parts/editor/editor.autosave.contribution.js +2 -3
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +52 -54
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +30 -30
- package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +12 -18
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +7 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +17 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +13 -5
- package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +84 -71
- package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.js +2 -6
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +4 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +29 -29
- package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +1 -5
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +9 -6
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +56 -74
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +6 -9
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.d.ts +9 -1
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +55 -12
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +9 -16
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.d.ts +2 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +4 -4
- package/vscode/src/vs/workbench/browser/quickaccess.js +8 -1
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +22 -20
- package/vscode/src/vs/workbench/common/configuration.js +146 -43
- package/vscode/src/vs/workbench/common/contextkeys.js +4 -4
- package/vscode/src/vs/workbench/common/contributions.js +136 -20
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +5 -5
- package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +17 -11
- package/vscode/src/vs/workbench/common/editor/editorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +2 -2
- package/vscode/src/vs/workbench/common/editor.d.ts +4 -0
- package/vscode/src/vs/workbench/common/theme.js +11 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +1064 -118
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +7 -7
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignal.contribution.js +306 -0
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalDebuggerContribution.js +46 -0
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalLineFeatureContribution.js +177 -0
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/commands.js +163 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +31 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +11 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +18 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +2 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +34 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +8 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +142 -109
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +80 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +44 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +230 -74
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +87 -29
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +19 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatProvider.js +18 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +11 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +11 -5
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActions.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +71 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +256 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorFeatures.js +3 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +8 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +11 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +3 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +9 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/commentFormActions.js +9 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +27 -13
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +41 -23
- package/vscode/src/vs/workbench/contrib/comments/browser/commentService.js +15 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.js +22 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +1 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +2 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +3 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +2 -3
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +1 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +66 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +31 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +37 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +118 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +37 -5
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +24 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +237 -140
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +72 -25
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.js +5 -8
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +29 -4
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +1 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +1 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +2 -1
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +8 -7
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +21 -19
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +152 -120
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +24 -1
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +26 -25
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +5 -5
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +51 -12
- package/vscode/src/vs/workbench/contrib/files/browser/views/media/openeditors.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +24 -9
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -0
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +16 -22
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +48 -27
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatLivePreviewWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +23 -8
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +48 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +145 -73
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +31 -9
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +8 -10
- package/vscode/src/vs/workbench/contrib/list/browser/list.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.js +7 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +95 -152
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +16 -25
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +2 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +2 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +19 -19
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +17 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +102 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +234 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +1 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +48 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +52 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +62 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +40 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +20 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatPart.js +3 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +28 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +28 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +78 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +208 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +85 -71
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +1 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +1 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +82 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +0 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.js +4 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +92 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +136 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +6 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.js +5 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +279 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +6 -7
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindings.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +64 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +507 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +478 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +796 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +8 -10
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +14 -20
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +12 -12
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +3 -3
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +44 -54
- package/vscode/src/vs/workbench/contrib/search/common/constants.js +26 -65
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +6 -9
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +6 -9
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/tabCompletion.js +2 -2
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +3 -124
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +2 -2
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +61 -24
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +24 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalExtensionPoints.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +4 -4
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +10 -10
- package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.js +45 -20
- package/vscode/src/vs/workbench/contrib/update/common/update.js +2 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +3 -4
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +3 -3
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +15 -18
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +2 -5
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.js +4 -4
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +5 -5
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +193 -54
- package/vscode/src/vs/workbench/services/authentication/common/authentication.js +2 -1
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +9 -3
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +10 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorService.d.ts +3 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorService.js +5 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +1 -6
- package/vscode/src/vs/workbench/services/editor/common/editorPaneService.js +3 -0
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +5 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeatures.js +29 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +3 -4
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +4 -3
- package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +11 -5
- package/vscode/src/vs/workbench/services/extensions/common/workspaceContains.js +5 -5
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +25 -4
- package/vscode/src/vs/workbench/services/history/common/history.d.ts +5 -0
- package/vscode/src/vs/workbench/services/language/common/languageService.js +111 -2
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +2 -2
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +59 -1
- package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +1008 -0
- package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +477 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +2 -2
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.d.ts +4 -1
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +53 -13
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -0
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +2 -2
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +1 -1
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +22 -9
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +76 -4
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +2 -2
- package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +7 -7
- package/vscode/src/vs/workbench/services/timer/browser/timerService.js +1 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +3 -2
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +1 -1
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +2 -2
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +6 -9
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +12 -12
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +6 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.d.ts +43 -4
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.d.ts +16 -7
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +3 -6
- package/vscode-dts/vscode.proposed.activeComment.d.ts +23 -0
- package/vscode-dts/vscode.proposed.chatParticipant.d.ts +509 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +288 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +10 -1
- package/vscode-dts/vscode.proposed.chatVariableResolver.d.ts +56 -0
- package/vscode-dts/vscode.proposed.codeActionRanges.d.ts +2 -4
- package/vscode-dts/{vscode.proposed.chat.d.ts → vscode.proposed.contribIssueReporter.d.ts} +2 -20
- package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemGroupMenu.d.ts +2 -0
- package/vscode-dts/vscode.proposed.contribSourceControlTitleMenu.d.ts +7 -0
- package/vscode-dts/vscode.proposed.debugVisualization.d.ts +76 -6
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +49 -0
- package/vscode-dts/vscode.proposed.findFiles2.d.ts +89 -0
- package/vscode-dts/vscode.proposed.inlineEdit.d.ts +86 -0
- package/vscode-dts/vscode.proposed.interactive.d.ts +6 -3
- package/vscode-dts/vscode.proposed.languageModels.d.ts +184 -0
- package/vscode-dts/vscode.proposed.newSymbolNamesProvider.d.ts +36 -0
- package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +6 -0
- package/vscode-dts/vscode.proposed.quickPickSortByLabel.d.ts +3 -0
- package/vscode-dts/vscode.proposed.speech.d.ts +5 -1
- package/vscode-dts/vscode.proposed.testCoverage.d.ts +40 -27
- package/vscode/src/vs/platform/audioCues/browser/audioCueService.d.ts +0 -98
- package/vscode/src/vs/platform/audioCues/browser/audioCueService.js +0 -576
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +0 -348
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatActions.js +0 -554
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatController.js +0 -471
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/featuredExtensionService.js +0 -159
- package/vscode-dts/vscode.proposed.chatAgents2.d.ts +0 -440
- package/vscode-dts/vscode.proposed.chatAgents2Additions.d.ts +0 -139
- package/vscode-dts/vscode.proposed.chatRequestAccess.d.ts +0 -105
- package/vscode-dts/vscode.proposed.defaultChatAgent.d.ts +0 -30
|
@@ -109,14 +109,11 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
|
109
109
|
group: '1_diff',
|
|
110
110
|
when: ( ContextKeyExpr.has('isInDiffEditor')),
|
|
111
111
|
});
|
|
112
|
-
const diffEditorCategory =
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
)),
|
|
118
|
-
original: 'Diff Editor',
|
|
119
|
-
};
|
|
112
|
+
const diffEditorCategory = ( localize2WithPath(
|
|
113
|
+
'vs/editor/browser/widget/diffEditor/diffEditor.contribution',
|
|
114
|
+
'diffEditor',
|
|
115
|
+
"Diff Editor"
|
|
116
|
+
));
|
|
120
117
|
class SwitchSide extends EditorAction2 {
|
|
121
118
|
constructor() {
|
|
122
119
|
super({
|
|
@@ -219,14 +216,11 @@ class ShowAllUnchangedRegions extends EditorAction2 {
|
|
|
219
216
|
}
|
|
220
217
|
}
|
|
221
218
|
registerAction2(ShowAllUnchangedRegions);
|
|
222
|
-
const accessibleDiffViewerCategory =
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
)),
|
|
228
|
-
original: 'Accessible Diff Viewer',
|
|
229
|
-
};
|
|
219
|
+
const accessibleDiffViewerCategory = ( localize2WithPath(
|
|
220
|
+
'vs/editor/browser/widget/diffEditor/diffEditor.contribution',
|
|
221
|
+
'accessibleDiffViewer',
|
|
222
|
+
"Accessible Diff Viewer"
|
|
223
|
+
));
|
|
230
224
|
class AccessibleDiffViewerNext extends Action2 {
|
|
231
225
|
static { this.id = 'editor.action.accessibleDiffViewer.next'; }
|
|
232
226
|
constructor() {
|
|
@@ -16,7 +16,8 @@ import { softAssert } from '../../../../base/common/assert.js';
|
|
|
16
16
|
import { observableValue, transaction } from '../../../../base/common/observableInternal/base.js';
|
|
17
17
|
import { derived } from '../../../../base/common/observableInternal/derived.js';
|
|
18
18
|
import { autorun, autorunWithStore } from '../../../../base/common/observableInternal/autorun.js';
|
|
19
|
-
import { waitForState
|
|
19
|
+
import { waitForState } from '../../../../base/common/observableInternal/promise.js';
|
|
20
|
+
import { observableSignalFromEvent, observableSignal } from '../../../../base/common/observableInternal/utils.js';
|
|
20
21
|
let DiffEditorViewModel = class DiffEditorViewModel extends Disposable {
|
|
21
22
|
setActiveMovedText(movedText) {
|
|
22
23
|
this._activeMovedText.set(movedText, undefined);
|
|
@@ -10,7 +10,7 @@ import { EditorExtensionsRegistry } from '../../editorExtensions.js';
|
|
|
10
10
|
import { ICodeEditorService } from '../../services/codeEditorService.js';
|
|
11
11
|
import { StableEditorScrollState } from '../../stableEditorScroll.js';
|
|
12
12
|
import { CodeEditorWidget } from '../codeEditorWidget.js';
|
|
13
|
-
import { AccessibleDiffViewer } from './components/accessibleDiffViewer.js';
|
|
13
|
+
import { AccessibleDiffViewerModelFromEditors, AccessibleDiffViewer } from './components/accessibleDiffViewer.js';
|
|
14
14
|
import { DiffEditorDecorations } from './components/diffEditorDecorations.js';
|
|
15
15
|
import { DiffEditorSash } from './components/diffEditorSash.js';
|
|
16
16
|
import { HideUnchangedRegionsFeature } from './features/hideUnchangedRegionsFeature.js';
|
|
@@ -22,7 +22,7 @@ import { Position } from '../../../common/core/position.js';
|
|
|
22
22
|
import { Range } from '../../../common/core/range.js';
|
|
23
23
|
import { EditorType } from '../../../common/editorCommon.js';
|
|
24
24
|
import { EditorContextKeys } from '../../../common/editorContextKeys.js';
|
|
25
|
-
import {
|
|
25
|
+
import { AccessibilitySignal, IAccessibilitySignalService } from '../../../../platform/accessibilitySignal/browser/accessibilitySignalService.js';
|
|
26
26
|
import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
|
|
27
27
|
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
28
28
|
import { ServiceCollection } from '../../../../platform/instantiation/common/serviceCollection.js';
|
|
@@ -39,12 +39,12 @@ let DiffEditorWidget = class DiffEditorWidget extends DelegatingEditor {
|
|
|
39
39
|
static { this.ENTIRE_DIFF_OVERVIEW_WIDTH = OverviewRulerFeature.ENTIRE_DIFF_OVERVIEW_WIDTH; }
|
|
40
40
|
get onDidContentSizeChange() { return this._editors.onDidContentSizeChange; }
|
|
41
41
|
get collapseUnchangedRegions() { return this._options.hideUnchangedRegions.get(); }
|
|
42
|
-
constructor(_domElement, options, codeEditorWidgetOptions, _parentContextKeyService, _parentInstantiationService, codeEditorService,
|
|
42
|
+
constructor(_domElement, options, codeEditorWidgetOptions, _parentContextKeyService, _parentInstantiationService, codeEditorService, _accessibilitySignalService, _editorProgressService) {
|
|
43
43
|
super();
|
|
44
44
|
this._domElement = _domElement;
|
|
45
45
|
this._parentContextKeyService = _parentContextKeyService;
|
|
46
46
|
this._parentInstantiationService = _parentInstantiationService;
|
|
47
|
-
this.
|
|
47
|
+
this._accessibilitySignalService = _accessibilitySignalService;
|
|
48
48
|
this._editorProgressService = _editorProgressService;
|
|
49
49
|
this.elements = h('div.monaco-diff-editor.side-by-side', { style: { position: 'relative', height: '100%' } }, [
|
|
50
50
|
h('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$('span', {}, 'No Changes')]),
|
|
@@ -142,7 +142,7 @@ let DiffEditorWidget = class DiffEditorWidget extends DelegatingEditor {
|
|
|
142
142
|
scrollState = undefined;
|
|
143
143
|
}
|
|
144
144
|
}, modViewZoneIdsToIgnore));
|
|
145
|
-
this._accessibleDiffViewer = derivedDisposable(this, reader => this._instantiationService.createInstance(readHotReloadableExport(AccessibleDiffViewer, reader), this.elements.accessibleDiffViewer, this._accessibleDiffViewerVisible, (visible, tx) => this._accessibleDiffViewerShouldBeVisible.set(visible, tx), ( this._options.onlyShowAccessibleDiffViewer.map(v => !v)), this._rootSizeObserver.width, this._rootSizeObserver.height, ( this._diffModel.map((m, r) => m?.diff.read(r)?.mappings.map(m => m.lineRangeMapping))), this._editors)).recomputeInitiallyAndOnChange(this._store);
|
|
145
|
+
this._accessibleDiffViewer = derivedDisposable(this, reader => this._instantiationService.createInstance(readHotReloadableExport(AccessibleDiffViewer, reader), this.elements.accessibleDiffViewer, this._accessibleDiffViewerVisible, (visible, tx) => this._accessibleDiffViewerShouldBeVisible.set(visible, tx), ( this._options.onlyShowAccessibleDiffViewer.map(v => !v)), this._rootSizeObserver.width, this._rootSizeObserver.height, ( this._diffModel.map((m, r) => m?.diff.read(r)?.mappings.map(m => m.lineRangeMapping))), ( new AccessibleDiffViewerModelFromEditors(this._editors)))).recomputeInitiallyAndOnChange(this._store);
|
|
146
146
|
const visibility = ( this._accessibleDiffViewerVisible.map(v => v ? 'hidden' : 'visible'));
|
|
147
147
|
this._register(applyStyle(this.elements.modified, { visibility }));
|
|
148
148
|
this._register(applyStyle(this.elements.original, { visibility }));
|
|
@@ -163,13 +163,13 @@ let DiffEditorWidget = class DiffEditorWidget extends DelegatingEditor {
|
|
|
163
163
|
if (e?.reason === 3 ) {
|
|
164
164
|
const diff = this._diffModel.get()?.diff.get()?.mappings.find(m => m.lineRangeMapping.modified.contains(e.position.lineNumber));
|
|
165
165
|
if (diff?.lineRangeMapping.modified.isEmpty) {
|
|
166
|
-
this.
|
|
166
|
+
this._accessibilitySignalService.playSignal(AccessibilitySignal.diffLineDeleted, { source: 'diffEditor.cursorPositionChanged' });
|
|
167
167
|
}
|
|
168
168
|
else if (diff?.lineRangeMapping.original.isEmpty) {
|
|
169
|
-
this.
|
|
169
|
+
this._accessibilitySignalService.playSignal(AccessibilitySignal.diffLineInserted, { source: 'diffEditor.cursorPositionChanged' });
|
|
170
170
|
}
|
|
171
171
|
else if (diff) {
|
|
172
|
-
this.
|
|
172
|
+
this._accessibilitySignalService.playSignal(AccessibilitySignal.diffLineModified, { source: 'diffEditor.cursorPositionChanged' });
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
}));
|
|
@@ -352,13 +352,13 @@ let DiffEditorWidget = class DiffEditorWidget extends DelegatingEditor {
|
|
|
352
352
|
}
|
|
353
353
|
this._goTo(diff);
|
|
354
354
|
if (diff.lineRangeMapping.modified.isEmpty) {
|
|
355
|
-
this.
|
|
355
|
+
this._accessibilitySignalService.playSignal(AccessibilitySignal.diffLineDeleted, { source: 'diffEditor.goToDiff' });
|
|
356
356
|
}
|
|
357
357
|
else if (diff.lineRangeMapping.original.isEmpty) {
|
|
358
|
-
this.
|
|
358
|
+
this._accessibilitySignalService.playSignal(AccessibilitySignal.diffLineInserted, { source: 'diffEditor.goToDiff' });
|
|
359
359
|
}
|
|
360
360
|
else if (diff) {
|
|
361
|
-
this.
|
|
361
|
+
this._accessibilitySignalService.playSignal(AccessibilitySignal.diffLineModified, { source: 'diffEditor.goToDiff' });
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
revealFirstDiff() {
|
|
@@ -440,7 +440,7 @@ DiffEditorWidget = ( __decorate([
|
|
|
440
440
|
( __param(3, IContextKeyService)),
|
|
441
441
|
( __param(4, IInstantiationService)),
|
|
442
442
|
( __param(5, ICodeEditorService)),
|
|
443
|
-
( __param(6,
|
|
443
|
+
( __param(6, IAccessibilitySignalService)),
|
|
444
444
|
( __param(7, IEditorProgressService))
|
|
445
445
|
], DiffEditorWidget));
|
|
446
446
|
function toLineChanges(state) {
|
|
@@ -149,8 +149,6 @@ class MovedBlocksLinesFeature extends Disposable {
|
|
|
149
149
|
)));
|
|
150
150
|
}
|
|
151
151
|
}));
|
|
152
|
-
const originalCursorPosition = observableFromEvent(this._editors.original.onDidChangeCursorPosition, () => this._editors.original.getPosition());
|
|
153
|
-
const modifiedCursorPosition = observableFromEvent(this._editors.modified.onDidChangeCursorPosition, () => this._editors.modified.getPosition());
|
|
154
152
|
const originalHasFocus = observableSignalFromEvent('original.onDidFocusEditorWidget', e => this._editors.original.onDidFocusEditorWidget(() => setTimeout(() => e(undefined), 0)));
|
|
155
153
|
const modifiedHasFocus = observableSignalFromEvent('modified.onDidFocusEditorWidget', e => this._editors.modified.onDidFocusEditorWidget(() => setTimeout(() => e(undefined), 0)));
|
|
156
154
|
let lastChangedEditor = 'modified';
|
|
@@ -175,13 +173,13 @@ class MovedBlocksLinesFeature extends Disposable {
|
|
|
175
173
|
const diff = m.diff.read(reader);
|
|
176
174
|
let movedText = undefined;
|
|
177
175
|
if (diff && lastChangedEditor === 'original') {
|
|
178
|
-
const originalPos =
|
|
176
|
+
const originalPos = this._editors.originalCursor.read(reader);
|
|
179
177
|
if (originalPos) {
|
|
180
178
|
movedText = diff.movedTexts.find(m => m.lineRangeMapping.original.contains(originalPos.lineNumber));
|
|
181
179
|
}
|
|
182
180
|
}
|
|
183
181
|
if (diff && lastChangedEditor === 'modified') {
|
|
184
|
-
const modifiedPos =
|
|
182
|
+
const modifiedPos = this._editors.modifiedCursor.read(reader);
|
|
185
183
|
if (modifiedPos) {
|
|
186
184
|
movedText = diff.movedTexts.find(m => m.lineRangeMapping.modified.contains(modifiedPos.lineNumber));
|
|
187
185
|
}
|
|
@@ -112,7 +112,7 @@ let OverviewRulerFeature = class OverviewRulerFeature extends Disposable {
|
|
|
112
112
|
});
|
|
113
113
|
const scrollTop = this._editors.modifiedScrollTop.read(reader);
|
|
114
114
|
const scrollHeight = this._editors.modifiedScrollHeight.read(reader);
|
|
115
|
-
const scrollBarOptions = this._editors.modified.getOption(
|
|
115
|
+
const scrollBarOptions = this._editors.modified.getOption(103 );
|
|
116
116
|
const state = ( new ScrollbarState(
|
|
117
117
|
scrollBarOptions.verticalHasArrows ? scrollBarOptions.arrowSize : 0,
|
|
118
118
|
scrollBarOptions.verticalScrollbarSize,
|
|
@@ -8,6 +8,7 @@ import { GlyphMarginLane } from '../../../../common/model.js';
|
|
|
8
8
|
import { localizeWithPath } from '../../../../../nls.js';
|
|
9
9
|
import { derived } from '../../../../../base/common/observableInternal/derived.js';
|
|
10
10
|
import { autorunWithStore } from '../../../../../base/common/observableInternal/autorun.js';
|
|
11
|
+
const emptyArr = [];
|
|
11
12
|
class RevertButtonsFeature extends Disposable {
|
|
12
13
|
constructor(_editors, _diffModel, _options, _widget) {
|
|
13
14
|
super();
|
|
@@ -15,8 +16,7 @@ class RevertButtonsFeature extends Disposable {
|
|
|
15
16
|
this._diffModel = _diffModel;
|
|
16
17
|
this._options = _options;
|
|
17
18
|
this._widget = _widget;
|
|
18
|
-
|
|
19
|
-
const selectedDiffs = derived(this, (reader) => {
|
|
19
|
+
this._selectedDiffs = derived(this, (reader) => {
|
|
20
20
|
const model = this._diffModel.read(reader);
|
|
21
21
|
const diff = model?.diff.read(reader);
|
|
22
22
|
if (!diff) {
|
|
@@ -26,9 +26,9 @@ class RevertButtonsFeature extends Disposable {
|
|
|
26
26
|
if (selections.every(s => s.isEmpty())) {
|
|
27
27
|
return emptyArr;
|
|
28
28
|
}
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const result = (
|
|
29
|
+
const selectedLineNumbers = ( new LineRangeSet(( selections.map(s => LineRange.fromRangeInclusive(s)))));
|
|
30
|
+
const selectedMappings = diff.mappings.filter(m => m.lineRangeMapping.innerChanges && selectedLineNumbers.intersects(m.lineRangeMapping.modified));
|
|
31
|
+
const result = ( selectedMappings.map(mapping => ({
|
|
32
32
|
mapping,
|
|
33
33
|
rangeMappings: mapping.lineRangeMapping.innerChanges.filter(c => ( selections.some(s => Range.areIntersecting(c.modifiedRange, s))))
|
|
34
34
|
})));
|
|
@@ -38,34 +38,33 @@ class RevertButtonsFeature extends Disposable {
|
|
|
38
38
|
return result;
|
|
39
39
|
});
|
|
40
40
|
this._register(autorunWithStore((reader, store) => {
|
|
41
|
+
if (!this._options.shouldRenderRevertArrows.read(reader)) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
41
44
|
const model = this._diffModel.read(reader);
|
|
42
45
|
const diff = model?.diff.read(reader);
|
|
43
46
|
if (!model || !diff) {
|
|
44
47
|
return;
|
|
45
48
|
}
|
|
46
|
-
|
|
47
|
-
if (movedTextToCompare) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
if (!this._options.shouldRenderRevertArrows.read(reader)) {
|
|
49
|
+
if (model.movedTextToCompare.read(reader)) {
|
|
51
50
|
return;
|
|
52
51
|
}
|
|
53
52
|
const glyphWidgetsModified = [];
|
|
54
|
-
const
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
53
|
+
const selectedDiffs = this._selectedDiffs.read(reader);
|
|
54
|
+
const selectedDiffsSet = ( new Set(( selectedDiffs.map(d => d.mapping))));
|
|
55
|
+
if (selectedDiffs.length > 0) {
|
|
57
56
|
const selections = this._editors.modifiedSelections.read(reader);
|
|
58
57
|
const btn = store.add(( new RevertButton(
|
|
59
58
|
selections[selections.length - 1].positionLineNumber,
|
|
60
59
|
this._widget,
|
|
61
|
-
|
|
60
|
+
selectedDiffs.flatMap(d => d.rangeMappings),
|
|
62
61
|
true
|
|
63
62
|
)));
|
|
64
63
|
this._editors.modified.addGlyphMarginWidget(btn);
|
|
65
64
|
glyphWidgetsModified.push(btn);
|
|
66
65
|
}
|
|
67
66
|
for (const m of diff.mappings) {
|
|
68
|
-
if ((
|
|
67
|
+
if (( selectedDiffsSet.has(m))) {
|
|
69
68
|
continue;
|
|
70
69
|
}
|
|
71
70
|
if (!m.lineRangeMapping.modified.isEmpty && m.lineRangeMapping.innerChanges) {
|
|
@@ -90,15 +89,15 @@ class RevertButtonsFeature extends Disposable {
|
|
|
90
89
|
class RevertButton extends Disposable {
|
|
91
90
|
static { this.counter = 0; }
|
|
92
91
|
getId() { return this._id; }
|
|
93
|
-
constructor(_lineNumber, _widget, _diffs,
|
|
92
|
+
constructor(_lineNumber, _widget, _diffs, _revertSelection) {
|
|
94
93
|
super();
|
|
95
94
|
this._lineNumber = _lineNumber;
|
|
96
95
|
this._widget = _widget;
|
|
97
96
|
this._diffs = _diffs;
|
|
98
|
-
this.
|
|
97
|
+
this._revertSelection = _revertSelection;
|
|
99
98
|
this._id = `revertButton${RevertButton.counter++}`;
|
|
100
99
|
this._domNode = h('div.revertButton', {
|
|
101
|
-
title: this.
|
|
100
|
+
title: this._revertSelection
|
|
102
101
|
? ( localizeWithPath(
|
|
103
102
|
'vs/editor/browser/widget/diffEditor/features/revertButtonsFeature',
|
|
104
103
|
'revertSelectedChanges',
|
|
@@ -336,7 +336,7 @@ function addLength(position, length) {
|
|
|
336
336
|
}
|
|
337
337
|
function bindContextKey(key, service, computeValue) {
|
|
338
338
|
const boundKey = key.bindTo(service);
|
|
339
|
-
return autorunOpts({ debugName: () => `
|
|
339
|
+
return autorunOpts({ debugName: () => `Set Context Key "${key.key}"` }, reader => {
|
|
340
340
|
boundKey.set(computeValue(reader));
|
|
341
341
|
});
|
|
342
342
|
}
|
|
@@ -6,7 +6,7 @@ import { DiffEditorWidget } from './diffEditor/diffEditorWidget.js';
|
|
|
6
6
|
import { ILanguageConfigurationService } from '../../common/languages/languageConfigurationRegistry.js';
|
|
7
7
|
import { ILanguageFeaturesService } from '../../common/services/languageFeatures.js';
|
|
8
8
|
import { IAccessibilityService } from '../../../platform/accessibility/common/accessibility.js';
|
|
9
|
-
import {
|
|
9
|
+
import { IAccessibilitySignalService } from '../../../platform/accessibilitySignal/browser/accessibilitySignalService.js';
|
|
10
10
|
import { ICommandService } from '../../../platform/commands/common/commands.js';
|
|
11
11
|
import { IContextKeyService } from '../../../platform/contextkey/common/contextkey.js';
|
|
12
12
|
import { IInstantiationService } from '../../../platform/instantiation/common/instantiation.js';
|
|
@@ -45,8 +45,8 @@ EmbeddedCodeEditorWidget = ( __decorate([
|
|
|
45
45
|
( __param(12, ILanguageFeaturesService))
|
|
46
46
|
], EmbeddedCodeEditorWidget));
|
|
47
47
|
let EmbeddedDiffEditorWidget = class EmbeddedDiffEditorWidget extends DiffEditorWidget {
|
|
48
|
-
constructor(domElement, options, codeEditorWidgetOptions, parentEditor, contextKeyService, instantiationService, codeEditorService,
|
|
49
|
-
super(domElement, parentEditor.getRawOptions(), codeEditorWidgetOptions, contextKeyService, instantiationService, codeEditorService,
|
|
48
|
+
constructor(domElement, options, codeEditorWidgetOptions, parentEditor, contextKeyService, instantiationService, codeEditorService, accessibilitySignalService, editorProgressService) {
|
|
49
|
+
super(domElement, parentEditor.getRawOptions(), codeEditorWidgetOptions, contextKeyService, instantiationService, codeEditorService, accessibilitySignalService, editorProgressService);
|
|
50
50
|
this._parentEditor = parentEditor;
|
|
51
51
|
this._overwriteOptions = options;
|
|
52
52
|
super.updateOptions(this._overwriteOptions);
|
|
@@ -68,7 +68,7 @@ EmbeddedDiffEditorWidget = ( __decorate([
|
|
|
68
68
|
( __param(4, IContextKeyService)),
|
|
69
69
|
( __param(5, IInstantiationService)),
|
|
70
70
|
( __param(6, ICodeEditorService)),
|
|
71
|
-
( __param(7,
|
|
71
|
+
( __param(7, IAccessibilitySignalService)),
|
|
72
72
|
( __param(8, IEditorProgressService))
|
|
73
73
|
], EmbeddedDiffEditorWidget));
|
|
74
74
|
export { EmbeddedCodeEditorWidget, EmbeddedDiffEditorWidget };
|
package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/renderedMarkdown.css.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import n from '../../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
|
|
2
|
-
var css = ".monaco-editor .rendered-markdown kbd{background-color:var(--vscode-keybindingLabel-background);border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);border-radius:3px;border-style:solid;border-width:1px;box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);color:var(--vscode-keybindingLabel-foreground);padding:1px 3px;vertical-align:middle}";
|
|
2
|
+
var css = ".monaco-editor .rendered-markdown kbd{background-color:var(--vscode-keybindingLabel-background);border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);border-radius:3px;border-style:solid;border-width:1px;box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);color:var(--vscode-keybindingLabel-foreground);padding:1px 3px;vertical-align:middle}.rendered-markdown li:has(input[type=checkbox]){list-style-type:none}";
|
|
3
3
|
n(css,{});
|
|
4
4
|
export { css, css as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { localizeWithPath } from '../../../../nls.js';
|
|
2
2
|
import { registerColor } from '../../../../platform/theme/common/colorRegistry.js';
|
|
3
|
-
registerColor('multiDiffEditor.headerBackground', { dark: '#
|
|
3
|
+
registerColor('multiDiffEditor.headerBackground', { dark: '#262626', light: 'tab.inactiveBackground', hcDark: 'tab.inactiveBackground', hcLight: 'tab.inactiveBackground', }, ( localizeWithPath(
|
|
4
4
|
'vs/editor/browser/widget/multiDiffEditorWidget/colors',
|
|
5
5
|
'multiDiffEditor.headerBackground',
|
|
6
6
|
'The background color of the diff editor\'s header'
|
|
7
7
|
)));
|
|
8
|
-
registerColor('multiDiffEditor.background', { dark: '
|
|
8
|
+
registerColor('multiDiffEditor.background', { dark: 'editorBackground', light: 'editorBackground', hcDark: 'editorBackground', hcLight: 'editorBackground', }, ( localizeWithPath(
|
|
9
9
|
'vs/editor/browser/widget/multiDiffEditorWidget/colors',
|
|
10
10
|
'multiDiffEditor.background',
|
|
11
11
|
'The background color of the multi file diff editor'
|
|
@@ -9,12 +9,14 @@ import { MenuWorkbenchToolBar } from '../../../../platform/actions/browser/toolb
|
|
|
9
9
|
import { MenuId } from '../../../../platform/actions/common/actions.js';
|
|
10
10
|
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
11
11
|
import { ActionRunnerWithContext } from './utils.js';
|
|
12
|
+
import { createActionViewItem } from '../../../../platform/actions/browser/menuEntryActionViewItem.js';
|
|
12
13
|
import { derived } from '../../../../base/common/observableInternal/derived.js';
|
|
13
14
|
import { autorun } from '../../../../base/common/observableInternal/autorun.js';
|
|
14
15
|
import { observableFromEvent } from '../../../../base/common/observableInternal/utils.js';
|
|
15
16
|
class TemplateData {
|
|
16
|
-
constructor(viewModel) {
|
|
17
|
+
constructor(viewModel, deltaScrollVertical) {
|
|
17
18
|
this.viewModel = viewModel;
|
|
19
|
+
this.deltaScrollVertical = deltaScrollVertical;
|
|
18
20
|
}
|
|
19
21
|
getId() {
|
|
20
22
|
return this.viewModel;
|
|
@@ -50,13 +52,15 @@ let DiffEditorItemTemplate = class DiffEditorItemTemplate extends Disposable {
|
|
|
50
52
|
});
|
|
51
53
|
this._elements = h('div.multiDiffEntry', [
|
|
52
54
|
h('div.header@header', [
|
|
53
|
-
h('div.
|
|
54
|
-
|
|
55
|
-
h('div.
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
h('div.header-content', [
|
|
56
|
+
h('div.collapse-button@collapseButton'),
|
|
57
|
+
h('div.file-path', [
|
|
58
|
+
h('div.title.modified.show-file-icons@primaryPath', []),
|
|
59
|
+
h('div.status.deleted@status', ['R']),
|
|
60
|
+
h('div.title.original.show-file-icons@secondaryPath', []),
|
|
61
|
+
]),
|
|
62
|
+
h('div.actions@actions'),
|
|
58
63
|
]),
|
|
59
|
-
h('div.actions@actions'),
|
|
60
64
|
]),
|
|
61
65
|
h('div.editorParent', [
|
|
62
66
|
h('div.editorContainer@editor'),
|
|
@@ -75,7 +79,9 @@ let DiffEditorItemTemplate = class DiffEditorItemTemplate extends Disposable {
|
|
|
75
79
|
? this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath))
|
|
76
80
|
: undefined;
|
|
77
81
|
this._dataStore = ( new DisposableStore());
|
|
78
|
-
this._headerHeight =
|
|
82
|
+
this._headerHeight = 48;
|
|
83
|
+
this._lastScrollTop = -1;
|
|
84
|
+
this._isSettingScrollTop = false;
|
|
79
85
|
const btn = ( new Button(this._elements.collapseButton, {}));
|
|
80
86
|
this._register(autorun(reader => {
|
|
81
87
|
btn.element.className = '';
|
|
@@ -87,14 +93,14 @@ let DiffEditorItemTemplate = class DiffEditorItemTemplate extends Disposable {
|
|
|
87
93
|
this._register(autorun(reader => {
|
|
88
94
|
this._elements.editor.style.display = this._collapsed.read(reader) ? 'none' : 'block';
|
|
89
95
|
}));
|
|
90
|
-
this.editor.getModifiedEditor().onDidLayoutChange(e => {
|
|
96
|
+
this._register(this.editor.getModifiedEditor().onDidLayoutChange(e => {
|
|
91
97
|
const width = this.editor.getModifiedEditor().getLayoutInfo().contentWidth;
|
|
92
98
|
this._modifiedWidth.set(width, undefined);
|
|
93
|
-
});
|
|
94
|
-
this.editor.getOriginalEditor().onDidLayoutChange(e => {
|
|
99
|
+
}));
|
|
100
|
+
this._register(this.editor.getOriginalEditor().onDidLayoutChange(e => {
|
|
95
101
|
const width = this.editor.getOriginalEditor().getLayoutInfo().contentWidth;
|
|
96
102
|
this._originalWidth.set(width, undefined);
|
|
97
|
-
});
|
|
103
|
+
}));
|
|
98
104
|
this._register(this.editor.onDidContentSizeChange(e => {
|
|
99
105
|
globalTransaction(tx => {
|
|
100
106
|
this._editorContentHeight.set(e.contentHeight, tx);
|
|
@@ -102,18 +108,29 @@ let DiffEditorItemTemplate = class DiffEditorItemTemplate extends Disposable {
|
|
|
102
108
|
this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(), tx);
|
|
103
109
|
});
|
|
104
110
|
}));
|
|
111
|
+
this._register(this.editor.getOriginalEditor().onDidScrollChange(e => {
|
|
112
|
+
if (this._isSettingScrollTop) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
if (!e.scrollTopChanged || !this._data) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
const delta = e.scrollTop - this._lastScrollTop;
|
|
119
|
+
this._data.deltaScrollVertical(delta);
|
|
120
|
+
}));
|
|
105
121
|
this._register(autorun(reader => {
|
|
106
122
|
const isFocused = this.isFocused.read(reader);
|
|
107
123
|
this._elements.root.classList.toggle('focused', isFocused);
|
|
108
124
|
}));
|
|
109
125
|
this._container.appendChild(this._elements.root);
|
|
110
|
-
this._outerEditorHeight =
|
|
126
|
+
this._outerEditorHeight = this._headerHeight;
|
|
111
127
|
this._register(this._instantiationService.createInstance(MenuWorkbenchToolBar, this._elements.actions, MenuId.MultiDiffEditorFileToolbar, {
|
|
112
128
|
actionRunner: this._register(( new ActionRunnerWithContext(() => (this._viewModel.get()?.modifiedUri)))),
|
|
113
129
|
menuOptions: {
|
|
114
130
|
shouldForwardArgs: true,
|
|
115
131
|
},
|
|
116
132
|
toolbarOptions: { primaryGroup: g => g.startsWith('navigation') },
|
|
133
|
+
actionViewItemProvider: (action, options) => createActionViewItem(_instantiationService, action, options),
|
|
117
134
|
}));
|
|
118
135
|
}
|
|
119
136
|
setScrollLeft(left) {
|
|
@@ -125,6 +142,7 @@ let DiffEditorItemTemplate = class DiffEditorItemTemplate extends Disposable {
|
|
|
125
142
|
}
|
|
126
143
|
}
|
|
127
144
|
setData(data) {
|
|
145
|
+
this._data = data;
|
|
128
146
|
function updateOptions(options) {
|
|
129
147
|
return {
|
|
130
148
|
...options,
|
|
@@ -184,16 +202,25 @@ let DiffEditorItemTemplate = class DiffEditorItemTemplate extends Disposable {
|
|
|
184
202
|
this._elements.root.style.height = `${verticalRange.length}px`;
|
|
185
203
|
this._elements.root.style.width = `${width}px`;
|
|
186
204
|
this._elements.root.style.position = 'absolute';
|
|
187
|
-
const
|
|
205
|
+
const maxDelta = verticalRange.length - this._headerHeight;
|
|
206
|
+
const delta = Math.max(0, Math.min(viewPort.start - verticalRange.start, maxDelta));
|
|
188
207
|
this._elements.header.style.transform = `translateY(${delta}px)`;
|
|
189
208
|
globalTransaction(tx => {
|
|
190
209
|
this.editor.layout({
|
|
191
|
-
width: width,
|
|
210
|
+
width: width - 2 * 8 - 2 * 1,
|
|
192
211
|
height: verticalRange.length - this._outerEditorHeight,
|
|
193
212
|
});
|
|
194
213
|
});
|
|
195
|
-
|
|
214
|
+
try {
|
|
215
|
+
this._isSettingScrollTop = true;
|
|
216
|
+
this._lastScrollTop = editorScroll;
|
|
217
|
+
this.editor.getOriginalEditor().setScrollTop(editorScroll);
|
|
218
|
+
}
|
|
219
|
+
finally {
|
|
220
|
+
this._isSettingScrollTop = false;
|
|
221
|
+
}
|
|
196
222
|
this._elements.header.classList.toggle('shadow', delta > 0 || editorScroll > 0);
|
|
223
|
+
this._elements.header.classList.toggle('collapsed', delta === maxDelta);
|
|
197
224
|
}
|
|
198
225
|
hide() {
|
|
199
226
|
this._elements.root.style.top = `-100000px`;
|
|
@@ -26,6 +26,9 @@ let MultiDiffEditorWidget = class MultiDiffEditorWidget extends Disposable {
|
|
|
26
26
|
this.onDidChangeActiveControl = Event.fromObservableLight(this._activeControl);
|
|
27
27
|
this._register(recomputeInitiallyAndOnChange(this._widgetImpl));
|
|
28
28
|
}
|
|
29
|
+
reveal(resource, options) {
|
|
30
|
+
this._widgetImpl.get().reveal(resource, options);
|
|
31
|
+
}
|
|
29
32
|
createViewModel(model) {
|
|
30
33
|
return ( new MultiDiffEditorViewModel(model, this._instantiationService));
|
|
31
34
|
}
|
package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorWidgetImpl.js
CHANGED
|
@@ -8,13 +8,13 @@ import { Scrollable } from '../../../../base/common/scrollable.js';
|
|
|
8
8
|
import './style.css.js';
|
|
9
9
|
import { ObservableElementSizeObserver } from '../diffEditor/utils.js';
|
|
10
10
|
import { OffsetRange } from '../../../common/core/offsetRange.js';
|
|
11
|
+
import { Selection } from '../../../common/core/selection.js';
|
|
12
|
+
import { EditorContextKeys } from '../../../common/editorContextKeys.js';
|
|
13
|
+
import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
|
|
11
14
|
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
15
|
+
import { ServiceCollection } from '../../../../platform/instantiation/common/serviceCollection.js';
|
|
12
16
|
import { DiffEditorItemTemplate, TemplateData } from './diffEditorItemTemplate.js';
|
|
13
17
|
import { ObjectPool } from './objectPool.js';
|
|
14
|
-
import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
|
|
15
|
-
import { ServiceCollection } from '../../../../platform/instantiation/common/serviceCollection.js';
|
|
16
|
-
import { EditorContextKeys } from '../../../common/editorContextKeys.js';
|
|
17
|
-
import { Selection } from '../../../common/core/selection.js';
|
|
18
18
|
import { observableFromEvent, derivedObservableWithCache } from '../../../../base/common/observableInternal/utils.js';
|
|
19
19
|
import { derivedWithStore, derived } from '../../../../base/common/observableInternal/derived.js';
|
|
20
20
|
import { autorunWithStore, autorun } from '../../../../base/common/observableInternal/autorun.js';
|
|
@@ -60,7 +60,9 @@ let MultiDiffEditorWidgetImpl = class MultiDiffEditorWidgetImpl extends Disposab
|
|
|
60
60
|
}
|
|
61
61
|
const items = vm.items.read(reader);
|
|
62
62
|
return ( items.map(d => {
|
|
63
|
-
const item = store.add(( new VirtualizedViewItem(d, this._objectPool, this.scrollLeft
|
|
63
|
+
const item = store.add(( new VirtualizedViewItem(d, this._objectPool, this.scrollLeft, delta => {
|
|
64
|
+
this._scrollableElement.setScrollPosition({ scrollTop: this._scrollableElement.getScrollPosition().scrollTop + delta });
|
|
65
|
+
})));
|
|
64
66
|
const data = this._lastDocStates?.[item.getKey()];
|
|
65
67
|
if (data) {
|
|
66
68
|
transaction(tx => {
|
|
@@ -70,7 +72,7 @@ let MultiDiffEditorWidgetImpl = class MultiDiffEditorWidgetImpl extends Disposab
|
|
|
70
72
|
return item;
|
|
71
73
|
}));
|
|
72
74
|
});
|
|
73
|
-
this._spaceBetweenPx =
|
|
75
|
+
this._spaceBetweenPx = 0;
|
|
74
76
|
this._totalHeight = ( this._viewItems.map(
|
|
75
77
|
this,
|
|
76
78
|
(items, reader) => items.reduce((r, i) => r + i.contentHeight.read(reader) + this._spaceBetweenPx, 0)
|
|
@@ -144,6 +146,28 @@ let MultiDiffEditorWidgetImpl = class MultiDiffEditorWidgetImpl extends Disposab
|
|
|
144
146
|
setScrollState(scrollState) {
|
|
145
147
|
this._scrollableElement.setScrollPosition({ scrollLeft: scrollState.left, scrollTop: scrollState.top });
|
|
146
148
|
}
|
|
149
|
+
reveal(resource, options) {
|
|
150
|
+
const viewItems = this._viewItems.get();
|
|
151
|
+
let searchCallback;
|
|
152
|
+
if ('original' in resource) {
|
|
153
|
+
searchCallback = (item) => item.viewModel.originalUri?.toString() === ( resource.original.toString());
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
searchCallback = (item) => item.viewModel.modifiedUri?.toString() === ( resource.modified.toString());
|
|
157
|
+
}
|
|
158
|
+
const index = viewItems.findIndex(searchCallback);
|
|
159
|
+
let scrollTop = 0;
|
|
160
|
+
for (let i = 0; i < index; i++) {
|
|
161
|
+
scrollTop += viewItems[i].contentHeight.get() + this._spaceBetweenPx;
|
|
162
|
+
}
|
|
163
|
+
this._scrollableElement.setScrollPosition({ scrollTop });
|
|
164
|
+
const diffEditor = viewItems[index].template.get()?.editor;
|
|
165
|
+
const editor = 'original' in resource ? diffEditor?.getOriginalEditor() : diffEditor?.getModifiedEditor();
|
|
166
|
+
if (editor && options?.range) {
|
|
167
|
+
editor.revealRangeInCenter(options.range);
|
|
168
|
+
highlightRange(editor, options.range);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
147
171
|
getViewState() {
|
|
148
172
|
return {
|
|
149
173
|
scrollState: {
|
|
@@ -217,12 +241,22 @@ MultiDiffEditorWidgetImpl = ( __decorate([
|
|
|
217
241
|
( __param(4, IContextKeyService)),
|
|
218
242
|
( __param(5, IInstantiationService))
|
|
219
243
|
], MultiDiffEditorWidgetImpl));
|
|
244
|
+
function highlightRange(targetEditor, range) {
|
|
245
|
+
const modelNow = targetEditor.getModel();
|
|
246
|
+
const decorations = targetEditor.createDecorationsCollection([{ range, options: { description: 'symbol-navigate-action-highlight', className: 'symbolHighlight' } }]);
|
|
247
|
+
setTimeout(() => {
|
|
248
|
+
if (targetEditor.getModel() === modelNow) {
|
|
249
|
+
decorations.clear();
|
|
250
|
+
}
|
|
251
|
+
}, 350);
|
|
252
|
+
}
|
|
220
253
|
class VirtualizedViewItem extends Disposable {
|
|
221
|
-
constructor(viewModel, _objectPool, _scrollLeft) {
|
|
254
|
+
constructor(viewModel, _objectPool, _scrollLeft, _deltaScrollVertical) {
|
|
222
255
|
super();
|
|
223
256
|
this.viewModel = viewModel;
|
|
224
257
|
this._objectPool = _objectPool;
|
|
225
258
|
this._scrollLeft = _scrollLeft;
|
|
259
|
+
this._deltaScrollVertical = _deltaScrollVertical;
|
|
226
260
|
this._templateRef = this._register(disposableObservableValue(this, undefined));
|
|
227
261
|
this.contentHeight = derived(this, reader => this._templateRef.read(reader)?.object.contentHeight?.read(reader) ?? this.viewModel.lastTemplateData.read(reader).contentHeight);
|
|
228
262
|
this.maxScroll = derived(this, reader => this._templateRef.read(reader)?.object.maxScroll.read(reader) ?? { maxScroll: 0, scrollWidth: 0 });
|
|
@@ -311,7 +345,7 @@ class VirtualizedViewItem extends Disposable {
|
|
|
311
345
|
this._isHidden.set(false, undefined);
|
|
312
346
|
let ref = this._templateRef.get();
|
|
313
347
|
if (!ref) {
|
|
314
|
-
ref = this._objectPool.getUnusedObj(( new TemplateData(this.viewModel)));
|
|
348
|
+
ref = this._objectPool.getUnusedObj(( new TemplateData(this.viewModel, this._deltaScrollVertical)));
|
|
315
349
|
this._templateRef.set(ref, undefined);
|
|
316
350
|
const selections = this.viewModel.lastTemplateData.get().selections;
|
|
317
351
|
if (selections) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import n from '../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
|
|
2
|
-
var css = ".monaco-component.multiDiffEditor{background:var(--vscode-multiDiffEditor-background);overflow-y:hidden
|
|
2
|
+
var css = ".monaco-component.multiDiffEditor{background:var(--vscode-multiDiffEditor-background);overflow-y:hidden;.focused{--vscode-multiDiffEditor-border:var(--vscode-focusBorder)}.multiDiffEntry{display:flex;flex:1;flex-direction:column;overflow:hidden;.collapse-button{cursor:pointer;margin:0 5px;a{display:block}}.header{background:var(--vscode-editor-background);z-index:1000;&:not(.collapsed) .header-content{border-bottom:1px solid var(--vscode-sideBarSectionHeader-border)}.header-content{align-items:center;background:var(--vscode-multiDiffEditor-headerBackground);border-left:1px solid var(--vscode-multiDiffEditor-border);border-right:1px solid var(--vscode-multiDiffEditor-border);border-top:1px solid var(--vscode-multiDiffEditor-border);border-top-left-radius:2px;border-top-right-radius:2px;color:var(--vscode-foreground);display:flex;margin:8px 8px 0;padding:8px 5px;&.shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px}.file-path{display:flex;flex:1;min-width:0;.title{font-size:14px;line-height:22px;&.original{flex:1;min-width:0;text-overflow:ellipsis}}.status{font-weight:600;line-height:22px;margin:0 10px;opacity:.75}}.actions{padding:0 8px}}}.editorParent{border-bottom:1px solid var(--vscode-multiDiffEditor-border);border-left:1px solid var(--vscode-multiDiffEditor-border);border-radius:2px;border-right:1px solid var(--vscode-multiDiffEditor-border);display:flex;flex:1;flex-direction:column;margin-left:8px;margin-right:8px;overflow:hidden}.editorContainer{flex:1}}}";
|
|
3
3
|
n(css,{});
|
|
4
4
|
export { css, css as default };
|
|
@@ -404,6 +404,7 @@ interface IEditorOptions {
|
|
|
404
404
|
*/
|
|
405
405
|
suggest?: ISuggestOptions;
|
|
406
406
|
inlineSuggest?: IInlineSuggestOptions;
|
|
407
|
+
experimentalInlineEdit?: IInlineEditOptions;
|
|
407
408
|
/**
|
|
408
409
|
* Smart select options.
|
|
409
410
|
*/
|
|
@@ -1195,6 +1196,22 @@ interface IInlineSuggestOptions {
|
|
|
1195
1196
|
*/
|
|
1196
1197
|
fontFamily?: string | 'default';
|
|
1197
1198
|
}
|
|
1199
|
+
interface IInlineEditOptions {
|
|
1200
|
+
/**
|
|
1201
|
+
* Enable or disable the rendering of automatic inline edit.
|
|
1202
|
+
*/
|
|
1203
|
+
enabled?: boolean;
|
|
1204
|
+
showToolbar?: 'always' | 'onHover' | 'never';
|
|
1205
|
+
/**
|
|
1206
|
+
* Font family for inline suggestions.
|
|
1207
|
+
*/
|
|
1208
|
+
fontFamily?: string | 'default';
|
|
1209
|
+
/**
|
|
1210
|
+
* Does not clear active inline suggestions when the editor loses focus.
|
|
1211
|
+
*/
|
|
1212
|
+
keepOnBlur?: boolean;
|
|
1213
|
+
backgroundColoring?: boolean;
|
|
1214
|
+
}
|
|
1198
1215
|
interface IBracketPairColorizationOptions {
|
|
1199
1216
|
/**
|
|
1200
1217
|
* Enable or disable bracket pair colorization.
|
|
@@ -1432,4 +1449,4 @@ interface IPasteAsOptions {
|
|
|
1432
1449
|
showPasteSelector?: 'afterPaste' | 'never';
|
|
1433
1450
|
}
|
|
1434
1451
|
|
|
1435
|
-
export { type EditorAutoClosingEditStrategy, type EditorAutoClosingStrategy, EditorAutoIndentStrategy, type EditorAutoSurroundStrategy, type GoToLocationValues, type IBracketPairColorizationOptions, type IDiffEditorBaseOptions, type IDiffEditorOptions, type IDropIntoEditorOptions, type IEditorCommentsOptions, type IEditorFindOptions, type IEditorHoverOptions, type IEditorInlayHintsOptions, type IEditorLightbulbOptions, type IEditorMinimapOptions, type IEditorOptions, type IEditorPaddingOptions, type IEditorParameterHintOptions, type IEditorScrollbarOptions, type IEditorStickyScrollOptions, type IGotoLocationOptions, type IGuidesOptions, type IInlineSuggestOptions, type IPasteAsOptions, type IQuickSuggestionsOptions, type IRulerOption, type ISmartSelectOptions, type ISuggestOptions, type IUnicodeHighlightOptions, type InUntrustedWorkspace, type LineNumbersType, type QuickSuggestionsValue, ShowLightbulbIconMode };
|
|
1452
|
+
export { type EditorAutoClosingEditStrategy, type EditorAutoClosingStrategy, EditorAutoIndentStrategy, type EditorAutoSurroundStrategy, type GoToLocationValues, type IBracketPairColorizationOptions, type IDiffEditorBaseOptions, type IDiffEditorOptions, type IDropIntoEditorOptions, type IEditorCommentsOptions, type IEditorFindOptions, type IEditorHoverOptions, type IEditorInlayHintsOptions, type IEditorLightbulbOptions, type IEditorMinimapOptions, type IEditorOptions, type IEditorPaddingOptions, type IEditorParameterHintOptions, type IEditorScrollbarOptions, type IEditorStickyScrollOptions, type IGotoLocationOptions, type IGuidesOptions, type IInlineEditOptions, type IInlineSuggestOptions, type IPasteAsOptions, type IQuickSuggestionsOptions, type IRulerOption, type ISmartSelectOptions, type ISuggestOptions, type IUnicodeHighlightOptions, type InUntrustedWorkspace, type LineNumbersType, type QuickSuggestionsValue, ShowLightbulbIconMode };
|