@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
|
@@ -2,7 +2,7 @@ import { ServiceIdentifier } from '../../../../platform/instantiation/common/ins
|
|
|
2
2
|
import { URI } from '../../../../base/common/uri.js';
|
|
3
3
|
import { Event } from '../../../../base/common/event.js';
|
|
4
4
|
import { IDisposable } from '../../../../base/common/lifecycle.js';
|
|
5
|
-
import { IRevertOptions,
|
|
5
|
+
import { IRevertOptions, ISaveOptions, SaveReason } from '../../../common/editor.js';
|
|
6
6
|
import { ReadableStream } from '../../../../base/common/stream.js';
|
|
7
7
|
import { IFileStatWithMetadata, IReadFileStreamOptions, IWriteFileOptions, IBaseFileStatWithMetadata, IFileReadLimits } from '../../../../platform/files/common/files.js';
|
|
8
8
|
import { ITextEditorModel } from '../../../../editor/common/services/resolverService.js';
|
|
@@ -239,14 +239,25 @@ interface ITextFileResolveEvent {
|
|
|
239
239
|
*/
|
|
240
240
|
readonly reason: TextFileResolveReason;
|
|
241
241
|
}
|
|
242
|
+
interface ITextFileSaveParticipantContext {
|
|
243
|
+
/**
|
|
244
|
+
* The reason why the save was triggered.
|
|
245
|
+
*/
|
|
246
|
+
readonly reason: SaveReason;
|
|
247
|
+
/**
|
|
248
|
+
* Only applies to when a text file was saved as, for
|
|
249
|
+
* example when starting with untitled and saving. This
|
|
250
|
+
* provides access to the initial resource the text
|
|
251
|
+
* file had before.
|
|
252
|
+
*/
|
|
253
|
+
readonly savedFrom?: URI;
|
|
254
|
+
}
|
|
242
255
|
interface ITextFileSaveParticipant {
|
|
243
256
|
/**
|
|
244
257
|
* Participate in a save of a model. Allows to change the model
|
|
245
258
|
* before it is being saved to disk.
|
|
246
259
|
*/
|
|
247
|
-
participate(model: ITextFileEditorModel, context:
|
|
248
|
-
reason: SaveReason;
|
|
249
|
-
}, progress: IProgress<IProgressStep>, token: CancellationToken): Promise<void>;
|
|
260
|
+
participate(model: ITextFileEditorModel, context: ITextFileSaveParticipantContext, progress: IProgress<IProgressStep>, token: CancellationToken): Promise<void>;
|
|
250
261
|
}
|
|
251
262
|
interface ITextFileEditorModelManager {
|
|
252
263
|
readonly onDidCreate: Event<ITextFileEditorModel>;
|
|
@@ -283,9 +294,7 @@ interface ITextFileEditorModelManager {
|
|
|
283
294
|
/**
|
|
284
295
|
* Runs the registered save participants on the provided model.
|
|
285
296
|
*/
|
|
286
|
-
runSaveParticipants(model: ITextFileEditorModel, context:
|
|
287
|
-
reason: SaveReason;
|
|
288
|
-
}, token: CancellationToken): Promise<void>;
|
|
297
|
+
runSaveParticipants(model: ITextFileEditorModel, context: ITextFileSaveParticipantContext, token: CancellationToken): Promise<void>;
|
|
289
298
|
/**
|
|
290
299
|
* Waits for the model to be ready to be disposed. There may be conditions
|
|
291
300
|
* under which the model cannot be disposed, e.g. when it is dirty. Once the
|
|
@@ -314,6 +323,10 @@ interface ITextFileSaveOptions extends ISaveOptions {
|
|
|
314
323
|
readonly ignoreErrorHandler?: boolean;
|
|
315
324
|
}
|
|
316
325
|
interface ITextFileSaveAsOptions extends ITextFileSaveOptions {
|
|
326
|
+
/**
|
|
327
|
+
* Optional URI of the resource the text file is saved from if known.
|
|
328
|
+
*/
|
|
329
|
+
readonly from?: URI;
|
|
317
330
|
/**
|
|
318
331
|
* Optional URI to use as suggested file path to save as.
|
|
319
332
|
*/
|
|
@@ -385,7 +398,7 @@ interface ITextFileEditorModel extends ITextEditorModel, IEncodingSupport, ILang
|
|
|
385
398
|
hasState(state: TextFileEditorModelState): boolean;
|
|
386
399
|
joinState(state: TextFileEditorModelState.PENDING_SAVE): Promise<void>;
|
|
387
400
|
updatePreferredEncoding(encoding: string | undefined): void;
|
|
388
|
-
save(options?:
|
|
401
|
+
save(options?: ITextFileSaveAsOptions): Promise<boolean>;
|
|
389
402
|
revert(options?: IRevertOptions): Promise<void>;
|
|
390
403
|
resolve(options?: ITextFileResolveOptions): Promise<void>;
|
|
391
404
|
isDirty(): this is IResolvedTextFileEditorModel;
|
|
@@ -397,4 +410,4 @@ interface IResolvedTextFileEditorModel extends ITextFileEditorModel {
|
|
|
397
410
|
createSnapshot(): ITextSnapshot;
|
|
398
411
|
}
|
|
399
412
|
|
|
400
|
-
export { EncodingMode, type IEncodingSupport, type ILanguageSupport, type IReadTextFileEncodingOptions, type IReadTextFileOptions, type IResolvedTextFileEditorModel, type IResourceEncoding, type IResourceEncodings, type ISaveErrorHandler, type ITextFileContent, type ITextFileEditorModel, type ITextFileEditorModelManager, type ITextFileEditorModelResolveOrCreateOptions, type ITextFileEditorModelSaveEvent, type ITextFileResolveEvent, type ITextFileResolveOptions, type ITextFileSaveAsOptions, type ITextFileSaveEvent, type ITextFileSaveOptions, type ITextFileSaveParticipant, ITextFileService, type ITextFileStreamContent, type IWriteTextFileOptions, TextFileEditorModelState, TextFileResolveReason };
|
|
413
|
+
export { EncodingMode, type IEncodingSupport, type ILanguageSupport, type IReadTextFileEncodingOptions, type IReadTextFileOptions, type IResolvedTextFileEditorModel, type IResourceEncoding, type IResourceEncodings, type ISaveErrorHandler, type ITextFileContent, type ITextFileEditorModel, type ITextFileEditorModelManager, type ITextFileEditorModelResolveOrCreateOptions, type ITextFileEditorModelSaveEvent, type ITextFileResolveEvent, type ITextFileResolveOptions, type ITextFileSaveAsOptions, type ITextFileSaveEvent, type ITextFileSaveOptions, type ITextFileSaveParticipant, type ITextFileSaveParticipantContext, ITextFileService, type ITextFileStreamContent, type IWriteTextFileOptions, TextFileEditorModelState, TextFileResolveReason };
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { localizeWithPath } from '../../../../nls.js';
|
|
2
2
|
import { ExtensionsRegistry } from '../../extensions/common/extensionsRegistry.js';
|
|
3
|
-
import { Extensions } from '../../../../platform/theme/common/colorRegistry.js';
|
|
3
|
+
import { Extensions as Extensions$1 } from '../../../../platform/theme/common/colorRegistry.js';
|
|
4
4
|
import { Color } from '../../../../base/common/color.js';
|
|
5
5
|
import { Registry } from '../../../../platform/registry/common/platform.js';
|
|
6
|
-
|
|
6
|
+
import { Disposable } from '../../../../base/common/lifecycle.js';
|
|
7
|
+
import { Extensions } from '../../extensionManagement/common/extensionFeatures.js';
|
|
8
|
+
import { SyncDescriptor } from '../../../../platform/instantiation/common/descriptors.js';
|
|
9
|
+
import { MarkdownString } from '../../../../base/common/htmlContent.js';
|
|
10
|
+
const colorRegistry = ( Registry.as(Extensions$1.ColorContribution));
|
|
7
11
|
const colorReferenceSchema = colorRegistry.getColorReferenceSchema();
|
|
8
12
|
const colorIdPattern = '^\\w+[.\\w+]*$';
|
|
9
|
-
const configurationExtPoint =
|
|
13
|
+
const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
10
14
|
extensionPoint: 'colors',
|
|
11
15
|
jsonSchema: {
|
|
12
16
|
description: ( localizeWithPath(
|
|
@@ -97,7 +101,7 @@ const configurationExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
|
|
|
97
101
|
}
|
|
98
102
|
}
|
|
99
103
|
}
|
|
100
|
-
})
|
|
104
|
+
});
|
|
101
105
|
class ColorExtensionPoint {
|
|
102
106
|
constructor() {
|
|
103
107
|
configurationExtPoint.setHandler((extensions, delta) => {
|
|
@@ -196,4 +200,72 @@ class ColorExtensionPoint {
|
|
|
196
200
|
});
|
|
197
201
|
}
|
|
198
202
|
}
|
|
203
|
+
class ColorDataRenderer extends Disposable {
|
|
204
|
+
constructor() {
|
|
205
|
+
super(...arguments);
|
|
206
|
+
this.type = 'table';
|
|
207
|
+
}
|
|
208
|
+
shouldRender(manifest) {
|
|
209
|
+
return !!manifest.contributes?.colors;
|
|
210
|
+
}
|
|
211
|
+
render(manifest) {
|
|
212
|
+
const colors = manifest.contributes?.colors || [];
|
|
213
|
+
if (!colors.length) {
|
|
214
|
+
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
215
|
+
}
|
|
216
|
+
const headers = [
|
|
217
|
+
( localizeWithPath('vs/workbench/services/themes/common/colorExtensionPoint', 'id', "ID")),
|
|
218
|
+
( localizeWithPath(
|
|
219
|
+
'vs/workbench/services/themes/common/colorExtensionPoint',
|
|
220
|
+
'description',
|
|
221
|
+
"Description"
|
|
222
|
+
)),
|
|
223
|
+
( localizeWithPath(
|
|
224
|
+
'vs/workbench/services/themes/common/colorExtensionPoint',
|
|
225
|
+
'defaultDark',
|
|
226
|
+
"Dark Default"
|
|
227
|
+
)),
|
|
228
|
+
( localizeWithPath(
|
|
229
|
+
'vs/workbench/services/themes/common/colorExtensionPoint',
|
|
230
|
+
'defaultLight',
|
|
231
|
+
"Light Default"
|
|
232
|
+
)),
|
|
233
|
+
( localizeWithPath(
|
|
234
|
+
'vs/workbench/services/themes/common/colorExtensionPoint',
|
|
235
|
+
'defaultHC',
|
|
236
|
+
"High Contrast Default"
|
|
237
|
+
)),
|
|
238
|
+
];
|
|
239
|
+
const toColor = (colorReference) => colorReference[0] === '#' ? ( Color.fromHex(colorReference)) : undefined;
|
|
240
|
+
const rows = ( colors.sort((a, b) => a.id.localeCompare(b.id))
|
|
241
|
+
.map(color => {
|
|
242
|
+
return [
|
|
243
|
+
( new MarkdownString()).appendMarkdown(`\`${color.id}\``),
|
|
244
|
+
color.description,
|
|
245
|
+
toColor(color.defaults.dark) ?? ( new MarkdownString()).appendMarkdown(`\`${color.defaults.dark}\``),
|
|
246
|
+
toColor(color.defaults.light) ?? ( new MarkdownString()).appendMarkdown(`\`${color.defaults.light}\``),
|
|
247
|
+
toColor(color.defaults.highContrast) ?? ( new MarkdownString()).appendMarkdown(`\`${color.defaults.highContrast}\``),
|
|
248
|
+
];
|
|
249
|
+
}));
|
|
250
|
+
return {
|
|
251
|
+
data: {
|
|
252
|
+
headers,
|
|
253
|
+
rows
|
|
254
|
+
},
|
|
255
|
+
dispose: () => { }
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
260
|
+
id: 'colors',
|
|
261
|
+
label: ( localizeWithPath(
|
|
262
|
+
'vs/workbench/services/themes/common/colorExtensionPoint',
|
|
263
|
+
'colors',
|
|
264
|
+
"Colors"
|
|
265
|
+
)),
|
|
266
|
+
access: {
|
|
267
|
+
canToggle: false
|
|
268
|
+
},
|
|
269
|
+
renderer: ( new SyncDescriptor(ColorDataRenderer)),
|
|
270
|
+
});
|
|
199
271
|
export { ColorExtensionPoint };
|
|
@@ -8,7 +8,7 @@ import { extname, posix } from '../../../../base/common/path.js';
|
|
|
8
8
|
const iconRegistry = ( Registry.as(Extensions.IconContribution));
|
|
9
9
|
const iconReferenceSchema = iconRegistry.getIconReferenceSchema();
|
|
10
10
|
const iconIdPattern = `^${ThemeIcon.iconNameSegment}(-${ThemeIcon.iconNameSegment})+$`;
|
|
11
|
-
const iconConfigurationExtPoint =
|
|
11
|
+
const iconConfigurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
12
12
|
extensionPoint: 'icons',
|
|
13
13
|
jsonSchema: {
|
|
14
14
|
description: ( localizeWithPath(
|
|
@@ -80,7 +80,7 @@ const iconConfigurationExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
|
|
|
80
80
|
},
|
|
81
81
|
defaultSnippets: [{ body: { '${1:my-icon-id}': { description: '${2:my icon}', default: { fontPath: '${3:myiconfont.woff}', fontCharacter: '${4:\\\\E001}' } } } }]
|
|
82
82
|
}
|
|
83
|
-
})
|
|
83
|
+
});
|
|
84
84
|
class IconExtensionPoint {
|
|
85
85
|
constructor() {
|
|
86
86
|
iconConfigurationExtPoint.setHandler((extensions, delta) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { localizeWithPath } from '../../../../nls.js';
|
|
2
2
|
import { ExtensionsRegistry } from '../../extensions/common/extensionsRegistry.js';
|
|
3
|
-
import {
|
|
3
|
+
import { typeAndModifierIdPattern, getTokenClassificationRegistry } from '../../../../platform/theme/common/tokenClassificationRegistry.js';
|
|
4
4
|
const tokenClassificationRegistry = getTokenClassificationRegistry();
|
|
5
|
-
const tokenTypeExtPoint =
|
|
5
|
+
const tokenTypeExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
6
6
|
extensionPoint: 'semanticTokenTypes',
|
|
7
7
|
jsonSchema: {
|
|
8
8
|
description: ( localizeWithPath(
|
|
@@ -53,8 +53,8 @@ const tokenTypeExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
})
|
|
57
|
-
const tokenModifierExtPoint =
|
|
56
|
+
});
|
|
57
|
+
const tokenModifierExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
58
58
|
extensionPoint: 'semanticTokenModifiers',
|
|
59
59
|
jsonSchema: {
|
|
60
60
|
description: ( localizeWithPath(
|
|
@@ -91,8 +91,8 @@ const tokenModifierExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
})
|
|
95
|
-
const tokenStyleDefaultsExtPoint =
|
|
94
|
+
});
|
|
95
|
+
const tokenStyleDefaultsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
96
96
|
extensionPoint: 'semanticTokenScopes',
|
|
97
97
|
jsonSchema: {
|
|
98
98
|
description: ( localizeWithPath(
|
|
@@ -129,7 +129,7 @@ const tokenStyleDefaultsExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
})
|
|
132
|
+
});
|
|
133
133
|
class TokenClassificationExtensionPoints {
|
|
134
134
|
constructor() {
|
|
135
135
|
function validateTypeOrModifier(contribution, extensionPoint, collector) {
|
|
@@ -190,6 +190,7 @@ let AbstractTimerService = class AbstractTimerService {
|
|
|
190
190
|
ellapsedEditorRestore: this._marks.getDuration('code/willRestoreEditors', 'code/didRestoreEditors'),
|
|
191
191
|
ellapsedViewletRestore: this._marks.getDuration('code/willRestoreViewlet', 'code/didRestoreViewlet'),
|
|
192
192
|
ellapsedPanelRestore: this._marks.getDuration('code/willRestorePanel', 'code/didRestorePanel'),
|
|
193
|
+
ellapsedWorkbenchContributions: this._marks.getDuration('code/willCreateWorkbenchContributions/1', 'code/didCreateWorkbenchContributions/2'),
|
|
193
194
|
ellapsedWorkbench: this._marks.getDuration('code/willStartWorkbench', 'code/didStartWorkbench'),
|
|
194
195
|
ellapsedExtensionsReady: this._marks.getDuration(startMark, 'code/didLoadExtensions'),
|
|
195
196
|
ellapsedRenderer: this._marks.getDuration('code/didStartRenderer', 'code/didStartWorkbench')
|
|
@@ -3,7 +3,7 @@ import { Schemas } from '../../../../base/common/network.js';
|
|
|
3
3
|
import { Disposable } from '../../../../base/common/lifecycle.js';
|
|
4
4
|
import { URI } from '../../../../base/common/uri.js';
|
|
5
5
|
import { ITextEditorService } from '../../textfile/common/textEditorService.js';
|
|
6
|
-
import {
|
|
6
|
+
import { isEqual, toLocalResource } from '../../../../base/common/resources.js';
|
|
7
7
|
import { PLAINTEXT_LANGUAGE_ID } from '../../../../editor/common/languages/modesRegistry.js';
|
|
8
8
|
import { IWorkbenchEnvironmentService } from '../../environment/common/environmentService.js';
|
|
9
9
|
import { IFilesConfigurationService } from '../../filesConfiguration/common/filesConfigurationService.js';
|
|
@@ -22,7 +22,7 @@ let UntitledTextEditorInputSerializer = class UntitledTextEditorInputSerializer
|
|
|
22
22
|
return this.filesConfigurationService.isHotExitEnabled && !editorInput.isDisposed();
|
|
23
23
|
}
|
|
24
24
|
serialize(editorInput) {
|
|
25
|
-
if (!this.
|
|
25
|
+
if (!this.canSerialize(editorInput)) {
|
|
26
26
|
return undefined;
|
|
27
27
|
}
|
|
28
28
|
const untitledTextEditorInput = editorInput;
|
|
@@ -61,6 +61,7 @@ UntitledTextEditorInputSerializer = ( __decorate([
|
|
|
61
61
|
( __param(2, IPathService))
|
|
62
62
|
], UntitledTextEditorInputSerializer));
|
|
63
63
|
let UntitledTextEditorWorkingCopyEditorHandler = class UntitledTextEditorWorkingCopyEditorHandler extends Disposable {
|
|
64
|
+
static { this.ID = 'workbench.contrib.untitledTextEditorWorkingCopyEditorHandler'; }
|
|
64
65
|
constructor(workingCopyEditorService, environmentService, pathService, textEditorService, untitledTextEditorService) {
|
|
65
66
|
super();
|
|
66
67
|
this.environmentService = environmentService;
|
|
@@ -112,7 +112,7 @@ let UntitledTextEditorInput = class UntitledTextEditorInput extends AbstractText
|
|
|
112
112
|
untypedInput.languageId = this.getLanguageId();
|
|
113
113
|
untypedInput.contents = this.model.isModified() ? this.model.textEditorModel?.getValue() : undefined;
|
|
114
114
|
untypedInput.options.viewState = findViewStateForEditor(this, options.preserveViewState, this.editorService);
|
|
115
|
-
if (typeof untypedInput.contents === 'string' && !this.model.hasAssociatedFilePath) {
|
|
115
|
+
if (typeof untypedInput.contents === 'string' && !this.model.hasAssociatedFilePath && !options.preserveResource) {
|
|
116
116
|
untypedInput.resource = undefined;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
@@ -71,11 +71,11 @@ const SYNC_VIEW_CONTAINER_ID = 'workbench.view.sync';
|
|
|
71
71
|
const SYNC_CONFLICTS_VIEW_ID = 'workbench.views.sync.conflicts';
|
|
72
72
|
const DOWNLOAD_ACTIVITY_ACTION_DESCRIPTOR = {
|
|
73
73
|
id: 'workbench.userDataSync.actions.downloadSyncActivity',
|
|
74
|
-
title:
|
|
74
|
+
title: ( localize2WithPath(
|
|
75
75
|
'vs/workbench/services/userDataSync/common/userDataSync',
|
|
76
76
|
'download sync activity title',
|
|
77
77
|
"Download Settings Sync Activity"
|
|
78
|
-
))
|
|
78
|
+
)),
|
|
79
79
|
category: Categories.Developer,
|
|
80
80
|
f1: true,
|
|
81
81
|
precondition: ( ContextKeyExpr.and(( CONTEXT_ACCOUNT_STATE.isEqualTo("available" )), ( CONTEXT_SYNC_STATE.notEqualsTo("uninitialized" ))))
|
|
@@ -13,7 +13,7 @@ import { generateUuid } from '../../../../base/common/uuid.js';
|
|
|
13
13
|
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
14
14
|
import { getViewsStateStorageId, ViewContainerModel } from '../common/viewContainerModel.js';
|
|
15
15
|
import { registerAction2, MenuId, Action2 } from '../../../../platform/actions/common/actions.js';
|
|
16
|
-
import { localizeWithPath } from '../../../../nls.js';
|
|
16
|
+
import { localizeWithPath, localize2WithPath } from '../../../../nls.js';
|
|
17
17
|
import { ILoggerService } from '../../../../platform/log/common/log.js';
|
|
18
18
|
var ViewDescriptorService_1;
|
|
19
19
|
function getViewContainerStorageId(viewContainerId) { return `${viewContainerId}.state`; }
|
|
@@ -603,14 +603,11 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
603
603
|
constructor() {
|
|
604
604
|
super({
|
|
605
605
|
id: `${viewContainer.id}.resetViewContainerLocation`,
|
|
606
|
-
title:
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
"Reset Location"
|
|
612
|
-
))
|
|
613
|
-
},
|
|
606
|
+
title: ( localize2WithPath(
|
|
607
|
+
'vs/workbench/services/views/browser/viewDescriptorService',
|
|
608
|
+
'resetViewLocation',
|
|
609
|
+
"Reset Location"
|
|
610
|
+
)),
|
|
614
611
|
menu: [{
|
|
615
612
|
id: MenuId.ViewContainerTitleContext,
|
|
616
613
|
when: ( ContextKeyExpr.or(( ContextKeyExpr.and(( ContextKeyExpr.equals('viewContainer', viewContainer.id)), ( ContextKeyExpr.equals(`${viewContainer.id}.defaultViewContainerLocation`, false))))))
|
|
@@ -8,7 +8,7 @@ import { RawContextKey, ContextKeyExpr, IContextKeyService } from '../../../../p
|
|
|
8
8
|
import { Emitter, Event } from '../../../../base/common/event.js';
|
|
9
9
|
import { isString } from '../../../../base/common/types.js';
|
|
10
10
|
import { registerAction2, Action2, MenuRegistry, MenuId } from '../../../../platform/actions/common/actions.js';
|
|
11
|
-
import { localizeWithPath } from '../../../../nls.js';
|
|
11
|
+
import { localizeWithPath, localize2WithPath } from '../../../../nls.js';
|
|
12
12
|
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
13
13
|
import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.js';
|
|
14
14
|
import { IThemeService } from '../../../../platform/theme/common/themeService.js';
|
|
@@ -99,6 +99,9 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
99
99
|
onDidChangeContainerLocation(viewContainer, from, to) {
|
|
100
100
|
this.deregisterPaneComposite(viewContainer, from);
|
|
101
101
|
this.registerPaneComposite(viewContainer, to);
|
|
102
|
+
if (this.layoutService.isVisible(getPartByLocation(to)) && this.viewDescriptorService.getViewContainersByLocation(to).length === 1) {
|
|
103
|
+
this.openViewContainer(viewContainer.id);
|
|
104
|
+
}
|
|
102
105
|
}
|
|
103
106
|
onViewDescriptorsAdded(views, container) {
|
|
104
107
|
const location = this.viewDescriptorService.getViewContainerLocation(container);
|
|
@@ -451,7 +454,7 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
451
454
|
registerFocusViewAction(viewDescriptor, category) {
|
|
452
455
|
return registerAction2(class FocusViewAction extends Action2 {
|
|
453
456
|
constructor() {
|
|
454
|
-
const title = (
|
|
457
|
+
const title = ( localize2WithPath(
|
|
455
458
|
'vs/workbench/services/views/browser/viewsService',
|
|
456
459
|
{ key: 'focus view', comment: ['{0} indicates the name of the view to be focused.'] },
|
|
457
460
|
"Focus on {0} View",
|
|
@@ -459,7 +462,7 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
459
462
|
));
|
|
460
463
|
super({
|
|
461
464
|
id: viewDescriptor.focusCommand ? viewDescriptor.focusCommand.id : `${viewDescriptor.id}.focus`,
|
|
462
|
-
title
|
|
465
|
+
title,
|
|
463
466
|
category,
|
|
464
467
|
menu: [{
|
|
465
468
|
id: MenuId.CommandPalette,
|
|
@@ -475,7 +478,7 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
475
478
|
win: viewDescriptor.focusCommand?.keybindings?.win
|
|
476
479
|
},
|
|
477
480
|
metadata: {
|
|
478
|
-
description: title,
|
|
481
|
+
description: title.value,
|
|
479
482
|
args: [
|
|
480
483
|
{
|
|
481
484
|
name: 'focusOptions',
|
|
@@ -504,14 +507,11 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
504
507
|
constructor() {
|
|
505
508
|
super({
|
|
506
509
|
id: `${viewDescriptor.id}.resetViewLocation`,
|
|
507
|
-
title:
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
"Reset Location"
|
|
513
|
-
))
|
|
514
|
-
},
|
|
510
|
+
title: ( localize2WithPath(
|
|
511
|
+
'vs/workbench/services/views/browser/viewsService',
|
|
512
|
+
'resetViewLocation',
|
|
513
|
+
"Reset Location"
|
|
514
|
+
)),
|
|
515
515
|
menu: [{
|
|
516
516
|
id: MenuId.ViewTitleContext,
|
|
517
517
|
when: ( ContextKeyExpr.or(( ContextKeyExpr.and(( ContextKeyExpr.equals('view', viewDescriptor.id)), ( ContextKeyExpr.equals(`${viewDescriptor.id}.defaultViewLocation`, false)))))),
|
|
@@ -16,11 +16,16 @@ import { registerAction2, Action2 } from '../../../../platform/actions/common/ac
|
|
|
16
16
|
import { Categories } from '../../../../platform/action/common/actionCommonCategories.js';
|
|
17
17
|
import { IOutputService } from '../../output/common/output.js';
|
|
18
18
|
import { CounterSet } from '../../../../base/common/map.js';
|
|
19
|
+
import { localize2WithPath } from '../../../../nls.js';
|
|
19
20
|
registerAction2(class extends Action2 {
|
|
20
21
|
constructor() {
|
|
21
22
|
super({
|
|
22
23
|
id: '_workbench.output.showViewsLog',
|
|
23
|
-
title:
|
|
24
|
+
title: ( localize2WithPath(
|
|
25
|
+
'vs/workbench/services/views/common/viewContainerModel',
|
|
26
|
+
'showViewsLog',
|
|
27
|
+
"Show Views Log"
|
|
28
|
+
)),
|
|
24
29
|
category: Categories.Developer,
|
|
25
30
|
f1: true
|
|
26
31
|
});
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { URI } from '../../../../base/common/uri.js';
|
|
1
2
|
import { Event } from '../../../../base/common/event.js';
|
|
2
3
|
import { CancellationToken } from '../../../../base/common/cancellation.js';
|
|
3
4
|
import { IWriteFileOptions, IFileStatWithMetadata, IFileReadLimits } from '../../../../platform/files/common/files.js';
|
|
4
|
-
import '
|
|
5
|
-
import { IMarkdownString } from '../../../../base/common/htmlContent.js';
|
|
6
|
-
import { VSBufferReadableStream } from '../../../../base/common/buffer.js';
|
|
5
|
+
import { ISaveOptions } from '../../../common/editor.js';
|
|
7
6
|
import { IWorkingCopySaveEvent } from './workingCopy.js';
|
|
7
|
+
import { VSBufferReadableStream } from '../../../../base/common/buffer.js';
|
|
8
|
+
import { IMarkdownString } from '../../../../base/common/htmlContent.js';
|
|
9
|
+
import '../../../../editor/editor.api.js';
|
|
8
10
|
import { IResourceWorkingCopy } from './resourceWorkingCopy.js';
|
|
9
11
|
import { IFileWorkingCopyModel, IFileWorkingCopy } from './fileWorkingCopy.js';
|
|
10
12
|
|
|
@@ -111,6 +113,14 @@ interface IStoredFileWorkingCopy<M extends IStoredFileWorkingCopyModel> extends
|
|
|
111
113
|
* Whether the stored file working copy is readonly or not.
|
|
112
114
|
*/
|
|
113
115
|
isReadonly(): boolean | IMarkdownString;
|
|
116
|
+
/**
|
|
117
|
+
* Asks the stored file working copy to save. If the stored file
|
|
118
|
+
* working copy was dirty, it is expected to be non-dirty after
|
|
119
|
+
* this operation has finished.
|
|
120
|
+
*
|
|
121
|
+
* @returns `true` if the operation was successful and `false` otherwise.
|
|
122
|
+
*/
|
|
123
|
+
save(options?: IStoredFileWorkingCopySaveAsOptions): Promise<boolean>;
|
|
114
124
|
}
|
|
115
125
|
interface IResolvedStoredFileWorkingCopy<M extends IStoredFileWorkingCopyModel> extends IStoredFileWorkingCopy<M> {
|
|
116
126
|
/**
|
|
@@ -153,6 +163,35 @@ declare const enum StoredFileWorkingCopyState {
|
|
|
153
163
|
*/
|
|
154
164
|
ERROR = 5
|
|
155
165
|
}
|
|
166
|
+
interface IStoredFileWorkingCopySaveOptions extends ISaveOptions {
|
|
167
|
+
/**
|
|
168
|
+
* Save the stored file working copy with an attempt to unlock it.
|
|
169
|
+
*/
|
|
170
|
+
readonly writeUnlock?: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Save the stored file working copy with elevated privileges.
|
|
173
|
+
*
|
|
174
|
+
* Note: This may not be supported in all environments.
|
|
175
|
+
*/
|
|
176
|
+
readonly writeElevated?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Allows to write to a stored file working copy even if it has been
|
|
179
|
+
* modified on disk. This should only be triggered from an
|
|
180
|
+
* explicit user action.
|
|
181
|
+
*/
|
|
182
|
+
readonly ignoreModifiedSince?: boolean;
|
|
183
|
+
/**
|
|
184
|
+
* If set, will bubble up the stored file working copy save error to
|
|
185
|
+
* the caller instead of handling it.
|
|
186
|
+
*/
|
|
187
|
+
readonly ignoreErrorHandler?: boolean;
|
|
188
|
+
}
|
|
189
|
+
interface IStoredFileWorkingCopySaveAsOptions extends IStoredFileWorkingCopySaveOptions {
|
|
190
|
+
/**
|
|
191
|
+
* Optional URI of the resource the text file is saved from if known.
|
|
192
|
+
*/
|
|
193
|
+
readonly from?: URI;
|
|
194
|
+
}
|
|
156
195
|
interface IStoredFileWorkingCopyResolveOptions {
|
|
157
196
|
/**
|
|
158
197
|
* The contents to use for the stored file working copy if known. If not
|
|
@@ -180,4 +219,4 @@ interface IStoredFileWorkingCopySaveEvent extends IWorkingCopySaveEvent {
|
|
|
180
219
|
readonly stat: IFileStatWithMetadata;
|
|
181
220
|
}
|
|
182
221
|
|
|
183
|
-
export { type IResolvedStoredFileWorkingCopy, type IStoredFileWorkingCopy, type IStoredFileWorkingCopyModel, type IStoredFileWorkingCopyModelContentChangedEvent, type IStoredFileWorkingCopyResolveOptions, type IStoredFileWorkingCopySaveEvent, StoredFileWorkingCopyState };
|
|
222
|
+
export { type IResolvedStoredFileWorkingCopy, type IStoredFileWorkingCopy, type IStoredFileWorkingCopyModel, type IStoredFileWorkingCopyModelContentChangedEvent, type IStoredFileWorkingCopyResolveOptions, type IStoredFileWorkingCopySaveAsOptions, type IStoredFileWorkingCopySaveEvent, type IStoredFileWorkingCopySaveOptions, StoredFileWorkingCopyState };
|
|
@@ -396,7 +396,7 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
396
396
|
if (!saveCancellation.token.isCancellationRequested) {
|
|
397
397
|
this.ignoreSaveFromSaveParticipants = true;
|
|
398
398
|
try {
|
|
399
|
-
await this.workingCopyFileService.runSaveParticipants(this, { reason: options.reason ?? 1
|
|
399
|
+
await this.workingCopyFileService.runSaveParticipants(this, { reason: options.reason ?? 1 , savedFrom: options.from }, saveCancellation.token);
|
|
400
400
|
}
|
|
401
401
|
finally {
|
|
402
402
|
this.ignoreSaveFromSaveParticipants = false;
|
|
@@ -52,14 +52,25 @@ interface IWorkingCopyFileOperationParticipant {
|
|
|
52
52
|
*/
|
|
53
53
|
participate(files: SourceTargetPair[], operation: FileOperation, undoInfo: IFileOperationUndoRedoInfo | undefined, timeout: number, token: CancellationToken): Promise<void>;
|
|
54
54
|
}
|
|
55
|
+
interface IStoredFileWorkingCopySaveParticipantContext {
|
|
56
|
+
/**
|
|
57
|
+
* The reason why the save was triggered.
|
|
58
|
+
*/
|
|
59
|
+
readonly reason: SaveReason;
|
|
60
|
+
/**
|
|
61
|
+
* Only applies to when a text file was saved as, for
|
|
62
|
+
* example when starting with untitled and saving. This
|
|
63
|
+
* provides access to the initial resource the text
|
|
64
|
+
* file had before.
|
|
65
|
+
*/
|
|
66
|
+
readonly savedFrom?: URI;
|
|
67
|
+
}
|
|
55
68
|
interface IStoredFileWorkingCopySaveParticipant {
|
|
56
69
|
/**
|
|
57
70
|
* Participate in a save operation of file stored working copies.
|
|
58
71
|
* Allows to make changes before content is being saved to disk.
|
|
59
72
|
*/
|
|
60
|
-
participate(workingCopy: IStoredFileWorkingCopy<IStoredFileWorkingCopyModel>, context:
|
|
61
|
-
reason: SaveReason;
|
|
62
|
-
}, progress: IProgress<IProgressStep>, token: CancellationToken): Promise<void>;
|
|
73
|
+
participate(workingCopy: IStoredFileWorkingCopy<IStoredFileWorkingCopyModel>, context: IStoredFileWorkingCopySaveParticipantContext, progress: IProgress<IProgressStep>, token: CancellationToken): Promise<void>;
|
|
63
74
|
}
|
|
64
75
|
interface ICreateOperation {
|
|
65
76
|
resource: URI;
|
|
@@ -131,9 +142,7 @@ interface IWorkingCopyFileService {
|
|
|
131
142
|
/**
|
|
132
143
|
* Runs all available save participants for stored file working copies.
|
|
133
144
|
*/
|
|
134
|
-
runSaveParticipants(workingCopy: IStoredFileWorkingCopy<IStoredFileWorkingCopyModel>, context:
|
|
135
|
-
reason: SaveReason;
|
|
136
|
-
}, token: CancellationToken): Promise<void>;
|
|
145
|
+
runSaveParticipants(workingCopy: IStoredFileWorkingCopy<IStoredFileWorkingCopyModel>, context: IStoredFileWorkingCopySaveParticipantContext, token: CancellationToken): Promise<void>;
|
|
137
146
|
/**
|
|
138
147
|
* Will create a resource with the provided optional contents, optionally overwriting any target.
|
|
139
148
|
*
|
|
@@ -189,4 +198,4 @@ interface IWorkingCopyFileService {
|
|
|
189
198
|
getDirty(resource: URI): readonly IWorkingCopy[];
|
|
190
199
|
}
|
|
191
200
|
|
|
192
|
-
export { type ICopyOperation, type ICreateFileOperation, type ICreateOperation, type IDeleteOperation, type IFileOperationUndoRedoInfo, type IMoveOperation, type IStoredFileWorkingCopySaveParticipant, type IWorkingCopyFileOperationParticipant, IWorkingCopyFileService, type SourceTargetPair, type WorkingCopyFileEvent };
|
|
201
|
+
export { type ICopyOperation, type ICreateFileOperation, type ICreateOperation, type IDeleteOperation, type IFileOperationUndoRedoInfo, type IMoveOperation, type IStoredFileWorkingCopySaveParticipant, type IStoredFileWorkingCopySaveParticipantContext, type IWorkingCopyFileOperationParticipant, IWorkingCopyFileService, type SourceTargetPair, type WorkingCopyFileEvent };
|
|
@@ -17,6 +17,7 @@ import { IUriIdentityService } from '../../../../platform/uriIdentity/common/uri
|
|
|
17
17
|
import { isEqualAuthority } from '../../../../base/common/resources.js';
|
|
18
18
|
import { isWeb } from '../../../../base/common/platform.js';
|
|
19
19
|
import { IFileService } from '../../../../platform/files/common/files.js';
|
|
20
|
+
import { promiseWithResolvers } from '../../../../base/common/async.js';
|
|
20
21
|
const WORKSPACE_TRUST_ENABLED = 'security.workspace.trust.enabled';
|
|
21
22
|
const WORKSPACE_TRUST_STARTUP_PROMPT = 'security.workspace.trust.startupPrompt';
|
|
22
23
|
const WORKSPACE_TRUST_BANNER = 'security.workspace.trust.banner';
|
|
@@ -86,12 +87,8 @@ let WorkspaceTrustManagementService = class WorkspaceTrustManagementService exte
|
|
|
86
87
|
this._canonicalStartupFiles = [];
|
|
87
88
|
this._canonicalUrisResolved = false;
|
|
88
89
|
this._canonicalWorkspace = this.workspaceService.getWorkspace();
|
|
89
|
-
this._workspaceResolvedPromise
|
|
90
|
-
|
|
91
|
-
}));
|
|
92
|
-
this._workspaceTrustInitializedPromise = ( new Promise((resolve) => {
|
|
93
|
-
this._workspaceTrustInitializedPromiseResolve = resolve;
|
|
94
|
-
}));
|
|
90
|
+
({ promise: this._workspaceResolvedPromise, resolve: this._workspaceResolvedPromiseResolve } = promiseWithResolvers());
|
|
91
|
+
({ promise: this._workspaceTrustInitializedPromise, resolve: this._workspaceTrustInitializedPromiseResolve } = promiseWithResolvers());
|
|
95
92
|
this._storedTrustState = ( new WorkspaceTrustMemento(isWeb && this.isEmptyWorkspace() ? undefined : this.storageService));
|
|
96
93
|
this._trustTransitionManager = this._register(( new WorkspaceTrustTransitionManager()));
|
|
97
94
|
this._trustStateInfo = this.loadTrustInfo();
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
declare module 'vscode' {
|
|
7
|
+
// @alexr00 https://github.com/microsoft/vscode/issues/204484
|
|
8
|
+
|
|
9
|
+
export interface CommentController {
|
|
10
|
+
/**
|
|
11
|
+
* The currently active comment or `undefined`. The active comment is the one
|
|
12
|
+
* that currently has focus or, when none has focus, undefined.
|
|
13
|
+
*/
|
|
14
|
+
// readonly activeComment: Comment | undefined;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The currently active comment thread or `undefined`. The active comment thread is the one
|
|
18
|
+
* in the CommentController that most recently had focus or, when a different CommentController's
|
|
19
|
+
* thread has most recently had focus, undefined.
|
|
20
|
+
*/
|
|
21
|
+
readonly activeCommentThread: CommentThread | undefined;
|
|
22
|
+
}
|
|
23
|
+
}
|