@codingame/monaco-vscode-api 28.4.1 → 29.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 +232 -112
- package/package.json +8 -8
- package/services.d.ts +1 -3
- package/services.js +4 -6
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/base/browser/markdownRenderer.js +15 -1
- package/vscode/src/vs/base/browser/touch.js +1 -1
- package/vscode/src/vs/base/browser/ui/button/button.css +1 -0
- package/vscode/src/vs/base/browser/ui/dialog/dialog.css +18 -22
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css +1 -0
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +6 -3
- package/vscode/src/vs/base/browser/ui/list/listView.d.ts +4 -4
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +1 -1
- package/vscode/src/vs/base/browser/ui/menu/menu.js +3 -0
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +4 -1
- package/vscode/src/vs/base/browser/ui/tree/compressedObjectTreeModel.js +8 -2
- package/vscode/src/vs/base/common/async.d.ts +4 -4
- package/vscode/src/vs/base/common/codicons.d.ts +1 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +1 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +1 -0
- package/vscode/src/vs/base/common/event.d.ts +14 -2
- package/vscode/src/vs/base/common/event.js +10 -5
- package/vscode/src/vs/base/common/htmlContent.d.ts +2 -2
- package/vscode/src/vs/base/common/htmlContent.js +1 -1
- package/vscode/src/vs/base/common/lifecycle.d.ts +1 -1
- package/vscode/src/vs/base/common/network.d.ts +2 -0
- package/vscode/src/vs/base/common/network.js +1 -0
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +1 -1
- package/vscode/src/vs/base/common/product.d.ts +1 -0
- package/vscode/src/vs/base/common/resources.d.ts +2 -2
- package/vscode/src/vs/base/common/resources.js +2 -2
- package/vscode/src/vs/base/parts/request/common/request.d.ts +5 -0
- package/vscode/src/vs/editor/browser/controller/mouseTarget.js +2 -1
- package/vscode/src/vs/editor/browser/controller/pointerHandler.js +1 -1
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +3 -3
- package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.d.ts +2 -2
- package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.js +27 -22
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +10 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +1 -1
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +1 -1
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.js +2 -2
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +4 -0
- package/vscode/src/vs/editor/common/config/editorOptions.js +364 -357
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +72 -72
- package/vscode/src/vs/editor/common/core/ranges/offsetRange.d.ts +1 -1
- package/vscode/src/vs/editor/common/editorContextKeys.js +49 -49
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.js +56 -56
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/model/textModel.d.ts +2 -2
- package/vscode/src/vs/editor/common/model/textModel.js +7 -33
- package/vscode/src/vs/editor/common/model/tokens/abstractSyntaxTokenBackend.js +1 -1
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTree.js +1 -1
- package/vscode/src/vs/editor/common/model.d.ts +1 -1
- package/vscode/src/vs/editor/common/modelLineProjectionData.d.ts +6 -2
- package/vscode/src/vs/editor/common/standaloneStrings.js +50 -50
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +2 -18
- package/vscode/src/vs/editor/common/textModelEvents.js +2 -6
- package/vscode/src/vs/editor/common/viewLayout/lineHeights.js +38 -15
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/common/viewModel/minimapTokensColorTracker.js +4 -1
- package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.d.ts +2 -2
- package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +8 -8
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +2 -2
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +6 -15
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.d.ts +3 -3
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.js +12 -12
- package/vscode/src/vs/editor/common/viewModel.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +18 -18
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +17 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +5 -5
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +39 -18
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +28 -28
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +20 -20
- 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 +13 -13
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +33 -33
- 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 +3 -3
- 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/hover.css +1 -0
- 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 +22 -22
- package/vscode/src/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +7 -7
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.d.ts +5 -1
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +46 -7
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +18 -18
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -21
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +13 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.js +5 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsNewUsers.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/inlineEditsLongDistanceHint.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- 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 +31 -31
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +6 -6
- 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.css +6 -0
- 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 +18 -18
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +1 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +11 -11
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
- 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/stickyScroll.css +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +9 -9
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.js +70 -7
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
- 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 +1 -1
- 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 +3 -3
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +108 -22
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +466 -130
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +54 -3
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +13 -13
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +3 -3
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +4 -0
- package/vscode/src/vs/platform/actions/common/actions.js +12 -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/browserView/common/browserView.d.ts +348 -0
- package/vscode/src/vs/platform/browserView/common/cdp/types.d.ts +153 -0
- package/vscode/src/vs/platform/browserView/common/playwrightService.service.d.ts +91 -0
- package/vscode/src/vs/platform/configuration/common/configuration.d.ts +1 -0
- package/vscode/src/vs/platform/configuration/common/configuration.js +6 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +10 -10
- 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.js +9 -9
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/download/common/download.service.d.ts +1 -1
- package/vscode/src/vs/platform/editor/common/editor.d.ts +18 -0
- package/vscode/src/vs/platform/environment/common/argv.d.ts +5 -0
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +1 -0
- package/vscode/src/vs/platform/environment/common/environmentService.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +14 -14
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +21 -21
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +10 -0
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +12 -2
- 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/hover/browser/hover.css +4 -0
- package/vscode/src/vs/platform/hover/browser/hoverWidget.js +4 -1
- package/vscode/src/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
- package/vscode/src/vs/platform/keybinding/common/keybindingsRegistry.d.ts +2 -0
- package/vscode/src/vs/platform/keybinding/common/keybindingsRegistry.js +54 -5
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +1 -1
- package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +3 -3
- package/vscode/src/vs/platform/list/browser/listService.js +25 -25
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markerService.js +2 -2
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/mcp/common/mcpManagementService.js +1 -1
- package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.config.contribution.js +5 -5
- package/vscode/src/vs/platform/notification/common/notification.js +3 -3
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +6 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +20 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +2 -2
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.js +10 -3
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.d.ts +8 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +6 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +1 -1
- package/vscode/src/vs/platform/remote/common/remoteAgentEnvironment.d.ts +1 -0
- package/vscode/src/vs/platform/request/common/request.d.ts +13 -0
- package/vscode/src/vs/platform/request/common/request.js +42 -20
- package/vscode/src/vs/platform/request/common/request.service.d.ts +6 -1
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +10 -5
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +12 -2
- package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +31 -31
- package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +1 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +18 -18
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +48 -48
- 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 +16 -16
- 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 +6 -6
- package/vscode/src/vs/platform/theme/common/sizes/baseSizes.js +11 -11
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/update/common/update.d.ts +8 -6
- package/vscode/src/vs/platform/update/common/update.js +6 -6
- package/vscode/src/vs/platform/url/common/urlGlob.js +5 -3
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
- package/vscode/src/vs/platform/userDataSync/common/keybindingsSync.js +2 -2
- package/vscode/src/vs/platform/userDataSync/common/settingsSync.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncStoreService.js +24 -12
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +15 -14
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +53 -8
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +100 -21
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostApiDeprecationService.d.ts +6 -2
- package/vscode/src/vs/workbench/api/common/extHostApiDeprecationService.js +7 -5
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +5 -5
- package/vscode/src/vs/workbench/api/common/extHostBrowsers.d.ts +30 -0
- package/vscode/src/vs/workbench/api/common/extHostBrowsers.js +211 -0
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +11 -4
- package/vscode/src/vs/workbench/api/common/extHostChatDebug.d.ts +10 -0
- package/vscode/src/vs/workbench/api/common/extHostChatDebug.js +132 -1
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.d.ts +7 -8
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +81 -33
- package/vscode/src/vs/workbench/api/common/extHostCommands.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostConsoleForwarder.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostConsoleForwarder.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostFileSystemConsumer.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostGitExtensionService.d.ts +5 -1
- package/vscode/src/vs/workbench/api/common/extHostGitExtensionService.js +107 -7
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +11 -11
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +17 -7
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +5 -3
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +7 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +30 -3
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTask.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +3 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +21 -6
- package/vscode/src/vs/workbench/api/common/extHostTimeline.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +2 -1
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +22 -5
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +22 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +19 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +3 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +11 -11
- package/vscode/src/vs/workbench/api/worker/extHostConsoleForwarder.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +32 -32
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +130 -130
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +29 -29
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/labels.js +4 -4
- package/vscode/src/vs/workbench/browser/media/style.css +21 -0
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +23 -23
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +26 -26
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +37 -37
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +12 -12
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +7 -7
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +135 -135
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +28 -28
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +7 -7
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +12 -12
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +8 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.d.ts +17 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +37 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +10 -10
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +66 -66
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css +5 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/modalEditorPart.css +16 -5
- package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.d.ts +18 -4
- package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.js +322 -56
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +19 -19
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsCenter.css +1 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsToasts.css +1 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +22 -22
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +27 -27
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +15 -15
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -7
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
- package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
- package/vscode/src/vs/workbench/browser/window.js +14 -14
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +251 -252
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.js +77 -77
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +6 -1
- package/vscode/src/vs/workbench/common/editor.js +5 -4
- package/vscode/src/vs/workbench/common/theme.js +161 -161
- package/vscode/src/vs/workbench/common/views.d.ts +6 -0
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +154 -154
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/browserView/common/browserView.d.ts +182 -0
- package/vscode/src/vs/workbench/contrib/browserView/common/browserView.service.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/browserView/common/browserView.service.js +7 -0
- package/vscode/src/vs/workbench/contrib/browserView/common/browserZoomService.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/browserView/common/browserZoomService.service.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/browserView/common/browserZoomService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +101 -63
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.d.ts +26 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +23 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.d.ts +24 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.js +90 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatScreenshotContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +3 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.service.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageUtils.js +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.js +10 -13
- package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.js +104 -84
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.d.ts +49 -0
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.js +29 -0
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.d.ts +7 -4
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.js +11 -7
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +215 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +17 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.service.d.ts +24 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.d.ts +50 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.js +44 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.d.ts +91 -23
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.service.d.ts +16 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +98 -57
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.js +30 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +41 -32
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.d.ts +159 -0
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.js +157 -0
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.service.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/editing/chatEditingService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/enablement.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/chat/common/enablement.js +102 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +33 -11
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +271 -36
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.service.d.ts +25 -4
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelsConfiguration.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.d.ts +14 -5
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.js +63 -45
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatQuestionCarouselData.d.ts +10 -5
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatQuestionCarouselData.js +6 -2
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +5 -2
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatUri.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatUri.js +4 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatViewModel.js +8 -6
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.service.d.ts +18 -4
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.service.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service.d.ts +30 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service.d.ts +28 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginSource.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.service.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +9 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +36 -24
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.d.ts +13 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.js +23 -17
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookTypes.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptFileAttributes.js +79 -79
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.js +6 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +16 -9
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +1 -8
- package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.js +47 -63
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.js +115 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/editFileTool.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +12 -9
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +39 -11
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.js +103 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.js +28 -10
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.service.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsConfirmationService.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsConfirmationService.js +11 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +29 -29
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.d.ts +13 -3
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/widget/input/modelPickerWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +11 -11
- 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 +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
- 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 +3 -3
- 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/codeEditor/common/languageConfigurationExtensionPoint.js +65 -65
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +2 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +14 -14
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +16 -16
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +12 -12
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +75 -75
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +38 -38
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +18 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +7 -5
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +69 -66
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +8 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugUtils.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugUtils.js +26 -1
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
- package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.js +18 -18
- package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +42 -42
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.js +15 -15
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.js +14 -14
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +160 -152
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +170 -170
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +25 -25
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.js +4 -4
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.js +7 -7
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +47 -47
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +7 -7
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +30 -30
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +76 -76
- package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionEditor.css +4 -2
- package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -4
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +3 -3
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +39 -39
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands._save.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +27 -27
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +50 -50
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +7 -7
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +17 -17
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/common/files.js +16 -16
- 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/git/browser/gitService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/git/browser/gitService.js +6 -0
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.service.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +1 -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/browser/mcpCommandsAddConfiguration.js +66 -66
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerActions.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerActions.js +201 -34
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditor.js +37 -35
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerIcons.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerWidgets.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfiguration.js +40 -40
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpGatewayService.d.ts +14 -2
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.js +20 -18
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +7 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +23 -23
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnection.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnectionStatus.js +4 -4
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +3 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +13 -13
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +10 -10
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +63 -59
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +3 -3
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +15 -15
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +59 -59
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +11 -11
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryChatContext.js +6 -6
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.js +14 -14
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +9 -9
- package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +12 -12
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +9 -9
- package/vscode/src/vs/workbench/contrib/search/browser/searchChatContext.js +5 -5
- package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
- package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +14 -14
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +55 -55
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +11 -11
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +5 -5
- 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/constants.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +6 -6
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +5 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +13 -13
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +40 -40
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +15 -15
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +10 -10
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +17 -17
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +26 -26
- package/vscode/src/vs/workbench/contrib/terminal/terminalContribExports.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/terminal/terminalContribExports.js +4 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminalAccessibilityConfiguration.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/autoReplies/common/terminalAutoRepliesConfiguration.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.js +116 -95
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.service.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/commandGuide/common/terminalCommandGuideConfiguration.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/history/common/terminal.history.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/inlineHint/common/terminalInitialHintConfiguration.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/notification/common/terminalNotificationConfiguration.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/common/terminalStickyScrollConfiguration.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminalSuggestConfiguration.js +30 -30
- package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/common/terminalTypeAheadConfiguration.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/common/terminal.zoom.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindAccessibilityHelp.js +30 -30
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.js +28 -6
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +11 -11
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/browserElements/browser/browserElementsService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +19 -17
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/browser/editorService.js +15 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.d.ts +12 -19
- package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.js +12 -6
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +22 -6
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/environment/browser/environmentService.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionsIcons.js +3 -3
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +10 -10
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +2 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.d.ts +2 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +90 -90
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
- package/vscode/src/vs/workbench/services/language/common/languageService.js +24 -24
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +2 -1
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +1 -0
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +4 -4
- package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.d.ts +137 -0
- package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +1079 -0
- package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.d.ts +11 -0
- package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +359 -0
- 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 +1 -1
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +18 -18
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +24 -24
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.d.ts +8 -4
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.js +14 -7
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +16 -16
- package/vscode-dts/vscode.proposed.authIssuers.d.ts +2 -2
- package/vscode-dts/vscode.proposed.browser.d.ts +92 -0
- package/vscode-dts/vscode.proposed.chatDebug.d.ts +136 -2
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +6 -0
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +7 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +51 -0
- package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +52 -3
- package/vscode-dts/vscode.proposed.d.ts +3 -0
- package/vscode-dts/vscode.proposed.findFiles2.d.ts +6 -0
- package/vscode-dts/vscode.proposed.findTextInFiles2.d.ts +6 -0
- package/vscode-dts/vscode.proposed.mcpServerDefinitions.d.ts +36 -10
- package/vscode-dts/vscode.proposed.taskRunOptions.d.ts +34 -0
- package/vscode-dts/vscode.proposed.toolInvocationApproveCombination.d.ts +22 -0
- package/vscode/src/vs/base/common/parsers.d.ts +0 -32
- package/vscode/src/vs/base/common/parsers.js +0 -54
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.service.d.ts +0 -47
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.service.js +0 -6
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionTargetPicker.d.ts +0 -73
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.service.d.ts +0 -37
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.service.js +0 -6
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.service.d.ts +0 -47
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.service.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/resolveDebugEventDetailsTool.d.ts +0 -11
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/resolveDebugEventDetailsTool.js +0 -205
- package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.d.ts +0 -433
- package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.js +0 -1637
- package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.d.ts +0 -514
- package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +0 -1796
|
@@ -1,1796 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { localize } from '../../../../nls.js';
|
|
3
|
-
import { deepClone } from '../../../../base/common/objects.js';
|
|
4
|
-
import { Platform } from '../../../../base/common/platform.js';
|
|
5
|
-
import { isString, isStringArray, isBoolean, isUndefined } from '../../../../base/common/types.js';
|
|
6
|
-
import { generateUuid } from '../../../../base/common/uuid.js';
|
|
7
|
-
import { ProblemMatcherParser, isNamedProblemMatcher, ProblemMatcherRegistry } from './problemMatcher.js';
|
|
8
|
-
import { RunOnOptions as RunOnOptions$1, InstancePolicy as InstancePolicy$1, RevealKind, RevealProblemKind, PanelKind, ExecutionEngine as ExecutionEngine$1, ShellQuoting as ShellQuoting$1, JsonSchemaVersion as JsonSchemaVersion$1, RuntimeType, TaskGroup, USER_TASKS_GROUP_KEY, TaskDefinition, DependsOrder as DependsOrder$1, TaskSourceKind, ConfiguringTask as ConfiguringTask$1, CUSTOMIZED_TASK_TYPE, CustomTask as CustomTask$1, CommandString as CommandString$1 } from './tasks.js';
|
|
9
|
-
import { TaskDefinitionRegistry } from './taskDefinitionRegistry.js';
|
|
10
|
-
import { ProcessExecutionSupportedContext, ShellExecutionSupportedContext } from './taskService.js';
|
|
11
|
-
|
|
12
|
-
var ShellQuoting;
|
|
13
|
-
(function(ShellQuoting) {
|
|
14
|
-
ShellQuoting[ShellQuoting["escape"] = 1] = "escape";
|
|
15
|
-
ShellQuoting[ShellQuoting["strong"] = 2] = "strong";
|
|
16
|
-
ShellQuoting[ShellQuoting["weak"] = 3] = "weak";
|
|
17
|
-
})(ShellQuoting || (ShellQuoting = {}));
|
|
18
|
-
var ITaskIdentifier;
|
|
19
|
-
(function(ITaskIdentifier) {
|
|
20
|
-
function is(value) {
|
|
21
|
-
const candidate = value;
|
|
22
|
-
return candidate !== undefined && isString(value.type);
|
|
23
|
-
}
|
|
24
|
-
ITaskIdentifier.is = is;
|
|
25
|
-
})(ITaskIdentifier || (ITaskIdentifier = {}));
|
|
26
|
-
var CommandString;
|
|
27
|
-
(function(CommandString) {
|
|
28
|
-
function value(value) {
|
|
29
|
-
if (isString(value)) {
|
|
30
|
-
return value;
|
|
31
|
-
} else if (isStringArray(value)) {
|
|
32
|
-
return value.join(" ");
|
|
33
|
-
} else {
|
|
34
|
-
if (isString(value.value)) {
|
|
35
|
-
return value.value;
|
|
36
|
-
} else {
|
|
37
|
-
return value.value.join(" ");
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
CommandString.value = value;
|
|
42
|
-
})(CommandString || (CommandString = {}));
|
|
43
|
-
var ProblemMatcherKind;
|
|
44
|
-
(function(ProblemMatcherKind) {
|
|
45
|
-
ProblemMatcherKind[ProblemMatcherKind["Unknown"] = 0] = "Unknown";
|
|
46
|
-
ProblemMatcherKind[ProblemMatcherKind["String"] = 1] = "String";
|
|
47
|
-
ProblemMatcherKind[ProblemMatcherKind["ProblemMatcher"] = 2] = "ProblemMatcher";
|
|
48
|
-
ProblemMatcherKind[ProblemMatcherKind["Array"] = 3] = "Array";
|
|
49
|
-
})(ProblemMatcherKind || (ProblemMatcherKind = {}));
|
|
50
|
-
const EMPTY_ARRAY = [];
|
|
51
|
-
function assignProperty(target, source, key) {
|
|
52
|
-
const sourceAtKey = source[key];
|
|
53
|
-
if (sourceAtKey !== undefined) {
|
|
54
|
-
target[key] = sourceAtKey;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function fillProperty(target, source, key) {
|
|
58
|
-
const sourceAtKey = source[key];
|
|
59
|
-
if (target[key] === undefined && sourceAtKey !== undefined) {
|
|
60
|
-
target[key] = sourceAtKey;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function _isEmpty(value, properties, allowEmptyArray = false) {
|
|
64
|
-
if (value === undefined || value === null || properties === undefined) {
|
|
65
|
-
return true;
|
|
66
|
-
}
|
|
67
|
-
for (const meta of properties) {
|
|
68
|
-
const property = value[meta.property];
|
|
69
|
-
if (property !== undefined && property !== null) {
|
|
70
|
-
if (meta.type !== undefined && !meta.type.isEmpty(property)) {
|
|
71
|
-
return false;
|
|
72
|
-
} else if (!Array.isArray(property) || (property.length > 0) || allowEmptyArray) {
|
|
73
|
-
return false;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return true;
|
|
78
|
-
}
|
|
79
|
-
function _assignProperties(target, source, properties) {
|
|
80
|
-
if (!source || _isEmpty(source, properties)) {
|
|
81
|
-
return target;
|
|
82
|
-
}
|
|
83
|
-
if (!target || _isEmpty(target, properties)) {
|
|
84
|
-
return source;
|
|
85
|
-
}
|
|
86
|
-
for (const meta of properties) {
|
|
87
|
-
const property = meta.property;
|
|
88
|
-
let value;
|
|
89
|
-
if (meta.type !== undefined) {
|
|
90
|
-
value = meta.type.assignProperties(target[property], source[property]);
|
|
91
|
-
} else {
|
|
92
|
-
value = source[property];
|
|
93
|
-
}
|
|
94
|
-
if (value !== undefined && value !== null) {
|
|
95
|
-
target[property] = value;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
return target;
|
|
99
|
-
}
|
|
100
|
-
function _fillProperties(target, source, properties, allowEmptyArray = false) {
|
|
101
|
-
if (!source || _isEmpty(source, properties)) {
|
|
102
|
-
return target;
|
|
103
|
-
}
|
|
104
|
-
if (!target || _isEmpty(target, properties, allowEmptyArray)) {
|
|
105
|
-
return source;
|
|
106
|
-
}
|
|
107
|
-
for (const meta of properties) {
|
|
108
|
-
const property = meta.property;
|
|
109
|
-
let value;
|
|
110
|
-
if (meta.type) {
|
|
111
|
-
value = meta.type.fillProperties(target[property], source[property]);
|
|
112
|
-
} else if (target[property] === undefined) {
|
|
113
|
-
value = source[property];
|
|
114
|
-
}
|
|
115
|
-
if (value !== undefined && value !== null) {
|
|
116
|
-
target[property] = value;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
return target;
|
|
120
|
-
}
|
|
121
|
-
function _fillDefaults(target, defaults, properties, context) {
|
|
122
|
-
if (target && Object.isFrozen(target)) {
|
|
123
|
-
return target;
|
|
124
|
-
}
|
|
125
|
-
if (target === undefined || target === null || defaults === undefined || defaults === null) {
|
|
126
|
-
if (defaults !== undefined && defaults !== null) {
|
|
127
|
-
return deepClone(defaults);
|
|
128
|
-
} else {
|
|
129
|
-
return undefined;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
for (const meta of properties) {
|
|
133
|
-
const property = meta.property;
|
|
134
|
-
if (target[property] !== undefined) {
|
|
135
|
-
continue;
|
|
136
|
-
}
|
|
137
|
-
let value;
|
|
138
|
-
if (meta.type) {
|
|
139
|
-
value = meta.type.fillDefaults(target[property], context);
|
|
140
|
-
} else {
|
|
141
|
-
value = defaults[property];
|
|
142
|
-
}
|
|
143
|
-
if (value !== undefined && value !== null) {
|
|
144
|
-
target[property] = value;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
return target;
|
|
148
|
-
}
|
|
149
|
-
function _freeze(target, properties) {
|
|
150
|
-
if (target === undefined || target === null) {
|
|
151
|
-
return undefined;
|
|
152
|
-
}
|
|
153
|
-
if (Object.isFrozen(target)) {
|
|
154
|
-
return target;
|
|
155
|
-
}
|
|
156
|
-
for (const meta of properties) {
|
|
157
|
-
if (meta.type) {
|
|
158
|
-
const value = target[meta.property];
|
|
159
|
-
if (value) {
|
|
160
|
-
meta.type.freeze(value);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
return target;
|
|
165
|
-
}
|
|
166
|
-
var RunOnOptions;
|
|
167
|
-
(function(RunOnOptions) {
|
|
168
|
-
function fromString(value) {
|
|
169
|
-
if (!value) {
|
|
170
|
-
return RunOnOptions$1.default;
|
|
171
|
-
}
|
|
172
|
-
switch (value.toLowerCase()) {
|
|
173
|
-
case "folderopen":
|
|
174
|
-
return RunOnOptions$1.folderOpen;
|
|
175
|
-
case "default":
|
|
176
|
-
default:
|
|
177
|
-
return RunOnOptions$1.default;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
RunOnOptions.fromString = fromString;
|
|
181
|
-
})(RunOnOptions || (RunOnOptions = {}));
|
|
182
|
-
var RunOptions;
|
|
183
|
-
(function(RunOptions) {
|
|
184
|
-
const properties = [{
|
|
185
|
-
property: "reevaluateOnRerun"
|
|
186
|
-
}, {
|
|
187
|
-
property: "runOn"
|
|
188
|
-
}, {
|
|
189
|
-
property: "instanceLimit"
|
|
190
|
-
}, {
|
|
191
|
-
property: "instancePolicy"
|
|
192
|
-
}];
|
|
193
|
-
function fromConfiguration(value) {
|
|
194
|
-
return {
|
|
195
|
-
reevaluateOnRerun: value ? value.reevaluateOnRerun : true,
|
|
196
|
-
runOn: value ? RunOnOptions.fromString(value.runOn) : RunOnOptions$1.default,
|
|
197
|
-
instanceLimit: value?.instanceLimit ? Math.max(value.instanceLimit, 1) : 1,
|
|
198
|
-
instancePolicy: value ? InstancePolicy.fromString(value.instancePolicy) : InstancePolicy$1.prompt
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
RunOptions.fromConfiguration = fromConfiguration;
|
|
202
|
-
function assignProperties(target, source) {
|
|
203
|
-
return _assignProperties(target, source, properties);
|
|
204
|
-
}
|
|
205
|
-
RunOptions.assignProperties = assignProperties;
|
|
206
|
-
function fillProperties(target, source) {
|
|
207
|
-
return _fillProperties(target, source, properties);
|
|
208
|
-
}
|
|
209
|
-
RunOptions.fillProperties = fillProperties;
|
|
210
|
-
})(RunOptions || (RunOptions = {}));
|
|
211
|
-
var InstancePolicy;
|
|
212
|
-
(function(InstancePolicy) {
|
|
213
|
-
function fromString(value) {
|
|
214
|
-
if (!value) {
|
|
215
|
-
return InstancePolicy$1.prompt;
|
|
216
|
-
}
|
|
217
|
-
switch (value.toLowerCase()) {
|
|
218
|
-
case "terminatenewest":
|
|
219
|
-
return InstancePolicy$1.terminateNewest;
|
|
220
|
-
case "terminateoldest":
|
|
221
|
-
return InstancePolicy$1.terminateOldest;
|
|
222
|
-
case "warn":
|
|
223
|
-
return InstancePolicy$1.warn;
|
|
224
|
-
case "silent":
|
|
225
|
-
return InstancePolicy$1.silent;
|
|
226
|
-
case "prompt":
|
|
227
|
-
default:
|
|
228
|
-
return InstancePolicy$1.prompt;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
InstancePolicy.fromString = fromString;
|
|
232
|
-
})(InstancePolicy || (InstancePolicy = {}));
|
|
233
|
-
var ShellConfiguration;
|
|
234
|
-
(function(ShellConfiguration) {
|
|
235
|
-
const properties = [{
|
|
236
|
-
property: "executable"
|
|
237
|
-
}, {
|
|
238
|
-
property: "args"
|
|
239
|
-
}, {
|
|
240
|
-
property: "quoting"
|
|
241
|
-
}];
|
|
242
|
-
function is(value) {
|
|
243
|
-
const candidate = value;
|
|
244
|
-
return candidate && (isString(candidate.executable) || isStringArray(candidate.args));
|
|
245
|
-
}
|
|
246
|
-
ShellConfiguration.is = is;
|
|
247
|
-
function from(config, context) {
|
|
248
|
-
if (!is(config)) {
|
|
249
|
-
return undefined;
|
|
250
|
-
}
|
|
251
|
-
const result = {};
|
|
252
|
-
if (config.executable !== undefined) {
|
|
253
|
-
result.executable = config.executable;
|
|
254
|
-
}
|
|
255
|
-
if (config.args !== undefined) {
|
|
256
|
-
result.args = config.args.slice();
|
|
257
|
-
}
|
|
258
|
-
if (config.quoting !== undefined) {
|
|
259
|
-
result.quoting = deepClone(config.quoting);
|
|
260
|
-
}
|
|
261
|
-
return result;
|
|
262
|
-
}
|
|
263
|
-
ShellConfiguration.from = from;
|
|
264
|
-
function isEmpty(value) {
|
|
265
|
-
return _isEmpty(value, properties, true);
|
|
266
|
-
}
|
|
267
|
-
ShellConfiguration.isEmpty = isEmpty;
|
|
268
|
-
function assignProperties(target, source) {
|
|
269
|
-
return _assignProperties(target, source, properties);
|
|
270
|
-
}
|
|
271
|
-
ShellConfiguration.assignProperties = assignProperties;
|
|
272
|
-
function fillProperties(target, source) {
|
|
273
|
-
return _fillProperties(target, source, properties, true);
|
|
274
|
-
}
|
|
275
|
-
ShellConfiguration.fillProperties = fillProperties;
|
|
276
|
-
function fillDefaults(value, context) {
|
|
277
|
-
return value;
|
|
278
|
-
}
|
|
279
|
-
ShellConfiguration.fillDefaults = fillDefaults;
|
|
280
|
-
function freeze(value) {
|
|
281
|
-
if (!value) {
|
|
282
|
-
return undefined;
|
|
283
|
-
}
|
|
284
|
-
return ( Object.freeze(value));
|
|
285
|
-
}
|
|
286
|
-
ShellConfiguration.freeze = freeze;
|
|
287
|
-
})(ShellConfiguration || (ShellConfiguration = {}));
|
|
288
|
-
var CommandOptions;
|
|
289
|
-
(function(CommandOptions) {
|
|
290
|
-
const properties = [{
|
|
291
|
-
property: "cwd"
|
|
292
|
-
}, {
|
|
293
|
-
property: "env"
|
|
294
|
-
}, {
|
|
295
|
-
property: "shell",
|
|
296
|
-
type: ShellConfiguration
|
|
297
|
-
}];
|
|
298
|
-
const defaults = {
|
|
299
|
-
cwd: "${workspaceFolder}"
|
|
300
|
-
};
|
|
301
|
-
function from(options, context) {
|
|
302
|
-
const result = {};
|
|
303
|
-
if (options.cwd !== undefined) {
|
|
304
|
-
if (isString(options.cwd)) {
|
|
305
|
-
result.cwd = options.cwd;
|
|
306
|
-
} else {
|
|
307
|
-
context.taskLoadIssues.push(( localize(
|
|
308
|
-
12978,
|
|
309
|
-
"Warning: options.cwd must be of type string. Ignoring value {0}\n",
|
|
310
|
-
options.cwd
|
|
311
|
-
)));
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
if (options.env !== undefined) {
|
|
315
|
-
result.env = deepClone(options.env);
|
|
316
|
-
}
|
|
317
|
-
result.shell = ShellConfiguration.from(options.shell, context);
|
|
318
|
-
return isEmpty(result) ? undefined : result;
|
|
319
|
-
}
|
|
320
|
-
CommandOptions.from = from;
|
|
321
|
-
function isEmpty(value) {
|
|
322
|
-
return _isEmpty(value, properties);
|
|
323
|
-
}
|
|
324
|
-
CommandOptions.isEmpty = isEmpty;
|
|
325
|
-
function assignProperties(target, source) {
|
|
326
|
-
if ((source === undefined) || isEmpty(source)) {
|
|
327
|
-
return target;
|
|
328
|
-
}
|
|
329
|
-
if ((target === undefined) || isEmpty(target)) {
|
|
330
|
-
return source;
|
|
331
|
-
}
|
|
332
|
-
assignProperty(target, source, "cwd");
|
|
333
|
-
if (target.env === undefined) {
|
|
334
|
-
target.env = source.env;
|
|
335
|
-
} else if (source.env !== undefined) {
|
|
336
|
-
const env = Object.create(null);
|
|
337
|
-
if (target.env !== undefined) {
|
|
338
|
-
( Object.keys(target.env)).forEach(key => env[key] = target.env[key]);
|
|
339
|
-
}
|
|
340
|
-
if (source.env !== undefined) {
|
|
341
|
-
( Object.keys(source.env)).forEach(key => env[key] = source.env[key]);
|
|
342
|
-
}
|
|
343
|
-
target.env = env;
|
|
344
|
-
}
|
|
345
|
-
target.shell = ShellConfiguration.assignProperties(target.shell, source.shell);
|
|
346
|
-
return target;
|
|
347
|
-
}
|
|
348
|
-
CommandOptions.assignProperties = assignProperties;
|
|
349
|
-
function fillProperties(target, source) {
|
|
350
|
-
return _fillProperties(target, source, properties);
|
|
351
|
-
}
|
|
352
|
-
CommandOptions.fillProperties = fillProperties;
|
|
353
|
-
function fillDefaults(value, context) {
|
|
354
|
-
return _fillDefaults(value, defaults, properties, context);
|
|
355
|
-
}
|
|
356
|
-
CommandOptions.fillDefaults = fillDefaults;
|
|
357
|
-
function freeze(value) {
|
|
358
|
-
return _freeze(value, properties);
|
|
359
|
-
}
|
|
360
|
-
CommandOptions.freeze = freeze;
|
|
361
|
-
})(CommandOptions || (CommandOptions = {}));
|
|
362
|
-
var CommandConfiguration;
|
|
363
|
-
(function(CommandConfiguration) {
|
|
364
|
-
let PresentationOptions;
|
|
365
|
-
(function(PresentationOptions) {
|
|
366
|
-
const properties = [{
|
|
367
|
-
property: "echo"
|
|
368
|
-
}, {
|
|
369
|
-
property: "reveal"
|
|
370
|
-
}, {
|
|
371
|
-
property: "revealProblems"
|
|
372
|
-
}, {
|
|
373
|
-
property: "focus"
|
|
374
|
-
}, {
|
|
375
|
-
property: "panel"
|
|
376
|
-
}, {
|
|
377
|
-
property: "showReuseMessage"
|
|
378
|
-
}, {
|
|
379
|
-
property: "clear"
|
|
380
|
-
}, {
|
|
381
|
-
property: "group"
|
|
382
|
-
}, {
|
|
383
|
-
property: "close"
|
|
384
|
-
}, {
|
|
385
|
-
property: "preserveTerminalName"
|
|
386
|
-
}];
|
|
387
|
-
function from(config, context) {
|
|
388
|
-
let echo;
|
|
389
|
-
let reveal;
|
|
390
|
-
let revealProblems;
|
|
391
|
-
let focus;
|
|
392
|
-
let panel;
|
|
393
|
-
let showReuseMessage;
|
|
394
|
-
let clear;
|
|
395
|
-
let group;
|
|
396
|
-
let close;
|
|
397
|
-
let preserveTerminalName;
|
|
398
|
-
let hasProps = false;
|
|
399
|
-
if (isBoolean(config.echoCommand)) {
|
|
400
|
-
echo = config.echoCommand;
|
|
401
|
-
hasProps = true;
|
|
402
|
-
}
|
|
403
|
-
if (isString(config.showOutput)) {
|
|
404
|
-
reveal = RevealKind.fromString(config.showOutput);
|
|
405
|
-
hasProps = true;
|
|
406
|
-
}
|
|
407
|
-
const presentation = config.presentation || config.terminal;
|
|
408
|
-
if (presentation) {
|
|
409
|
-
if (isBoolean(presentation.echo)) {
|
|
410
|
-
echo = presentation.echo;
|
|
411
|
-
}
|
|
412
|
-
if (isString(presentation.reveal)) {
|
|
413
|
-
reveal = RevealKind.fromString(presentation.reveal);
|
|
414
|
-
}
|
|
415
|
-
if (isString(presentation.revealProblems)) {
|
|
416
|
-
revealProblems = RevealProblemKind.fromString(presentation.revealProblems);
|
|
417
|
-
}
|
|
418
|
-
if (isBoolean(presentation.focus)) {
|
|
419
|
-
focus = presentation.focus;
|
|
420
|
-
}
|
|
421
|
-
if (isString(presentation.panel)) {
|
|
422
|
-
panel = PanelKind.fromString(presentation.panel);
|
|
423
|
-
}
|
|
424
|
-
if (isBoolean(presentation.showReuseMessage)) {
|
|
425
|
-
showReuseMessage = presentation.showReuseMessage;
|
|
426
|
-
}
|
|
427
|
-
if (isBoolean(presentation.clear)) {
|
|
428
|
-
clear = presentation.clear;
|
|
429
|
-
}
|
|
430
|
-
if (isString(presentation.group)) {
|
|
431
|
-
group = presentation.group;
|
|
432
|
-
}
|
|
433
|
-
if (isBoolean(presentation.close)) {
|
|
434
|
-
close = presentation.close;
|
|
435
|
-
}
|
|
436
|
-
if (isBoolean(presentation.preserveTerminalName)) {
|
|
437
|
-
preserveTerminalName = presentation.preserveTerminalName;
|
|
438
|
-
}
|
|
439
|
-
hasProps = true;
|
|
440
|
-
}
|
|
441
|
-
if (!hasProps) {
|
|
442
|
-
return undefined;
|
|
443
|
-
}
|
|
444
|
-
return {
|
|
445
|
-
echo: echo,
|
|
446
|
-
reveal: reveal,
|
|
447
|
-
revealProblems: revealProblems,
|
|
448
|
-
focus: focus,
|
|
449
|
-
panel: panel,
|
|
450
|
-
showReuseMessage: showReuseMessage,
|
|
451
|
-
clear: clear,
|
|
452
|
-
group,
|
|
453
|
-
close: close,
|
|
454
|
-
preserveTerminalName
|
|
455
|
-
};
|
|
456
|
-
}
|
|
457
|
-
PresentationOptions.from = from;
|
|
458
|
-
function assignProperties(target, source) {
|
|
459
|
-
return _assignProperties(target, source, properties);
|
|
460
|
-
}
|
|
461
|
-
PresentationOptions.assignProperties = assignProperties;
|
|
462
|
-
function fillProperties(target, source) {
|
|
463
|
-
return _fillProperties(target, source, properties);
|
|
464
|
-
}
|
|
465
|
-
PresentationOptions.fillProperties = fillProperties;
|
|
466
|
-
function fillDefaults(value, context) {
|
|
467
|
-
const defaultEcho = context.engine === ExecutionEngine$1.Terminal ? true : false;
|
|
468
|
-
return _fillDefaults(value, {
|
|
469
|
-
echo: defaultEcho,
|
|
470
|
-
reveal: RevealKind.Always,
|
|
471
|
-
revealProblems: RevealProblemKind.Never,
|
|
472
|
-
focus: false,
|
|
473
|
-
panel: PanelKind.Shared,
|
|
474
|
-
showReuseMessage: true,
|
|
475
|
-
clear: false,
|
|
476
|
-
preserveTerminalName: false
|
|
477
|
-
}, properties, context);
|
|
478
|
-
}
|
|
479
|
-
PresentationOptions.fillDefaults = fillDefaults;
|
|
480
|
-
function freeze(value) {
|
|
481
|
-
return _freeze(value, properties);
|
|
482
|
-
}
|
|
483
|
-
PresentationOptions.freeze = freeze;
|
|
484
|
-
function isEmpty(value) {
|
|
485
|
-
return _isEmpty(value, properties);
|
|
486
|
-
}
|
|
487
|
-
PresentationOptions.isEmpty = isEmpty;
|
|
488
|
-
})(
|
|
489
|
-
PresentationOptions = CommandConfiguration.PresentationOptions || (CommandConfiguration.PresentationOptions = {})
|
|
490
|
-
);
|
|
491
|
-
let ShellString;
|
|
492
|
-
(function(ShellString) {
|
|
493
|
-
function from(value) {
|
|
494
|
-
if (value === undefined || value === null) {
|
|
495
|
-
return undefined;
|
|
496
|
-
}
|
|
497
|
-
if (isString(value)) {
|
|
498
|
-
return value;
|
|
499
|
-
} else if (isStringArray(value)) {
|
|
500
|
-
return value.join(" ");
|
|
501
|
-
} else {
|
|
502
|
-
const quoting = ShellQuoting$1.from(value.quoting);
|
|
503
|
-
const result = isString(value.value) ? value.value : isStringArray(value.value) ? value.value.join(" ") : undefined;
|
|
504
|
-
if (result) {
|
|
505
|
-
return {
|
|
506
|
-
value: result,
|
|
507
|
-
quoting: quoting
|
|
508
|
-
};
|
|
509
|
-
} else {
|
|
510
|
-
return undefined;
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
ShellString.from = from;
|
|
515
|
-
})(ShellString || (ShellString = {}));
|
|
516
|
-
const properties = [{
|
|
517
|
-
property: "runtime"
|
|
518
|
-
}, {
|
|
519
|
-
property: "name"
|
|
520
|
-
}, {
|
|
521
|
-
property: "options",
|
|
522
|
-
type: CommandOptions
|
|
523
|
-
}, {
|
|
524
|
-
property: "args"
|
|
525
|
-
}, {
|
|
526
|
-
property: "taskSelector"
|
|
527
|
-
}, {
|
|
528
|
-
property: "suppressTaskName"
|
|
529
|
-
}, {
|
|
530
|
-
property: "presentation",
|
|
531
|
-
type: PresentationOptions
|
|
532
|
-
}];
|
|
533
|
-
function from(config, context) {
|
|
534
|
-
let result = fromBase(config, context);
|
|
535
|
-
let osConfig = undefined;
|
|
536
|
-
if (config.windows && context.platform === Platform.Windows) {
|
|
537
|
-
osConfig = fromBase(config.windows, context);
|
|
538
|
-
} else if (config.osx && context.platform === Platform.Mac) {
|
|
539
|
-
osConfig = fromBase(config.osx, context);
|
|
540
|
-
} else if (config.linux && context.platform === Platform.Linux) {
|
|
541
|
-
osConfig = fromBase(config.linux, context);
|
|
542
|
-
}
|
|
543
|
-
if (osConfig) {
|
|
544
|
-
result = assignProperties(result, osConfig, context.schemaVersion === JsonSchemaVersion$1.V2_0_0);
|
|
545
|
-
}
|
|
546
|
-
return isEmpty(result) ? undefined : result;
|
|
547
|
-
}
|
|
548
|
-
CommandConfiguration.from = from;
|
|
549
|
-
function fromBase(config, context) {
|
|
550
|
-
const name = ShellString.from(config.command);
|
|
551
|
-
let runtime;
|
|
552
|
-
if (isString(config.type)) {
|
|
553
|
-
if (config.type === "shell" || config.type === "process") {
|
|
554
|
-
runtime = RuntimeType.fromString(config.type);
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
if (isBoolean(config.isShellCommand) || ShellConfiguration.is(config.isShellCommand)) {
|
|
558
|
-
runtime = RuntimeType.Shell;
|
|
559
|
-
} else if (config.isShellCommand !== undefined) {
|
|
560
|
-
runtime = !!config.isShellCommand ? RuntimeType.Shell : RuntimeType.Process;
|
|
561
|
-
}
|
|
562
|
-
const result = {
|
|
563
|
-
name: name,
|
|
564
|
-
runtime: runtime,
|
|
565
|
-
presentation: PresentationOptions.from(config, context)
|
|
566
|
-
};
|
|
567
|
-
if (config.args !== undefined) {
|
|
568
|
-
result.args = [];
|
|
569
|
-
for (const arg of config.args) {
|
|
570
|
-
const converted = ShellString.from(arg);
|
|
571
|
-
if (converted !== undefined) {
|
|
572
|
-
result.args.push(converted);
|
|
573
|
-
} else {
|
|
574
|
-
context.taskLoadIssues.push(( localize(
|
|
575
|
-
12979,
|
|
576
|
-
"Error: command argument must either be a string or a quoted string. Provided value is:\n{0}",
|
|
577
|
-
arg ? JSON.stringify(arg, undefined, 4) : "undefined"
|
|
578
|
-
)));
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
if (config.options !== undefined) {
|
|
583
|
-
result.options = CommandOptions.from(config.options, context);
|
|
584
|
-
if (result.options && result.options.shell === undefined && ShellConfiguration.is(config.isShellCommand)) {
|
|
585
|
-
result.options.shell = ShellConfiguration.from(config.isShellCommand, context);
|
|
586
|
-
if (context.engine !== ExecutionEngine$1.Terminal) {
|
|
587
|
-
context.taskLoadIssues.push(( localize(
|
|
588
|
-
12980,
|
|
589
|
-
"Warning: shell configuration is only supported when executing tasks in the terminal."
|
|
590
|
-
)));
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
if (isString(config.taskSelector)) {
|
|
595
|
-
result.taskSelector = config.taskSelector;
|
|
596
|
-
}
|
|
597
|
-
if (isBoolean(config.suppressTaskName)) {
|
|
598
|
-
result.suppressTaskName = config.suppressTaskName;
|
|
599
|
-
}
|
|
600
|
-
return isEmpty(result) ? undefined : result;
|
|
601
|
-
}
|
|
602
|
-
function hasCommand(value) {
|
|
603
|
-
return value && !!value.name;
|
|
604
|
-
}
|
|
605
|
-
CommandConfiguration.hasCommand = hasCommand;
|
|
606
|
-
function isEmpty(value) {
|
|
607
|
-
return _isEmpty(value, properties);
|
|
608
|
-
}
|
|
609
|
-
CommandConfiguration.isEmpty = isEmpty;
|
|
610
|
-
function assignProperties(target, source, overwriteArgs) {
|
|
611
|
-
if (isEmpty(source)) {
|
|
612
|
-
return target;
|
|
613
|
-
}
|
|
614
|
-
if (isEmpty(target)) {
|
|
615
|
-
return source;
|
|
616
|
-
}
|
|
617
|
-
assignProperty(target, source, "name");
|
|
618
|
-
assignProperty(target, source, "runtime");
|
|
619
|
-
assignProperty(target, source, "taskSelector");
|
|
620
|
-
assignProperty(target, source, "suppressTaskName");
|
|
621
|
-
if (source.args !== undefined) {
|
|
622
|
-
if (target.args === undefined || overwriteArgs) {
|
|
623
|
-
target.args = source.args;
|
|
624
|
-
} else {
|
|
625
|
-
target.args = target.args.concat(source.args);
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
target.presentation = PresentationOptions.assignProperties(target.presentation, source.presentation);
|
|
629
|
-
target.options = CommandOptions.assignProperties(target.options, source.options);
|
|
630
|
-
return target;
|
|
631
|
-
}
|
|
632
|
-
CommandConfiguration.assignProperties = assignProperties;
|
|
633
|
-
function fillProperties(target, source) {
|
|
634
|
-
return _fillProperties(target, source, properties);
|
|
635
|
-
}
|
|
636
|
-
CommandConfiguration.fillProperties = fillProperties;
|
|
637
|
-
function fillGlobals(target, source, taskName) {
|
|
638
|
-
if ((source === undefined) || isEmpty(source)) {
|
|
639
|
-
return target;
|
|
640
|
-
}
|
|
641
|
-
target = target || {
|
|
642
|
-
name: undefined,
|
|
643
|
-
runtime: undefined,
|
|
644
|
-
presentation: undefined
|
|
645
|
-
};
|
|
646
|
-
if (target.name === undefined) {
|
|
647
|
-
fillProperty(target, source, "name");
|
|
648
|
-
fillProperty(target, source, "taskSelector");
|
|
649
|
-
fillProperty(target, source, "suppressTaskName");
|
|
650
|
-
let args = source.args ? source.args.slice() : [];
|
|
651
|
-
if (!target.suppressTaskName && taskName) {
|
|
652
|
-
if (target.taskSelector !== undefined) {
|
|
653
|
-
args.push(target.taskSelector + taskName);
|
|
654
|
-
} else {
|
|
655
|
-
args.push(taskName);
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
if (target.args) {
|
|
659
|
-
args = args.concat(target.args);
|
|
660
|
-
}
|
|
661
|
-
target.args = args;
|
|
662
|
-
}
|
|
663
|
-
fillProperty(target, source, "runtime");
|
|
664
|
-
target.presentation = PresentationOptions.fillProperties(target.presentation, source.presentation);
|
|
665
|
-
target.options = CommandOptions.fillProperties(target.options, source.options);
|
|
666
|
-
return target;
|
|
667
|
-
}
|
|
668
|
-
CommandConfiguration.fillGlobals = fillGlobals;
|
|
669
|
-
function fillDefaults(value, context) {
|
|
670
|
-
if (!value || Object.isFrozen(value)) {
|
|
671
|
-
return;
|
|
672
|
-
}
|
|
673
|
-
if (value.name !== undefined && value.runtime === undefined) {
|
|
674
|
-
value.runtime = RuntimeType.Process;
|
|
675
|
-
}
|
|
676
|
-
value.presentation = PresentationOptions.fillDefaults(value.presentation, context);
|
|
677
|
-
if (!isEmpty(value)) {
|
|
678
|
-
value.options = CommandOptions.fillDefaults(value.options, context);
|
|
679
|
-
}
|
|
680
|
-
if (value.args === undefined) {
|
|
681
|
-
value.args = EMPTY_ARRAY;
|
|
682
|
-
}
|
|
683
|
-
if (value.suppressTaskName === undefined) {
|
|
684
|
-
value.suppressTaskName = (context.schemaVersion === JsonSchemaVersion$1.V2_0_0);
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
CommandConfiguration.fillDefaults = fillDefaults;
|
|
688
|
-
function freeze(value) {
|
|
689
|
-
return _freeze(value, properties);
|
|
690
|
-
}
|
|
691
|
-
CommandConfiguration.freeze = freeze;
|
|
692
|
-
})(CommandConfiguration || (CommandConfiguration = {}));
|
|
693
|
-
var ProblemMatcherConverter;
|
|
694
|
-
(function(ProblemMatcherConverter) {
|
|
695
|
-
function namedFrom(declares, context) {
|
|
696
|
-
const result = Object.create(null);
|
|
697
|
-
if (!Array.isArray(declares)) {
|
|
698
|
-
return result;
|
|
699
|
-
}
|
|
700
|
-
declares.forEach(value => {
|
|
701
|
-
const namedProblemMatcher = ( new ProblemMatcherParser(context.problemReporter)).parse(value);
|
|
702
|
-
if (isNamedProblemMatcher(namedProblemMatcher)) {
|
|
703
|
-
result[namedProblemMatcher.name] = namedProblemMatcher;
|
|
704
|
-
} else {
|
|
705
|
-
context.problemReporter.error(( localize(
|
|
706
|
-
12981,
|
|
707
|
-
"Error: Problem Matcher in declare scope must have a name:\n{0}\n",
|
|
708
|
-
JSON.stringify(value, undefined, 4)
|
|
709
|
-
)));
|
|
710
|
-
}
|
|
711
|
-
});
|
|
712
|
-
return result;
|
|
713
|
-
}
|
|
714
|
-
ProblemMatcherConverter.namedFrom = namedFrom;
|
|
715
|
-
function fromWithOsConfig(external, context) {
|
|
716
|
-
let result = {};
|
|
717
|
-
const osExternal = external;
|
|
718
|
-
if (osExternal.windows?.problemMatcher && context.platform === Platform.Windows) {
|
|
719
|
-
result = from(osExternal.windows.problemMatcher, context);
|
|
720
|
-
} else if (osExternal.osx?.problemMatcher && context.platform === Platform.Mac) {
|
|
721
|
-
result = from(osExternal.osx.problemMatcher, context);
|
|
722
|
-
} else if (osExternal.linux?.problemMatcher && context.platform === Platform.Linux) {
|
|
723
|
-
result = from(osExternal.linux.problemMatcher, context);
|
|
724
|
-
} else if (external.problemMatcher) {
|
|
725
|
-
result = from(external.problemMatcher, context);
|
|
726
|
-
}
|
|
727
|
-
return result;
|
|
728
|
-
}
|
|
729
|
-
ProblemMatcherConverter.fromWithOsConfig = fromWithOsConfig;
|
|
730
|
-
function from(config, context) {
|
|
731
|
-
const result = [];
|
|
732
|
-
if (config === undefined) {
|
|
733
|
-
return {
|
|
734
|
-
value: result
|
|
735
|
-
};
|
|
736
|
-
}
|
|
737
|
-
const errors = [];
|
|
738
|
-
function addResult(matcher) {
|
|
739
|
-
if (matcher.value) {
|
|
740
|
-
result.push(matcher.value);
|
|
741
|
-
}
|
|
742
|
-
if (matcher.errors) {
|
|
743
|
-
errors.push(...matcher.errors);
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
const kind = getProblemMatcherKind(config);
|
|
747
|
-
if (kind === ProblemMatcherKind.Unknown) {
|
|
748
|
-
const error = ( localize(
|
|
749
|
-
12982,
|
|
750
|
-
"Warning: the defined problem matcher is unknown. Supported types are string | ProblemMatcher | Array<string | ProblemMatcher>.\n{0}\n",
|
|
751
|
-
JSON.stringify(config, null, 4)
|
|
752
|
-
));
|
|
753
|
-
context.problemReporter.warn(error);
|
|
754
|
-
} else if (kind === ProblemMatcherKind.String || kind === ProblemMatcherKind.ProblemMatcher) {
|
|
755
|
-
addResult(resolveProblemMatcher(config, context));
|
|
756
|
-
} else if (kind === ProblemMatcherKind.Array) {
|
|
757
|
-
const problemMatchers = config;
|
|
758
|
-
problemMatchers.forEach(problemMatcher => {
|
|
759
|
-
addResult(resolveProblemMatcher(problemMatcher, context));
|
|
760
|
-
});
|
|
761
|
-
}
|
|
762
|
-
return {
|
|
763
|
-
value: result,
|
|
764
|
-
errors
|
|
765
|
-
};
|
|
766
|
-
}
|
|
767
|
-
ProblemMatcherConverter.from = from;
|
|
768
|
-
function getProblemMatcherKind(value) {
|
|
769
|
-
if (isString(value)) {
|
|
770
|
-
return ProblemMatcherKind.String;
|
|
771
|
-
} else if (Array.isArray(value)) {
|
|
772
|
-
return ProblemMatcherKind.Array;
|
|
773
|
-
} else if (!isUndefined(value)) {
|
|
774
|
-
return ProblemMatcherKind.ProblemMatcher;
|
|
775
|
-
} else {
|
|
776
|
-
return ProblemMatcherKind.Unknown;
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
function resolveProblemMatcher(value, context) {
|
|
780
|
-
if (isString(value)) {
|
|
781
|
-
let variableName = value;
|
|
782
|
-
if (variableName.length > 1 && variableName[0] === "$") {
|
|
783
|
-
variableName = variableName.substring(1);
|
|
784
|
-
const global = ProblemMatcherRegistry.get(variableName);
|
|
785
|
-
if (global) {
|
|
786
|
-
return {
|
|
787
|
-
value: deepClone(global)
|
|
788
|
-
};
|
|
789
|
-
}
|
|
790
|
-
let localProblemMatcher = context.namedProblemMatchers[variableName];
|
|
791
|
-
if (localProblemMatcher) {
|
|
792
|
-
localProblemMatcher = deepClone(localProblemMatcher);
|
|
793
|
-
delete localProblemMatcher.name;
|
|
794
|
-
return {
|
|
795
|
-
value: localProblemMatcher
|
|
796
|
-
};
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
return {
|
|
800
|
-
errors: [( localize(12983, "Error: Invalid problemMatcher reference: {0}\n", value))]
|
|
801
|
-
};
|
|
802
|
-
} else {
|
|
803
|
-
const json = value;
|
|
804
|
-
return {
|
|
805
|
-
value: ( new ProblemMatcherParser(context.problemReporter)).parse(json)
|
|
806
|
-
};
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
})(ProblemMatcherConverter || (ProblemMatcherConverter = {}));
|
|
810
|
-
var GroupKind;
|
|
811
|
-
(function(GroupKind) {
|
|
812
|
-
function from(external) {
|
|
813
|
-
if (external === undefined) {
|
|
814
|
-
return undefined;
|
|
815
|
-
} else if (isString(external) && TaskGroup.is(external)) {
|
|
816
|
-
return {
|
|
817
|
-
_id: external,
|
|
818
|
-
isDefault: false
|
|
819
|
-
};
|
|
820
|
-
} else if (isString(external.kind) && TaskGroup.is(external.kind)) {
|
|
821
|
-
const group = external.kind;
|
|
822
|
-
const isDefault = isUndefined(external.isDefault) ? false : external.isDefault;
|
|
823
|
-
return {
|
|
824
|
-
_id: group,
|
|
825
|
-
isDefault
|
|
826
|
-
};
|
|
827
|
-
}
|
|
828
|
-
return undefined;
|
|
829
|
-
}
|
|
830
|
-
GroupKind.from = from;
|
|
831
|
-
function to(group) {
|
|
832
|
-
if (isString(group)) {
|
|
833
|
-
return group;
|
|
834
|
-
} else if (!group.isDefault) {
|
|
835
|
-
return group._id;
|
|
836
|
-
}
|
|
837
|
-
return {
|
|
838
|
-
kind: group._id,
|
|
839
|
-
isDefault: group.isDefault
|
|
840
|
-
};
|
|
841
|
-
}
|
|
842
|
-
GroupKind.to = to;
|
|
843
|
-
})(GroupKind || (GroupKind = {}));
|
|
844
|
-
var TaskDependency;
|
|
845
|
-
(function(TaskDependency) {
|
|
846
|
-
function uriFromSource(context, source) {
|
|
847
|
-
switch (source) {
|
|
848
|
-
case TaskConfigSource.User:
|
|
849
|
-
return USER_TASKS_GROUP_KEY;
|
|
850
|
-
case TaskConfigSource.TasksJson:
|
|
851
|
-
return context.workspaceFolder.uri;
|
|
852
|
-
default:
|
|
853
|
-
return context.workspace && context.workspace.configuration ? context.workspace.configuration : context.workspaceFolder.uri;
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
function from(external, context, source) {
|
|
857
|
-
if (isString(external)) {
|
|
858
|
-
return {
|
|
859
|
-
uri: uriFromSource(context, source),
|
|
860
|
-
task: external
|
|
861
|
-
};
|
|
862
|
-
} else if (ITaskIdentifier.is(external)) {
|
|
863
|
-
return {
|
|
864
|
-
uri: uriFromSource(context, source),
|
|
865
|
-
task: TaskDefinition.createTaskIdentifier(external, context.problemReporter)
|
|
866
|
-
};
|
|
867
|
-
} else {
|
|
868
|
-
return undefined;
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
TaskDependency.from = from;
|
|
872
|
-
})(TaskDependency || (TaskDependency = {}));
|
|
873
|
-
var DependsOrder;
|
|
874
|
-
(function(DependsOrder) {
|
|
875
|
-
function from(order) {
|
|
876
|
-
switch (order) {
|
|
877
|
-
case DependsOrder$1.sequence:
|
|
878
|
-
return DependsOrder$1.sequence;
|
|
879
|
-
case DependsOrder$1.parallel:
|
|
880
|
-
default:
|
|
881
|
-
return DependsOrder$1.parallel;
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
DependsOrder.from = from;
|
|
885
|
-
})(DependsOrder || (DependsOrder = {}));
|
|
886
|
-
var ConfigurationProperties;
|
|
887
|
-
(function(ConfigurationProperties) {
|
|
888
|
-
const properties = [{
|
|
889
|
-
property: "name"
|
|
890
|
-
}, {
|
|
891
|
-
property: "identifier"
|
|
892
|
-
}, {
|
|
893
|
-
property: "group"
|
|
894
|
-
}, {
|
|
895
|
-
property: "isBackground"
|
|
896
|
-
}, {
|
|
897
|
-
property: "promptOnClose"
|
|
898
|
-
}, {
|
|
899
|
-
property: "dependsOn"
|
|
900
|
-
}, {
|
|
901
|
-
property: "presentation",
|
|
902
|
-
type: CommandConfiguration.PresentationOptions
|
|
903
|
-
}, {
|
|
904
|
-
property: "problemMatchers"
|
|
905
|
-
}, {
|
|
906
|
-
property: "options"
|
|
907
|
-
}, {
|
|
908
|
-
property: "icon"
|
|
909
|
-
}, {
|
|
910
|
-
property: "hide"
|
|
911
|
-
}, {
|
|
912
|
-
property: "inSessions"
|
|
913
|
-
}];
|
|
914
|
-
function from(external, context, includeCommandOptions, source, properties) {
|
|
915
|
-
if (!external) {
|
|
916
|
-
return {};
|
|
917
|
-
}
|
|
918
|
-
const result = {};
|
|
919
|
-
if (properties) {
|
|
920
|
-
for (const propertyName of ( Object.keys(properties))) {
|
|
921
|
-
if (external[propertyName] !== undefined) {
|
|
922
|
-
result[propertyName] = deepClone(external[propertyName]);
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
if (isString(external.taskName)) {
|
|
927
|
-
result.name = external.taskName;
|
|
928
|
-
}
|
|
929
|
-
if (isString(external.label) && context.schemaVersion === JsonSchemaVersion$1.V2_0_0) {
|
|
930
|
-
result.name = external.label;
|
|
931
|
-
}
|
|
932
|
-
if (isString(external.identifier)) {
|
|
933
|
-
result.identifier = external.identifier;
|
|
934
|
-
}
|
|
935
|
-
result.icon = external.icon;
|
|
936
|
-
result.hide = external.hide;
|
|
937
|
-
result.inSessions = external.inSessions;
|
|
938
|
-
if (external.isBackground !== undefined) {
|
|
939
|
-
result.isBackground = !!external.isBackground;
|
|
940
|
-
}
|
|
941
|
-
if (external.promptOnClose !== undefined) {
|
|
942
|
-
result.promptOnClose = !!external.promptOnClose;
|
|
943
|
-
}
|
|
944
|
-
result.group = GroupKind.from(external.group);
|
|
945
|
-
if (external.dependsOn !== undefined) {
|
|
946
|
-
if (Array.isArray(external.dependsOn)) {
|
|
947
|
-
result.dependsOn = external.dependsOn.reduce((dependencies, item) => {
|
|
948
|
-
const dependency = TaskDependency.from(item, context, source);
|
|
949
|
-
if (dependency) {
|
|
950
|
-
dependencies.push(dependency);
|
|
951
|
-
}
|
|
952
|
-
return dependencies;
|
|
953
|
-
}, []);
|
|
954
|
-
} else {
|
|
955
|
-
const dependsOnValue = TaskDependency.from(external.dependsOn, context, source);
|
|
956
|
-
result.dependsOn = dependsOnValue ? [dependsOnValue] : undefined;
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
result.dependsOrder = DependsOrder.from(external.dependsOrder);
|
|
960
|
-
if (includeCommandOptions && (external.presentation !== undefined || external.terminal !== undefined)) {
|
|
961
|
-
result.presentation = CommandConfiguration.PresentationOptions.from(external, context);
|
|
962
|
-
}
|
|
963
|
-
if (includeCommandOptions && (external.options !== undefined)) {
|
|
964
|
-
result.options = CommandOptions.from(external.options, context);
|
|
965
|
-
}
|
|
966
|
-
const configProblemMatcher = ProblemMatcherConverter.fromWithOsConfig(external, context);
|
|
967
|
-
if (configProblemMatcher.value !== undefined) {
|
|
968
|
-
result.problemMatchers = configProblemMatcher.value;
|
|
969
|
-
}
|
|
970
|
-
if (external.detail) {
|
|
971
|
-
result.detail = external.detail;
|
|
972
|
-
}
|
|
973
|
-
return isEmpty(result) ? {} : {
|
|
974
|
-
value: result,
|
|
975
|
-
errors: configProblemMatcher.errors
|
|
976
|
-
};
|
|
977
|
-
}
|
|
978
|
-
ConfigurationProperties.from = from;
|
|
979
|
-
function isEmpty(value) {
|
|
980
|
-
return _isEmpty(value, properties);
|
|
981
|
-
}
|
|
982
|
-
ConfigurationProperties.isEmpty = isEmpty;
|
|
983
|
-
})(ConfigurationProperties || (ConfigurationProperties = {}));
|
|
984
|
-
const label = "Workspace";
|
|
985
|
-
var ConfiguringTask;
|
|
986
|
-
(function(ConfiguringTask) {
|
|
987
|
-
const grunt = "grunt.";
|
|
988
|
-
const jake = "jake.";
|
|
989
|
-
const gulp = "gulp.";
|
|
990
|
-
const npm = "vscode.npm.";
|
|
991
|
-
const typescript = "vscode.typescript.";
|
|
992
|
-
function from(external, context, index, source, registry) {
|
|
993
|
-
if (!external) {
|
|
994
|
-
return undefined;
|
|
995
|
-
}
|
|
996
|
-
const type = external.type;
|
|
997
|
-
const customize = external.customize;
|
|
998
|
-
if (!type && !customize) {
|
|
999
|
-
context.problemReporter.error(( localize(
|
|
1000
|
-
12984,
|
|
1001
|
-
"Error: tasks configuration must have a type property. The configuration will be ignored.\n{0}\n",
|
|
1002
|
-
JSON.stringify(external, null, 4)
|
|
1003
|
-
)));
|
|
1004
|
-
return undefined;
|
|
1005
|
-
}
|
|
1006
|
-
const typeDeclaration = type ? registry?.get?.(type) || TaskDefinitionRegistry.get(type) : undefined;
|
|
1007
|
-
if (!typeDeclaration) {
|
|
1008
|
-
const message = ( localize(
|
|
1009
|
-
12985,
|
|
1010
|
-
"Error: there is no registered task type '{0}'. Did you miss installing an extension that provides a corresponding task provider?",
|
|
1011
|
-
type
|
|
1012
|
-
));
|
|
1013
|
-
context.problemReporter.error(message);
|
|
1014
|
-
return undefined;
|
|
1015
|
-
}
|
|
1016
|
-
let identifier;
|
|
1017
|
-
if (isString(customize)) {
|
|
1018
|
-
if (customize.indexOf(grunt) === 0) {
|
|
1019
|
-
identifier = {
|
|
1020
|
-
type: "grunt",
|
|
1021
|
-
task: customize.substring(grunt.length)
|
|
1022
|
-
};
|
|
1023
|
-
} else if (customize.indexOf(jake) === 0) {
|
|
1024
|
-
identifier = {
|
|
1025
|
-
type: "jake",
|
|
1026
|
-
task: customize.substring(jake.length)
|
|
1027
|
-
};
|
|
1028
|
-
} else if (customize.indexOf(gulp) === 0) {
|
|
1029
|
-
identifier = {
|
|
1030
|
-
type: "gulp",
|
|
1031
|
-
task: customize.substring(gulp.length)
|
|
1032
|
-
};
|
|
1033
|
-
} else if (customize.indexOf(npm) === 0) {
|
|
1034
|
-
identifier = {
|
|
1035
|
-
type: "npm",
|
|
1036
|
-
script: customize.substring(npm.length + 4)
|
|
1037
|
-
};
|
|
1038
|
-
} else if (customize.indexOf(typescript) === 0) {
|
|
1039
|
-
identifier = {
|
|
1040
|
-
type: "typescript",
|
|
1041
|
-
tsconfig: customize.substring(typescript.length + 6)
|
|
1042
|
-
};
|
|
1043
|
-
}
|
|
1044
|
-
} else {
|
|
1045
|
-
if (isString(external.type)) {
|
|
1046
|
-
identifier = external;
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
if (identifier === undefined) {
|
|
1050
|
-
context.problemReporter.error(( localize(
|
|
1051
|
-
12986,
|
|
1052
|
-
"Error: the task configuration '{0}' is missing the required property 'type'. The task configuration will be ignored.",
|
|
1053
|
-
JSON.stringify(external, undefined, 0)
|
|
1054
|
-
)));
|
|
1055
|
-
return undefined;
|
|
1056
|
-
}
|
|
1057
|
-
const taskIdentifier = TaskDefinition.createTaskIdentifier(identifier, context.problemReporter);
|
|
1058
|
-
if (taskIdentifier === undefined) {
|
|
1059
|
-
context.problemReporter.error(( localize(
|
|
1060
|
-
12987,
|
|
1061
|
-
"Error: the task configuration '{0}' is using an unknown type. The task configuration will be ignored.",
|
|
1062
|
-
JSON.stringify(external, undefined, 0)
|
|
1063
|
-
)));
|
|
1064
|
-
return undefined;
|
|
1065
|
-
}
|
|
1066
|
-
const configElement = {
|
|
1067
|
-
workspaceFolder: context.workspaceFolder,
|
|
1068
|
-
file: ".vscode/tasks.json",
|
|
1069
|
-
index,
|
|
1070
|
-
element: external
|
|
1071
|
-
};
|
|
1072
|
-
let taskSource;
|
|
1073
|
-
switch (source) {
|
|
1074
|
-
case TaskConfigSource.User:
|
|
1075
|
-
{
|
|
1076
|
-
taskSource = {
|
|
1077
|
-
kind: TaskSourceKind.User,
|
|
1078
|
-
config: configElement,
|
|
1079
|
-
label
|
|
1080
|
-
};
|
|
1081
|
-
break;
|
|
1082
|
-
}
|
|
1083
|
-
case TaskConfigSource.WorkspaceFile:
|
|
1084
|
-
{
|
|
1085
|
-
taskSource = {
|
|
1086
|
-
kind: TaskSourceKind.WorkspaceFile,
|
|
1087
|
-
config: configElement,
|
|
1088
|
-
label
|
|
1089
|
-
};
|
|
1090
|
-
break;
|
|
1091
|
-
}
|
|
1092
|
-
default:
|
|
1093
|
-
{
|
|
1094
|
-
taskSource = {
|
|
1095
|
-
kind: TaskSourceKind.Workspace,
|
|
1096
|
-
config: configElement,
|
|
1097
|
-
label
|
|
1098
|
-
};
|
|
1099
|
-
break;
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
const result = new ConfiguringTask$1(
|
|
1103
|
-
`${typeDeclaration.extensionId}.${taskIdentifier._key}`,
|
|
1104
|
-
taskSource,
|
|
1105
|
-
undefined,
|
|
1106
|
-
type,
|
|
1107
|
-
taskIdentifier,
|
|
1108
|
-
RunOptions.fromConfiguration(external.runOptions),
|
|
1109
|
-
{
|
|
1110
|
-
hide: external.hide,
|
|
1111
|
-
inSessions: external.inSessions
|
|
1112
|
-
}
|
|
1113
|
-
);
|
|
1114
|
-
const configuration = ConfigurationProperties.from(external, context, true, source, typeDeclaration.properties);
|
|
1115
|
-
result.addTaskLoadMessages(configuration.errors);
|
|
1116
|
-
if (configuration.value) {
|
|
1117
|
-
result.configurationProperties = Object.assign(result.configurationProperties, configuration.value);
|
|
1118
|
-
if (result.configurationProperties.name) {
|
|
1119
|
-
result._label = result.configurationProperties.name;
|
|
1120
|
-
} else {
|
|
1121
|
-
let label = result.configures.type;
|
|
1122
|
-
if (typeDeclaration.required && typeDeclaration.required.length > 0) {
|
|
1123
|
-
for (const required of typeDeclaration.required) {
|
|
1124
|
-
const value = result.configures[required];
|
|
1125
|
-
if (value) {
|
|
1126
|
-
label = label + ": " + value;
|
|
1127
|
-
break;
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
}
|
|
1131
|
-
result._label = label;
|
|
1132
|
-
}
|
|
1133
|
-
if (!result.configurationProperties.identifier) {
|
|
1134
|
-
result.configurationProperties.identifier = taskIdentifier._key;
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
return result;
|
|
1138
|
-
}
|
|
1139
|
-
ConfiguringTask.from = from;
|
|
1140
|
-
})(ConfiguringTask || (ConfiguringTask = {}));
|
|
1141
|
-
var CustomTask;
|
|
1142
|
-
(function(CustomTask) {
|
|
1143
|
-
function from(external, context, index, source) {
|
|
1144
|
-
if (!external) {
|
|
1145
|
-
return undefined;
|
|
1146
|
-
}
|
|
1147
|
-
let type = external.type;
|
|
1148
|
-
if (type === undefined || type === null) {
|
|
1149
|
-
type = CUSTOMIZED_TASK_TYPE;
|
|
1150
|
-
}
|
|
1151
|
-
if (type !== CUSTOMIZED_TASK_TYPE && type !== "shell" && type !== "process") {
|
|
1152
|
-
context.problemReporter.error(( localize(
|
|
1153
|
-
12988,
|
|
1154
|
-
"Error: tasks is not declared as a custom task. The configuration will be ignored.\n{0}\n",
|
|
1155
|
-
JSON.stringify(external, null, 4)
|
|
1156
|
-
)));
|
|
1157
|
-
return undefined;
|
|
1158
|
-
}
|
|
1159
|
-
let taskName = external.taskName;
|
|
1160
|
-
if (isString(external.label) && context.schemaVersion === JsonSchemaVersion$1.V2_0_0) {
|
|
1161
|
-
taskName = external.label;
|
|
1162
|
-
}
|
|
1163
|
-
if (!taskName) {
|
|
1164
|
-
context.problemReporter.error(( localize(
|
|
1165
|
-
12989,
|
|
1166
|
-
"Error: a task must provide a label property. The task will be ignored.\n{0}\n",
|
|
1167
|
-
JSON.stringify(external, null, 4)
|
|
1168
|
-
)));
|
|
1169
|
-
return undefined;
|
|
1170
|
-
}
|
|
1171
|
-
let taskSource;
|
|
1172
|
-
switch (source) {
|
|
1173
|
-
case TaskConfigSource.User:
|
|
1174
|
-
{
|
|
1175
|
-
taskSource = {
|
|
1176
|
-
kind: TaskSourceKind.User,
|
|
1177
|
-
config: {
|
|
1178
|
-
index,
|
|
1179
|
-
element: external,
|
|
1180
|
-
file: ".vscode/tasks.json",
|
|
1181
|
-
workspaceFolder: context.workspaceFolder
|
|
1182
|
-
},
|
|
1183
|
-
label
|
|
1184
|
-
};
|
|
1185
|
-
break;
|
|
1186
|
-
}
|
|
1187
|
-
case TaskConfigSource.WorkspaceFile:
|
|
1188
|
-
{
|
|
1189
|
-
taskSource = {
|
|
1190
|
-
kind: TaskSourceKind.WorkspaceFile,
|
|
1191
|
-
config: {
|
|
1192
|
-
index,
|
|
1193
|
-
element: external,
|
|
1194
|
-
file: ".vscode/tasks.json",
|
|
1195
|
-
workspaceFolder: context.workspaceFolder,
|
|
1196
|
-
workspace: context.workspace
|
|
1197
|
-
},
|
|
1198
|
-
label
|
|
1199
|
-
};
|
|
1200
|
-
break;
|
|
1201
|
-
}
|
|
1202
|
-
default:
|
|
1203
|
-
{
|
|
1204
|
-
taskSource = {
|
|
1205
|
-
kind: TaskSourceKind.Workspace,
|
|
1206
|
-
config: {
|
|
1207
|
-
index,
|
|
1208
|
-
element: external,
|
|
1209
|
-
file: ".vscode/tasks.json",
|
|
1210
|
-
workspaceFolder: context.workspaceFolder
|
|
1211
|
-
},
|
|
1212
|
-
label
|
|
1213
|
-
};
|
|
1214
|
-
break;
|
|
1215
|
-
}
|
|
1216
|
-
}
|
|
1217
|
-
const result = new CustomTask$1(
|
|
1218
|
-
context.uuidMap.getUUID(taskName),
|
|
1219
|
-
taskSource,
|
|
1220
|
-
taskName,
|
|
1221
|
-
CUSTOMIZED_TASK_TYPE,
|
|
1222
|
-
undefined,
|
|
1223
|
-
false,
|
|
1224
|
-
RunOptions.fromConfiguration(external.runOptions),
|
|
1225
|
-
{
|
|
1226
|
-
name: taskName,
|
|
1227
|
-
identifier: taskName
|
|
1228
|
-
}
|
|
1229
|
-
);
|
|
1230
|
-
const configuration = ConfigurationProperties.from(external, context, false, source);
|
|
1231
|
-
result.addTaskLoadMessages(configuration.errors);
|
|
1232
|
-
if (configuration.value) {
|
|
1233
|
-
result.configurationProperties = Object.assign(result.configurationProperties, configuration.value);
|
|
1234
|
-
}
|
|
1235
|
-
{
|
|
1236
|
-
const legacy = external;
|
|
1237
|
-
if (result.configurationProperties.isBackground === undefined && legacy.isWatching !== undefined) {
|
|
1238
|
-
result.configurationProperties.isBackground = !!legacy.isWatching;
|
|
1239
|
-
}
|
|
1240
|
-
if (result.configurationProperties.group === undefined) {
|
|
1241
|
-
if (legacy.isBuildCommand === true) {
|
|
1242
|
-
result.configurationProperties.group = TaskGroup.Build;
|
|
1243
|
-
} else if (legacy.isTestCommand === true) {
|
|
1244
|
-
result.configurationProperties.group = TaskGroup.Test;
|
|
1245
|
-
}
|
|
1246
|
-
}
|
|
1247
|
-
}
|
|
1248
|
-
const command = CommandConfiguration.from(external, context);
|
|
1249
|
-
if (command) {
|
|
1250
|
-
result.command = command;
|
|
1251
|
-
}
|
|
1252
|
-
if (external.command !== undefined) {
|
|
1253
|
-
command.suppressTaskName = true;
|
|
1254
|
-
}
|
|
1255
|
-
return result;
|
|
1256
|
-
}
|
|
1257
|
-
CustomTask.from = from;
|
|
1258
|
-
function fillGlobals(task, globals) {
|
|
1259
|
-
if (CommandConfiguration.hasCommand(task.command) || task.configurationProperties.dependsOn === undefined) {
|
|
1260
|
-
task.command = CommandConfiguration.fillGlobals(task.command, globals.command, task.configurationProperties.name);
|
|
1261
|
-
}
|
|
1262
|
-
if (task.configurationProperties.problemMatchers === undefined && globals.problemMatcher !== undefined) {
|
|
1263
|
-
task.configurationProperties.problemMatchers = deepClone(globals.problemMatcher);
|
|
1264
|
-
task.hasDefinedMatchers = true;
|
|
1265
|
-
}
|
|
1266
|
-
if (task.configurationProperties.promptOnClose === undefined && task.configurationProperties.isBackground === undefined && globals.promptOnClose !== undefined) {
|
|
1267
|
-
task.configurationProperties.promptOnClose = globals.promptOnClose;
|
|
1268
|
-
}
|
|
1269
|
-
}
|
|
1270
|
-
CustomTask.fillGlobals = fillGlobals;
|
|
1271
|
-
function fillDefaults(task, context) {
|
|
1272
|
-
CommandConfiguration.fillDefaults(task.command, context);
|
|
1273
|
-
if (task.configurationProperties.promptOnClose === undefined) {
|
|
1274
|
-
task.configurationProperties.promptOnClose = task.configurationProperties.isBackground !== undefined ? !task.configurationProperties.isBackground : true;
|
|
1275
|
-
}
|
|
1276
|
-
if (task.configurationProperties.isBackground === undefined) {
|
|
1277
|
-
task.configurationProperties.isBackground = false;
|
|
1278
|
-
}
|
|
1279
|
-
if (task.configurationProperties.problemMatchers === undefined) {
|
|
1280
|
-
task.configurationProperties.problemMatchers = EMPTY_ARRAY;
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
CustomTask.fillDefaults = fillDefaults;
|
|
1284
|
-
function createCustomTask(contributedTask, configuredProps) {
|
|
1285
|
-
const result = new CustomTask$1(configuredProps._id, Object.assign({}, configuredProps._source, {
|
|
1286
|
-
customizes: contributedTask.defines
|
|
1287
|
-
}), configuredProps.configurationProperties.name || contributedTask._label, CUSTOMIZED_TASK_TYPE, contributedTask.command, false, contributedTask.runOptions, {
|
|
1288
|
-
name: configuredProps.configurationProperties.name || contributedTask.configurationProperties.name,
|
|
1289
|
-
identifier: configuredProps.configurationProperties.identifier || contributedTask.configurationProperties.identifier,
|
|
1290
|
-
icon: configuredProps.configurationProperties.icon,
|
|
1291
|
-
hide: configuredProps.configurationProperties.hide,
|
|
1292
|
-
inSessions: configuredProps.configurationProperties.inSessions
|
|
1293
|
-
});
|
|
1294
|
-
result.addTaskLoadMessages(configuredProps.taskLoadMessages);
|
|
1295
|
-
const resultConfigProps = result.configurationProperties;
|
|
1296
|
-
assignProperty(resultConfigProps, configuredProps.configurationProperties, "group");
|
|
1297
|
-
assignProperty(resultConfigProps, configuredProps.configurationProperties, "isBackground");
|
|
1298
|
-
assignProperty(resultConfigProps, configuredProps.configurationProperties, "dependsOn");
|
|
1299
|
-
assignProperty(
|
|
1300
|
-
resultConfigProps,
|
|
1301
|
-
configuredProps.configurationProperties,
|
|
1302
|
-
"problemMatchers"
|
|
1303
|
-
);
|
|
1304
|
-
assignProperty(
|
|
1305
|
-
resultConfigProps,
|
|
1306
|
-
configuredProps.configurationProperties,
|
|
1307
|
-
"promptOnClose"
|
|
1308
|
-
);
|
|
1309
|
-
assignProperty(resultConfigProps, configuredProps.configurationProperties, "detail");
|
|
1310
|
-
result.command.presentation = CommandConfiguration.PresentationOptions.assignProperties(
|
|
1311
|
-
result.command.presentation,
|
|
1312
|
-
configuredProps.configurationProperties.presentation
|
|
1313
|
-
);
|
|
1314
|
-
result.command.options = CommandOptions.assignProperties(result.command.options, configuredProps.configurationProperties.options);
|
|
1315
|
-
result.runOptions = RunOptions.assignProperties(result.runOptions, configuredProps.runOptions);
|
|
1316
|
-
const contributedConfigProps = contributedTask.configurationProperties;
|
|
1317
|
-
fillProperty(resultConfigProps, contributedConfigProps, "group");
|
|
1318
|
-
fillProperty(resultConfigProps, contributedConfigProps, "isBackground");
|
|
1319
|
-
fillProperty(resultConfigProps, contributedConfigProps, "dependsOn");
|
|
1320
|
-
fillProperty(resultConfigProps, contributedConfigProps, "problemMatchers");
|
|
1321
|
-
fillProperty(resultConfigProps, contributedConfigProps, "promptOnClose");
|
|
1322
|
-
fillProperty(resultConfigProps, contributedConfigProps, "detail");
|
|
1323
|
-
result.command.presentation = CommandConfiguration.PresentationOptions.fillProperties(result.command.presentation, contributedConfigProps.presentation);
|
|
1324
|
-
result.command.options = CommandOptions.fillProperties(result.command.options, contributedConfigProps.options);
|
|
1325
|
-
result.runOptions = RunOptions.fillProperties(result.runOptions, contributedTask.runOptions);
|
|
1326
|
-
if (contributedTask.hasDefinedMatchers === true) {
|
|
1327
|
-
result.hasDefinedMatchers = true;
|
|
1328
|
-
}
|
|
1329
|
-
return result;
|
|
1330
|
-
}
|
|
1331
|
-
CustomTask.createCustomTask = createCustomTask;
|
|
1332
|
-
})(CustomTask || (CustomTask = {}));
|
|
1333
|
-
var TaskParser;
|
|
1334
|
-
(function(TaskParser) {
|
|
1335
|
-
function isCustomTask(value) {
|
|
1336
|
-
const type = value.type;
|
|
1337
|
-
const customize = value.customize;
|
|
1338
|
-
return customize === undefined && (type === undefined || type === null || type === CUSTOMIZED_TASK_TYPE || type === "shell" || type === "process");
|
|
1339
|
-
}
|
|
1340
|
-
const builtinTypeContextMap = {
|
|
1341
|
-
shell: ShellExecutionSupportedContext,
|
|
1342
|
-
process: ProcessExecutionSupportedContext
|
|
1343
|
-
};
|
|
1344
|
-
function from(externals, globals, context, source, registry) {
|
|
1345
|
-
const result = {
|
|
1346
|
-
custom: [],
|
|
1347
|
-
configured: []
|
|
1348
|
-
};
|
|
1349
|
-
if (!externals) {
|
|
1350
|
-
return result;
|
|
1351
|
-
}
|
|
1352
|
-
const defaultBuildTask = {
|
|
1353
|
-
task: undefined,
|
|
1354
|
-
rank: -1
|
|
1355
|
-
};
|
|
1356
|
-
const defaultTestTask = {
|
|
1357
|
-
task: undefined,
|
|
1358
|
-
rank: -1
|
|
1359
|
-
};
|
|
1360
|
-
const schema2_0_0 = context.schemaVersion === JsonSchemaVersion$1.V2_0_0;
|
|
1361
|
-
const baseLoadIssues = deepClone(context.taskLoadIssues);
|
|
1362
|
-
for (let index = 0; index < externals.length; index++) {
|
|
1363
|
-
const external = externals[index];
|
|
1364
|
-
const definition = external.type ? registry?.get?.(external.type) || TaskDefinitionRegistry.get(external.type) : undefined;
|
|
1365
|
-
let typeNotSupported = false;
|
|
1366
|
-
if (definition && definition.when && !context.contextKeyService.contextMatchesRules(definition.when)) {
|
|
1367
|
-
typeNotSupported = true;
|
|
1368
|
-
} else if (!definition && external.type) {
|
|
1369
|
-
for (const key of ( Object.keys(builtinTypeContextMap))) {
|
|
1370
|
-
if (external.type === key) {
|
|
1371
|
-
typeNotSupported = !ShellExecutionSupportedContext.evaluate(context.contextKeyService.getContext(null));
|
|
1372
|
-
break;
|
|
1373
|
-
}
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
|
-
if (typeNotSupported) {
|
|
1377
|
-
context.problemReporter.info(( localize(
|
|
1378
|
-
12990,
|
|
1379
|
-
"Warning: {0} tasks are unavailable in the current environment.\n",
|
|
1380
|
-
external.type
|
|
1381
|
-
)));
|
|
1382
|
-
continue;
|
|
1383
|
-
}
|
|
1384
|
-
if (isCustomTask(external)) {
|
|
1385
|
-
const customTask = CustomTask.from(external, context, index, source);
|
|
1386
|
-
if (customTask) {
|
|
1387
|
-
CustomTask.fillGlobals(customTask, globals);
|
|
1388
|
-
CustomTask.fillDefaults(customTask, context);
|
|
1389
|
-
if (schema2_0_0) {
|
|
1390
|
-
if ((customTask.command === undefined || customTask.command.name === undefined) && (customTask.configurationProperties.dependsOn === undefined || customTask.configurationProperties.dependsOn.length === 0)) {
|
|
1391
|
-
context.problemReporter.error(( localize(
|
|
1392
|
-
12991,
|
|
1393
|
-
"Error: the task '{0}' neither specifies a command nor a dependsOn property. The task will be ignored. Its definition is:\n{1}",
|
|
1394
|
-
customTask.configurationProperties.name,
|
|
1395
|
-
JSON.stringify(external, undefined, 4)
|
|
1396
|
-
)));
|
|
1397
|
-
continue;
|
|
1398
|
-
}
|
|
1399
|
-
} else {
|
|
1400
|
-
if (customTask.command === undefined || customTask.command.name === undefined) {
|
|
1401
|
-
context.problemReporter.warn(( localize(
|
|
1402
|
-
12992,
|
|
1403
|
-
"Error: the task '{0}' doesn't define a command. The task will be ignored. Its definition is:\n{1}",
|
|
1404
|
-
customTask.configurationProperties.name,
|
|
1405
|
-
JSON.stringify(external, undefined, 4)
|
|
1406
|
-
)));
|
|
1407
|
-
continue;
|
|
1408
|
-
}
|
|
1409
|
-
}
|
|
1410
|
-
if (customTask.configurationProperties.group === TaskGroup.Build && defaultBuildTask.rank < 2) {
|
|
1411
|
-
defaultBuildTask.task = customTask;
|
|
1412
|
-
defaultBuildTask.rank = 2;
|
|
1413
|
-
} else if (customTask.configurationProperties.group === TaskGroup.Test && defaultTestTask.rank < 2) {
|
|
1414
|
-
defaultTestTask.task = customTask;
|
|
1415
|
-
defaultTestTask.rank = 2;
|
|
1416
|
-
} else if (customTask.configurationProperties.name === "build" && defaultBuildTask.rank < 1) {
|
|
1417
|
-
defaultBuildTask.task = customTask;
|
|
1418
|
-
defaultBuildTask.rank = 1;
|
|
1419
|
-
} else if (customTask.configurationProperties.name === "test" && defaultTestTask.rank < 1) {
|
|
1420
|
-
defaultTestTask.task = customTask;
|
|
1421
|
-
defaultTestTask.rank = 1;
|
|
1422
|
-
}
|
|
1423
|
-
customTask.addTaskLoadMessages(context.taskLoadIssues);
|
|
1424
|
-
result.custom.push(customTask);
|
|
1425
|
-
}
|
|
1426
|
-
} else {
|
|
1427
|
-
const configuredTask = ConfiguringTask.from(external, context, index, source, registry);
|
|
1428
|
-
if (configuredTask) {
|
|
1429
|
-
configuredTask.addTaskLoadMessages(context.taskLoadIssues);
|
|
1430
|
-
result.configured.push(configuredTask);
|
|
1431
|
-
}
|
|
1432
|
-
}
|
|
1433
|
-
context.taskLoadIssues = deepClone(baseLoadIssues);
|
|
1434
|
-
}
|
|
1435
|
-
const defaultBuildGroupName = isString(defaultBuildTask.task?.configurationProperties.group) ? defaultBuildTask.task?.configurationProperties.group : defaultBuildTask.task?.configurationProperties.group?._id;
|
|
1436
|
-
const defaultTestTaskGroupName = isString(defaultTestTask.task?.configurationProperties.group) ? defaultTestTask.task?.configurationProperties.group : defaultTestTask.task?.configurationProperties.group?._id;
|
|
1437
|
-
if ((defaultBuildGroupName !== TaskGroup.Build._id) && (defaultBuildTask.rank > -1) && (defaultBuildTask.rank < 2) && defaultBuildTask.task) {
|
|
1438
|
-
defaultBuildTask.task.configurationProperties.group = TaskGroup.Build;
|
|
1439
|
-
} else if ((defaultTestTaskGroupName !== TaskGroup.Test._id) && (defaultTestTask.rank > -1) && (defaultTestTask.rank < 2) && defaultTestTask.task) {
|
|
1440
|
-
defaultTestTask.task.configurationProperties.group = TaskGroup.Test;
|
|
1441
|
-
}
|
|
1442
|
-
return result;
|
|
1443
|
-
}
|
|
1444
|
-
TaskParser.from = from;
|
|
1445
|
-
function assignTasks(target, source) {
|
|
1446
|
-
if (source === undefined || source.length === 0) {
|
|
1447
|
-
return target;
|
|
1448
|
-
}
|
|
1449
|
-
if (target === undefined || target.length === 0) {
|
|
1450
|
-
return source;
|
|
1451
|
-
}
|
|
1452
|
-
if (source) {
|
|
1453
|
-
const map = Object.create(null);
|
|
1454
|
-
target.forEach(task => {
|
|
1455
|
-
map[task.configurationProperties.name] = task;
|
|
1456
|
-
});
|
|
1457
|
-
source.forEach(task => {
|
|
1458
|
-
map[task.configurationProperties.name] = task;
|
|
1459
|
-
});
|
|
1460
|
-
const newTarget = [];
|
|
1461
|
-
target.forEach(task => {
|
|
1462
|
-
newTarget.push(map[task.configurationProperties.name]);
|
|
1463
|
-
delete map[task.configurationProperties.name];
|
|
1464
|
-
});
|
|
1465
|
-
( Object.keys(map)).forEach(key => newTarget.push(map[key]));
|
|
1466
|
-
target = newTarget;
|
|
1467
|
-
}
|
|
1468
|
-
return target;
|
|
1469
|
-
}
|
|
1470
|
-
TaskParser.assignTasks = assignTasks;
|
|
1471
|
-
})(TaskParser || (TaskParser = {}));
|
|
1472
|
-
var Globals;
|
|
1473
|
-
(function(Globals) {
|
|
1474
|
-
function from(config, context) {
|
|
1475
|
-
let result = fromBase(config, context);
|
|
1476
|
-
let osGlobals = undefined;
|
|
1477
|
-
if (config.windows && context.platform === Platform.Windows) {
|
|
1478
|
-
osGlobals = fromBase(config.windows, context);
|
|
1479
|
-
} else if (config.osx && context.platform === Platform.Mac) {
|
|
1480
|
-
osGlobals = fromBase(config.osx, context);
|
|
1481
|
-
} else if (config.linux && context.platform === Platform.Linux) {
|
|
1482
|
-
osGlobals = fromBase(config.linux, context);
|
|
1483
|
-
}
|
|
1484
|
-
if (osGlobals) {
|
|
1485
|
-
result = Globals.assignProperties(result, osGlobals);
|
|
1486
|
-
}
|
|
1487
|
-
const command = CommandConfiguration.from(config, context);
|
|
1488
|
-
if (command) {
|
|
1489
|
-
result.command = command;
|
|
1490
|
-
}
|
|
1491
|
-
Globals.fillDefaults(result, context);
|
|
1492
|
-
Globals.freeze(result);
|
|
1493
|
-
return result;
|
|
1494
|
-
}
|
|
1495
|
-
Globals.from = from;
|
|
1496
|
-
function fromBase(config, context) {
|
|
1497
|
-
const result = {};
|
|
1498
|
-
if (config.suppressTaskName !== undefined) {
|
|
1499
|
-
result.suppressTaskName = !!config.suppressTaskName;
|
|
1500
|
-
}
|
|
1501
|
-
if (config.promptOnClose !== undefined) {
|
|
1502
|
-
result.promptOnClose = !!config.promptOnClose;
|
|
1503
|
-
}
|
|
1504
|
-
if (config.problemMatcher) {
|
|
1505
|
-
result.problemMatcher = ProblemMatcherConverter.from(config.problemMatcher, context).value;
|
|
1506
|
-
}
|
|
1507
|
-
return result;
|
|
1508
|
-
}
|
|
1509
|
-
Globals.fromBase = fromBase;
|
|
1510
|
-
function isEmpty(value) {
|
|
1511
|
-
return !value || value.command === undefined && value.promptOnClose === undefined && value.suppressTaskName === undefined;
|
|
1512
|
-
}
|
|
1513
|
-
Globals.isEmpty = isEmpty;
|
|
1514
|
-
function assignProperties(target, source) {
|
|
1515
|
-
if (isEmpty(source)) {
|
|
1516
|
-
return target;
|
|
1517
|
-
}
|
|
1518
|
-
if (isEmpty(target)) {
|
|
1519
|
-
return source;
|
|
1520
|
-
}
|
|
1521
|
-
assignProperty(target, source, "promptOnClose");
|
|
1522
|
-
assignProperty(target, source, "suppressTaskName");
|
|
1523
|
-
return target;
|
|
1524
|
-
}
|
|
1525
|
-
Globals.assignProperties = assignProperties;
|
|
1526
|
-
function fillDefaults(value, context) {
|
|
1527
|
-
if (!value) {
|
|
1528
|
-
return;
|
|
1529
|
-
}
|
|
1530
|
-
CommandConfiguration.fillDefaults(value.command, context);
|
|
1531
|
-
if (value.suppressTaskName === undefined) {
|
|
1532
|
-
value.suppressTaskName = (context.schemaVersion === JsonSchemaVersion$1.V2_0_0);
|
|
1533
|
-
}
|
|
1534
|
-
if (value.promptOnClose === undefined) {
|
|
1535
|
-
value.promptOnClose = true;
|
|
1536
|
-
}
|
|
1537
|
-
}
|
|
1538
|
-
Globals.fillDefaults = fillDefaults;
|
|
1539
|
-
function freeze(value) {
|
|
1540
|
-
if (value.command) {
|
|
1541
|
-
CommandConfiguration.freeze(value.command);
|
|
1542
|
-
}
|
|
1543
|
-
}
|
|
1544
|
-
Globals.freeze = freeze;
|
|
1545
|
-
})(Globals || (Globals = {}));
|
|
1546
|
-
var ExecutionEngine;
|
|
1547
|
-
(function(ExecutionEngine) {
|
|
1548
|
-
function from(config) {
|
|
1549
|
-
const runner = config.runner || config._runner;
|
|
1550
|
-
let result;
|
|
1551
|
-
if (runner) {
|
|
1552
|
-
switch (runner) {
|
|
1553
|
-
case "terminal":
|
|
1554
|
-
result = ExecutionEngine$1.Terminal;
|
|
1555
|
-
break;
|
|
1556
|
-
case "process":
|
|
1557
|
-
result = ExecutionEngine$1.Process;
|
|
1558
|
-
break;
|
|
1559
|
-
}
|
|
1560
|
-
}
|
|
1561
|
-
const schemaVersion = JsonSchemaVersion.from(config);
|
|
1562
|
-
if (schemaVersion === JsonSchemaVersion$1.V0_1_0) {
|
|
1563
|
-
return result || ExecutionEngine$1.Process;
|
|
1564
|
-
} else if (schemaVersion === JsonSchemaVersion$1.V2_0_0) {
|
|
1565
|
-
return ExecutionEngine$1.Terminal;
|
|
1566
|
-
} else {
|
|
1567
|
-
throw ( new Error("Shouldn't happen."));
|
|
1568
|
-
}
|
|
1569
|
-
}
|
|
1570
|
-
ExecutionEngine.from = from;
|
|
1571
|
-
})(ExecutionEngine || (ExecutionEngine = {}));
|
|
1572
|
-
var JsonSchemaVersion;
|
|
1573
|
-
(function(JsonSchemaVersion) {
|
|
1574
|
-
const _default = JsonSchemaVersion$1.V2_0_0;
|
|
1575
|
-
function from(config) {
|
|
1576
|
-
const version = config.version;
|
|
1577
|
-
if (!version) {
|
|
1578
|
-
return _default;
|
|
1579
|
-
}
|
|
1580
|
-
switch (version) {
|
|
1581
|
-
case "0.1.0":
|
|
1582
|
-
return JsonSchemaVersion$1.V0_1_0;
|
|
1583
|
-
case "2.0.0":
|
|
1584
|
-
return JsonSchemaVersion$1.V2_0_0;
|
|
1585
|
-
default:
|
|
1586
|
-
return _default;
|
|
1587
|
-
}
|
|
1588
|
-
}
|
|
1589
|
-
JsonSchemaVersion.from = from;
|
|
1590
|
-
})(JsonSchemaVersion || (JsonSchemaVersion = {}));
|
|
1591
|
-
class UUIDMap {
|
|
1592
|
-
constructor(other) {
|
|
1593
|
-
this.current = Object.create(null);
|
|
1594
|
-
if (other) {
|
|
1595
|
-
for (const key of ( Object.keys(other.current))) {
|
|
1596
|
-
const value = other.current[key];
|
|
1597
|
-
if (Array.isArray(value)) {
|
|
1598
|
-
this.current[key] = value.slice();
|
|
1599
|
-
} else {
|
|
1600
|
-
this.current[key] = value;
|
|
1601
|
-
}
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
start() {
|
|
1606
|
-
this.last = this.current;
|
|
1607
|
-
this.current = Object.create(null);
|
|
1608
|
-
}
|
|
1609
|
-
getUUID(identifier) {
|
|
1610
|
-
const lastValue = this.last ? this.last[identifier] : undefined;
|
|
1611
|
-
let result = undefined;
|
|
1612
|
-
if (lastValue !== undefined) {
|
|
1613
|
-
if (Array.isArray(lastValue)) {
|
|
1614
|
-
result = lastValue.shift();
|
|
1615
|
-
if (lastValue.length === 0) {
|
|
1616
|
-
delete this.last[identifier];
|
|
1617
|
-
}
|
|
1618
|
-
} else {
|
|
1619
|
-
result = lastValue;
|
|
1620
|
-
delete this.last[identifier];
|
|
1621
|
-
}
|
|
1622
|
-
}
|
|
1623
|
-
if (result === undefined) {
|
|
1624
|
-
result = generateUuid();
|
|
1625
|
-
}
|
|
1626
|
-
const currentValue = this.current[identifier];
|
|
1627
|
-
if (currentValue === undefined) {
|
|
1628
|
-
this.current[identifier] = result;
|
|
1629
|
-
} else {
|
|
1630
|
-
if (Array.isArray(currentValue)) {
|
|
1631
|
-
currentValue.push(result);
|
|
1632
|
-
} else {
|
|
1633
|
-
const arrayValue = [currentValue];
|
|
1634
|
-
arrayValue.push(result);
|
|
1635
|
-
this.current[identifier] = arrayValue;
|
|
1636
|
-
}
|
|
1637
|
-
}
|
|
1638
|
-
return result;
|
|
1639
|
-
}
|
|
1640
|
-
finish() {
|
|
1641
|
-
this.last = undefined;
|
|
1642
|
-
}
|
|
1643
|
-
}
|
|
1644
|
-
var TaskConfigSource;
|
|
1645
|
-
(function(TaskConfigSource) {
|
|
1646
|
-
TaskConfigSource[TaskConfigSource["TasksJson"] = 0] = "TasksJson";
|
|
1647
|
-
TaskConfigSource[TaskConfigSource["WorkspaceFile"] = 1] = "WorkspaceFile";
|
|
1648
|
-
TaskConfigSource[TaskConfigSource["User"] = 2] = "User";
|
|
1649
|
-
})(TaskConfigSource || (TaskConfigSource = {}));
|
|
1650
|
-
class ConfigurationParser {
|
|
1651
|
-
constructor(workspaceFolder, workspace, platform, problemReporter, uuidMap) {
|
|
1652
|
-
this.workspaceFolder = workspaceFolder;
|
|
1653
|
-
this.workspace = workspace;
|
|
1654
|
-
this.platform = platform;
|
|
1655
|
-
this.problemReporter = problemReporter;
|
|
1656
|
-
this.uuidMap = uuidMap;
|
|
1657
|
-
}
|
|
1658
|
-
run(fileConfig, source, contextKeyService) {
|
|
1659
|
-
const engine = ExecutionEngine.from(fileConfig);
|
|
1660
|
-
const schemaVersion = JsonSchemaVersion.from(fileConfig);
|
|
1661
|
-
const context = {
|
|
1662
|
-
workspaceFolder: this.workspaceFolder,
|
|
1663
|
-
workspace: this.workspace,
|
|
1664
|
-
problemReporter: this.problemReporter,
|
|
1665
|
-
uuidMap: this.uuidMap,
|
|
1666
|
-
namedProblemMatchers: {},
|
|
1667
|
-
engine,
|
|
1668
|
-
schemaVersion,
|
|
1669
|
-
platform: this.platform,
|
|
1670
|
-
taskLoadIssues: [],
|
|
1671
|
-
contextKeyService
|
|
1672
|
-
};
|
|
1673
|
-
const taskParseResult = this.createTaskRunnerConfiguration(fileConfig, context, source);
|
|
1674
|
-
return {
|
|
1675
|
-
validationStatus: this.problemReporter.status,
|
|
1676
|
-
custom: taskParseResult.custom,
|
|
1677
|
-
configured: taskParseResult.configured,
|
|
1678
|
-
engine
|
|
1679
|
-
};
|
|
1680
|
-
}
|
|
1681
|
-
createTaskRunnerConfiguration(fileConfig, context, source) {
|
|
1682
|
-
const globals = Globals.from(fileConfig, context);
|
|
1683
|
-
if (this.problemReporter.status.isFatal()) {
|
|
1684
|
-
return {
|
|
1685
|
-
custom: [],
|
|
1686
|
-
configured: []
|
|
1687
|
-
};
|
|
1688
|
-
}
|
|
1689
|
-
context.namedProblemMatchers = ProblemMatcherConverter.namedFrom(fileConfig.declares, context);
|
|
1690
|
-
let globalTasks = undefined;
|
|
1691
|
-
let externalGlobalTasks = undefined;
|
|
1692
|
-
if (fileConfig.windows && context.platform === Platform.Windows) {
|
|
1693
|
-
globalTasks = TaskParser.from(fileConfig.windows.tasks, globals, context, source).custom;
|
|
1694
|
-
externalGlobalTasks = fileConfig.windows.tasks;
|
|
1695
|
-
} else if (fileConfig.osx && context.platform === Platform.Mac) {
|
|
1696
|
-
globalTasks = TaskParser.from(fileConfig.osx.tasks, globals, context, source).custom;
|
|
1697
|
-
externalGlobalTasks = fileConfig.osx.tasks;
|
|
1698
|
-
} else if (fileConfig.linux && context.platform === Platform.Linux) {
|
|
1699
|
-
globalTasks = TaskParser.from(fileConfig.linux.tasks, globals, context, source).custom;
|
|
1700
|
-
externalGlobalTasks = fileConfig.linux.tasks;
|
|
1701
|
-
}
|
|
1702
|
-
if (context.schemaVersion === JsonSchemaVersion$1.V2_0_0 && globalTasks && globalTasks.length > 0 && externalGlobalTasks && externalGlobalTasks.length > 0) {
|
|
1703
|
-
const taskContent = [];
|
|
1704
|
-
for (const task of externalGlobalTasks) {
|
|
1705
|
-
taskContent.push(JSON.stringify(task, null, 4));
|
|
1706
|
-
}
|
|
1707
|
-
context.problemReporter.error(( localize(
|
|
1708
|
-
12993,
|
|
1709
|
-
"Task version 2.0.0 doesn't support global OS specific tasks. Convert them to a task with a OS specific command. Affected tasks are:\n{0}",
|
|
1710
|
-
taskContent.join("\n")
|
|
1711
|
-
)));
|
|
1712
|
-
}
|
|
1713
|
-
let result = {
|
|
1714
|
-
custom: [],
|
|
1715
|
-
configured: []
|
|
1716
|
-
};
|
|
1717
|
-
if (fileConfig.tasks) {
|
|
1718
|
-
result = TaskParser.from(fileConfig.tasks, globals, context, source);
|
|
1719
|
-
}
|
|
1720
|
-
if (globalTasks) {
|
|
1721
|
-
result.custom = TaskParser.assignTasks(result.custom, globalTasks);
|
|
1722
|
-
}
|
|
1723
|
-
if ((!result.custom || result.custom.length === 0) && (globals.command && globals.command.name)) {
|
|
1724
|
-
const matchers = ProblemMatcherConverter.from(fileConfig.problemMatcher, context).value ?? [];
|
|
1725
|
-
const isBackground = fileConfig.isBackground ? !!fileConfig.isBackground : fileConfig.isWatching ? !!fileConfig.isWatching : undefined;
|
|
1726
|
-
const name = CommandString$1.value(globals.command.name);
|
|
1727
|
-
const task = new CustomTask$1(context.uuidMap.getUUID(name), Object.assign({}, source, "workspace", {
|
|
1728
|
-
config: {
|
|
1729
|
-
index: -1,
|
|
1730
|
-
element: fileConfig,
|
|
1731
|
-
workspaceFolder: context.workspaceFolder
|
|
1732
|
-
}
|
|
1733
|
-
}), name, CUSTOMIZED_TASK_TYPE, {
|
|
1734
|
-
name: undefined,
|
|
1735
|
-
runtime: undefined,
|
|
1736
|
-
presentation: undefined,
|
|
1737
|
-
suppressTaskName: true
|
|
1738
|
-
}, false, {
|
|
1739
|
-
reevaluateOnRerun: true
|
|
1740
|
-
}, {
|
|
1741
|
-
name: name,
|
|
1742
|
-
identifier: name,
|
|
1743
|
-
group: TaskGroup.Build,
|
|
1744
|
-
isBackground: isBackground,
|
|
1745
|
-
problemMatchers: matchers
|
|
1746
|
-
});
|
|
1747
|
-
const taskGroupKind = GroupKind.from(fileConfig.group);
|
|
1748
|
-
if (taskGroupKind !== undefined) {
|
|
1749
|
-
task.configurationProperties.group = taskGroupKind;
|
|
1750
|
-
} else if (fileConfig.group === "none") {
|
|
1751
|
-
task.configurationProperties.group = undefined;
|
|
1752
|
-
}
|
|
1753
|
-
CustomTask.fillGlobals(task, globals);
|
|
1754
|
-
CustomTask.fillDefaults(task, context);
|
|
1755
|
-
result.custom = [task];
|
|
1756
|
-
}
|
|
1757
|
-
result.custom = result.custom || [];
|
|
1758
|
-
result.configured = result.configured || [];
|
|
1759
|
-
return result;
|
|
1760
|
-
}
|
|
1761
|
-
}
|
|
1762
|
-
const uuidMaps = ( new Map());
|
|
1763
|
-
const recentUuidMaps = ( new Map());
|
|
1764
|
-
function parse(
|
|
1765
|
-
workspaceFolder,
|
|
1766
|
-
workspace,
|
|
1767
|
-
platform,
|
|
1768
|
-
configuration,
|
|
1769
|
-
logger,
|
|
1770
|
-
source,
|
|
1771
|
-
contextKeyService,
|
|
1772
|
-
isRecents = false
|
|
1773
|
-
) {
|
|
1774
|
-
const recentOrOtherMaps = isRecents ? recentUuidMaps : uuidMaps;
|
|
1775
|
-
let selectedUuidMaps = recentOrOtherMaps.get(source);
|
|
1776
|
-
if (!selectedUuidMaps) {
|
|
1777
|
-
recentOrOtherMaps.set(source, ( new Map()));
|
|
1778
|
-
selectedUuidMaps = recentOrOtherMaps.get(source);
|
|
1779
|
-
}
|
|
1780
|
-
let uuidMap = selectedUuidMaps.get(( workspaceFolder.uri.toString()));
|
|
1781
|
-
if (!uuidMap) {
|
|
1782
|
-
uuidMap = ( new UUIDMap());
|
|
1783
|
-
selectedUuidMaps.set(( workspaceFolder.uri.toString()), uuidMap);
|
|
1784
|
-
}
|
|
1785
|
-
try {
|
|
1786
|
-
uuidMap.start();
|
|
1787
|
-
return ( new ConfigurationParser(workspaceFolder, workspace, platform, logger, uuidMap)).run(configuration, source, contextKeyService);
|
|
1788
|
-
} finally {
|
|
1789
|
-
uuidMap.finish();
|
|
1790
|
-
}
|
|
1791
|
-
}
|
|
1792
|
-
function createCustomTask(contributedTask, configuredProps) {
|
|
1793
|
-
return CustomTask.createCustomTask(contributedTask, configuredProps);
|
|
1794
|
-
}
|
|
1795
|
-
|
|
1796
|
-
export { CommandString, ExecutionEngine, GroupKind, ITaskIdentifier, InstancePolicy, JsonSchemaVersion, ProblemMatcherConverter, RunOnOptions, RunOptions, ShellQuoting, TaskConfigSource, TaskParser, UUIDMap, createCustomTask, parse };
|