@codingame/monaco-vscode-api 16.1.1 → 17.1.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 +105 -0
- package/monaco.d.ts +2 -2
- package/package.json +10 -9
- package/services.d.ts +4 -4
- package/services.js +3 -3
- package/vscode/product.json.js +3 -0
- 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 +1 -2
- 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 +7 -90
- 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 +31 -31
- 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
|
@@ -40,6 +40,7 @@ export declare class MenuId {
|
|
|
40
40
|
static readonly DebugWatchContext: MenuId;
|
|
41
41
|
static readonly DebugToolBar: MenuId;
|
|
42
42
|
static readonly DebugToolBarStop: MenuId;
|
|
43
|
+
static readonly DebugDisassemblyContext: MenuId;
|
|
43
44
|
static readonly DebugCallStackToolbar: MenuId;
|
|
44
45
|
static readonly DebugCreateConfiguration: MenuId;
|
|
45
46
|
static readonly EditorContext: MenuId;
|
|
@@ -107,6 +108,7 @@ export declare class MenuId {
|
|
|
107
108
|
static readonly SCMHistoryItemContext: MenuId;
|
|
108
109
|
static readonly SCMHistoryItemHover: MenuId;
|
|
109
110
|
static readonly SCMHistoryItemRefContext: MenuId;
|
|
111
|
+
static readonly SCMQuickDiffDecorations: MenuId;
|
|
110
112
|
static readonly SCMTitle: MenuId;
|
|
111
113
|
static readonly SearchContext: MenuId;
|
|
112
114
|
static readonly SearchActionMenu: MenuId;
|
|
@@ -317,7 +319,7 @@ interface IAction2CommonOptions extends ICommandAction {
|
|
|
317
319
|
interface IBaseAction2Options extends IAction2CommonOptions {
|
|
318
320
|
f1?: false;
|
|
319
321
|
}
|
|
320
|
-
interface ICommandPaletteOptions extends IAction2CommonOptions {
|
|
322
|
+
export interface ICommandPaletteOptions extends IAction2CommonOptions {
|
|
321
323
|
title: ICommandActionTitle;
|
|
322
324
|
category?: keyof typeof Categories | ILocalizedString;
|
|
323
325
|
f1: true;
|
|
@@ -30,6 +30,7 @@ class MenuId {
|
|
|
30
30
|
static { this.DebugWatchContext = ( new MenuId('DebugWatchContext')); }
|
|
31
31
|
static { this.DebugToolBar = ( new MenuId('DebugToolBar')); }
|
|
32
32
|
static { this.DebugToolBarStop = ( new MenuId('DebugToolBarStop')); }
|
|
33
|
+
static { this.DebugDisassemblyContext = ( new MenuId('DebugDisassemblyContext')); }
|
|
33
34
|
static { this.DebugCallStackToolbar = ( new MenuId('DebugCallStackToolbar')); }
|
|
34
35
|
static { this.DebugCreateConfiguration = ( new MenuId('DebugCreateConfiguration')); }
|
|
35
36
|
static { this.EditorContext = ( new MenuId('EditorContext')); }
|
|
@@ -97,6 +98,7 @@ class MenuId {
|
|
|
97
98
|
static { this.SCMHistoryItemContext = ( new MenuId('SCMHistoryItemContext')); }
|
|
98
99
|
static { this.SCMHistoryItemHover = ( new MenuId('SCMHistoryItemHover')); }
|
|
99
100
|
static { this.SCMHistoryItemRefContext = ( new MenuId('SCMHistoryItemRefContext')); }
|
|
101
|
+
static { this.SCMQuickDiffDecorations = ( new MenuId('SCMQuickDiffDecorations')); }
|
|
100
102
|
static { this.SCMTitle = ( new MenuId('SCMTitle')); }
|
|
101
103
|
static { this.SearchContext = ( new MenuId('SearchContext')); }
|
|
102
104
|
static { this.SearchActionMenu = ( new MenuId('SearchActionContext')); }
|
|
@@ -408,7 +408,7 @@ function createMenuHide(menu, command, states) {
|
|
|
408
408
|
const title = typeof command.title === 'string' ? command.title : command.title.value;
|
|
409
409
|
const hide = toAction({
|
|
410
410
|
id: `hide/${menu.id}/${id}`,
|
|
411
|
-
label: ( localize(
|
|
411
|
+
label: ( localize(1706, 'Hide \'{0}\'', title)),
|
|
412
412
|
run() { states.updateHidden(menu, id, true); }
|
|
413
413
|
});
|
|
414
414
|
const toggle = toAction({
|
|
@@ -426,7 +426,7 @@ function createMenuHide(menu, command, states) {
|
|
|
426
426
|
function createConfigureKeybindingAction(commandService, keybindingService, commandId, when = undefined, enabled = true) {
|
|
427
427
|
return toAction({
|
|
428
428
|
id: `configureKeybinding/${commandId}`,
|
|
429
|
-
label: ( localize(
|
|
429
|
+
label: ( localize(1707, "Configure Keybinding")),
|
|
430
430
|
enabled,
|
|
431
431
|
run() {
|
|
432
432
|
const hasKeybinding = !!keybindingService.lookupKeybinding(commandId);
|
|
@@ -8,6 +8,7 @@ export declare class BrowserClipboardService extends Disposable implements IClip
|
|
|
8
8
|
private readonly logService;
|
|
9
9
|
readonly _serviceBrand: undefined;
|
|
10
10
|
constructor(layoutService: ILayoutService, logService: ILogService);
|
|
11
|
+
triggerPaste(): Promise<void> | undefined;
|
|
11
12
|
readImage(): Promise<Uint8Array>;
|
|
12
13
|
private webKitPendingClipboardWritePromise;
|
|
13
14
|
private installWebKitWriteTextWorkaround;
|
|
@@ -30,6 +30,9 @@ let BrowserClipboardService = class BrowserClipboardService extends Disposable {
|
|
|
30
30
|
disposables.add(addDisposableListener(window.document, 'copy', () => this.clearResourcesState()));
|
|
31
31
|
}, { window: mainWindow, disposables: this._store }));
|
|
32
32
|
}
|
|
33
|
+
triggerPaste() {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
33
36
|
async readImage() {
|
|
34
37
|
try {
|
|
35
38
|
const clipboardItems = await navigator.clipboard.read();
|
|
@@ -2,6 +2,7 @@ import { URI } from "../../../base/common/uri.js";
|
|
|
2
2
|
export declare const IClipboardService: import("../../instantiation/common/instantiation.js").ServiceIdentifier<IClipboardService>;
|
|
3
3
|
export interface IClipboardService {
|
|
4
4
|
readonly _serviceBrand: undefined;
|
|
5
|
+
triggerPaste(targetWindowId: number): Promise<void> | undefined;
|
|
5
6
|
writeText(text: string, type?: string): Promise<void>;
|
|
6
7
|
readText(type?: string): Promise<string>;
|
|
7
8
|
readFindText(): Promise<string>;
|
|
@@ -6,6 +6,7 @@ import { localize } from '../../../nls.js';
|
|
|
6
6
|
import { getLanguageTagSettingPlainKey } from './configuration.js';
|
|
7
7
|
import { Extensions as Extensions$1 } from '../../jsonschemas/common/jsonContributionRegistry.js';
|
|
8
8
|
import { Registry } from '../../registry/common/platform.js';
|
|
9
|
+
import { Disposable } from '../../../base/common/lifecycle.js';
|
|
9
10
|
|
|
10
11
|
var EditPresentationTypes;
|
|
11
12
|
(function (EditPresentationTypes) {
|
|
@@ -35,18 +36,19 @@ const resourceSettings = { properties: {}, patternProperties: {} };
|
|
|
35
36
|
const resourceLanguageSettingsSchemaId = 'vscode://schemas/settings/resourceLanguage';
|
|
36
37
|
const configurationDefaultsSchemaId = 'vscode://schemas/settings/configurationDefaults';
|
|
37
38
|
const contributionRegistry = ( Registry.as(Extensions$1.JSONContribution));
|
|
38
|
-
class ConfigurationRegistry {
|
|
39
|
+
class ConfigurationRegistry extends Disposable {
|
|
39
40
|
constructor() {
|
|
41
|
+
super();
|
|
40
42
|
this.registeredConfigurationDefaults = [];
|
|
41
43
|
this.overrideIdentifiers = ( new Set());
|
|
42
|
-
this._onDidSchemaChange = ( new Emitter());
|
|
44
|
+
this._onDidSchemaChange = this._register(( new Emitter()));
|
|
43
45
|
this.onDidSchemaChange = this._onDidSchemaChange.event;
|
|
44
|
-
this._onDidUpdateConfiguration = ( new Emitter());
|
|
46
|
+
this._onDidUpdateConfiguration = this._register(( new Emitter()));
|
|
45
47
|
this.onDidUpdateConfiguration = this._onDidUpdateConfiguration.event;
|
|
46
48
|
this.configurationDefaultsOverrides = ( new Map());
|
|
47
49
|
this.defaultLanguageConfigurationOverridesNode = {
|
|
48
50
|
id: 'defaultOverrides',
|
|
49
|
-
title: ( localize(
|
|
51
|
+
title: ( localize(1708, "Default Language Configuration Overrides")),
|
|
50
52
|
properties: {}
|
|
51
53
|
};
|
|
52
54
|
this.configurationContributors = [this.defaultLanguageConfigurationOverridesNode];
|
|
@@ -195,7 +197,7 @@ class ConfigurationRegistry {
|
|
|
195
197
|
type: 'object',
|
|
196
198
|
default: newDefaultOverride.value,
|
|
197
199
|
description: ( localize(
|
|
198
|
-
|
|
200
|
+
1709,
|
|
199
201
|
"Configure settings to be overridden for the {0} language.",
|
|
200
202
|
getLanguageTagSettingPlainKey(key)
|
|
201
203
|
)),
|
|
@@ -466,8 +468,8 @@ class ConfigurationRegistry {
|
|
|
466
468
|
const overrideIdentifierProperty = `[${overrideIdentifier}]`;
|
|
467
469
|
const resourceLanguagePropertiesSchema = {
|
|
468
470
|
type: 'object',
|
|
469
|
-
description: ( localize(
|
|
470
|
-
errorMessage: ( localize(
|
|
471
|
+
description: ( localize(1710, "Configure editor settings to be overridden for a language.")),
|
|
472
|
+
errorMessage: ( localize(1711, "This setting does not support per-language configuration.")),
|
|
471
473
|
$ref: resourceLanguageSettingsSchemaId,
|
|
472
474
|
};
|
|
473
475
|
this.updatePropertyDefaultValue(overrideIdentifierProperty, resourceLanguagePropertiesSchema);
|
|
@@ -483,8 +485,8 @@ class ConfigurationRegistry {
|
|
|
483
485
|
registerOverridePropertyPatternKey() {
|
|
484
486
|
const resourceLanguagePropertiesSchema = {
|
|
485
487
|
type: 'object',
|
|
486
|
-
description: ( localize(
|
|
487
|
-
errorMessage: ( localize(
|
|
488
|
+
description: ( localize(1710, "Configure editor settings to be overridden for a language.")),
|
|
489
|
+
errorMessage: ( localize(1711, "This setting does not support per-language configuration.")),
|
|
488
490
|
$ref: resourceLanguageSettingsSchemaId,
|
|
489
491
|
};
|
|
490
492
|
allSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
@@ -560,25 +562,25 @@ const configurationRegistry = ( new ConfigurationRegistry());
|
|
|
560
562
|
Registry.add(Extensions.Configuration, configurationRegistry);
|
|
561
563
|
function validateProperty(property, schema) {
|
|
562
564
|
if (!property.trim()) {
|
|
563
|
-
return localize(
|
|
565
|
+
return localize(1712, "Cannot register an empty property");
|
|
564
566
|
}
|
|
565
567
|
if (OVERRIDE_PROPERTY_REGEX.test(property)) {
|
|
566
568
|
return localize(
|
|
567
|
-
|
|
569
|
+
1713,
|
|
568
570
|
"Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",
|
|
569
571
|
property
|
|
570
572
|
);
|
|
571
573
|
}
|
|
572
574
|
if (configurationRegistry.getConfigurationProperties()[property] !== undefined) {
|
|
573
575
|
return localize(
|
|
574
|
-
|
|
576
|
+
1714,
|
|
575
577
|
"Cannot register '{0}'. This property is already registered.",
|
|
576
578
|
property
|
|
577
579
|
);
|
|
578
580
|
}
|
|
579
581
|
if (schema.policy?.name && configurationRegistry.getPolicyConfigurations().get(schema.policy?.name) !== undefined) {
|
|
580
582
|
return localize(
|
|
581
|
-
|
|
583
|
+
1715,
|
|
582
584
|
"Cannot register '{0}'. The associated policy {1} is already registered with {2}.",
|
|
583
585
|
property,
|
|
584
586
|
schema.policy?.name,
|
|
@@ -23,7 +23,7 @@ let DefaultConfiguration$1 = class DefaultConfiguration extends Disposable {
|
|
|
23
23
|
this.logService = logService;
|
|
24
24
|
this._onDidChangeConfiguration = this._register(( new Emitter()));
|
|
25
25
|
this.onDidChangeConfiguration = this._onDidChangeConfiguration.event;
|
|
26
|
-
this._configurationModel = ConfigurationModel.createEmptyModel(
|
|
26
|
+
this._configurationModel = ConfigurationModel.createEmptyModel(logService);
|
|
27
27
|
}
|
|
28
28
|
async initialize() {
|
|
29
29
|
this.resetConfigurationModel();
|
|
@@ -487,7 +487,7 @@ CommandsRegistry.registerCommand({
|
|
|
487
487
|
return [...RawContextKey.all()].sort((a, b) => a.key.localeCompare(b.key));
|
|
488
488
|
},
|
|
489
489
|
metadata: {
|
|
490
|
-
description: ( localize(
|
|
490
|
+
description: ( localize(1716, "A command that returns information about context keys")),
|
|
491
491
|
args: []
|
|
492
492
|
}
|
|
493
493
|
});
|
|
@@ -47,17 +47,17 @@ var ContextKeyExprType;
|
|
|
47
47
|
const defaultConfig = {
|
|
48
48
|
regexParsingWithErrorRecovery: true
|
|
49
49
|
};
|
|
50
|
-
const errorEmptyString = ( localize(
|
|
50
|
+
const errorEmptyString = ( localize(1717, "Empty context key expression"));
|
|
51
51
|
const hintEmptyString = ( localize(
|
|
52
|
-
|
|
52
|
+
1718,
|
|
53
53
|
"Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."
|
|
54
54
|
));
|
|
55
|
-
const errorNoInAfterNot = ( localize(
|
|
56
|
-
const errorClosingParenthesis = ( localize(
|
|
57
|
-
const errorUnexpectedToken = ( localize(
|
|
58
|
-
const hintUnexpectedToken = ( localize(
|
|
59
|
-
const errorUnexpectedEOF = ( localize(
|
|
60
|
-
const hintUnexpectedEOF = ( localize(
|
|
55
|
+
const errorNoInAfterNot = ( localize(1719, "'in' after 'not'."));
|
|
56
|
+
const errorClosingParenthesis = ( localize(1720, "closing parenthesis ')'"));
|
|
57
|
+
const errorUnexpectedToken = ( localize(1721, "Unexpected token"));
|
|
58
|
+
const hintUnexpectedToken = ( localize(1722, "Did you forget to put && or || before the token?"));
|
|
59
|
+
const errorUnexpectedEOF = ( localize(1723, "Unexpected end of expression"));
|
|
60
|
+
const hintUnexpectedEOF = ( localize(1724, "Did you forget to put a context key?"));
|
|
61
61
|
class Parser {
|
|
62
62
|
static { this._parseError = ( new Error()); }
|
|
63
63
|
get lexingErrors() {
|
|
@@ -369,7 +369,7 @@ class Parser {
|
|
|
369
369
|
throw this._errExpectedButGot(message, this._peek());
|
|
370
370
|
}
|
|
371
371
|
_errExpectedButGot(expected, got, additionalInfo) {
|
|
372
|
-
const message = ( localize(
|
|
372
|
+
const message = ( localize(1725, "Expected: {0}\nReceived: '{1}'.", expected, Scanner.getLexeme(got)));
|
|
373
373
|
const offset = got.offset;
|
|
374
374
|
const lexeme = Scanner.getLexeme(got);
|
|
375
375
|
this._parsingErrors.push({ message, offset, lexeme, additionalInfo });
|
|
@@ -447,8 +447,8 @@ function validateWhenClauses(whenClauses) {
|
|
|
447
447
|
if (parser.lexingErrors.length > 0) {
|
|
448
448
|
return (parser.lexingErrors.map((se) => ({
|
|
449
449
|
errorMessage: se.additionalInfo ?
|
|
450
|
-
( localize(
|
|
451
|
-
( localize(
|
|
450
|
+
( localize(1726, "Unexpected token. Hint: {0}", se.additionalInfo)) :
|
|
451
|
+
( localize(1727, "Unexpected token.")),
|
|
452
452
|
offset: se.offset,
|
|
453
453
|
length: se.lexeme.length,
|
|
454
454
|
})));
|
|
@@ -3,16 +3,16 @@ import { isMacintosh, isLinux, isWindows, isWeb, isIOS, isMobile } from '../../.
|
|
|
3
3
|
import { localize } from '../../../nls.js';
|
|
4
4
|
import { RawContextKey } from './contextkey.js';
|
|
5
5
|
|
|
6
|
-
const IsMacContext = ( new RawContextKey('isMac', isMacintosh, ( localize(
|
|
7
|
-
const IsLinuxContext = ( new RawContextKey('isLinux', isLinux, ( localize(
|
|
8
|
-
const IsWindowsContext = ( new RawContextKey('isWindows', isWindows, ( localize(
|
|
9
|
-
const IsWebContext = ( new RawContextKey('isWeb', isWeb, ( localize(
|
|
10
|
-
const IsMacNativeContext = ( new RawContextKey('isMacNative', isMacintosh && !isWeb, ( localize(
|
|
11
|
-
const IsIOSContext = ( new RawContextKey('isIOS', isIOS, ( localize(
|
|
12
|
-
const IsMobileContext = ( new RawContextKey('isMobile', isMobile, ( localize(
|
|
6
|
+
const IsMacContext = ( new RawContextKey('isMac', isMacintosh, ( localize(1728, "Whether the operating system is macOS"))));
|
|
7
|
+
const IsLinuxContext = ( new RawContextKey('isLinux', isLinux, ( localize(1729, "Whether the operating system is Linux"))));
|
|
8
|
+
const IsWindowsContext = ( new RawContextKey('isWindows', isWindows, ( localize(1730, "Whether the operating system is Windows"))));
|
|
9
|
+
const IsWebContext = ( new RawContextKey('isWeb', isWeb, ( localize(1731, "Whether the platform is a web browser"))));
|
|
10
|
+
const IsMacNativeContext = ( new RawContextKey('isMacNative', isMacintosh && !isWeb, ( localize(1732, "Whether the operating system is macOS on a non-browser platform"))));
|
|
11
|
+
const IsIOSContext = ( new RawContextKey('isIOS', isIOS, ( localize(1733, "Whether the operating system is iOS"))));
|
|
12
|
+
const IsMobileContext = ( new RawContextKey('isMobile', isMobile, ( localize(1734, "Whether the platform is a mobile web browser"))));
|
|
13
13
|
const IsDevelopmentContext = ( new RawContextKey('isDevelopment', false, true));
|
|
14
|
-
const ProductQualityContext = ( new RawContextKey('productQualityType', '', ( localize(
|
|
14
|
+
const ProductQualityContext = ( new RawContextKey('productQualityType', '', ( localize(1735, "Quality type of VS Code"))));
|
|
15
15
|
const InputFocusedContextKey = 'inputFocus';
|
|
16
|
-
const InputFocusedContext = ( new RawContextKey(InputFocusedContextKey, false, ( localize(
|
|
16
|
+
const InputFocusedContext = ( new RawContextKey(InputFocusedContextKey, false, ( localize(1736, "Whether keyboard focus is inside an input box"))));
|
|
17
17
|
|
|
18
18
|
export { InputFocusedContext, InputFocusedContextKey, IsDevelopmentContext, IsIOSContext, IsLinuxContext, IsMacContext, IsMacNativeContext, IsMobileContext, IsWebContext, IsWindowsContext, ProductQualityContext };
|
|
@@ -30,18 +30,18 @@ var TokenType;
|
|
|
30
30
|
function hintDidYouMean(...meant) {
|
|
31
31
|
switch (meant.length) {
|
|
32
32
|
case 1:
|
|
33
|
-
return localize(
|
|
33
|
+
return localize(1737, "Did you mean {0}?", meant[0]);
|
|
34
34
|
case 2:
|
|
35
|
-
return localize(
|
|
35
|
+
return localize(1738, "Did you mean {0} or {1}?", meant[0], meant[1]);
|
|
36
36
|
case 3:
|
|
37
|
-
return localize(
|
|
37
|
+
return localize(1739, "Did you mean {0}, {1} or {2}?", meant[0], meant[1], meant[2]);
|
|
38
38
|
default:
|
|
39
39
|
return undefined;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
const hintDidYouForgetToOpenOrCloseQuote = ( localize(
|
|
42
|
+
const hintDidYouForgetToOpenOrCloseQuote = ( localize(1740, "Did you forget to open or close the quote?"));
|
|
43
43
|
const hintDidYouForgetToEscapeSlash = ( localize(
|
|
44
|
-
|
|
44
|
+
1741,
|
|
45
45
|
"Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/\'."
|
|
46
46
|
));
|
|
47
47
|
class Scanner {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Event } from "../../../base/common/event.js";
|
|
2
2
|
import { URI } from "../../../base/common/uri.js";
|
|
3
|
-
import { IConfirmation, IConfirmationResult, IPromptWithCustomCancel, IPromptResultWithCancel, IPromptWithDefaultCancel, IPromptResult, IPrompt, IInput, IInputResult, type ConfirmResult, type IOpenDialogOptions, type IPickAndOpenOptions, type ISaveDialogOptions } from "@codingame/monaco-vscode-
|
|
3
|
+
import { IConfirmation, IConfirmationResult, IPromptWithCustomCancel, IPromptResultWithCancel, IPromptWithDefaultCancel, IPromptResult, IPrompt, IInput, IInputResult, type ConfirmResult, type IOpenDialogOptions, type IPickAndOpenOptions, type ISaveDialogOptions } from "@codingame/monaco-vscode-bed2b49f-41ae-5ed2-b61a-1105500a3f8a-common/vscode/vs/platform/dialogs/common/dialogs";
|
|
4
4
|
export declare const IDialogService: import("../../instantiation/common/instantiation.js").ServiceIdentifier<IDialogService>;
|
|
5
5
|
export interface IDialogService {
|
|
6
6
|
readonly _serviceBrand: undefined;
|
|
@@ -9,6 +9,7 @@ export declare const CodeDataTransfers: {
|
|
|
9
9
|
FILES: string;
|
|
10
10
|
SYMBOLS: string;
|
|
11
11
|
MARKERS: string;
|
|
12
|
+
NOTEBOOK_CELL_OUTPUT: string;
|
|
12
13
|
};
|
|
13
14
|
export interface IDraggedResourceEditorInput extends IBaseTextResourceEditorInput {
|
|
14
15
|
resource: URI | undefined;
|
|
@@ -64,6 +65,9 @@ export interface DocumentSymbolTransferData {
|
|
|
64
65
|
};
|
|
65
66
|
kind: number;
|
|
66
67
|
}
|
|
68
|
+
export interface NotebookCellOutputTransferData {
|
|
69
|
+
outputId: string;
|
|
70
|
+
}
|
|
67
71
|
export declare function extractSymbolDropData(e: DragEvent): DocumentSymbolTransferData[];
|
|
68
72
|
export declare function fillInSymbolsDragData(symbolsData: readonly DocumentSymbolTransferData[], e: DragEvent): void;
|
|
69
73
|
export type MarkerTransferData = IMarker | {
|
|
@@ -71,5 +75,6 @@ export type MarkerTransferData = IMarker | {
|
|
|
71
75
|
};
|
|
72
76
|
export declare function extractMarkerDropData(e: DragEvent): MarkerTransferData[] | undefined;
|
|
73
77
|
export declare function fillInMarkersDragData(markerData: MarkerTransferData[], e: DragEvent): void;
|
|
78
|
+
export declare function extractNotebookCellOutputDropData(e: DragEvent): NotebookCellOutputTransferData | undefined;
|
|
74
79
|
export declare function getPathForFile(file: File): string | undefined;
|
|
75
80
|
export {};
|
|
@@ -24,6 +24,7 @@ const CodeDataTransfers = {
|
|
|
24
24
|
FILES: 'CodeFiles',
|
|
25
25
|
SYMBOLS: 'application/vnd.code.symbols',
|
|
26
26
|
MARKERS: 'application/vnd.code.diagnostics',
|
|
27
|
+
NOTEBOOK_CELL_OUTPUT: 'notebook-cell-output',
|
|
27
28
|
};
|
|
28
29
|
function extractEditorsDropData(e) {
|
|
29
30
|
const editors = [];
|
|
@@ -182,7 +183,7 @@ async function extractFileListData(accessor, files) {
|
|
|
182
183
|
if (file) {
|
|
183
184
|
if (file.size > 100 * ByteSize.MB) {
|
|
184
185
|
dialogService.warn(( localize(
|
|
185
|
-
|
|
186
|
+
1747,
|
|
186
187
|
"File is too large to open as untitled editor. Please upload it first into the file explorer and then try again."
|
|
187
188
|
)));
|
|
188
189
|
continue;
|
|
@@ -300,6 +301,9 @@ function extractMarkerDropData(e) {
|
|
|
300
301
|
function fillInMarkersDragData(markerData, e) {
|
|
301
302
|
setDataAsJSON(e, CodeDataTransfers.MARKERS, markerData);
|
|
302
303
|
}
|
|
304
|
+
function extractNotebookCellOutputDropData(e) {
|
|
305
|
+
return getDataAsJSON(e, CodeDataTransfers.NOTEBOOK_CELL_OUTPUT, undefined);
|
|
306
|
+
}
|
|
303
307
|
function getPathForFile(file) {
|
|
304
308
|
if (isNative && typeof globalThis.vscode?.webUtils?.getPathForFile === 'function') {
|
|
305
309
|
return globalThis.vscode.webUtils.getPathForFile(file);
|
|
@@ -307,4 +311,4 @@ function getPathForFile(file) {
|
|
|
307
311
|
return undefined;
|
|
308
312
|
}
|
|
309
313
|
|
|
310
|
-
export { CodeDataTransfers, Extensions, LocalSelectionTransfer, containsDragType, createDraggedEditorInputFromRawResourcesData, extractEditorsAndFilesDropData, extractEditorsDropData, extractFileListData, extractMarkerDropData, extractSymbolDropData, fillInMarkersDragData, fillInSymbolsDragData, getPathForFile };
|
|
314
|
+
export { CodeDataTransfers, Extensions, LocalSelectionTransfer, containsDragType, createDraggedEditorInputFromRawResourcesData, extractEditorsAndFilesDropData, extractEditorsDropData, extractFileListData, extractMarkerDropData, extractNotebookCellOutputDropData, extractSymbolDropData, fillInMarkersDragData, fillInSymbolsDragData, getPathForFile };
|
|
@@ -4,6 +4,7 @@ import { Platform } from "../../../base/common/platform.js";
|
|
|
4
4
|
import { URI } from "../../../base/common/uri.js";
|
|
5
5
|
import { IExtension, TargetPlatform } from "../../extensions/common/extensions.js";
|
|
6
6
|
import { IFileService } from "../../files/common/files.service.js";
|
|
7
|
+
import { IExtensionGalleryManifest } from "@codingame/monaco-vscode-d7f659f5-da33-5ea8-a3b8-9b94f2cf5f33-common/vscode/vs/platform/extensionManagement/common/extensionGalleryManifest";
|
|
7
8
|
export declare const EXTENSION_IDENTIFIER_PATTERN = "^([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$";
|
|
8
9
|
export declare const EXTENSION_IDENTIFIER_REGEX: RegExp;
|
|
9
10
|
export declare const WEB_EXTENSION_TAG = "__web_extension";
|
|
@@ -196,11 +197,14 @@ export interface ISearchPrefferedResults {
|
|
|
196
197
|
readonly query?: string;
|
|
197
198
|
readonly preferredResults?: string[];
|
|
198
199
|
}
|
|
200
|
+
export type MaliciousExtensionInfo = {
|
|
201
|
+
readonly extensionOrPublisher: IExtensionIdentifier | string;
|
|
202
|
+
readonly learnMoreLink?: string;
|
|
203
|
+
};
|
|
199
204
|
export interface IExtensionsControlManifest {
|
|
200
|
-
readonly malicious: ReadonlyArray<
|
|
205
|
+
readonly malicious: ReadonlyArray<MaliciousExtensionInfo>;
|
|
201
206
|
readonly deprecated: IStringDictionary<IDeprecationInfo>;
|
|
202
207
|
readonly search: ISearchPrefferedResults[];
|
|
203
|
-
readonly extensionsEnabledWithPreRelease?: string[];
|
|
204
208
|
}
|
|
205
209
|
export declare enum InstallOperation {
|
|
206
210
|
None = 1,
|
|
@@ -416,3 +420,5 @@ export declare const ExtensionsLocalizedLabel: import("../../../nls.js").ILocali
|
|
|
416
420
|
export declare const PreferencesLocalizedLabel: import("../../../nls.js").ILocalizedString;
|
|
417
421
|
export declare const UseUnpkgResourceApiConfigKey = "extensions.gallery.useUnpkgResourceApi";
|
|
418
422
|
export declare const AllowedExtensionsConfigKey = "extensions.allowed";
|
|
423
|
+
export declare const VerifyExtensionSignatureConfigKey = "extensions.verifySignature";
|
|
424
|
+
export declare function shouldRequireRepositorySignatureFor(isPrivate: boolean, galleryManifest: IExtensionGalleryManifest | null): boolean;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
import { Platform } from '../../../base/common/platform.js';
|
|
3
|
-
import { localize2 } from '../../../nls.js';
|
|
3
|
+
import { localize2, localize } from '../../../nls.js';
|
|
4
|
+
import { Extensions, ConfigurationScope } from '../../configuration/common/configurationRegistry.js';
|
|
4
5
|
import { TargetPlatform } from '../../extensions/common/extensions.js';
|
|
5
6
|
import { FileOperationResult } from '../../files/common/files.js';
|
|
7
|
+
import { Registry } from '../../registry/common/platform.js';
|
|
6
8
|
|
|
7
9
|
const EXTENSION_IDENTIFIER_PATTERN = '^([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$';
|
|
8
10
|
const EXTENSION_IDENTIFIER_REGEX = ( new RegExp(EXTENSION_IDENTIFIER_PATTERN));
|
|
@@ -264,9 +266,97 @@ async function computeSize(location, fileService) {
|
|
|
264
266
|
}
|
|
265
267
|
return stat.size ?? 0;
|
|
266
268
|
}
|
|
267
|
-
const ExtensionsLocalizedLabel = ( localize2(
|
|
268
|
-
const PreferencesLocalizedLabel = ( localize2(
|
|
269
|
+
const ExtensionsLocalizedLabel = ( localize2(1768, "Extensions"));
|
|
270
|
+
const PreferencesLocalizedLabel = ( localize2(1769, 'Preferences'));
|
|
269
271
|
const UseUnpkgResourceApiConfigKey = 'extensions.gallery.useUnpkgResourceApi';
|
|
270
272
|
const AllowedExtensionsConfigKey = 'extensions.allowed';
|
|
273
|
+
const VerifyExtensionSignatureConfigKey = 'extensions.verifySignature';
|
|
274
|
+
( Registry.as(Extensions.Configuration))
|
|
275
|
+
.registerConfiguration({
|
|
276
|
+
id: 'extensions',
|
|
277
|
+
order: 30,
|
|
278
|
+
title: ( localize(1770, "Extensions")),
|
|
279
|
+
type: 'object',
|
|
280
|
+
properties: {
|
|
281
|
+
[AllowedExtensionsConfigKey]: {
|
|
282
|
+
type: 'object',
|
|
283
|
+
markdownDescription: ( localize(
|
|
284
|
+
1771,
|
|
285
|
+
"Specify a list of extensions that are allowed to use. This helps maintain a secure and consistent development environment by restricting the use of unauthorized extensions. For more information on how to configure this setting, please visit the [Configure Allowed Extensions](https://code.visualstudio.com/docs/setup/enterprise#_configure-allowed-extensions) section."
|
|
286
|
+
)),
|
|
287
|
+
default: '*',
|
|
288
|
+
defaultSnippets: [{
|
|
289
|
+
body: {},
|
|
290
|
+
description: ( localize(1772, "No extensions are allowed.")),
|
|
291
|
+
}, {
|
|
292
|
+
body: {
|
|
293
|
+
'*': true
|
|
294
|
+
},
|
|
295
|
+
description: ( localize(1773, "All extensions are allowed.")),
|
|
296
|
+
}],
|
|
297
|
+
scope: ConfigurationScope.APPLICATION,
|
|
298
|
+
policy: {
|
|
299
|
+
name: 'AllowedExtensions',
|
|
300
|
+
minimumVersion: '1.96',
|
|
301
|
+
description: ( localize(
|
|
302
|
+
1774,
|
|
303
|
+
"Specify a list of extensions that are allowed to use. This helps maintain a secure and consistent development environment by restricting the use of unauthorized extensions. More information: https://code.visualstudio.com/docs/setup/enterprise#_configure-allowed-extensions"
|
|
304
|
+
)),
|
|
305
|
+
},
|
|
306
|
+
additionalProperties: false,
|
|
307
|
+
patternProperties: {
|
|
308
|
+
'([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$': {
|
|
309
|
+
anyOf: [
|
|
310
|
+
{
|
|
311
|
+
type: ['boolean', 'string'],
|
|
312
|
+
enum: [true, false, 'stable'],
|
|
313
|
+
description: ( localize(1775, "Allow or disallow the extension.")),
|
|
314
|
+
enumDescriptions: [
|
|
315
|
+
( localize(1776, "Extension is allowed.")),
|
|
316
|
+
( localize(1777, "Extension is not allowed.")),
|
|
317
|
+
( localize(1778, "Allow only stable versions of the extension.")),
|
|
318
|
+
],
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
type: 'array',
|
|
322
|
+
items: {
|
|
323
|
+
type: 'string',
|
|
324
|
+
},
|
|
325
|
+
description: ( localize(
|
|
326
|
+
1779,
|
|
327
|
+
"Allow or disallow specific versions of the extension. To specifcy a platform specific version, use the format `platform@1.2.3`, e.g. `win32-x64@1.2.3`. Supported platforms are `win32-x64`, `win32-arm64`, `linux-x64`, `linux-arm64`, `linux-armhf`, `alpine-x64`, `alpine-arm64`, `darwin-x64`, `darwin-arm64`"
|
|
328
|
+
)),
|
|
329
|
+
},
|
|
330
|
+
]
|
|
331
|
+
},
|
|
332
|
+
'([a-z0-9A-Z][a-z0-9-A-Z]*)$': {
|
|
333
|
+
type: ['boolean', 'string'],
|
|
334
|
+
enum: [true, false, 'stable'],
|
|
335
|
+
description: ( localize(1780, "Allow or disallow all extensions from the publisher.")),
|
|
336
|
+
enumDescriptions: [
|
|
337
|
+
( localize(1781, "All extensions from the publisher are allowed.")),
|
|
338
|
+
( localize(1782, "All extensions from the publisher are not allowed.")),
|
|
339
|
+
( localize(1783, "Allow only stable versions of the extensions from the publisher.")),
|
|
340
|
+
],
|
|
341
|
+
},
|
|
342
|
+
'\\*': {
|
|
343
|
+
type: 'boolean',
|
|
344
|
+
enum: [true, false],
|
|
345
|
+
description: ( localize(1784, "Allow or disallow all extensions.")),
|
|
346
|
+
enumDescriptions: [
|
|
347
|
+
( localize(1785, "Allow all extensions.")),
|
|
348
|
+
( localize(1786, "Disallow all extensions."))
|
|
349
|
+
],
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
function shouldRequireRepositorySignatureFor(isPrivate, galleryManifest) {
|
|
356
|
+
if (isPrivate) {
|
|
357
|
+
return galleryManifest?.capabilities.signing?.allPrivateRepositorySigned === true;
|
|
358
|
+
}
|
|
359
|
+
return galleryManifest?.capabilities.signing?.allPublicRepositorySigned === true;
|
|
360
|
+
}
|
|
271
361
|
|
|
272
|
-
export { AllowedExtensionsConfigKey, DISABLED_EXTENSIONS_STORAGE_PATH, ENABLED_EXTENSIONS_STORAGE_PATH, EXTENSION_IDENTIFIER_PATTERN, EXTENSION_IDENTIFIER_REGEX, EXTENSION_INSTALL_DEP_PACK_CONTEXT, EXTENSION_INSTALL_SKIP_PUBLISHER_TRUST_CONTEXT, EXTENSION_INSTALL_SKIP_WALKTHROUGH_CONTEXT, EXTENSION_INSTALL_SOURCE_CONTEXT, ExtensionGalleryError, ExtensionGalleryErrorCode, ExtensionInstallSource, ExtensionManagementError, ExtensionManagementErrorCode, ExtensionSignatureVerificationCode, ExtensionsLocalizedLabel, FilterType, InstallOperation, PreferencesLocalizedLabel, SortBy, SortOrder, StatisticType, TargetPlatformToString, UseUnpkgResourceApiConfigKey, WEB_EXTENSION_TAG, computeSize, getTargetPlatform, isIExtensionIdentifier, isNotWebExtensionInWebTargetPlatform, isTargetPlatformCompatible, toTargetPlatform };
|
|
362
|
+
export { AllowedExtensionsConfigKey, DISABLED_EXTENSIONS_STORAGE_PATH, ENABLED_EXTENSIONS_STORAGE_PATH, EXTENSION_IDENTIFIER_PATTERN, EXTENSION_IDENTIFIER_REGEX, EXTENSION_INSTALL_DEP_PACK_CONTEXT, EXTENSION_INSTALL_SKIP_PUBLISHER_TRUST_CONTEXT, EXTENSION_INSTALL_SKIP_WALKTHROUGH_CONTEXT, EXTENSION_INSTALL_SOURCE_CONTEXT, ExtensionGalleryError, ExtensionGalleryErrorCode, ExtensionInstallSource, ExtensionManagementError, ExtensionManagementErrorCode, ExtensionSignatureVerificationCode, ExtensionsLocalizedLabel, FilterType, InstallOperation, PreferencesLocalizedLabel, SortBy, SortOrder, StatisticType, TargetPlatformToString, UseUnpkgResourceApiConfigKey, VerifyExtensionSignatureConfigKey, WEB_EXTENSION_TAG, computeSize, getTargetPlatform, isIExtensionIdentifier, isNotWebExtensionInWebTargetPlatform, isTargetPlatformCompatible, shouldRequireRepositorySignatureFor, toTargetPlatform };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CancellationToken } from "../../../base/common/cancellation.js";
|
|
2
2
|
import { Event } from "../../../base/common/event.js";
|
|
3
3
|
import { IMarkdownString } from "../../../base/common/htmlContent.js";
|
|
4
|
-
import { IPager } from "@codingame/monaco-vscode-
|
|
4
|
+
import { IPager } from "@codingame/monaco-vscode-ecf3436d-6064-5fbd-a760-37a211ce79c7-common/vscode/vs/base/common/paging";
|
|
5
5
|
import { URI } from "../../../base/common/uri.js";
|
|
6
6
|
import { TargetPlatform, IExtensionManifest, type ExtensionType, type IExtension } from "../../extensions/common/extensions.js";
|
|
7
7
|
import { IQueryOptions, IGalleryExtension, IExtensionInfo, IExtensionQueryOptions, IProductVersion, IExtensionIdentifier, IGalleryExtensionVersion, InstallOperation, StatisticType, ITranslation, IExtensionsControlManifest, type DidUninstallExtensionEvent, type DidUpdateExtensionMetadata, type IExtensionManagementParticipant, type ILocalExtension, type InstallExtensionEvent, type InstallExtensionInfo, type InstallExtensionResult, type InstallOptions, type Metadata, type UninstallExtensionEvent, type UninstallExtensionInfo, type UninstallOptions, type IConfigBasedExtensionTip, type IExecutableBasedExtensionTip, type AllowedExtensionsConfigValueType } from "./extensionManagement.js";
|
|
@@ -27,6 +27,7 @@ export interface IExtensionGalleryService {
|
|
|
27
27
|
export declare const IExtensionManagementService: import("../../instantiation/common/instantiation.js").ServiceIdentifier<IExtensionManagementService>;
|
|
28
28
|
export interface IExtensionManagementService {
|
|
29
29
|
readonly _serviceBrand: undefined;
|
|
30
|
+
readonly preferPreReleases: boolean;
|
|
30
31
|
onInstallExtension: Event<InstallExtensionEvent>;
|
|
31
32
|
onDidInstallExtensions: Event<readonly InstallExtensionResult[]>;
|
|
32
33
|
onUninstallExtension: Event<UninstallExtensionEvent>;
|
|
@@ -42,7 +43,7 @@ export interface IExtensionManagementService {
|
|
|
42
43
|
installExtensionsFromProfile(extensions: IExtensionIdentifier[], fromProfileLocation: URI, toProfileLocation: URI): Promise<ILocalExtension[]>;
|
|
43
44
|
uninstall(extension: ILocalExtension, options?: UninstallOptions): Promise<void>;
|
|
44
45
|
uninstallExtensions(extensions: UninstallExtensionInfo[]): Promise<void>;
|
|
45
|
-
|
|
46
|
+
toggleApplicationScope(extension: ILocalExtension, fromProfileLocation: URI): Promise<ILocalExtension>;
|
|
46
47
|
getInstalled(type?: ExtensionType, profileLocation?: URI, productVersion?: IProductVersion): Promise<ILocalExtension[]>;
|
|
47
48
|
getExtensionsControlManifest(): Promise<IExtensionsControlManifest>;
|
|
48
49
|
copyExtensions(fromProfileLocation: URI, toProfileLocation: URI): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IExtensionIdentifier, IGalleryExtension, ILocalExtension } from "./extensionManagement.js";
|
|
1
|
+
import { IExtensionIdentifier, IGalleryExtension, ILocalExtension, MaliciousExtensionInfo } from "./extensionManagement.js";
|
|
2
2
|
import { ExtensionIdentifier, IExtension, TargetPlatform } from "../../extensions/common/extensions.js";
|
|
3
3
|
import { IFileService } from "../../files/common/files.service.js";
|
|
4
4
|
import { ILogService } from "../../log/common/log.service.js";
|
|
@@ -35,4 +35,5 @@ export declare function getGalleryExtensionTelemetryData(extension: IGalleryExte
|
|
|
35
35
|
export declare const BetterMergeId: ExtensionIdentifier;
|
|
36
36
|
export declare function getExtensionDependencies(installedExtensions: ReadonlyArray<IExtension>, extension: IExtension): IExtension[];
|
|
37
37
|
export declare function computeTargetPlatform(fileService: IFileService, logService: ILogService): Promise<TargetPlatform>;
|
|
38
|
-
export declare function isMalicious(identifier: IExtensionIdentifier, malicious: ReadonlyArray<
|
|
38
|
+
export declare function isMalicious(identifier: IExtensionIdentifier, malicious: ReadonlyArray<MaliciousExtensionInfo>): boolean;
|
|
39
|
+
export declare function findMatchingMaliciousEntry(identifier: IExtensionIdentifier, malicious: ReadonlyArray<MaliciousExtensionInfo>): MaliciousExtensionInfo | undefined;
|
|
@@ -150,16 +150,19 @@ async function isAlpineLinux(fileService, logService) {
|
|
|
150
150
|
async function computeTargetPlatform(fileService, logService) {
|
|
151
151
|
const alpineLinux = await isAlpineLinux(fileService, logService);
|
|
152
152
|
const targetPlatform = getTargetPlatform(alpineLinux ? 'alpine' : platform, arch);
|
|
153
|
-
logService.
|
|
153
|
+
logService.info('ComputeTargetPlatform:', targetPlatform);
|
|
154
154
|
return targetPlatform;
|
|
155
155
|
}
|
|
156
156
|
function isMalicious(identifier, malicious) {
|
|
157
|
-
return ( malicious
|
|
158
|
-
|
|
159
|
-
|
|
157
|
+
return findMatchingMaliciousEntry(identifier, malicious) !== undefined;
|
|
158
|
+
}
|
|
159
|
+
function findMatchingMaliciousEntry(identifier, malicious) {
|
|
160
|
+
return malicious.find(({ extensionOrPublisher }) => {
|
|
161
|
+
if (isString(extensionOrPublisher)) {
|
|
162
|
+
return compareIgnoreCase(identifier.id.split('.')[0], extensionOrPublisher) === 0;
|
|
160
163
|
}
|
|
161
|
-
return areSameExtensions(identifier,
|
|
162
|
-
})
|
|
164
|
+
return areSameExtensions(identifier, extensionOrPublisher);
|
|
165
|
+
});
|
|
163
166
|
}
|
|
164
167
|
|
|
165
|
-
export { BetterMergeId, ExtensionKey, adoptToGalleryExtensionId, areSameExtensions, computeTargetPlatform, getExtensionDependencies, getExtensionId, getGalleryExtensionId, getGalleryExtensionTelemetryData, getIdAndVersion, getLocalExtensionTelemetryData, groupByExtension, isMalicious };
|
|
168
|
+
export { BetterMergeId, ExtensionKey, adoptToGalleryExtensionId, areSameExtensions, computeTargetPlatform, findMatchingMaliciousEntry, getExtensionDependencies, getExtensionId, getGalleryExtensionId, getGalleryExtensionTelemetryData, getIdAndVersion, getLocalExtensionTelemetryData, groupByExtension, isMalicious };
|
|
@@ -28,7 +28,7 @@ function replaceNLStrings(logger, extensionManifest, messages, originalMessages)
|
|
|
28
28
|
const originalMessage = typeof original === 'string' ? original : original?.message;
|
|
29
29
|
if (!message) {
|
|
30
30
|
if (!originalMessage) {
|
|
31
|
-
logger.warn(`[${extensionManifest.name}]: ${( localize(
|
|
31
|
+
logger.warn(`[${extensionManifest.name}]: ${( localize(1818, "Couldn't find message for key {0}.", messageKey))}`);
|
|
32
32
|
}
|
|
33
33
|
return;
|
|
34
34
|
}
|