@codingame/monaco-vscode-api 4.5.2 → 5.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/api.js +1 -1
- package/extensions.d.ts +2 -3
- package/lifecycle.js +6 -0
- package/localExtensionHost.d.ts +4 -1
- package/missing-services.js +41 -25
- package/package.json +8 -8
- package/service-override/tools/editor.js +31 -8
- package/service-override/tools/views.d.ts +1 -1
- package/service-override/tools/views.js +2 -3
- package/service-override/views.d.ts +0 -1
- package/services.d.ts +3 -3
- package/services.js +3 -3
- package/vscode/src/vs/base/browser/markdownRenderer.js +9 -3
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +2 -2
- package/vscode/src/vs/base/browser/ui/button/button.js +3 -3
- 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 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +2 -2
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +2 -2
- package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.js +2 -2
- package/vscode/src/vs/{platform/hover/browser → base/browser/ui/hover}/hover.d.ts +64 -4
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate2.js +13 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +30 -14
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +15 -2
- package/vscode/src/vs/base/browser/ui/iconLabel/simpleIconLabel.js +2 -2
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.css.js +4 -0
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.js +239 -0
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +2 -2
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +2 -2
- package/vscode/src/vs/base/browser/ui/list/listView.js +5 -3
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +33 -0
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +4 -1
- package/vscode/src/vs/base/browser/ui/menu/menu.js +1 -0
- package/vscode/src/vs/base/browser/ui/menu/menubar.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/progressbar/progressAccessibilitySignal.js +13 -0
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.js +7 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +2 -2
- package/vscode/src/vs/base/browser/ui/table/tableWidget.js +2 -2
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +8 -2
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +11 -4
- package/vscode/src/vs/base/browser/ui/tree/media/tree.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/objectTree.js +6 -4
- package/vscode/src/vs/base/common/arraysFind.js +7 -7
- package/vscode/src/vs/base/common/async.js +8 -3
- package/vscode/src/vs/base/common/cache.js +29 -10
- package/vscode/src/vs/base/common/cancellation.js +6 -1
- package/vscode/src/vs/base/common/codicons.d.ts +3 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +3 -0
- package/vscode/src/vs/base/common/controlFlow.js +48 -0
- package/vscode/src/vs/base/common/equals.js +44 -0
- package/vscode/src/vs/base/common/event.d.ts +11 -1
- package/vscode/src/vs/base/common/event.js +26 -1
- package/vscode/src/vs/base/common/jsonEdit.js +1 -1
- package/vscode/src/vs/base/common/lifecycle.js +1 -1
- package/vscode/src/vs/base/common/map.js +53 -4
- package/vscode/src/vs/base/common/network.js +2 -0
- package/vscode/src/vs/base/common/objects.js +3 -0
- package/vscode/src/vs/base/common/observableInternal/autorun.js +1 -10
- package/vscode/src/vs/base/common/observableInternal/base.js +22 -10
- package/vscode/src/vs/base/common/observableInternal/derived.js +8 -8
- package/vscode/src/vs/base/common/observableInternal/promise.js +19 -1
- package/vscode/src/vs/base/common/observableInternal/utils.js +30 -52
- package/vscode/src/vs/base/common/product.d.ts +1 -0
- package/vscode/src/vs/base/common/strings.js +1 -1
- package/vscode/src/vs/base/common/types.d.ts +5 -1
- package/vscode/src/vs/editor/browser/config/editorConfiguration.js +3 -2
- package/vscode/src/vs/editor/browser/observableUtilities.js +58 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +121 -2
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +80 -0
- package/vscode/src/vs/editor/browser/stableEditorScroll.js +37 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +10 -3
- package/vscode/src/vs/editor/browser/widget/codeEditor/editor.css.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +7 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorSash.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +3 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +3 -10
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +8 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +6 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +1 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +3 -2
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.js +17 -8
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidget.js +1 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +27 -19
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/style.css.js +1 -1
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +4 -4
- package/vscode/src/vs/editor/common/core/lineRange.d.ts +12 -0
- package/vscode/src/vs/editor/common/core/lineRange.js +28 -0
- package/vscode/src/vs/editor/common/core/textEdit.d.ts +21 -0
- package/vscode/src/vs/editor/common/core/textEdit.js +13 -1
- package/vscode/src/vs/editor/common/core/textLength.d.ts +29 -0
- package/vscode/src/vs/editor/common/core/textLength.js +6 -0
- package/vscode/src/vs/editor/common/cursor/cursorCollection.js +3 -3
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +11 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +11 -0
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +34 -3
- package/vscode/src/vs/editor/common/languages.d.ts +50 -10
- package/vscode/src/vs/editor/common/languages.js +11 -1
- package/vscode/src/vs/editor/common/services/languageFeatureDebounce.js +1 -1
- package/vscode/src/vs/editor/common/services/languageFeatures.d.ts +2 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +1 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +11 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +3 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +22 -6
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +5 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +1 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorContributions.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js +20 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +7 -0
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +11 -6
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +10 -10
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverComputer.js +74 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +332 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverStatusBar.js +34 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverTypes.js +39 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.js +355 -0
- package/vscode/src/vs/editor/contrib/hover/browser/getHover.js +11 -14
- package/vscode/src/vs/editor/contrib/hover/browser/hover.css.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +13 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +354 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverContribution.js +42 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverController.js +320 -0
- package/vscode/src/vs/editor/contrib/hover/browser/marginHoverComputer.js +48 -0
- package/vscode/src/vs/editor/contrib/hover/browser/{marginHover.js → marginHoverWidget.js} +14 -48
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +250 -41
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +1 -0
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +44 -20
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +11 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostTextWidget.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +26 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +5 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +24 -22
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsSource.js +39 -70
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/suggestWidgetInlineCompletionProvider.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/hoverParticipant.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +4 -2
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +5 -3
- package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgressWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +18 -6
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +165 -40
- package/vscode/src/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js +5 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +3 -3
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +15 -8
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +13 -6
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +0 -2
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +9 -2
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +23 -18
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +33 -11
- package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +1 -9
- package/vscode/src/vs/platform/accessibility/common/accessibility.js +2 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +15 -9
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +133 -132
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service.d.ts +12 -5
- package/vscode/src/vs/platform/accessibilitySignal/browser/progressAccessibilitySignalScheduler.js +25 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +4 -4
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +10 -7
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +1 -1
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +4 -1
- package/vscode/src/vs/platform/actions/browser/toolbar.js +53 -36
- package/vscode/src/vs/platform/actions/common/actions.d.ts +3 -1
- package/vscode/src/vs/platform/actions/common/actions.js +14 -4
- package/vscode/src/vs/platform/actions/common/menuService.js +30 -8
- package/vscode/src/vs/platform/configuration/common/configuration.js +4 -0
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +43 -32
- package/vscode/src/vs/platform/configuration/common/configurations.js +12 -10
- package/vscode/src/vs/platform/contextview/browser/contextView.d.ts +4 -1
- package/vscode/src/vs/platform/contextview/browser/contextView.service.d.ts +2 -3
- package/vscode/src/vs/platform/contextview/browser/contextViewService.js +10 -8
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +1 -0
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +5 -0
- package/vscode/src/vs/platform/files/common/files.d.ts +14 -1
- package/vscode/src/vs/platform/hover/browser/hover.service.d.ts +2 -31
- package/vscode/src/vs/platform/instantiation/common/instantiation.d.ts +9 -0
- package/vscode/src/vs/platform/instantiation/common/instantiationService.js +42 -8
- package/vscode/src/vs/platform/log/common/log.js +3 -1
- package/vscode/src/vs/platform/markers/common/markerService.js +7 -3
- package/vscode/src/vs/platform/opener/browser/link.js +6 -4
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +2 -2
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +15 -7
- package/vscode/src/vs/platform/telemetry/common/gdprTypings.d.ts +0 -1
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +5 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.d.ts +30 -0
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +6 -0
- package/vscode/src/vs/platform/theme/browser/iconsStyleSheet.js +13 -11
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +28 -28
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostBulkEdits.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +104 -96
- package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +9 -3
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostDocumentSaveParticipant.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +19 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +87 -17
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +39 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocumentSaveParticipant.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +52 -36
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +10 -28
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +132 -136
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +72 -18
- package/vscode/src/vs/workbench/api/common/extHostWindow.js +3 -5
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +86 -76
- package/vscode/src/vs/workbench/browser/actions/media/actions.css.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/widgetNavigationCommands.js +30 -6
- package/vscode/src/vs/workbench/browser/labels.js +4 -1
- package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +3 -1
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +19 -7
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +16 -3
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorquickaccess.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +14 -33
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +33 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +7 -5
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +4 -3
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +2 -1
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +3 -1
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +182 -63
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +14 -3
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +61 -34
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +16 -10
- package/vscode/src/vs/workbench/common/theme.js +144 -98
- package/vscode/src/vs/workbench/common/views.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +190 -138
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +876 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +59 -7
- package/vscode/src/vs/workbench/contrib/accessibility/browser/{accessibilityContributions.js → accessibleViewContributions.js} +160 -6
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +66 -150
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +75 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +21 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +101 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +30 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +201 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +42 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +13 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +366 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +35 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatAgentHover.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/annotations.js +4 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +95 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +11 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +94 -79
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +0 -13
- package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +7 -9
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +1 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +30 -26
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +30 -29
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +5 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +13 -13
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +26 -16
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +107 -26
- package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +23 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +2 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +39 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +53 -33
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +967 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +101 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +4 -1
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +82 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +10 -9
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +79 -45
- package/vscode/src/vs/workbench/contrib/files/browser/{fileCommands.save.js → fileCommands._save.js} +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/{files.configuration.contribution.js → files.contribution._configuration.js} +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/{files.editorPane.contribution.js → files.contribution._editorPane.js} +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +5 -3
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +19 -14
- 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 +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +15 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +29 -112
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatContentWidget.js +10 -7
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +99 -91
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +9 -31
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +345 -104
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +62 -69
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +63 -46
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +18 -10
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatContentWidget.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +1 -31
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +7 -3
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +5 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +2 -48
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +28 -23
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +5 -9
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +112 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +18 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +7 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +4 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +8 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +36 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +9 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +17 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +6 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +5 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +22 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +34 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +15 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +6 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProviderFactory.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +17 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +52 -16
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +3 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +25 -12
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +6 -4
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +0 -2
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +6 -4
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +24 -2
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +38 -8
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +0 -1
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +1 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +7 -14
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +24 -6
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +8 -9
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +2 -20
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +1 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testItemCollection.js +10 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +15 -3
- package/vscode/src/vs/workbench/services/accessibility/common/accessibleViewInformationService.service.d.ts +9 -0
- package/vscode/src/vs/workbench/services/accessibility/common/accessibleViewInformationService.service.js +3 -0
- package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.js +30 -16
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +15 -4
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.d.ts +20 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +0 -1
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +4 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManagers.d.ts +4 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocation.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +8 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +2 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.service.d.ts +4 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +3 -3
- package/vscode/src/vs/workbench/services/language/common/languageService.js +23 -18
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +6 -4
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +50 -9
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.js +1 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/iconSelectBox.js +97 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopy.d.ts +7 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +2 -2
- package/vscode-dts/vscode.proposed.chatParticipant.d.ts +23 -45
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +65 -91
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +9 -0
- package/vscode-dts/vscode.proposed.chatTab.d.ts +1 -5
- package/vscode-dts/vscode.proposed.contribAccessibilityHelpContent.d.ts +15 -0
- package/vscode-dts/vscode.proposed.debugFocus.d.ts +4 -4
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +2 -2
- package/vscode-dts/vscode.proposed.documentPaste.d.ts +144 -43
- package/vscode-dts/vscode.proposed.editorHoverVerbosityLevel.d.ts +76 -0
- package/vscode-dts/vscode.proposed.interactive.d.ts +1 -17
- package/vscode-dts/vscode.proposed.languageModels.d.ts +56 -11
- package/vscode-dts/vscode.proposed.newSymbolNamesProvider.d.ts +12 -1
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +4 -4
- package/vscode-dts/vscode.proposed.speech.d.ts +2 -1
- package/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts +144 -38
- package/vscode-dts/vscode.proposed.testPreserveFocus.d.ts +28 -0
- package/vscode/src/vs/base/browser/ui/hover/updatableHoverWidget.d.ts +0 -21
- package/vscode/src/vs/base/browser/ui/hover/updatableHoverWidget.js +0 -214
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.d.ts +0 -32
- package/vscode/src/vs/editor/contrib/hover/browser/contentHover.js +0 -838
- package/vscode/src/vs/editor/contrib/hover/browser/hover.js +0 -621
- package/vscode/src/vs/platform/accessibility/common/accessibility.service.d.ts +0 -19
- package/vscode/src/vs/workbench/api/common/extHostChat.js +0 -54
- package/vscode/src/vs/workbench/api/common/extHostIssueReporter.js +0 -70
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignal.contribution.js +0 -237
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalDebuggerContribution.js +0 -49
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalLineFeatureContribution.js +0 -178
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/commands.js +0 -141
- package/vscode/src/vs/workbench/contrib/chat/common/chatContributionService.service.js +0 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatFileCreationWidget.js +0 -212
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.js +0 -95
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +0 -110
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js +0 -224
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +0 -48
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEvents.js +0 -47
- package/vscode-dts/vscode.proposed.dropMetadata.d.ts +0 -65
- package/vscode-dts/vscode.proposed.handleIssueUri.d.ts +0 -57
- package/vscode-dts/vscode.proposed.windowActivity.d.ts +0 -17
- /package/vscode/src/vs/workbench/browser/parts/editor/{editor.autosave.contribution.js → editor.contribution._autosave.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/files/browser/{files.fileEditorFactory.contribution.js → files.contribution._fileEditorFactory.js} +0 -0
|
@@ -6,19 +6,21 @@ import { equals } from '../../../base/common/objects.js';
|
|
|
6
6
|
import { isEmptyObject } from '../../../base/common/types.js';
|
|
7
7
|
import { ConfigurationModel } from './configurationModels.js';
|
|
8
8
|
import { Extensions } from './configurationRegistry.js';
|
|
9
|
+
import { NullLogService } from '../../log/common/log.js';
|
|
9
10
|
import { ILogService } from '../../log/common/log.service.js';
|
|
10
11
|
import { IPolicyService } from '../../policy/common/policy.service.js';
|
|
11
12
|
import { Registry } from '../../registry/common/platform.js';
|
|
12
13
|
let DefaultConfiguration$1 = class DefaultConfiguration extends Disposable {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
this._onDidChangeConfiguration = this._register(( new Emitter()));
|
|
16
|
-
this.onDidChangeConfiguration = this._onDidChangeConfiguration.event;
|
|
17
|
-
this._configurationModel = ( new ConfigurationModel());
|
|
18
|
-
}
|
|
19
14
|
get configurationModel() {
|
|
20
15
|
return this._configurationModel;
|
|
21
16
|
}
|
|
17
|
+
constructor(logService) {
|
|
18
|
+
super();
|
|
19
|
+
this.logService = logService;
|
|
20
|
+
this._onDidChangeConfiguration = this._register(( new Emitter()));
|
|
21
|
+
this.onDidChangeConfiguration = this._onDidChangeConfiguration.event;
|
|
22
|
+
this._configurationModel = ConfigurationModel.createEmptyModel(this.logService);
|
|
23
|
+
}
|
|
22
24
|
async initialize() {
|
|
23
25
|
this.resetConfigurationModel();
|
|
24
26
|
this._register(( Registry.as(Extensions.Configuration)).onDidUpdateConfiguration(({ properties, defaultsOverrides }) => this.onDidUpdateConfiguration(Array.from(properties), defaultsOverrides)));
|
|
@@ -36,7 +38,7 @@ let DefaultConfiguration$1 = class DefaultConfiguration extends Disposable {
|
|
|
36
38
|
return {};
|
|
37
39
|
}
|
|
38
40
|
resetConfigurationModel() {
|
|
39
|
-
this._configurationModel =
|
|
41
|
+
this._configurationModel = ConfigurationModel.createEmptyModel(this.logService);
|
|
40
42
|
const properties = ( Registry.as(Extensions.Configuration)).getConfigurationProperties();
|
|
41
43
|
this.updateConfigurationModel(( Object.keys(properties)), properties);
|
|
42
44
|
}
|
|
@@ -60,7 +62,7 @@ let DefaultConfiguration$1 = class DefaultConfiguration extends Disposable {
|
|
|
60
62
|
class NullPolicyConfiguration {
|
|
61
63
|
constructor() {
|
|
62
64
|
this.onDidChangeConfiguration = Event.None;
|
|
63
|
-
this.configurationModel = ( new
|
|
65
|
+
this.configurationModel = ConfigurationModel.createEmptyModel(( new NullLogService()));
|
|
64
66
|
}
|
|
65
67
|
async initialize() { return this.configurationModel; }
|
|
66
68
|
}
|
|
@@ -73,7 +75,7 @@ let PolicyConfiguration = class PolicyConfiguration extends Disposable {
|
|
|
73
75
|
this.logService = logService;
|
|
74
76
|
this._onDidChangeConfiguration = this._register(( new Emitter()));
|
|
75
77
|
this.onDidChangeConfiguration = this._onDidChangeConfiguration.event;
|
|
76
|
-
this._configurationModel =
|
|
78
|
+
this._configurationModel = ConfigurationModel.createEmptyModel(this.logService);
|
|
77
79
|
}
|
|
78
80
|
async initialize() {
|
|
79
81
|
this.logService.trace('PolicyConfiguration#initialize');
|
|
@@ -135,7 +137,7 @@ let PolicyConfiguration = class PolicyConfiguration extends Disposable {
|
|
|
135
137
|
if (changed.length) {
|
|
136
138
|
this.logService.trace('PolicyConfiguration#changed', changed);
|
|
137
139
|
const old = this._configurationModel;
|
|
138
|
-
this._configurationModel =
|
|
140
|
+
this._configurationModel = ConfigurationModel.createEmptyModel(this.logService);
|
|
139
141
|
for (const key of old.keys) {
|
|
140
142
|
this._configurationModel.setValue(key, old.getValue(key));
|
|
141
143
|
}
|
|
@@ -23,6 +23,9 @@ interface IContextViewDelegate {
|
|
|
23
23
|
anchorAxisAlignment?: AnchorAxisAlignment;
|
|
24
24
|
layer?: number;
|
|
25
25
|
}
|
|
26
|
+
interface IOpenContextView {
|
|
27
|
+
close: () => void;
|
|
28
|
+
}
|
|
26
29
|
type IContextMenuMenuDelegate = {
|
|
27
30
|
/**
|
|
28
31
|
* The MenuId that should be used to populate the context menu.
|
|
@@ -42,4 +45,4 @@ type IContextMenuMenuDelegate = {
|
|
|
42
45
|
getActions?(): IAction[];
|
|
43
46
|
} & Omit<IContextMenuDelegate, 'getActions'>;
|
|
44
47
|
|
|
45
|
-
export type { IContextMenuMenuDelegate, IContextViewDelegate };
|
|
48
|
+
export type { IContextMenuMenuDelegate, IContextViewDelegate, IOpenContextView };
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { ServiceIdentifier } from '../../instantiation/common/instantiation.js';
|
|
2
2
|
import { IContextViewProvider, AnchorAlignment } from '../../../base/browser/ui/contextview/contextview.js';
|
|
3
|
-
import {
|
|
4
|
-
import { IContextMenuMenuDelegate, IContextViewDelegate } from './contextView.js';
|
|
3
|
+
import { IContextMenuMenuDelegate, IContextViewDelegate, IOpenContextView } from './contextView.js';
|
|
5
4
|
import { IContextMenuDelegate } from '../../../base/browser/contextmenu.js';
|
|
6
5
|
import { Event } from '../../../base/common/event.js';
|
|
7
6
|
|
|
8
7
|
declare const IContextViewService: ServiceIdentifier<IContextViewService>;
|
|
9
8
|
interface IContextViewService extends IContextViewProvider {
|
|
10
9
|
readonly _serviceBrand: undefined;
|
|
11
|
-
showContextView(delegate: IContextViewDelegate, container?: HTMLElement, shadowRoot?: boolean):
|
|
10
|
+
showContextView(delegate: IContextViewDelegate, container?: HTMLElement, shadowRoot?: boolean): IOpenContextView;
|
|
12
11
|
hideContextView(data?: any): void;
|
|
13
12
|
getContextViewElement(): HTMLElement;
|
|
14
13
|
layout(): void;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { ContextView } from '../../../base/browser/ui/contextview/contextview.js';
|
|
3
|
-
import { Disposable
|
|
3
|
+
import { Disposable } from '../../../base/common/lifecycle.js';
|
|
4
4
|
import { ILayoutService } from '../../layout/browser/layoutService.service.js';
|
|
5
5
|
import { getWindow } from '../../../base/browser/dom.js';
|
|
6
6
|
let ContextViewHandler = class ContextViewHandler extends Disposable {
|
|
7
7
|
constructor(layoutService) {
|
|
8
8
|
super();
|
|
9
9
|
this.layoutService = layoutService;
|
|
10
|
-
this.currentViewDisposable = this._register(( new MutableDisposable()));
|
|
11
10
|
this.contextView = this._register(( new ContextView(this.layoutService.mainContainer, 1 )));
|
|
12
11
|
this.layout();
|
|
13
12
|
this._register(layoutService.onDidLayoutContainer(() => this.layout()));
|
|
@@ -30,19 +29,22 @@ let ContextViewHandler = class ContextViewHandler extends Disposable {
|
|
|
30
29
|
}
|
|
31
30
|
this.contextView.setContainer(container ?? this.layoutService.activeContainer, domPosition);
|
|
32
31
|
this.contextView.show(delegate);
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
this.
|
|
32
|
+
const openContextView = {
|
|
33
|
+
close: () => {
|
|
34
|
+
if (this.openContextView === openContextView) {
|
|
35
|
+
this.hideContextView();
|
|
36
|
+
}
|
|
36
37
|
}
|
|
37
|
-
}
|
|
38
|
-
this.
|
|
39
|
-
return
|
|
38
|
+
};
|
|
39
|
+
this.openContextView = openContextView;
|
|
40
|
+
return openContextView;
|
|
40
41
|
}
|
|
41
42
|
layout() {
|
|
42
43
|
this.contextView.layout();
|
|
43
44
|
}
|
|
44
45
|
hideContextView(data) {
|
|
45
46
|
this.contextView.hide(data);
|
|
47
|
+
this.openContextView = undefined;
|
|
46
48
|
}
|
|
47
49
|
};
|
|
48
50
|
ContextViewHandler = ( __decorate([
|
|
@@ -94,7 +94,6 @@ interface ILocalExtension extends IExtension {
|
|
|
94
94
|
isMachineScoped: boolean;
|
|
95
95
|
isApplicationScoped: boolean;
|
|
96
96
|
publisherId: string | null;
|
|
97
|
-
publisherDisplayName: string | null;
|
|
98
97
|
installedTimestamp?: number;
|
|
99
98
|
isPreReleaseVersion: boolean;
|
|
100
99
|
hasPreReleaseVersion: boolean;
|
|
@@ -127,6 +127,7 @@ var ExtensionManagementErrorCode;
|
|
|
127
127
|
ExtensionManagementErrorCode["Signature"] = "Signature";
|
|
128
128
|
ExtensionManagementErrorCode["NotAllowed"] = "NotAllowed";
|
|
129
129
|
ExtensionManagementErrorCode["Gallery"] = "Gallery";
|
|
130
|
+
ExtensionManagementErrorCode["Cancelled"] = "Cancelled";
|
|
130
131
|
ExtensionManagementErrorCode["Unknown"] = "Unknown";
|
|
131
132
|
ExtensionManagementErrorCode["Internal"] = "Internal";
|
|
132
133
|
})(ExtensionManagementErrorCode || (ExtensionManagementErrorCode = {}))));
|
|
@@ -736,6 +736,7 @@ let ExtensionsScanner = class ExtensionsScanner extends ExtensionManifestTransla
|
|
|
736
736
|
location: input.location,
|
|
737
737
|
isBuiltin,
|
|
738
738
|
targetPlatform: metadata?.targetPlatform ?? "undefined" ,
|
|
739
|
+
publisherDisplayName: metadata?.publisherDisplayName,
|
|
739
740
|
metadata,
|
|
740
741
|
isValid: true,
|
|
741
742
|
validations: []
|
|
@@ -1110,6 +1110,9 @@ interface IExtensionContributions {
|
|
|
1110
1110
|
*/
|
|
1111
1111
|
readonly notebookRenderer?: INotebookRendererContribution[];
|
|
1112
1112
|
readonly debugVisualizers?: IDebugVisualizationContribution[];
|
|
1113
|
+
readonly chatParticipants?: ReadonlyArray<{
|
|
1114
|
+
id: string;
|
|
1115
|
+
}>;
|
|
1113
1116
|
/**
|
|
1114
1117
|
* Contributes notebook preloads.
|
|
1115
1118
|
*/
|
|
@@ -1256,6 +1259,7 @@ interface IExtension {
|
|
|
1256
1259
|
readonly manifest: IExtensionManifest;
|
|
1257
1260
|
readonly location: URI;
|
|
1258
1261
|
readonly targetPlatform: TargetPlatform;
|
|
1262
|
+
readonly publisherDisplayName?: string;
|
|
1259
1263
|
readonly readmeUrl?: URI;
|
|
1260
1264
|
readonly changelogUrl?: URI;
|
|
1261
1265
|
readonly isValid: boolean;
|
|
@@ -1306,6 +1310,7 @@ interface IRelaxedExtensionDescription extends IRelaxedExtensionManifest {
|
|
|
1306
1310
|
id?: string;
|
|
1307
1311
|
identifier: ExtensionIdentifier;
|
|
1308
1312
|
uuid?: string;
|
|
1313
|
+
publisherDisplayName?: string;
|
|
1309
1314
|
targetPlatform: TargetPlatform;
|
|
1310
1315
|
isBuiltin: boolean;
|
|
1311
1316
|
isUserBuiltin: boolean;
|
|
@@ -217,6 +217,14 @@ interface IWatchOptionsWithoutCorrelation {
|
|
|
217
217
|
* always matched relative to the watched folder.
|
|
218
218
|
*/
|
|
219
219
|
includes?: Array<string | IRelativePattern>;
|
|
220
|
+
/**
|
|
221
|
+
* If provided, allows to filter the events that the watcher should consider
|
|
222
|
+
* for emitting. If not provided, all events are emitted.
|
|
223
|
+
*
|
|
224
|
+
* For example, to emit added and updated events, set to:
|
|
225
|
+
* `FileChangeFilter.ADDED | FileChangeFilter.UPDATED`.
|
|
226
|
+
*/
|
|
227
|
+
filter?: FileChangeFilter;
|
|
220
228
|
}
|
|
221
229
|
interface IWatchOptions extends IWatchOptionsWithoutCorrelation {
|
|
222
230
|
/**
|
|
@@ -226,6 +234,11 @@ interface IWatchOptions extends IWatchOptionsWithoutCorrelation {
|
|
|
226
234
|
*/
|
|
227
235
|
readonly correlationId?: number;
|
|
228
236
|
}
|
|
237
|
+
declare const enum FileChangeFilter {
|
|
238
|
+
UPDATED = 2,
|
|
239
|
+
ADDED = 4,
|
|
240
|
+
DELETED = 8
|
|
241
|
+
}
|
|
229
242
|
interface IFileSystemWatcher extends IDisposable {
|
|
230
243
|
/**
|
|
231
244
|
* An event which fires on file/folder change only for changes
|
|
@@ -679,4 +692,4 @@ interface ICreateFileOptions {
|
|
|
679
692
|
readonly overwrite?: boolean;
|
|
680
693
|
}
|
|
681
694
|
|
|
682
|
-
export { FileChangeType, FileChangesEvent, FileOperation, FileOperationEvent, FilePermission, FileSystemProviderCapabilities, FileSystemProviderError, FileSystemProviderErrorCode, FileType, type IBaseFileStat, type IBaseFileStatWithMetadata, type IBaseReadFileOptions, type ICreateFileOptions, type IFileAtomicDeleteOptions, type IFileAtomicOptions, type IFileAtomicReadOptions, type IFileAtomicWriteOptions, type IFileChange, type IFileContent, type IFileDeleteOptions, type IFileOpenForReadOptions, type IFileOpenForWriteOptions, type IFileOpenOptions, type IFileOperationEvent, type IFileOperationEventWithMetadata, type IFileOverwriteOptions, type IFileReadLimits, type IFileReadStreamOptions, type IFileStat, type IFileStatResult, type IFileStatWithMetadata, type IFileStatWithPartialMetadata, type IFileStreamContent, type IFileSystemProvider, type IFileSystemProviderActivationEvent, type IFileSystemProviderCapabilitiesChangeEvent, type IFileSystemProviderError, type IFileSystemProviderRegistrationEvent, type IFileSystemProviderWithFileAtomicDeleteCapability, type IFileSystemProviderWithFileAtomicReadCapability, type IFileSystemProviderWithFileAtomicWriteCapability, type IFileSystemProviderWithFileReadStreamCapability, type IFileSystemProviderWithFileReadWriteCapability, type IFileSystemProviderWithOpenReadWriteCloseCapability, type IFileSystemWatcher, type IFileUnlockOptions, type IFileWriteOptions, type IReadFileOptions, type IReadFileStreamOptions, type IResolveFileOptions, type IResolveMetadataFileOptions, type IStat, type IWatchOptions, type IWatchOptionsWithoutCorrelation, type IWriteFileOptions };
|
|
695
|
+
export { FileChangeFilter, FileChangeType, FileChangesEvent, FileOperation, FileOperationEvent, FilePermission, FileSystemProviderCapabilities, FileSystemProviderError, FileSystemProviderErrorCode, FileType, type IBaseFileStat, type IBaseFileStatWithMetadata, type IBaseReadFileOptions, type ICreateFileOptions, type IFileAtomicDeleteOptions, type IFileAtomicOptions, type IFileAtomicReadOptions, type IFileAtomicWriteOptions, type IFileChange, type IFileContent, type IFileDeleteOptions, type IFileOpenForReadOptions, type IFileOpenForWriteOptions, type IFileOpenOptions, type IFileOperationEvent, type IFileOperationEventWithMetadata, type IFileOverwriteOptions, type IFileReadLimits, type IFileReadStreamOptions, type IFileStat, type IFileStatResult, type IFileStatWithMetadata, type IFileStatWithPartialMetadata, type IFileStreamContent, type IFileSystemProvider, type IFileSystemProviderActivationEvent, type IFileSystemProviderCapabilitiesChangeEvent, type IFileSystemProviderError, type IFileSystemProviderRegistrationEvent, type IFileSystemProviderWithFileAtomicDeleteCapability, type IFileSystemProviderWithFileAtomicReadCapability, type IFileSystemProviderWithFileAtomicWriteCapability, type IFileSystemProviderWithFileReadStreamCapability, type IFileSystemProviderWithFileReadWriteCapability, type IFileSystemProviderWithOpenReadWriteCloseCapability, type IFileSystemWatcher, type IFileUnlockOptions, type IFileWriteOptions, type IReadFileOptions, type IReadFileStreamOptions, type IResolveFileOptions, type IResolveMetadataFileOptions, type IStat, type IWatchOptions, type IWatchOptionsWithoutCorrelation, type IWriteFileOptions };
|
|
@@ -1,38 +1,9 @@
|
|
|
1
1
|
import { ServiceIdentifier } from '../../instantiation/common/instantiation.js';
|
|
2
|
-
import {
|
|
3
|
-
import { IHoverOptions } from './hover.js';
|
|
2
|
+
import { IHoverDelegate2 } from '../../../base/browser/ui/hover/hover.js';
|
|
4
3
|
|
|
5
4
|
declare const IHoverService: ServiceIdentifier<IHoverService>;
|
|
6
|
-
|
|
7
|
-
* Enables the convenient display of rich markdown-based hovers in the workbench.
|
|
8
|
-
*/
|
|
9
|
-
interface IHoverService {
|
|
5
|
+
interface IHoverService extends IHoverDelegate2 {
|
|
10
6
|
readonly _serviceBrand: undefined;
|
|
11
|
-
/**
|
|
12
|
-
* Shows a hover, provided a hover with the same options object is not already visible.
|
|
13
|
-
* @param options A set of options defining the characteristics of the hover.
|
|
14
|
-
* @param focus Whether to focus the hover (useful for keyboard accessibility).
|
|
15
|
-
*
|
|
16
|
-
* **Example:** A simple usage with a single element target.
|
|
17
|
-
*
|
|
18
|
-
* ```typescript
|
|
19
|
-
* showHover({
|
|
20
|
-
* text: new MarkdownString('Hello world'),
|
|
21
|
-
* target: someElement
|
|
22
|
-
* });
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
showHover(options: IHoverOptions, focus?: boolean): IHoverWidget | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Hides the hover if it was visible. This call will be ignored if the the hover is currently
|
|
28
|
-
* "locked" via the alt/option key.
|
|
29
|
-
*/
|
|
30
|
-
hideHover(): void;
|
|
31
|
-
/**
|
|
32
|
-
* This should only be used until we have the ability to show multiple context views
|
|
33
|
-
* simultaneously. #188822
|
|
34
|
-
*/
|
|
35
|
-
showAndFocusLastHover(): void;
|
|
36
7
|
}
|
|
37
8
|
|
|
38
9
|
export { IHoverService };
|
|
@@ -32,6 +32,15 @@ interface IInstantiationService {
|
|
|
32
32
|
* and adds/overwrites the given services.
|
|
33
33
|
*/
|
|
34
34
|
createChild(services: ServiceCollection): IInstantiationService;
|
|
35
|
+
/**
|
|
36
|
+
* Disposes this instantiation service.
|
|
37
|
+
*
|
|
38
|
+
* - Will dispose all services that this instantiation service has created.
|
|
39
|
+
* - Will dispose all its children but not its parent.
|
|
40
|
+
* - Will NOT dispose services-instances that this service has been created with
|
|
41
|
+
* - Will NOT dispose consumer-instances this service has created
|
|
42
|
+
*/
|
|
43
|
+
dispose(): void;
|
|
35
44
|
}
|
|
36
45
|
/**
|
|
37
46
|
* Identifies a service of type `T`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GlobalIdleValue } from '../../../base/common/async.js';
|
|
2
2
|
import { illegalState } from '../../../base/common/errors.js';
|
|
3
|
-
import { toDisposable } from '../../../base/common/lifecycle.js';
|
|
3
|
+
import { dispose, isDisposable, toDisposable } from '../../../base/common/lifecycle.js';
|
|
4
4
|
import { SyncDescriptor } from './descriptors.js';
|
|
5
5
|
import { Graph } from './graph.js';
|
|
6
6
|
import { IInstantiationService, _util } from './instantiation.js';
|
|
@@ -19,14 +19,44 @@ class InstantiationService {
|
|
|
19
19
|
this._strict = _strict;
|
|
20
20
|
this._parent = _parent;
|
|
21
21
|
this._enableTracing = _enableTracing;
|
|
22
|
+
this._isDisposed = false;
|
|
23
|
+
this._servicesToMaybeDispose = ( new Set());
|
|
24
|
+
this._children = ( new Set());
|
|
22
25
|
this._activeInstantiations = ( new Set());
|
|
23
26
|
this._services.set(IInstantiationService, this);
|
|
24
27
|
this._globalGraph = _enableTracing ? _parent?._globalGraph ?? ( new Graph(e => e)) : undefined;
|
|
25
28
|
}
|
|
29
|
+
dispose() {
|
|
30
|
+
if (!this._isDisposed) {
|
|
31
|
+
this._isDisposed = true;
|
|
32
|
+
dispose(this._children);
|
|
33
|
+
this._children.clear();
|
|
34
|
+
for (const candidate of this._servicesToMaybeDispose) {
|
|
35
|
+
if (isDisposable(candidate)) {
|
|
36
|
+
candidate.dispose();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
this._servicesToMaybeDispose.clear();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
_throwIfDisposed() {
|
|
43
|
+
if (this._isDisposed) {
|
|
44
|
+
throw ( new Error('InstantiationService has been disposed'));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
26
47
|
createChild(services) {
|
|
27
|
-
|
|
48
|
+
this._throwIfDisposed();
|
|
49
|
+
const result = new (class extends InstantiationService {
|
|
50
|
+
dispose() {
|
|
51
|
+
this._children.delete(result);
|
|
52
|
+
super.dispose();
|
|
53
|
+
}
|
|
54
|
+
})(services, this._strict, this, this._enableTracing);
|
|
55
|
+
this._children.add(result);
|
|
56
|
+
return result;
|
|
28
57
|
}
|
|
29
58
|
invokeFunction(fn, ...args) {
|
|
59
|
+
this._throwIfDisposed();
|
|
30
60
|
const _trace = Trace.traceInvocation(this._enableTracing, fn);
|
|
31
61
|
let _done = false;
|
|
32
62
|
try {
|
|
@@ -50,6 +80,7 @@ class InstantiationService {
|
|
|
50
80
|
}
|
|
51
81
|
}
|
|
52
82
|
createInstance(ctorOrDescriptor, ...rest) {
|
|
83
|
+
this._throwIfDisposed();
|
|
53
84
|
let _trace;
|
|
54
85
|
let result;
|
|
55
86
|
if (ctorOrDescriptor instanceof SyncDescriptor) {
|
|
@@ -86,12 +117,12 @@ class InstantiationService {
|
|
|
86
117
|
}
|
|
87
118
|
return Reflect.construct(ctor, args.concat(serviceArgs));
|
|
88
119
|
}
|
|
89
|
-
|
|
120
|
+
_setCreatedServiceInstance(id, instance) {
|
|
90
121
|
if (this._services.get(id) instanceof SyncDescriptor) {
|
|
91
122
|
this._services.set(id, instance);
|
|
92
123
|
}
|
|
93
124
|
else if (this._parent) {
|
|
94
|
-
this._parent.
|
|
125
|
+
this._parent._setCreatedServiceInstance(id, instance);
|
|
95
126
|
}
|
|
96
127
|
else {
|
|
97
128
|
throw ( new Error('illegalState - setting UNKNOWN service instance'));
|
|
@@ -168,7 +199,7 @@ class InstantiationService {
|
|
|
168
199
|
const instanceOrDesc = this._getServiceInstanceOrDescriptor(data.id);
|
|
169
200
|
if (instanceOrDesc instanceof SyncDescriptor) {
|
|
170
201
|
const instance = this._createServiceInstanceWithOwner(data.id, data.desc.ctor, data.desc.staticArguments, data.desc.supportsDelayedInstantiation, data._trace);
|
|
171
|
-
this.
|
|
202
|
+
this._setCreatedServiceInstance(data.id, instance);
|
|
172
203
|
}
|
|
173
204
|
graph.removeNode(data);
|
|
174
205
|
}
|
|
@@ -177,7 +208,7 @@ class InstantiationService {
|
|
|
177
208
|
}
|
|
178
209
|
_createServiceInstanceWithOwner(id, ctor, args = [], supportsDelayedInstantiation, _trace) {
|
|
179
210
|
if (this._services.get(id) instanceof SyncDescriptor) {
|
|
180
|
-
return this._createServiceInstance(id, ctor, args, supportsDelayedInstantiation, _trace);
|
|
211
|
+
return this._createServiceInstance(id, ctor, args, supportsDelayedInstantiation, _trace, this._servicesToMaybeDispose);
|
|
181
212
|
}
|
|
182
213
|
else if (this._parent) {
|
|
183
214
|
return this._parent._createServiceInstanceWithOwner(id, ctor, args, supportsDelayedInstantiation, _trace);
|
|
@@ -186,9 +217,11 @@ class InstantiationService {
|
|
|
186
217
|
throw ( new Error(`illegalState - creating UNKNOWN service instance ${ctor.name}`));
|
|
187
218
|
}
|
|
188
219
|
}
|
|
189
|
-
_createServiceInstance(id, ctor, args = [], supportsDelayedInstantiation, _trace) {
|
|
220
|
+
_createServiceInstance(id, ctor, args = [], supportsDelayedInstantiation, _trace, disposeBucket) {
|
|
190
221
|
if (!supportsDelayedInstantiation) {
|
|
191
|
-
|
|
222
|
+
const result = this._createInstance(ctor, args, _trace);
|
|
223
|
+
disposeBucket.add(result);
|
|
224
|
+
return result;
|
|
192
225
|
}
|
|
193
226
|
else {
|
|
194
227
|
const child = ( new InstantiationService(undefined, this._strict, this, this._enableTracing));
|
|
@@ -205,6 +238,7 @@ class InstantiationService {
|
|
|
205
238
|
}
|
|
206
239
|
}
|
|
207
240
|
earlyListeners.clear();
|
|
241
|
+
disposeBucket.add(result);
|
|
208
242
|
return result;
|
|
209
243
|
}));
|
|
210
244
|
return ( new Proxy(Object.create(null), {
|
|
@@ -367,6 +367,8 @@ class NullLogger {
|
|
|
367
367
|
dispose() { }
|
|
368
368
|
flush() { }
|
|
369
369
|
}
|
|
370
|
+
class NullLogService extends NullLogger {
|
|
371
|
+
}
|
|
370
372
|
function getLogLevel(environmentService) {
|
|
371
373
|
if (environmentService.verbose) {
|
|
372
374
|
return LogLevel.Trace;
|
|
@@ -419,4 +421,4 @@ function parseLogLevel(logLevel) {
|
|
|
419
421
|
return undefined;
|
|
420
422
|
}
|
|
421
423
|
const CONTEXT_LOG_LEVEL = ( (new RawContextKey('logLevel', LogLevelToString(LogLevel.Info))));
|
|
422
|
-
export { AbstractLogger, AbstractLoggerService, AbstractMessageLogger, CONTEXT_LOG_LEVEL, ConsoleLogger, DEFAULT_LOG_LEVEL, LogLevel, LogLevelToLocalizedString, LogLevelToString, MultiplexLogger, NullLogger, getLogLevel, isLogLevel, log, parseLogLevel };
|
|
424
|
+
export { AbstractLogger, AbstractLoggerService, AbstractMessageLogger, CONTEXT_LOG_LEVEL, ConsoleLogger, DEFAULT_LOG_LEVEL, LogLevel, LogLevelToLocalizedString, LogLevelToString, MultiplexLogger, NullLogService, NullLogger, getLogLevel, isLogLevel, log, parseLogLevel };
|
|
@@ -5,9 +5,13 @@ import { ResourceMap } from '../../../base/common/map.js';
|
|
|
5
5
|
import { Schemas } from '../../../base/common/network.js';
|
|
6
6
|
import { URI } from '../../../base/common/uri.js';
|
|
7
7
|
import { MarkerSeverity } from './markers.js';
|
|
8
|
-
const unsupportedSchemas = ( new Set(
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
const unsupportedSchemas = ( new Set([
|
|
9
|
+
Schemas.inMemory,
|
|
10
|
+
Schemas.vscodeSourceControl,
|
|
11
|
+
Schemas.walkThrough,
|
|
12
|
+
Schemas.walkThroughSnippet,
|
|
13
|
+
Schemas.vscodeChatCodeBlock,
|
|
14
|
+
]));
|
|
11
15
|
class DoubleResourceMap {
|
|
12
16
|
constructor() {
|
|
13
17
|
this._byResource = ( new ResourceMap());
|
|
@@ -7,8 +7,8 @@ import { Event } from '../../../base/common/event.js';
|
|
|
7
7
|
import { Disposable } from '../../../base/common/lifecycle.js';
|
|
8
8
|
import { IOpenerService } from '../common/opener.service.js';
|
|
9
9
|
import './link.css.js';
|
|
10
|
-
import { setupCustomHover } from '../../../base/browser/ui/hover/updatableHoverWidget.js';
|
|
11
10
|
import { getDefaultHoverDelegate } from '../../../base/browser/ui/hover/hoverDelegateFactory.js';
|
|
11
|
+
import { IHoverService } from '../../hover/browser/hover.service.js';
|
|
12
12
|
let Link = class Link extends Disposable {
|
|
13
13
|
get enabled() {
|
|
14
14
|
return this._enabled;
|
|
@@ -47,9 +47,10 @@ let Link = class Link extends Disposable {
|
|
|
47
47
|
this.setTooltip(link.title);
|
|
48
48
|
this._link = link;
|
|
49
49
|
}
|
|
50
|
-
constructor(container, _link, options = {}, openerService) {
|
|
50
|
+
constructor(container, _link, options = {}, _hoverService, openerService) {
|
|
51
51
|
super();
|
|
52
52
|
this._link = _link;
|
|
53
|
+
this._hoverService = _hoverService;
|
|
53
54
|
this._enabled = true;
|
|
54
55
|
this.el = append(container, $('a.monaco-link', {
|
|
55
56
|
tabIndex: _link.tabIndex ?? 0,
|
|
@@ -84,7 +85,7 @@ let Link = class Link extends Disposable {
|
|
|
84
85
|
this.el.title = title ?? '';
|
|
85
86
|
}
|
|
86
87
|
else if (!this.hover && title) {
|
|
87
|
-
this.hover = this._register(
|
|
88
|
+
this.hover = this._register(this._hoverService.setupUpdatableHover(this.hoverDelegate, this.el, title));
|
|
88
89
|
}
|
|
89
90
|
else if (this.hover) {
|
|
90
91
|
this.hover.update(title);
|
|
@@ -92,6 +93,7 @@ let Link = class Link extends Disposable {
|
|
|
92
93
|
}
|
|
93
94
|
};
|
|
94
95
|
Link = ( __decorate([
|
|
95
|
-
( __param(3,
|
|
96
|
+
( __param(3, IHoverService)),
|
|
97
|
+
( __param(4, IOpenerService))
|
|
96
98
|
], Link));
|
|
97
99
|
export { Link };
|
|
@@ -575,7 +575,7 @@ class QuickPick extends QuickInput {
|
|
|
575
575
|
this.visibleDisposables.add((this._hideInput ? this.ui.list : this.ui.inputBox).onKeyDown((event) => {
|
|
576
576
|
switch (event.keyCode) {
|
|
577
577
|
case 18 :
|
|
578
|
-
if (isMacintosh ? event.metaKey : event.altKey) {
|
|
578
|
+
if (this.quickNavigate === undefined && (isMacintosh ? event.metaKey : event.altKey)) {
|
|
579
579
|
this.ui.list.focus(QuickInputListFocus.NextSeparator);
|
|
580
580
|
}
|
|
581
581
|
else {
|
|
@@ -587,7 +587,7 @@ class QuickPick extends QuickInput {
|
|
|
587
587
|
EventHelper.stop(event, true);
|
|
588
588
|
break;
|
|
589
589
|
case 16 :
|
|
590
|
-
if (isMacintosh ? event.metaKey : event.altKey) {
|
|
590
|
+
if (this.quickNavigate === undefined && (isMacintosh ? event.metaKey : event.altKey)) {
|
|
591
591
|
this.ui.list.focus(QuickInputListFocus.PreviousSeparator);
|
|
592
592
|
}
|
|
593
593
|
else {
|
|
@@ -205,8 +205,8 @@ class QuickInputAccessibilityProvider {
|
|
|
205
205
|
return undefined;
|
|
206
206
|
}
|
|
207
207
|
return {
|
|
208
|
-
value
|
|
209
|
-
onDidChange: element.onChecked
|
|
208
|
+
get value() { return element.checked; },
|
|
209
|
+
onDidChange: e => element.onChecked(() => e()),
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
212
|
}
|
|
@@ -537,11 +537,19 @@ let QuickInputTree = class QuickInputTree extends Disposable {
|
|
|
537
537
|
allowNonCollapsibleParents: true,
|
|
538
538
|
identityProvider: {
|
|
539
539
|
getId: element => {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
540
|
+
const mainItem = element.item || element.separator;
|
|
541
|
+
if (mainItem === undefined) {
|
|
542
|
+
return '';
|
|
543
|
+
}
|
|
544
|
+
if (mainItem.id !== undefined) {
|
|
545
|
+
return mainItem.id;
|
|
546
|
+
}
|
|
547
|
+
let id = `label:${mainItem.label}`;
|
|
548
|
+
id += `$$description:${mainItem.description}`;
|
|
549
|
+
if (mainItem.type !== 'separator') {
|
|
550
|
+
id += `$$detail:${mainItem.detail}`;
|
|
551
|
+
}
|
|
552
|
+
return id;
|
|
545
553
|
},
|
|
546
554
|
},
|
|
547
555
|
alwaysConsumeMouseWheel: true
|
|
@@ -110,6 +110,7 @@ function removePropertiesWithPossibleUserInfo(property) {
|
|
|
110
110
|
{ label: 'Slack Token', regex: /xox[pbar]\-[A-Za-z0-9]/ },
|
|
111
111
|
{ label: 'GitHub Token', regex: /(gh[psuro]_[a-zA-Z0-9]{36}|github_pat_[a-zA-Z0-9]{22}_[a-zA-Z0-9]{59})/ },
|
|
112
112
|
{ label: 'Generic Secret', regex: /(key|token|sig|secret|signature|password|passwd|pwd|android:value)[^a-zA-Z0-9]/i },
|
|
113
|
+
{ label: 'CLI Credentials', regex: /((login|psexec|(certutil|psexec)\.exe).{1,50}(\s-u(ser(name)?)?\s+.{3,100})?\s-(admin|user|vm|root)?p(ass(word)?)?\s+["']?[^$\-\/\s]|(^|[\s\r\n\\])net(\.exe)?.{1,5}(user\s+|share\s+\/user:| user -? secrets ? set) \s + [^ $\s \/])/ },
|
|
113
114
|
{ label: 'Email', regex: /@[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+/ }
|
|
114
115
|
];
|
|
115
116
|
for (const secretRegex of userDataRegexes) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Event } from '../../../../base/common/event.js';
|
|
2
2
|
import { IDisposable } from '../../../../base/common/lifecycle.js';
|
|
3
|
+
import { IPromptInputModel } from './commandDetection/promptInputModel.js';
|
|
3
4
|
import { ICurrentPartialCommand } from './commandDetection/terminalCommand.js';
|
|
4
5
|
import { ITerminalOutputMatcher, ITerminalOutputMatch } from '../terminal.js';
|
|
5
6
|
|
|
@@ -134,6 +135,7 @@ interface IBufferMarkCapability {
|
|
|
134
135
|
}
|
|
135
136
|
interface ICommandDetectionCapability {
|
|
136
137
|
readonly type: TerminalCapability.CommandDetection;
|
|
138
|
+
readonly promptInputModel: IPromptInputModel;
|
|
137
139
|
readonly commands: readonly ITerminalCommand[];
|
|
138
140
|
/** The command currently being executed, otherwise undefined. */
|
|
139
141
|
readonly executingCommand: string | undefined;
|
|
@@ -151,6 +153,7 @@ interface ICommandDetectionCapability {
|
|
|
151
153
|
readonly onCommandExecuted: Event<ITerminalCommand>;
|
|
152
154
|
readonly onCommandInvalidated: Event<ITerminalCommand[]>;
|
|
153
155
|
readonly onCurrentCommandInvalidated: Event<ICommandInvalidationRequest>;
|
|
156
|
+
setContinuationPrompt(value: string): void;
|
|
154
157
|
setCwd(value: string): void;
|
|
155
158
|
setIsWindowsPty(value: boolean): void;
|
|
156
159
|
setIsCommandStorageDisabled(): void;
|
|
@@ -207,6 +210,7 @@ interface IPartialCommandDetectionCapability {
|
|
|
207
210
|
}
|
|
208
211
|
interface IBaseTerminalCommand {
|
|
209
212
|
command: string;
|
|
213
|
+
commandLineConfidence: 'low' | 'medium' | 'high';
|
|
210
214
|
isTrusted: boolean;
|
|
211
215
|
timestamp: number;
|
|
212
216
|
duration: number;
|
|
@@ -224,6 +228,7 @@ interface ITerminalCommand extends IBaseTerminalCommand {
|
|
|
224
228
|
readonly executedMarker?: IXtermMarker;
|
|
225
229
|
readonly aliases?: string[][];
|
|
226
230
|
readonly wasReplayed?: boolean;
|
|
231
|
+
extractCommandLine(): string;
|
|
227
232
|
getOutput(): string | undefined;
|
|
228
233
|
getOutputMatch(outputMatcher: ITerminalOutputMatcher): ITerminalOutputMatch | undefined;
|
|
229
234
|
hasOutput(): boolean;
|
package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Event } from '../../../../../base/common/event.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A model of the prompt input state using shell integration and analyzing the terminal buffer. This
|
|
5
|
+
* may not be 100% accurate but provides a best guess.
|
|
6
|
+
*/
|
|
7
|
+
interface IPromptInputModel {
|
|
8
|
+
readonly onDidStartInput: Event<IPromptInputModelState>;
|
|
9
|
+
readonly onDidChangeInput: Event<IPromptInputModelState>;
|
|
10
|
+
readonly onDidFinishInput: Event<IPromptInputModelState>;
|
|
11
|
+
/**
|
|
12
|
+
* Fires immediately before {@link onDidFinishInput} when a SIGINT/Ctrl+C/^C is detected.
|
|
13
|
+
*/
|
|
14
|
+
readonly onDidInterrupt: Event<IPromptInputModelState>;
|
|
15
|
+
readonly value: string;
|
|
16
|
+
readonly cursorIndex: number;
|
|
17
|
+
readonly ghostTextIndex: number;
|
|
18
|
+
/**
|
|
19
|
+
* Gets the prompt input as a user-friendly string where `|` is the cursor position and `[` and
|
|
20
|
+
* `]` wrap any ghost text.
|
|
21
|
+
*/
|
|
22
|
+
getCombinedString(): string;
|
|
23
|
+
}
|
|
24
|
+
interface IPromptInputModelState {
|
|
25
|
+
readonly value: string;
|
|
26
|
+
readonly cursorIndex: number;
|
|
27
|
+
readonly ghostTextIndex: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type { IPromptInputModel, IPromptInputModelState };
|
|
@@ -120,6 +120,9 @@ const defaultListStyles = {
|
|
|
120
120
|
listHoverOutline: asCssVariable(activeContrastBorder),
|
|
121
121
|
treeIndentGuidesStroke: asCssVariable(treeIndentGuidesStroke),
|
|
122
122
|
treeInactiveIndentGuidesStroke: asCssVariable(treeInactiveIndentGuidesStroke),
|
|
123
|
+
treeStickyScrollBackground: undefined,
|
|
124
|
+
treeStickyScrollBorder: undefined,
|
|
125
|
+
treeStickyScrollShadow: undefined,
|
|
123
126
|
tableColumnsBorder: asCssVariable(tableColumnsBorder),
|
|
124
127
|
tableOddRowsBackgroundColor: asCssVariable(tableOddRowsBackgroundColor),
|
|
125
128
|
};
|
|
@@ -160,6 +163,9 @@ const defaultSelectBoxStyles = {
|
|
|
160
163
|
tableOddRowsBackgroundColor: undefined,
|
|
161
164
|
treeIndentGuidesStroke: undefined,
|
|
162
165
|
treeInactiveIndentGuidesStroke: undefined,
|
|
166
|
+
treeStickyScrollBackground: undefined,
|
|
167
|
+
treeStickyScrollBorder: undefined,
|
|
168
|
+
treeStickyScrollShadow: undefined
|
|
163
169
|
};
|
|
164
170
|
function getSelectBoxStyles(override) {
|
|
165
171
|
return overrideStyles(override, defaultSelectBoxStyles);
|