@codingame/monaco-vscode-api 6.0.3 → 7.0.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/README.md +150 -117
- 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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { localizeWithPath } from '../../../../nls.js';
|
|
2
2
|
import { MenuId } from '../../../../platform/actions/common/actions.js';
|
|
3
|
-
import { Extensions
|
|
4
|
-
import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
|
|
3
|
+
import { Extensions } from '../../../../platform/configuration/common/configurationRegistry.js';
|
|
4
|
+
import { RawContextKey, ContextKeyExpr } from '../../../../platform/contextkey/common/contextkey.js';
|
|
5
5
|
import { Registry } from '../../../../platform/registry/common/platform.js';
|
|
6
6
|
import { registerColor, transparent } from '../../../../platform/theme/common/colorUtils.js';
|
|
7
7
|
import { focusBorder } from '../../../../platform/theme/common/colors/baseColors.js';
|
|
8
8
|
import '../../../../platform/theme/common/colors/chartsColors.js';
|
|
9
|
-
import { editorWidgetBackground, editorWidgetBorder, widgetShadow,
|
|
9
|
+
import { editorWidgetForeground, editorWidgetBackground, editorWidgetBorder, widgetShadow, diffInserted, diffRemoved } from '../../../../platform/theme/common/colors/editorColors.js';
|
|
10
10
|
import { inputPlaceholderForeground, inputBackground } from '../../../../platform/theme/common/colors/inputColors.js';
|
|
11
11
|
import '../../../../platform/theme/common/colors/listColors.js';
|
|
12
12
|
import '../../../../platform/theme/common/colors/menuColors.js';
|
|
@@ -14,104 +14,7 @@ import '../../../../platform/theme/common/colors/minimapColors.js';
|
|
|
14
14
|
import '../../../../platform/theme/common/colors/miscColors.js';
|
|
15
15
|
import '../../../../platform/theme/common/colors/quickpickColors.js';
|
|
16
16
|
import '../../../../platform/theme/common/colors/searchColors.js';
|
|
17
|
-
import { Extensions } from '../../../common/configuration.js';
|
|
18
17
|
const _moduleId = "vs/workbench/contrib/inlineChat/common/inlineChat";
|
|
19
|
-
var InlineChatResponseTypes;
|
|
20
|
-
( ((function(InlineChatResponseTypes) {
|
|
21
|
-
InlineChatResponseTypes["Empty"] = "empty";
|
|
22
|
-
InlineChatResponseTypes["OnlyEdits"] = "onlyEdits";
|
|
23
|
-
InlineChatResponseTypes["OnlyMessages"] = "onlyMessages";
|
|
24
|
-
InlineChatResponseTypes["Mixed"] = "mixed";
|
|
25
|
-
})(InlineChatResponseTypes || (InlineChatResponseTypes = {}))));
|
|
26
|
-
const INLINE_CHAT_ID = 'interactiveEditor';
|
|
27
|
-
var EditMode;
|
|
28
|
-
( ((function(EditMode) {
|
|
29
|
-
EditMode["Live"] = "live";
|
|
30
|
-
EditMode["Preview"] = "preview";
|
|
31
|
-
})(EditMode || (EditMode = {}))));
|
|
32
|
-
const CTX_INLINE_CHAT_HAS_AGENT = ( (new RawContextKey('inlineChatHasProvider', false, ( localizeWithPath(_moduleId, 0, "Whether a provider for interactive editors exists")))));
|
|
33
|
-
const CTX_INLINE_CHAT_VISIBLE = ( (new RawContextKey('inlineChatVisible', false, ( localizeWithPath(_moduleId, 1, "Whether the interactive editor input is visible")))));
|
|
34
|
-
const CTX_INLINE_CHAT_FOCUSED = ( (new RawContextKey('inlineChatFocused', false, ( localizeWithPath(_moduleId, 2, "Whether the interactive editor input is focused")))));
|
|
35
|
-
const CTX_INLINE_CHAT_RESPONSE_FOCUSED = ( (new RawContextKey('inlineChatResponseFocused', false, ( localizeWithPath(_moduleId, 3, "Whether the interactive widget's response is focused")))));
|
|
36
|
-
const CTX_INLINE_CHAT_EMPTY = ( (new RawContextKey('inlineChatEmpty', false, ( localizeWithPath(_moduleId, 4, "Whether the interactive editor input is empty")))));
|
|
37
|
-
const CTX_INLINE_CHAT_INNER_CURSOR_FIRST = ( (new RawContextKey('inlineChatInnerCursorFirst', false, ( localizeWithPath(
|
|
38
|
-
_moduleId,
|
|
39
|
-
5,
|
|
40
|
-
"Whether the cursor of the iteractive editor input is on the first line"
|
|
41
|
-
)))));
|
|
42
|
-
const CTX_INLINE_CHAT_INNER_CURSOR_LAST = ( (new RawContextKey('inlineChatInnerCursorLast', false, ( localizeWithPath(
|
|
43
|
-
_moduleId,
|
|
44
|
-
6,
|
|
45
|
-
"Whether the cursor of the iteractive editor input is on the last line"
|
|
46
|
-
)))));
|
|
47
|
-
const CTX_INLINE_CHAT_OUTER_CURSOR_POSITION = ( (new RawContextKey('inlineChatOuterCursorPosition', '', ( localizeWithPath(
|
|
48
|
-
_moduleId,
|
|
49
|
-
9,
|
|
50
|
-
"Whether the cursor of the outer editor is above or below the interactive editor input"
|
|
51
|
-
)))));
|
|
52
|
-
const CTX_INLINE_CHAT_HAS_STASHED_SESSION = ( (new RawContextKey('inlineChatHasStashedSession', false, ( localizeWithPath(
|
|
53
|
-
_moduleId,
|
|
54
|
-
10,
|
|
55
|
-
"Whether interactive editor has kept a session for quick restore"
|
|
56
|
-
)))));
|
|
57
|
-
const CTX_INLINE_CHAT_RESPONSE_TYPES = ( (new RawContextKey('inlineChatResponseTypes', InlineChatResponseTypes.Empty, ( localizeWithPath(_moduleId, 11, "What type was the responses have been receieved")))));
|
|
58
|
-
const CTX_INLINE_CHAT_USER_DID_EDIT = ( (new RawContextKey('inlineChatUserDidEdit', undefined, ( localizeWithPath(_moduleId, 12, "Whether the user did changes ontop of the inline chat")))));
|
|
59
|
-
const CTX_INLINE_CHAT_DOCUMENT_CHANGED = ( (new RawContextKey('inlineChatDocumentChanged', false, ( localizeWithPath(_moduleId, 13, "Whether the document has changed concurrently")))));
|
|
60
|
-
const CTX_INLINE_CHAT_CHANGE_HAS_DIFF = ( (new RawContextKey('inlineChatChangeHasDiff', false, ( localizeWithPath(_moduleId, 14, "Whether the current change supports showing a diff")))));
|
|
61
|
-
const CTX_INLINE_CHAT_CHANGE_SHOWS_DIFF = ( (new RawContextKey('inlineChatChangeShowsDiff', false, ( localizeWithPath(_moduleId, 15, "Whether the current change showing a diff")))));
|
|
62
|
-
const CTX_INLINE_CHAT_EDIT_MODE = ( (new RawContextKey('config.inlineChat.mode', EditMode.Live)));
|
|
63
|
-
const ACTION_ACCEPT_CHANGES = 'inlineChat.acceptChanges';
|
|
64
|
-
const ACTION_REGENERATE_RESPONSE = 'inlineChat.regenerate';
|
|
65
|
-
const ACTION_VIEW_IN_CHAT = 'inlineChat.viewInChat';
|
|
66
|
-
const ACTION_TOGGLE_DIFF = 'inlineChat.toggleDiff';
|
|
67
|
-
const MENU_INLINE_CHAT_WIDGET = MenuId.for('inlineChatWidget');
|
|
68
|
-
const MENU_INLINE_CHAT_WIDGET_STATUS = MenuId.for('inlineChatWidget.status');
|
|
69
|
-
const inlineChatBackground = registerColor('inlineChat.background', { dark: editorWidgetBackground, light: editorWidgetBackground, hcDark: editorWidgetBackground, hcLight: editorWidgetBackground }, ( localizeWithPath(_moduleId, 16, "Background color of the interactive editor widget")));
|
|
70
|
-
registerColor('inlineChat.border', { dark: editorWidgetBorder, light: editorWidgetBorder, hcDark: editorWidgetBorder, hcLight: editorWidgetBorder }, ( localizeWithPath(_moduleId, 17, "Border color of the interactive editor widget")));
|
|
71
|
-
registerColor('inlineChat.shadow', { dark: widgetShadow, light: widgetShadow, hcDark: widgetShadow, hcLight: widgetShadow }, ( localizeWithPath(_moduleId, 18, "Shadow color of the interactive editor widget")));
|
|
72
|
-
registerColor('inlineChat.regionHighlight', { dark: editorHoverHighlight, light: editorHoverHighlight, hcDark: editorHoverHighlight, hcLight: editorHoverHighlight }, ( localizeWithPath(
|
|
73
|
-
_moduleId,
|
|
74
|
-
19,
|
|
75
|
-
"Background highlighting of the current interactive region. Must be transparent."
|
|
76
|
-
)), true);
|
|
77
|
-
registerColor('inlineChatInput.border', { dark: editorWidgetBorder, light: editorWidgetBorder, hcDark: editorWidgetBorder, hcLight: editorWidgetBorder }, ( localizeWithPath(_moduleId, 20, "Border color of the interactive editor input")));
|
|
78
|
-
registerColor('inlineChatInput.focusBorder', { dark: focusBorder, light: focusBorder, hcDark: focusBorder, hcLight: focusBorder }, ( localizeWithPath(_moduleId, 21, "Border color of the interactive editor input when focused")));
|
|
79
|
-
registerColor('inlineChatInput.placeholderForeground', { dark: inputPlaceholderForeground, light: inputPlaceholderForeground, hcDark: inputPlaceholderForeground, hcLight: inputPlaceholderForeground }, ( localizeWithPath(
|
|
80
|
-
_moduleId,
|
|
81
|
-
22,
|
|
82
|
-
"Foreground color of the interactive editor input placeholder"
|
|
83
|
-
)));
|
|
84
|
-
registerColor('inlineChatInput.background', { dark: inputBackground, light: inputBackground, hcDark: inputBackground, hcLight: inputBackground }, ( localizeWithPath(_moduleId, 23, "Background color of the interactive editor input")));
|
|
85
|
-
registerColor('inlineChatDiff.inserted', { dark: ( (transparent(diffInserted, .5))), light: ( (transparent(diffInserted, .5))), hcDark: ( (transparent(diffInserted, .5))), hcLight: ( (transparent(diffInserted, .5))) }, ( localizeWithPath(
|
|
86
|
-
_moduleId,
|
|
87
|
-
24,
|
|
88
|
-
"Background color of inserted text in the interactive editor input"
|
|
89
|
-
)));
|
|
90
|
-
const overviewRulerInlineChatDiffInserted = registerColor('editorOverviewRuler.inlineChatInserted', { dark: ( (transparent(diffInserted, 0.6))), light: ( (transparent(diffInserted, 0.8))), hcDark: ( (transparent(diffInserted, 0.6))), hcLight: ( (transparent(diffInserted, 0.8))) }, ( localizeWithPath(
|
|
91
|
-
_moduleId,
|
|
92
|
-
25,
|
|
93
|
-
'Overview ruler marker color for inline chat inserted content.'
|
|
94
|
-
)));
|
|
95
|
-
const minimapInlineChatDiffInserted = registerColor('editorOverviewRuler.inlineChatInserted', { dark: ( (transparent(diffInserted, 0.6))), light: ( (transparent(diffInserted, 0.8))), hcDark: ( (transparent(diffInserted, 0.6))), hcLight: ( (transparent(diffInserted, 0.8))) }, ( localizeWithPath(
|
|
96
|
-
_moduleId,
|
|
97
|
-
25,
|
|
98
|
-
'Overview ruler marker color for inline chat inserted content.'
|
|
99
|
-
)));
|
|
100
|
-
registerColor('inlineChatDiff.removed', { dark: ( (transparent(diffRemoved, .5))), light: ( (transparent(diffRemoved, .5))), hcDark: ( (transparent(diffRemoved, .5))), hcLight: ( (transparent(diffRemoved, .5))) }, ( localizeWithPath(
|
|
101
|
-
_moduleId,
|
|
102
|
-
26,
|
|
103
|
-
"Background color of removed text in the interactive editor input"
|
|
104
|
-
)));
|
|
105
|
-
registerColor('editorOverviewRuler.inlineChatRemoved', { dark: ( (transparent(diffRemoved, 0.6))), light: ( (transparent(diffRemoved, 0.8))), hcDark: ( (transparent(diffRemoved, 0.6))), hcLight: ( (transparent(diffRemoved, 0.8))) }, ( localizeWithPath(
|
|
106
|
-
_moduleId,
|
|
107
|
-
27,
|
|
108
|
-
'Overview ruler marker color for inline chat removed content.'
|
|
109
|
-
)));
|
|
110
|
-
( (Registry.as(Extensions.ConfigurationMigration))).registerConfigurationMigrations([{
|
|
111
|
-
key: 'interactiveEditor.editMode', migrateFn: (value) => {
|
|
112
|
-
return [['inlineChat.mode', { value: value }]];
|
|
113
|
-
}
|
|
114
|
-
}]);
|
|
115
18
|
var InlineChatConfigKeys;
|
|
116
19
|
( ((function(InlineChatConfigKeys) {
|
|
117
20
|
InlineChatConfigKeys["Mode"] = "inlineChat.mode";
|
|
@@ -119,14 +22,20 @@ var InlineChatConfigKeys;
|
|
|
119
22
|
InlineChatConfigKeys["AcceptedOrDiscardBeforeSave"] = "inlineChat.acceptedOrDiscardBeforeSave";
|
|
120
23
|
InlineChatConfigKeys["HoldToSpeech"] = "inlineChat.holdToSpeech";
|
|
121
24
|
InlineChatConfigKeys["AccessibleDiffView"] = "inlineChat.accessibleDiffView";
|
|
25
|
+
InlineChatConfigKeys["ExpTextButtons"] = "inlineChat.experimental.textButtons";
|
|
122
26
|
})(InlineChatConfigKeys || (InlineChatConfigKeys = {}))));
|
|
123
|
-
|
|
27
|
+
var EditMode;
|
|
28
|
+
( ((function(EditMode) {
|
|
29
|
+
EditMode["Live"] = "live";
|
|
30
|
+
EditMode["Preview"] = "preview";
|
|
31
|
+
})(EditMode || (EditMode = {}))));
|
|
32
|
+
( (Registry.as(Extensions.Configuration))).registerConfiguration({
|
|
124
33
|
id: 'editor',
|
|
125
34
|
properties: {
|
|
126
35
|
[InlineChatConfigKeys.Mode]: {
|
|
127
36
|
description: ( localizeWithPath(
|
|
128
37
|
_moduleId,
|
|
129
|
-
|
|
38
|
+
0,
|
|
130
39
|
"Configure if changes crafted with inline chat are applied directly to the document or are previewed first."
|
|
131
40
|
)),
|
|
132
41
|
default: EditMode.Live,
|
|
@@ -135,12 +44,12 @@ var InlineChatConfigKeys;
|
|
|
135
44
|
markdownEnumDescriptions: [
|
|
136
45
|
( localizeWithPath(
|
|
137
46
|
_moduleId,
|
|
138
|
-
|
|
47
|
+
1,
|
|
139
48
|
"Changes are applied directly to the document, can be highlighted via inline diffs, and accepted/discarded by hunks. Ending a session will keep the changes."
|
|
140
49
|
)),
|
|
141
50
|
( localizeWithPath(
|
|
142
51
|
_moduleId,
|
|
143
|
-
|
|
52
|
+
2,
|
|
144
53
|
"Changes are previewed only and need to be accepted via the apply button. Ending a session will discard the changes."
|
|
145
54
|
)),
|
|
146
55
|
],
|
|
@@ -149,21 +58,21 @@ var InlineChatConfigKeys;
|
|
|
149
58
|
[InlineChatConfigKeys.FinishOnType]: {
|
|
150
59
|
description: ( localizeWithPath(
|
|
151
60
|
_moduleId,
|
|
152
|
-
|
|
61
|
+
3,
|
|
153
62
|
"Whether to finish an inline chat session when typing outside of changed regions."
|
|
154
63
|
)),
|
|
155
64
|
default: false,
|
|
156
65
|
type: 'boolean'
|
|
157
66
|
},
|
|
158
67
|
[InlineChatConfigKeys.AcceptedOrDiscardBeforeSave]: {
|
|
159
|
-
description: ( localizeWithPath(_moduleId,
|
|
68
|
+
description: ( localizeWithPath(_moduleId, 4, "Whether pending inline chat sessions prevent saving.")),
|
|
160
69
|
default: true,
|
|
161
70
|
type: 'boolean'
|
|
162
71
|
},
|
|
163
72
|
[InlineChatConfigKeys.HoldToSpeech]: {
|
|
164
73
|
description: ( localizeWithPath(
|
|
165
74
|
_moduleId,
|
|
166
|
-
|
|
75
|
+
5,
|
|
167
76
|
"Whether holding the inline chat keybinding will automatically enable speech recognition."
|
|
168
77
|
)),
|
|
169
78
|
default: true,
|
|
@@ -172,7 +81,7 @@ var InlineChatConfigKeys;
|
|
|
172
81
|
[InlineChatConfigKeys.AccessibleDiffView]: {
|
|
173
82
|
description: ( localizeWithPath(
|
|
174
83
|
_moduleId,
|
|
175
|
-
|
|
84
|
+
6,
|
|
176
85
|
"Whether the inline chat also renders an accessible diff viewer for its changes."
|
|
177
86
|
)),
|
|
178
87
|
default: 'auto',
|
|
@@ -181,13 +90,107 @@ var InlineChatConfigKeys;
|
|
|
181
90
|
markdownEnumDescriptions: [
|
|
182
91
|
( localizeWithPath(
|
|
183
92
|
_moduleId,
|
|
184
|
-
|
|
93
|
+
7,
|
|
185
94
|
"The accessible diff viewer is based screen reader mode being enabled."
|
|
186
95
|
)),
|
|
187
|
-
( localizeWithPath(_moduleId,
|
|
188
|
-
( localizeWithPath(_moduleId,
|
|
96
|
+
( localizeWithPath(_moduleId, 8, "The accessible diff viewer is always enabled.")),
|
|
97
|
+
( localizeWithPath(_moduleId, 9, "The accessible diff viewer is never enabled.")),
|
|
189
98
|
],
|
|
190
|
-
}
|
|
99
|
+
},
|
|
100
|
+
[InlineChatConfigKeys.ExpTextButtons]: {
|
|
101
|
+
description: ( localizeWithPath(_moduleId, 10, "Whether to use textual buttons.")),
|
|
102
|
+
default: false,
|
|
103
|
+
type: 'boolean',
|
|
104
|
+
tags: ['experimental']
|
|
105
|
+
},
|
|
191
106
|
}
|
|
192
107
|
});
|
|
193
|
-
|
|
108
|
+
const INLINE_CHAT_ID = 'interactiveEditor';
|
|
109
|
+
var InlineChatResponseType;
|
|
110
|
+
( ((function(InlineChatResponseType) {
|
|
111
|
+
InlineChatResponseType["None"] = "none";
|
|
112
|
+
InlineChatResponseType["Messages"] = "messages";
|
|
113
|
+
InlineChatResponseType["MessagesAndEdits"] = "messagesAndEdits";
|
|
114
|
+
})(InlineChatResponseType || (InlineChatResponseType = {}))));
|
|
115
|
+
const CTX_INLINE_CHAT_HAS_AGENT = ( (new RawContextKey('inlineChatHasProvider', false, ( localizeWithPath(_moduleId, 11, "Whether a provider for interactive editors exists")))));
|
|
116
|
+
const CTX_INLINE_CHAT_VISIBLE = ( (new RawContextKey('inlineChatVisible', false, ( localizeWithPath(_moduleId, 12, "Whether the interactive editor input is visible")))));
|
|
117
|
+
const CTX_INLINE_CHAT_FOCUSED = ( (new RawContextKey('inlineChatFocused', false, ( localizeWithPath(_moduleId, 13, "Whether the interactive editor input is focused")))));
|
|
118
|
+
const CTX_INLINE_CHAT_RESPONSE_FOCUSED = ( (new RawContextKey('inlineChatResponseFocused', false, ( localizeWithPath(_moduleId, 14, "Whether the interactive widget's response is focused")))));
|
|
119
|
+
const CTX_INLINE_CHAT_EMPTY = ( (new RawContextKey('inlineChatEmpty', false, ( localizeWithPath(_moduleId, 15, "Whether the interactive editor input is empty")))));
|
|
120
|
+
const CTX_INLINE_CHAT_INNER_CURSOR_FIRST = ( (new RawContextKey('inlineChatInnerCursorFirst', false, ( localizeWithPath(
|
|
121
|
+
_moduleId,
|
|
122
|
+
16,
|
|
123
|
+
"Whether the cursor of the iteractive editor input is on the first line"
|
|
124
|
+
)))));
|
|
125
|
+
const CTX_INLINE_CHAT_INNER_CURSOR_LAST = ( (new RawContextKey('inlineChatInnerCursorLast', false, ( localizeWithPath(
|
|
126
|
+
_moduleId,
|
|
127
|
+
17,
|
|
128
|
+
"Whether the cursor of the iteractive editor input is on the last line"
|
|
129
|
+
)))));
|
|
130
|
+
const CTX_INLINE_CHAT_OUTER_CURSOR_POSITION = ( (new RawContextKey('inlineChatOuterCursorPosition', '', ( localizeWithPath(
|
|
131
|
+
_moduleId,
|
|
132
|
+
20,
|
|
133
|
+
"Whether the cursor of the outer editor is above or below the interactive editor input"
|
|
134
|
+
)))));
|
|
135
|
+
const CTX_INLINE_CHAT_HAS_STASHED_SESSION = ( (new RawContextKey('inlineChatHasStashedSession', false, ( localizeWithPath(
|
|
136
|
+
_moduleId,
|
|
137
|
+
21,
|
|
138
|
+
"Whether interactive editor has kept a session for quick restore"
|
|
139
|
+
)))));
|
|
140
|
+
const CTX_INLINE_CHAT_USER_DID_EDIT = ( (new RawContextKey('inlineChatUserDidEdit', undefined, ( localizeWithPath(_moduleId, 22, "Whether the user did changes ontop of the inline chat")))));
|
|
141
|
+
const CTX_INLINE_CHAT_DOCUMENT_CHANGED = ( (new RawContextKey('inlineChatDocumentChanged', false, ( localizeWithPath(_moduleId, 23, "Whether the document has changed concurrently")))));
|
|
142
|
+
const CTX_INLINE_CHAT_CHANGE_HAS_DIFF = ( (new RawContextKey('inlineChatChangeHasDiff', false, ( localizeWithPath(_moduleId, 24, "Whether the current change supports showing a diff")))));
|
|
143
|
+
const CTX_INLINE_CHAT_CHANGE_SHOWS_DIFF = ( (new RawContextKey('inlineChatChangeShowsDiff', false, ( localizeWithPath(_moduleId, 25, "Whether the current change showing a diff")))));
|
|
144
|
+
const CTX_INLINE_CHAT_EDIT_MODE = ( (new RawContextKey('config.inlineChat.mode', EditMode.Live)));
|
|
145
|
+
const CTX_INLINE_CHAT_REQUEST_IN_PROGRESS = ( (new RawContextKey('inlineChatRequestInProgress', false, ( localizeWithPath(_moduleId, 26, "Whether an inline chat request is currently in progress")))));
|
|
146
|
+
const CTX_INLINE_CHAT_RESPONSE_TYPE = ( (new RawContextKey('inlineChatResponseType', InlineChatResponseType.None, ( localizeWithPath(
|
|
147
|
+
_moduleId,
|
|
148
|
+
27,
|
|
149
|
+
"What type was the responses have been receieved, nothing yet, just messages, or messaged and local edits"
|
|
150
|
+
)))));
|
|
151
|
+
const CTX_INLINE_CHAT_CONFIG_TXT_BTNS = ( (ContextKeyExpr.equals(`config.${[InlineChatConfigKeys.ExpTextButtons]}`, true)));
|
|
152
|
+
const ACTION_ACCEPT_CHANGES = 'inlineChat.acceptChanges';
|
|
153
|
+
const ACTION_REGENERATE_RESPONSE = 'inlineChat.regenerate';
|
|
154
|
+
const ACTION_VIEW_IN_CHAT = 'inlineChat.viewInChat';
|
|
155
|
+
const ACTION_TOGGLE_DIFF = 'inlineChat.toggleDiff';
|
|
156
|
+
const MENU_INLINE_CHAT_EXECUTE = MenuId.for('inlineChat.execute');
|
|
157
|
+
const MENU_INLINE_CHAT_CONTENT_STATUS = MenuId.for('inlineChat.content.status');
|
|
158
|
+
const MENU_INLINE_CHAT_WIDGET_STATUS = MenuId.for('inlineChatWidget.status');
|
|
159
|
+
const inlineChatForeground = registerColor('inlineChat.foreground', editorWidgetForeground, ( localizeWithPath(_moduleId, 28, "Foreground color of the interactive editor widget")));
|
|
160
|
+
const inlineChatBackground = registerColor('inlineChat.background', editorWidgetBackground, ( localizeWithPath(_moduleId, 29, "Background color of the interactive editor widget")));
|
|
161
|
+
registerColor('inlineChat.border', editorWidgetBorder, ( localizeWithPath(_moduleId, 30, "Border color of the interactive editor widget")));
|
|
162
|
+
registerColor('inlineChat.shadow', widgetShadow, ( localizeWithPath(_moduleId, 31, "Shadow color of the interactive editor widget")));
|
|
163
|
+
registerColor('inlineChatInput.border', editorWidgetBorder, ( localizeWithPath(_moduleId, 32, "Border color of the interactive editor input")));
|
|
164
|
+
registerColor('inlineChatInput.focusBorder', focusBorder, ( localizeWithPath(_moduleId, 33, "Border color of the interactive editor input when focused")));
|
|
165
|
+
registerColor('inlineChatInput.placeholderForeground', inputPlaceholderForeground, ( localizeWithPath(
|
|
166
|
+
_moduleId,
|
|
167
|
+
34,
|
|
168
|
+
"Foreground color of the interactive editor input placeholder"
|
|
169
|
+
)));
|
|
170
|
+
registerColor('inlineChatInput.background', inputBackground, ( localizeWithPath(_moduleId, 35, "Background color of the interactive editor input")));
|
|
171
|
+
registerColor('inlineChatDiff.inserted', ( (transparent(diffInserted, .5))), ( localizeWithPath(
|
|
172
|
+
_moduleId,
|
|
173
|
+
36,
|
|
174
|
+
"Background color of inserted text in the interactive editor input"
|
|
175
|
+
)));
|
|
176
|
+
const overviewRulerInlineChatDiffInserted = registerColor('editorOverviewRuler.inlineChatInserted', { dark: ( (transparent(diffInserted, 0.6))), light: ( (transparent(diffInserted, 0.8))), hcDark: ( (transparent(diffInserted, 0.6))), hcLight: ( (transparent(diffInserted, 0.8))) }, ( localizeWithPath(
|
|
177
|
+
_moduleId,
|
|
178
|
+
37,
|
|
179
|
+
'Overview ruler marker color for inline chat inserted content.'
|
|
180
|
+
)));
|
|
181
|
+
const minimapInlineChatDiffInserted = registerColor('editorOverviewRuler.inlineChatInserted', { dark: ( (transparent(diffInserted, 0.6))), light: ( (transparent(diffInserted, 0.8))), hcDark: ( (transparent(diffInserted, 0.6))), hcLight: ( (transparent(diffInserted, 0.8))) }, ( localizeWithPath(
|
|
182
|
+
_moduleId,
|
|
183
|
+
37,
|
|
184
|
+
'Overview ruler marker color for inline chat inserted content.'
|
|
185
|
+
)));
|
|
186
|
+
registerColor('inlineChatDiff.removed', ( (transparent(diffRemoved, .5))), ( localizeWithPath(
|
|
187
|
+
_moduleId,
|
|
188
|
+
38,
|
|
189
|
+
"Background color of removed text in the interactive editor input"
|
|
190
|
+
)));
|
|
191
|
+
registerColor('editorOverviewRuler.inlineChatRemoved', { dark: ( (transparent(diffRemoved, 0.6))), light: ( (transparent(diffRemoved, 0.8))), hcDark: ( (transparent(diffRemoved, 0.6))), hcLight: ( (transparent(diffRemoved, 0.8))) }, ( localizeWithPath(
|
|
192
|
+
_moduleId,
|
|
193
|
+
39,
|
|
194
|
+
'Overview ruler marker color for inline chat removed content.'
|
|
195
|
+
)));
|
|
196
|
+
export { ACTION_ACCEPT_CHANGES, ACTION_REGENERATE_RESPONSE, ACTION_TOGGLE_DIFF, ACTION_VIEW_IN_CHAT, CTX_INLINE_CHAT_CHANGE_HAS_DIFF, CTX_INLINE_CHAT_CHANGE_SHOWS_DIFF, CTX_INLINE_CHAT_CONFIG_TXT_BTNS, CTX_INLINE_CHAT_DOCUMENT_CHANGED, CTX_INLINE_CHAT_EDIT_MODE, CTX_INLINE_CHAT_EMPTY, CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_HAS_AGENT, CTX_INLINE_CHAT_HAS_STASHED_SESSION, CTX_INLINE_CHAT_INNER_CURSOR_FIRST, CTX_INLINE_CHAT_INNER_CURSOR_LAST, CTX_INLINE_CHAT_OUTER_CURSOR_POSITION, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS, CTX_INLINE_CHAT_RESPONSE_FOCUSED, CTX_INLINE_CHAT_RESPONSE_TYPE, CTX_INLINE_CHAT_USER_DID_EDIT, CTX_INLINE_CHAT_VISIBLE, EditMode, INLINE_CHAT_ID, InlineChatConfigKeys, InlineChatResponseType, MENU_INLINE_CHAT_CONTENT_STATUS, MENU_INLINE_CHAT_EXECUTE, MENU_INLINE_CHAT_WIDGET_STATUS, inlineChatBackground, inlineChatForeground, minimapInlineChatDiffInserted, overviewRulerInlineChatDiffInserted };
|
|
@@ -23,7 +23,7 @@ img {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
a {
|
|
26
|
-
text-decoration:
|
|
26
|
+
text-decoration: var(--text-link-decoration);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
a:hover {
|
|
@@ -171,7 +171,7 @@ function sanitize(documentContent, allowUnknownProtocols) {
|
|
|
171
171
|
hook.dispose();
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
async function renderMarkdownDocument(text, extensionService, languageService,
|
|
174
|
+
async function renderMarkdownDocument(text, extensionService, languageService, options) {
|
|
175
175
|
const highlight = (code, lang, callback) => {
|
|
176
176
|
if (!callback) {
|
|
177
177
|
return code;
|
|
@@ -181,7 +181,7 @@ async function renderMarkdownDocument(text, extensionService, languageService, s
|
|
|
181
181
|
return '';
|
|
182
182
|
}
|
|
183
183
|
extensionService.whenInstalledExtensionsRegistered().then(async () => {
|
|
184
|
-
if (token?.isCancellationRequested) {
|
|
184
|
+
if (options?.token?.isCancellationRequested) {
|
|
185
185
|
callback(null, '');
|
|
186
186
|
return;
|
|
187
187
|
}
|
|
@@ -191,15 +191,11 @@ async function renderMarkdownDocument(text, extensionService, languageService, s
|
|
|
191
191
|
});
|
|
192
192
|
return '';
|
|
193
193
|
};
|
|
194
|
-
const renderer = new marked_1.Renderer();
|
|
195
|
-
if (settingRenderer) {
|
|
196
|
-
renderer.html = settingRenderer.getHtmlRenderer();
|
|
197
|
-
}
|
|
198
194
|
return ( new Promise((resolve, reject) => {
|
|
199
|
-
marked_1(text, { highlight, renderer }, (err, value) => err ? reject(err) : resolve(value));
|
|
195
|
+
marked_1(text, { highlight, renderer: options?.renderer }, (err, value) => err ? reject(err) : resolve(value));
|
|
200
196
|
})).then(raw => {
|
|
201
|
-
if (shouldSanitize) {
|
|
202
|
-
return sanitize(raw, allowUnknownProtocols);
|
|
197
|
+
if (options?.shouldSanitize ?? true) {
|
|
198
|
+
return sanitize(raw, options?.allowUnknownProtocols ?? false);
|
|
203
199
|
}
|
|
204
200
|
else {
|
|
205
201
|
return raw;
|
|
@@ -77,7 +77,7 @@ let TempFileMergeEditorInputModel = class TempFileMergeEditorInputModel extends
|
|
|
77
77
|
this.dialogService = dialogService;
|
|
78
78
|
this.editorService = editorService;
|
|
79
79
|
this.savedAltVersionId = observableValue(this, this.model.resultTextModel.getAlternativeVersionId());
|
|
80
|
-
this.altVersionId = observableFromEvent(e => this.model.resultTextModel.onDidChangeContent(e), () =>
|
|
80
|
+
this.altVersionId = observableFromEvent(this, e => this.model.resultTextModel.onDidChangeContent(e), () =>
|
|
81
81
|
this.model.resultTextModel.getAlternativeVersionId());
|
|
82
82
|
this.isDirty = derived(this, (reader) => this.altVersionId.read(reader) !== this.savedAltVersionId.read(reader));
|
|
83
83
|
this.finished = false;
|
|
@@ -257,7 +257,7 @@ let WorkspaceMergeEditorInputModel = class WorkspaceMergeEditorInputModel extend
|
|
|
257
257
|
this.telemetry = telemetry;
|
|
258
258
|
this._dialogService = _dialogService;
|
|
259
259
|
this._storageService = _storageService;
|
|
260
|
-
this.isDirty = observableFromEvent(Event.any(this.resultTextFileModel.onDidChangeDirty, this.resultTextFileModel.onDidSaveError), () => this.resultTextFileModel.isDirty());
|
|
260
|
+
this.isDirty = observableFromEvent(this, Event.any(this.resultTextFileModel.onDidChangeDirty, this.resultTextFileModel.onDidSaveError), () => this.resultTextFileModel.isDirty());
|
|
261
261
|
this.reported = false;
|
|
262
262
|
this.dateTimeOpened = ( (new Date()));
|
|
263
263
|
}
|
|
@@ -11,6 +11,7 @@ import { derived } from '../../../../base/common/observableInternal/derived.js';
|
|
|
11
11
|
import { autorun } from '../../../../base/common/observableInternal/autorun.js';
|
|
12
12
|
import { observableFromValueWithChangeEvent, constObservable, mapObservableArrayCached, recomputeInitiallyAndOnChange, ValueWithChangeEventFromObservable, observableFromEvent } from '../../../../base/common/observableInternal/utils.js';
|
|
13
13
|
import { ObservableLazyPromise } from '../../../../base/common/observableInternal/promise.js';
|
|
14
|
+
import '../../../../base/common/arrays.js';
|
|
14
15
|
import { isDefined, isObject } from '../../../../base/common/types.js';
|
|
15
16
|
import { URI } from '../../../../base/common/uri.js';
|
|
16
17
|
import { ConstLazyPromise } from '../../../../editor/browser/widget/multiDiffEditor/model.js';
|
package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js
CHANGED
|
@@ -54,8 +54,8 @@ let ScmMultiDiffSourceResolver = class ScmMultiDiffSourceResolver {
|
|
|
54
54
|
}
|
|
55
55
|
async resolveDiffSource(uri) {
|
|
56
56
|
const { repositoryUri, groupId } = ScmMultiDiffSourceResolver_1.parseUri(uri);
|
|
57
|
-
const repository = await waitForState(observableFromEvent(this._scmService.onDidAddRepository, () => [...this._scmService.repositories].find(r => r.provider.rootUri?.toString() === ( (repositoryUri.toString())))));
|
|
58
|
-
const group = await waitForState(observableFromEvent(repository.provider.onDidChangeResourceGroups, () => repository.provider.groups.find(g => g.id === groupId)));
|
|
57
|
+
const repository = await waitForState(observableFromEvent(this, this._scmService.onDidAddRepository, () => [...this._scmService.repositories].find(r => r.provider.rootUri?.toString() === ( (repositoryUri.toString())))));
|
|
58
|
+
const group = await waitForState(observableFromEvent(this, repository.provider.onDidChangeResourceGroups, () => repository.provider.groups.find(g => g.id === groupId)));
|
|
59
59
|
return (
|
|
60
60
|
(new ScmResolvedMultiDiffSource(group, repository))
|
|
61
61
|
);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Disposable } from '../../../../../../base/common/lifecycle.js';
|
|
2
1
|
import { Emitter } from '../../../../../../base/common/event.js';
|
|
2
|
+
import { Disposable } from '../../../../../../base/common/lifecycle.js';
|
|
3
|
+
import { NotebookFindScopeType } from '../../../common/notebookCommon.js';
|
|
3
4
|
class NotebookFindFilters extends Disposable {
|
|
4
5
|
get markupInput() {
|
|
5
6
|
return this._markupInput;
|
|
@@ -37,25 +38,16 @@ class NotebookFindFilters extends Disposable {
|
|
|
37
38
|
this._onDidChange.fire({ codeOutput: value });
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
|
-
get
|
|
41
|
-
return this.
|
|
42
|
-
}
|
|
43
|
-
set searchInRanges(value) {
|
|
44
|
-
if (this._searchInRanges !== value) {
|
|
45
|
-
this._searchInRanges = value;
|
|
46
|
-
this._onDidChange.fire({ searchInRanges: value });
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
get selectedRanges() {
|
|
50
|
-
return this._selectedRanges;
|
|
41
|
+
get findScope() {
|
|
42
|
+
return this._findScope;
|
|
51
43
|
}
|
|
52
|
-
set
|
|
53
|
-
if (this.
|
|
54
|
-
this.
|
|
55
|
-
this._onDidChange.fire({
|
|
44
|
+
set findScope(value) {
|
|
45
|
+
if (this._findScope !== value) {
|
|
46
|
+
this._findScope = value;
|
|
47
|
+
this._onDidChange.fire({ findScope: true });
|
|
56
48
|
}
|
|
57
49
|
}
|
|
58
|
-
constructor(markupInput, markupPreview, codeInput, codeOutput,
|
|
50
|
+
constructor(markupInput, markupPreview, codeInput, codeOutput, findScope) {
|
|
59
51
|
super();
|
|
60
52
|
this._onDidChange = this._register(( new Emitter()));
|
|
61
53
|
this.onDidChange = this._onDidChange.event;
|
|
@@ -63,14 +55,12 @@ class NotebookFindFilters extends Disposable {
|
|
|
63
55
|
this._markupPreview = true;
|
|
64
56
|
this._codeInput = true;
|
|
65
57
|
this._codeOutput = true;
|
|
66
|
-
this.
|
|
67
|
-
this._selectedRanges = [];
|
|
58
|
+
this._findScope = { findScopeType: NotebookFindScopeType.None };
|
|
68
59
|
this._markupInput = markupInput;
|
|
69
60
|
this._markupPreview = markupPreview;
|
|
70
61
|
this._codeInput = codeInput;
|
|
71
62
|
this._codeOutput = codeOutput;
|
|
72
|
-
this.
|
|
73
|
-
this._selectedRanges = selectedRanges;
|
|
63
|
+
this._findScope = findScope;
|
|
74
64
|
this._initialMarkupInput = markupInput;
|
|
75
65
|
this._initialMarkupPreview = markupPreview;
|
|
76
66
|
this._initialCodeInput = codeInput;
|
|
@@ -87,8 +77,7 @@ class NotebookFindFilters extends Disposable {
|
|
|
87
77
|
this._markupPreview = v.markupPreview;
|
|
88
78
|
this._codeInput = v.codeInput;
|
|
89
79
|
this._codeOutput = v.codeOutput;
|
|
90
|
-
this.
|
|
91
|
-
this._selectedRanges = v.selectedRanges;
|
|
80
|
+
this._findScope = v.findScope;
|
|
92
81
|
}
|
|
93
82
|
}
|
|
94
83
|
export { NotebookFindFilters };
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js
CHANGED
|
@@ -46,7 +46,6 @@ class FindMatchDecorationModel extends Disposable {
|
|
|
46
46
|
};
|
|
47
47
|
});
|
|
48
48
|
this._currentMatchCellDecorations = this._notebookEditor.deltaCellDecorations(this._currentMatchCellDecorations, [{
|
|
49
|
-
ownerId: cell.handle,
|
|
50
49
|
handle: cell.handle,
|
|
51
50
|
options: {
|
|
52
51
|
overviewRuler: {
|
|
@@ -64,7 +63,6 @@ class FindMatchDecorationModel extends Disposable {
|
|
|
64
63
|
const offset = await this._notebookEditor.findHighlightCurrent(index, this.ownerID);
|
|
65
64
|
this._currentMatchDecorations = { kind: 'output', index: index };
|
|
66
65
|
this._currentMatchCellDecorations = this._notebookEditor.deltaCellDecorations(this._currentMatchCellDecorations, [{
|
|
67
|
-
ownerId: cell.handle,
|
|
68
66
|
handle: cell.handle,
|
|
69
67
|
options: {
|
|
70
68
|
overviewRuler: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
+
import { findFirstIdxMonotonousOrArrLen } from '../../../../../../base/common/arraysFind.js';
|
|
2
3
|
import { Delayer, createCancelablePromise } from '../../../../../../base/common/async.js';
|
|
3
|
-
import {
|
|
4
|
+
import { Disposable, DisposableStore } from '../../../../../../base/common/lifecycle.js';
|
|
4
5
|
import { Range } from '../../../../../../editor/common/core/range.js';
|
|
5
6
|
import { PrefixSumComputer } from '../../../../../../editor/common/model/prefixSumComputer.js';
|
|
6
|
-
import { CellKind, NotebookCellsChangeType } from '../../../common/notebookCommon.js';
|
|
7
7
|
import { IConfigurationService } from '../../../../../../platform/configuration/common/configuration.service.js';
|
|
8
|
-
import { Disposable, DisposableStore } from '../../../../../../base/common/lifecycle.js';
|
|
9
|
-
import { findFirstIdxMonotonousOrArrLen } from '../../../../../../base/common/arraysFind.js';
|
|
10
8
|
import { FindMatchDecorationModel } from './findMatchDecorationModel.js';
|
|
9
|
+
import { CellEditState } from '../../notebookBrowser.js';
|
|
10
|
+
import { CellKind, NotebookCellsChangeType } from '../../../common/notebookCommon.js';
|
|
11
11
|
class CellFindMatchModel {
|
|
12
12
|
get length() {
|
|
13
13
|
return this._contentMatches.length + this._webviewMatches.length;
|
|
@@ -76,7 +76,7 @@ let FindModel = class FindModel extends Disposable {
|
|
|
76
76
|
this._findMatchDecorationModel = ( new FindMatchDecorationModel(this._notebookEditor, this._notebookEditor.getId()));
|
|
77
77
|
}
|
|
78
78
|
_updateCellStates(e) {
|
|
79
|
-
if (!this._state.filters?.markupInput || !this._state.filters?.markupPreview || !this._state.filters?.
|
|
79
|
+
if (!this._state.filters?.markupInput || !this._state.filters?.markupPreview || !this._state.filters?.findScope) {
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
82
|
const updateEditingState = () => {
|
|
@@ -94,8 +94,7 @@ let FindModel = class FindModel extends Disposable {
|
|
|
94
94
|
includeCodeInput: false,
|
|
95
95
|
includeMarkupPreview: false,
|
|
96
96
|
includeOutput: false,
|
|
97
|
-
|
|
98
|
-
selectedRanges: this._state.filters?.selectedRanges
|
|
97
|
+
findScope: this._state.filters?.findScope,
|
|
99
98
|
};
|
|
100
99
|
const contentMatches = viewModel.find(this._state.searchString, options);
|
|
101
100
|
for (let i = 0; i < viewModel.length; i++) {
|
|
@@ -356,8 +355,7 @@ let FindModel = class FindModel extends Disposable {
|
|
|
356
355
|
includeCodeInput: this._state.filters?.codeInput ?? true,
|
|
357
356
|
includeMarkupPreview: !!this._state.filters?.markupPreview,
|
|
358
357
|
includeOutput: !!this._state.filters?.codeOutput,
|
|
359
|
-
|
|
360
|
-
selectedRanges: this._state.filters?.selectedRanges
|
|
358
|
+
findScope: this._state.filters?.findScope,
|
|
361
359
|
};
|
|
362
360
|
ret = await this._notebookEditor.find(val, options, token);
|
|
363
361
|
if (token.isCancellationRequested) {
|