@codingame/monaco-vscode-api 2.0.3-improve-modularity.1 → 2.1.0-update-vscode-1.86.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.js +15 -12
- package/extensions.d.ts +4 -7
- package/external/@xterm/xterm/typings/xterm.d.ts +22 -0
- package/missing-services.js +62 -6
- package/package.json +8 -8
- package/service-override/tools/editor.js +14 -0
- package/services.d.ts +3 -2
- package/services.js +6 -4
- package/vscode/src/vs/base/browser/browser.js +45 -30
- package/vscode/src/vs/base/browser/canIUse.js +1 -1
- package/vscode/src/vs/base/browser/defaultWorkerFactory.js +12 -5
- package/vscode/src/vs/base/browser/dom.js +104 -14
- package/vscode/src/vs/base/browser/indexedDB.js +3 -3
- package/vscode/src/vs/base/browser/markdownRenderer.js +29 -1
- package/vscode/src/vs/base/browser/mouseEvent.js +17 -3
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +3 -3
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.css.js +4 -0
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.js +287 -0
- package/vscode/src/vs/base/browser/ui/button/button.js +9 -0
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +1 -1
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabelHover.js +16 -5
- package/vscode/src/vs/base/browser/ui/list/listView.js +31 -11
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +35 -21
- package/vscode/src/vs/base/browser/ui/menu/menu.js +10 -1
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +8 -4
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +6 -5
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +469 -95
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +22 -7
- package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +0 -5
- package/vscode/src/vs/base/browser/ui/tree/media/tree.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/objectTree.js +70 -4
- package/vscode/src/vs/base/common/assert.js +6 -1
- package/vscode/src/vs/base/common/async.js +31 -6
- package/vscode/src/vs/base/common/codicons.js +5 -0
- package/vscode/src/vs/base/common/event.d.ts +0 -5
- package/vscode/src/vs/base/common/event.js +0 -15
- package/vscode/src/vs/base/common/filters.d.ts +1 -18
- package/vscode/src/vs/base/common/htmlContent.js +12 -6
- package/vscode/src/vs/base/common/iterator.js +8 -0
- package/vscode/src/vs/base/common/labels.js +2 -1
- package/vscode/src/vs/base/common/map.js +20 -1
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +4 -0
- package/vscode/src/vs/base/common/observableInternal/base.js +16 -8
- package/vscode/src/vs/base/common/observableInternal/derived.js +4 -6
- package/vscode/src/vs/base/common/observableInternal/utils.js +60 -5
- package/vscode/src/vs/base/common/platform.js +20 -20
- package/vscode/src/vs/base/common/prefixTree.js +4 -3
- package/vscode/src/vs/base/common/product.d.ts +5 -2
- package/vscode/src/vs/base/common/strings.js +23 -7
- package/vscode/src/vs/base/common/themables.js +4 -1
- package/vscode/src/vs/base/common/uri.js +11 -1
- package/vscode/src/vs/base/common/worker/simpleWorker.js +1 -1
- package/vscode/src/vs/editor/browser/config/migrateOptions.js +5 -0
- package/vscode/src/vs/editor/browser/controller/mouseHandler.js +1 -0
- package/vscode/src/vs/editor/browser/controller/mouseTarget.js +14 -8
- package/vscode/src/vs/editor/browser/controller/pointerHandler.js +18 -11
- package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +1 -1
- package/vscode/src/vs/editor/browser/controller/textAreaInput.js +3 -3
- package/vscode/src/vs/{workbench/services/hover/browser → editor/browser/services}/hoverService.d.ts +7 -6
- package/vscode/src/vs/editor/browser/services/hoverService.js +195 -0
- package/vscode/src/vs/editor/browser/view.js +29 -39
- package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +41 -19
- package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +30 -23
- package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +23 -8
- package/vscode/src/vs/editor/browser/viewParts/lines/viewLines.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +8 -1
- package/vscode/src/vs/editor/browser/viewParts/marginDecorations/marginDecorations.js +7 -1
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +30 -3
- package/vscode/src/vs/editor/browser/widget/codeEditorWidget.js +39 -15
- package/vscode/src/vs/editor/browser/widget/diffEditor/{accessibleDiffViewer.css.js → components/accessibleDiffViewer.css.js} +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/{accessibleDiffViewer.js → components/accessibleDiffViewer.js} +43 -43
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js +89 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/{diffEditorEditors.js → components/diffEditorEditors.js} +14 -14
- package/vscode/src/vs/editor/browser/widget/diffEditor/{diffEditorSash.js → components/diffEditorSash.js} +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/{lineAlignment.js → components/diffEditorViewZones/diffEditorViewZones.js} +38 -28
- package/vscode/src/vs/editor/browser/widget/diffEditor/{inlineDiffDeletedCodeMargin.js → components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js} +14 -14
- package/vscode/src/vs/editor/browser/widget/diffEditor/{renderLines.js → components/diffEditorViewZones/renderLines.js} +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +29 -38
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +150 -38
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +17 -16
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +104 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/{hideUnchangedRegionsFeature.js → features/hideUnchangedRegionsFeature.js} +51 -78
- package/vscode/src/vs/editor/browser/widget/diffEditor/{movedBlocksLines.js → features/movedBlocksLinesFeature.js} +23 -23
- package/vscode/src/vs/editor/browser/widget/diffEditor/{overviewRulerPart.js → features/overviewRulerFeature.js} +28 -28
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +145 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/{decorations.js → registrations.contribution.js} +18 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +10 -2
- package/vscode/src/vs/editor/browser/widget/hoverWidget/hover.css.js +4 -0
- package/vscode/src/vs/editor/browser/widget/hoverWidget/hoverWidget.js +527 -0
- package/vscode/src/vs/editor/{contrib → browser/widget}/markdownRenderer/browser/markdownRenderer.js +11 -11
- package/vscode/src/vs/editor/{contrib → browser/widget}/markdownRenderer/browser/renderedMarkdown.css.js +1 -1
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +11 -10
- package/vscode/src/vs/editor/common/config/editorOptions.js +46 -42
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +3 -3
- package/vscode/src/vs/editor/common/core/offsetRange.d.ts +2 -0
- package/vscode/src/vs/editor/common/core/offsetRange.js +8 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js +9 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js +50 -47
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js +4 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +2 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +13 -2
- package/vscode/src/vs/editor/common/languages.d.ts +10 -2
- package/vscode/src/vs/editor/common/model/textModel.js +19 -13
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +1 -1
- package/vscode/src/vs/editor/common/model.d.ts +19 -1
- package/vscode/src/vs/editor/common/model.js +2 -1
- package/vscode/src/vs/editor/common/services/editorSimpleWorker.js +2 -1
- package/vscode/src/vs/editor/common/services/getIconClasses.js +4 -1
- package/vscode/src/vs/editor/common/services/semanticTokensProviderStyling.js +3 -3
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +9 -8
- package/vscode/src/vs/editor/common/standaloneStrings.js +18 -18
- package/vscode/src/vs/editor/common/viewEvents.js +2 -0
- package/vscode/src/vs/editor/common/viewModel/glyphLanesModel.js +55 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +4 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +5 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +46 -20
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +38 -11
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +56 -101
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.js +3 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorContributions.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +10 -29
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js +51 -0
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +19 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +38 -10
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +29 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/edit.js +10 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +3 -17
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +3 -35
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +26 -6
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +6 -6
- package/vscode/src/vs/editor/contrib/format/browser/format.js +9 -9
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +5 -5
- package/vscode/src/vs/editor/contrib/gotoError/browser/media/gotoErrorWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/contentHover.js +85 -76
- package/vscode/src/vs/editor/contrib/hover/browser/hover.js +120 -90
- package/vscode/src/vs/editor/contrib/hover/browser/marginHover.js +18 -6
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHints.js +4 -2
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +56 -38
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +12 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +4 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +2 -2
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +50 -53
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +5 -2
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +5 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css.js +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +8 -5
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +58 -46
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +34 -7
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +30 -38
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +11 -3
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +18 -7
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +8 -10
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +7 -6
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -0
- package/vscode/src/vs/editor/editor.api.d.ts +82 -11
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +8 -3
- package/vscode/src/vs/editor/standalone/browser/standaloneLayoutService.js +4 -3
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +22 -11
- package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +1 -1
- package/vscode/src/vs/nls.d.ts +6 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibilityService.js +4 -1
- package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +2 -16
- package/vscode/src/vs/platform/accessibility/common/accessibility.js +1 -2
- package/vscode/src/vs/platform/action/common/actionCommonCategories.d.ts +7 -20
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +8 -8
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +0 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css.js +1 -1
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +2 -0
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +5 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.css.js +1 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +2 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +9 -1
- package/vscode/src/vs/platform/actions/common/actions.js +12 -1
- package/vscode/src/vs/platform/audioCues/browser/audioCueService.d.ts +11 -1
- package/vscode/src/vs/platform/audioCues/browser/audioCueService.js +174 -28
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +38 -5
- package/vscode/src/vs/platform/configuration/common/configuration.d.ts +0 -1
- package/vscode/src/vs/platform/environment/common/environmentService.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +5 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +24 -5
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +6 -1
- package/vscode/src/vs/{workbench/services → platform}/hover/browser/hover.d.ts +6 -8
- package/vscode/src/vs/platform/hover/browser/hover.js +3 -0
- package/vscode/src/vs/platform/instantiation/common/instantiationService.js +14 -4
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +11 -4
- package/vscode/src/vs/platform/keybinding/common/keybinding.d.ts +7 -0
- package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +6 -0
- package/vscode/src/vs/platform/list/browser/listService.js +7 -5
- package/vscode/src/vs/platform/log/common/bufferLog.js +1 -0
- package/vscode/src/vs/platform/log/common/log.d.ts +0 -1
- package/vscode/src/vs/platform/log/common/log.js +1 -2
- package/vscode/src/vs/platform/notification/common/notification.d.ts +36 -19
- package/vscode/src/vs/platform/notification/common/notification.js +9 -3
- package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +4 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +50 -48
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +3 -5
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +49 -66
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +11 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +16 -2
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +230 -26
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.d.ts +1 -0
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -0
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +5 -3
- package/vscode/src/vs/platform/theme/common/colorRegistry.js +28 -9
- package/vscode/src/vs/platform/tunnel/common/tunnel.d.ts +2 -0
- package/vscode/src/vs/platform/window/common/window.js +14 -8
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +97 -78
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +1 -22
- package/vscode/src/vs/workbench/api/common/extHostChat.js +0 -6
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +31 -36
- package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostComments.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostConsoleForwarder.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +130 -6
- package/vscode/src/vs/workbench/api/common/extHostDocumentContentProviders.js +28 -15
- package/vscode/src/vs/workbench/api/common/extHostDocuments.js +4 -5
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +5 -1
- package/vscode/src/vs/workbench/api/common/extHostFileSystem.js +1 -2
- package/vscode/src/vs/workbench/api/common/extHostFileSystemConsumer.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +35 -33
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +40 -13
- package/vscode/src/vs/workbench/api/common/extHostMessageService.js +10 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +11 -7
- package/vscode/src/vs/workbench/api/common/extHostNotebookEditors.js +2 -3
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +29 -4
- package/vscode/src/vs/workbench/api/common/extHostProfileContentHandler.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostProgress.js +1 -7
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +49 -93
- package/vscode/src/vs/workbench/api/common/extHostSpeech.js +21 -0
- package/vscode/src/vs/workbench/api/common/extHostTask.js +18 -22
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +55 -36
- package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +5 -2
- package/vscode/src/vs/workbench/api/common/extHostTextEditors.js +6 -7
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +6 -3
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +74 -12
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +27 -8
- package/vscode/src/vs/workbench/api/worker/extHostConsoleForwarder.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +172 -103
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +13 -17
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +34 -34
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/dnd.js +2 -2
- package/vscode/src/vs/workbench/browser/labels.js +34 -4
- package/vscode/src/vs/workbench/browser/part.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +801 -0
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +140 -0
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +410 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.js +1 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +304 -303
- package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +101 -47
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +114 -47
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +1313 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +190 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +344 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +10 -10
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +27 -42
- package/vscode/src/vs/workbench/browser/parts/editor/editorTitleControl.js +152 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +8 -8
- package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editortitlecontrol.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/singleeditortabscontrol.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +1626 -0
- package/vscode/src/vs/workbench/browser/parts/editor/multiRowEditorTabsControl.js +150 -0
- package/vscode/src/vs/workbench/browser/parts/editor/noEditorTabsControl.js +52 -0
- package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.js +260 -0
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +39 -36
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +68 -28
- package/vscode/src/vs/workbench/browser/parts/panel/media/panelpart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +15 -14
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -17
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -10
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +2 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.d.ts +2 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +18 -17
- package/vscode/src/vs/workbench/browser/quickaccess.js +33 -1
- package/vscode/src/vs/workbench/browser/web.api.d.ts +6 -0
- package/vscode/src/vs/workbench/browser/window.js +92 -9
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +114 -65
- package/vscode/src/vs/workbench/common/component.d.ts +5 -1
- package/vscode/src/vs/workbench/common/component.js +6 -0
- package/vscode/src/vs/workbench/common/configuration.js +11 -1
- package/vscode/src/vs/workbench/common/contextkeys.js +8 -4
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +6 -0
- package/vscode/src/vs/workbench/common/editor/editorInput.js +3 -0
- package/vscode/src/vs/workbench/common/editor/filteredEditorGroupModel.js +107 -0
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +6 -3
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +21 -3
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +2 -1
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +9 -6
- package/vscode/src/vs/workbench/common/editor.d.ts +16 -4
- package/vscode/src/vs/workbench/common/editor.js +7 -1
- package/vscode/src/vs/workbench/common/memento.js +33 -12
- package/vscode/src/vs/workbench/common/notifications.js +30 -7
- package/vscode/src/vs/workbench/common/theme.js +61 -1
- package/vscode/src/vs/workbench/common/views.d.ts +1 -28
- package/vscode/src/vs/workbench/common/views.js +1 -2
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +232 -19
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +9 -9
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +1 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +19 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +8 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +57 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +9 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +31 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +93 -49
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +30 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.js +24 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +9 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +12 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +21 -43
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +0 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/{comments.contribution.js → commentsAccessibility.js} +36 -128
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +41 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +202 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +27 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +165 -52
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +48 -31
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +6 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +40 -10
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +28 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugContext.js +14 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +52 -23
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +164 -0
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +10 -0
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +285 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +123 -78
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +10 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +326 -0
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +1 -2
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +8 -9
- package/vscode/src/vs/workbench/contrib/files/browser/files.configuration.contribution.js +70 -2
- package/vscode/src/vs/workbench/contrib/files/browser/files.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/files/browser/files.fileEditorFactory.contribution.js +13 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +34 -17
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +5 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +48 -14
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +16 -8
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +317 -321
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatLivePreviewWidget.js +17 -24
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingService.js +3 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +306 -130
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +3 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +385 -613
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +69 -64
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +71 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +39 -44
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +5 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookEditorStickyScroll.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +38 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +36 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +32 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.js +24 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.js +1 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatActions.js +264 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatController.js +60 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +12 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +12 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +6 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +188 -155
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +10 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +16 -33
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +9 -7
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +6 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.js +2 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +29 -14
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +15 -3
- package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +22 -6
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +16 -17
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +78 -50
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +15 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +25 -45
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +12 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcon.js +2 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +33 -36
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +3 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +5 -8
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +15 -27
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +3 -3
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +38 -22
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.js +5 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testProfileService.js +60 -40
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.js +15 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testService.js +26 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +24 -23
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +1 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +124 -26
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +68 -0
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +76 -36
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +1 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +1 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorService.js +15 -3
- package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.js +10 -1
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +51 -43
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +13 -8
- package/vscode/src/vs/workbench/services/editor/common/editorService.js +2 -1
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +10 -10
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +7 -7
- package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.js +1 -0
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.d.ts +29 -9
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +160 -63
- package/vscode/src/vs/workbench/services/host/browser/host.d.ts +8 -0
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +60 -72
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +0 -4
- package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.js +56 -0
- package/vscode/src/vs/workbench/services/output/common/output.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +10 -0
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +10 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +2 -1
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +5 -4
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +21 -8
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +4 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +3 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +4 -4
- package/vscode/src/vs/workbench/{browser/parts/views → services/views/browser}/viewsService.js +20 -15
- package/vscode/src/vs/workbench/services/views/common/viewsService.d.ts +34 -0
- package/vscode/src/vs/workbench/services/{hover/browser/hover.js → views/common/viewsService.js} +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.d.ts +6 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +5 -2
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +1 -0
- package/vscode-dts/vscode.proposed.chatAgents2.d.ts +112 -47
- package/vscode-dts/vscode.proposed.chatAgents2Additions.d.ts +68 -9
- package/vscode-dts/{vscode.proposed.scmInputBoxActionButton.d.ts → vscode.proposed.codeActionRanges.d.ts} +8 -10
- package/vscode-dts/{vscode.proposed.readonlyMessage.d.ts → vscode.proposed.commentReactor.d.ts} +3 -4
- package/vscode-dts/vscode.proposed.contribMultiDiffEditorMenus.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemGroupMenu.d.ts +8 -0
- package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemMenu.d.ts +8 -0
- package/vscode-dts/vscode.proposed.debugVisualization.d.ts +100 -0
- package/vscode-dts/vscode.proposed.defaultChatAgent.d.ts +1 -1
- package/vscode-dts/vscode.proposed.interactive.d.ts +13 -16
- package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +4 -1
- package/vscode-dts/vscode.proposed.resolvers.d.ts +4 -0
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +4 -10
- package/vscode-dts/vscode.proposed.scmMultiDiffEditor.d.ts +34 -0
- package/vscode-dts/vscode.proposed.speech.d.ts +17 -3
- package/vscode-dts/vscode.proposed.testCoverage.d.ts +7 -1
- package/vscode-dts/vscode.proposed.tunnelFactory.d.ts +4 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/colors.js +0 -17
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorDecorations.js +0 -231
- package/vscode/src/vs/editor/browser/widget/diffEditor/outlineModel.js +0 -299
- package/vscode/src/vs/editor/browser/widget/diffEditor/workerBasedDocumentDiffProvider.js +0 -101
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +0 -390
- package/vscode/src/vs/workbench/services/editor/common/editorGroupColumn.d.ts +0 -10
- package/vscode/src/vs/workbench/services/suggest/browser/media/suggest.css.js +0 -4
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.d.ts +0 -28
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.js +0 -10
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.d.ts +0 -30
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.js +0 -98
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.d.ts +0 -10
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +0 -428
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +0 -83
- package/vscode-dts/vscode.proposed.chatVariables.d.ts +0 -39
- package/vscode-dts/vscode.proposed.interactiveUserActions.d.ts +0 -77
- package/vscode-dts/vscode.proposed.saveEditor.d.ts +0 -35
- package/vscode-dts/vscode.proposed.scmInputBoxValueProvider.d.ts +0 -25
- package/vscode-dts/vscode.proposed.testingActiveProfile.d.ts +0 -21
|
@@ -220,11 +220,13 @@ class NotebookCellTextModel extends Disposable {
|
|
|
220
220
|
const newOutput = splice.newOutputs[i];
|
|
221
221
|
this.replaceOutput(currentOutput.outputId, newOutput);
|
|
222
222
|
}
|
|
223
|
-
this.outputs.splice(splice.start + commonLen, splice.deleteCount - commonLen, ...splice.newOutputs.slice(commonLen));
|
|
223
|
+
const removed = this.outputs.splice(splice.start + commonLen, splice.deleteCount - commonLen, ...splice.newOutputs.slice(commonLen));
|
|
224
|
+
removed.forEach(output => output.dispose());
|
|
224
225
|
this._onDidChangeOutputs.fire({ start: splice.start + commonLen, deleteCount: splice.deleteCount - commonLen, newOutputs: splice.newOutputs.slice(commonLen) });
|
|
225
226
|
}
|
|
226
227
|
else {
|
|
227
|
-
this.outputs.splice(splice.start, splice.deleteCount, ...splice.newOutputs);
|
|
228
|
+
const removed = this.outputs.splice(splice.start, splice.deleteCount, ...splice.newOutputs);
|
|
229
|
+
removed.forEach(output => output.dispose());
|
|
228
230
|
this._onDidChangeOutputs.fire(splice);
|
|
229
231
|
}
|
|
230
232
|
}
|
|
@@ -234,7 +236,12 @@ class NotebookCellTextModel extends Disposable {
|
|
|
234
236
|
return false;
|
|
235
237
|
}
|
|
236
238
|
const output = this.outputs[outputIndex];
|
|
237
|
-
output.replaceData(
|
|
239
|
+
output.replaceData({
|
|
240
|
+
outputs: newOutputItem.outputs,
|
|
241
|
+
outputId: newOutputItem.outputId,
|
|
242
|
+
metadata: newOutputItem.metadata
|
|
243
|
+
});
|
|
244
|
+
newOutputItem.dispose();
|
|
238
245
|
this._onDidChangeOutputItems.fire();
|
|
239
246
|
return true;
|
|
240
247
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { isRelativePattern, parse } from '../../../../base/common/glob.js';
|
|
1
|
+
import { VSBuffer } from '../../../../base/common/buffer.js';
|
|
2
|
+
import { isRelativePattern, parse as parse$1 } from '../../../../base/common/glob.js';
|
|
3
3
|
import { Iterable } from '../../../../base/common/iterator.js';
|
|
4
4
|
import { Mimes } from '../../../../base/common/mime.js';
|
|
5
5
|
import { Schemas } from '../../../../base/common/network.js';
|
|
6
6
|
import { isWindows } from '../../../../base/common/platform.js';
|
|
7
7
|
import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
|
|
8
|
+
import { generate, parse } from '../../../services/notebook/common/notebookDocumentService.js';
|
|
8
9
|
const NOTEBOOK_EDITOR_ID = 'workbench.editor.notebook';
|
|
9
10
|
const NOTEBOOK_DIFF_EDITOR_ID = 'workbench.editor.notebookTextDiffEditor';
|
|
10
11
|
const INTERACTIVE_WINDOW_EDITOR_ID = 'workbench.editor.interactive';
|
|
@@ -74,35 +75,14 @@ var SelectionStateType;
|
|
|
74
75
|
var CellUri;
|
|
75
76
|
( (function(CellUri) {
|
|
76
77
|
CellUri.scheme = Schemas.vscodeNotebookCell;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
const _radix = 7;
|
|
80
|
-
function generate(notebook, handle) {
|
|
81
|
-
const s = ( handle.toString(_radix));
|
|
82
|
-
const p = s.length < _lengths.length ? _lengths[s.length - 1] : 'z';
|
|
83
|
-
const fragment = `${p}${s}s${encodeBase64(VSBuffer.fromString(notebook.scheme), true, true)}`;
|
|
84
|
-
return notebook.with({ scheme: CellUri.scheme, fragment });
|
|
78
|
+
function generate$1(notebook, handle) {
|
|
79
|
+
return generate(notebook, handle);
|
|
85
80
|
}
|
|
86
|
-
CellUri.generate = generate;
|
|
87
|
-
function parse(cell) {
|
|
88
|
-
|
|
89
|
-
return undefined;
|
|
90
|
-
}
|
|
91
|
-
const idx = cell.fragment.indexOf('s');
|
|
92
|
-
if (idx < 0) {
|
|
93
|
-
return undefined;
|
|
94
|
-
}
|
|
95
|
-
const handle = parseInt(cell.fragment.substring(0, idx).replace(_padRegexp, ''), _radix);
|
|
96
|
-
const _scheme = ( decodeBase64(cell.fragment.substring(idx + 1)).toString());
|
|
97
|
-
if (isNaN(handle)) {
|
|
98
|
-
return undefined;
|
|
99
|
-
}
|
|
100
|
-
return {
|
|
101
|
-
handle,
|
|
102
|
-
notebook: cell.with({ scheme: _scheme, fragment: null })
|
|
103
|
-
};
|
|
81
|
+
CellUri.generate = generate$1;
|
|
82
|
+
function parse$1(cell) {
|
|
83
|
+
return parse(cell);
|
|
104
84
|
}
|
|
105
|
-
CellUri.parse = parse;
|
|
85
|
+
CellUri.parse = parse$1;
|
|
106
86
|
function generateCellOutputUri(notebook, outputId) {
|
|
107
87
|
return notebook.with({
|
|
108
88
|
scheme: Schemas.vscodeNotebookCellOutput,
|
|
@@ -147,7 +127,7 @@ class MimeTypeDisplayOrder {
|
|
|
147
127
|
this.defaultOrder = defaultOrder;
|
|
148
128
|
this.order = ( [...( new Set(initialValue))].map(pattern => ({
|
|
149
129
|
pattern,
|
|
150
|
-
matches: parse(normalizeSlashes(pattern))
|
|
130
|
+
matches: parse$1(normalizeSlashes(pattern))
|
|
151
131
|
})));
|
|
152
132
|
}
|
|
153
133
|
sort(mimetypes) {
|
|
@@ -170,7 +150,7 @@ class MimeTypeDisplayOrder {
|
|
|
170
150
|
prioritize(chosenMimetype, otherMimetypes) {
|
|
171
151
|
const chosenIndex = this.findIndex(chosenMimetype);
|
|
172
152
|
if (chosenIndex === -1) {
|
|
173
|
-
this.order.unshift({ pattern: chosenMimetype, matches: parse(normalizeSlashes(chosenMimetype)) });
|
|
153
|
+
this.order.unshift({ pattern: chosenMimetype, matches: parse$1(normalizeSlashes(chosenMimetype)) });
|
|
174
154
|
return;
|
|
175
155
|
}
|
|
176
156
|
const uniqueIndicies = ( new Set(( otherMimetypes.map(m => this.findIndex(m, chosenIndex)))));
|
|
@@ -265,7 +245,8 @@ const NotebookSetting = {
|
|
|
265
245
|
focusIndicator: 'notebook.cellFocusIndicator',
|
|
266
246
|
insertToolbarLocation: 'notebook.insertToolbarLocation',
|
|
267
247
|
globalToolbar: 'notebook.globalToolbar',
|
|
268
|
-
|
|
248
|
+
stickyScrollEnabled: 'notebook.stickyScroll.enabled',
|
|
249
|
+
stickyScrollMode: 'notebook.stickyScroll.mode',
|
|
269
250
|
undoRedoPerCell: 'notebook.undoRedoPerCell',
|
|
270
251
|
consolidatedOutputButton: 'notebook.consolidatedOutputButton',
|
|
271
252
|
showFoldingControls: 'notebook.showFoldingControls',
|
|
@@ -279,6 +260,7 @@ const NotebookSetting = {
|
|
|
279
260
|
outputScrollingDeprecated: 'notebook.experimental.outputScrolling',
|
|
280
261
|
outputScrolling: 'notebook.output.scrolling',
|
|
281
262
|
textOutputLineLimit: 'notebook.output.textLineLimit',
|
|
263
|
+
LinkifyOutputFilePaths: 'notebook.output.linkifyFilePaths',
|
|
282
264
|
formatOnSave: 'notebook.formatOnSave.enabled',
|
|
283
265
|
insertFinalNewline: 'notebook.insertFinalNewline',
|
|
284
266
|
formatOnCellExecution: 'notebook.formatOnCellExecution',
|
|
@@ -297,7 +279,8 @@ const NotebookSetting = {
|
|
|
297
279
|
gotoSymbolsAllSymbols: 'notebook.gotoSymbols.showAllSymbols',
|
|
298
280
|
scrollToRevealCell: 'notebook.scrolling.revealNextCellOnExecute',
|
|
299
281
|
anchorToFocusedCell: 'notebook.scrolling.experimental.anchorToFocusedCell',
|
|
300
|
-
cellChat: 'notebook.experimental.cellChat'
|
|
282
|
+
cellChat: 'notebook.experimental.cellChat',
|
|
283
|
+
notebookVariablesView: 'notebook.experimental.variablesView'
|
|
301
284
|
};
|
|
302
285
|
class NotebookWorkingCopyTypeIdentifier {
|
|
303
286
|
static { this._prefix = 'notebook/'; }
|
|
@@ -14,6 +14,7 @@ import { IFilesConfigurationService } from '../../../services/filesConfiguration
|
|
|
14
14
|
import { IExtensionService } from '../../../services/extensions/common/extensions.js';
|
|
15
15
|
import { localizeWithPath } from '../../../../nls.js';
|
|
16
16
|
import { IEditorService } from '../../../services/editor/common/editorService.js';
|
|
17
|
+
import { ITextResourceConfigurationService } from '../../../../editor/common/services/textResourceConfiguration.js';
|
|
17
18
|
import { IFileDialogService } from '../../../../platform/dialogs/common/dialogs.js';
|
|
18
19
|
var NotebookEditorInput_1;
|
|
19
20
|
let NotebookEditorInput = class NotebookEditorInput extends AbstractResourceEditorInput {
|
|
@@ -35,8 +36,8 @@ let NotebookEditorInput = class NotebookEditorInput extends AbstractResourceEdit
|
|
|
35
36
|
return editor;
|
|
36
37
|
}
|
|
37
38
|
static { this.ID = 'workbench.input.notebook'; }
|
|
38
|
-
constructor(resource, preferredResource, viewType, options, _notebookService, _notebookModelResolverService, _fileDialogService, labelService, fileService, filesConfigurationService, extensionService, editorService) {
|
|
39
|
-
super(resource, preferredResource, labelService, fileService, filesConfigurationService);
|
|
39
|
+
constructor(resource, preferredResource, viewType, options, _notebookService, _notebookModelResolverService, _fileDialogService, labelService, fileService, filesConfigurationService, extensionService, editorService, textResourceConfigurationService) {
|
|
40
|
+
super(resource, preferredResource, labelService, fileService, filesConfigurationService, textResourceConfigurationService);
|
|
40
41
|
this.viewType = viewType;
|
|
41
42
|
this.options = options;
|
|
42
43
|
this._notebookService = _notebookService;
|
|
@@ -84,7 +85,7 @@ let NotebookEditorInput = class NotebookEditorInput extends AbstractResourceEdit
|
|
|
84
85
|
return this.viewType;
|
|
85
86
|
}
|
|
86
87
|
get capabilities() {
|
|
87
|
-
let capabilities =
|
|
88
|
+
let capabilities = 0 ;
|
|
88
89
|
if (this.resource.scheme === Schemas.untitled) {
|
|
89
90
|
capabilities |= 4 ;
|
|
90
91
|
}
|
|
@@ -126,7 +127,7 @@ let NotebookEditorInput = class NotebookEditorInput extends AbstractResourceEdit
|
|
|
126
127
|
if (!model || !model.isDirty() || model.hasErrorState || this.hasCapability(4 )) {
|
|
127
128
|
return false;
|
|
128
129
|
}
|
|
129
|
-
return this.filesConfigurationService.
|
|
130
|
+
return this.filesConfigurationService.hasShortAutoSaveDelay(this);
|
|
130
131
|
}
|
|
131
132
|
async save(group, options) {
|
|
132
133
|
if (this._editorModelReference) {
|
|
@@ -216,7 +217,7 @@ let NotebookEditorInput = class NotebookEditorInput extends AbstractResourceEdit
|
|
|
216
217
|
perf?.mark('extensionActivated');
|
|
217
218
|
this._sideLoadedListener.dispose();
|
|
218
219
|
if (!this._editorModelReference) {
|
|
219
|
-
const ref = await this._notebookModelResolverService.resolve(this.resource, this.viewType);
|
|
220
|
+
const ref = await this._notebookModelResolverService.resolve(this.resource, this.viewType, this.ensureLimits(_options));
|
|
220
221
|
if (this._editorModelReference) {
|
|
221
222
|
ref.dispose();
|
|
222
223
|
return this._editorModelReference.object;
|
|
@@ -235,7 +236,7 @@ let NotebookEditorInput = class NotebookEditorInput extends AbstractResourceEdit
|
|
|
235
236
|
}
|
|
236
237
|
}
|
|
237
238
|
else {
|
|
238
|
-
this._editorModelReference.object.load();
|
|
239
|
+
this._editorModelReference.object.load({ limits: this.ensureLimits(_options) });
|
|
239
240
|
}
|
|
240
241
|
if (this.options._backupId) {
|
|
241
242
|
const info = await this._notebookService.withNotebookDataProvider(this._editorModelReference.object.notebook.viewType);
|
|
@@ -285,7 +286,8 @@ NotebookEditorInput = NotebookEditorInput_1 = ( __decorate([
|
|
|
285
286
|
( __param(8, IFileService)),
|
|
286
287
|
( __param(9, IFilesConfigurationService)),
|
|
287
288
|
( __param(10, IExtensionService)),
|
|
288
|
-
( __param(11, IEditorService))
|
|
289
|
+
( __param(11, IEditorService)),
|
|
290
|
+
( __param(12, ITextResourceConfigurationService))
|
|
289
291
|
], NotebookEditorInput));
|
|
290
292
|
function isCompositeNotebookEditorInput(thing) {
|
|
291
293
|
return !!thing
|
|
@@ -100,7 +100,10 @@ let SimpleNotebookEditorModel = SimpleNotebookEditorModel_1 = class SimpleNotebo
|
|
|
100
100
|
this._workingCopy.onDidRevert(() => this._onDidRevertUntitled.fire());
|
|
101
101
|
}
|
|
102
102
|
else {
|
|
103
|
-
this._workingCopy = await this._workingCopyManager.resolve(this.resource,
|
|
103
|
+
this._workingCopy = await this._workingCopyManager.resolve(this.resource, {
|
|
104
|
+
limits: options?.limits,
|
|
105
|
+
reload: options?.forceReadFromFile ? { async: false, force: true } : undefined
|
|
106
|
+
});
|
|
104
107
|
this._workingCopyListeners.add(this._workingCopy.onDidSave(e => this._onDidSave.fire(e)));
|
|
105
108
|
this._workingCopyListeners.add(this._workingCopy.onDidChangeOrphaned(() => this._onDidChangeOrphaned.fire()));
|
|
106
109
|
this._workingCopyListeners.add(this._workingCopy.onDidChangeReadonly(() => this._onDidChangeReadonly.fire()));
|
|
@@ -116,7 +119,8 @@ let SimpleNotebookEditorModel = SimpleNotebookEditorModel_1 = class SimpleNotebo
|
|
|
116
119
|
reload: {
|
|
117
120
|
async: !options?.forceReadFromFile,
|
|
118
121
|
force: options?.forceReadFromFile
|
|
119
|
-
}
|
|
122
|
+
},
|
|
123
|
+
limits: options?.limits
|
|
120
124
|
});
|
|
121
125
|
}
|
|
122
126
|
assertType(this.isResolved());
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createDecorator } from '../../../../platform/instantiation/common/instantiation.js';
|
|
2
|
+
const variablePageSize = 100;
|
|
2
3
|
const INotebookKernelService = ( createDecorator('INotebookKernelService'));
|
|
3
4
|
const INotebookKernelHistoryService = ( createDecorator('INotebookKernelHistoryService'));
|
|
4
|
-
export { INotebookKernelHistoryService, INotebookKernelService };
|
|
5
|
+
export { INotebookKernelHistoryService, INotebookKernelService, variablePageSize };
|
|
@@ -2,7 +2,7 @@ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.e
|
|
|
2
2
|
import { localizeWithPath } from '../../../../nls.js';
|
|
3
3
|
import { Disposable } from '../../../../base/common/lifecycle.js';
|
|
4
4
|
import { Extensions } from '../../../common/views.js';
|
|
5
|
-
import { TUNNEL_VIEW_ID, TUNNEL_VIEW_CONTAINER_ID, PORT_AUTO_SOURCE_SETTING, PORT_AUTO_SOURCE_SETTING_PROCESS, PORT_AUTO_SOURCE_SETTING_HYBRID, PORT_AUTO_SOURCE_SETTING_OUTPUT, PORT_AUTO_FORWARD_SETTING, IRemoteExplorerService } from '../../../services/remote/common/remoteExplorerService.js';
|
|
5
|
+
import { TUNNEL_VIEW_ID, TUNNEL_VIEW_CONTAINER_ID, PORT_AUTO_SOURCE_SETTING, PORT_AUTO_FALLBACK_SETTING, PORT_AUTO_SOURCE_SETTING_PROCESS, PORT_AUTO_SOURCE_SETTING_HYBRID, PORT_AUTO_SOURCE_SETTING_OUTPUT, PORT_AUTO_FORWARD_SETTING, IRemoteExplorerService } from '../../../services/remote/common/remoteExplorerService.js';
|
|
6
6
|
import { OnPortForward, mapHasAddressLocalhostOrAllInterfaces, TunnelCloseReason, AutoTunnelSource, forwardedPortsViewEnabled, TunnelSource, makeAddress } from '../../../services/remote/common/tunnelModel.js';
|
|
7
7
|
import { OpenPortInPreviewAction, OpenPortInBrowserAction, openPreviewEnabledContext, ForwardPortAction, TunnelPanel, TunnelPanelDescriptor, TunnelViewModel } from './tunnelView.js';
|
|
8
8
|
import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
|
|
@@ -29,10 +29,9 @@ import { Extensions as Extensions$1 } from '../../../../platform/configuration/c
|
|
|
29
29
|
import { ILogService } from '../../../../platform/log/common/log.js';
|
|
30
30
|
import { IWorkbenchConfigurationService } from '../../../services/configuration/common/configuration.js';
|
|
31
31
|
import { Action } from '../../../../base/common/actions.js';
|
|
32
|
-
import { IStorageService } from '../../../../platform/storage/common/storage.js';
|
|
33
32
|
import { IPreferencesService } from '../../../services/preferences/common/preferences.js';
|
|
33
|
+
import { IStorageService } from '../../../../platform/storage/common/storage.js';
|
|
34
34
|
const VIEWLET_ID = 'workbench.view.remote';
|
|
35
|
-
const CAN_PROC_FALLBACK = 'processPortForwardingFallback';
|
|
36
35
|
let ForwardedPortsView = class ForwardedPortsView extends Disposable {
|
|
37
36
|
constructor(contextKeyService, environmentService, remoteExplorerService, tunnelService, activityService, statusbarService) {
|
|
38
37
|
super();
|
|
@@ -232,16 +231,29 @@ let AutomaticPortForwarding = class AutomaticPortForwarding extends Disposable {
|
|
|
232
231
|
if (e.affectsConfiguration(PORT_AUTO_SOURCE_SETTING)) {
|
|
233
232
|
this.setup(environment);
|
|
234
233
|
}
|
|
234
|
+
else if (e.affectsConfiguration(PORT_AUTO_FALLBACK_SETTING) && !this.portListener) {
|
|
235
|
+
this.listenForPorts();
|
|
236
|
+
}
|
|
235
237
|
}));
|
|
236
238
|
});
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
239
|
+
if (!this.storageService.getBoolean('processPortForwardingFallback', 1 , true)) {
|
|
240
|
+
this.configurationService.updateValue(PORT_AUTO_FALLBACK_SETTING, 0, 5 );
|
|
241
|
+
}
|
|
240
242
|
}
|
|
241
243
|
listenForPorts() {
|
|
242
|
-
|
|
244
|
+
let fallbackAt = this.configurationService.getValue(PORT_AUTO_FALLBACK_SETTING);
|
|
245
|
+
if (fallbackAt === 0) {
|
|
246
|
+
this.portListener?.dispose();
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
if (this.procForwarder && !this.portListener && (this.configurationService.getValue(PORT_AUTO_SOURCE_SETTING) === PORT_AUTO_SOURCE_SETTING_PROCESS)) {
|
|
243
250
|
this.portListener = this._register(this.remoteExplorerService.tunnelModel.onForwardPort(async () => {
|
|
244
|
-
|
|
251
|
+
fallbackAt = this.configurationService.getValue(PORT_AUTO_FALLBACK_SETTING);
|
|
252
|
+
if (fallbackAt === 0) {
|
|
253
|
+
this.portListener?.dispose();
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
256
|
+
if (Array.from(( this.remoteExplorerService.tunnelModel.forwarded.values())).filter(tunnel => tunnel.source.source === TunnelSource.Auto).length > fallbackAt) {
|
|
245
257
|
await this.configurationService.updateValue(PORT_AUTO_SOURCE_SETTING, PORT_AUTO_SOURCE_SETTING_HYBRID);
|
|
246
258
|
this.notificationService.notify({
|
|
247
259
|
message: ( localizeWithPath(
|
|
@@ -258,7 +270,7 @@ let AutomaticPortForwarding = class AutomaticPortForwarding extends Disposable {
|
|
|
258
270
|
"Undo"
|
|
259
271
|
)), undefined, true, async () => {
|
|
260
272
|
await this.configurationService.updateValue(PORT_AUTO_SOURCE_SETTING, PORT_AUTO_SOURCE_SETTING_PROCESS);
|
|
261
|
-
this.
|
|
273
|
+
await this.configurationService.updateValue(PORT_AUTO_FALLBACK_SETTING, 0, 5 );
|
|
262
274
|
this.portListener?.dispose();
|
|
263
275
|
this.portListener = undefined;
|
|
264
276
|
})),
|
|
@@ -470,11 +482,14 @@ class OnAutoForwardedAction extends Disposable {
|
|
|
470
482
|
}, 3000);
|
|
471
483
|
}));
|
|
472
484
|
}
|
|
473
|
-
basicMessage(tunnel) {
|
|
485
|
+
async basicMessage(tunnel) {
|
|
486
|
+
const properties = await this.remoteExplorerService.tunnelModel.getAttributes([{ host: tunnel.tunnelRemoteHost, port: tunnel.tunnelRemotePort }], false);
|
|
487
|
+
const label = properties?.get(tunnel.tunnelRemotePort)?.label;
|
|
474
488
|
return ( localizeWithPath(
|
|
475
489
|
'vs/workbench/contrib/remote/browser/remoteExplorer',
|
|
476
490
|
'remote.tunnelsView.automaticForward',
|
|
477
|
-
"Your application running on port {
|
|
491
|
+
"Your application{0} running on port {1} is available. ",
|
|
492
|
+
label ? ` (${label})` : '',
|
|
478
493
|
tunnel.tunnelRemotePort
|
|
479
494
|
));
|
|
480
495
|
}
|
|
@@ -491,7 +506,7 @@ class OnAutoForwardedAction extends Disposable {
|
|
|
491
506
|
return;
|
|
492
507
|
}
|
|
493
508
|
this.lastNotification?.close();
|
|
494
|
-
let message = this.basicMessage(tunnel);
|
|
509
|
+
let message = await this.basicMessage(tunnel);
|
|
495
510
|
const choices = [this.openBrowserChoice(tunnel)];
|
|
496
511
|
if (!isWeb || openPreviewEnabledContext.getValue(this.contextKeyService)) {
|
|
497
512
|
choices.push(this.openPreviewChoice(tunnel));
|
|
@@ -573,7 +588,7 @@ class OnAutoForwardedAction extends Disposable {
|
|
|
573
588
|
}
|
|
574
589
|
this.lastNotification?.close();
|
|
575
590
|
this.lastShownPort = newTunnel.tunnelRemotePort;
|
|
576
|
-
this.lastNotification = this.notificationService.prompt(Severity.Info, this.basicMessage(newTunnel) + this.linkMessage(), [this.openBrowserChoice(newTunnel), this.openPreviewChoice(tunnel)], { neverShowAgain: { id: 'remote.tunnelsView.autoForwardNeverShow', isSecondary: true } });
|
|
591
|
+
this.lastNotification = this.notificationService.prompt(Severity.Info, (await this.basicMessage(newTunnel)) + this.linkMessage(), [this.openBrowserChoice(newTunnel), this.openPreviewChoice(tunnel)], { neverShowAgain: { id: 'remote.tunnelsView.autoForwardNeverShow', isSecondary: true } });
|
|
577
592
|
this.lastNotification.onDidClose(() => {
|
|
578
593
|
this.lastNotification = undefined;
|
|
579
594
|
this.lastShownPort = undefined;
|
|
@@ -844,4 +859,4 @@ class ProcAutomaticPortForwarding extends Disposable {
|
|
|
844
859
|
}
|
|
845
860
|
}
|
|
846
861
|
}
|
|
847
|
-
export { AutomaticPortForwarding,
|
|
862
|
+
export { AutomaticPortForwarding, ForwardedPortsView, PortRestore, VIEWLET_ID };
|
|
@@ -2,7 +2,8 @@ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.e
|
|
|
2
2
|
import './media/tunnelView.css.js';
|
|
3
3
|
import { localize2WithPath, localizeWithPath } from '../../../../nls.js';
|
|
4
4
|
import { clearNode, append, $, addStandardDisposableListener, EventType, addDisposableListener } from '../../../../base/browser/dom.js';
|
|
5
|
-
import {
|
|
5
|
+
import { IViewDescriptorService } from '../../../common/views.js';
|
|
6
|
+
import { IViewsService } from '../../../services/views/common/viewsService.js';
|
|
6
7
|
import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.js';
|
|
7
8
|
import { IContextViewService, IContextMenuService } from '../../../../platform/contextview/browser/contextView.js';
|
|
8
9
|
import { ContextKeyExpr, RawContextKey, IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
|
|
@@ -40,7 +41,7 @@ import { WorkbenchTable } from '../../../../platform/list/browser/listService.js
|
|
|
40
41
|
import { Button } from '../../../../base/browser/ui/button/button.js';
|
|
41
42
|
import { registerColor } from '../../../../platform/theme/common/colorRegistry.js';
|
|
42
43
|
import { MarkdownString } from '../../../../base/common/htmlContent.js';
|
|
43
|
-
import { IHoverService } from '
|
|
44
|
+
import { IHoverService } from '../../../../platform/hover/browser/hover.js';
|
|
44
45
|
import { STATUS_BAR_REMOTE_ITEM_BACKGROUND } from '../../../common/theme.js';
|
|
45
46
|
import { Codicon } from '../../../../base/common/codicons.js';
|
|
46
47
|
import { defaultButtonStyles, defaultInputBoxStyles } from '../../../../platform/theme/browser/defaultStyles.js';
|
|
@@ -781,6 +782,7 @@ const TunnelViewSelectionContextKey = ( new RawContextKey(TunnelViewSelectionKey
|
|
|
781
782
|
const TunnelViewMultiSelectionKeyName = 'tunnelViewMultiSelection';
|
|
782
783
|
const TunnelViewMultiSelectionContextKey = ( new RawContextKey(TunnelViewMultiSelectionKeyName, undefined, true));
|
|
783
784
|
const PortChangableContextKey = ( new RawContextKey('portChangable', false, true));
|
|
785
|
+
const ProtocolChangeableContextKey = ( new RawContextKey('protocolChangable', true, true));
|
|
784
786
|
let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
785
787
|
static { TunnelPanel_1 = this; }
|
|
786
788
|
static { this.ID = TUNNEL_VIEW_ID; }
|
|
@@ -806,6 +808,8 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
806
808
|
this.tunnelPrivacyContext = TunnelPrivacyContextKey.bindTo(contextKeyService);
|
|
807
809
|
this.tunnelPrivacyEnabledContext = TunnelPrivacyEnabledContextKey.bindTo(contextKeyService);
|
|
808
810
|
this.tunnelPrivacyEnabledContext.set(tunnelService.canChangePrivacy);
|
|
811
|
+
this.protocolChangableContextKey = ProtocolChangeableContextKey.bindTo(contextKeyService);
|
|
812
|
+
this.protocolChangableContextKey.set(tunnelService.canChangeProtocol);
|
|
809
813
|
this.tunnelProtocolContext = TunnelProtocolContextKey.bindTo(contextKeyService);
|
|
810
814
|
this.tunnelViewFocusContext = TunnelViewFocusContextKey.bindTo(contextKeyService);
|
|
811
815
|
this.tunnelViewSelectionContext = TunnelViewSelectionContextKey.bindTo(contextKeyService);
|
|
@@ -825,8 +829,16 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
825
829
|
}));
|
|
826
830
|
this.registerPrivacyActions();
|
|
827
831
|
this._register(Event.once(this.tunnelService.onAddedTunnelProvider)(() => {
|
|
832
|
+
let updated = false;
|
|
828
833
|
if (this.tunnelPrivacyEnabledContext.get() === false) {
|
|
829
834
|
this.tunnelPrivacyEnabledContext.set(tunnelService.canChangePrivacy);
|
|
835
|
+
updated = true;
|
|
836
|
+
}
|
|
837
|
+
if (this.protocolChangableContextKey.get() === true) {
|
|
838
|
+
this.protocolChangableContextKey.set(tunnelService.canChangeProtocol);
|
|
839
|
+
updated = true;
|
|
840
|
+
}
|
|
841
|
+
if (updated) {
|
|
830
842
|
updateActions();
|
|
831
843
|
this.registerPrivacyActions();
|
|
832
844
|
this.createTable();
|
|
@@ -1837,7 +1849,7 @@ MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
|
1837
1849
|
'tunnelContext.protocolMenu',
|
|
1838
1850
|
"Change Port Protocol"
|
|
1839
1851
|
)),
|
|
1840
|
-
when: ( ContextKeyExpr.and(isForwardedExpr, isNotMultiSelectionExpr))
|
|
1852
|
+
when: ( ContextKeyExpr.and(isForwardedExpr, isNotMultiSelectionExpr, ProtocolChangeableContextKey))
|
|
1841
1853
|
}));
|
|
1842
1854
|
MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
1843
1855
|
group: '3_forward',
|
|
@@ -2,7 +2,7 @@ import { Emitter } from '../../../../base/common/event.js';
|
|
|
2
2
|
import { Disposable } from '../../../../base/common/lifecycle.js';
|
|
3
3
|
class UrlFinder extends Disposable {
|
|
4
4
|
static { this.terminalCodesRegex = /(?:\u001B|\u009B)[\[\]()#;?]*(?:(?:(?:[a-zA-Z0-9]*(?:;[a-zA-Z0-9]*)*)?\u0007)|(?:(?:\d{1,4}(?:;\d{0,4})*)?[0-9A-PR-TZcf-ntqry=><~]))/g; }
|
|
5
|
-
static { this.localUrlRegex = /\b\w{
|
|
5
|
+
static { this.localUrlRegex = /\b\w{0,20}(?::\/\/)?(?:localhost|127\.0\.0\.1|0\.0\.0\.0|:\d{2,5})[\w\-\.\~:\/\?\#[\]\@!\$&\(\)\*\+\,\;\=]*/gim; }
|
|
6
6
|
static { this.extractPortRegex = /(localhost|127\.0\.0\.1|0\.0\.0\.0):(\d{1,5})/; }
|
|
7
7
|
static { this.localPythonServerRegex = /HTTP\son\s(127\.0\.0\.1|0\.0\.0\.0)\sport\s(\d+)/; }
|
|
8
8
|
static { this.excludeTerminals = ['Dev Containers']; }
|
|
@@ -29,7 +29,7 @@ class UrlFinder extends Disposable {
|
|
|
29
29
|
}));
|
|
30
30
|
}
|
|
31
31
|
}));
|
|
32
|
-
this._register(debugService.onDidEndSession(session => {
|
|
32
|
+
this._register(debugService.onDidEndSession(({ session }) => {
|
|
33
33
|
if (( this.listeners.has(session.getId()))) {
|
|
34
34
|
this.listeners.get(session.getId())?.dispose();
|
|
35
35
|
this.listeners.delete(session.getId());
|
|
@@ -350,6 +350,7 @@ let DirtyDiffWidget = class DirtyDiffWidget extends PeekViewWidget {
|
|
|
350
350
|
readOnly: false,
|
|
351
351
|
renderIndicators: false,
|
|
352
352
|
diffAlgorithm: 'advanced',
|
|
353
|
+
ignoreTrimWhitespace: false,
|
|
353
354
|
stickyScroll: { enabled: false }
|
|
354
355
|
};
|
|
355
356
|
this.diffEditor = this.instantiationService.createInstance(EmbeddedDiffEditorWidget, container, options, {}, this.editor);
|
|
@@ -932,13 +933,14 @@ const overviewRulerDeletedForeground = registerColor('editorOverviewRuler.delete
|
|
|
932
933
|
'Overview ruler marker color for deleted content.'
|
|
933
934
|
)));
|
|
934
935
|
let DirtyDiffDecorator = DirtyDiffDecorator_1 = class DirtyDiffDecorator extends Disposable {
|
|
935
|
-
static createDecoration(className, options) {
|
|
936
|
+
static createDecoration(className, tooltip, options) {
|
|
936
937
|
const decorationOptions = {
|
|
937
938
|
description: 'dirty-diff-decoration',
|
|
938
939
|
isWholeLine: options.isWholeLine,
|
|
939
940
|
};
|
|
940
941
|
if (options.gutter) {
|
|
941
942
|
decorationOptions.linesDecorationsClassName = `dirty-diff-glyph ${className}`;
|
|
943
|
+
decorationOptions.linesDecorationsTooltip = tooltip;
|
|
942
944
|
}
|
|
943
945
|
if (options.overview.active) {
|
|
944
946
|
decorationOptions.overviewRuler = {
|
|
@@ -964,31 +966,45 @@ let DirtyDiffDecorator = DirtyDiffDecorator_1 = class DirtyDiffDecorator extends
|
|
|
964
966
|
const gutter = decorations === 'all' || decorations === 'gutter';
|
|
965
967
|
const overview = decorations === 'all' || decorations === 'overview';
|
|
966
968
|
const minimap = decorations === 'all' || decorations === 'minimap';
|
|
967
|
-
|
|
969
|
+
const diffAdded = ( localizeWithPath(
|
|
970
|
+
'vs/workbench/contrib/scm/browser/dirtydiffDecorator',
|
|
971
|
+
'diffAdded',
|
|
972
|
+
'Added lines'
|
|
973
|
+
));
|
|
974
|
+
this.addedOptions = DirtyDiffDecorator_1.createDecoration('dirty-diff-added', diffAdded, {
|
|
968
975
|
gutter,
|
|
969
976
|
overview: { active: overview, color: overviewRulerAddedForeground },
|
|
970
977
|
minimap: { active: minimap, color: minimapGutterAddedBackground },
|
|
971
978
|
isWholeLine: true
|
|
972
979
|
});
|
|
973
|
-
this.addedPatternOptions = DirtyDiffDecorator_1.createDecoration('dirty-diff-added-pattern', {
|
|
980
|
+
this.addedPatternOptions = DirtyDiffDecorator_1.createDecoration('dirty-diff-added-pattern', diffAdded, {
|
|
974
981
|
gutter,
|
|
975
982
|
overview: { active: overview, color: overviewRulerAddedForeground },
|
|
976
983
|
minimap: { active: minimap, color: minimapGutterAddedBackground },
|
|
977
984
|
isWholeLine: true
|
|
978
985
|
});
|
|
979
|
-
|
|
986
|
+
const diffModified = ( localizeWithPath(
|
|
987
|
+
'vs/workbench/contrib/scm/browser/dirtydiffDecorator',
|
|
988
|
+
'diffModified',
|
|
989
|
+
'Changed lines'
|
|
990
|
+
));
|
|
991
|
+
this.modifiedOptions = DirtyDiffDecorator_1.createDecoration('dirty-diff-modified', diffModified, {
|
|
980
992
|
gutter,
|
|
981
993
|
overview: { active: overview, color: overviewRulerModifiedForeground },
|
|
982
994
|
minimap: { active: minimap, color: minimapGutterModifiedBackground },
|
|
983
995
|
isWholeLine: true
|
|
984
996
|
});
|
|
985
|
-
this.modifiedPatternOptions = DirtyDiffDecorator_1.createDecoration('dirty-diff-modified-pattern', {
|
|
997
|
+
this.modifiedPatternOptions = DirtyDiffDecorator_1.createDecoration('dirty-diff-modified-pattern', diffModified, {
|
|
986
998
|
gutter,
|
|
987
999
|
overview: { active: overview, color: overviewRulerModifiedForeground },
|
|
988
1000
|
minimap: { active: minimap, color: minimapGutterModifiedBackground },
|
|
989
1001
|
isWholeLine: true
|
|
990
1002
|
});
|
|
991
|
-
this.deletedOptions = DirtyDiffDecorator_1.createDecoration('dirty-diff-deleted',
|
|
1003
|
+
this.deletedOptions = DirtyDiffDecorator_1.createDecoration('dirty-diff-deleted', ( localizeWithPath(
|
|
1004
|
+
'vs/workbench/contrib/scm/browser/dirtydiffDecorator',
|
|
1005
|
+
'diffDeleted',
|
|
1006
|
+
'Removed lines'
|
|
1007
|
+
)), {
|
|
992
1008
|
gutter,
|
|
993
1009
|
overview: { active: overview, color: overviewRulerDeletedForeground },
|
|
994
1010
|
minimap: { active: minimap, color: minimapGutterDeletedBackground },
|
|
@@ -3,7 +3,7 @@ import { localizeWithPath } from '../../../../nls.js';
|
|
|
3
3
|
import { ICommandService } from '../../../../platform/commands/common/commands.js';
|
|
4
4
|
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
|
|
5
5
|
import { IListService } from '../../../../platform/list/browser/listService.js';
|
|
6
|
-
import { IViewsService } from '../../../common/
|
|
6
|
+
import { IViewsService } from '../../../services/views/common/viewsService.js';
|
|
7
7
|
import { RestrictSearchToFolderId, SearchViewVisibleKey, ResourceFolderFocusKey, ExcludeFolderFromSearchId, RevealInSideBarForSearchResults, FileFocusKey, HasSearchResults, FindInFilesActionId, FindInFolderId, FindInWorkspaceId } from '../common/constants.js';
|
|
8
8
|
import { OpenEditorCommandId } from '../../searchEditor/browser/constants.js';
|
|
9
9
|
import { FileMatch, Match } from './searchModel.js';
|
|
@@ -69,15 +69,15 @@ class Match {
|
|
|
69
69
|
return this._range;
|
|
70
70
|
}
|
|
71
71
|
preview() {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
before = before.trimStart();
|
|
72
|
+
const fullBefore = this._oneLinePreviewText.substring(0, this._rangeInPreviewText.startColumn - 1), before = lcut(fullBefore, 26, '…');
|
|
73
|
+
let inside = this.getMatchString(), after = this._oneLinePreviewText.substring(this._rangeInPreviewText.endColumn - 1);
|
|
75
74
|
let charsRemaining = Match.MAX_PREVIEW_CHARS - before.length;
|
|
76
75
|
inside = inside.substr(0, charsRemaining);
|
|
77
76
|
charsRemaining -= inside.length;
|
|
78
77
|
after = after.substr(0, charsRemaining);
|
|
79
78
|
return {
|
|
80
79
|
before,
|
|
80
|
+
fullBefore,
|
|
81
81
|
inside,
|
|
82
82
|
after,
|
|
83
83
|
};
|
|
@@ -1577,6 +1577,11 @@ SearchResult = ( __decorate([
|
|
|
1577
1577
|
( __param(4, IUriIdentityService)),
|
|
1578
1578
|
( __param(5, INotebookEditorService))
|
|
1579
1579
|
], SearchResult));
|
|
1580
|
+
var SearchModelLocation;
|
|
1581
|
+
( (function(SearchModelLocation) {
|
|
1582
|
+
SearchModelLocation[SearchModelLocation["PANEL"] = 0] = "PANEL";
|
|
1583
|
+
SearchModelLocation[SearchModelLocation["QUICK_ACCESS"] = 1] = "QUICK_ACCESS";
|
|
1584
|
+
})(SearchModelLocation || (SearchModelLocation = {})));
|
|
1580
1585
|
let SearchModel = class SearchModel extends Disposable {
|
|
1581
1586
|
constructor(searchService, telemetryService, configurationService, instantiationService, logService, notebookSearchService) {
|
|
1582
1587
|
super();
|
|
@@ -1601,8 +1606,9 @@ let SearchModel = class SearchModel extends Disposable {
|
|
|
1601
1606
|
this.onSearchResultChanged = this._onSearchResultChanged.event;
|
|
1602
1607
|
this.currentCancelTokenSource = null;
|
|
1603
1608
|
this.searchCancelledForNewSearch = false;
|
|
1609
|
+
this.location = SearchModelLocation.PANEL;
|
|
1604
1610
|
this._searchResult = this.instantiationService.createInstance(SearchResult, this);
|
|
1605
|
-
this.
|
|
1611
|
+
this._register(this._searchResult.onChange((e) => this._onSearchResultChanged.fire(e)));
|
|
1606
1612
|
}
|
|
1607
1613
|
isReplaceActive() {
|
|
1608
1614
|
return this._replaceActive;
|
|
@@ -1632,13 +1638,6 @@ let SearchModel = class SearchModel extends Disposable {
|
|
|
1632
1638
|
get searchResult() {
|
|
1633
1639
|
return this._searchResult;
|
|
1634
1640
|
}
|
|
1635
|
-
set searchResult(searchResult) {
|
|
1636
|
-
this._searchResult.dispose();
|
|
1637
|
-
this._searchResultChangedListener.dispose();
|
|
1638
|
-
this._searchResult = searchResult;
|
|
1639
|
-
this._searchResult.searchModel = this;
|
|
1640
|
-
this._searchResultChangedListener = this._register(this._searchResult.onChange((e) => this._onSearchResultChanged.fire(e)));
|
|
1641
|
-
}
|
|
1642
1641
|
doSearch(query, progressEmitter, searchQuery, searchInstanceID, onProgress, callerToken) {
|
|
1643
1642
|
const asyncGenerateOnProgress = async (p) => {
|
|
1644
1643
|
progressEmitter.fire();
|
|
@@ -1754,7 +1753,7 @@ let SearchModel = class SearchModel extends Disposable {
|
|
|
1754
1753
|
if (isCancellationError(e)) {
|
|
1755
1754
|
this.onSearchCompleted(this.searchCancelledForNewSearch
|
|
1756
1755
|
? { exit: 1 , results: [], messages: [] }
|
|
1757
|
-
:
|
|
1756
|
+
: undefined, duration, '');
|
|
1758
1757
|
this.searchCancelledForNewSearch = false;
|
|
1759
1758
|
}
|
|
1760
1759
|
}
|
|
@@ -1793,10 +1792,6 @@ let SearchModel = class SearchModel extends Disposable {
|
|
|
1793
1792
|
this.searchResult.dispose();
|
|
1794
1793
|
super.dispose();
|
|
1795
1794
|
}
|
|
1796
|
-
transferSearchResult(other) {
|
|
1797
|
-
other.searchResult = this._searchResult;
|
|
1798
|
-
this._searchResult = this.instantiationService.createInstance(SearchResult, this);
|
|
1799
|
-
}
|
|
1800
1795
|
};
|
|
1801
1796
|
SearchModel = ( __decorate([
|
|
1802
1797
|
( __param(0, ISearchService)),
|
|
@@ -1817,6 +1812,10 @@ let SearchViewModelWorkbenchService = class SearchViewModelWorkbenchService {
|
|
|
1817
1812
|
}
|
|
1818
1813
|
return this._searchModel;
|
|
1819
1814
|
}
|
|
1815
|
+
set searchModel(searchModel) {
|
|
1816
|
+
this._searchModel?.dispose();
|
|
1817
|
+
this._searchModel = searchModel;
|
|
1818
|
+
}
|
|
1820
1819
|
};
|
|
1821
1820
|
SearchViewModelWorkbenchService = ( __decorate([
|
|
1822
1821
|
( __param(0, IInstantiationService))
|
|
@@ -1971,4 +1970,4 @@ function mergeSearchResultEvents(events) {
|
|
|
1971
1970
|
});
|
|
1972
1971
|
return retEvent;
|
|
1973
1972
|
}
|
|
1974
|
-
export { CellMatch, FileMatch, FolderMatch, FolderMatchNoRoot, FolderMatchWithResource, FolderMatchWorkspaceRoot, ISearchViewModelWorkbenchService, Match, MatchInNotebook, RangeHighlightDecorations, SearchModel, SearchResult, SearchViewModelWorkbenchService, arrayContainsElementOrParent, compareNotebookPos, searchComparer, searchMatchComparer, textSearchMatchesToNotebookMatches };
|
|
1973
|
+
export { CellMatch, FileMatch, FolderMatch, FolderMatchNoRoot, FolderMatchWithResource, FolderMatchWorkspaceRoot, ISearchViewModelWorkbenchService, Match, MatchInNotebook, RangeHighlightDecorations, SearchModel, SearchModelLocation, SearchResult, SearchViewModelWorkbenchService, arrayContainsElementOrParent, compareNotebookPos, searchComparer, searchMatchComparer, textSearchMatchesToNotebookMatches };
|