@codingame/monaco-vscode-api 16.1.0 → 17.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/missing-services.js +107 -2
- package/monaco.d.ts +2 -2
- package/package.json +10 -9
- package/services.d.ts +4 -4
- package/services.js +7 -18
- package/vscode/src/vs/base/browser/dom.d.ts +1 -0
- package/vscode/src/vs/base/browser/dom.js +6 -1
- package/vscode/src/vs/base/browser/mouseEvent.d.ts +2 -0
- package/vscode/src/vs/base/browser/mouseEvent.js +1 -0
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.d.ts +2 -3
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hover.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate2.js +6 -1
- package/vscode/src/vs/base/browser/ui/list/listPaging.d.ts +2 -1
- package/vscode/src/vs/base/browser/ui/severityIcon/media/severityIcon.css +1 -3
- package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +5 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +17 -4
- package/vscode/src/vs/base/common/arrays.d.ts +1 -0
- package/vscode/src/vs/base/common/arrays.js +5 -2
- package/vscode/src/vs/base/common/async.js +9 -2
- package/vscode/src/vs/base/common/codicons.d.ts +5 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +5 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +5 -0
- package/vscode/src/vs/base/common/color.d.ts +1 -0
- package/vscode/src/vs/base/common/color.js +10 -0
- package/vscode/src/vs/base/common/comparers.d.ts +2 -2
- package/vscode/src/vs/base/common/decorators.d.ts +1 -1
- package/vscode/src/vs/base/common/glob.d.ts +3 -0
- package/vscode/src/vs/base/common/glob.js +10 -1
- package/vscode/src/vs/base/common/marshallingIds.d.ts +2 -1
- package/vscode/src/vs/base/common/marshallingIds.js +1 -0
- package/vscode/src/vs/base/common/observableInternal/autorun.d.ts +6 -8
- package/vscode/src/vs/base/common/observableInternal/autorun.js +15 -11
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +0 -10
- package/vscode/src/vs/base/common/observableInternal/changeTracker.d.ts +23 -0
- package/vscode/src/vs/base/common/observableInternal/changeTracker.js +30 -0
- package/vscode/src/vs/base/common/observableInternal/derived.d.ts +18 -13
- package/vscode/src/vs/base/common/observableInternal/derived.js +47 -18
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +6 -5
- package/vscode/src/vs/base/common/observableInternal/index.js +2 -2
- package/vscode/src/vs/base/common/observableInternal/logging/logging.d.ts +2 -2
- package/vscode/src/vs/base/common/observableInternal/promise.d.ts +28 -0
- package/vscode/src/vs/base/common/observableInternal/promise.js +65 -0
- package/vscode/src/vs/base/common/observableInternal/reducer.d.ts +16 -0
- package/vscode/src/vs/base/common/observableInternal/reducer.js +36 -0
- package/vscode/src/vs/base/common/observableInternal/utils.d.ts +2 -0
- package/vscode/src/vs/base/common/observableInternal/utils.js +19 -11
- package/vscode/src/vs/base/common/product.d.ts +5 -0
- package/vscode/src/vs/base/common/sseParser.d.ts +26 -0
- package/vscode/src/vs/base/common/sseParser.js +134 -0
- package/vscode/src/vs/base/common/stopwatch.js +2 -2
- package/vscode/src/vs/base/common/strings.d.ts +1 -0
- package/vscode/src/vs/base/common/strings.js +8 -19
- package/vscode/src/vs/base/common/ternarySearchTree.d.ts +1 -0
- package/vscode/src/vs/base/common/ternarySearchTree.js +55 -13
- package/vscode/src/vs/editor/browser/config/editorConfiguration.d.ts +1 -0
- package/vscode/src/vs/editor/browser/config/editorConfiguration.js +3 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.css +1 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +6 -3
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +86 -54
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.d.ts +0 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +12 -8
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.d.ts +0 -1
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +9 -6
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.js +3 -3
- package/vscode/src/vs/editor/browser/controller/mouseTarget.js +2 -2
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +1 -1
- package/vscode/src/vs/editor/browser/gpu/objectCollectionBuffer.d.ts +1 -1
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +2 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hover.css +8 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.d.ts +1 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +6 -1
- package/vscode/src/vs/editor/browser/view/renderingContext.d.ts +1 -0
- package/vscode/src/vs/editor/browser/view/renderingContext.js +3 -0
- package/vscode/src/vs/editor/browser/view/viewLayer.d.ts +3 -1
- package/vscode/src/vs/editor/browser/view/viewLayer.js +13 -6
- package/vscode/src/vs/editor/browser/view/viewOverlays.js +4 -1
- package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +4 -5
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +4 -2
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.d.ts +0 -1
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.js +6 -6
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +3 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +5 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +15 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +7 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +10 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +19 -15
- package/vscode/src/vs/editor/common/codecs/frontMatterCodec/tokens/index.d.ts +5 -0
- package/vscode/src/vs/editor/common/codecs/simpleCodec/tokens/index.d.ts +20 -0
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +24 -23
- package/vscode/src/vs/editor/common/config/editorOptions.js +3 -4
- package/vscode/src/vs/editor/common/core/columnRange.d.ts +11 -0
- package/vscode/src/vs/editor/common/core/columnRange.js +32 -0
- package/vscode/src/vs/editor/common/core/offsetEdit.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/offsetEdit.js +10 -0
- package/vscode/src/vs/editor/common/core/offsetRange.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/offsetRange.js +3 -0
- package/vscode/src/vs/editor/common/core/positionToOffset.d.ts +15 -3
- package/vscode/src/vs/editor/common/core/positionToOffset.js +45 -11
- package/vscode/src/vs/editor/common/core/rangeSingleLine.d.ts +9 -0
- package/vscode/src/vs/editor/common/core/rangeSingleLine.js +27 -0
- package/vscode/src/vs/editor/common/core/textEdit.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/textEdit.js +41 -0
- package/vscode/src/vs/editor/common/editorCommon.d.ts +1 -0
- package/vscode/src/vs/editor/common/languages/modesRegistry.d.ts +2 -2
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +4 -2
- package/vscode/src/vs/editor/common/languages.d.ts +22 -1
- package/vscode/src/vs/editor/common/languages.js +7 -1
- package/vscode/src/vs/editor/common/model/textModel.d.ts +5 -1
- package/vscode/src/vs/editor/common/model/textModel.js +80 -18
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +1 -1
- package/vscode/src/vs/editor/common/model.d.ts +2 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +5 -0
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +7 -1
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +11 -0
- package/vscode/src/vs/editor/common/textModelEvents.js +14 -1
- package/vscode/src/vs/editor/common/tokens/common.d.ts +7 -0
- package/vscode/src/vs/editor/common/tokens/common.js +18 -0
- package/vscode/src/vs/editor/common/tokens/contiguousTokensEditing.d.ts +1 -1
- package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +1 -0
- package/vscode/src/vs/editor/common/tokens/lineTokens.js +3 -0
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.d.ts +2 -0
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +20 -0
- package/vscode/src/vs/editor/common/tokens/sparseTokensStore.d.ts +2 -1
- package/vscode/src/vs/editor/common/tokens/sparseTokensStore.js +9 -4
- package/vscode/src/vs/editor/common/tokens/tokenArray.d.ts +1 -0
- package/vscode/src/vs/editor/common/tokens/tokenArray.js +4 -0
- package/vscode/src/vs/editor/common/tokens/tokenWithTextArray.d.ts +25 -0
- package/vscode/src/vs/editor/common/tokens/tokenWithTextArray.js +73 -0
- package/vscode/src/vs/editor/common/viewLayout/lineHeights.d.ts +35 -0
- package/vscode/src/vs/editor/common/viewLayout/lineHeights.js +339 -0
- package/vscode/src/vs/editor/common/viewLayout/linesLayout.d.ts +8 -6
- package/vscode/src/vs/editor/common/viewLayout/linesLayout.js +42 -49
- package/vscode/src/vs/editor/common/viewLayout/viewLayout.d.ts +6 -3
- package/vscode/src/vs/editor/common/viewLayout/viewLayout.js +16 -5
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +1 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +44 -7
- package/vscode/src/vs/editor/common/viewModel.d.ts +5 -0
- package/vscode/src/vs/editor/common/viewModelEventDispatcher.d.ts +11 -3
- package/vscode/src/vs/editor/common/viewModelEventDispatcher.js +14 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +20 -14
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +3 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +3 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +4 -3
- package/vscode/src/vs/editor/contrib/find/browser/findController.d.ts +1 -3
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +5 -11
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.d.ts +1 -7
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +2 -15
- package/vscode/src/vs/editor/contrib/folding/browser/folding.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +24 -23
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +5 -5
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +14 -12
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +21 -21
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.d.ts +0 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +29 -41
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +11 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +1 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.js +1 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.d.ts +10 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.js +31 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +16 -16
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +156 -202
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +21 -49
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +135 -431
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEdit.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +98 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +487 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +34 -32
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +141 -132
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.d.ts +26 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.d.ts +2 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +21 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +19 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +17 -9
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.d.ts +5 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +139 -188
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.d.ts +8 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js +9 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsNewUsers.d.ts +23 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsNewUsers.js +157 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +37 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.d.ts +3 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +3 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.d.ts +6 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.js +28 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.d.ts +21 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +215 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.js +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.d.ts +1 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +3 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +22 -21
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +17 -17
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +23 -49
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +8 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +2 -2
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +24 -14
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +19 -18
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +5 -10
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.d.ts +2 -2
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +2 -2
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +3 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +23 -14
- package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +2 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +17 -3
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +6 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.d.ts +2 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.service.d.ts +2 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +3 -1
- package/vscode/src/vs/platform/actions/common/actions.js +2 -0
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.d.ts +1 -0
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +3 -0
- package/vscode/src/vs/platform/clipboard/common/clipboardService.service.d.ts +1 -0
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +15 -13
- package/vscode/src/vs/platform/configuration/common/configurations.js +1 -1
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.d.ts +5 -0
- package/vscode/src/vs/platform/dnd/browser/dnd.js +6 -2
- package/vscode/src/vs/platform/editor/common/editor.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +8 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +94 -4
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +3 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.d.ts +3 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +10 -7
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.d.ts +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +10 -11
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +1 -0
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +7 -6
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +9 -8
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/jsonschemas/common/jsonContributionRegistry.js +5 -4
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
- package/vscode/src/vs/platform/label/common/label.service.d.ts +1 -1
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
- package/vscode/src/vs/platform/list/browser/listService.d.ts +1 -1
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markerService.d.ts +2 -7
- package/vscode/src/vs/platform/markers/common/markerService.js +5 -5
- package/vscode/src/vs/platform/markers/common/markers.d.ts +7 -0
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/markers/common/markers.service.d.ts +2 -7
- package/vscode/src/vs/platform/native/common/native.d.ts +168 -0
- package/vscode/src/vs/platform/notification/common/notification.d.ts +6 -2
- package/vscode/src/vs/platform/notification/common/notification.js +3 -2
- package/vscode/src/vs/platform/notification/common/notification.service.d.ts +2 -3
- package/vscode/src/vs/platform/product/common/product.js +93 -48
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +4 -19
- package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +6 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +33 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputBox.d.ts +2 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputBox.js +6 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +25 -18
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.d.ts +5 -5
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +58 -43
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +1 -1
- package/vscode/src/vs/platform/registry/common/platform.js +9 -1
- package/vscode/src/vs/platform/request/common/request.d.ts +1 -1
- package/vscode/src/vs/platform/request/common/request.js +18 -18
- package/vscode/src/vs/platform/request/common/request.service.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +14 -1
- package/vscode/src/vs/platform/terminal/common/terminal.js +14 -1
- package/vscode/src/vs/platform/theme/browser/defaultStyles.d.ts +1 -2
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +4 -2
- package/vscode/src/vs/platform/theme/common/colorUtils.d.ts +7 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +12 -4
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +94 -94
- package/vscode/src/vs/platform/theme/common/colors/inputColors.d.ts +2 -0
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +49 -47
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +10 -8
- package/vscode/src/vs/platform/theme/common/themeService.d.ts +0 -8
- package/vscode/src/vs/platform/theme/common/themeService.js +4 -3
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +2 -2
- package/vscode/src/vs/platform/window/common/window.d.ts +4 -0
- package/vscode/src/vs/platform/window/common/window.js +2 -1
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/platform/workspaces/common/workspaces.service.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +27 -20
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +54 -19
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostAiSettingsSearch.d.ts +14 -0
- package/vscode/src/vs/workbench/api/common/extHostAiSettingsSearch.js +38 -0
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -1
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +30 -17
- package/vscode/src/vs/workbench/api/common/extHostCodeMapper.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostCommands.d.ts +0 -1
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.d.ts +2 -0
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +15 -4
- package/vscode/src/vs/workbench/api/common/extHostLabelService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +4 -0
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +31 -6
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.d.ts +2 -3
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +60 -14
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +15 -9
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +4 -3
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +279 -82
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostQuickDiff.d.ts +2 -1
- package/vscode/src/vs/workbench/api/common/extHostQuickDiff.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostRequireInterceptor.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +1 -0
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +21 -0
- package/vscode/src/vs/workbench/api/common/extHostSearch.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +27 -9
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +201 -29
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +67 -27
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +79 -28
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +7 -4
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +34 -9
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/api/worker/extHostExtensionService.d.ts +1 -0
- package/vscode/src/vs/workbench/api/worker/extHostExtensionService.js +3 -0
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +33 -33
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.d.ts +1 -1
- package/vscode/src/vs/workbench/common/configuration.js +10 -16
- package/vscode/src/vs/workbench/common/contextkeys.d.ts +3 -0
- package/vscode/src/vs/workbench/common/contextkeys.js +73 -71
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +13 -9
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +160 -160
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +164 -147
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +15 -14
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.d.ts +245 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +435 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +6 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +51 -49
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +19 -26
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +16 -23
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.d.ts +585 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +1179 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.d.ts +116 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +211 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +19 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatTransferService.service.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.service.d.ts +2 -7
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +12 -4
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +33 -5
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +14 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +18 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/index.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +14 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/types.d.ts +28 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/types.service.d.ts +10 -4
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.d.ts +8 -25
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +11 -97
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +64 -64
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.d.ts +171 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +85 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +127 -0
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryTypes.service.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +19 -8
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +12 -10
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +8 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +16 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.service.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.d.ts +11 -3
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.js +77 -16
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +1 -1
- package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.d.ts +17 -0
- package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.js +10 -0
- package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.service.d.ts +13 -0
- package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.service.js +6 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverExpression.d.ts +2 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverExpression.js +61 -12
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.d.ts +3 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +25 -29
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +4 -1
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +3 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +84 -84
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +4 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +2 -4
- package/vscode/src/vs/workbench/services/localization/common/locale.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.d.ts +1 -0
- package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.js +2 -0
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/output/common/output.js +6 -4
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/search/common/search.d.ts +2 -1
- package/vscode/src/vs/workbench/services/search/common/searchExtTypes.d.ts +5 -0
- package/vscode/src/vs/workbench/services/search/common/searchExtTypes.js +6 -1
- package/vscode/src/vs/workbench/services/search/common/textSearchManager.d.ts +2 -2
- package/vscode/src/vs/workbench/services/search/common/textSearchManager.js +31 -23
- package/vscode/src/vs/workbench/services/textfile/common/encoding.d.ts +64 -0
- package/vscode/src/vs/workbench/services/textfile/common/encoding.js +560 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +165 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.js +74 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.d.ts +12 -2
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +12 -12
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceEditing.service.d.ts +1 -1
- package/vscode-dts/vscode.d.ts +204 -9
- package/vscode-dts/vscode.proposed.aiSettingsSearch.d.ts +30 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +18 -16
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +84 -5
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +18 -16
- package/vscode-dts/vscode.proposed.chatStatusItem.d.ts +1 -1
- package/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts +1 -1
- package/vscode-dts/vscode.proposed.contribDebugCreateConfiguration.d.ts +1 -1
- package/vscode-dts/vscode.proposed.d.ts +2 -2
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +2 -2
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +46 -8
- package/vscode-dts/vscode.proposed.languageModelDataPart.d.ts +106 -16
- package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +2 -0
- package/vscode-dts/vscode.proposed.mcpConfigurationProvider.d.ts +115 -21
- package/vscode-dts/vscode.proposed.quickDiffProvider.d.ts +7 -3
- package/vscode-dts/vscode.proposed.textSearchProvider2.d.ts +23 -1
- package/vscode-dts/vscode.proposed.toolProgress.d.ts +25 -0
- package/vscode-dts/vscode.proposed.tunnelFactory.d.ts +1 -1
- package/workbench.d.ts +1 -1
- package/vscode-dts/vscode.proposed.languageModelToolsForAgent.d.ts +0 -8
- package/vscode-dts/vscode.proposed.textDocumentEncoding.d.ts +0 -170
|
@@ -1,36 +1,38 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { $ as $$1, append, addStandardDisposableListener, EventType, prepend, addDisposableListener, isHTMLAnchorElement, isAncestor } from '../../../base/browser/dom.js';
|
|
4
3
|
import { asCSSUrl } from '../../../base/browser/cssValue.js';
|
|
5
|
-
import {
|
|
6
|
-
import { TreeVisibility } from '../../../base/browser/ui/tree/tree.js';
|
|
7
|
-
import { localize } from '../../../nls.js';
|
|
8
|
-
import { IInstantiationService } from '../../instantiation/common/instantiation.js';
|
|
9
|
-
import { WorkbenchObjectTree } from '../../list/browser/listService.js';
|
|
10
|
-
import { IThemeService } from '../../theme/common/themeService.service.js';
|
|
11
|
-
import { DisposableStore, Disposable } from '../../../base/common/lifecycle.js';
|
|
12
|
-
import { QuickPickFocus } from '../common/quickInput.js';
|
|
4
|
+
import { $ as $$1, append, addStandardDisposableListener, EventType, prepend, addDisposableListener, isHTMLAnchorElement, isAncestor } from '../../../base/browser/dom.js';
|
|
13
5
|
import { StandardKeyboardEvent } from '../../../base/browser/keyboardEvent.js';
|
|
14
|
-
import { KeyCode } from '../../../base/common/keyCodes.js';
|
|
15
|
-
import { OS } from '../../../base/common/platform.js';
|
|
16
|
-
import { memoize } from '../../../base/common/decorators.js';
|
|
17
|
-
import { IconLabel } from '../../../base/browser/ui/iconLabel/iconLabel.js';
|
|
18
|
-
import { KeybindingLabel } from '../../../base/browser/ui/keybindingLabel/keybindingLabel.js';
|
|
19
6
|
import { ActionBar } from '../../../base/browser/ui/actionbar/actionbar.js';
|
|
20
|
-
import { isDark } from '../../theme/common/theme.js';
|
|
21
|
-
import { URI } from '../../../base/common/uri.js';
|
|
22
|
-
import { quickInputButtonToAction } from './quickInputUtils.js';
|
|
23
|
-
import { Lazy } from '../../../base/common/lazy.js';
|
|
24
|
-
import { parseLabelWithIcons, getCodiconAriaLabel, matchesFuzzyIconAware } from '../../../base/common/iconLabels.js';
|
|
25
7
|
import { HoverPosition } from '../../../base/browser/ui/hover/hoverWidget.js';
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
8
|
+
import { IconLabel } from '../../../base/browser/ui/iconLabel/iconLabel.js';
|
|
9
|
+
import { KeybindingLabel } from '../../../base/browser/ui/keybindingLabel/keybindingLabel.js';
|
|
10
|
+
import { Checkbox } from '../../../base/browser/ui/toggle/toggle.js';
|
|
28
11
|
import { RenderIndentGuides } from '../../../base/browser/ui/tree/abstractTree.js';
|
|
12
|
+
import { TreeVisibility } from '../../../base/browser/ui/tree/tree.js';
|
|
13
|
+
import { equals } from '../../../base/common/arrays.js';
|
|
29
14
|
import { ThrottledDelayer } from '../../../base/common/async.js';
|
|
15
|
+
import { compareAnything } from '../../../base/common/comparers.js';
|
|
16
|
+
import { memoize } from '../../../base/common/decorators.js';
|
|
30
17
|
import { isCancellationError } from '../../../base/common/errors.js';
|
|
31
|
-
import {
|
|
18
|
+
import { Event, Emitter, EventBufferer } from '../../../base/common/event.js';
|
|
19
|
+
import { parseLabelWithIcons, getCodiconAriaLabel, matchesFuzzyIconAware } from '../../../base/common/iconLabels.js';
|
|
20
|
+
import { KeyCode } from '../../../base/common/keyCodes.js';
|
|
21
|
+
import { Lazy } from '../../../base/common/lazy.js';
|
|
22
|
+
import { DisposableStore, MutableDisposable, Disposable } from '../../../base/common/lifecycle.js';
|
|
32
23
|
import '../../../base/common/observableInternal/index.js';
|
|
33
|
-
import {
|
|
24
|
+
import { OS } from '../../../base/common/platform.js';
|
|
25
|
+
import { escape, ltrim } from '../../../base/common/strings.js';
|
|
26
|
+
import { URI } from '../../../base/common/uri.js';
|
|
27
|
+
import { localize } from '../../../nls.js';
|
|
28
|
+
import { IAccessibilityService } from '../../accessibility/common/accessibility.service.js';
|
|
29
|
+
import { IInstantiationService } from '../../instantiation/common/instantiation.js';
|
|
30
|
+
import { WorkbenchObjectTree } from '../../list/browser/listService.js';
|
|
31
|
+
import { defaultCheckboxStyles } from '../../theme/browser/defaultStyles.js';
|
|
32
|
+
import { isDark } from '../../theme/common/theme.js';
|
|
33
|
+
import { IThemeService } from '../../theme/common/themeService.service.js';
|
|
34
|
+
import { QuickPickFocus } from '../common/quickInput.js';
|
|
35
|
+
import { quickInputButtonToAction } from './quickInputUtils.js';
|
|
34
36
|
import { observableValueOpts } from '../../../base/common/observableInternal/api.js';
|
|
35
37
|
import { observableValue, transaction } from '../../../base/common/observableInternal/base.js';
|
|
36
38
|
|
|
@@ -186,7 +188,7 @@ class QuickInputItemDelegate {
|
|
|
186
188
|
}
|
|
187
189
|
class QuickInputAccessibilityProvider {
|
|
188
190
|
getWidgetAriaLabel() {
|
|
189
|
-
return localize(
|
|
191
|
+
return localize(1964, "Quick Input");
|
|
190
192
|
}
|
|
191
193
|
getAriaLabel(element) {
|
|
192
194
|
return element.separator?.label
|
|
@@ -219,13 +221,15 @@ class BaseQuickInputListRenderer {
|
|
|
219
221
|
data.toDisposeTemplate = ( new DisposableStore());
|
|
220
222
|
data.entry = append(container, $('.quick-input-list-entry'));
|
|
221
223
|
const label = append(data.entry, $('label.quick-input-list-label'));
|
|
224
|
+
data.outerLabel = label;
|
|
225
|
+
data.checkbox = data.toDisposeTemplate.add(( new MutableDisposable()));
|
|
222
226
|
data.toDisposeTemplate.add(addStandardDisposableListener(label, EventType.CLICK, e => {
|
|
223
|
-
if (!data.checkbox.
|
|
224
|
-
|
|
227
|
+
if (data.checkbox.value && !e.defaultPrevented && data.checkbox.value.enabled) {
|
|
228
|
+
const checked = !data.checkbox.value.checked;
|
|
229
|
+
data.checkbox.value.checked = checked;
|
|
230
|
+
data.element.checked = checked;
|
|
225
231
|
}
|
|
226
232
|
}));
|
|
227
|
-
data.checkbox = append(label, $('input.quick-input-list-checkbox'));
|
|
228
|
-
data.checkbox.type = 'checkbox';
|
|
229
233
|
const rows = append(label, $('.quick-input-list-rows'));
|
|
230
234
|
const row1 = append(rows, $('.quick-input-list-row'));
|
|
231
235
|
const row2 = append(rows, $('.quick-input-list-row'));
|
|
@@ -273,12 +277,30 @@ let QuickPickItemElementRenderer = class QuickPickItemElementRenderer extends Ba
|
|
|
273
277
|
get templateId() {
|
|
274
278
|
return QuickPickItemElementRenderer_1.ID;
|
|
275
279
|
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
data.
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
ensureCheckbox(element, data) {
|
|
281
|
+
if (!element.hasCheckbox) {
|
|
282
|
+
data.checkbox.value?.domNode.remove();
|
|
283
|
+
data.checkbox.clear();
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
let checkbox = data.checkbox.value;
|
|
287
|
+
if (!checkbox) {
|
|
288
|
+
checkbox = ( new Checkbox(element.saneLabel, element.checked, { ...defaultCheckboxStyles, size: 15 }));
|
|
289
|
+
data.checkbox.value = checkbox;
|
|
290
|
+
data.outerLabel.prepend(checkbox.domNode);
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
checkbox.setTitle(element.saneLabel);
|
|
294
|
+
}
|
|
295
|
+
if (element.checkboxDisabled) {
|
|
296
|
+
checkbox.disable();
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
299
|
+
checkbox.enable();
|
|
300
|
+
}
|
|
301
|
+
checkbox.checked = element.checked;
|
|
302
|
+
data.toDisposeElement.add(element.onChecked(checked => checkbox.checked = checked));
|
|
303
|
+
data.toDisposeElement.add(checkbox.onChange(() => element.checked = checkbox.checked));
|
|
282
304
|
}
|
|
283
305
|
renderElement(node, index, data) {
|
|
284
306
|
const element = node.element;
|
|
@@ -287,9 +309,7 @@ let QuickPickItemElementRenderer = class QuickPickItemElementRenderer extends Ba
|
|
|
287
309
|
const mainItem = element.item;
|
|
288
310
|
element.element.classList.toggle('indented', Boolean(mainItem.indented));
|
|
289
311
|
element.element.classList.toggle('not-pickable', element.item.pickable === false);
|
|
290
|
-
|
|
291
|
-
data.toDisposeElement.add(element.onChecked(checked => data.checkbox.checked = checked));
|
|
292
|
-
data.checkbox.disabled = element.checkboxDisabled;
|
|
312
|
+
this.ensureCheckbox(element, data);
|
|
293
313
|
const { labelHighlights, descriptionHighlights, detailHighlights } = element;
|
|
294
314
|
if (mainItem.iconPath) {
|
|
295
315
|
const icon = isDark(this.themeService.getColorTheme().type) ? mainItem.iconPath.dark : (mainItem.iconPath.light ?? mainItem.iconPath.dark);
|
|
@@ -402,11 +422,6 @@ class QuickPickSeparatorElementRenderer extends BaseQuickInputListRenderer {
|
|
|
402
422
|
isSeparatorVisible(separator) {
|
|
403
423
|
return ( this._visibleSeparatorsFrequency.has(separator));
|
|
404
424
|
}
|
|
405
|
-
renderTemplate(container) {
|
|
406
|
-
const data = super.renderTemplate(container);
|
|
407
|
-
data.checkbox.style.display = 'none';
|
|
408
|
-
return data;
|
|
409
|
-
}
|
|
410
425
|
renderElement(node, index, data) {
|
|
411
426
|
const element = node.element;
|
|
412
427
|
data.element = element;
|
|
@@ -799,7 +814,7 @@ let QuickInputTree = class QuickInputTree extends Disposable {
|
|
|
799
814
|
}
|
|
800
815
|
const qpi = ( new QuickPickItemElement(
|
|
801
816
|
index,
|
|
802
|
-
this._hasCheckboxes,
|
|
817
|
+
this._hasCheckboxes && item.pickable !== false,
|
|
803
818
|
e => this._onButtonTriggered.fire(e),
|
|
804
819
|
this._elementChecked,
|
|
805
820
|
item,
|
|
@@ -60,7 +60,7 @@ function renderQuickInputDescription(description, container, actionHandler) {
|
|
|
60
60
|
let title = node.title;
|
|
61
61
|
if (!title && node.href.startsWith('command:')) {
|
|
62
62
|
title = ( localize(
|
|
63
|
-
|
|
63
|
+
1965,
|
|
64
64
|
"Click to execute command '{0}'",
|
|
65
65
|
node.href.substring('command:'.length)
|
|
66
66
|
));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Event } from "../../../base/common/event.js";
|
|
2
2
|
import { IMatch } from "../../../base/common/filters.js";
|
|
3
|
-
import { IItemAccessor } from "@codingame/monaco-vscode-
|
|
3
|
+
import { IItemAccessor } from "@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common/vscode/vs/base/common/fuzzyScorer";
|
|
4
4
|
import { ResolvedKeybinding } from "../../../base/common/keybindings.js";
|
|
5
5
|
import { IDisposable } from "../../../base/common/lifecycle.js";
|
|
6
6
|
import Severity from "../../../base/common/severity.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { ok } from '../../../base/common/assert.js';
|
|
3
|
-
import { isString, isObject } from '../../../base/common/types.js';
|
|
3
|
+
import { isString, isObject, isFunction } from '../../../base/common/types.js';
|
|
4
4
|
|
|
5
5
|
class RegistryImpl {
|
|
6
6
|
constructor() {
|
|
@@ -18,6 +18,14 @@ class RegistryImpl {
|
|
|
18
18
|
as(id) {
|
|
19
19
|
return this.data.get(id) || null;
|
|
20
20
|
}
|
|
21
|
+
dispose() {
|
|
22
|
+
this.data.forEach((value) => {
|
|
23
|
+
if (isFunction(value.dispose)) {
|
|
24
|
+
value.dispose();
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
this.data.clear();
|
|
28
|
+
}
|
|
21
29
|
}
|
|
22
30
|
const Registry = ( new RegistryImpl());
|
|
23
31
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CancellationToken } from "../../../base/common/cancellation.js";
|
|
2
2
|
import { Disposable } from "../../../base/common/lifecycle.js";
|
|
3
|
-
import { IRequestContext, IRequestOptions } from "@codingame/monaco-vscode-
|
|
3
|
+
import { IRequestContext, IRequestOptions } from "@codingame/monaco-vscode-912ff6c1-e6aa-58cf-bd7f-50cf27bdb591-common/vscode/vs/base/parts/request/common/request";
|
|
4
4
|
import { ILogService } from "../../log/common/log.service.js";
|
|
5
5
|
import { IRequestService } from "./request.service.js";
|
|
6
6
|
export interface AuthInfo {
|
|
@@ -108,7 +108,7 @@ function registerProxyConfigurations(useHostProxy = true, useHostProxyDefault =
|
|
|
108
108
|
{
|
|
109
109
|
id: 'http',
|
|
110
110
|
order: 15,
|
|
111
|
-
title: ( localize(
|
|
111
|
+
title: ( localize(1969, "HTTP")),
|
|
112
112
|
type: 'object',
|
|
113
113
|
scope: ConfigurationScope.MACHINE,
|
|
114
114
|
properties: {
|
|
@@ -116,7 +116,7 @@ function registerProxyConfigurations(useHostProxy = true, useHostProxyDefault =
|
|
|
116
116
|
type: 'boolean',
|
|
117
117
|
default: useHostProxyDefault,
|
|
118
118
|
markdownDescription: ( localize(
|
|
119
|
-
|
|
119
|
+
1970,
|
|
120
120
|
"Controls whether in the remote extension host the local proxy configuration should be used. This setting only applies as a remote setting during [remote development](https://aka.ms/vscode-remote)."
|
|
121
121
|
)),
|
|
122
122
|
restricted: true
|
|
@@ -126,7 +126,7 @@ function registerProxyConfigurations(useHostProxy = true, useHostProxyDefault =
|
|
|
126
126
|
{
|
|
127
127
|
id: 'http',
|
|
128
128
|
order: 15,
|
|
129
|
-
title: ( localize(
|
|
129
|
+
title: ( localize(1969, "HTTP")),
|
|
130
130
|
type: 'object',
|
|
131
131
|
scope: ConfigurationScope.APPLICATION,
|
|
132
132
|
properties: {
|
|
@@ -134,7 +134,7 @@ function registerProxyConfigurations(useHostProxy = true, useHostProxyDefault =
|
|
|
134
134
|
type: 'boolean',
|
|
135
135
|
default: false,
|
|
136
136
|
description: ( localize(
|
|
137
|
-
|
|
137
|
+
1971,
|
|
138
138
|
"Controls whether use of Electron's fetch implementation instead of Node.js' should be enabled. All local extensions will get Electron's fetch implementation for the global fetch API."
|
|
139
139
|
)),
|
|
140
140
|
restricted: true
|
|
@@ -144,7 +144,7 @@ function registerProxyConfigurations(useHostProxy = true, useHostProxyDefault =
|
|
|
144
144
|
{
|
|
145
145
|
id: 'http',
|
|
146
146
|
order: 15,
|
|
147
|
-
title: ( localize(
|
|
147
|
+
title: ( localize(1969, "HTTP")),
|
|
148
148
|
type: 'object',
|
|
149
149
|
scope: useHostProxy ? ConfigurationScope.APPLICATION : ConfigurationScope.MACHINE,
|
|
150
150
|
properties: {
|
|
@@ -152,7 +152,7 @@ function registerProxyConfigurations(useHostProxy = true, useHostProxyDefault =
|
|
|
152
152
|
type: 'string',
|
|
153
153
|
pattern: '^(https?|socks|socks4a?|socks5h?)://([^:]*(:[^@]*)?@)?([^:]+|\\[[:0-9a-fA-F]+\\])(:\\d+)?/?$|^$',
|
|
154
154
|
markdownDescription: ( localize(
|
|
155
|
-
|
|
155
|
+
1972,
|
|
156
156
|
"The proxy setting to use. If not set, will be inherited from the `http_proxy` and `https_proxy` environment variables. When during [remote development](https://aka.ms/vscode-remote) the {0} setting is disabled this setting can be configured in the local and the remote settings separately.",
|
|
157
157
|
'`#http.useLocalProxyConfiguration#`'
|
|
158
158
|
)),
|
|
@@ -162,7 +162,7 @@ function registerProxyConfigurations(useHostProxy = true, useHostProxyDefault =
|
|
|
162
162
|
type: 'boolean',
|
|
163
163
|
default: true,
|
|
164
164
|
markdownDescription: ( localize(
|
|
165
|
-
|
|
165
|
+
1973,
|
|
166
166
|
"Controls whether the proxy server certificate should be verified against the list of supplied CAs. When during [remote development](https://aka.ms/vscode-remote) the {0} setting is disabled this setting can be configured in the local and the remote settings separately.",
|
|
167
167
|
'`#http.useLocalProxyConfiguration#`'
|
|
168
168
|
)),
|
|
@@ -171,7 +171,7 @@ function registerProxyConfigurations(useHostProxy = true, useHostProxyDefault =
|
|
|
171
171
|
'http.proxyKerberosServicePrincipal': {
|
|
172
172
|
type: 'string',
|
|
173
173
|
markdownDescription: ( localize(
|
|
174
|
-
|
|
174
|
+
1974,
|
|
175
175
|
"Overrides the principal service name for Kerberos authentication with the HTTP proxy. A default based on the proxy hostname is used when this is not set. When during [remote development](https://aka.ms/vscode-remote) the {0} setting is disabled this setting can be configured in the local and the remote settings separately.",
|
|
176
176
|
'`#http.useLocalProxyConfiguration#`'
|
|
177
177
|
)),
|
|
@@ -181,7 +181,7 @@ function registerProxyConfigurations(useHostProxy = true, useHostProxyDefault =
|
|
|
181
181
|
type: 'array',
|
|
182
182
|
items: { type: 'string' },
|
|
183
183
|
markdownDescription: ( localize(
|
|
184
|
-
|
|
184
|
+
1975,
|
|
185
185
|
"Specifies domain names for which proxy settings should be ignored for HTTP/HTTPS requests. When during [remote development](https://aka.ms/vscode-remote) the {0} setting is disabled this setting can be configured in the local and the remote settings separately.",
|
|
186
186
|
'`#http.useLocalProxyConfiguration#`'
|
|
187
187
|
)),
|
|
@@ -191,7 +191,7 @@ function registerProxyConfigurations(useHostProxy = true, useHostProxyDefault =
|
|
|
191
191
|
type: ['null', 'string'],
|
|
192
192
|
default: null,
|
|
193
193
|
markdownDescription: ( localize(
|
|
194
|
-
|
|
194
|
+
1976,
|
|
195
195
|
"The value to send as the `Proxy-Authorization` header for every network request. When during [remote development](https://aka.ms/vscode-remote) the {0} setting is disabled this setting can be configured in the local and the remote settings separately.",
|
|
196
196
|
'`#http.useLocalProxyConfiguration#`'
|
|
197
197
|
)),
|
|
@@ -201,17 +201,17 @@ function registerProxyConfigurations(useHostProxy = true, useHostProxyDefault =
|
|
|
201
201
|
type: 'string',
|
|
202
202
|
enum: ['off', 'on', 'fallback', 'override'],
|
|
203
203
|
enumDescriptions: [
|
|
204
|
-
( localize(
|
|
205
|
-
( localize(
|
|
204
|
+
( localize(1977, "Disable proxy support for extensions.")),
|
|
205
|
+
( localize(1978, "Enable proxy support for extensions.")),
|
|
206
206
|
( localize(
|
|
207
|
-
|
|
207
|
+
1979,
|
|
208
208
|
"Enable proxy support for extensions, fall back to request options, when no proxy found."
|
|
209
209
|
)),
|
|
210
|
-
( localize(
|
|
210
|
+
( localize(1980, "Enable proxy support for extensions, override request options.")),
|
|
211
211
|
],
|
|
212
212
|
default: 'override',
|
|
213
213
|
markdownDescription: ( localize(
|
|
214
|
-
|
|
214
|
+
1981,
|
|
215
215
|
"Use the proxy support for extensions. When during [remote development](https://aka.ms/vscode-remote) the {0} setting is disabled this setting can be configured in the local and the remote settings separately.",
|
|
216
216
|
'`#http.useLocalProxyConfiguration#`'
|
|
217
217
|
)),
|
|
@@ -221,7 +221,7 @@ function registerProxyConfigurations(useHostProxy = true, useHostProxyDefault =
|
|
|
221
221
|
type: 'boolean',
|
|
222
222
|
default: true,
|
|
223
223
|
markdownDescription: ( localize(
|
|
224
|
-
|
|
224
|
+
1982,
|
|
225
225
|
"Controls whether CA certificates should be loaded from the OS. On Windows and macOS, a reload of the window is required after turning this off. When during [remote development](https://aka.ms/vscode-remote) the {0} setting is disabled this setting can be configured in the local and the remote settings separately.",
|
|
226
226
|
'`#http.useLocalProxyConfiguration#`'
|
|
227
227
|
)),
|
|
@@ -232,7 +232,7 @@ function registerProxyConfigurations(useHostProxy = true, useHostProxyDefault =
|
|
|
232
232
|
tags: ['experimental'],
|
|
233
233
|
default: false,
|
|
234
234
|
markdownDescription: ( localize(
|
|
235
|
-
|
|
235
|
+
1983,
|
|
236
236
|
"Controls whether experimental loading of CA certificates from the OS should be enabled. This uses a more general approach than the default implementation. When during [remote development](https://aka.ms/vscode-remote) the {0} setting is disabled this setting can be configured in the local and the remote settings separately.",
|
|
237
237
|
'`#http.useLocalProxyConfiguration#`'
|
|
238
238
|
)),
|
|
@@ -242,7 +242,7 @@ function registerProxyConfigurations(useHostProxy = true, useHostProxyDefault =
|
|
|
242
242
|
type: 'boolean',
|
|
243
243
|
default: true,
|
|
244
244
|
markdownDescription: ( localize(
|
|
245
|
-
|
|
245
|
+
1984,
|
|
246
246
|
"Controls whether Node.js' fetch implementation should be extended with additional support. Currently proxy support ({1}) and system certificates ({2}) are added when the corresponding settings are enabled. When during [remote development](https://aka.ms/vscode-remote) the {0} setting is disabled this setting can be configured in the local and the remote settings separately.",
|
|
247
247
|
'`#http.useLocalProxyConfiguration#`',
|
|
248
248
|
'`#http.proxySupport#`',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CancellationToken } from "../../../base/common/cancellation.js";
|
|
2
|
-
import { IRequestOptions, IRequestContext } from "@codingame/monaco-vscode-
|
|
2
|
+
import { IRequestOptions, IRequestContext } from "@codingame/monaco-vscode-912ff6c1-e6aa-58cf-bd7f-50cf27bdb591-common/vscode/vs/base/parts/request/common/request";
|
|
3
3
|
import { AuthInfo, Credentials } from "./request.js";
|
|
4
4
|
export declare const IRequestService: import("../../instantiation/common/instantiation.js").ServiceIdentifier<IRequestService>;
|
|
5
5
|
export interface IRequestService {
|
|
@@ -36,7 +36,7 @@ class NullEndpointTelemetryService {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
const telemetryLogId = 'telemetry';
|
|
39
|
-
const TelemetryLogGroup = { id: telemetryLogId, name: ( localize(
|
|
39
|
+
const TelemetryLogGroup = { id: telemetryLogId, name: ( localize(2005, "Telemetry")) };
|
|
40
40
|
function supportsTelemetry(productService, environmentService) {
|
|
41
41
|
if (!environmentService.isBuilt && !environmentService.disableTelemetry) {
|
|
42
42
|
return true;
|
|
@@ -202,7 +202,8 @@ export declare enum ProcessPropertyType {
|
|
|
202
202
|
ResolvedShellLaunchConfig = "resolvedShellLaunchConfig",
|
|
203
203
|
OverrideDimensions = "overrideDimensions",
|
|
204
204
|
FailedShellIntegrationActivation = "failedShellIntegrationActivation",
|
|
205
|
-
UsedShellIntegrationInjection = "usedShellIntegrationInjection"
|
|
205
|
+
UsedShellIntegrationInjection = "usedShellIntegrationInjection",
|
|
206
|
+
ShellIntegrationInjectionFailureReason = "shellIntegrationInjectionFailureReason"
|
|
206
207
|
}
|
|
207
208
|
export interface IProcessProperty<T extends ProcessPropertyType> {
|
|
208
209
|
type: T;
|
|
@@ -219,6 +220,7 @@ export interface IProcessPropertyMap {
|
|
|
219
220
|
[ProcessPropertyType.OverrideDimensions]: ITerminalDimensionsOverride | undefined;
|
|
220
221
|
[ProcessPropertyType.FailedShellIntegrationActivation]: boolean | undefined;
|
|
221
222
|
[ProcessPropertyType.UsedShellIntegrationInjection]: boolean | undefined;
|
|
223
|
+
[ProcessPropertyType.ShellIntegrationInjectionFailureReason]: ShellIntegrationInjectionFailureReason | undefined;
|
|
222
224
|
}
|
|
223
225
|
export interface IFixedTerminalDimensions {
|
|
224
226
|
cols?: number;
|
|
@@ -534,6 +536,17 @@ export declare enum ShellIntegrationStatus {
|
|
|
534
536
|
FinalTerm = 1,
|
|
535
537
|
VSCode = 2
|
|
536
538
|
}
|
|
539
|
+
export declare enum ShellIntegrationInjectionFailureReason {
|
|
540
|
+
InjectionSettingDisabled = "injectionSettingDisabled",
|
|
541
|
+
NoExecutable = "noExecutable",
|
|
542
|
+
FeatureTerminal = "featureTerminal",
|
|
543
|
+
IgnoreShellIntegrationFlag = "ignoreShellIntegrationFlag",
|
|
544
|
+
Winpty = "winpty",
|
|
545
|
+
UnsupportedArgs = "unsupportedArgs",
|
|
546
|
+
UnsupportedShell = "unsupportedShell",
|
|
547
|
+
FailedToSetStickyBit = "failedToSetStickyBit",
|
|
548
|
+
FailedToCreateTmpDir = "failedToCreateTmpDir"
|
|
549
|
+
}
|
|
537
550
|
export declare enum TerminalExitReason {
|
|
538
551
|
Unknown = 0,
|
|
539
552
|
Shutdown = 1,
|
|
@@ -158,6 +158,7 @@ var ProcessPropertyType;
|
|
|
158
158
|
ProcessPropertyType["OverrideDimensions"] = "overrideDimensions";
|
|
159
159
|
ProcessPropertyType["FailedShellIntegrationActivation"] = "failedShellIntegrationActivation";
|
|
160
160
|
ProcessPropertyType["UsedShellIntegrationInjection"] = "usedShellIntegrationInjection";
|
|
161
|
+
ProcessPropertyType["ShellIntegrationInjectionFailureReason"] = "shellIntegrationInjectionFailureReason";
|
|
161
162
|
})(ProcessPropertyType || (ProcessPropertyType = {}));
|
|
162
163
|
var HeartbeatConstants;
|
|
163
164
|
(function (HeartbeatConstants) {
|
|
@@ -199,6 +200,18 @@ var ShellIntegrationStatus;
|
|
|
199
200
|
ShellIntegrationStatus[ShellIntegrationStatus["FinalTerm"] = 1] = "FinalTerm";
|
|
200
201
|
ShellIntegrationStatus[ShellIntegrationStatus["VSCode"] = 2] = "VSCode";
|
|
201
202
|
})(ShellIntegrationStatus || (ShellIntegrationStatus = {}));
|
|
203
|
+
var ShellIntegrationInjectionFailureReason;
|
|
204
|
+
(function (ShellIntegrationInjectionFailureReason) {
|
|
205
|
+
ShellIntegrationInjectionFailureReason["InjectionSettingDisabled"] = "injectionSettingDisabled";
|
|
206
|
+
ShellIntegrationInjectionFailureReason["NoExecutable"] = "noExecutable";
|
|
207
|
+
ShellIntegrationInjectionFailureReason["FeatureTerminal"] = "featureTerminal";
|
|
208
|
+
ShellIntegrationInjectionFailureReason["IgnoreShellIntegrationFlag"] = "ignoreShellIntegrationFlag";
|
|
209
|
+
ShellIntegrationInjectionFailureReason["Winpty"] = "winpty";
|
|
210
|
+
ShellIntegrationInjectionFailureReason["UnsupportedArgs"] = "unsupportedArgs";
|
|
211
|
+
ShellIntegrationInjectionFailureReason["UnsupportedShell"] = "unsupportedShell";
|
|
212
|
+
ShellIntegrationInjectionFailureReason["FailedToSetStickyBit"] = "failedToSetStickyBit";
|
|
213
|
+
ShellIntegrationInjectionFailureReason["FailedToCreateTmpDir"] = "failedToCreateTmpDir";
|
|
214
|
+
})(ShellIntegrationInjectionFailureReason || (ShellIntegrationInjectionFailureReason = {}));
|
|
202
215
|
var TerminalExitReason;
|
|
203
216
|
(function (TerminalExitReason) {
|
|
204
217
|
TerminalExitReason[TerminalExitReason["Unknown"] = 0] = "Unknown";
|
|
@@ -244,4 +257,4 @@ class TerminalBackendRegistry {
|
|
|
244
257
|
}
|
|
245
258
|
Registry.add(TerminalExtensions.Backend, ( new TerminalBackendRegistry()));
|
|
246
259
|
|
|
247
|
-
export { FlowControlConstants, GeneralShellType, HeartbeatConstants, LocalReconnectConstants, PosixShellType, ProcessPropertyType, ProfileSource, ShellIntegrationStatus, TerminalBackendChangeEvent, TerminalExitReason, TerminalExtensions, TerminalIpcChannels, TerminalLocation, TerminalLocationString, TerminalSettingId, TerminalSettingPrefix, TitleEventSource, WindowsShellType };
|
|
260
|
+
export { FlowControlConstants, GeneralShellType, HeartbeatConstants, LocalReconnectConstants, PosixShellType, ProcessPropertyType, ProfileSource, ShellIntegrationInjectionFailureReason, ShellIntegrationStatus, TerminalBackendChangeEvent, TerminalExitReason, TerminalExtensions, TerminalIpcChannels, TerminalLocation, TerminalLocationString, TerminalSettingId, TerminalSettingPrefix, TitleEventSource, WindowsShellType };
|
|
@@ -7,7 +7,7 @@ import { IDialogStyles } from "@codingame/monaco-vscode-f1bbc6d3-6129-583c-a2ba-
|
|
|
7
7
|
import { IInputBoxStyles } from "../../../base/browser/ui/inputbox/inputBox.js";
|
|
8
8
|
import { IFindWidgetStyles } from "../../../base/browser/ui/tree/abstractTree.js";
|
|
9
9
|
import { ICountBadgeStyles } from "../../../base/browser/ui/countBadge/countBadge.js";
|
|
10
|
-
import { IBreadcrumbsWidgetStyles } from "@codingame/monaco-vscode-
|
|
10
|
+
import { IBreadcrumbsWidgetStyles } from "@codingame/monaco-vscode-c3c61c00-c254-5856-9dc9-d7929c1f9062-common/vscode/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget";
|
|
11
11
|
import { IListStyles } from "../../../base/browser/ui/list/listWidget.js";
|
|
12
12
|
import { ISelectBoxStyles } from "../../../base/browser/ui/selectBox/selectBox.js";
|
|
13
13
|
import { IMenuStyles } from "../../../base/browser/ui/menu/menu.js";
|
|
@@ -25,7 +25,6 @@ export declare const defaultToggleStyles: IToggleStyles;
|
|
|
25
25
|
export declare const defaultRadioStyles: IRadioStyles;
|
|
26
26
|
export declare function getToggleStyles(override: IStyleOverride<IToggleStyles>): IToggleStyles;
|
|
27
27
|
export declare const defaultCheckboxStyles: ICheckboxStyles;
|
|
28
|
-
export declare function getCheckboxStyles(override: IStyleOverride<ICheckboxStyles>): ICheckboxStyles;
|
|
29
28
|
export declare const defaultDialogStyles: IDialogStyles;
|
|
30
29
|
export declare function getDialogStyle(override: IStyleOverride<IDialogStyles>): IDialogStyles;
|
|
31
30
|
export declare const defaultInputBoxStyles: IInputBoxStyles;
|
|
@@ -3,7 +3,7 @@ import { asCssVariable, asCssVariableWithDefault } from '../common/colorUtils.js
|
|
|
3
3
|
import { textLinkForeground, contrastBorder, activeContrastBorder, focusBorder } from '../common/colors/baseColors.js';
|
|
4
4
|
import '../common/colors/chartsColors.js';
|
|
5
5
|
import { widgetShadow, problemsInfoIconForeground, problemsWarningIconForeground, problemsErrorIconForeground, editorWidgetForeground, editorWidgetBackground, breadcrumbsActiveSelectionForeground, breadcrumbsFocusForeground, breadcrumbsForeground, breadcrumbsBackground, editorWidgetBorder } from '../common/colors/editorColors.js';
|
|
6
|
-
import { keybindingLabelBottomBorder, keybindingLabelBorder, keybindingLabelForeground, keybindingLabelBackground, buttonBorder, buttonSecondaryHoverBackground, buttonSecondaryBackground, buttonSecondaryForeground, buttonHoverBackground, buttonBackground, buttonSeparator, buttonForeground, inputActiveOptionBackground, inputActiveOptionForeground, inputActiveOptionBorder, radioInactiveHoverBackground, radioInactiveBorder, radioInactiveBackground, radioInactiveForeground, radioActiveBorder, radioActiveBackground, radioActiveForeground, checkboxForeground, checkboxBorder, checkboxBackground, inputValidationErrorForeground, inputValidationErrorBackground, inputValidationErrorBorder, inputValidationWarningForeground, inputValidationWarningBackground, inputValidationWarningBorder, inputValidationInfoForeground, inputValidationInfoBackground, inputValidationInfoBorder, inputBorder, inputForeground, inputBackground, selectBorder, selectForeground, selectListBackground, selectBackground } from '../common/colors/inputColors.js';
|
|
6
|
+
import { keybindingLabelBottomBorder, keybindingLabelBorder, keybindingLabelForeground, keybindingLabelBackground, buttonBorder, buttonSecondaryHoverBackground, buttonSecondaryBackground, buttonSecondaryForeground, buttonHoverBackground, buttonBackground, buttonSeparator, buttonForeground, inputActiveOptionBackground, inputActiveOptionForeground, inputActiveOptionBorder, radioInactiveHoverBackground, radioInactiveBorder, radioInactiveBackground, radioInactiveForeground, radioActiveBorder, radioActiveBackground, radioActiveForeground, checkboxDisabledForeground, checkboxDisabledBackground, checkboxForeground, checkboxBorder, checkboxBackground, inputValidationErrorForeground, inputValidationErrorBackground, inputValidationErrorBorder, inputValidationWarningForeground, inputValidationWarningBackground, inputValidationWarningBorder, inputValidationInfoForeground, inputValidationInfoBackground, inputValidationInfoBorder, inputBorder, inputForeground, inputBackground, selectBorder, selectForeground, selectListBackground, selectBackground } from '../common/colors/inputColors.js';
|
|
7
7
|
import { listFilterWidgetShadow, listFilterWidgetNoMatchesOutline, listFilterWidgetOutline, listFilterWidgetBackground, tableOddRowsBackgroundColor, tableColumnsBorder, treeInactiveIndentGuidesStroke, treeIndentGuidesStroke, listDropBetweenBackground, listDropOverBackground, listHoverForeground, listHoverBackground, listInactiveFocusOutline, listInactiveFocusBackground, listInactiveSelectionForeground, listInactiveSelectionIconForeground, listInactiveSelectionBackground, listActiveSelectionForeground, listActiveSelectionBackground, listFocusAndSelectionOutline, listActiveSelectionIconForeground, listFocusOutline, listFocusForeground, listFocusBackground } from '../common/colors/listColors.js';
|
|
8
8
|
import { menuSeparatorBackground, menuSelectionBorder, menuSelectionBackground, menuSelectionForeground, menuBackground, menuForeground, menuBorder } from '../common/colors/menuColors.js';
|
|
9
9
|
import '../common/colors/minimapColors.js';
|
|
@@ -57,7 +57,9 @@ const defaultToggleStyles = {
|
|
|
57
57
|
const defaultCheckboxStyles = {
|
|
58
58
|
checkboxBackground: asCssVariable(checkboxBackground),
|
|
59
59
|
checkboxBorder: asCssVariable(checkboxBorder),
|
|
60
|
-
checkboxForeground: asCssVariable(checkboxForeground)
|
|
60
|
+
checkboxForeground: asCssVariable(checkboxForeground),
|
|
61
|
+
checkboxDisabledBackground: asCssVariable(checkboxDisabledBackground),
|
|
62
|
+
checkboxDisabledForeground: asCssVariable(checkboxDisabledForeground),
|
|
61
63
|
};
|
|
62
64
|
const defaultDialogStyles = {
|
|
63
65
|
dialogBackground: asCssVariable(editorWidgetBackground),
|
|
@@ -20,7 +20,8 @@ export declare enum ColorTransformType {
|
|
|
20
20
|
Opaque = 3,
|
|
21
21
|
OneOf = 4,
|
|
22
22
|
LessProminent = 5,
|
|
23
|
-
IfDefinedThenElse = 6
|
|
23
|
+
IfDefinedThenElse = 6,
|
|
24
|
+
Mix = 7
|
|
24
25
|
}
|
|
25
26
|
export type ColorTransform = {
|
|
26
27
|
op: ColorTransformType.Darken;
|
|
@@ -52,6 +53,11 @@ export type ColorTransform = {
|
|
|
52
53
|
if: ColorIdentifier;
|
|
53
54
|
then: ColorValue;
|
|
54
55
|
else: ColorValue;
|
|
56
|
+
} | {
|
|
57
|
+
op: ColorTransformType.Mix;
|
|
58
|
+
color: ColorValue;
|
|
59
|
+
with: ColorValue;
|
|
60
|
+
ratio?: number;
|
|
55
61
|
};
|
|
56
62
|
export interface ColorDefaults {
|
|
57
63
|
light: ColorValue | null;
|
|
@@ -6,6 +6,7 @@ import { Emitter } from '../../../base/common/event.js';
|
|
|
6
6
|
import { Extensions as Extensions$1 } from '../../jsonschemas/common/jsonContributionRegistry.js';
|
|
7
7
|
import { Registry } from '../../registry/common/platform.js';
|
|
8
8
|
import { localize } from '../../../nls.js';
|
|
9
|
+
import { Disposable } from '../../../base/common/lifecycle.js';
|
|
9
10
|
|
|
10
11
|
function asCssVariableName(colorIdent) {
|
|
11
12
|
return `--vscode-${colorIdent.replace(/\./g, '-')}`;
|
|
@@ -25,6 +26,7 @@ var ColorTransformType;
|
|
|
25
26
|
ColorTransformType[ColorTransformType["OneOf"] = 4] = "OneOf";
|
|
26
27
|
ColorTransformType[ColorTransformType["LessProminent"] = 5] = "LessProminent";
|
|
27
28
|
ColorTransformType[ColorTransformType["IfDefinedThenElse"] = 6] = "IfDefinedThenElse";
|
|
29
|
+
ColorTransformType[ColorTransformType["Mix"] = 7] = "Mix";
|
|
28
30
|
})(ColorTransformType || (ColorTransformType = {}));
|
|
29
31
|
function isColorDefaults(value) {
|
|
30
32
|
return value !== null && typeof value === 'object' && 'light' in value && 'dark' in value;
|
|
@@ -33,9 +35,10 @@ const Extensions = {
|
|
|
33
35
|
ColorContribution: 'base.contributions.colors'
|
|
34
36
|
};
|
|
35
37
|
const DEFAULT_COLOR_CONFIG_VALUE = 'default';
|
|
36
|
-
class ColorRegistry {
|
|
38
|
+
class ColorRegistry extends Disposable {
|
|
37
39
|
constructor() {
|
|
38
|
-
|
|
40
|
+
super();
|
|
41
|
+
this._onDidChangeSchema = this._register(( new Emitter()));
|
|
39
42
|
this.onDidChangeSchema = this._onDidChangeSchema.event;
|
|
40
43
|
this.colorSchema = { type: 'object', properties: {} };
|
|
41
44
|
this.colorReferenceSchema = { type: 'string', enum: [], enumDescriptions: [] };
|
|
@@ -59,13 +62,13 @@ class ColorRegistry {
|
|
|
59
62
|
}
|
|
60
63
|
if (needsTransparency) {
|
|
61
64
|
propertySchema.pattern = '^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$';
|
|
62
|
-
propertySchema.patternErrorMessage = ( localize(
|
|
65
|
+
propertySchema.patternErrorMessage = ( localize(2038, 'This color must be transparent or it will obscure content'));
|
|
63
66
|
}
|
|
64
67
|
this.colorSchema.properties[id] = {
|
|
65
68
|
description,
|
|
66
69
|
oneOf: [
|
|
67
70
|
propertySchema,
|
|
68
|
-
{ type: 'string', const: DEFAULT_COLOR_CONFIG_VALUE, description: ( localize(
|
|
71
|
+
{ type: 'string', const: DEFAULT_COLOR_CONFIG_VALUE, description: ( localize(2039, 'Use the default color.')) }
|
|
69
72
|
]
|
|
70
73
|
};
|
|
71
74
|
this.colorReferenceSchema.enum.push(id);
|
|
@@ -128,6 +131,11 @@ function executeTransform(transform, theme) {
|
|
|
128
131
|
return resolveColorValue(transform.value, theme)?.lighten(transform.factor);
|
|
129
132
|
case ColorTransformType.Transparent:
|
|
130
133
|
return resolveColorValue(transform.value, theme)?.transparent(transform.factor);
|
|
134
|
+
case ColorTransformType.Mix: {
|
|
135
|
+
const primaryColor = resolveColorValue(transform.color, theme) || Color.transparent;
|
|
136
|
+
const otherColor = resolveColorValue(transform.with, theme) || Color.transparent;
|
|
137
|
+
return primaryColor.mix(otherColor, transform.ratio);
|
|
138
|
+
}
|
|
131
139
|
case ColorTransformType.Opaque: {
|
|
132
140
|
const backgroundColor = resolveColorValue(transform.background, theme);
|
|
133
141
|
if (!backgroundColor) {
|