@codingame/monaco-vscode-api 27.0.0 → 28.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (746) hide show
  1. package/missing-services.js +127 -7
  2. package/package.json +8 -8
  3. package/services.js +3 -3
  4. package/vscode/src/vs/base/browser/dom.js +2 -14
  5. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.css +1 -1
  6. package/vscode/src/vs/base/browser/ui/dialog/dialog.css +19 -2
  7. package/vscode/src/vs/base/browser/ui/dropdown/dropdown.css +5 -0
  8. package/vscode/src/vs/base/browser/ui/inputbox/inputBox.css +1 -0
  9. package/vscode/src/vs/base/browser/ui/menu/menu.js +9 -7
  10. package/vscode/src/vs/base/browser/ui/selectBox/selectBox.d.ts +1 -0
  11. package/vscode/src/vs/base/browser/ui/selectBox/selectBox.js +2 -1
  12. package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.css +39 -2
  13. package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +67 -34
  14. package/vscode/src/vs/base/browser/ui/selectBox/selectBoxNative.js +8 -3
  15. package/vscode/src/vs/base/browser/ui/splitview/paneview.js +1 -1
  16. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +1 -1
  17. package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +10 -10
  18. package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +1 -1
  19. package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +1 -1
  20. package/vscode/src/vs/base/common/actions.d.ts +4 -0
  21. package/vscode/src/vs/base/common/actions.js +15 -1
  22. package/vscode/src/vs/base/common/date.js +34 -34
  23. package/vscode/src/vs/base/common/errorMessage.js +6 -6
  24. package/vscode/src/vs/base/common/event.d.ts +3 -2
  25. package/vscode/src/vs/base/common/event.js +40 -1
  26. package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
  27. package/vscode/src/vs/base/common/keybindingLabels.js +20 -20
  28. package/vscode/src/vs/base/common/parsers.d.ts +32 -0
  29. package/vscode/src/vs/base/common/parsers.js +54 -0
  30. package/vscode/src/vs/base/common/yaml.js +12 -12
  31. package/vscode/src/vs/base/parts/ipc/common/ipc.js +2 -2
  32. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +1 -1
  33. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +21 -11
  34. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +1 -1
  35. package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.js +4 -4
  36. package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +1 -1
  37. package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
  38. package/vscode/src/vs/editor/browser/editorExtensions.js +9 -9
  39. package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +1 -1
  40. package/vscode/src/vs/editor/browser/services/inlineCompletionsService.js +4 -4
  41. package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.css +5 -1
  42. package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +1 -1
  43. package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +0 -3
  44. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
  45. package/vscode/src/vs/editor/browser/widget/codeEditor/editor.css +1 -0
  46. package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
  47. package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +12 -12
  48. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
  49. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +4 -4
  50. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
  51. package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
  52. package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +4 -4
  53. package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +1 -1
  54. package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
  55. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
  56. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +1 -1
  57. package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +50 -50
  58. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +5 -0
  59. package/vscode/src/vs/editor/common/config/editorOptions.js +381 -371
  60. package/vscode/src/vs/editor/common/core/editorColorRegistry.js +72 -72
  61. package/vscode/src/vs/editor/common/cursor/cursorMoveCommands.d.ts +7 -1
  62. package/vscode/src/vs/editor/common/cursor/cursorMoveCommands.js +93 -3
  63. package/vscode/src/vs/editor/common/editorContextKeys.js +49 -49
  64. package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
  65. package/vscode/src/vs/editor/common/languages.js +56 -56
  66. package/vscode/src/vs/editor/common/model/editStack.js +1 -1
  67. package/vscode/src/vs/editor/common/standaloneStrings.js +50 -50
  68. package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
  69. package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
  70. package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
  71. package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
  72. package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
  73. package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
  74. package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
  75. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +18 -18
  76. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
  77. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
  78. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
  79. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
  80. package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
  81. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
  82. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
  83. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
  84. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
  85. package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
  86. package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
  87. package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
  88. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
  89. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
  90. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +5 -5
  91. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
  92. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.css +1 -1
  93. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
  94. package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
  95. package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
  96. package/vscode/src/vs/editor/contrib/find/browser/findDecorations.js +1 -1
  97. package/vscode/src/vs/editor/contrib/find/browser/findOptionsWidget.css +1 -1
  98. package/vscode/src/vs/editor/contrib/find/browser/findWidget.css +5 -7
  99. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +28 -28
  100. package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.css +39 -3
  101. package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.js +11 -7
  102. package/vscode/src/vs/editor/contrib/folding/browser/folding.js +20 -20
  103. package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
  104. package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
  105. package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
  106. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
  107. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +13 -13
  108. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +33 -33
  109. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  110. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
  111. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
  112. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
  113. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
  114. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
  115. package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
  116. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
  117. package/vscode/src/vs/editor/contrib/hover/browser/hover.css +6 -3
  118. package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
  119. package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.d.ts +1 -0
  120. package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +4 -3
  121. package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +22 -22
  122. package/vscode/src/vs/editor/contrib/hover/browser/hoverContribution.js +6 -0
  123. package/vscode/src/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
  124. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +27 -18
  125. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
  126. package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  127. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +18 -18
  128. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +5 -5
  129. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -21
  130. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +13 -13
  131. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
  132. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
  133. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +4 -4
  134. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +2 -2
  135. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
  136. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +1 -1
  137. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +2 -2
  138. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
  139. package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
  140. package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  141. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
  142. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
  143. package/vscode/src/vs/editor/contrib/links/browser/links.js +6 -6
  144. package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
  145. package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
  146. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.css +2 -0
  147. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  148. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
  149. package/vscode/src/vs/editor/contrib/peekView/browser/media/peekViewWidget.css +4 -0
  150. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +18 -18
  151. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  152. package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +1 -1
  153. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +11 -11
  154. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
  155. package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
  156. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
  157. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.css +1 -0
  158. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
  159. package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.d.ts +1 -0
  160. package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +42 -24
  161. package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
  162. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
  163. package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  164. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css +1 -1
  165. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  166. package/vscode/src/vs/editor/contrib/suggest/browser/media/suggest.css +3 -1
  167. package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +9 -9
  168. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
  169. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
  170. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
  171. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
  172. package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
  173. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  174. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  175. package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  176. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
  177. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
  178. package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  179. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  180. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
  181. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
  182. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +3 -0
  183. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
  184. package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
  185. package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +5 -0
  186. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +11 -8
  187. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +27 -2
  188. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +12 -12
  189. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +3 -3
  190. package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +11 -0
  191. package/vscode/src/vs/platform/actions/browser/toolbar.js +27 -21
  192. package/vscode/src/vs/platform/actions/common/actions.d.ts +2 -0
  193. package/vscode/src/vs/platform/actions/common/actions.js +6 -0
  194. package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
  195. package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
  196. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
  197. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  198. package/vscode/src/vs/platform/contextkey/common/contextkey.js +10 -10
  199. package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
  200. package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
  201. package/vscode/src/vs/platform/dialogs/common/dialogs.d.ts +11 -0
  202. package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
  203. package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
  204. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +14 -14
  205. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
  206. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
  207. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +21 -21
  208. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +1 -1
  209. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
  210. package/vscode/src/vs/platform/files/common/files.js +6 -6
  211. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  212. package/vscode/src/vs/platform/hover/browser/hover.css +1 -1
  213. package/vscode/src/vs/platform/hover/browser/hoverService.js +1 -0
  214. package/vscode/src/vs/platform/hover/browser/hoverWidget.js +1 -1
  215. package/vscode/src/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
  216. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
  217. package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +1 -1
  218. package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +3 -3
  219. package/vscode/src/vs/platform/list/browser/listService.js +25 -25
  220. package/vscode/src/vs/platform/log/common/log.js +6 -6
  221. package/vscode/src/vs/platform/markers/common/markerService.js +2 -2
  222. package/vscode/src/vs/platform/markers/common/markers.js +6 -6
  223. package/vscode/src/vs/platform/mcp/common/mcpManagement.d.ts +2 -1
  224. package/vscode/src/vs/platform/mcp/common/mcpManagementService.d.ts +2 -2
  225. package/vscode/src/vs/platform/mcp/common/mcpManagementService.js +4 -3
  226. package/vscode/src/vs/platform/mcp/common/mcpPlatformTypes.d.ts +0 -1
  227. package/vscode/src/vs/platform/mcp/common/mcpResourceScannerService.service.d.ts +1 -0
  228. package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.config.contribution.js +5 -5
  229. package/vscode/src/vs/platform/notification/common/notification.js +3 -3
  230. package/vscode/src/vs/platform/product/common/product.js +3 -3
  231. package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +8 -1
  232. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
  233. package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +5 -5
  234. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +7 -9
  235. package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +1 -1
  236. package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  237. package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +2 -2
  238. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
  239. package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.d.ts +1 -0
  240. package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +5 -1
  241. package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +5 -0
  242. package/vscode/src/vs/platform/request/common/request.js +19 -19
  243. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
  244. package/vscode/src/vs/platform/terminal/common/terminal.d.ts +1 -0
  245. package/vscode/src/vs/platform/terminal/common/terminal.js +1 -0
  246. package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +31 -31
  247. package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +1 -1
  248. package/vscode/src/vs/platform/theme/browser/defaultStyles.js +3 -3
  249. package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
  250. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +18 -18
  251. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
  252. package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -95
  253. package/vscode/src/vs/platform/theme/common/colors/inputColors.js +48 -48
  254. package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
  255. package/vscode/src/vs/platform/theme/common/colors/menuColors.js +8 -8
  256. package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
  257. package/vscode/src/vs/platform/theme/common/colors/miscColors.js +16 -16
  258. package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
  259. package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
  260. package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
  261. package/vscode/src/vs/platform/theme/common/sizes/baseSizes.js +11 -11
  262. package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
  263. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  264. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
  265. package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
  266. package/vscode/src/vs/platform/userDataSync/common/keybindingsSync.js +2 -2
  267. package/vscode/src/vs/platform/userDataSync/common/settingsSync.js +1 -1
  268. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
  269. package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +1 -1
  270. package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
  271. package/vscode/src/vs/platform/workspace/common/workspace.service.d.ts +4 -0
  272. package/vscode/src/vs/sessions/contrib/chat/browser/sessionTargetPicker.d.ts +9 -0
  273. package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +12 -12
  274. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +24 -0
  275. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +13 -1
  276. package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +5 -5
  277. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +16 -1
  278. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +36 -0
  279. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
  280. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +6 -3
  281. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
  282. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.d.ts +1 -1
  283. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +4 -3
  284. package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
  285. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
  286. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
  287. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
  288. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
  289. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +2 -3
  290. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
  291. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +2 -2
  292. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +6 -2
  293. package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +1 -1
  294. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
  295. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +11 -11
  296. package/vscode/src/vs/workbench/browser/actions/developerActions.js +32 -32
  297. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +130 -130
  298. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
  299. package/vscode/src/vs/workbench/browser/actions/windowActions.js +29 -29
  300. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
  301. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
  302. package/vscode/src/vs/workbench/browser/editor.js +2 -2
  303. package/vscode/src/vs/workbench/browser/labels.js +4 -4
  304. package/vscode/src/vs/workbench/browser/media/style.css +12 -0
  305. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +23 -23
  306. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css +9 -0
  307. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +26 -26
  308. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +4 -4
  309. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +1 -1
  310. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +9 -9
  311. package/vscode/src/vs/workbench/browser/parts/compositePart.js +3 -3
  312. package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.js +1 -1
  313. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +3 -3
  314. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
  315. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +3 -3
  316. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +37 -37
  317. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +12 -12
  318. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +3 -3
  319. package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +7 -7
  320. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +135 -135
  321. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +31 -27
  322. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +1 -1
  323. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +7 -7
  324. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +12 -12
  325. package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +2 -2
  326. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +7 -1
  327. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +1 -1
  328. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +10 -10
  329. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
  330. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +66 -66
  331. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
  332. package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css +4 -0
  333. package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css +46 -0
  334. package/vscode/src/vs/workbench/browser/parts/editor/media/modalEditorPart.css +1 -1
  335. package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css +8 -0
  336. package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.d.ts +2 -3
  337. package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.js +28 -30
  338. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +1 -1
  339. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
  340. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
  341. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
  342. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
  343. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +19 -19
  344. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsCenter.css +4 -2
  345. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsToasts.css +5 -5
  346. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +22 -22
  347. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
  348. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -19
  349. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +13 -13
  350. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
  351. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
  352. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -15
  353. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +4 -4
  354. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +4 -4
  355. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +3 -3
  356. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +27 -27
  357. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +3 -3
  358. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +2 -2
  359. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +1 -1
  360. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
  361. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +15 -15
  362. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
  363. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
  364. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -7
  365. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +4 -4
  366. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +5 -5
  367. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
  368. package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
  369. package/vscode/src/vs/workbench/browser/window.js +14 -14
  370. package/vscode/src/vs/workbench/browser/workbench.contribution.js +236 -236
  371. package/vscode/src/vs/workbench/common/configuration.js +9 -9
  372. package/vscode/src/vs/workbench/common/contextkeys.js +77 -77
  373. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
  374. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +4 -1
  375. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
  376. package/vscode/src/vs/workbench/common/editor.d.ts +6 -1
  377. package/vscode/src/vs/workbench/common/editor.js +5 -4
  378. package/vscode/src/vs/workbench/common/theme.d.ts +1 -0
  379. package/vscode/src/vs/workbench/common/theme.js +161 -160
  380. package/vscode/src/vs/workbench/common/views.js +4 -4
  381. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +154 -154
  382. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
  383. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.d.ts +1 -0
  384. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +88 -87
  385. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.d.ts +0 -5
  386. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +13 -16
  387. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.d.ts +3 -1
  388. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.js +17 -15
  389. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatScreenshotContext.js +1 -1
  390. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.d.ts +15 -0
  391. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +76 -0
  392. package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +6 -0
  393. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +7 -7
  394. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.service.d.ts +18 -0
  395. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.d.ts +3 -1
  396. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.js +24 -12
  397. package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.d.ts +4 -1
  398. package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.js +95 -77
  399. package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.service.d.ts +31 -0
  400. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.d.ts +9 -1
  401. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.js +2 -2
  402. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.service.d.ts +20 -0
  403. package/vscode/src/vs/workbench/contrib/chat/common/chatModes.d.ts +2 -1
  404. package/vscode/src/vs/workbench/contrib/chat/common/chatModes.js +6 -5
  405. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.d.ts +1 -1
  406. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.service.d.ts +0 -1
  407. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +1 -1
  408. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +2 -2
  409. package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +19 -8
  410. package/vscode/src/vs/workbench/contrib/chat/common/constants.js +12 -9
  411. package/vscode/src/vs/workbench/contrib/chat/common/editing/chatEditingService.js +2 -2
  412. package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +3 -3
  413. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +3 -3
  414. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +22 -22
  415. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.service.d.ts +1 -1
  416. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.d.ts +10 -1
  417. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.js +16 -6
  418. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatQuestionCarouselData.d.ts +2 -0
  419. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +2 -2
  420. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.d.ts +10 -3
  421. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.service.d.ts +2 -2
  422. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.service.d.ts +36 -1
  423. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service.d.ts +1 -5
  424. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service.d.ts +12 -2
  425. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginSource.d.ts +53 -0
  426. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +4 -4
  427. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.d.ts +4 -0
  428. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.js +1 -0
  429. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.d.ts +8 -0
  430. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.js +11 -3
  431. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.d.ts +54 -86
  432. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.js +156 -194
  433. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookTypes.d.ts +34 -0
  434. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookTypes.js +94 -0
  435. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptFileAttributes.d.ts +67 -0
  436. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptFileAttributes.js +565 -0
  437. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.d.ts +8 -9
  438. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.js +54 -14
  439. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.d.ts +6 -0
  440. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.js +8 -1
  441. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +8 -10
  442. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +1 -8
  443. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +8 -0
  444. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptsServiceUtils.d.ts +7 -0
  445. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptsServiceUtils.js +12 -1
  446. package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.d.ts +3 -0
  447. package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.js +12 -2
  448. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.d.ts +10 -0
  449. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.js +75 -9
  450. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +9 -9
  451. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/resolveDebugEventDetailsTool.d.ts +11 -0
  452. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/resolveDebugEventDetailsTool.js +205 -0
  453. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.d.ts +3 -1
  454. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +23 -5
  455. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/taskCompleteTool.d.ts +12 -0
  456. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/taskCompleteTool.js +53 -0
  457. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.js +9 -0
  458. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsConfirmationService.d.ts +1 -1
  459. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsConfirmationService.service.d.ts +9 -0
  460. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +22 -22
  461. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.js +3 -3
  462. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.service.d.ts +15 -0
  463. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.service.js +6 -0
  464. package/vscode/src/vs/workbench/contrib/chat/common/widget/input/modelPickerWidget.js +1 -1
  465. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +11 -11
  466. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.css +1 -1
  467. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
  468. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
  469. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
  470. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css +1 -1
  471. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -10
  472. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
  473. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
  474. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
  475. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
  476. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  477. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +3 -3
  478. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  479. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
  480. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
  481. package/vscode/src/vs/workbench/contrib/codeEditor/common/languageConfigurationExtensionPoint.js +65 -65
  482. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +7 -7
  483. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +7 -7
  484. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +2 -2
  485. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +3 -3
  486. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +3 -3
  487. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +3 -3
  488. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +3 -3
  489. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +3 -3
  490. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  491. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +7 -7
  492. package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
  493. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
  494. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +14 -14
  495. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +16 -16
  496. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +7 -7
  497. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +12 -12
  498. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
  499. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +1 -1
  500. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
  501. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
  502. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +75 -75
  503. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
  504. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +11 -7
  505. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
  506. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +38 -38
  507. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +2 -2
  508. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +3 -3
  509. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
  510. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
  511. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +4 -4
  512. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +2 -2
  513. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +18 -18
  514. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +5 -5
  515. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +9 -9
  516. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
  517. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
  518. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
  519. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
  520. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
  521. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
  522. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
  523. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
  524. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
  525. package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.js +18 -18
  526. package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.js +1 -1
  527. package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.js +1 -1
  528. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +41 -41
  529. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.js +1 -1
  530. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.js +15 -15
  531. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.js +14 -14
  532. package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +148 -148
  533. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +170 -170
  534. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.js +1 -1
  535. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +1 -1
  536. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.js +5 -5
  537. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +25 -25
  538. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.js +4 -4
  539. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.js +7 -7
  540. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +47 -47
  541. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +5 -5
  542. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +30 -30
  543. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +76 -76
  544. package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +2 -2
  545. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionsViewlet.css +5 -0
  546. package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.js +1 -1
  547. package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +2 -2
  548. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
  549. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
  550. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
  551. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
  552. package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.js +2 -2
  553. package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +3 -3
  554. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -4
  555. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +3 -3
  556. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
  557. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
  558. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
  559. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
  560. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +39 -39
  561. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
  562. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands._save.js +4 -4
  563. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +2 -2
  564. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  565. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +27 -27
  566. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +50 -50
  567. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
  568. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
  569. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +4 -4
  570. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +7 -7
  571. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +17 -17
  572. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
  573. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
  574. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
  575. package/vscode/src/vs/workbench/contrib/files/common/files.js +16 -16
  576. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
  577. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
  578. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
  579. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  580. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
  581. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  582. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  583. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommandsAddConfiguration.js +66 -66
  584. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerActions.js +32 -32
  585. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditor.js +34 -34
  586. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditorInput.js +2 -2
  587. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerIcons.js +5 -5
  588. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerWidgets.js +5 -5
  589. package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfiguration.js +40 -40
  590. package/vscode/src/vs/workbench/contrib/mcp/common/mcpSandboxService.service.d.ts +6 -1
  591. package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.d.ts +14 -2
  592. package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.js +150 -15
  593. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +12 -3
  594. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +12 -12
  595. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +4 -4
  596. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +23 -23
  597. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +2 -2
  598. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +8 -8
  599. package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnection.contribution.js +8 -8
  600. package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnectionStatus.js +4 -4
  601. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +1 -1
  602. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +3 -3
  603. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
  604. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css +1 -1
  605. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +17 -17
  606. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
  607. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +6 -6
  608. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
  609. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
  610. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
  611. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +3 -3
  612. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
  613. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
  614. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
  615. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
  616. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebook.css +13 -1
  617. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
  618. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +7 -7
  619. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
  620. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +29 -29
  621. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +5 -5
  622. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +7 -7
  623. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
  624. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +4 -4
  625. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
  626. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
  627. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
  628. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
  629. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
  630. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
  631. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +14 -14
  632. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
  633. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +1 -1
  634. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
  635. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +4 -5
  636. package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindings.css +3 -0
  637. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +13 -13
  638. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +11 -11
  639. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +60 -60
  640. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +3 -3
  641. package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
  642. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +15 -15
  643. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
  644. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +59 -59
  645. package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +11 -11
  646. package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryChatContext.js +6 -6
  647. package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.js +14 -14
  648. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +9 -9
  649. package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +3 -3
  650. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +1 -1
  651. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +12 -12
  652. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +9 -9
  653. package/vscode/src/vs/workbench/contrib/search/browser/searchChatContext.js +5 -5
  654. package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +1 -1
  655. package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
  656. package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +2 -2
  657. package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +14 -14
  658. package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +55 -55
  659. package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +11 -11
  660. package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
  661. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +4 -4
  662. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +5 -5
  663. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  664. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  665. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  666. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
  667. package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
  668. package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.d.ts +433 -0
  669. package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.js +1637 -0
  670. package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.d.ts +514 -0
  671. package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +1796 -0
  672. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
  673. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +6 -6
  674. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +1 -1
  675. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
  676. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +6 -0
  677. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +4 -4
  678. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +13 -13
  679. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.d.ts +2 -1
  680. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +195 -87
  681. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +15 -15
  682. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +10 -10
  683. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
  684. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +17 -17
  685. package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +26 -26
  686. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminalAccessibilityConfiguration.js +2 -2
  687. package/vscode/src/vs/workbench/contrib/terminalContrib/autoReplies/common/terminalAutoRepliesConfiguration.js +2 -2
  688. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.js +55 -55
  689. package/vscode/src/vs/workbench/contrib/terminalContrib/commandGuide/common/terminalCommandGuideConfiguration.js +1 -1
  690. package/vscode/src/vs/workbench/contrib/terminalContrib/history/common/terminal.history.js +1 -1
  691. package/vscode/src/vs/workbench/contrib/terminalContrib/inlineHint/common/terminalInitialHintConfiguration.js +1 -1
  692. package/vscode/src/vs/workbench/contrib/terminalContrib/notification/common/terminalNotificationConfiguration.js +1 -1
  693. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/common/terminalStickyScrollConfiguration.js +3 -3
  694. package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminalSuggestConfiguration.js +30 -30
  695. package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/common/terminalTypeAheadConfiguration.js +5 -5
  696. package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/common/terminal.zoom.js +2 -2
  697. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
  698. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
  699. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
  700. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
  701. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
  702. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindAccessibilityHelp.js +30 -30
  703. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
  704. package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
  705. package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.js +1 -1
  706. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +11 -11
  707. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
  708. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +14 -14
  709. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
  710. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
  711. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
  712. package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.js +1 -1
  713. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
  714. package/vscode/src/vs/workbench/services/environment/browser/environmentService.js +7 -0
  715. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionsIcons.js +3 -3
  716. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
  717. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +10 -10
  718. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +88 -88
  719. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
  720. package/vscode/src/vs/workbench/services/language/common/languageService.js +24 -24
  721. package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
  722. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
  723. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
  724. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +4 -4
  725. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
  726. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
  727. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
  728. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
  729. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
  730. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +18 -18
  731. package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
  732. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
  733. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +24 -24
  734. package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.d.ts +9 -9
  735. package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.js +10 -8
  736. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
  737. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
  738. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
  739. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +16 -16
  740. package/vscode-dts/vscode.proposed.chatHooks.d.ts +1 -1
  741. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +6 -0
  742. package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +8 -1
  743. package/vscode-dts/vscode.proposed.chatPromptFiles.d.ts +33 -0
  744. package/vscode-dts/vscode.proposed.chatProvider.d.ts +2 -1
  745. package/vscode-dts/vscode.proposed.languageModelToolSupportsModel.d.ts +1 -1
  746. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts.d.ts +0 -44
@@ -0,0 +1,1796 @@
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 };