@codingame/monaco-vscode-api 6.0.3 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -73
- package/api.js +1 -1
- package/debugProtocol.d.ts +10 -1
- package/extensions.d.ts +2 -0
- package/missing-services.js +21 -2
- package/package.json +9 -9
- package/service-override/extensions.d.ts +1 -2
- package/services.js +4 -2
- package/vscode/src/vs/base/browser/dnd.js +1 -1
- package/vscode/src/vs/base/browser/dom.js +116 -5
- package/vscode/src/vs/base/browser/domObservable.js +16 -0
- package/vscode/src/vs/base/browser/markdownRenderer.js +5 -3
- package/vscode/src/vs/base/browser/trustedTypes.js +1 -2
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +1 -1
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +1 -1
- package/vscode/src/vs/base/browser/ui/button/button.js +2 -2
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +1 -4
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +1 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.js +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hover.d.ts +32 -16
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate2.js +2 -2
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -0
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +1 -1
- package/vscode/src/vs/base/browser/ui/iconLabel/simpleIconLabel.js +1 -1
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +1 -1
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +1 -1
- package/vscode/src/vs/base/browser/ui/list/listView.js +3 -5
- package/vscode/src/vs/base/browser/ui/list/rowCache.js +1 -8
- package/vscode/src/vs/base/browser/ui/sash/sash.js +1 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +7 -11
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/splitview.js +1 -1
- package/vscode/src/vs/base/browser/ui/table/tableWidget.js +1 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +8 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +2 -3
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +0 -3
- package/vscode/src/vs/base/common/assert.js +1 -1
- package/vscode/src/vs/base/common/collections.js +49 -1
- package/vscode/src/vs/base/common/equals.js +55 -5
- package/vscode/src/vs/base/common/errors.js +14 -1
- package/vscode/src/vs/base/common/event.js +2 -1
- package/vscode/src/vs/base/common/history.js +7 -4
- package/vscode/src/vs/base/common/iterator.js +9 -1
- package/vscode/src/vs/base/common/map.d.ts +41 -0
- package/vscode/src/vs/base/common/numbers.js +18 -1
- package/vscode/src/vs/base/common/observableInternal/api.js +11 -0
- package/vscode/src/vs/base/common/observableInternal/autorun.js +18 -1
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +8 -1
- package/vscode/src/vs/base/common/observableInternal/base.js +2 -5
- package/vscode/src/vs/base/common/observableInternal/derived.js +13 -3
- package/vscode/src/vs/base/common/observableInternal/lazyObservableValue.js +109 -0
- package/vscode/src/vs/base/common/observableInternal/promise.js +3 -0
- package/vscode/src/vs/base/common/observableInternal/utils.d.ts +7 -0
- package/vscode/src/vs/base/common/observableInternal/utils.js +64 -12
- package/vscode/src/vs/base/common/prefixTree.d.ts +52 -0
- package/vscode/src/vs/base/common/product.d.ts +1 -0
- package/vscode/src/vs/base/parts/ipc/common/ipc.js +1 -1
- package/vscode/src/vs/editor/browser/config/charWidthReader.js +1 -1
- package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +1 -1
- package/vscode/src/vs/editor/browser/coreCommands.js +2 -1
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +230 -0
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +26 -26
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +2 -2
- package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.js +1 -1
- package/vscode/src/vs/editor/browser/view/viewLayer.js +4 -12
- package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/viewZones/viewZones.js +2 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +15 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +8 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +4 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +14 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +3 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +2 -2
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +1 -1
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +5 -0
- package/vscode/src/vs/editor/common/config/editorOptions.js +83 -65
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +43 -43
- package/vscode/src/vs/editor/common/cursor/cursor.js +3 -2
- package/vscode/src/vs/editor/common/cursor/cursorTypeEditOperations.js +911 -0
- package/vscode/src/vs/editor/common/cursor/cursorTypeOperations.js +36 -799
- package/vscode/src/vs/editor/common/cursor/cursorWordOperations.js +6 -5
- package/vscode/src/vs/editor/common/languageFeatureRegistry.d.ts +1 -0
- package/vscode/src/vs/editor/common/languageFeatureRegistry.js +3 -0
- package/vscode/src/vs/editor/common/languages/autoIndent.js +23 -1
- package/vscode/src/vs/editor/common/languages.d.ts +20 -3
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.js +6 -6
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js +19 -0
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.js +3 -0
- package/vscode/src/vs/editor/common/model/textModel.js +6 -2
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +5 -5
- package/vscode/src/vs/editor/common/model.d.ts +4 -0
- package/vscode/src/vs/editor/common/services/getIconClasses.js +1 -1
- package/vscode/src/vs/editor/common/services/semanticTokensProviderStyling.js +2 -15
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +63 -62
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +11 -8
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +2 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +18 -5
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +55 -27
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +7 -4
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +1 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +103 -47
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +18 -10
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +2 -4
- package/vscode/src/vs/editor/contrib/folding/browser/folding.css.js +1 -1
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +33 -13
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +12 -7
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +161 -185
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +321 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverStatusBar.js +4 -1
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverTypes.js +6 -21
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.js +39 -40
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +55 -46
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +12 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverController.js +15 -9
- package/vscode/src/vs/editor/contrib/hover/browser/hoverTypes.js +11 -1
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +141 -93
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +24 -7
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +36 -1
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +5 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostTextWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +25 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +88 -118
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +34 -33
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsSource.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/provideInlineCompletions.js +11 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/suggestWidgetInlineCompletionProvider.js +10 -19
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/hoverParticipant.js +45 -27
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +4 -4
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/commands.js +126 -0
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/consts.js +9 -0
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEdits.contribution.js +9 -0
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEditsController.js +82 -0
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEditsModel.js +240 -0
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEditsWidget.css.js +4 -0
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEditsWidget.js +322 -0
- package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgress.js +8 -4
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +3 -2
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +2 -2
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +60 -0
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.css.js +4 -0
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css.js +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +38 -20
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +3 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetStatus.js +10 -32
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +23 -138
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +3 -0
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +5 -5
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +13 -12
- package/vscode/src/vs/editor/contrib/wordPartOperations/browser/wordPartOperations.js +3 -3
- package/vscode/src/vs/platform/accessibility/browser/accessibilityService.js +21 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +5 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +1 -1
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +27 -6
- package/vscode/src/vs/platform/actions/browser/floatingMenu.js +1 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.css.js +1 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +33 -3
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -1
- package/vscode/src/vs/platform/actions/common/actions.d.ts +3 -0
- package/vscode/src/vs/platform/actions/common/actions.js +3 -0
- package/vscode/src/vs/platform/actions/common/menuService.js +3 -2
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +1 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +7 -5
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +109 -13
- package/vscode/src/vs/platform/diagnostics/common/diagnostics.d.ts +2 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +12 -6
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +3 -3
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +20 -10
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +46 -8
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +1 -1
- package/vscode/src/vs/platform/extensions/common/extensions.js +12 -3
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +368 -0
- package/vscode/src/vs/platform/files/common/watcher.js +21 -24
- package/vscode/src/vs/platform/list/browser/listService.js +2 -1
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.js +2 -2
- package/vscode/src/vs/platform/opener/browser/link.js +1 -1
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
- package/vscode/src/vs/platform/remote/common/remoteExtensionsScanner.service.d.ts +0 -2
- package/vscode/src/vs/platform/request/common/request.js +18 -8
- package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +2 -6
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.d.ts +8 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.d.ts +1 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +25 -5
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +1 -1
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +6 -6
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +35 -35
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +4 -4
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +5 -5
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +1 -1
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +5 -5
- package/vscode/src/vs/platform/tunnel/common/tunnel.js +4 -1
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +75 -19
- package/vscode/src/vs/platform/window/common/window.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +32 -25
- package/vscode/src/vs/workbench/api/common/extHost.common.services.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +5 -11
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +5 -15
- package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +2 -5
- package/vscode/src/vs/workbench/api/common/extHostComments.js +9 -3
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +32 -22
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +109 -40
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +46 -0
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +84 -35
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +50 -41
- package/vscode/src/vs/workbench/api/common/extHostSearch.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostSecrets.js +11 -8
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +7 -6
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +63 -70
- package/vscode/src/vs/workbench/api/common/extHostTextEditors.js +5 -3
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +75 -16
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +29 -4
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +127 -107
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +33 -21
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +23 -6
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +3 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +1 -1
- package/vscode/src/vs/workbench/browser/web.api.js +8 -0
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +199 -194
- package/vscode/src/vs/workbench/common/configuration.js +1 -1
- package/vscode/src/vs/workbench/common/contributions.js +8 -1
- package/vscode/src/vs/workbench/common/editor.js +5 -1
- package/vscode/src/vs/workbench/common/theme.js +79 -454
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +221 -239
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +17 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCollections.js +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCommandContentPart.js +35 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationContentPart.js +51 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatConfirmationWidget.js → chatContentParts/chatConfirmationWidget.js} +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownContentPart.js +131 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatProgressContentPart.js +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatReferencesContentPart.js +263 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTaskContentPart.js +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.js +160 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTreeContentPart.js +171 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatWarningContentPart.js +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatContentParts/media}/chatConfirmationWidget.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +91 -44
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +292 -1019
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +22 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +61 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +23 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatAgentHover.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/common/codeBlockModelCollection.js +16 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +43 -16
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +1 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +7 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +2 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +2 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +2 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +8 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/media/panel.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +1 -1
- package/vscode/src/vs/workbench/contrib/contextmenu/browser/contextmenu.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +14 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +8 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +19 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +13 -12
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +19 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +9 -4
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +10 -5
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +4 -4
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +235 -173
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +2 -1
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +17 -5
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +62 -44
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +114 -107
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatContentWidget.js +33 -25
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +71 -101
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +38 -43
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +11 -33
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +3 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +49 -86
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +60 -71
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatContentWidget.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +116 -113
- package/vscode/src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.js +6 -10
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +1 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +12 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +0 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +7 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +88 -61
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +1 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +39 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +12 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.js +3 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +40 -105
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +27 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +14 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +43 -46
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +12 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +19 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +9 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +5 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +16 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSourceFactory.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +11 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +12 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +5 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +9 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +37 -36
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +18 -8
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +14 -5
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +17 -22
- package/vscode/src/vs/workbench/contrib/remote/browser/media/tunnelView.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +7 -10
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +7 -27
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +3 -4
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +4 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +13 -37
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.d.ts +88 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +48 -31
- package/vscode/src/vs/workbench/contrib/testing/common/testId.d.ts +115 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.d.ts +226 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.d.ts +319 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +2 -3
- package/vscode/src/vs/workbench/contrib/testing/common/testingStates.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.js +21 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewIconManager.js +7 -8
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +10 -5
- package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.js +54 -21
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.d.ts +1 -2
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +2 -4
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +5 -3
- package/vscode/src/vs/workbench/services/extensions/common/extensions.service.d.ts +3 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +59 -41
- package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.js +1 -1
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +3 -2
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/language/common/languageService.js +7 -0
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +1 -1
- package/vscode/src/vs/workbench/services/preferences/common/preferences.d.ts +2 -2
- package/vscode/src/vs/workbench/services/search/common/search.js +2 -1
- package/vscode/src/vs/workbench/services/search/common/textSearchManager.js +2 -2
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +2 -2
- package/vscode/src/vs/workbench/services/textfile/common/encoding.js +69 -26
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +23 -4
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +5 -1
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +12 -5
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +38 -19
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +2 -1
- package/vscode-dts/vscode.proposed.aiTextSearchProvider.d.ts +0 -196
- package/vscode-dts/vscode.proposed.attributableCoverage.d.ts +28 -10
- package/vscode-dts/vscode.proposed.authGetSessions.d.ts +30 -22
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +17 -8
- package/vscode-dts/vscode.proposed.chatVariableResolver.d.ts +0 -9
- package/vscode-dts/vscode.proposed.commentReveal.d.ts +32 -0
- package/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts +10 -0
- package/vscode-dts/vscode.proposed.createFileSystemWatcher.d.ts +1 -1
- package/vscode-dts/vscode.proposed.fileComments.d.ts +12 -53
- package/vscode-dts/vscode.proposed.fileSearchProvider.d.ts +6 -0
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +6 -0
- package/vscode-dts/vscode.proposed.lmTools.d.ts +91 -0
- package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +1 -1
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +10 -6
- package/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts +38 -13
- package/vscode/src/vs/editor/browser/observableUtilities.js +0 -58
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProviderFactory.service.js +0 -3
- package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +0 -122
|
@@ -38,7 +38,7 @@ let NotebookEditorInput = class NotebookEditorInput extends AbstractResourceEdit
|
|
|
38
38
|
this._notebookService = _notebookService;
|
|
39
39
|
this._notebookModelResolverService = _notebookModelResolverService;
|
|
40
40
|
this._fileDialogService = _fileDialogService;
|
|
41
|
-
this.
|
|
41
|
+
this.editorModelReference = null;
|
|
42
42
|
this._defaultDirtyState = false;
|
|
43
43
|
this._defaultDirtyState = !!options.startDirty;
|
|
44
44
|
this._sideLoadedListener = _notebookService.onDidAddNotebookDocument(e => {
|
|
@@ -64,8 +64,8 @@ let NotebookEditorInput = class NotebookEditorInput extends AbstractResourceEdit
|
|
|
64
64
|
}
|
|
65
65
|
dispose() {
|
|
66
66
|
this._sideLoadedListener.dispose();
|
|
67
|
-
this.
|
|
68
|
-
this.
|
|
67
|
+
this.editorModelReference?.dispose();
|
|
68
|
+
this.editorModelReference = null;
|
|
69
69
|
super.dispose();
|
|
70
70
|
}
|
|
71
71
|
get typeId() {
|
|
@@ -79,8 +79,8 @@ let NotebookEditorInput = class NotebookEditorInput extends AbstractResourceEdit
|
|
|
79
79
|
if (this.resource.scheme === Schemas.untitled) {
|
|
80
80
|
capabilities |= EditorInputCapabilities.Untitled;
|
|
81
81
|
}
|
|
82
|
-
if (this.
|
|
83
|
-
if (this.
|
|
82
|
+
if (this.editorModelReference) {
|
|
83
|
+
if (this.editorModelReference.object.isReadonly()) {
|
|
84
84
|
capabilities |= EditorInputCapabilities.Readonly;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
@@ -95,53 +95,53 @@ let NotebookEditorInput = class NotebookEditorInput extends AbstractResourceEdit
|
|
|
95
95
|
return capabilities;
|
|
96
96
|
}
|
|
97
97
|
getDescription(verbosity = Verbosity.MEDIUM) {
|
|
98
|
-
if (!this.hasCapability(EditorInputCapabilities.Untitled) || this.
|
|
98
|
+
if (!this.hasCapability(EditorInputCapabilities.Untitled) || this.editorModelReference?.object.hasAssociatedFilePath()) {
|
|
99
99
|
return super.getDescription(verbosity);
|
|
100
100
|
}
|
|
101
101
|
return undefined;
|
|
102
102
|
}
|
|
103
103
|
isReadonly() {
|
|
104
|
-
if (!this.
|
|
104
|
+
if (!this.editorModelReference) {
|
|
105
105
|
return this.filesConfigurationService.isReadonly(this.resource);
|
|
106
106
|
}
|
|
107
|
-
return this.
|
|
107
|
+
return this.editorModelReference.object.isReadonly();
|
|
108
108
|
}
|
|
109
109
|
isDirty() {
|
|
110
|
-
if (!this.
|
|
110
|
+
if (!this.editorModelReference) {
|
|
111
111
|
return this._defaultDirtyState;
|
|
112
112
|
}
|
|
113
|
-
return this.
|
|
113
|
+
return this.editorModelReference.object.isDirty();
|
|
114
114
|
}
|
|
115
115
|
isSaving() {
|
|
116
|
-
const model = this.
|
|
116
|
+
const model = this.editorModelReference?.object;
|
|
117
117
|
if (!model || !model.isDirty() || model.hasErrorState || this.hasCapability(EditorInputCapabilities.Untitled)) {
|
|
118
118
|
return false;
|
|
119
119
|
}
|
|
120
120
|
return this.filesConfigurationService.hasShortAutoSaveDelay(this);
|
|
121
121
|
}
|
|
122
122
|
async save(group, options) {
|
|
123
|
-
if (this.
|
|
123
|
+
if (this.editorModelReference) {
|
|
124
124
|
if (this.hasCapability(EditorInputCapabilities.Untitled)) {
|
|
125
125
|
return this.saveAs(group, options);
|
|
126
126
|
}
|
|
127
127
|
else {
|
|
128
|
-
await this.
|
|
128
|
+
await this.editorModelReference.object.save(options);
|
|
129
129
|
}
|
|
130
130
|
return this;
|
|
131
131
|
}
|
|
132
132
|
return undefined;
|
|
133
133
|
}
|
|
134
134
|
async saveAs(group, options) {
|
|
135
|
-
if (!this.
|
|
135
|
+
if (!this.editorModelReference) {
|
|
136
136
|
return undefined;
|
|
137
137
|
}
|
|
138
138
|
const provider = this._notebookService.getContributedNotebookType(this.viewType);
|
|
139
139
|
if (!provider) {
|
|
140
140
|
return undefined;
|
|
141
141
|
}
|
|
142
|
-
const pathCandidate = this.hasCapability(EditorInputCapabilities.Untitled) ? await this._suggestName(provider, this.labelService.getUriBasenameLabel(this.resource)) : this.
|
|
142
|
+
const pathCandidate = this.hasCapability(EditorInputCapabilities.Untitled) ? await this._suggestName(provider, this.labelService.getUriBasenameLabel(this.resource)) : this.editorModelReference.object.resource;
|
|
143
143
|
let target;
|
|
144
|
-
if (this.
|
|
144
|
+
if (this.editorModelReference.object.hasAssociatedFilePath()) {
|
|
145
145
|
target = pathCandidate;
|
|
146
146
|
}
|
|
147
147
|
else {
|
|
@@ -169,7 +169,7 @@ let NotebookEditorInput = class NotebookEditorInput extends AbstractResourceEdit
|
|
|
169
169
|
`File name ${target} is not supported by ${provider.providerDisplayName}.\n\nPlease make sure the file name matches following patterns:\n${patterns}`
|
|
170
170
|
)));
|
|
171
171
|
}
|
|
172
|
-
return await this.
|
|
172
|
+
return await this.editorModelReference.object.saveAs(target);
|
|
173
173
|
}
|
|
174
174
|
async _suggestName(provider, suggestedFilename) {
|
|
175
175
|
const firstSelector = provider.selectors[0];
|
|
@@ -192,14 +192,14 @@ let NotebookEditorInput = class NotebookEditorInput extends AbstractResourceEdit
|
|
|
192
192
|
return joinPath(await this._fileDialogService.defaultFilePath(), suggestedFilename);
|
|
193
193
|
}
|
|
194
194
|
async rename(group, target) {
|
|
195
|
-
if (this.
|
|
195
|
+
if (this.editorModelReference) {
|
|
196
196
|
return { editor: { resource: target }, options: { override: this.viewType } };
|
|
197
197
|
}
|
|
198
198
|
return undefined;
|
|
199
199
|
}
|
|
200
200
|
async revert(_group, options) {
|
|
201
|
-
if (this.
|
|
202
|
-
await this.
|
|
201
|
+
if (this.editorModelReference && this.editorModelReference.object.isDirty()) {
|
|
202
|
+
await this.editorModelReference.object.revert(options);
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
async resolve(_options, perf) {
|
|
@@ -208,39 +208,40 @@ let NotebookEditorInput = class NotebookEditorInput extends AbstractResourceEdit
|
|
|
208
208
|
}
|
|
209
209
|
perf?.mark('extensionActivated');
|
|
210
210
|
this._sideLoadedListener.dispose();
|
|
211
|
-
if (!this.
|
|
212
|
-
const
|
|
213
|
-
|
|
211
|
+
if (!this.editorModelReference) {
|
|
212
|
+
const scratchpad = this.capabilities & EditorInputCapabilities.Scratchpad ? true : false;
|
|
213
|
+
const ref = await this._notebookModelResolverService.resolve(this.resource, this.viewType, { limits: this.ensureLimits(_options), scratchpad });
|
|
214
|
+
if (this.editorModelReference) {
|
|
214
215
|
ref.dispose();
|
|
215
|
-
return this.
|
|
216
|
+
return this.editorModelReference.object;
|
|
216
217
|
}
|
|
217
|
-
this.
|
|
218
|
+
this.editorModelReference = ref;
|
|
218
219
|
if (this.isDisposed()) {
|
|
219
|
-
this.
|
|
220
|
-
this.
|
|
220
|
+
this.editorModelReference.dispose();
|
|
221
|
+
this.editorModelReference = null;
|
|
221
222
|
return null;
|
|
222
223
|
}
|
|
223
|
-
this._register(this.
|
|
224
|
-
this._register(this.
|
|
225
|
-
this._register(this.
|
|
226
|
-
if (this.
|
|
224
|
+
this._register(this.editorModelReference.object.onDidChangeDirty(() => this._onDidChangeDirty.fire()));
|
|
225
|
+
this._register(this.editorModelReference.object.onDidChangeReadonly(() => this._onDidChangeCapabilities.fire()));
|
|
226
|
+
this._register(this.editorModelReference.object.onDidRevertUntitled(() => this.dispose()));
|
|
227
|
+
if (this.editorModelReference.object.isDirty()) {
|
|
227
228
|
this._onDidChangeDirty.fire();
|
|
228
229
|
}
|
|
229
230
|
}
|
|
230
231
|
else {
|
|
231
|
-
this.
|
|
232
|
+
this.editorModelReference.object.load({ limits: this.ensureLimits(_options) });
|
|
232
233
|
}
|
|
233
234
|
if (this.options._backupId) {
|
|
234
|
-
const info = await this._notebookService.withNotebookDataProvider(this.
|
|
235
|
+
const info = await this._notebookService.withNotebookDataProvider(this.editorModelReference.object.notebook.viewType);
|
|
235
236
|
if (!(info instanceof SimpleNotebookProviderInfo)) {
|
|
236
237
|
throw ( (new Error('CANNOT open file notebook with this provider')));
|
|
237
238
|
}
|
|
238
239
|
const data = await info.serializer.dataToNotebook(VSBuffer.fromString(JSON.stringify({ __webview_backup: this.options._backupId })));
|
|
239
|
-
this.
|
|
240
|
+
this.editorModelReference.object.notebook.applyEdits([
|
|
240
241
|
{
|
|
241
242
|
editType: CellEditType.Replace,
|
|
242
243
|
index: 0,
|
|
243
|
-
count: this.
|
|
244
|
+
count: this.editorModelReference.object.notebook.length,
|
|
244
245
|
cells: data.cells
|
|
245
246
|
}
|
|
246
247
|
], true, undefined, () => undefined, undefined, false);
|
|
@@ -250,7 +251,7 @@ let NotebookEditorInput = class NotebookEditorInput extends AbstractResourceEdit
|
|
|
250
251
|
this.options.startDirty = undefined;
|
|
251
252
|
}
|
|
252
253
|
}
|
|
253
|
-
return this.
|
|
254
|
+
return this.editorModelReference.object;
|
|
254
255
|
}
|
|
255
256
|
toUntyped() {
|
|
256
257
|
return {
|
|
@@ -7,6 +7,7 @@ import { Schemas } from '../../../../base/common/network.js';
|
|
|
7
7
|
import { filter } from '../../../../base/common/objects.js';
|
|
8
8
|
import { assertType } from '../../../../base/common/types.js';
|
|
9
9
|
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.service.js';
|
|
10
|
+
import { ILogService } from '../../../../platform/log/common/log.service.js';
|
|
10
11
|
import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.service.js';
|
|
11
12
|
import { EditorModel } from '../../../common/editor/editorModel.js';
|
|
12
13
|
import { NotebookCellsChangeType, NotebookSetting } from './notebookCommon.js';
|
|
@@ -147,12 +148,13 @@ SimpleNotebookEditorModel = SimpleNotebookEditorModel_1 = ( __decorate([
|
|
|
147
148
|
( __param(5, IFilesConfigurationService))
|
|
148
149
|
], SimpleNotebookEditorModel));
|
|
149
150
|
class NotebookFileWorkingCopyModel extends Disposable {
|
|
150
|
-
constructor(_notebookModel, _notebookService, _configurationService, _telemetryService) {
|
|
151
|
+
constructor(_notebookModel, _notebookService, _configurationService, _telemetryService, _logService) {
|
|
151
152
|
super();
|
|
152
153
|
this._notebookModel = _notebookModel;
|
|
153
154
|
this._notebookService = _notebookService;
|
|
154
155
|
this._configurationService = _configurationService;
|
|
155
156
|
this._telemetryService = _telemetryService;
|
|
157
|
+
this._logService = _logService;
|
|
156
158
|
this._onDidChangeContent = this._register(( new Emitter()));
|
|
157
159
|
this.onDidChangeContent = this._onDidChangeContent.event;
|
|
158
160
|
this.configuration = undefined;
|
|
@@ -184,12 +186,17 @@ class NotebookFileWorkingCopyModel extends Disposable {
|
|
|
184
186
|
}
|
|
185
187
|
}
|
|
186
188
|
async setSaveDelegate() {
|
|
187
|
-
|
|
189
|
+
await this.getNotebookSerializer();
|
|
188
190
|
this.save = async (options, token) => {
|
|
189
|
-
if (token.isCancellationRequested) {
|
|
190
|
-
throw ( new CancellationError());
|
|
191
|
-
}
|
|
192
191
|
try {
|
|
192
|
+
let serializer = this._notebookService.tryGetDataProviderSync(this.notebookModel.viewType)?.serializer;
|
|
193
|
+
if (!serializer) {
|
|
194
|
+
this._logService.warn('No serializer found for notebook model, checking if provider still needs to be resolved');
|
|
195
|
+
serializer = await this.getNotebookSerializer();
|
|
196
|
+
}
|
|
197
|
+
if (token.isCancellationRequested) {
|
|
198
|
+
throw ( new CancellationError());
|
|
199
|
+
}
|
|
193
200
|
const stat = await serializer.save(this._notebookModel.uri, this._notebookModel.versionId, options, token);
|
|
194
201
|
return stat;
|
|
195
202
|
}
|
|
@@ -272,11 +279,12 @@ class NotebookFileWorkingCopyModel extends Disposable {
|
|
|
272
279
|
}
|
|
273
280
|
}
|
|
274
281
|
let NotebookFileWorkingCopyModelFactory = class NotebookFileWorkingCopyModelFactory {
|
|
275
|
-
constructor(_viewType, _notebookService, _configurationService, _telemetryService) {
|
|
282
|
+
constructor(_viewType, _notebookService, _configurationService, _telemetryService, _logService) {
|
|
276
283
|
this._viewType = _viewType;
|
|
277
284
|
this._notebookService = _notebookService;
|
|
278
285
|
this._configurationService = _configurationService;
|
|
279
286
|
this._telemetryService = _telemetryService;
|
|
287
|
+
this._logService = _logService;
|
|
280
288
|
}
|
|
281
289
|
async createModel(resource, stream, token) {
|
|
282
290
|
const info = await this._notebookService.withNotebookDataProvider(this._viewType);
|
|
@@ -293,13 +301,15 @@ let NotebookFileWorkingCopyModelFactory = class NotebookFileWorkingCopyModelFact
|
|
|
293
301
|
notebookModel,
|
|
294
302
|
this._notebookService,
|
|
295
303
|
this._configurationService,
|
|
296
|
-
this._telemetryService
|
|
304
|
+
this._telemetryService,
|
|
305
|
+
this._logService
|
|
297
306
|
));
|
|
298
307
|
}
|
|
299
308
|
};
|
|
300
309
|
NotebookFileWorkingCopyModelFactory = ( __decorate([
|
|
301
310
|
( __param(1, INotebookService)),
|
|
302
311
|
( __param(2, IConfigurationService)),
|
|
303
|
-
( __param(3, ITelemetryService))
|
|
312
|
+
( __param(3, ITelemetryService)),
|
|
313
|
+
( __param(4, ILogService))
|
|
304
314
|
], NotebookFileWorkingCopyModelFactory));
|
|
305
315
|
export { NotebookFileWorkingCopyModel, NotebookFileWorkingCopyModelFactory, SimpleNotebookEditorModel };
|
|
@@ -81,7 +81,7 @@ let FolderSettingsActionViewItem = class FolderSettingsActionViewItem extends Ba
|
|
|
81
81
|
'aria-haspopup': 'true',
|
|
82
82
|
'tabindex': '0'
|
|
83
83
|
}, this.labelElement, this.detailsElement, this.dropDownElement);
|
|
84
|
-
this.anchorElementHover = this._register(this.hoverService.
|
|
84
|
+
this.anchorElementHover = this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), this.anchorElement, ''));
|
|
85
85
|
this._register(addDisposableListener(this.anchorElement, EventType.MOUSE_DOWN, e => EventHelper.stop(e)));
|
|
86
86
|
this._register(addDisposableListener(this.anchorElement, EventType.CLICK, e => this.onClick(e)));
|
|
87
87
|
this._register(addDisposableListener(this.container, EventType.KEY_UP, e => this.onKeyUp(e)));
|
|
@@ -599,10 +599,19 @@ function isExcludeSetting(setting) {
|
|
|
599
599
|
function isIncludeSetting(setting) {
|
|
600
600
|
return setting.key === 'files.readonlyInclude';
|
|
601
601
|
}
|
|
602
|
-
function
|
|
603
|
-
return
|
|
602
|
+
function objectSettingSupportsRemoveDefaultValue(key) {
|
|
603
|
+
return key === 'workbench.editor.customLabels.patterns';
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function isObjectRenderableSchema({ type }, key) {
|
|
606
|
+
if (type === 'string' || type === 'boolean' || type === 'integer' || type === 'number') {
|
|
607
|
+
return true;
|
|
608
|
+
}
|
|
609
|
+
if (objectSettingSupportsRemoveDefaultValue(key) && Array.isArray(type) && type.length === 2) {
|
|
610
|
+
return type.includes('null') && (type.includes('string') || type.includes('boolean') || type.includes('integer') || type.includes('number'));
|
|
611
|
+
}
|
|
612
|
+
return false;
|
|
613
|
+
}
|
|
614
|
+
function isObjectSetting({ key, type, objectProperties, objectPatternProperties, objectAdditionalProperties }) {
|
|
606
615
|
if (type !== 'object') {
|
|
607
616
|
return false;
|
|
608
617
|
}
|
|
@@ -625,7 +634,7 @@ function isObjectSetting({ type, objectProperties, objectPatternProperties, obje
|
|
|
625
634
|
}
|
|
626
635
|
return [schema];
|
|
627
636
|
})).flat();
|
|
628
|
-
return flatSchemas.every(isObjectRenderableSchema);
|
|
637
|
+
return flatSchemas.every((schema) => isObjectRenderableSchema(schema, key));
|
|
629
638
|
}
|
|
630
639
|
function settingTypeEnumRenderable(_type) {
|
|
631
640
|
const enumRenderableSettingTypes = ['string', 'boolean', 'null', 'integer', 'number'];
|
|
@@ -801,4 +810,4 @@ function parseQuery(query) {
|
|
|
801
810
|
query,
|
|
802
811
|
};
|
|
803
812
|
}
|
|
804
|
-
export { SearchResultIdx, SearchResultModel, SettingsTreeElement, SettingsTreeGroupElement, SettingsTreeModel, SettingsTreeNewExtensionsElement, SettingsTreeSettingElement, inspectSetting, parseQuery, settingKeyToDisplayFormat };
|
|
813
|
+
export { SearchResultIdx, SearchResultModel, SettingsTreeElement, SettingsTreeGroupElement, SettingsTreeModel, SettingsTreeNewExtensionsElement, SettingsTreeSettingElement, inspectSetting, objectSettingSupportsRemoveDefaultValue, parseQuery, settingKeyToDisplayFormat };
|
|
@@ -14,7 +14,7 @@ import '../../../../platform/theme/common/colors/searchColors.js';
|
|
|
14
14
|
import { PANEL_BORDER } from '../../../common/theme.js';
|
|
15
15
|
const _moduleId = "vs/workbench/contrib/preferences/common/settingsEditorColorRegistry";
|
|
16
16
|
const settingsHeaderForeground = registerColor('settings.headerForeground', { light: '#444444', dark: '#e7e7e7', hcDark: '#ffffff', hcLight: '#292929' }, ( localizeWithPath(_moduleId, 0, "The foreground color for a section header or active title.")));
|
|
17
|
-
const settingsHeaderHoverForeground = registerColor('settings.settingsHeaderHoverForeground',
|
|
17
|
+
const settingsHeaderHoverForeground = registerColor('settings.settingsHeaderHoverForeground', ( (transparent(settingsHeaderForeground, 0.7))), ( localizeWithPath(
|
|
18
18
|
_moduleId,
|
|
19
19
|
1,
|
|
20
20
|
"The foreground color for a section header or hovered title."
|
|
@@ -25,25 +25,25 @@ registerColor('settings.modifiedItemIndicator', {
|
|
|
25
25
|
hcDark: ( (new Color( (new RGBA(0, 73, 122))))),
|
|
26
26
|
hcLight: ( (new Color( (new RGBA(102, 175, 224))))),
|
|
27
27
|
}, ( localizeWithPath(_moduleId, 2, "The color of the modified setting indicator.")));
|
|
28
|
-
const settingsHeaderBorder = registerColor('settings.headerBorder',
|
|
29
|
-
const settingsSashBorder = registerColor('settings.sashBorder',
|
|
30
|
-
const settingsSelectBackground = registerColor(`settings.dropdownBackground`,
|
|
31
|
-
const settingsSelectForeground = registerColor('settings.dropdownForeground',
|
|
32
|
-
const settingsSelectBorder = registerColor('settings.dropdownBorder',
|
|
33
|
-
const settingsSelectListBorder = registerColor('settings.dropdownListBorder',
|
|
28
|
+
const settingsHeaderBorder = registerColor('settings.headerBorder', PANEL_BORDER, ( localizeWithPath(_moduleId, 3, "The color of the header container border.")));
|
|
29
|
+
const settingsSashBorder = registerColor('settings.sashBorder', PANEL_BORDER, ( localizeWithPath(_moduleId, 4, "The color of the Settings editor splitview sash border.")));
|
|
30
|
+
const settingsSelectBackground = registerColor(`settings.dropdownBackground`, selectBackground, ( localizeWithPath(_moduleId, 5, "Settings editor dropdown background.")));
|
|
31
|
+
const settingsSelectForeground = registerColor('settings.dropdownForeground', selectForeground, ( localizeWithPath(_moduleId, 6, "Settings editor dropdown foreground.")));
|
|
32
|
+
const settingsSelectBorder = registerColor('settings.dropdownBorder', selectBorder, ( localizeWithPath(_moduleId, 7, "Settings editor dropdown border.")));
|
|
33
|
+
const settingsSelectListBorder = registerColor('settings.dropdownListBorder', editorWidgetBorder, ( localizeWithPath(
|
|
34
34
|
_moduleId,
|
|
35
35
|
8,
|
|
36
36
|
"Settings editor dropdown list border. This surrounds the options and separates the options from the description."
|
|
37
37
|
)));
|
|
38
|
-
registerColor('settings.checkboxBackground',
|
|
39
|
-
registerColor('settings.checkboxForeground',
|
|
40
|
-
registerColor('settings.checkboxBorder',
|
|
41
|
-
const settingsTextInputBackground = registerColor('settings.textInputBackground',
|
|
42
|
-
const settingsTextInputForeground = registerColor('settings.textInputForeground',
|
|
43
|
-
const settingsTextInputBorder = registerColor('settings.textInputBorder',
|
|
44
|
-
const settingsNumberInputBackground = registerColor('settings.numberInputBackground',
|
|
45
|
-
const settingsNumberInputForeground = registerColor('settings.numberInputForeground',
|
|
46
|
-
const settingsNumberInputBorder = registerColor('settings.numberInputBorder',
|
|
38
|
+
registerColor('settings.checkboxBackground', checkboxBackground, ( localizeWithPath(_moduleId, 9, "Settings editor checkbox background.")));
|
|
39
|
+
registerColor('settings.checkboxForeground', checkboxForeground, ( localizeWithPath(_moduleId, 10, "Settings editor checkbox foreground.")));
|
|
40
|
+
registerColor('settings.checkboxBorder', checkboxBorder, ( localizeWithPath(_moduleId, 11, "Settings editor checkbox border.")));
|
|
41
|
+
const settingsTextInputBackground = registerColor('settings.textInputBackground', inputBackground, ( localizeWithPath(_moduleId, 12, "Settings editor text input box background.")));
|
|
42
|
+
const settingsTextInputForeground = registerColor('settings.textInputForeground', inputForeground, ( localizeWithPath(_moduleId, 13, "Settings editor text input box foreground.")));
|
|
43
|
+
const settingsTextInputBorder = registerColor('settings.textInputBorder', inputBorder, ( localizeWithPath(_moduleId, 14, "Settings editor text input box border.")));
|
|
44
|
+
const settingsNumberInputBackground = registerColor('settings.numberInputBackground', inputBackground, ( localizeWithPath(_moduleId, 15, "Settings editor number input box background.")));
|
|
45
|
+
const settingsNumberInputForeground = registerColor('settings.numberInputForeground', inputForeground, ( localizeWithPath(_moduleId, 16, "Settings editor number input box foreground.")));
|
|
46
|
+
const settingsNumberInputBorder = registerColor('settings.numberInputBorder', inputBorder, ( localizeWithPath(_moduleId, 17, "Settings editor number input box border.")));
|
|
47
47
|
registerColor('settings.focusedRowBackground', {
|
|
48
48
|
dark: ( (transparent(listHoverBackground, .6))),
|
|
49
49
|
light: ( (transparent(listHoverBackground, .6))),
|
|
@@ -56,12 +56,7 @@ registerColor('settings.rowHoverBackground', {
|
|
|
56
56
|
hcDark: null,
|
|
57
57
|
hcLight: null
|
|
58
58
|
}, ( localizeWithPath(_moduleId, 19, "The background color of a settings row when hovered.")));
|
|
59
|
-
registerColor('settings.focusedRowBorder',
|
|
60
|
-
dark: focusBorder,
|
|
61
|
-
light: focusBorder,
|
|
62
|
-
hcDark: focusBorder,
|
|
63
|
-
hcLight: focusBorder
|
|
64
|
-
}, ( localizeWithPath(
|
|
59
|
+
registerColor('settings.focusedRowBorder', focusBorder, ( localizeWithPath(
|
|
65
60
|
_moduleId,
|
|
66
61
|
20,
|
|
67
62
|
"The color of the row's top and bottom border when the row is focused."
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import n from '../../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
|
|
2
|
-
var css = ".ports-view .monaco-icon-label,.ports-view .monaco-list .monaco-list-row.focused .monaco-icon-label,.ports-view .monaco-list .monaco-list-row:hover:not(.highlighted) .monaco-icon-label{flex:1}.ports-view .monaco-list .monaco-list-row .actionBarContainer{flex:1 0 auto;flex:0 0 auto;text-align:right}.ports-view .monaco-list .monaco-list-row .ports-view-actionbar-cell{display:flex;flex:1;flex-wrap:nowrap;height:22px;overflow:hidden;text-overflow:ellipsis}.ports-view .monaco-list .monaco-list-row .ports-view-actionbar-cell .monaco-inputbox{flex:1;height:22px;line-height:19px}.ports-view .monaco-list .monaco-list-row .ports-view-actionbar-cell .monaco-inputbox input{margin-top:-40px}.ports-view .monaco-list .monaco-list-row .ports-view-actionbar-cell .ports-view-actionbar-cell-localaddress:hover{text-decoration:underline}.ports-view .monaco-table-td[data-col-index=\"0\"],.ports-view .monaco-table-th,.ports-view .monaco-table-th[data-col-index=\"0\"]{padding-left:10px}.ports-view .monaco-list .monaco-list-row .ports-view-actionbar-cell .monaco-button{line-height:1.4em;margin-bottom:3px;margin-left:3px;margin-top:4px;padding:2px 14px;width:auto}.ports-view .monaco-list .monaco-list-row .ports-view-actionbar-cell>.ports-view-actionbar-cell-icon.codicon{margin-top:3px;padding-right:3px}.ports-view .monaco-list .monaco-list-row.selected .ports-view-actionbar-cell>.ports-view-actionbar-cell-icon.codicon{color:currentColor!important}.ports-view .monaco-list .monaco-list-row .ports-view-actionbar-cell .ports-view-actionbar-cell-resourceLabel .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.ports-view .monaco-list .monaco-list-row .ports-view-actionbar-cell .ports-view-actionbar-cell-resourceLabel:after{padding-right:0}.ports-view .monaco-list .monaco-list-row .ports-view-actionbar-cell .actions{display:none}.ports-view .monaco-list .monaco-list-row.focused .ports-view-actionbar-cell .actions,.ports-view .monaco-list .monaco-list-row.selected .ports-view-actionbar-cell .actions,.ports-view .monaco-list .monaco-list-row:hover .ports-view-actionbar-cell .actions{display:block}.ports-view .monaco-list .ports-view-actionbar-cell .actions .action-label{background-position:50% 50%;background-repeat:no-repeat;background-size:16px;height:100%;padding:2px;width:16px}.monaco-workbench .codicon.codicon-ports-forwarded-with-process-icon{color:var(--vscode-ports-iconRunningProcessForeground)}";
|
|
2
|
+
var css = ".ports-view .monaco-icon-label,.ports-view .monaco-list .monaco-list-row.focused .monaco-icon-label,.ports-view .monaco-list .monaco-list-row:hover:not(.highlighted) .monaco-icon-label{flex:1}.ports-view .monaco-list .monaco-list-row .actionBarContainer{flex:1 0 auto;flex:0 0 auto;text-align:right}.ports-view .monaco-list .monaco-list-row .ports-view-actionbar-cell{display:flex;flex:1;flex-wrap:nowrap;height:22px;overflow:hidden;text-overflow:ellipsis}.ports-view .monaco-list .monaco-list-row .ports-view-actionbar-cell .monaco-inputbox{flex:1;height:22px;line-height:19px}.ports-view .monaco-list .monaco-list-row .ports-view-actionbar-cell .monaco-inputbox input{margin-top:-40px}.ports-view .monaco-list .monaco-list-row .ports-view-actionbar-cell .ports-view-actionbar-cell-localaddress{color:var(--vscode-textLink-foreground);text-decoration:var(--text-link-decoration)}.ports-view .monaco-list .monaco-list-row .ports-view-actionbar-cell .ports-view-actionbar-cell-localaddress:hover{text-decoration:underline}.ports-view .monaco-table-td[data-col-index=\"0\"],.ports-view .monaco-table-th,.ports-view .monaco-table-th[data-col-index=\"0\"]{padding-left:10px}.ports-view .monaco-list .monaco-list-row .ports-view-actionbar-cell .monaco-button{line-height:1.4em;margin-bottom:3px;margin-left:3px;margin-top:4px;padding:2px 14px;width:auto}.ports-view .monaco-list .monaco-list-row .ports-view-actionbar-cell>.ports-view-actionbar-cell-icon.codicon{margin-top:3px;padding-right:3px}.ports-view .monaco-list .monaco-list-row.selected .ports-view-actionbar-cell>.ports-view-actionbar-cell-icon.codicon{color:currentColor!important}.ports-view .monaco-list .monaco-list-row .ports-view-actionbar-cell .ports-view-actionbar-cell-resourceLabel .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.ports-view .monaco-list .monaco-list-row .ports-view-actionbar-cell .ports-view-actionbar-cell-resourceLabel:after{padding-right:0}.ports-view .monaco-list .monaco-list-row .ports-view-actionbar-cell .actions{display:none}.ports-view .monaco-list .monaco-list-row.focused .ports-view-actionbar-cell .actions,.ports-view .monaco-list .monaco-list-row.selected .ports-view-actionbar-cell .actions,.ports-view .monaco-list .monaco-list-row:hover .ports-view-actionbar-cell .actions{display:block}.ports-view .monaco-list .ports-view-actionbar-cell .actions .action-label{background-position:50% 50%;background-repeat:no-repeat;background-size:16px;height:100%;padding:2px;width:16px}.monaco-workbench .codicon.codicon-ports-forwarded-with-process-icon{color:var(--vscode-ports-iconRunningProcessForeground)}";
|
|
3
3
|
n(css,{});
|
|
4
4
|
export { css, css as default };
|
|
@@ -16,6 +16,7 @@ import { IQuickInputService } from '../../../../platform/quickinput/common/quick
|
|
|
16
16
|
import { CommandsRegistry } from '../../../../platform/commands/common/commands.js';
|
|
17
17
|
import { ICommandService } from '../../../../platform/commands/common/commands.service.js';
|
|
18
18
|
import { Event } from '../../../../base/common/event.js';
|
|
19
|
+
import { IWorkbenchEnvironmentService } from '../../../services/environment/common/environmentService.service.js';
|
|
19
20
|
import { DisposableStore, toDisposable, Disposable, dispose } from '../../../../base/common/lifecycle.js';
|
|
20
21
|
import { ActionBar } from '../../../../base/browser/ui/actionbar/actionbar.js';
|
|
21
22
|
import { IconLabel } from '../../../../base/browser/ui/iconLabel/iconLabel.js';
|
|
@@ -1513,23 +1514,24 @@ var SetTunnelProtocolAction;
|
|
|
1513
1514
|
SetTunnelProtocolAction.ID_HTTPS = 'remote.tunnel.setProtocolHttps';
|
|
1514
1515
|
SetTunnelProtocolAction.LABEL_HTTP = ( localizeWithPath(_moduleId, 54, "HTTP"));
|
|
1515
1516
|
SetTunnelProtocolAction.LABEL_HTTPS = ( localizeWithPath(_moduleId, 55, "HTTPS"));
|
|
1516
|
-
async function handler(arg, protocol, remoteExplorerService) {
|
|
1517
|
+
async function handler(arg, protocol, remoteExplorerService, environmentService) {
|
|
1517
1518
|
if (isITunnelItem(arg)) {
|
|
1518
1519
|
const attributes = {
|
|
1519
1520
|
protocol
|
|
1520
1521
|
};
|
|
1521
|
-
|
|
1522
|
+
const target = environmentService.remoteAuthority ? ConfigurationTarget.USER_REMOTE : ConfigurationTarget.USER_LOCAL;
|
|
1523
|
+
return remoteExplorerService.tunnelModel.configPortsAttributes.addAttributes(arg.remotePort, attributes, target);
|
|
1522
1524
|
}
|
|
1523
1525
|
}
|
|
1524
1526
|
function handlerHttp() {
|
|
1525
1527
|
return async (accessor, arg) => {
|
|
1526
|
-
return handler(arg, TunnelProtocol.Http, accessor.get(IRemoteExplorerService));
|
|
1528
|
+
return handler(arg, TunnelProtocol.Http, accessor.get(IRemoteExplorerService), accessor.get(IWorkbenchEnvironmentService));
|
|
1527
1529
|
};
|
|
1528
1530
|
}
|
|
1529
1531
|
SetTunnelProtocolAction.handlerHttp = handlerHttp;
|
|
1530
1532
|
function handlerHttps() {
|
|
1531
1533
|
return async (accessor, arg) => {
|
|
1532
|
-
return handler(arg, TunnelProtocol.Https, accessor.get(IRemoteExplorerService));
|
|
1534
|
+
return handler(arg, TunnelProtocol.Https, accessor.get(IRemoteExplorerService), accessor.get(IWorkbenchEnvironmentService));
|
|
1533
1535
|
};
|
|
1534
1536
|
}
|
|
1535
1537
|
SetTunnelProtocolAction.handlerHttps = handlerHttps;
|
|
@@ -1761,12 +1763,7 @@ MenuRegistry.appendMenuItem(MenuId.TunnelLocalAddressInline, ({
|
|
|
1761
1763
|
},
|
|
1762
1764
|
when: isForwardedOrDetectedExpr
|
|
1763
1765
|
}));
|
|
1764
|
-
registerColor('ports.iconRunningProcessForeground',
|
|
1765
|
-
light: STATUS_BAR_REMOTE_ITEM_BACKGROUND,
|
|
1766
|
-
dark: STATUS_BAR_REMOTE_ITEM_BACKGROUND,
|
|
1767
|
-
hcDark: STATUS_BAR_REMOTE_ITEM_BACKGROUND,
|
|
1768
|
-
hcLight: STATUS_BAR_REMOTE_ITEM_BACKGROUND
|
|
1769
|
-
}, ( localizeWithPath(
|
|
1766
|
+
registerColor('ports.iconRunningProcessForeground', STATUS_BAR_REMOTE_ITEM_BACKGROUND, ( localizeWithPath(
|
|
1770
1767
|
_moduleId,
|
|
1771
1768
|
58,
|
|
1772
1769
|
"The color of the icon for a port that has an associated running process."
|
|
@@ -867,45 +867,25 @@ const editorGutterAddedBackground = registerColor('editorGutter.addedBackground'
|
|
|
867
867
|
hcDark: '#487E02',
|
|
868
868
|
hcLight: '#48985D'
|
|
869
869
|
}, ( localizeWithPath(_moduleId, 12, "Editor gutter background color for lines that are added.")));
|
|
870
|
-
const editorGutterDeletedBackground = registerColor('editorGutter.deletedBackground',
|
|
871
|
-
dark: editorErrorForeground,
|
|
872
|
-
light: editorErrorForeground,
|
|
873
|
-
hcDark: editorErrorForeground,
|
|
874
|
-
hcLight: editorErrorForeground
|
|
875
|
-
}, ( localizeWithPath(
|
|
870
|
+
const editorGutterDeletedBackground = registerColor('editorGutter.deletedBackground', editorErrorForeground, ( localizeWithPath(
|
|
876
871
|
_moduleId,
|
|
877
872
|
13,
|
|
878
873
|
"Editor gutter background color for lines that are deleted."
|
|
879
874
|
)));
|
|
880
|
-
const minimapGutterModifiedBackground = registerColor('minimapGutter.modifiedBackground',
|
|
881
|
-
dark: editorGutterModifiedBackground,
|
|
882
|
-
light: editorGutterModifiedBackground,
|
|
883
|
-
hcDark: editorGutterModifiedBackground,
|
|
884
|
-
hcLight: editorGutterModifiedBackground
|
|
885
|
-
}, ( localizeWithPath(
|
|
875
|
+
const minimapGutterModifiedBackground = registerColor('minimapGutter.modifiedBackground', editorGutterModifiedBackground, ( localizeWithPath(
|
|
886
876
|
_moduleId,
|
|
887
877
|
14,
|
|
888
878
|
"Minimap gutter background color for lines that are modified."
|
|
889
879
|
)));
|
|
890
|
-
const minimapGutterAddedBackground = registerColor('minimapGutter.addedBackground',
|
|
891
|
-
|
|
892
|
-
light: editorGutterAddedBackground,
|
|
893
|
-
hcDark: editorGutterAddedBackground,
|
|
894
|
-
hcLight: editorGutterAddedBackground
|
|
895
|
-
}, ( localizeWithPath(_moduleId, 15, "Minimap gutter background color for lines that are added.")));
|
|
896
|
-
const minimapGutterDeletedBackground = registerColor('minimapGutter.deletedBackground', {
|
|
897
|
-
dark: editorGutterDeletedBackground,
|
|
898
|
-
light: editorGutterDeletedBackground,
|
|
899
|
-
hcDark: editorGutterDeletedBackground,
|
|
900
|
-
hcLight: editorGutterDeletedBackground
|
|
901
|
-
}, ( localizeWithPath(
|
|
880
|
+
const minimapGutterAddedBackground = registerColor('minimapGutter.addedBackground', editorGutterAddedBackground, ( localizeWithPath(_moduleId, 15, "Minimap gutter background color for lines that are added.")));
|
|
881
|
+
const minimapGutterDeletedBackground = registerColor('minimapGutter.deletedBackground', editorGutterDeletedBackground, ( localizeWithPath(
|
|
902
882
|
_moduleId,
|
|
903
883
|
16,
|
|
904
884
|
"Minimap gutter background color for lines that are deleted."
|
|
905
885
|
)));
|
|
906
|
-
const overviewRulerModifiedForeground = registerColor('editorOverviewRuler.modifiedForeground',
|
|
907
|
-
const overviewRulerAddedForeground = registerColor('editorOverviewRuler.addedForeground',
|
|
908
|
-
const overviewRulerDeletedForeground = registerColor('editorOverviewRuler.deletedForeground',
|
|
886
|
+
const overviewRulerModifiedForeground = registerColor('editorOverviewRuler.modifiedForeground', ( (transparent(editorGutterModifiedBackground, 0.6))), ( localizeWithPath(_moduleId, 17, 'Overview ruler marker color for modified content.')));
|
|
887
|
+
const overviewRulerAddedForeground = registerColor('editorOverviewRuler.addedForeground', ( (transparent(editorGutterAddedBackground, 0.6))), ( localizeWithPath(_moduleId, 18, 'Overview ruler marker color for added content.')));
|
|
888
|
+
const overviewRulerDeletedForeground = registerColor('editorOverviewRuler.deletedForeground', ( (transparent(editorGutterDeletedBackground, 0.6))), ( localizeWithPath(_moduleId, 19, 'Overview ruler marker color for deleted content.')));
|
|
909
889
|
let DirtyDiffDecorator = DirtyDiffDecorator_1 = class DirtyDiffDecorator extends Disposable {
|
|
910
890
|
static createDecoration(className, tooltip, options) {
|
|
911
891
|
const decorationOptions = {
|
|
@@ -221,9 +221,8 @@ let AnythingQuickAccessProvider = class AnythingQuickAccessProvider extends Pick
|
|
|
221
221
|
}, disposables, token);
|
|
222
222
|
}
|
|
223
223
|
doGetPicks(filter, options, disposables, token) {
|
|
224
|
-
const configuration = { ...this.configuration, includeSymbols: options.includeSymbols ?? this.configuration.includeSymbols };
|
|
225
224
|
const query = prepareQuery(filter);
|
|
226
|
-
if (options.enableEditorSymbolSearch
|
|
225
|
+
if (options.enableEditorSymbolSearch) {
|
|
227
226
|
const editorSymbolPicks = this.getEditorSymbolPicks(query, disposables, token);
|
|
228
227
|
if (editorSymbolPicks) {
|
|
229
228
|
return editorSymbolPicks;
|
|
@@ -281,7 +280,7 @@ let AnythingQuickAccessProvider = class AnythingQuickAccessProvider extends Pick
|
|
|
281
280
|
additionalPicksExcludes.set(historyEditorPick.resource, true);
|
|
282
281
|
}
|
|
283
282
|
}
|
|
284
|
-
let additionalPicks = await this.getAdditionalPicks(query, additionalPicksExcludes, configuration.includeSymbols, token);
|
|
283
|
+
let additionalPicks = await this.getAdditionalPicks(query, additionalPicksExcludes, this.configuration.includeSymbols, token);
|
|
285
284
|
if (options.filter) {
|
|
286
285
|
additionalPicks = additionalPicks.filter((p) => options.filter?.(p));
|
|
287
286
|
}
|
|
@@ -289,7 +288,7 @@ let AnythingQuickAccessProvider = class AnythingQuickAccessProvider extends Pick
|
|
|
289
288
|
return [];
|
|
290
289
|
}
|
|
291
290
|
return additionalPicks.length > 0 ? [
|
|
292
|
-
{ type: 'separator', label: configuration.includeSymbols ? ( localizeWithPath(_moduleId, 2, "file and symbol results")) : ( localizeWithPath(_moduleId, 3, "file results")) },
|
|
291
|
+
{ type: 'separator', label: this.configuration.includeSymbols ? ( localizeWithPath(_moduleId, 2, "file and symbol results")) : ( localizeWithPath(_moduleId, 3, "file results")) },
|
|
293
292
|
...additionalPicks
|
|
294
293
|
] : [];
|
|
295
294
|
})(),
|
package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService.js
CHANGED
|
@@ -6,7 +6,7 @@ import { ILogService } from '../../../../../platform/log/common/log.service.js';
|
|
|
6
6
|
import { IUriIdentityService } from '../../../../../platform/uriIdentity/common/uriIdentity.service.js';
|
|
7
7
|
import { INotebookService } from '../../../notebook/common/notebookService.service.js';
|
|
8
8
|
import { contentMatchesToTextSearchMatches, webviewMatchesToTextSearchMatches } from './searchNotebookHelpers.js';
|
|
9
|
-
import { QueryType, pathIncludedInQuery } from '../../../../services/search/common/search.js';
|
|
9
|
+
import { QueryType, pathIncludedInQuery, DEFAULT_MAX_SEARCH_RESULTS } from '../../../../services/search/common/search.js';
|
|
10
10
|
import { ISearchService } from '../../../../services/search/common/search.service.js';
|
|
11
11
|
import { coalesce } from '../../../../../base/common/arrays.js';
|
|
12
12
|
import { isNumber } from '../../../../../base/common/types.js';
|
|
@@ -172,7 +172,7 @@ let NotebookSearchService = class NotebookSearchService {
|
|
|
172
172
|
if (!widget.hasModel()) {
|
|
173
173
|
continue;
|
|
174
174
|
}
|
|
175
|
-
const askMax = isNumber(query.maxResults) ? query.maxResults + 1
|
|
175
|
+
const askMax = (isNumber(query.maxResults) ? query.maxResults : DEFAULT_MAX_SEARCH_RESULTS) + 1;
|
|
176
176
|
const uri = widget.viewModel.uri;
|
|
177
177
|
if (!pathIncludedInQuery(query, uri.fsPath)) {
|
|
178
178
|
continue;
|
|
@@ -163,6 +163,7 @@ registerAction2(class FindInFilesAction extends Action2 {
|
|
|
163
163
|
matchWholeWord: { 'type': 'boolean' },
|
|
164
164
|
useExcludeSettingsAndIgnoreFiles: { 'type': 'boolean' },
|
|
165
165
|
onlyOpenEditors: { 'type': 'boolean' },
|
|
166
|
+
showIncludesExcludes: { 'type': 'boolean' }
|
|
166
167
|
}
|
|
167
168
|
}
|
|
168
169
|
},
|
|
@@ -345,6 +346,9 @@ async function findInFilesCommand(accessor, _args = {}) {
|
|
|
345
346
|
updatedText = openedView.updateTextFromFindWidgetOrSelection({ allowUnselectedWord: typeof args.replace !== 'string' });
|
|
346
347
|
}
|
|
347
348
|
openedView.setSearchParameters(args);
|
|
349
|
+
if (typeof args.showIncludesExcludes === 'boolean') {
|
|
350
|
+
openedView.toggleQueryDetails(false, args.showIncludesExcludes);
|
|
351
|
+
}
|
|
348
352
|
openedView.searchAndReplaceWidget.focus(undefined, updatedText, updatedText);
|
|
349
353
|
}
|
|
350
354
|
});
|
|
@@ -45,7 +45,7 @@ import { isINotebookFileMatchWithModel, contentMatchesToTextSearchMatches, webvi
|
|
|
45
45
|
import { INotebookSearchService } from '../common/notebookSearch.service.js';
|
|
46
46
|
import { isINotebookFileMatchNoModel, rawCellPrefix } from '../common/searchNotebookHelpers.js';
|
|
47
47
|
import { ReplacePattern } from '../../../services/search/common/replace.js';
|
|
48
|
-
import { OneLineRange, resultIsMatch, SearchSortOrder, QueryType, SearchCompletionExitCode } from '../../../services/search/common/search.js';
|
|
48
|
+
import { OneLineRange, resultIsMatch, DEFAULT_MAX_SEARCH_RESULTS, SearchSortOrder, QueryType, SearchCompletionExitCode } from '../../../services/search/common/search.js';
|
|
49
49
|
import { ISearchService } from '../../../services/search/common/search.service.js';
|
|
50
50
|
import { editorMatchesToTextSearchResults, getTextSearchMatchWithModelContext } from '../../../services/search/common/searchHelpers.js';
|
|
51
51
|
import { CellSearchModel } from '../common/cellSearchModel.js';
|
|
@@ -428,7 +428,7 @@ let FileMatch = class FileMatch extends Disposable {
|
|
|
428
428
|
this._textMatches = ( new Map());
|
|
429
429
|
const wordSeparators = this._query.isWordMatch && this._query.wordSeparators ? this._query.wordSeparators : null;
|
|
430
430
|
const matches = this._model
|
|
431
|
-
.findMatches(this._query.pattern, this._model.getFullModelRange(), !!this._query.isRegExp, !!this._query.isCaseSensitive, wordSeparators, false, this._maxResults ??
|
|
431
|
+
.findMatches(this._query.pattern, this._model.getFullModelRange(), !!this._query.isRegExp, !!this._query.isCaseSensitive, wordSeparators, false, this._maxResults ?? DEFAULT_MAX_SEARCH_RESULTS);
|
|
432
432
|
this.updateMatches(matches, true, this._model, false);
|
|
433
433
|
}
|
|
434
434
|
async updatesMatchesForLineAfterReplace(lineNumber, modelChange) {
|
|
@@ -444,7 +444,7 @@ let FileMatch = class FileMatch extends Disposable {
|
|
|
444
444
|
const oldMatches = Array.from(( this._textMatches.values())).filter(match => match.range().startLineNumber === lineNumber);
|
|
445
445
|
oldMatches.forEach(match => this._textMatches.delete(match.id()));
|
|
446
446
|
const wordSeparators = this._query.isWordMatch && this._query.wordSeparators ? this._query.wordSeparators : null;
|
|
447
|
-
const matches = this._model.findMatches(this._query.pattern, range, !!this._query.isRegExp, !!this._query.isCaseSensitive, wordSeparators, false, this._maxResults ??
|
|
447
|
+
const matches = this._model.findMatches(this._query.pattern, range, !!this._query.isRegExp, !!this._query.isCaseSensitive, wordSeparators, false, this._maxResults ?? DEFAULT_MAX_SEARCH_RESULTS);
|
|
448
448
|
this.updateMatches(matches, modelChange, this._model, false);
|
|
449
449
|
}
|
|
450
450
|
updateMatches(matches, modelChange, model, isAiContributed) {
|