@codingame/monaco-vscode-api 2.0.3 → 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 +3 -19
- 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/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
|
@@ -1,428 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import './media/suggest.css.js';
|
|
3
|
-
import { Dimension, append, runAtThisOrScheduleAtNextAnimationFrame, getWindow, show, hide, getClientArea, getDomNodePagePosition, $ as $$1 } from '../../../../base/browser/dom.js';
|
|
4
|
-
import { List } from '../../../../base/browser/ui/list/listWidget.js';
|
|
5
|
-
import { ResizableHTMLElement } from '../../../../base/browser/ui/resizable/resizable.js';
|
|
6
|
-
import { SimpleSuggestWidgetItemRenderer } from './simpleSuggestWidgetRenderer.js';
|
|
7
|
-
import { TimeoutTimer } from '../../../../base/common/async.js';
|
|
8
|
-
import { Emitter } from '../../../../base/common/event.js';
|
|
9
|
-
import { MutableDisposable, DisposableStore } from '../../../../base/common/lifecycle.js';
|
|
10
|
-
import { clamp } from '../../../../base/common/numbers.js';
|
|
11
|
-
import { localizeWithPath } from '../../../../nls.js';
|
|
12
|
-
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
13
|
-
import { SuggestWidgetStatus } from '../../../../editor/contrib/suggest/browser/suggestWidgetStatus.js';
|
|
14
|
-
const $ = $$1;
|
|
15
|
-
let SimpleSuggestWidget = class SimpleSuggestWidget {
|
|
16
|
-
get list() { return this._list; }
|
|
17
|
-
constructor(_container, _persistedSize, options, instantiationService) {
|
|
18
|
-
this._container = _container;
|
|
19
|
-
this._persistedSize = _persistedSize;
|
|
20
|
-
this._state = 0 ;
|
|
21
|
-
this._forceRenderingAbove = false;
|
|
22
|
-
this._pendingLayout = ( new MutableDisposable());
|
|
23
|
-
this._showTimeout = ( new TimeoutTimer());
|
|
24
|
-
this._disposables = ( new DisposableStore());
|
|
25
|
-
this._onDidSelect = ( new Emitter());
|
|
26
|
-
this.onDidSelect = this._onDidSelect.event;
|
|
27
|
-
this._onDidHide = ( new Emitter());
|
|
28
|
-
this.onDidHide = this._onDidHide.event;
|
|
29
|
-
this._onDidShow = ( new Emitter());
|
|
30
|
-
this.onDidShow = this._onDidShow.event;
|
|
31
|
-
this.element = ( new ResizableHTMLElement());
|
|
32
|
-
this.element.domNode.classList.add('workbench-suggest-widget');
|
|
33
|
-
this._container.appendChild(this.element.domNode);
|
|
34
|
-
class ResizeState {
|
|
35
|
-
constructor(persistedSize, currentSize, persistHeight = false, persistWidth = false) {
|
|
36
|
-
this.persistedSize = persistedSize;
|
|
37
|
-
this.currentSize = currentSize;
|
|
38
|
-
this.persistHeight = persistHeight;
|
|
39
|
-
this.persistWidth = persistWidth;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
let state;
|
|
43
|
-
this._disposables.add(this.element.onDidWillResize(() => {
|
|
44
|
-
state = ( new ResizeState(this._persistedSize.restore(), this.element.size));
|
|
45
|
-
}));
|
|
46
|
-
this._disposables.add(this.element.onDidResize(e => {
|
|
47
|
-
this._resize(e.dimension.width, e.dimension.height);
|
|
48
|
-
if (state) {
|
|
49
|
-
state.persistHeight = state.persistHeight || !!e.north || !!e.south;
|
|
50
|
-
state.persistWidth = state.persistWidth || !!e.east || !!e.west;
|
|
51
|
-
}
|
|
52
|
-
if (!e.done) {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
if (state) {
|
|
56
|
-
const { itemHeight, defaultSize } = this._getLayoutInfo();
|
|
57
|
-
const threshold = Math.round(itemHeight / 2);
|
|
58
|
-
let { width, height } = this.element.size;
|
|
59
|
-
if (!state.persistHeight || Math.abs(state.currentSize.height - height) <= threshold) {
|
|
60
|
-
height = state.persistedSize?.height ?? defaultSize.height;
|
|
61
|
-
}
|
|
62
|
-
if (!state.persistWidth || Math.abs(state.currentSize.width - width) <= threshold) {
|
|
63
|
-
width = state.persistedSize?.width ?? defaultSize.width;
|
|
64
|
-
}
|
|
65
|
-
this._persistedSize.store(new Dimension(width, height));
|
|
66
|
-
}
|
|
67
|
-
state = undefined;
|
|
68
|
-
}));
|
|
69
|
-
const renderer = ( new SimpleSuggestWidgetItemRenderer());
|
|
70
|
-
this._disposables.add(renderer);
|
|
71
|
-
this._listElement = append(this.element.domNode, $('.tree'));
|
|
72
|
-
this._list = ( new List('SuggestWidget', this._listElement, {
|
|
73
|
-
getHeight: (_element) => this._getLayoutInfo().itemHeight,
|
|
74
|
-
getTemplateId: (_element) => 'suggestion'
|
|
75
|
-
}, [renderer], {
|
|
76
|
-
alwaysConsumeMouseWheel: true,
|
|
77
|
-
useShadows: false,
|
|
78
|
-
mouseSupport: false,
|
|
79
|
-
multipleSelectionSupport: false,
|
|
80
|
-
accessibilityProvider: {
|
|
81
|
-
getRole: () => 'option',
|
|
82
|
-
getWidgetAriaLabel: () => ( localizeWithPath(
|
|
83
|
-
'vs/workbench/services/suggest/browser/simpleSuggestWidget',
|
|
84
|
-
'suggest',
|
|
85
|
-
"Suggest"
|
|
86
|
-
)),
|
|
87
|
-
getWidgetRole: () => 'listbox',
|
|
88
|
-
getAriaLabel: (item) => {
|
|
89
|
-
let label = item.completion.label;
|
|
90
|
-
if (typeof item.completion.label !== 'string') {
|
|
91
|
-
const { detail, description } = item.completion.label;
|
|
92
|
-
if (detail && description) {
|
|
93
|
-
label = ( localizeWithPath(
|
|
94
|
-
'vs/workbench/services/suggest/browser/simpleSuggestWidget',
|
|
95
|
-
'label.full',
|
|
96
|
-
'{0}{1}, {2}',
|
|
97
|
-
label,
|
|
98
|
-
detail,
|
|
99
|
-
description
|
|
100
|
-
));
|
|
101
|
-
}
|
|
102
|
-
else if (detail) {
|
|
103
|
-
label = ( localizeWithPath(
|
|
104
|
-
'vs/workbench/services/suggest/browser/simpleSuggestWidget',
|
|
105
|
-
'label.detail',
|
|
106
|
-
'{0}{1}',
|
|
107
|
-
label,
|
|
108
|
-
detail
|
|
109
|
-
));
|
|
110
|
-
}
|
|
111
|
-
else if (description) {
|
|
112
|
-
label = ( localizeWithPath(
|
|
113
|
-
'vs/workbench/services/suggest/browser/simpleSuggestWidget',
|
|
114
|
-
'label.desc',
|
|
115
|
-
'{0}, {1}',
|
|
116
|
-
label,
|
|
117
|
-
description
|
|
118
|
-
));
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
const { detail } = item.completion;
|
|
122
|
-
return ( localizeWithPath(
|
|
123
|
-
'vs/workbench/services/suggest/browser/simpleSuggestWidget',
|
|
124
|
-
'ariaCurrenttSuggestionReadDetails',
|
|
125
|
-
'{0}, docs: {1}',
|
|
126
|
-
label,
|
|
127
|
-
detail
|
|
128
|
-
));
|
|
129
|
-
},
|
|
130
|
-
}
|
|
131
|
-
}));
|
|
132
|
-
if (options.statusBarMenuId) {
|
|
133
|
-
this._status = instantiationService.createInstance(SuggestWidgetStatus, this.element.domNode, options.statusBarMenuId);
|
|
134
|
-
this.element.domNode.classList.toggle('with-status-bar', true);
|
|
135
|
-
}
|
|
136
|
-
this._disposables.add(this._list.onMouseDown(e => this._onListMouseDownOrTap(e)));
|
|
137
|
-
this._disposables.add(this._list.onTap(e => this._onListMouseDownOrTap(e)));
|
|
138
|
-
this._disposables.add(this._list.onDidChangeSelection(e => this._onListSelection(e)));
|
|
139
|
-
}
|
|
140
|
-
dispose() {
|
|
141
|
-
this._disposables.dispose();
|
|
142
|
-
this._status?.dispose();
|
|
143
|
-
this.element.dispose();
|
|
144
|
-
}
|
|
145
|
-
showSuggestions(completionModel, selectionIndex, isFrozen, isAuto, cursorPosition) {
|
|
146
|
-
this._cursorPosition = cursorPosition;
|
|
147
|
-
if (this._completionModel !== completionModel) {
|
|
148
|
-
this._completionModel = completionModel;
|
|
149
|
-
}
|
|
150
|
-
if (isFrozen && this._state !== 2 && this._state !== 0 ) {
|
|
151
|
-
this._setState(4 );
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
|
-
const visibleCount = this._completionModel.items.length;
|
|
155
|
-
const isEmpty = visibleCount === 0;
|
|
156
|
-
if (isEmpty) {
|
|
157
|
-
this._setState(isAuto ? 0 : 2 );
|
|
158
|
-
this._completionModel = undefined;
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
try {
|
|
162
|
-
this._list.splice(0, this._list.length, this._completionModel.items);
|
|
163
|
-
this._setState(isFrozen ? 4 : 3 );
|
|
164
|
-
this._list.reveal(selectionIndex, 0);
|
|
165
|
-
this._list.setFocus([selectionIndex]);
|
|
166
|
-
}
|
|
167
|
-
finally {
|
|
168
|
-
}
|
|
169
|
-
this._pendingLayout.value = runAtThisOrScheduleAtNextAnimationFrame(getWindow(this.element.domNode), () => {
|
|
170
|
-
this._pendingLayout.clear();
|
|
171
|
-
this._layout(this.element.size);
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
setLineContext(lineContext) {
|
|
175
|
-
if (this._completionModel) {
|
|
176
|
-
this._completionModel.lineContext = lineContext;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
_setState(state) {
|
|
180
|
-
if (this._state === state) {
|
|
181
|
-
return;
|
|
182
|
-
}
|
|
183
|
-
this._state = state;
|
|
184
|
-
this.element.domNode.classList.toggle('frozen', state === 4 );
|
|
185
|
-
this.element.domNode.classList.remove('message');
|
|
186
|
-
switch (state) {
|
|
187
|
-
case 0 :
|
|
188
|
-
hide(this._listElement);
|
|
189
|
-
if (this._status) {
|
|
190
|
-
hide(this._status?.element);
|
|
191
|
-
}
|
|
192
|
-
this._status?.hide();
|
|
193
|
-
this._showTimeout.cancel();
|
|
194
|
-
this.element.domNode.classList.remove('visible');
|
|
195
|
-
this._list.splice(0, this._list.length);
|
|
196
|
-
this._cappedHeight = undefined;
|
|
197
|
-
break;
|
|
198
|
-
case 1 :
|
|
199
|
-
this.element.domNode.classList.add('message');
|
|
200
|
-
hide(this._listElement);
|
|
201
|
-
if (this._status) {
|
|
202
|
-
hide(this._status?.element);
|
|
203
|
-
}
|
|
204
|
-
this._show();
|
|
205
|
-
break;
|
|
206
|
-
case 2 :
|
|
207
|
-
this.element.domNode.classList.add('message');
|
|
208
|
-
hide(this._listElement);
|
|
209
|
-
if (this._status) {
|
|
210
|
-
hide(this._status?.element);
|
|
211
|
-
}
|
|
212
|
-
this._show();
|
|
213
|
-
break;
|
|
214
|
-
case 3 :
|
|
215
|
-
show(this._listElement);
|
|
216
|
-
if (this._status) {
|
|
217
|
-
show(this._status?.element);
|
|
218
|
-
}
|
|
219
|
-
this._show();
|
|
220
|
-
break;
|
|
221
|
-
case 4 :
|
|
222
|
-
show(this._listElement);
|
|
223
|
-
if (this._status) {
|
|
224
|
-
show(this._status?.element);
|
|
225
|
-
}
|
|
226
|
-
this._show();
|
|
227
|
-
break;
|
|
228
|
-
case 5 :
|
|
229
|
-
show(this._listElement);
|
|
230
|
-
if (this._status) {
|
|
231
|
-
show(this._status?.element);
|
|
232
|
-
}
|
|
233
|
-
this._show();
|
|
234
|
-
break;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
_show() {
|
|
238
|
-
this._status?.show();
|
|
239
|
-
show(this.element.domNode);
|
|
240
|
-
this._layout(this._persistedSize.restore());
|
|
241
|
-
this._showTimeout.cancelAndSet(() => {
|
|
242
|
-
this.element.domNode.classList.add('visible');
|
|
243
|
-
this._onDidShow.fire(this);
|
|
244
|
-
}, 100);
|
|
245
|
-
}
|
|
246
|
-
hide() {
|
|
247
|
-
this._pendingLayout.clear();
|
|
248
|
-
this._setState(0 );
|
|
249
|
-
this._onDidHide.fire(this);
|
|
250
|
-
hide(this.element.domNode);
|
|
251
|
-
this.element.clearSashHoverState();
|
|
252
|
-
const dim = this._persistedSize.restore();
|
|
253
|
-
const minPersistedHeight = Math.ceil(this._getLayoutInfo().itemHeight * 4.3);
|
|
254
|
-
if (dim && dim.height < minPersistedHeight) {
|
|
255
|
-
this._persistedSize.store(dim.with(undefined, minPersistedHeight));
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
_layout(size) {
|
|
259
|
-
if (!this._cursorPosition) {
|
|
260
|
-
return;
|
|
261
|
-
}
|
|
262
|
-
const bodyBox = getClientArea(this._container.ownerDocument.body);
|
|
263
|
-
const info = this._getLayoutInfo();
|
|
264
|
-
if (!size) {
|
|
265
|
-
size = info.defaultSize;
|
|
266
|
-
}
|
|
267
|
-
let height = size.height;
|
|
268
|
-
let width = size.width;
|
|
269
|
-
if (this._status) {
|
|
270
|
-
this._status.element.style.lineHeight = `${info.itemHeight}px`;
|
|
271
|
-
}
|
|
272
|
-
const maxWidth = bodyBox.width - info.borderHeight - 2 * info.horizontalPadding;
|
|
273
|
-
if (width > maxWidth) {
|
|
274
|
-
width = maxWidth;
|
|
275
|
-
}
|
|
276
|
-
const preferredWidth = this._completionModel ? this._completionModel.stats.pLabelLen * info.typicalHalfwidthCharacterWidth : width;
|
|
277
|
-
const fullHeight = info.statusBarHeight + this._list.contentHeight + info.borderHeight;
|
|
278
|
-
const minHeight = info.itemHeight + info.statusBarHeight;
|
|
279
|
-
const editorBox = getDomNodePagePosition(this._container);
|
|
280
|
-
const cursorBox = this._cursorPosition;
|
|
281
|
-
const cursorBottom = editorBox.top + cursorBox.top + cursorBox.height;
|
|
282
|
-
const maxHeightBelow = Math.min(bodyBox.height - cursorBottom - info.verticalPadding, fullHeight);
|
|
283
|
-
const availableSpaceAbove = editorBox.top + cursorBox.top - info.verticalPadding;
|
|
284
|
-
const maxHeightAbove = Math.min(availableSpaceAbove, fullHeight);
|
|
285
|
-
let maxHeight = Math.min(Math.max(maxHeightAbove, maxHeightBelow) + info.borderHeight, fullHeight);
|
|
286
|
-
if (height === this._cappedHeight?.capped) {
|
|
287
|
-
height = this._cappedHeight.wanted;
|
|
288
|
-
}
|
|
289
|
-
if (height < minHeight) {
|
|
290
|
-
height = minHeight;
|
|
291
|
-
}
|
|
292
|
-
if (height > maxHeight) {
|
|
293
|
-
height = maxHeight;
|
|
294
|
-
}
|
|
295
|
-
const forceRenderingAboveRequiredSpace = 150;
|
|
296
|
-
if (height > maxHeightBelow || (this._forceRenderingAbove && availableSpaceAbove > forceRenderingAboveRequiredSpace)) {
|
|
297
|
-
this._preference = 0 ;
|
|
298
|
-
this.element.enableSashes(true, true, false, false);
|
|
299
|
-
maxHeight = maxHeightAbove;
|
|
300
|
-
}
|
|
301
|
-
else {
|
|
302
|
-
this._preference = 1 ;
|
|
303
|
-
this.element.enableSashes(false, true, true, false);
|
|
304
|
-
maxHeight = maxHeightBelow;
|
|
305
|
-
}
|
|
306
|
-
this.element.preferredSize = new Dimension(preferredWidth, info.defaultSize.height);
|
|
307
|
-
this.element.maxSize = new Dimension(maxWidth, maxHeight);
|
|
308
|
-
this.element.minSize = new Dimension(220, minHeight);
|
|
309
|
-
this._cappedHeight = height === fullHeight
|
|
310
|
-
? { wanted: this._cappedHeight?.wanted ?? size.height, capped: height }
|
|
311
|
-
: undefined;
|
|
312
|
-
this.element.domNode.style.left = `${this._cursorPosition.left}px`;
|
|
313
|
-
if (this._preference === 0 ) {
|
|
314
|
-
this.element.domNode.style.top = `${this._cursorPosition.top - height - info.borderHeight}px`;
|
|
315
|
-
}
|
|
316
|
-
else {
|
|
317
|
-
this.element.domNode.style.top = `${this._cursorPosition.top + this._cursorPosition.height}px`;
|
|
318
|
-
}
|
|
319
|
-
this._resize(width, height);
|
|
320
|
-
}
|
|
321
|
-
_resize(width, height) {
|
|
322
|
-
const { width: maxWidth, height: maxHeight } = this.element.maxSize;
|
|
323
|
-
width = Math.min(maxWidth, width);
|
|
324
|
-
if (maxHeight) {
|
|
325
|
-
height = Math.min(maxHeight, height);
|
|
326
|
-
}
|
|
327
|
-
const { statusBarHeight } = this._getLayoutInfo();
|
|
328
|
-
this._list.layout(height - statusBarHeight, width);
|
|
329
|
-
this._listElement.style.height = `${height - statusBarHeight}px`;
|
|
330
|
-
this._listElement.style.width = `${width}px`;
|
|
331
|
-
this._listElement.style.height = `${height}px`;
|
|
332
|
-
this.element.layout(height, width);
|
|
333
|
-
}
|
|
334
|
-
_getLayoutInfo() {
|
|
335
|
-
const fontInfo = {
|
|
336
|
-
lineHeight: 20,
|
|
337
|
-
typicalHalfwidthCharacterWidth: 10
|
|
338
|
-
};
|
|
339
|
-
const itemHeight = clamp(fontInfo.lineHeight, 8, 1000);
|
|
340
|
-
const statusBarHeight = 0;
|
|
341
|
-
const borderWidth = 1;
|
|
342
|
-
const borderHeight = 2 * borderWidth;
|
|
343
|
-
return {
|
|
344
|
-
itemHeight,
|
|
345
|
-
statusBarHeight,
|
|
346
|
-
borderWidth,
|
|
347
|
-
borderHeight,
|
|
348
|
-
typicalHalfwidthCharacterWidth: fontInfo.typicalHalfwidthCharacterWidth,
|
|
349
|
-
verticalPadding: 22,
|
|
350
|
-
horizontalPadding: 14,
|
|
351
|
-
defaultSize: new Dimension(430, statusBarHeight + 12 * itemHeight + borderHeight)
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
_onListMouseDownOrTap(e) {
|
|
355
|
-
if (typeof e.element === 'undefined' || typeof e.index === 'undefined') {
|
|
356
|
-
return;
|
|
357
|
-
}
|
|
358
|
-
e.browserEvent.preventDefault();
|
|
359
|
-
e.browserEvent.stopPropagation();
|
|
360
|
-
this._select(e.element, e.index);
|
|
361
|
-
}
|
|
362
|
-
_onListSelection(e) {
|
|
363
|
-
if (e.elements.length) {
|
|
364
|
-
this._select(e.elements[0], e.indexes[0]);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
_select(item, index) {
|
|
368
|
-
const completionModel = this._completionModel;
|
|
369
|
-
if (completionModel) {
|
|
370
|
-
this._onDidSelect.fire({ item, index, model: completionModel });
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
selectNext() {
|
|
374
|
-
this._list.focusNext(1, true);
|
|
375
|
-
const focus = this._list.getFocus();
|
|
376
|
-
if (focus.length > 0) {
|
|
377
|
-
this._list.reveal(focus[0]);
|
|
378
|
-
}
|
|
379
|
-
return true;
|
|
380
|
-
}
|
|
381
|
-
selectNextPage() {
|
|
382
|
-
this._list.focusNextPage();
|
|
383
|
-
const focus = this._list.getFocus();
|
|
384
|
-
if (focus.length > 0) {
|
|
385
|
-
this._list.reveal(focus[0]);
|
|
386
|
-
}
|
|
387
|
-
return true;
|
|
388
|
-
}
|
|
389
|
-
selectPrevious() {
|
|
390
|
-
this._list.focusPrevious(1, true);
|
|
391
|
-
const focus = this._list.getFocus();
|
|
392
|
-
if (focus.length > 0) {
|
|
393
|
-
this._list.reveal(focus[0]);
|
|
394
|
-
}
|
|
395
|
-
return true;
|
|
396
|
-
}
|
|
397
|
-
selectPreviousPage() {
|
|
398
|
-
this._list.focusPreviousPage();
|
|
399
|
-
const focus = this._list.getFocus();
|
|
400
|
-
if (focus.length > 0) {
|
|
401
|
-
this._list.reveal(focus[0]);
|
|
402
|
-
}
|
|
403
|
-
return true;
|
|
404
|
-
}
|
|
405
|
-
getFocusedItem() {
|
|
406
|
-
if (this._completionModel) {
|
|
407
|
-
return {
|
|
408
|
-
item: this._list.getFocusedElements()[0],
|
|
409
|
-
index: this._list.getFocus()[0],
|
|
410
|
-
model: this._completionModel
|
|
411
|
-
};
|
|
412
|
-
}
|
|
413
|
-
return undefined;
|
|
414
|
-
}
|
|
415
|
-
forceRenderingAbove() {
|
|
416
|
-
if (!this._forceRenderingAbove) {
|
|
417
|
-
this._forceRenderingAbove = true;
|
|
418
|
-
this._layout(this._persistedSize.restore());
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
stopForceRenderingAbove() {
|
|
422
|
-
this._forceRenderingAbove = false;
|
|
423
|
-
}
|
|
424
|
-
};
|
|
425
|
-
SimpleSuggestWidget = ( __decorate([
|
|
426
|
-
( __param(3, IInstantiationService))
|
|
427
|
-
], SimpleSuggestWidget));
|
|
428
|
-
export { SimpleSuggestWidget };
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { append, $, show } from '../../../../base/browser/dom.js';
|
|
2
|
-
import { IconLabel } from '../../../../base/browser/ui/iconLabel/iconLabel.js';
|
|
3
|
-
import { Codicon } from '../../../../base/common/codicons.js';
|
|
4
|
-
import { Emitter } from '../../../../base/common/event.js';
|
|
5
|
-
import { createMatches } from '../../../../base/common/filters.js';
|
|
6
|
-
import { DisposableStore } from '../../../../base/common/lifecycle.js';
|
|
7
|
-
import { ThemeIcon } from '../../../../base/common/themables.js';
|
|
8
|
-
function getAriaId(index) {
|
|
9
|
-
return `simple-suggest-aria-id:${index}`;
|
|
10
|
-
}
|
|
11
|
-
class SimpleSuggestWidgetItemRenderer {
|
|
12
|
-
constructor() {
|
|
13
|
-
this._onDidToggleDetails = ( new Emitter());
|
|
14
|
-
this.onDidToggleDetails = this._onDidToggleDetails.event;
|
|
15
|
-
this.templateId = 'suggestion';
|
|
16
|
-
}
|
|
17
|
-
dispose() {
|
|
18
|
-
this._onDidToggleDetails.dispose();
|
|
19
|
-
}
|
|
20
|
-
renderTemplate(container) {
|
|
21
|
-
const disposables = ( new DisposableStore());
|
|
22
|
-
const root = container;
|
|
23
|
-
root.classList.add('show-file-icons');
|
|
24
|
-
const icon = append(container, $('.icon'));
|
|
25
|
-
const colorspan = append(icon, $('span.colorspan'));
|
|
26
|
-
const text = append(container, $('.contents'));
|
|
27
|
-
const main = append(text, $('.main'));
|
|
28
|
-
const iconContainer = append(main, $('.icon-label.codicon'));
|
|
29
|
-
const left = append(main, $('span.left'));
|
|
30
|
-
const right = append(main, $('span.right'));
|
|
31
|
-
const iconLabel = ( new IconLabel(left, { supportHighlights: true, supportIcons: true }));
|
|
32
|
-
disposables.add(iconLabel);
|
|
33
|
-
const parametersLabel = append(left, $('span.signature-label'));
|
|
34
|
-
const qualifierLabel = append(left, $('span.qualifier-label'));
|
|
35
|
-
const detailsLabel = append(right, $('span.details-label'));
|
|
36
|
-
const configureFont = () => {
|
|
37
|
-
const fontFamily = 'Hack';
|
|
38
|
-
const fontFeatureSettings = '';
|
|
39
|
-
const fontSize = '12';
|
|
40
|
-
const lineHeight = '20';
|
|
41
|
-
const fontWeight = 'normal';
|
|
42
|
-
const letterSpacing = '0';
|
|
43
|
-
const fontSizePx = `${fontSize}px`;
|
|
44
|
-
const lineHeightPx = `${lineHeight}px`;
|
|
45
|
-
const letterSpacingPx = `${letterSpacing}px`;
|
|
46
|
-
root.style.fontSize = fontSizePx;
|
|
47
|
-
root.style.fontWeight = fontWeight;
|
|
48
|
-
root.style.letterSpacing = letterSpacingPx;
|
|
49
|
-
main.style.fontFamily = fontFamily;
|
|
50
|
-
main.style.fontFeatureSettings = fontFeatureSettings;
|
|
51
|
-
main.style.lineHeight = lineHeightPx;
|
|
52
|
-
icon.style.height = lineHeightPx;
|
|
53
|
-
icon.style.width = lineHeightPx;
|
|
54
|
-
};
|
|
55
|
-
configureFont();
|
|
56
|
-
return { root, left, right, icon, colorspan, iconLabel, iconContainer, parametersLabel, qualifierLabel, detailsLabel, disposables };
|
|
57
|
-
}
|
|
58
|
-
renderElement(element, index, data) {
|
|
59
|
-
const { completion } = element;
|
|
60
|
-
data.root.id = getAriaId(index);
|
|
61
|
-
data.colorspan.style.backgroundColor = '';
|
|
62
|
-
const labelOptions = {
|
|
63
|
-
labelEscapeNewLines: true,
|
|
64
|
-
matches: createMatches(element.score)
|
|
65
|
-
};
|
|
66
|
-
data.icon.className = 'icon hide';
|
|
67
|
-
data.iconContainer.className = '';
|
|
68
|
-
data.iconContainer.classList.add('suggest-icon', ...ThemeIcon.asClassNameArray(completion.icon || Codicon.symbolText));
|
|
69
|
-
data.iconLabel.setLabel(completion.label, undefined, labelOptions);
|
|
70
|
-
data.parametersLabel.textContent = '';
|
|
71
|
-
data.detailsLabel.textContent = stripNewLines(completion.detail || '');
|
|
72
|
-
data.root.classList.add('string-label');
|
|
73
|
-
show(data.detailsLabel);
|
|
74
|
-
data.right.classList.remove('can-expand-details');
|
|
75
|
-
}
|
|
76
|
-
disposeTemplate(templateData) {
|
|
77
|
-
templateData.disposables.dispose();
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
function stripNewLines(str) {
|
|
81
|
-
return str.replace(/\r\n|\r|\n/g, '');
|
|
82
|
-
}
|
|
83
|
-
export { SimpleSuggestWidgetItemRenderer, getAriaId };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
|
|
8
|
-
export interface InteractiveRequest {
|
|
9
|
-
variables: Record<string, ChatVariableValue[]>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export enum ChatVariableLevel {
|
|
13
|
-
Short = 1,
|
|
14
|
-
Medium = 2,
|
|
15
|
-
Full = 3
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface ChatVariableValue {
|
|
19
|
-
level: ChatVariableLevel;
|
|
20
|
-
/**
|
|
21
|
-
* An optional type tag for extensions to communicate the kind of the variable. An extension might use it to interpret the shape of `value`.
|
|
22
|
-
*/
|
|
23
|
-
kind?: string;
|
|
24
|
-
value: string | Uri | any;
|
|
25
|
-
description?: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface ChatVariableContext {
|
|
29
|
-
message: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface ChatVariableResolver {
|
|
33
|
-
resolve(name: string, context: ChatVariableContext, token: CancellationToken): ProviderResult<ChatVariableValue[]>;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export namespace chat {
|
|
37
|
-
export function registerVariable(name: string, description: string, resolver: ChatVariableResolver): Disposable;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
|
|
8
|
-
export enum InteractiveSessionVoteDirection {
|
|
9
|
-
Down = 0,
|
|
10
|
-
Up = 1
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface InteractiveSessionVoteAction {
|
|
14
|
-
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
15
|
-
kind: 'vote';
|
|
16
|
-
direction: InteractiveSessionVoteDirection;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export enum InteractiveSessionCopyKind {
|
|
20
|
-
// Keyboard shortcut or context menu
|
|
21
|
-
Action = 1,
|
|
22
|
-
Toolbar = 2
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface InteractiveSessionCopyAction {
|
|
26
|
-
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
27
|
-
kind: 'copy';
|
|
28
|
-
codeBlockIndex: number;
|
|
29
|
-
copyType: InteractiveSessionCopyKind;
|
|
30
|
-
copiedCharacters: number;
|
|
31
|
-
totalCharacters: number;
|
|
32
|
-
copiedText: string;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface InteractiveSessionInsertAction {
|
|
36
|
-
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
37
|
-
kind: 'insert';
|
|
38
|
-
codeBlockIndex: number;
|
|
39
|
-
totalCharacters: number;
|
|
40
|
-
newFile?: boolean;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface InteractiveSessionTerminalAction {
|
|
44
|
-
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
45
|
-
kind: 'runInTerminal';
|
|
46
|
-
codeBlockIndex: number;
|
|
47
|
-
languageId?: string;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export interface InteractiveSessionCommandAction {
|
|
51
|
-
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
52
|
-
kind: 'command';
|
|
53
|
-
command: InteractiveResponseCommand;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface InteractiveSessionFollowupAction {
|
|
57
|
-
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
58
|
-
kind: 'followUp';
|
|
59
|
-
followup: InteractiveSessionReplyFollowup;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface InteractiveSessionBugReportAction {
|
|
63
|
-
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
64
|
-
kind: 'bug';
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export type InteractiveSessionUserAction = InteractiveSessionVoteAction | InteractiveSessionCopyAction | InteractiveSessionInsertAction | InteractiveSessionTerminalAction | InteractiveSessionCommandAction | InteractiveSessionBugReportAction;
|
|
68
|
-
|
|
69
|
-
export interface InteractiveSessionUserActionEvent {
|
|
70
|
-
action: InteractiveSessionUserAction;
|
|
71
|
-
providerId: string;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export namespace interactive {
|
|
75
|
-
export const onDidPerformUserAction: Event<InteractiveSessionUserActionEvent>;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
// https://github.com/microsoft/vscode/issues/178713
|
|
7
|
-
|
|
8
|
-
declare module 'vscode' {
|
|
9
|
-
|
|
10
|
-
export namespace workspace {
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Saves the editor identified by the given resource and returns the resulting resource or `undefined`
|
|
14
|
-
* if save was not successful or no editor with the given resource was found.
|
|
15
|
-
*
|
|
16
|
-
* **Note** that an editor with the provided resource must be opened in order to be saved.
|
|
17
|
-
*
|
|
18
|
-
* @param uri the associated uri for the opened editor to save.
|
|
19
|
-
* @return A thenable that resolves when the save operation has finished.
|
|
20
|
-
*/
|
|
21
|
-
export function save(uri: Uri): Thenable<Uri | undefined>;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Saves the editor identified by the given resource to a new file name as provided by the user and
|
|
25
|
-
* returns the resulting resource or `undefined` if save was not successful or cancelled or no editor
|
|
26
|
-
* with the given resource was found.
|
|
27
|
-
*
|
|
28
|
-
* **Note** that an editor with the provided resource must be opened in order to be saved as.
|
|
29
|
-
*
|
|
30
|
-
* @param uri the associated uri for the opened editor to save as.
|
|
31
|
-
* @return A thenable that resolves when the save-as operation has finished.
|
|
32
|
-
*/
|
|
33
|
-
export function saveAs(uri: Uri): Thenable<Uri | undefined>;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
// https://github.com/microsoft/vscode/issues/195474
|
|
8
|
-
|
|
9
|
-
export namespace scm {
|
|
10
|
-
export function registerSourceControlInputBoxValueProvider(sourceControlId: string, provider: SourceControlInputBoxValueProvider): Disposable;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface SourceControlInputBoxValueProviderContext {
|
|
14
|
-
readonly resourceGroupId: string;
|
|
15
|
-
readonly resources: readonly Uri[];
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface SourceControlInputBoxValueProvider {
|
|
19
|
-
readonly label: string;
|
|
20
|
-
readonly icon?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
|
|
21
|
-
|
|
22
|
-
provideValue(rootUri: Uri, context: SourceControlInputBoxValueProviderContext[], token: CancellationToken): ProviderResult<string | undefined>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
}
|