@codingame/monaco-vscode-api 2.2.2 → 3.1.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/assets/continue-tb.png +0 -0
- package/assets/pause-tb.png +0 -0
- package/assets/restart-tb.png +0 -0
- package/assets/run-with-debugging-tb.png +0 -0
- package/assets/stepinto-tb.png +0 -0
- package/assets/stepout-tb.png +0 -0
- package/assets/stepover-tb.png +0 -0
- package/assets/stop-tb.png +0 -0
- package/contributions.js +5 -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 +63 -13
- package/monaco.js +30 -14
- package/package.json +8 -8
- package/service-override/tools/editor.js +31 -8
- package/service-override/tools/editorAssets.js +3 -0
- package/service-override/tools/views.d.ts +5 -6
- package/service-override/tools/views.js +10 -11
- package/services.d.ts +8 -5
- package/services.js +19 -4
- 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/lifecycle.js +158 -1
- package/vscode/src/vs/base/common/network.js +3 -0
- package/vscode/src/vs/base/common/observableInternal/autorun.js +22 -36
- 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 +29 -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/tunnel/common/tunnel.js +267 -1
- 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 +3 -4
- 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/developerActions.js +703 -0
- 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/media/actions.css.js +4 -0
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +300 -0
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +83 -0
- 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/dnd.js +2 -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 +350 -35
- 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.d.ts +44 -1
- package/vscode/src/vs/workbench/common/contributions.js +143 -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/common/views.js +1 -3
- 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/all.png.js +11 -0
- 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.js +152 -120
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.editorPane.contribution.js +67 -0
- 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/logs/common/defaultLogLevels.js +140 -0
- 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/workspaceIdentityService.js +102 -0
- 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/files/browser/explorerService.js +0 -430
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +0 -784
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +0 -487
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +0 -521
- 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
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
+
import { Disposable } from '../../../../base/common/lifecycle.js';
|
|
3
|
+
import { EditOperation } from '../../../common/core/editOperation.js';
|
|
4
|
+
import { Position } from '../../../common/core/position.js';
|
|
5
|
+
import { Range } from '../../../common/core/range.js';
|
|
6
|
+
import { GhostTextWidget } from './ghostTextWidget.js';
|
|
7
|
+
import { RawContextKey, IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
|
|
8
|
+
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
9
|
+
import { InlineEditTriggerKind } from '../../../common/languages.js';
|
|
10
|
+
import { ILanguageFeaturesService } from '../../../common/services/languageFeatures.js';
|
|
11
|
+
import { CancellationTokenSource } from '../../../../base/common/cancellation.js';
|
|
12
|
+
import { GhostText, GhostTextPart } from '../../inlineCompletions/browser/ghostText.js';
|
|
13
|
+
import { ICommandService } from '../../../../platform/commands/common/commands.js';
|
|
14
|
+
import { InlineEditHintsWidget } from './inlineEditHintsWidget.js';
|
|
15
|
+
import { createStyleSheet2 } from '../../../../base/browser/dom.js';
|
|
16
|
+
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
|
|
17
|
+
import { disposableObservableValue } from '../../../../base/common/observableInternal/base.js';
|
|
18
|
+
import { observableFromEvent, constObservable, observableSignalFromEvent } from '../../../../base/common/observableInternal/utils.js';
|
|
19
|
+
import { autorun } from '../../../../base/common/observableInternal/autorun.js';
|
|
20
|
+
var InlineEditController_1;
|
|
21
|
+
class InlineEditWidget {
|
|
22
|
+
constructor(widget, edit) {
|
|
23
|
+
this.widget = widget;
|
|
24
|
+
this.edit = edit;
|
|
25
|
+
}
|
|
26
|
+
dispose() {
|
|
27
|
+
this.widget.dispose();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
let InlineEditController = class InlineEditController extends Disposable {
|
|
31
|
+
static { InlineEditController_1 = this; }
|
|
32
|
+
static { this.ID = 'editor.contrib.inlineEditController'; }
|
|
33
|
+
static { this.inlineEditVisibleKey = 'inlineEditVisible'; }
|
|
34
|
+
static { this.inlineEditVisibleContext = ( new RawContextKey(InlineEditController_1.inlineEditVisibleKey, false)); }
|
|
35
|
+
static { this.cursorAtInlineEditKey = 'cursorAtInlineEdit'; }
|
|
36
|
+
static { this.cursorAtInlineEditContext = ( new RawContextKey(InlineEditController_1.cursorAtInlineEditKey, false)); }
|
|
37
|
+
static get(editor) {
|
|
38
|
+
return editor.getContribution(InlineEditController_1.ID);
|
|
39
|
+
}
|
|
40
|
+
constructor(editor, instantiationService, contextKeyService, languageFeaturesService, _commandService, _configurationService) {
|
|
41
|
+
super();
|
|
42
|
+
this.editor = editor;
|
|
43
|
+
this.instantiationService = instantiationService;
|
|
44
|
+
this.contextKeyService = contextKeyService;
|
|
45
|
+
this.languageFeaturesService = languageFeaturesService;
|
|
46
|
+
this._commandService = _commandService;
|
|
47
|
+
this._configurationService = _configurationService;
|
|
48
|
+
this._isVisibleContext = InlineEditController_1.inlineEditVisibleContext.bindTo(this.contextKeyService);
|
|
49
|
+
this._isCursorAtInlineEditContext = InlineEditController_1.cursorAtInlineEditContext.bindTo(this.contextKeyService);
|
|
50
|
+
this._currentEdit = this._register(disposableObservableValue(this, undefined));
|
|
51
|
+
this._isAccepting = false;
|
|
52
|
+
this._enabled = observableFromEvent(this.editor.onDidChangeConfiguration, () => this.editor.getOption(63 ).enabled);
|
|
53
|
+
this._fontFamily = observableFromEvent(this.editor.onDidChangeConfiguration, () => this.editor.getOption(63 ).fontFamily);
|
|
54
|
+
this._backgroundColoring = observableFromEvent(this.editor.onDidChangeConfiguration, () => this.editor.getOption(63 ).backgroundColoring);
|
|
55
|
+
const modelChangedSignal = observableSignalFromEvent('InlineEditController.modelContentChangedSignal', editor.onDidChangeModelContent);
|
|
56
|
+
this._register(autorun(reader => {
|
|
57
|
+
if (!this._enabled.read(reader)) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
modelChangedSignal.read(reader);
|
|
61
|
+
this.getInlineEdit(editor, true);
|
|
62
|
+
}));
|
|
63
|
+
const cursorPosition = observableFromEvent(editor.onDidChangeCursorPosition, () => editor.getPosition());
|
|
64
|
+
this._register(autorun(reader => {
|
|
65
|
+
if (!this._enabled.read(reader)) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const pos = cursorPosition.read(reader);
|
|
69
|
+
if (pos) {
|
|
70
|
+
this.checkCursorPosition(pos);
|
|
71
|
+
}
|
|
72
|
+
}));
|
|
73
|
+
this._register(autorun((reader) => {
|
|
74
|
+
const currentEdit = this._currentEdit.read(reader);
|
|
75
|
+
this._isCursorAtInlineEditContext.set(false);
|
|
76
|
+
if (!currentEdit) {
|
|
77
|
+
this._isVisibleContext.set(false);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
this._isVisibleContext.set(true);
|
|
81
|
+
const pos = editor.getPosition();
|
|
82
|
+
if (pos) {
|
|
83
|
+
this.checkCursorPosition(pos);
|
|
84
|
+
}
|
|
85
|
+
}));
|
|
86
|
+
const editorBlurSingal = observableSignalFromEvent('InlineEditController.editorBlurSignal', editor.onDidBlurEditorWidget);
|
|
87
|
+
this._register(autorun(reader => {
|
|
88
|
+
if (!this._enabled.read(reader)) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
editorBlurSingal.read(reader);
|
|
92
|
+
if (this._configurationService.getValue('editor.experimentalInlineEdit.keepOnBlur') || editor.getOption(63 ).keepOnBlur) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
this._currentRequestCts?.dispose();
|
|
96
|
+
this._currentRequestCts = undefined;
|
|
97
|
+
this.clear(false);
|
|
98
|
+
}));
|
|
99
|
+
const editorFocusSignal = observableSignalFromEvent('InlineEditController.editorFocusSignal', editor.onDidFocusEditorText);
|
|
100
|
+
this._register(autorun(reader => {
|
|
101
|
+
if (!this._enabled.read(reader)) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
editorFocusSignal.read(reader);
|
|
105
|
+
this.getInlineEdit(editor, true);
|
|
106
|
+
}));
|
|
107
|
+
const styleElement = this._register(createStyleSheet2());
|
|
108
|
+
this._register(autorun(reader => {
|
|
109
|
+
const fontFamily = this._fontFamily.read(reader);
|
|
110
|
+
styleElement.setStyle(fontFamily === '' || fontFamily === 'default' ? `` : `
|
|
111
|
+
.monaco-editor .inline-edit-decoration,
|
|
112
|
+
.monaco-editor .inline-edit-decoration-preview,
|
|
113
|
+
.monaco-editor .inline-edit {
|
|
114
|
+
font-family: ${fontFamily};
|
|
115
|
+
}`);
|
|
116
|
+
}));
|
|
117
|
+
this._register(( new InlineEditHintsWidget(this.editor, this._currentEdit, this.instantiationService)));
|
|
118
|
+
}
|
|
119
|
+
checkCursorPosition(position) {
|
|
120
|
+
if (!this._currentEdit) {
|
|
121
|
+
this._isCursorAtInlineEditContext.set(false);
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
const gt = this._currentEdit.get()?.edit;
|
|
125
|
+
if (!gt) {
|
|
126
|
+
this._isCursorAtInlineEditContext.set(false);
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
this._isCursorAtInlineEditContext.set(Range.containsPosition(gt.range, position));
|
|
130
|
+
}
|
|
131
|
+
validateInlineEdit(editor, edit) {
|
|
132
|
+
if (edit.text.includes('\n') && edit.range.startLineNumber !== edit.range.endLineNumber && edit.range.startColumn !== edit.range.endColumn) {
|
|
133
|
+
const firstColumn = edit.range.startColumn;
|
|
134
|
+
if (firstColumn !== 1) {
|
|
135
|
+
return false;
|
|
136
|
+
}
|
|
137
|
+
const lastLine = edit.range.endLineNumber;
|
|
138
|
+
const lastColumn = edit.range.endColumn;
|
|
139
|
+
const lineLength = editor.getModel()?.getLineLength(lastLine) ?? 0;
|
|
140
|
+
if (lastColumn !== lineLength + 1) {
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
return true;
|
|
145
|
+
}
|
|
146
|
+
async fetchInlineEdit(editor, auto) {
|
|
147
|
+
if (this._currentRequestCts) {
|
|
148
|
+
this._currentRequestCts.dispose(true);
|
|
149
|
+
}
|
|
150
|
+
const model = editor.getModel();
|
|
151
|
+
if (!model) {
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
const modelVersion = model.getVersionId();
|
|
155
|
+
const providers = this.languageFeaturesService.inlineEditProvider.all(model);
|
|
156
|
+
if (providers.length === 0) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
const provider = providers[0];
|
|
160
|
+
this._currentRequestCts = ( new CancellationTokenSource());
|
|
161
|
+
const token = this._currentRequestCts.token;
|
|
162
|
+
const triggerKind = auto ? InlineEditTriggerKind.Automatic : InlineEditTriggerKind.Invoke;
|
|
163
|
+
const shouldDebounce = auto;
|
|
164
|
+
if (shouldDebounce) {
|
|
165
|
+
await wait(50, token);
|
|
166
|
+
}
|
|
167
|
+
if (token.isCancellationRequested || model.isDisposed() || model.getVersionId() !== modelVersion) {
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
const edit = await provider.provideInlineEdit(model, { triggerKind }, token);
|
|
171
|
+
if (!edit) {
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
if (token.isCancellationRequested || model.isDisposed() || model.getVersionId() !== modelVersion) {
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
if (!this.validateInlineEdit(editor, edit)) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
return edit;
|
|
181
|
+
}
|
|
182
|
+
async getInlineEdit(editor, auto) {
|
|
183
|
+
this._isCursorAtInlineEditContext.set(false);
|
|
184
|
+
this.clear();
|
|
185
|
+
this._isAccepting = false;
|
|
186
|
+
const edit = await this.fetchInlineEdit(editor, auto);
|
|
187
|
+
if (!edit) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
const line = edit.range.endLineNumber;
|
|
191
|
+
const column = edit.range.endColumn;
|
|
192
|
+
const ghostText = ( new GhostText(line, [( new GhostTextPart(column, edit.text, false))]));
|
|
193
|
+
const instance = this.instantiationService.createInstance(GhostTextWidget, this.editor, {
|
|
194
|
+
ghostText: constObservable(ghostText),
|
|
195
|
+
minReservedLineCount: constObservable(0),
|
|
196
|
+
targetTextModel: constObservable(this.editor.getModel() ?? undefined),
|
|
197
|
+
range: constObservable(edit.range),
|
|
198
|
+
backgroundColoring: this._backgroundColoring
|
|
199
|
+
});
|
|
200
|
+
this._currentEdit.set(( new InlineEditWidget(instance, edit)), undefined);
|
|
201
|
+
}
|
|
202
|
+
async trigger() {
|
|
203
|
+
await this.getInlineEdit(this.editor, false);
|
|
204
|
+
}
|
|
205
|
+
async jumpBack() {
|
|
206
|
+
if (!this._jumpBackPosition) {
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
this.editor.setPosition(this._jumpBackPosition);
|
|
210
|
+
this.editor.revealPositionInCenterIfOutsideViewport(this._jumpBackPosition);
|
|
211
|
+
}
|
|
212
|
+
accept() {
|
|
213
|
+
this._isAccepting = true;
|
|
214
|
+
const data = this._currentEdit.get()?.edit;
|
|
215
|
+
if (!data) {
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
let text = data.text;
|
|
219
|
+
if (data.text.startsWith('\n')) {
|
|
220
|
+
text = data.text.substring(1);
|
|
221
|
+
}
|
|
222
|
+
this.editor.pushUndoStop();
|
|
223
|
+
this.editor.executeEdits('acceptCurrent', [EditOperation.replace(Range.lift(data.range), text)]);
|
|
224
|
+
if (data.accepted) {
|
|
225
|
+
this._commandService.executeCommand(data.accepted.id, ...(data.accepted.arguments || []));
|
|
226
|
+
}
|
|
227
|
+
this.freeEdit(data);
|
|
228
|
+
this._currentEdit.set(undefined, undefined);
|
|
229
|
+
}
|
|
230
|
+
jumpToCurrent() {
|
|
231
|
+
this._jumpBackPosition = this.editor.getSelection()?.getStartPosition();
|
|
232
|
+
const data = this._currentEdit.get()?.edit;
|
|
233
|
+
if (!data) {
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
const position = Position.lift({ lineNumber: data.range.startLineNumber, column: data.range.startColumn });
|
|
237
|
+
this.editor.setPosition(position);
|
|
238
|
+
this.editor.revealPositionInCenterIfOutsideViewport(position);
|
|
239
|
+
}
|
|
240
|
+
clear(sendRejection = true) {
|
|
241
|
+
const edit = this._currentEdit.get()?.edit;
|
|
242
|
+
if (edit && edit?.rejected && !this._isAccepting && sendRejection) {
|
|
243
|
+
this._commandService.executeCommand(edit.rejected.id, ...(edit.rejected.arguments || []));
|
|
244
|
+
}
|
|
245
|
+
if (edit) {
|
|
246
|
+
this.freeEdit(edit);
|
|
247
|
+
}
|
|
248
|
+
this._currentEdit.set(undefined, undefined);
|
|
249
|
+
}
|
|
250
|
+
freeEdit(edit) {
|
|
251
|
+
const model = this.editor.getModel();
|
|
252
|
+
if (!model) {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
const providers = this.languageFeaturesService.inlineEditProvider.all(model);
|
|
256
|
+
if (providers.length === 0) {
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
providers[0].freeInlineEdit(edit);
|
|
260
|
+
}
|
|
261
|
+
shouldShowHoverAt(range) {
|
|
262
|
+
const currentEdit = this._currentEdit.get();
|
|
263
|
+
if (!currentEdit) {
|
|
264
|
+
return false;
|
|
265
|
+
}
|
|
266
|
+
const edit = currentEdit.edit;
|
|
267
|
+
const model = currentEdit.widget.model;
|
|
268
|
+
const overReplaceRange = Range.containsPosition(edit.range, range.getStartPosition()) || Range.containsPosition(edit.range, range.getEndPosition());
|
|
269
|
+
if (overReplaceRange) {
|
|
270
|
+
return true;
|
|
271
|
+
}
|
|
272
|
+
const ghostText = model.ghostText.get();
|
|
273
|
+
if (ghostText) {
|
|
274
|
+
return ( ghostText.parts.some(p => range.containsPosition(( new Position(ghostText.lineNumber, p.column)))));
|
|
275
|
+
}
|
|
276
|
+
return false;
|
|
277
|
+
}
|
|
278
|
+
shouldShowHoverAtViewZone(viewZoneId) {
|
|
279
|
+
return this._currentEdit.get()?.widget.ownsViewZone(viewZoneId) ?? false;
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
InlineEditController = InlineEditController_1 = ( __decorate([
|
|
283
|
+
( __param(1, IInstantiationService)),
|
|
284
|
+
( __param(2, IContextKeyService)),
|
|
285
|
+
( __param(3, ILanguageFeaturesService)),
|
|
286
|
+
( __param(4, ICommandService)),
|
|
287
|
+
( __param(5, IConfigurationService))
|
|
288
|
+
], InlineEditController));
|
|
289
|
+
function wait(ms, cancellationToken) {
|
|
290
|
+
return ( new Promise(resolve => {
|
|
291
|
+
let d = undefined;
|
|
292
|
+
const handle = setTimeout(() => {
|
|
293
|
+
if (d) {
|
|
294
|
+
d.dispose();
|
|
295
|
+
}
|
|
296
|
+
resolve();
|
|
297
|
+
}, ms);
|
|
298
|
+
if (cancellationToken) {
|
|
299
|
+
d = cancellationToken.onCancellationRequested(() => {
|
|
300
|
+
clearTimeout(handle);
|
|
301
|
+
if (d) {
|
|
302
|
+
d.dispose();
|
|
303
|
+
}
|
|
304
|
+
resolve();
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
}));
|
|
308
|
+
}
|
|
309
|
+
export { InlineEditController, InlineEditWidget };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import n from '../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
|
|
2
|
+
var css = ".monaco-editor .inlineEditHints.withBorder{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);z-index:39}.monaco-editor .inlineEditHints a,.monaco-editor .inlineEditHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineEditHints .keybinding{display:flex;margin-left:4px;opacity:.6}.monaco-editor .inlineEditHints .keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.monaco-editor .inlineEditStatusBarItemLabel{margin-right:2px}";
|
|
3
|
+
n(css,{});
|
|
4
|
+
export { css, css as default };
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
+
import { h } from '../../../../base/browser/dom.js';
|
|
3
|
+
import { KeybindingLabel, unthemedKeybindingLabelOptions } from '../../../../base/browser/ui/keybindingLabel/keybindingLabel.js';
|
|
4
|
+
import { Separator } from '../../../../base/common/actions.js';
|
|
5
|
+
import { equals } from '../../../../base/common/arrays.js';
|
|
6
|
+
import { Disposable, toDisposable } from '../../../../base/common/lifecycle.js';
|
|
7
|
+
import { OS } from '../../../../base/common/platform.js';
|
|
8
|
+
import './inlineEditHintsWidget.css.js';
|
|
9
|
+
import { Position } from '../../../common/core/position.js';
|
|
10
|
+
import { MenuEntryActionViewItem, createAndFillInActionBarActions } from '../../../../platform/actions/browser/menuEntryActionViewItem.js';
|
|
11
|
+
import { WorkbenchToolBar } from '../../../../platform/actions/browser/toolbar.js';
|
|
12
|
+
import { MenuId, MenuItemAction, IMenuService } from '../../../../platform/actions/common/actions.js';
|
|
13
|
+
import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
|
|
14
|
+
import { IContextMenuService } from '../../../../platform/contextview/browser/contextView.js';
|
|
15
|
+
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
16
|
+
import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.js';
|
|
17
|
+
import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.js';
|
|
18
|
+
import { autorun, autorunWithStore } from '../../../../base/common/observableInternal/autorun.js';
|
|
19
|
+
import { observableFromEvent } from '../../../../base/common/observableInternal/utils.js';
|
|
20
|
+
import { derived } from '../../../../base/common/observableInternal/derived.js';
|
|
21
|
+
var InlineEditHintsContentWidget_1;
|
|
22
|
+
let InlineEditHintsWidget = class InlineEditHintsWidget extends Disposable {
|
|
23
|
+
constructor(editor, model, instantiationService) {
|
|
24
|
+
super();
|
|
25
|
+
this.editor = editor;
|
|
26
|
+
this.model = model;
|
|
27
|
+
this.instantiationService = instantiationService;
|
|
28
|
+
this.alwaysShowToolbar = observableFromEvent(this.editor.onDidChangeConfiguration, () => this.editor.getOption(63 ).showToolbar === 'always');
|
|
29
|
+
this.sessionPosition = undefined;
|
|
30
|
+
this.position = derived(this, reader => {
|
|
31
|
+
const ghostText = this.model.read(reader)?.widget.model.ghostText.read(reader);
|
|
32
|
+
if (!this.alwaysShowToolbar.read(reader) || !ghostText || ghostText.parts.length === 0) {
|
|
33
|
+
this.sessionPosition = undefined;
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
const firstColumn = ghostText.parts[0].column;
|
|
37
|
+
if (this.sessionPosition && this.sessionPosition.lineNumber !== ghostText.lineNumber) {
|
|
38
|
+
this.sessionPosition = undefined;
|
|
39
|
+
}
|
|
40
|
+
const position = ( new Position(
|
|
41
|
+
ghostText.lineNumber,
|
|
42
|
+
Math.min(firstColumn, this.sessionPosition?.column ?? Number.MAX_SAFE_INTEGER)
|
|
43
|
+
));
|
|
44
|
+
this.sessionPosition = position;
|
|
45
|
+
return position;
|
|
46
|
+
});
|
|
47
|
+
this._register(autorunWithStore((reader, store) => {
|
|
48
|
+
const model = this.model.read(reader);
|
|
49
|
+
if (!model || !this.alwaysShowToolbar.read(reader)) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const contentWidget = store.add(this.instantiationService.createInstance(InlineEditHintsContentWidget, this.editor, true, this.position));
|
|
53
|
+
editor.addContentWidget(contentWidget);
|
|
54
|
+
store.add(toDisposable(() => editor.removeContentWidget(contentWidget)));
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
InlineEditHintsWidget = ( __decorate([
|
|
59
|
+
( __param(2, IInstantiationService))
|
|
60
|
+
], InlineEditHintsWidget));
|
|
61
|
+
let InlineEditHintsContentWidget = class InlineEditHintsContentWidget extends Disposable {
|
|
62
|
+
static { InlineEditHintsContentWidget_1 = this; }
|
|
63
|
+
static { this._dropDownVisible = false; }
|
|
64
|
+
static get dropDownVisible() { return this._dropDownVisible; }
|
|
65
|
+
static { this.id = 0; }
|
|
66
|
+
constructor(editor, withBorder, _position, instantiationService, _contextKeyService, _menuService) {
|
|
67
|
+
super();
|
|
68
|
+
this.editor = editor;
|
|
69
|
+
this.withBorder = withBorder;
|
|
70
|
+
this._position = _position;
|
|
71
|
+
this._contextKeyService = _contextKeyService;
|
|
72
|
+
this._menuService = _menuService;
|
|
73
|
+
this.id = `InlineEditHintsContentWidget${InlineEditHintsContentWidget_1.id++}`;
|
|
74
|
+
this.allowEditorOverflow = true;
|
|
75
|
+
this.suppressMouseDown = false;
|
|
76
|
+
this.nodes = h('div.inlineEditHints', { className: this.withBorder ? '.withBorder' : '' }, [
|
|
77
|
+
h('div@toolBar'),
|
|
78
|
+
]);
|
|
79
|
+
this.inlineCompletionsActionsMenus = this._register(this._menuService.createMenu(MenuId.InlineEditActions, this._contextKeyService));
|
|
80
|
+
this.toolBar = this._register(instantiationService.createInstance(CustomizedMenuWorkbenchToolBar, this.nodes.toolBar, this.editor, MenuId.InlineEditToolbar, {
|
|
81
|
+
menuOptions: { renderShortTitle: true },
|
|
82
|
+
toolbarOptions: { primaryGroup: g => g.startsWith('primary') },
|
|
83
|
+
actionViewItemProvider: (action, options) => {
|
|
84
|
+
if (action instanceof MenuItemAction) {
|
|
85
|
+
return instantiationService.createInstance(StatusBarViewItem, action, undefined);
|
|
86
|
+
}
|
|
87
|
+
return undefined;
|
|
88
|
+
},
|
|
89
|
+
telemetrySource: 'InlineEditToolbar',
|
|
90
|
+
}));
|
|
91
|
+
this._register(this.toolBar.onDidChangeDropdownVisibility(e => {
|
|
92
|
+
InlineEditHintsContentWidget_1._dropDownVisible = e;
|
|
93
|
+
}));
|
|
94
|
+
this._register(autorun(reader => {
|
|
95
|
+
this._position.read(reader);
|
|
96
|
+
this.editor.layoutContentWidget(this);
|
|
97
|
+
}));
|
|
98
|
+
this._register(autorun(reader => {
|
|
99
|
+
const extraActions = [];
|
|
100
|
+
for (const [_, group] of this.inlineCompletionsActionsMenus.getActions()) {
|
|
101
|
+
for (const action of group) {
|
|
102
|
+
if (action instanceof MenuItemAction) {
|
|
103
|
+
extraActions.push(action);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (extraActions.length > 0) {
|
|
108
|
+
extraActions.unshift(( new Separator()));
|
|
109
|
+
}
|
|
110
|
+
this.toolBar.setAdditionalSecondaryActions(extraActions);
|
|
111
|
+
}));
|
|
112
|
+
}
|
|
113
|
+
getId() { return this.id; }
|
|
114
|
+
getDomNode() {
|
|
115
|
+
return this.nodes.root;
|
|
116
|
+
}
|
|
117
|
+
getPosition() {
|
|
118
|
+
return {
|
|
119
|
+
position: this._position.get(),
|
|
120
|
+
preference: [1 , 2 ],
|
|
121
|
+
positionAffinity: 3 ,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
InlineEditHintsContentWidget = InlineEditHintsContentWidget_1 = ( __decorate([
|
|
126
|
+
( __param(3, IInstantiationService)),
|
|
127
|
+
( __param(4, IContextKeyService)),
|
|
128
|
+
( __param(5, IMenuService))
|
|
129
|
+
], InlineEditHintsContentWidget));
|
|
130
|
+
class StatusBarViewItem extends MenuEntryActionViewItem {
|
|
131
|
+
updateLabel() {
|
|
132
|
+
const kb = this._keybindingService.lookupKeybinding(this._action.id, this._contextKeyService);
|
|
133
|
+
if (!kb) {
|
|
134
|
+
return super.updateLabel();
|
|
135
|
+
}
|
|
136
|
+
if (this.label) {
|
|
137
|
+
const div = h('div.keybinding').root;
|
|
138
|
+
const k = ( new KeybindingLabel(div, OS, { disableTitle: true, ...unthemedKeybindingLabelOptions }));
|
|
139
|
+
k.set(kb);
|
|
140
|
+
this.label.textContent = this._action.label;
|
|
141
|
+
this.label.appendChild(div);
|
|
142
|
+
this.label.classList.add('inlineEditStatusBarItemLabel');
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
updateTooltip() {
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
let CustomizedMenuWorkbenchToolBar = class CustomizedMenuWorkbenchToolBar extends WorkbenchToolBar {
|
|
149
|
+
constructor(container, editor, menuId, options2, menuService, contextKeyService, contextMenuService, keybindingService, telemetryService) {
|
|
150
|
+
super(container, { resetMenu: menuId, ...options2 }, menuService, contextKeyService, contextMenuService, keybindingService, telemetryService);
|
|
151
|
+
this.editor = editor;
|
|
152
|
+
this.menuId = menuId;
|
|
153
|
+
this.options2 = options2;
|
|
154
|
+
this.menuService = menuService;
|
|
155
|
+
this.contextKeyService = contextKeyService;
|
|
156
|
+
this.menu = this._store.add(this.menuService.createMenu(this.menuId, this.contextKeyService, { emitEventsForSubmenuChanges: true }));
|
|
157
|
+
this.additionalActions = [];
|
|
158
|
+
this.prependedPrimaryActions = [];
|
|
159
|
+
this._store.add(this.menu.onDidChange(() => this.updateToolbar()));
|
|
160
|
+
this._store.add(this.editor.onDidChangeCursorPosition(() => this.updateToolbar()));
|
|
161
|
+
this.updateToolbar();
|
|
162
|
+
}
|
|
163
|
+
updateToolbar() {
|
|
164
|
+
const primary = [];
|
|
165
|
+
const secondary = [];
|
|
166
|
+
createAndFillInActionBarActions(this.menu, this.options2?.menuOptions, { primary, secondary }, this.options2?.toolbarOptions?.primaryGroup, this.options2?.toolbarOptions?.shouldInlineSubmenu, this.options2?.toolbarOptions?.useSeparatorsInPrimaryActions);
|
|
167
|
+
secondary.push(...this.additionalActions);
|
|
168
|
+
primary.unshift(...this.prependedPrimaryActions);
|
|
169
|
+
this.setActions(primary, secondary);
|
|
170
|
+
}
|
|
171
|
+
setPrependedPrimaryActions(actions) {
|
|
172
|
+
if (equals(this.prependedPrimaryActions, actions, (a, b) => a === b)) {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
this.prependedPrimaryActions = actions;
|
|
176
|
+
this.updateToolbar();
|
|
177
|
+
}
|
|
178
|
+
setAdditionalSecondaryActions(actions) {
|
|
179
|
+
if (equals(this.additionalActions, actions, (a, b) => a === b)) {
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
this.additionalActions = actions;
|
|
183
|
+
this.updateToolbar();
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
CustomizedMenuWorkbenchToolBar = ( __decorate([
|
|
187
|
+
( __param(4, IMenuService)),
|
|
188
|
+
( __param(5, IContextKeyService)),
|
|
189
|
+
( __param(6, IContextMenuService)),
|
|
190
|
+
( __param(7, IKeybindingService)),
|
|
191
|
+
( __param(8, ITelemetryService))
|
|
192
|
+
], CustomizedMenuWorkbenchToolBar));
|
|
193
|
+
export { CustomizedMenuWorkbenchToolBar, InlineEditHintsContentWidget, InlineEditHintsWidget };
|
|
@@ -41,13 +41,13 @@ class InlineProgressWidget extends Disposable {
|
|
|
41
41
|
this.domNode.append(iconElement);
|
|
42
42
|
iconElement.classList.add(...ThemeIcon.asClassNameArray(Codicon.loading), 'codicon-modifier-spin');
|
|
43
43
|
const updateSize = () => {
|
|
44
|
-
const lineHeight = this.editor.getOption(
|
|
44
|
+
const lineHeight = this.editor.getOption(67 );
|
|
45
45
|
this.domNode.style.height = `${lineHeight}px`;
|
|
46
46
|
this.domNode.style.width = `${Math.ceil(0.8 * lineHeight)}px`;
|
|
47
47
|
};
|
|
48
48
|
updateSize();
|
|
49
49
|
this._register(this.editor.onDidChangeConfiguration(c => {
|
|
50
|
-
if (c.hasChanged(52 ) || c.hasChanged(
|
|
50
|
+
if (c.hasChanged(52 ) || c.hasChanged(67 )) {
|
|
51
51
|
updateSize();
|
|
52
52
|
}
|
|
53
53
|
}));
|
|
@@ -994,7 +994,7 @@ class AbstractCaseAction extends EditorAction {
|
|
|
994
994
|
if (model === null) {
|
|
995
995
|
return;
|
|
996
996
|
}
|
|
997
|
-
const wordSeparators = editor.getOption(
|
|
997
|
+
const wordSeparators = editor.getOption(130 );
|
|
998
998
|
const textEdits = [];
|
|
999
999
|
for (const selection of selections) {
|
|
1000
1000
|
if (selection.isEmpty()) {
|
|
@@ -58,7 +58,7 @@ let LinkedEditingContribution = class LinkedEditingContribution extends Disposab
|
|
|
58
58
|
this._currentRequestModelVersion = null;
|
|
59
59
|
this._register(this._editor.onDidChangeModel(() => this.reinitialize(true)));
|
|
60
60
|
this._register(this._editor.onDidChangeConfiguration(e => {
|
|
61
|
-
if (e.hasChanged(
|
|
61
|
+
if (e.hasChanged(70 ) || e.hasChanged(93 )) {
|
|
62
62
|
this.reinitialize(false);
|
|
63
63
|
}
|
|
64
64
|
}));
|
|
@@ -68,7 +68,7 @@ let LinkedEditingContribution = class LinkedEditingContribution extends Disposab
|
|
|
68
68
|
}
|
|
69
69
|
reinitialize(forceRefresh) {
|
|
70
70
|
const model = this._editor.getModel();
|
|
71
|
-
const isEnabled = model !== null && (this._editor.getOption(
|
|
71
|
+
const isEnabled = model !== null && (this._editor.getOption(70 ) || this._editor.getOption(93 )) && ( this._providers.has(model));
|
|
72
72
|
if (isEnabled === this._enabled && !forceRefresh) {
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
@@ -50,7 +50,7 @@ let LinkDetector = class LinkDetector extends Disposable {
|
|
|
50
50
|
this.cleanUpActiveLinkDecoration();
|
|
51
51
|
}));
|
|
52
52
|
this._register(editor.onDidChangeConfiguration((e) => {
|
|
53
|
-
if (!e.hasChanged(
|
|
53
|
+
if (!e.hasChanged(71 )) {
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
56
|
this.updateDecorations([]);
|
|
@@ -80,7 +80,7 @@ let LinkDetector = class LinkDetector extends Disposable {
|
|
|
80
80
|
this.computeLinks.schedule(0);
|
|
81
81
|
}
|
|
82
82
|
async computeLinksNow() {
|
|
83
|
-
if (!this.editor.hasModel() || !this.editor.getOption(
|
|
83
|
+
if (!this.editor.hasModel() || !this.editor.getOption(71 )) {
|
|
84
84
|
return;
|
|
85
85
|
}
|
|
86
86
|
const model = this.editor.getModel();
|
|
@@ -112,7 +112,7 @@ let LinkDetector = class LinkDetector extends Disposable {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
updateDecorations(links) {
|
|
115
|
-
const useMetaKey = (this.editor.getOption(
|
|
115
|
+
const useMetaKey = (this.editor.getOption(78 ) === 'altKey');
|
|
116
116
|
const oldDecorations = [];
|
|
117
117
|
const keys = ( Object.keys(this.currentOccurrences));
|
|
118
118
|
for (const decorationId of keys) {
|
|
@@ -136,7 +136,7 @@ let LinkDetector = class LinkDetector extends Disposable {
|
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
_onEditorMouseMove(mouseEvent, withKey) {
|
|
139
|
-
const useMetaKey = (this.editor.getOption(
|
|
139
|
+
const useMetaKey = (this.editor.getOption(78 ) === 'altKey');
|
|
140
140
|
if (this.isEnabled(mouseEvent, withKey)) {
|
|
141
141
|
this.cleanUpActiveLinkDecoration();
|
|
142
142
|
const occurrence = this.getLinkOccurrence(mouseEvent.target.position);
|
|
@@ -152,7 +152,7 @@ let LinkDetector = class LinkDetector extends Disposable {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
cleanUpActiveLinkDecoration() {
|
|
155
|
-
const useMetaKey = (this.editor.getOption(
|
|
155
|
+
const useMetaKey = (this.editor.getOption(78 ) === 'altKey');
|
|
156
156
|
if (this.activeLinkDecorationId) {
|
|
157
157
|
const occurrence = this.currentOccurrences[this.activeLinkDecorationId];
|
|
158
158
|
if (occurrence) {
|
|
@@ -9,7 +9,7 @@ class LongLinesHelper extends Disposable {
|
|
|
9
9
|
super();
|
|
10
10
|
this._editor = _editor;
|
|
11
11
|
this._register(this._editor.onMouseDown((e) => {
|
|
12
|
-
const stopRenderingLineAfter = this._editor.getOption(
|
|
12
|
+
const stopRenderingLineAfter = this._editor.getOption(117 );
|
|
13
13
|
if (stopRenderingLineAfter >= 0 && e.target.type === 6 && e.target.position.column >= stopRenderingLineAfter) {
|
|
14
14
|
this._editor.updateOptions({
|
|
15
15
|
stopRenderingLineAfter: -1
|