@codingame/monaco-vscode-api 2.0.3-improve-modularity.1 → 2.1.0-update-vscode-1.86.1
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/api.js +15 -12
- package/extensions.d.ts +4 -7
- package/external/@xterm/xterm/typings/xterm.d.ts +22 -0
- package/missing-services.js +62 -6
- package/package.json +8 -8
- package/service-override/tools/editor.js +14 -0
- package/services.d.ts +3 -2
- package/services.js +6 -4
- package/vscode/src/vs/base/browser/browser.js +45 -30
- package/vscode/src/vs/base/browser/canIUse.js +1 -1
- package/vscode/src/vs/base/browser/defaultWorkerFactory.js +12 -5
- package/vscode/src/vs/base/browser/dom.js +104 -14
- package/vscode/src/vs/base/browser/indexedDB.js +3 -3
- package/vscode/src/vs/base/browser/markdownRenderer.js +29 -1
- package/vscode/src/vs/base/browser/mouseEvent.js +17 -3
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +3 -3
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.css.js +4 -0
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.js +287 -0
- package/vscode/src/vs/base/browser/ui/button/button.js +9 -0
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +1 -1
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabelHover.js +16 -5
- package/vscode/src/vs/base/browser/ui/list/listView.js +31 -11
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +35 -21
- package/vscode/src/vs/base/browser/ui/menu/menu.js +10 -1
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +8 -4
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +6 -5
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +469 -95
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +22 -7
- package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +0 -5
- package/vscode/src/vs/base/browser/ui/tree/media/tree.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/objectTree.js +70 -4
- package/vscode/src/vs/base/common/assert.js +6 -1
- package/vscode/src/vs/base/common/async.js +31 -6
- package/vscode/src/vs/base/common/codicons.js +5 -0
- package/vscode/src/vs/base/common/event.d.ts +0 -5
- package/vscode/src/vs/base/common/event.js +0 -15
- package/vscode/src/vs/base/common/filters.d.ts +1 -18
- package/vscode/src/vs/base/common/htmlContent.js +12 -6
- package/vscode/src/vs/base/common/iterator.js +8 -0
- package/vscode/src/vs/base/common/labels.js +2 -1
- package/vscode/src/vs/base/common/map.js +20 -1
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +4 -0
- package/vscode/src/vs/base/common/observableInternal/base.js +16 -8
- package/vscode/src/vs/base/common/observableInternal/derived.js +4 -6
- package/vscode/src/vs/base/common/observableInternal/utils.js +60 -5
- package/vscode/src/vs/base/common/platform.js +20 -20
- package/vscode/src/vs/base/common/prefixTree.js +4 -3
- package/vscode/src/vs/base/common/product.d.ts +5 -2
- package/vscode/src/vs/base/common/strings.js +23 -7
- package/vscode/src/vs/base/common/themables.js +4 -1
- package/vscode/src/vs/base/common/uri.js +11 -1
- package/vscode/src/vs/base/common/worker/simpleWorker.js +1 -1
- package/vscode/src/vs/editor/browser/config/migrateOptions.js +5 -0
- package/vscode/src/vs/editor/browser/controller/mouseHandler.js +1 -0
- package/vscode/src/vs/editor/browser/controller/mouseTarget.js +14 -8
- package/vscode/src/vs/editor/browser/controller/pointerHandler.js +18 -11
- package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +1 -1
- package/vscode/src/vs/editor/browser/controller/textAreaInput.js +3 -3
- package/vscode/src/vs/{workbench/services/hover/browser → editor/browser/services}/hoverService.d.ts +7 -6
- package/vscode/src/vs/editor/browser/services/hoverService.js +195 -0
- package/vscode/src/vs/editor/browser/view.js +29 -39
- package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +41 -19
- package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +30 -23
- package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +23 -8
- package/vscode/src/vs/editor/browser/viewParts/lines/viewLines.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +8 -1
- package/vscode/src/vs/editor/browser/viewParts/marginDecorations/marginDecorations.js +7 -1
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +30 -3
- package/vscode/src/vs/editor/browser/widget/codeEditorWidget.js +39 -15
- package/vscode/src/vs/editor/browser/widget/diffEditor/{accessibleDiffViewer.css.js → components/accessibleDiffViewer.css.js} +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/{accessibleDiffViewer.js → components/accessibleDiffViewer.js} +43 -43
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js +89 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/{diffEditorEditors.js → components/diffEditorEditors.js} +14 -14
- package/vscode/src/vs/editor/browser/widget/diffEditor/{diffEditorSash.js → components/diffEditorSash.js} +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/{lineAlignment.js → components/diffEditorViewZones/diffEditorViewZones.js} +38 -28
- package/vscode/src/vs/editor/browser/widget/diffEditor/{inlineDiffDeletedCodeMargin.js → components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js} +14 -14
- package/vscode/src/vs/editor/browser/widget/diffEditor/{renderLines.js → components/diffEditorViewZones/renderLines.js} +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +29 -38
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +150 -38
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +17 -16
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +104 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/{hideUnchangedRegionsFeature.js → features/hideUnchangedRegionsFeature.js} +51 -78
- package/vscode/src/vs/editor/browser/widget/diffEditor/{movedBlocksLines.js → features/movedBlocksLinesFeature.js} +23 -23
- package/vscode/src/vs/editor/browser/widget/diffEditor/{overviewRulerPart.js → features/overviewRulerFeature.js} +28 -28
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +145 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/{decorations.js → registrations.contribution.js} +18 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +10 -2
- package/vscode/src/vs/editor/browser/widget/hoverWidget/hover.css.js +4 -0
- package/vscode/src/vs/editor/browser/widget/hoverWidget/hoverWidget.js +527 -0
- package/vscode/src/vs/editor/{contrib → browser/widget}/markdownRenderer/browser/markdownRenderer.js +11 -11
- package/vscode/src/vs/editor/{contrib → browser/widget}/markdownRenderer/browser/renderedMarkdown.css.js +1 -1
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +11 -10
- package/vscode/src/vs/editor/common/config/editorOptions.js +46 -42
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +3 -3
- package/vscode/src/vs/editor/common/core/offsetRange.d.ts +2 -0
- package/vscode/src/vs/editor/common/core/offsetRange.js +8 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js +9 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js +50 -47
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js +4 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +2 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +13 -2
- package/vscode/src/vs/editor/common/languages.d.ts +10 -2
- package/vscode/src/vs/editor/common/model/textModel.js +19 -13
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +1 -1
- package/vscode/src/vs/editor/common/model.d.ts +19 -1
- package/vscode/src/vs/editor/common/model.js +2 -1
- package/vscode/src/vs/editor/common/services/editorSimpleWorker.js +2 -1
- package/vscode/src/vs/editor/common/services/getIconClasses.js +4 -1
- package/vscode/src/vs/editor/common/services/semanticTokensProviderStyling.js +3 -3
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +9 -8
- package/vscode/src/vs/editor/common/standaloneStrings.js +18 -18
- package/vscode/src/vs/editor/common/viewEvents.js +2 -0
- package/vscode/src/vs/editor/common/viewModel/glyphLanesModel.js +55 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +4 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +5 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +46 -20
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +38 -11
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +56 -101
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.js +3 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorContributions.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +10 -29
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js +51 -0
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +19 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +38 -10
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +29 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/edit.js +10 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +3 -17
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +3 -35
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +26 -6
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +6 -6
- package/vscode/src/vs/editor/contrib/format/browser/format.js +9 -9
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +5 -5
- package/vscode/src/vs/editor/contrib/gotoError/browser/media/gotoErrorWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/contentHover.js +85 -76
- package/vscode/src/vs/editor/contrib/hover/browser/hover.js +120 -90
- package/vscode/src/vs/editor/contrib/hover/browser/marginHover.js +18 -6
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHints.js +4 -2
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +56 -38
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +12 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +4 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +2 -2
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +50 -53
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +5 -2
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +5 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css.js +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +8 -5
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +58 -46
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +34 -7
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +30 -38
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +11 -3
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +18 -7
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +8 -10
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +7 -6
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -0
- package/vscode/src/vs/editor/editor.api.d.ts +82 -11
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +8 -3
- package/vscode/src/vs/editor/standalone/browser/standaloneLayoutService.js +4 -3
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +22 -11
- package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +1 -1
- package/vscode/src/vs/nls.d.ts +6 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibilityService.js +4 -1
- package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +2 -16
- package/vscode/src/vs/platform/accessibility/common/accessibility.js +1 -2
- package/vscode/src/vs/platform/action/common/actionCommonCategories.d.ts +7 -20
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +8 -8
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +0 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css.js +1 -1
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +2 -0
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +5 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.css.js +1 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +2 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +9 -1
- package/vscode/src/vs/platform/actions/common/actions.js +12 -1
- package/vscode/src/vs/platform/audioCues/browser/audioCueService.d.ts +11 -1
- package/vscode/src/vs/platform/audioCues/browser/audioCueService.js +174 -28
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +38 -5
- package/vscode/src/vs/platform/configuration/common/configuration.d.ts +0 -1
- package/vscode/src/vs/platform/environment/common/environmentService.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +5 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +24 -5
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +6 -1
- package/vscode/src/vs/{workbench/services → platform}/hover/browser/hover.d.ts +6 -8
- package/vscode/src/vs/platform/hover/browser/hover.js +3 -0
- package/vscode/src/vs/platform/instantiation/common/instantiationService.js +14 -4
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +11 -4
- package/vscode/src/vs/platform/keybinding/common/keybinding.d.ts +7 -0
- package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +6 -0
- package/vscode/src/vs/platform/list/browser/listService.js +7 -5
- package/vscode/src/vs/platform/log/common/bufferLog.js +1 -0
- package/vscode/src/vs/platform/log/common/log.d.ts +0 -1
- package/vscode/src/vs/platform/log/common/log.js +1 -2
- package/vscode/src/vs/platform/notification/common/notification.d.ts +36 -19
- package/vscode/src/vs/platform/notification/common/notification.js +9 -3
- package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +4 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +50 -48
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +3 -5
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +49 -66
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +11 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +16 -2
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +230 -26
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.d.ts +1 -0
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -0
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +5 -3
- package/vscode/src/vs/platform/theme/common/colorRegistry.js +28 -9
- package/vscode/src/vs/platform/tunnel/common/tunnel.d.ts +2 -0
- package/vscode/src/vs/platform/window/common/window.js +14 -8
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +97 -78
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +1 -22
- package/vscode/src/vs/workbench/api/common/extHostChat.js +0 -6
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +31 -36
- package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostComments.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostConsoleForwarder.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +130 -6
- package/vscode/src/vs/workbench/api/common/extHostDocumentContentProviders.js +28 -15
- package/vscode/src/vs/workbench/api/common/extHostDocuments.js +4 -5
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +5 -1
- package/vscode/src/vs/workbench/api/common/extHostFileSystem.js +1 -2
- package/vscode/src/vs/workbench/api/common/extHostFileSystemConsumer.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +35 -33
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +40 -13
- package/vscode/src/vs/workbench/api/common/extHostMessageService.js +10 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +11 -7
- package/vscode/src/vs/workbench/api/common/extHostNotebookEditors.js +2 -3
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +29 -4
- package/vscode/src/vs/workbench/api/common/extHostProfileContentHandler.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostProgress.js +1 -7
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +49 -93
- package/vscode/src/vs/workbench/api/common/extHostSpeech.js +21 -0
- package/vscode/src/vs/workbench/api/common/extHostTask.js +18 -22
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +55 -36
- package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +5 -2
- package/vscode/src/vs/workbench/api/common/extHostTextEditors.js +6 -7
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +6 -3
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +74 -12
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +27 -8
- package/vscode/src/vs/workbench/api/worker/extHostConsoleForwarder.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +172 -103
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +13 -17
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +34 -34
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/dnd.js +2 -2
- package/vscode/src/vs/workbench/browser/labels.js +34 -4
- package/vscode/src/vs/workbench/browser/part.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +801 -0
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +140 -0
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +410 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.js +1 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +304 -303
- package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +101 -47
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +114 -47
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +1313 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +190 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +344 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +10 -10
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +27 -42
- package/vscode/src/vs/workbench/browser/parts/editor/editorTitleControl.js +152 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +8 -8
- package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editortitlecontrol.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/singleeditortabscontrol.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +1626 -0
- package/vscode/src/vs/workbench/browser/parts/editor/multiRowEditorTabsControl.js +150 -0
- package/vscode/src/vs/workbench/browser/parts/editor/noEditorTabsControl.js +52 -0
- package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.js +260 -0
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +39 -36
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +68 -28
- package/vscode/src/vs/workbench/browser/parts/panel/media/panelpart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +15 -14
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -17
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -10
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +2 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.d.ts +2 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +18 -17
- package/vscode/src/vs/workbench/browser/quickaccess.js +33 -1
- package/vscode/src/vs/workbench/browser/web.api.d.ts +6 -0
- package/vscode/src/vs/workbench/browser/window.js +92 -9
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +114 -65
- package/vscode/src/vs/workbench/common/component.d.ts +5 -1
- package/vscode/src/vs/workbench/common/component.js +6 -0
- package/vscode/src/vs/workbench/common/configuration.js +11 -1
- package/vscode/src/vs/workbench/common/contextkeys.js +8 -4
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +6 -0
- package/vscode/src/vs/workbench/common/editor/editorInput.js +3 -0
- package/vscode/src/vs/workbench/common/editor/filteredEditorGroupModel.js +107 -0
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +6 -3
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +21 -3
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +2 -1
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +9 -6
- package/vscode/src/vs/workbench/common/editor.d.ts +16 -4
- package/vscode/src/vs/workbench/common/editor.js +7 -1
- package/vscode/src/vs/workbench/common/memento.js +33 -12
- package/vscode/src/vs/workbench/common/notifications.js +30 -7
- package/vscode/src/vs/workbench/common/theme.js +61 -1
- package/vscode/src/vs/workbench/common/views.d.ts +1 -28
- package/vscode/src/vs/workbench/common/views.js +1 -2
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +232 -19
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +9 -9
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +1 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +19 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +8 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +57 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +9 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +31 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +93 -49
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +30 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.js +24 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +9 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +12 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +21 -43
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +0 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/{comments.contribution.js → commentsAccessibility.js} +36 -128
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +41 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +202 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +27 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +165 -52
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +48 -31
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +6 -1
- 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 +40 -10
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +28 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugContext.js +14 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +52 -23
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +164 -0
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +10 -0
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +285 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +123 -78
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +10 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +326 -0
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +1 -2
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +8 -9
- package/vscode/src/vs/workbench/contrib/files/browser/files.configuration.contribution.js +70 -2
- package/vscode/src/vs/workbench/contrib/files/browser/files.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/files/browser/files.fileEditorFactory.contribution.js +13 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +34 -17
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +5 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +48 -14
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +16 -8
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +317 -321
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatLivePreviewWidget.js +17 -24
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingService.js +3 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +306 -130
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +3 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +385 -613
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +69 -64
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +71 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +39 -44
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +5 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookEditorStickyScroll.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +38 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +36 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +32 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.js +24 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.js +1 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatActions.js +264 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatController.js +60 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +12 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +12 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +6 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +188 -155
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +10 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +16 -33
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +9 -7
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +6 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.js +2 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +29 -14
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +15 -3
- package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +22 -6
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +16 -17
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +78 -50
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +15 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +25 -45
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +12 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcon.js +2 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +33 -36
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +3 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +5 -8
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +15 -27
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +3 -3
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +38 -22
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.js +5 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testProfileService.js +60 -40
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.js +15 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testService.js +26 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +24 -23
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +1 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +124 -26
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +68 -0
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +76 -36
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +1 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +1 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorService.js +15 -3
- package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.js +10 -1
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +51 -43
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +13 -8
- package/vscode/src/vs/workbench/services/editor/common/editorService.js +2 -1
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +10 -10
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +7 -7
- package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.js +1 -0
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.d.ts +29 -9
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +160 -63
- package/vscode/src/vs/workbench/services/host/browser/host.d.ts +8 -0
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +60 -72
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +0 -4
- package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.js +56 -0
- package/vscode/src/vs/workbench/services/output/common/output.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +10 -0
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +10 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +2 -1
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +5 -4
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +21 -8
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +4 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +3 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +4 -4
- package/vscode/src/vs/workbench/{browser/parts/views → services/views/browser}/viewsService.js +20 -15
- package/vscode/src/vs/workbench/services/views/common/viewsService.d.ts +34 -0
- package/vscode/src/vs/workbench/services/{hover/browser/hover.js → views/common/viewsService.js} +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.d.ts +6 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +5 -2
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +1 -0
- package/vscode-dts/vscode.proposed.chatAgents2.d.ts +112 -47
- package/vscode-dts/vscode.proposed.chatAgents2Additions.d.ts +68 -9
- package/vscode-dts/{vscode.proposed.scmInputBoxActionButton.d.ts → vscode.proposed.codeActionRanges.d.ts} +8 -10
- package/vscode-dts/{vscode.proposed.readonlyMessage.d.ts → vscode.proposed.commentReactor.d.ts} +3 -4
- package/vscode-dts/vscode.proposed.contribMultiDiffEditorMenus.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemGroupMenu.d.ts +8 -0
- package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemMenu.d.ts +8 -0
- package/vscode-dts/vscode.proposed.debugVisualization.d.ts +100 -0
- package/vscode-dts/vscode.proposed.defaultChatAgent.d.ts +1 -1
- package/vscode-dts/vscode.proposed.interactive.d.ts +13 -16
- package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +4 -1
- package/vscode-dts/vscode.proposed.resolvers.d.ts +4 -0
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +4 -10
- package/vscode-dts/vscode.proposed.scmMultiDiffEditor.d.ts +34 -0
- package/vscode-dts/vscode.proposed.speech.d.ts +17 -3
- package/vscode-dts/vscode.proposed.testCoverage.d.ts +7 -1
- package/vscode-dts/vscode.proposed.tunnelFactory.d.ts +4 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/colors.js +0 -17
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorDecorations.js +0 -231
- package/vscode/src/vs/editor/browser/widget/diffEditor/outlineModel.js +0 -299
- package/vscode/src/vs/editor/browser/widget/diffEditor/workerBasedDocumentDiffProvider.js +0 -101
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +0 -390
- package/vscode/src/vs/workbench/services/editor/common/editorGroupColumn.d.ts +0 -10
- package/vscode/src/vs/workbench/services/suggest/browser/media/suggest.css.js +0 -4
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.d.ts +0 -28
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.js +0 -10
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.d.ts +0 -30
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.js +0 -98
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.d.ts +0 -10
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +0 -428
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +0 -83
- package/vscode-dts/vscode.proposed.chatVariables.d.ts +0 -39
- package/vscode-dts/vscode.proposed.interactiveUserActions.d.ts +0 -77
- package/vscode-dts/vscode.proposed.saveEditor.d.ts +0 -35
- package/vscode-dts/vscode.proposed.scmInputBoxValueProvider.d.ts +0 -25
- package/vscode-dts/vscode.proposed.testingActiveProfile.d.ts +0 -21
|
@@ -17,15 +17,14 @@ import { IInstantiationService } from '../../../../../platform/instantiation/com
|
|
|
17
17
|
import { DecorationAddon } from './decorationAddon.js';
|
|
18
18
|
import { Emitter } from '../../../../../base/common/event.js';
|
|
19
19
|
import { ITelemetryService } from '../../../../../platform/telemetry/common/telemetry.js';
|
|
20
|
-
import { SuggestAddon } from './suggestAddon.js';
|
|
21
20
|
import { IContextKeyService } from '../../../../../platform/contextkey/common/contextkey.js';
|
|
22
21
|
import { TerminalContextKeys } from '../../common/terminalContextKey.js';
|
|
23
22
|
import { IClipboardService } from '../../../../../platform/clipboard/common/clipboardService.js';
|
|
24
23
|
import { debounce } from '../../../../../base/common/decorators.js';
|
|
25
24
|
import { MouseWheelClassifier } from '../../../../../base/browser/ui/scrollbar/scrollableElement.js';
|
|
26
25
|
import { StandardWheelEvent } from '../../../../../base/browser/mouseEvent.js';
|
|
27
|
-
import { IAccessibleNotificationService } from '../../../../../platform/accessibility/common/accessibility.js';
|
|
28
26
|
import { ILayoutService } from '../../../../../platform/layout/browser/layoutService.js';
|
|
27
|
+
import { AudioCue, IAudioCueService } from '../../../../../platform/audioCues/browser/audioCueService.js';
|
|
29
28
|
var XtermTerminal_1;
|
|
30
29
|
let CanvasAddon;
|
|
31
30
|
let ImageAddon;
|
|
@@ -57,7 +56,6 @@ let XtermTerminal = class XtermTerminal extends Disposable {
|
|
|
57
56
|
get isGpuAccelerated() { return !!(this._canvasAddon || this._webglAddon); }
|
|
58
57
|
get markTracker() { return this._markNavigationAddon; }
|
|
59
58
|
get shellIntegration() { return this._shellIntegrationAddon; }
|
|
60
|
-
get suggestController() { return this._suggestAddon; }
|
|
61
59
|
get textureAtlas() {
|
|
62
60
|
const canvas = this._webglAddon?.textureAtlas || this._canvasAddon?.textureAtlas;
|
|
63
61
|
if (!canvas) {
|
|
@@ -71,12 +69,11 @@ let XtermTerminal = class XtermTerminal extends Disposable {
|
|
|
71
69
|
}
|
|
72
70
|
return isAncestorOfActiveElement(this.raw.element);
|
|
73
71
|
}
|
|
74
|
-
constructor(xtermCtor, _configHelper, cols, rows, _xtermColorProvider, _capabilities, shellIntegrationNonce,
|
|
72
|
+
constructor(xtermCtor, _configHelper, cols, rows, _xtermColorProvider, _capabilities, shellIntegrationNonce, disableShellIntegrationReporting, _configurationService, _instantiationService, _logService, _notificationService, _storageService, _themeService, _telemetryService, _clipboardService, contextKeyService, _audioCueService, layoutService) {
|
|
75
73
|
super();
|
|
76
74
|
this._configHelper = _configHelper;
|
|
77
75
|
this._xtermColorProvider = _xtermColorProvider;
|
|
78
76
|
this._capabilities = _capabilities;
|
|
79
|
-
this._terminalSuggestWidgetVisibleContextKey = _terminalSuggestWidgetVisibleContextKey;
|
|
80
77
|
this._configurationService = _configurationService;
|
|
81
78
|
this._instantiationService = _instantiationService;
|
|
82
79
|
this._logService = _logService;
|
|
@@ -85,7 +82,7 @@ let XtermTerminal = class XtermTerminal extends Disposable {
|
|
|
85
82
|
this._themeService = _themeService;
|
|
86
83
|
this._telemetryService = _telemetryService;
|
|
87
84
|
this._clipboardService = _clipboardService;
|
|
88
|
-
this.
|
|
85
|
+
this._audioCueService = _audioCueService;
|
|
89
86
|
this._isPhysicalMouseWheel = MouseWheelClassifier.INSTANCE.isPhysicalMouseWheel();
|
|
90
87
|
this._attachedDisposables = this._register(( new DisposableStore()));
|
|
91
88
|
this._onDidRequestRunCommand = this._register(( new Emitter()));
|
|
@@ -176,14 +173,6 @@ let XtermTerminal = class XtermTerminal extends Disposable {
|
|
|
176
173
|
this.raw.loadAddon(this._shellIntegrationAddon);
|
|
177
174
|
this._anyTerminalFocusContextKey = TerminalContextKeys.focusInAny.bindTo(contextKeyService);
|
|
178
175
|
this._anyFocusedTerminalHasSelection = TerminalContextKeys.textSelectedInFocused.bindTo(contextKeyService);
|
|
179
|
-
if (this._terminalSuggestWidgetVisibleContextKey) {
|
|
180
|
-
this._suggestAddon = this._register(this._instantiationService.createInstance(SuggestAddon, this._terminalSuggestWidgetVisibleContextKey));
|
|
181
|
-
this.raw.loadAddon(this._suggestAddon);
|
|
182
|
-
this._register(this._suggestAddon.onAcceptedCompletion(async (text) => {
|
|
183
|
-
this._onDidRequestFocus.fire();
|
|
184
|
-
this._onDidRequestSendText.fire(text);
|
|
185
|
-
}));
|
|
186
|
-
}
|
|
187
176
|
}
|
|
188
177
|
*getBufferReverseIterator() {
|
|
189
178
|
for (let i = this.raw.buffer.active.length; i >= 0; i--) {
|
|
@@ -252,7 +241,6 @@ let XtermTerminal = class XtermTerminal extends Disposable {
|
|
|
252
241
|
this._updateSmoothScrolling();
|
|
253
242
|
}
|
|
254
243
|
}, { passive: true }));
|
|
255
|
-
this._suggestAddon?.setContainer(container);
|
|
256
244
|
this._attached = { container, options };
|
|
257
245
|
return this._attached?.container.querySelector('.xterm-screen');
|
|
258
246
|
}
|
|
@@ -432,7 +420,7 @@ let XtermTerminal = class XtermTerminal extends Disposable {
|
|
|
432
420
|
this.raw.clear();
|
|
433
421
|
this._capabilities.get(2 )?.handlePromptStart();
|
|
434
422
|
this._capabilities.get(2 )?.handleCommandStart();
|
|
435
|
-
this.
|
|
423
|
+
this._audioCueService.playAudioCue(AudioCue.clear);
|
|
436
424
|
}
|
|
437
425
|
hasSelection() {
|
|
438
426
|
return this.raw.hasSelection();
|
|
@@ -770,17 +758,17 @@ XtermTerminal.__decorator = ( __decorate([
|
|
|
770
758
|
debounce(100)
|
|
771
759
|
], XtermTerminal.prototype, "_refreshImageAddon", null));
|
|
772
760
|
XtermTerminal = XtermTerminal_1 = ( __decorate([
|
|
773
|
-
( __param(
|
|
774
|
-
( __param(
|
|
775
|
-
( __param(
|
|
776
|
-
( __param(
|
|
777
|
-
( __param(
|
|
778
|
-
( __param(
|
|
779
|
-
( __param(
|
|
780
|
-
( __param(
|
|
781
|
-
( __param(
|
|
782
|
-
( __param(
|
|
783
|
-
( __param(
|
|
761
|
+
( __param(8, IConfigurationService)),
|
|
762
|
+
( __param(9, IInstantiationService)),
|
|
763
|
+
( __param(10, ITerminalLogService)),
|
|
764
|
+
( __param(11, INotificationService)),
|
|
765
|
+
( __param(12, IStorageService)),
|
|
766
|
+
( __param(13, IThemeService)),
|
|
767
|
+
( __param(14, ITelemetryService)),
|
|
768
|
+
( __param(15, IClipboardService)),
|
|
769
|
+
( __param(16, IContextKeyService)),
|
|
770
|
+
( __param(17, IAudioCueService)),
|
|
771
|
+
( __param(18, ILayoutService))
|
|
784
772
|
], XtermTerminal));
|
|
785
773
|
function getXtermScaledDimensions(w, font, width, height) {
|
|
786
774
|
if (!font.charWidth || !font.charHeight) {
|
|
@@ -116,7 +116,7 @@ const TERMINAL_FIND_MATCH_BACKGROUND_COLOR = registerColor('terminal.findMatchBa
|
|
|
116
116
|
'vs/workbench/contrib/terminal/common/terminalColorRegistry',
|
|
117
117
|
'terminal.findMatchBackground',
|
|
118
118
|
'Color of the current search match in the terminal. The color must not be opaque so as not to hide underlying terminal content.'
|
|
119
|
-
)));
|
|
119
|
+
)), true);
|
|
120
120
|
registerColor('terminal.hoverHighlightBackground', {
|
|
121
121
|
dark: ( transparent(editorHoverHighlight, 0.5)),
|
|
122
122
|
light: ( transparent(editorHoverHighlight, 0.5)),
|
|
@@ -146,7 +146,7 @@ const TERMINAL_FIND_MATCH_HIGHLIGHT_BACKGROUND_COLOR = registerColor('terminal.f
|
|
|
146
146
|
'vs/workbench/contrib/terminal/common/terminalColorRegistry',
|
|
147
147
|
'terminal.findMatchHighlightBackground',
|
|
148
148
|
'Color of the other search matches in the terminal. The color must not be opaque so as not to hide underlying terminal content.'
|
|
149
|
-
)));
|
|
149
|
+
)), true);
|
|
150
150
|
const TERMINAL_FIND_MATCH_HIGHLIGHT_BORDER_COLOR = registerColor('terminal.findMatchHighlightBorder', {
|
|
151
151
|
dark: null,
|
|
152
152
|
light: null,
|
|
@@ -176,7 +176,7 @@ registerColor('terminal.dropBackground', {
|
|
|
176
176
|
'vs/workbench/contrib/terminal/common/terminalColorRegistry',
|
|
177
177
|
'terminal.dragAndDropBackground',
|
|
178
178
|
"Background color when dragging on top of terminals. The color should have transparency so that the terminal contents can still shine through."
|
|
179
|
-
)));
|
|
179
|
+
)), true);
|
|
180
180
|
registerColor('terminal.tab.activeBorder', {
|
|
181
181
|
dark: TAB_ACTIVE_BORDER,
|
|
182
182
|
light: TAB_ACTIVE_BORDER,
|
|
@@ -4,20 +4,22 @@ import { WellDefinedPrefixTree } from '../../../../base/common/prefixTree.js';
|
|
|
4
4
|
import { URI } from '../../../../base/common/uri.js';
|
|
5
5
|
import { ICoveredCount } from './testTypes.js';
|
|
6
6
|
class TestCoverage {
|
|
7
|
-
static async load(taskId, accessor, token) {
|
|
7
|
+
static async load(taskId, accessor, uriIdentityService, token) {
|
|
8
8
|
const files = await accessor.provideFileCoverage(token);
|
|
9
9
|
const map = ( new ResourceMap());
|
|
10
10
|
for (const [i, file] of files.entries()) {
|
|
11
11
|
map.set(file.uri, ( new FileCoverage(file, i, accessor)));
|
|
12
12
|
}
|
|
13
|
-
return ( new TestCoverage(taskId, map));
|
|
13
|
+
return ( new TestCoverage(taskId, map, uriIdentityService));
|
|
14
14
|
}
|
|
15
15
|
get tree() {
|
|
16
16
|
return this._tree ??= this.buildCoverageTree();
|
|
17
17
|
}
|
|
18
|
-
constructor(fromTaskId, fileCoverage) {
|
|
18
|
+
constructor(fromTaskId, fileCoverage, uriIdentityService) {
|
|
19
19
|
this.fromTaskId = fromTaskId;
|
|
20
20
|
this.fileCoverage = fileCoverage;
|
|
21
|
+
this.uriIdentityService = uriIdentityService;
|
|
22
|
+
this.associatedData = ( new Map());
|
|
21
23
|
}
|
|
22
24
|
getAllFiles() {
|
|
23
25
|
return this.fileCoverage;
|
|
@@ -26,12 +28,17 @@ class TestCoverage {
|
|
|
26
28
|
return this.fileCoverage.get(uri);
|
|
27
29
|
}
|
|
28
30
|
getComputedForUri(uri) {
|
|
29
|
-
return this.tree.find(this.treePathForUri(uri));
|
|
31
|
+
return this.tree.find(this.treePathForUri(uri, false));
|
|
30
32
|
}
|
|
31
33
|
buildCoverageTree() {
|
|
32
34
|
const tree = ( new WellDefinedPrefixTree());
|
|
35
|
+
const nodeCanonicalSegments = ( new Map());
|
|
33
36
|
for (const file of ( this.fileCoverage.values())) {
|
|
34
|
-
|
|
37
|
+
const keyPath = this.treePathForUri(file.uri, false);
|
|
38
|
+
const canonicalPath = this.treePathForUri(file.uri, true);
|
|
39
|
+
tree.insert(keyPath, file, node => {
|
|
40
|
+
nodeCanonicalSegments.set(node, canonicalPath.next().value);
|
|
41
|
+
});
|
|
35
42
|
}
|
|
36
43
|
const calculateComputed = (path, node) => {
|
|
37
44
|
if (node.value) {
|
|
@@ -43,7 +50,7 @@ class TestCoverage {
|
|
|
43
50
|
};
|
|
44
51
|
if (node.children) {
|
|
45
52
|
for (const [prefix, child] of node.children) {
|
|
46
|
-
path.push(prefix);
|
|
53
|
+
path.push(nodeCanonicalSegments.get(child) || prefix);
|
|
47
54
|
const v = calculateComputed(path, child);
|
|
48
55
|
path.pop();
|
|
49
56
|
ICoveredCount.sum(fileCoverage.statement, v.statement);
|
|
@@ -62,31 +69,35 @@ class TestCoverage {
|
|
|
62
69
|
}
|
|
63
70
|
return tree;
|
|
64
71
|
}
|
|
65
|
-
*treePathForUri(uri) {
|
|
72
|
+
*treePathForUri(uri, canconicalPath) {
|
|
66
73
|
yield uri.scheme;
|
|
67
74
|
yield uri.authority;
|
|
68
|
-
|
|
75
|
+
const path = !canconicalPath && this.uriIdentityService.extUri.ignorePathCasing(uri) ? uri.path.toLowerCase() : uri.path;
|
|
76
|
+
yield* path.split('/');
|
|
69
77
|
}
|
|
70
78
|
treePathToUri(path) {
|
|
71
79
|
return ( URI.from({ scheme: path[0], authority: path[1], path: path.slice(2).join('/') }));
|
|
72
80
|
}
|
|
73
81
|
}
|
|
82
|
+
const getTotalCoveragePercent = (statement, branch, function_) => {
|
|
83
|
+
let numerator = statement.covered;
|
|
84
|
+
let denominator = statement.total;
|
|
85
|
+
if (branch) {
|
|
86
|
+
numerator += branch.covered;
|
|
87
|
+
denominator += branch.total;
|
|
88
|
+
}
|
|
89
|
+
if (function_) {
|
|
90
|
+
numerator += function_.covered;
|
|
91
|
+
denominator += function_.total;
|
|
92
|
+
}
|
|
93
|
+
return denominator === 0 ? 1 : numerator / denominator;
|
|
94
|
+
};
|
|
74
95
|
class AbstractFileCoverage {
|
|
75
96
|
get tpc() {
|
|
76
|
-
|
|
77
|
-
let denominator = this.statement.total;
|
|
78
|
-
if (this.branch) {
|
|
79
|
-
numerator += this.branch.covered;
|
|
80
|
-
denominator += this.branch.total;
|
|
81
|
-
}
|
|
82
|
-
if (this.function) {
|
|
83
|
-
numerator += this.function.covered;
|
|
84
|
-
denominator += this.function.total;
|
|
85
|
-
}
|
|
86
|
-
return denominator === 0 ? 1 : numerator / denominator;
|
|
97
|
+
return getTotalCoveragePercent(this.statement, this.branch, this.function);
|
|
87
98
|
}
|
|
88
99
|
constructor(coverage) {
|
|
89
|
-
this.uri =
|
|
100
|
+
this.uri = coverage.uri;
|
|
90
101
|
this.statement = coverage.statement;
|
|
91
102
|
this.branch = coverage.branch;
|
|
92
103
|
this.function = coverage.function;
|
|
@@ -95,6 +106,9 @@ class AbstractFileCoverage {
|
|
|
95
106
|
class ComputedFileCoverage extends AbstractFileCoverage {
|
|
96
107
|
}
|
|
97
108
|
class FileCoverage extends AbstractFileCoverage {
|
|
109
|
+
get hasSynchronousDetails() {
|
|
110
|
+
return this._details instanceof Array || this.resolved;
|
|
111
|
+
}
|
|
98
112
|
constructor(coverage, index, accessor) {
|
|
99
113
|
super(coverage);
|
|
100
114
|
this.index = index;
|
|
@@ -104,7 +118,9 @@ class FileCoverage extends AbstractFileCoverage {
|
|
|
104
118
|
async details(token = CancellationToken.None) {
|
|
105
119
|
this._details ??= this.accessor.resolveFileCoverage(this.index, token);
|
|
106
120
|
try {
|
|
107
|
-
|
|
121
|
+
const d = await this._details;
|
|
122
|
+
this.resolved = true;
|
|
123
|
+
return d;
|
|
108
124
|
}
|
|
109
125
|
catch (e) {
|
|
110
126
|
this._details = undefined;
|
|
@@ -112,4 +128,4 @@ class FileCoverage extends AbstractFileCoverage {
|
|
|
112
128
|
}
|
|
113
129
|
}
|
|
114
130
|
}
|
|
115
|
-
export { AbstractFileCoverage, ComputedFileCoverage, FileCoverage, TestCoverage };
|
|
131
|
+
export { AbstractFileCoverage, ComputedFileCoverage, FileCoverage, TestCoverage, getTotalCoveragePercent };
|
|
@@ -5,7 +5,7 @@ import { localizeWithPath } from '../../../../nls.js';
|
|
|
5
5
|
import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
|
|
6
6
|
import { createDecorator } from '../../../../platform/instantiation/common/instantiation.js';
|
|
7
7
|
import { INotificationService } from '../../../../platform/notification/common/notification.js';
|
|
8
|
-
import { IViewsService } from '../../../common/
|
|
8
|
+
import { IViewsService } from '../../../services/views/common/viewsService.js';
|
|
9
9
|
import { ITestResultService } from './testResultService.js';
|
|
10
10
|
import { TestingContextKeys } from './testingContextKeys.js';
|
|
11
11
|
import { observableValue } from '../../../../base/common/observableInternal/base.js';
|
|
@@ -24,6 +24,9 @@ let TestCoverageService = class TestCoverageService extends Disposable {
|
|
|
24
24
|
if (coverage) {
|
|
25
25
|
this.openCoverage(coverage, false);
|
|
26
26
|
}
|
|
27
|
+
else {
|
|
28
|
+
this.closeCoverage();
|
|
29
|
+
}
|
|
27
30
|
}
|
|
28
31
|
else if ('removed' in evt && this.selected.get()) {
|
|
29
32
|
const taskId = this.selected.get()?.fromTaskId;
|
|
@@ -50,7 +53,7 @@ let TestCoverageService = class TestCoverageService extends Disposable {
|
|
|
50
53
|
this.notificationService.error(( localizeWithPath(
|
|
51
54
|
'vs/workbench/contrib/testing/common/testCoverageService',
|
|
52
55
|
'testCoverageError',
|
|
53
|
-
'Failed to load test coverage: {}',
|
|
56
|
+
'Failed to load test coverage: {0}',
|
|
54
57
|
String(e)
|
|
55
58
|
)));
|
|
56
59
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { Emitter } from '../../../../base/common/event.js';
|
|
3
|
-
import {
|
|
3
|
+
import { Disposable } from '../../../../base/common/lifecycle.js';
|
|
4
|
+
import { deepClone } from '../../../../base/common/objects.js';
|
|
4
5
|
import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
|
|
5
6
|
import { createDecorator } from '../../../../platform/instantiation/common/instantiation.js';
|
|
6
7
|
import { IStorageService } from '../../../../platform/storage/common/storage.js';
|
|
7
8
|
import { StoredValue } from './storedValue.js';
|
|
8
|
-
import { testRunProfileBitsetList } from './testTypes.js';
|
|
9
9
|
import { TestId } from './testId.js';
|
|
10
|
+
import { testRunProfileBitsetList } from './testTypes.js';
|
|
10
11
|
import { TestingContextKeys } from './testingContextKeys.js';
|
|
11
|
-
import { Disposable } from '../../../../base/common/lifecycle.js';
|
|
12
12
|
const ITestProfileService = ( createDecorator('testProfileService'));
|
|
13
13
|
const canUseProfileWithTest = (profile, test) => profile.controllerId === test.controllerId && (TestId.isRoot(test.item.extId) || !profile.tag || test.item.tags.includes(profile.tag));
|
|
14
14
|
const sorter = (a, b) => {
|
|
@@ -28,8 +28,9 @@ let TestProfileService = class TestProfileService extends Disposable {
|
|
|
28
28
|
this.changeEmitter = this._register(( new Emitter()));
|
|
29
29
|
this.controllerProfiles = ( new Map());
|
|
30
30
|
this.onDidChange = this.changeEmitter.event;
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
storageService.remove('testingPreferredProfiles', 1 );
|
|
32
|
+
this.userDefaults = this._register(( new StoredValue({
|
|
33
|
+
key: 'testingPreferredProfiles2',
|
|
33
34
|
scope: 1 ,
|
|
34
35
|
target: 1 ,
|
|
35
36
|
}, storageService)));
|
|
@@ -44,14 +45,20 @@ let TestProfileService = class TestProfileService extends Disposable {
|
|
|
44
45
|
this.refreshContextKeys();
|
|
45
46
|
}
|
|
46
47
|
addProfile(controller, profile) {
|
|
48
|
+
const previousExplicitDefaultValue = this.userDefaults.get()?.[controller.id]?.[profile.profileId];
|
|
49
|
+
const extended = {
|
|
50
|
+
...profile,
|
|
51
|
+
isDefault: previousExplicitDefaultValue ?? profile.isDefault,
|
|
52
|
+
wasInitiallyDefault: profile.isDefault,
|
|
53
|
+
};
|
|
47
54
|
let record = this.controllerProfiles.get(profile.controllerId);
|
|
48
55
|
if (record) {
|
|
49
|
-
record.profiles.push(
|
|
56
|
+
record.profiles.push(extended);
|
|
50
57
|
record.profiles.sort(sorter);
|
|
51
58
|
}
|
|
52
59
|
else {
|
|
53
60
|
record = {
|
|
54
|
-
profiles: [
|
|
61
|
+
profiles: [extended],
|
|
55
62
|
controller,
|
|
56
63
|
};
|
|
57
64
|
this.controllerProfiles.set(profile.controllerId, record);
|
|
@@ -70,6 +77,11 @@ let TestProfileService = class TestProfileService extends Disposable {
|
|
|
70
77
|
}
|
|
71
78
|
Object.assign(profile, update);
|
|
72
79
|
ctrl.profiles.sort(sorter);
|
|
80
|
+
if (update.isDefault !== undefined) {
|
|
81
|
+
const map = deepClone(this.userDefaults.get({}));
|
|
82
|
+
setIsDefault(map, profile, update.isDefault);
|
|
83
|
+
this.userDefaults.store(map);
|
|
84
|
+
}
|
|
73
85
|
this.changeEmitter.fire();
|
|
74
86
|
}
|
|
75
87
|
configure(controllerId, profileId) {
|
|
@@ -113,46 +125,44 @@ let TestProfileService = class TestProfileService extends Disposable {
|
|
|
113
125
|
return this.controllerProfiles.get(profileId)?.profiles ?? [];
|
|
114
126
|
}
|
|
115
127
|
getGroupDefaultProfiles(group) {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
128
|
+
let defaults = [];
|
|
129
|
+
for (const { profiles } of ( this.controllerProfiles.values())) {
|
|
130
|
+
defaults = defaults.concat(profiles.filter(c => c.group === group && c.isDefault));
|
|
119
131
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const next = {
|
|
127
|
-
...this.preferredDefaults.get(),
|
|
128
|
-
[group]: ( profiles.map(c => ({ profileId: c.profileId, controllerId: c.controllerId }))),
|
|
129
|
-
};
|
|
130
|
-
if (group === 2 || group === 4 ) {
|
|
131
|
-
const otherGroup = group === 2 ? 4 : 2 ;
|
|
132
|
-
const previousDefaults = next[otherGroup] || [];
|
|
133
|
-
let newDefaults = previousDefaults.slice();
|
|
134
|
-
for (const [ctrlId, { profiles: ctrlProfiles }] of this.controllerProfiles) {
|
|
135
|
-
const labels = ( new Set(( profiles.filter(p => p.controllerId === ctrlId).map(p => p.label))));
|
|
136
|
-
const nextByLabels = ctrlProfiles.filter(p => ( labels.has(p.label)) && p.group === otherGroup);
|
|
137
|
-
if (nextByLabels.length) {
|
|
138
|
-
newDefaults = newDefaults.filter(p => p.controllerId !== ctrlId);
|
|
139
|
-
newDefaults.push(...( nextByLabels.map(p => ({ profileId: p.profileId, controllerId: p.controllerId }))));
|
|
132
|
+
if (defaults.length === 0) {
|
|
133
|
+
for (const { profiles } of ( this.controllerProfiles.values())) {
|
|
134
|
+
const first = profiles.find(p => p.group === group);
|
|
135
|
+
if (first) {
|
|
136
|
+
defaults.push(first);
|
|
137
|
+
break;
|
|
140
138
|
}
|
|
141
139
|
}
|
|
142
|
-
next[otherGroup] = newDefaults;
|
|
143
140
|
}
|
|
144
|
-
|
|
145
|
-
this.changeEmitter.fire();
|
|
141
|
+
return defaults;
|
|
146
142
|
}
|
|
147
|
-
|
|
148
|
-
const
|
|
149
|
-
for (const
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
143
|
+
setGroupDefaultProfiles(group, profiles) {
|
|
144
|
+
const next = {};
|
|
145
|
+
for (const ctrl of ( this.controllerProfiles.values())) {
|
|
146
|
+
next[ctrl.controller.id] = {};
|
|
147
|
+
for (const profile of ctrl.profiles) {
|
|
148
|
+
if (profile.group !== group) {
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
setIsDefault(next, profile, ( profiles.some(p => p.profileId === profile.profileId)));
|
|
152
|
+
}
|
|
153
|
+
for (const profile of ctrl.profiles) {
|
|
154
|
+
if (profile.group === group) {
|
|
155
|
+
continue;
|
|
156
|
+
}
|
|
157
|
+
const matching = ctrl.profiles.find(p => p.group === group && p.label === profile.label);
|
|
158
|
+
if (matching) {
|
|
159
|
+
setIsDefault(next, profile, matching.isDefault);
|
|
160
|
+
}
|
|
153
161
|
}
|
|
162
|
+
ctrl.profiles.sort(sorter);
|
|
154
163
|
}
|
|
155
|
-
|
|
164
|
+
this.userDefaults.store(next);
|
|
165
|
+
this.changeEmitter.fire();
|
|
156
166
|
}
|
|
157
167
|
refreshContextKeys() {
|
|
158
168
|
let allCapabilities = 0;
|
|
@@ -171,4 +181,14 @@ TestProfileService = ( __decorate([
|
|
|
171
181
|
( __param(0, IContextKeyService)),
|
|
172
182
|
( __param(1, IStorageService))
|
|
173
183
|
], TestProfileService));
|
|
184
|
+
const setIsDefault = (map, profile, isDefault) => {
|
|
185
|
+
profile.isDefault = isDefault;
|
|
186
|
+
map[profile.controllerId] ??= {};
|
|
187
|
+
if (profile.isDefault !== profile.wasInitiallyDefault) {
|
|
188
|
+
map[profile.controllerId][profile.profileId] = profile.isDefault;
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
delete map[profile.controllerId][profile.profileId];
|
|
192
|
+
}
|
|
193
|
+
};
|
|
174
194
|
export { ITestProfileService, TestProfileService, canUseProfileWithTest, capabilityContextKeys };
|
|
@@ -348,7 +348,7 @@ class HydratedTestResult {
|
|
|
348
348
|
get tests() {
|
|
349
349
|
return ( this.testById.values());
|
|
350
350
|
}
|
|
351
|
-
constructor(serialized, persist = true) {
|
|
351
|
+
constructor(identity, serialized, persist = true) {
|
|
352
352
|
this.serialized = serialized;
|
|
353
353
|
this.persist = persist;
|
|
354
354
|
this.counts = makeEmptyCounts();
|
|
@@ -366,7 +366,7 @@ class HydratedTestResult {
|
|
|
366
366
|
this.name = serialized.name;
|
|
367
367
|
this.request = serialized.request;
|
|
368
368
|
for (const item of serialized.items) {
|
|
369
|
-
const de = TestResultItem.deserialize(item);
|
|
369
|
+
const de = TestResultItem.deserialize(identity, item);
|
|
370
370
|
this.counts[de.ownComputedState]++;
|
|
371
371
|
this.testById.set(item.item.extId, de);
|
|
372
372
|
}
|
|
@@ -8,6 +8,7 @@ import { IFileService } from '../../../../platform/files/common/files.js';
|
|
|
8
8
|
import { createDecorator } from '../../../../platform/instantiation/common/instantiation.js';
|
|
9
9
|
import { ILogService } from '../../../../platform/log/common/log.js';
|
|
10
10
|
import { IStorageService } from '../../../../platform/storage/common/storage.js';
|
|
11
|
+
import { IUriIdentityService } from '../../../../platform/uriIdentity/common/uriIdentity.js';
|
|
11
12
|
import { IWorkspaceContextService } from '../../../../platform/workspace/common/workspace.js';
|
|
12
13
|
import { StoredValue } from './storedValue.js';
|
|
13
14
|
import { HydratedTestResult } from './testResult.js';
|
|
@@ -18,8 +19,9 @@ const CLEANUP_PROBABILITY = 0.2;
|
|
|
18
19
|
const ITestResultStorage = ( createDecorator('ITestResultStorage'));
|
|
19
20
|
const currentRevision = 1;
|
|
20
21
|
let BaseTestResultStorage = class BaseTestResultStorage extends Disposable {
|
|
21
|
-
constructor(storageService, logService) {
|
|
22
|
+
constructor(uriIdentityService, storageService, logService) {
|
|
22
23
|
super();
|
|
24
|
+
this.uriIdentityService = uriIdentityService;
|
|
23
25
|
this.storageService = storageService;
|
|
24
26
|
this.logService = logService;
|
|
25
27
|
this.stored = this._register(( new StoredValue({
|
|
@@ -38,7 +40,7 @@ let BaseTestResultStorage = class BaseTestResultStorage extends Disposable {
|
|
|
38
40
|
if (!contents) {
|
|
39
41
|
return undefined;
|
|
40
42
|
}
|
|
41
|
-
return ( new HydratedTestResult(contents));
|
|
43
|
+
return ( new HydratedTestResult(this.uriIdentityService, contents));
|
|
42
44
|
}
|
|
43
45
|
catch (e) {
|
|
44
46
|
this.logService.warn(`Error deserializing stored test result ${id}`, e);
|
|
@@ -83,12 +85,13 @@ let BaseTestResultStorage = class BaseTestResultStorage extends Disposable {
|
|
|
83
85
|
}
|
|
84
86
|
};
|
|
85
87
|
BaseTestResultStorage = ( __decorate([
|
|
86
|
-
( __param(0,
|
|
87
|
-
( __param(1,
|
|
88
|
+
( __param(0, IUriIdentityService)),
|
|
89
|
+
( __param(1, IStorageService)),
|
|
90
|
+
( __param(2, ILogService))
|
|
88
91
|
], BaseTestResultStorage));
|
|
89
92
|
let TestResultStorage = class TestResultStorage extends BaseTestResultStorage {
|
|
90
|
-
constructor(storageService, logService, workspaceContext, fileService, environmentService) {
|
|
91
|
-
super(storageService, logService);
|
|
93
|
+
constructor(uriIdentityService, storageService, logService, workspaceContext, fileService, environmentService) {
|
|
94
|
+
super(uriIdentityService, storageService, logService);
|
|
92
95
|
this.fileService = fileService;
|
|
93
96
|
this.directory = URI.joinPath(environmentService.workspaceStorageHome, workspaceContext.getWorkspace().id, 'testResults');
|
|
94
97
|
}
|
|
@@ -147,10 +150,11 @@ let TestResultStorage = class TestResultStorage extends BaseTestResultStorage {
|
|
|
147
150
|
}
|
|
148
151
|
};
|
|
149
152
|
TestResultStorage = ( __decorate([
|
|
150
|
-
( __param(0,
|
|
151
|
-
( __param(1,
|
|
152
|
-
( __param(2,
|
|
153
|
-
( __param(3,
|
|
154
|
-
( __param(4,
|
|
153
|
+
( __param(0, IUriIdentityService)),
|
|
154
|
+
( __param(1, IStorageService)),
|
|
155
|
+
( __param(2, ILogService)),
|
|
156
|
+
( __param(3, IWorkspaceContextService)),
|
|
157
|
+
( __param(4, IFileService)),
|
|
158
|
+
( __param(5, IEnvironmentService))
|
|
155
159
|
], TestResultStorage));
|
|
156
160
|
export { BaseTestResultStorage, ITestResultStorage, RETAIN_MAX_RESULTS, TestResultStorage };
|
|
@@ -74,4 +74,29 @@ const testsInFile = async function* (testService, ident, uri, waitForIdle = true
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
|
|
77
|
+
const testsUnderUri = async function* (testService, ident, uri, waitForIdle = true) {
|
|
78
|
+
const queue = [testService.collection.rootIds];
|
|
79
|
+
while (queue.length) {
|
|
80
|
+
for (const testId of queue.pop()) {
|
|
81
|
+
const test = testService.collection.getNodeById(testId);
|
|
82
|
+
if (!test) ;
|
|
83
|
+
else if (!test.item.uri) {
|
|
84
|
+
queue.push(( test.children.values()));
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
else if (ident.extUri.isEqualOrParent(uri, test.item.uri)) {
|
|
88
|
+
if (test.expand === 1 ) {
|
|
89
|
+
await testService.collection.expand(test.item.extId, 1);
|
|
90
|
+
}
|
|
91
|
+
if (waitForIdle) {
|
|
92
|
+
await waitForTestToBeIdle(testService, test);
|
|
93
|
+
}
|
|
94
|
+
queue.push(( test.children.values()));
|
|
95
|
+
}
|
|
96
|
+
else if (ident.extUri.isEqualOrParent(test.item.uri, uri)) {
|
|
97
|
+
yield test;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
export { ITestService, expandAndGetTestById, getContextForTestItem, testCollectionIsEmpty, testsInFile, testsUnderUri };
|