@codingame/monaco-vscode-api 4.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (909) hide show
  1. package/README.md +2 -0
  2. package/l10n.d.ts +5 -2
  3. package/l10n.js +14 -2
  4. package/missing-services.js +6 -7
  5. package/override/vs/platform/userDataSync/common/extensionsSync.js +4 -0
  6. package/override/vs/platform/userDataSync/common/globalStateSync.js +5 -0
  7. package/package.json +8 -8
  8. package/services.d.ts +2 -0
  9. package/services.js +2 -0
  10. package/vscode/src/vs/base/browser/hash.js +15 -0
  11. package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.css.js +4 -0
  12. package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.js +246 -0
  13. package/vscode/src/vs/base/common/amd.js +101 -0
  14. package/vscode/src/vs/base/common/console.js +60 -0
  15. package/vscode/src/vs/base/common/objects.js +1 -1
  16. package/vscode/src/vs/base/common/paging.js +116 -0
  17. package/vscode/src/vs/base/common/parsers.js +43 -0
  18. package/vscode/src/vs/base/common/processes.js +25 -0
  19. package/vscode/src/vs/base/parts/request/browser/request.js +60 -0
  20. package/vscode/src/vs/editor/browser/coreCommands.js +1 -1
  21. package/vscode/src/vs/editor/common/services/modelUndoRedoParticipant.js +56 -0
  22. package/vscode/src/vs/editor/common/services/textResourceConfigurationService.js +116 -0
  23. package/vscode/src/vs/editor/contrib/quickAccess/browser/commandsQuickAccess.js +23 -0
  24. package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +71 -0
  25. package/vscode/src/vs/platform/download/common/downloadIpc.js +16 -0
  26. package/vscode/src/vs/platform/download/common/downloadService.js +31 -0
  27. package/vscode/src/vs/platform/extensionManagement/common/abstractExtensionManagementService.js +748 -0
  28. package/vscode/src/vs/platform/extensionManagement/common/extensionGalleryService.js +852 -0
  29. package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +495 -0
  30. package/vscode/src/vs/platform/extensionManagement/common/extensionManagementIpc.js +120 -0
  31. package/vscode/src/vs/platform/extensionManagement/common/extensionTipsService.js +65 -0
  32. package/vscode/src/vs/platform/extensionManagement/common/unsupportedExtensionsMigration.js +56 -0
  33. package/vscode/src/vs/platform/extensionResourceLoader/browser/extensionResourceLoaderService.js +42 -0
  34. package/vscode/src/vs/platform/externalServices/common/marketplace.js +15 -0
  35. package/vscode/src/vs/platform/externalTerminal/common/externalTerminal.js +3 -0
  36. package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.js +404 -0
  37. package/vscode/src/vs/platform/files/common/fileService.js +986 -0
  38. package/vscode/src/vs/platform/files/common/io.js +75 -0
  39. package/vscode/src/vs/platform/issue/common/issueReporterUtil.js +15 -0
  40. package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +48 -0
  41. package/vscode/src/vs/platform/keyboardLayout/common/keyboardMapper.js +23 -0
  42. package/vscode/src/vs/platform/languagePacks/common/languagePacks.d.ts +18 -0
  43. package/vscode/src/vs/platform/lifecycle/common/lifecycle.js +25 -0
  44. package/vscode/src/vs/platform/log/common/fileLog.js +105 -0
  45. package/vscode/src/vs/platform/log/common/logIpc.js +26 -0
  46. package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +355 -0
  47. package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +65 -0
  48. package/vscode/src/vs/platform/remote/browser/remoteAuthorityResolverService.js +108 -0
  49. package/vscode/src/vs/platform/remote/common/managedSocket.js +96 -0
  50. package/vscode/src/vs/platform/request/browser/requestService.js +28 -0
  51. package/vscode/src/vs/platform/request/common/requestIpc.js +18 -0
  52. package/vscode/src/vs/platform/telemetry/common/commonProperties.js +11 -0
  53. package/vscode/src/vs/platform/telemetry/common/telemetry.js +2 -1
  54. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +7 -3
  55. package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +22 -0
  56. package/vscode/src/vs/platform/terminal/common/environmentVariable.js +7 -0
  57. package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.js +196 -0
  58. package/vscode/src/vs/platform/terminal/common/terminalLogService.js +49 -0
  59. package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +518 -0
  60. package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +111 -0
  61. package/vscode/src/vs/platform/terminal/common/terminalRecorder.js +66 -0
  62. package/vscode/src/vs/platform/update/common/update.config.contribution.js +98 -0
  63. package/vscode/src/vs/platform/url/common/urlService.js +20 -0
  64. package/vscode/src/vs/platform/userDataProfile/browser/userDataProfile.js +93 -0
  65. package/vscode/src/vs/platform/userDataProfile/common/userDataProfileStorageService.js +8 -0
  66. package/vscode/src/vs/platform/userDataSync/common/extensionsSync.js +256 -0
  67. package/vscode/src/vs/platform/userDataSync/common/globalStateSync.js +120 -0
  68. package/vscode/src/vs/platform/userDataSync/common/keybindingsMerge.js +275 -0
  69. package/vscode/src/vs/platform/userDataSync/common/keybindingsSync.js +316 -0
  70. package/vscode/src/vs/platform/userDataSync/common/settingsSync.js +314 -0
  71. package/vscode/src/vs/platform/userDataSync/common/snippetsMerge.js +125 -0
  72. package/vscode/src/vs/platform/userDataSync/common/snippetsSync.js +474 -0
  73. package/vscode/src/vs/platform/userDataSync/common/tasksSync.js +242 -0
  74. package/vscode/src/vs/platform/userDataSync/common/userDataAutoSyncService.js +464 -0
  75. package/vscode/src/vs/platform/userDataSync/common/userDataProfilesManifestMerge.js +90 -0
  76. package/vscode/src/vs/platform/userDataSync/common/userDataProfilesManifestSync.js +257 -0
  77. package/vscode/src/vs/platform/userDataSync/common/userDataSyncEnablementService.js +75 -0
  78. package/vscode/src/vs/platform/userDataSync/common/userDataSyncLocalStoreService.js +148 -0
  79. package/vscode/src/vs/platform/userDataSync/common/userDataSyncLog.js +39 -0
  80. package/vscode/src/vs/platform/userDataSync/common/userDataSyncResourceProvider.js +447 -0
  81. package/vscode/src/vs/platform/userDataSync/common/userDataSyncService.js +781 -0
  82. package/vscode/src/vs/workbench/api/browser/extensionHost.contribution.js +103 -0
  83. package/vscode/src/vs/workbench/api/browser/mainThreadAiEmbeddingVector.js +29 -0
  84. package/vscode/src/vs/workbench/api/browser/mainThreadAiRelatedInformation.js +33 -0
  85. package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +252 -0
  86. package/vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.js +66 -0
  87. package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js +102 -0
  88. package/vscode/src/vs/workbench/api/browser/mainThreadChat.js +68 -0
  89. package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +205 -0
  90. package/vscode/src/vs/workbench/api/browser/mainThreadChatVariables.js +39 -0
  91. package/vscode/src/vs/workbench/api/browser/mainThreadClipboard.js +22 -0
  92. package/vscode/src/vs/workbench/api/browser/mainThreadCodeInsets.js +106 -0
  93. package/vscode/src/vs/workbench/api/browser/mainThreadCommands.js +96 -0
  94. package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +558 -0
  95. package/vscode/src/vs/workbench/api/browser/mainThreadConfiguration.js +78 -0
  96. package/vscode/src/vs/workbench/api/browser/mainThreadConsole.js +33 -0
  97. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +577 -0
  98. package/vscode/src/vs/workbench/api/browser/mainThreadDebugService.js +433 -0
  99. package/vscode/src/vs/workbench/api/browser/mainThreadDecorations.js +100 -0
  100. package/vscode/src/vs/workbench/api/browser/mainThreadDiagnostics.js +67 -0
  101. package/vscode/src/vs/workbench/api/browser/mainThreadDialogs.js +66 -0
  102. package/vscode/src/vs/workbench/api/browser/mainThreadDocumentContentProviders.js +77 -0
  103. package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +251 -0
  104. package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +368 -0
  105. package/vscode/src/vs/workbench/api/browser/mainThreadDownloadService.js +20 -0
  106. package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +39 -0
  107. package/vscode/src/vs/workbench/api/browser/mainThreadEditor.js +412 -0
  108. package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +499 -0
  109. package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +225 -0
  110. package/vscode/src/vs/workbench/api/browser/mainThreadErrors.js +22 -0
  111. package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +315 -0
  112. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.js +206 -0
  113. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +367 -0
  114. package/vscode/src/vs/workbench/api/browser/mainThreadInlineChat.js +70 -0
  115. package/vscode/src/vs/workbench/api/browser/mainThreadInteractive.js +26 -0
  116. package/vscode/src/vs/workbench/api/browser/mainThreadIssueReporter.js +48 -0
  117. package/vscode/src/vs/workbench/api/browser/mainThreadLabelService.js +25 -0
  118. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +1014 -0
  119. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +183 -0
  120. package/vscode/src/vs/workbench/api/browser/mainThreadLanguages.js +76 -0
  121. package/vscode/src/vs/workbench/api/browser/mainThreadLocalization.js +33 -0
  122. package/vscode/src/vs/workbench/api/browser/mainThreadLogService.js +76 -0
  123. package/vscode/src/vs/workbench/api/browser/mainThreadManagedSockets.js +91 -0
  124. package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +135 -0
  125. package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +192 -0
  126. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.js +121 -0
  127. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +186 -0
  128. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDto.js +127 -0
  129. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +129 -0
  130. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +372 -0
  131. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.js +23 -0
  132. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +46 -0
  133. package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.js +74 -0
  134. package/vscode/src/vs/workbench/api/browser/mainThreadProfileContentHandlers.js +36 -0
  135. package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +66 -0
  136. package/vscode/src/vs/workbench/api/browser/mainThreadQuickDiff.js +40 -0
  137. package/vscode/src/vs/workbench/api/browser/mainThreadQuickOpen.js +183 -0
  138. package/vscode/src/vs/workbench/api/browser/mainThreadRemoteConnectionData.js +28 -0
  139. package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +491 -0
  140. package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +47 -0
  141. package/vscode/src/vs/workbench/api/browser/mainThreadSearch.js +166 -0
  142. package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.js +68 -0
  143. package/vscode/src/vs/workbench/api/browser/mainThreadShare.js +48 -0
  144. package/vscode/src/vs/workbench/api/browser/mainThreadSpeech.js +97 -0
  145. package/vscode/src/vs/workbench/api/browser/mainThreadStatusBar.js +51 -0
  146. package/vscode/src/vs/workbench/api/browser/mainThreadStorage.js +70 -0
  147. package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +729 -0
  148. package/vscode/src/vs/workbench/api/browser/mainThreadTelemetry.js +51 -0
  149. package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.js +407 -0
  150. package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.js +49 -0
  151. package/vscode/src/vs/workbench/api/browser/mainThreadTesting.js +217 -0
  152. package/vscode/src/vs/workbench/api/browser/mainThreadTheming.js +22 -0
  153. package/vscode/src/vs/workbench/api/browser/mainThreadTimeline.js +53 -0
  154. package/vscode/src/vs/workbench/api/browser/mainThreadTreeViews.js +310 -0
  155. package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +221 -0
  156. package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +108 -0
  157. package/vscode/src/vs/workbench/api/browser/mainThreadUrls.js +59 -0
  158. package/vscode/src/vs/workbench/api/browser/mainThreadWebviewManager.js +27 -0
  159. package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.js +281 -0
  160. package/vscode/src/vs/workbench/api/browser/mainThreadWebviewViews.js +98 -0
  161. package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +133 -0
  162. package/vscode/src/vs/workbench/api/browser/mainThreadWindow.js +55 -0
  163. package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +266 -0
  164. package/vscode/src/vs/workbench/api/common/configurationExtensionPoint.js +594 -0
  165. package/vscode/src/vs/workbench/api/common/shared/dataTransferCache.js +33 -0
  166. package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +227 -0
  167. package/vscode/src/vs/workbench/browser/layout.js +2059 -0
  168. package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.js +233 -0
  169. package/vscode/src/vs/workbench/browser/parts/banner/media/bannerpart.css.js +4 -0
  170. package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.web.contribution.js +74 -0
  171. package/vscode/src/vs/workbench/browser/parts/dialogs/dialogHandler.js +132 -0
  172. package/vscode/src/vs/workbench/browser/parts/statusbar/media/statusbarpart.css.js +4 -0
  173. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarActions.js +119 -0
  174. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarItem.js +250 -0
  175. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarModel.js +249 -0
  176. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.js +610 -0
  177. package/vscode/src/vs/workbench/browser/parts/titlebar/commandCenterControl.js +220 -0
  178. package/vscode/src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css.js +4 -0
  179. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +259 -0
  180. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.js +582 -0
  181. package/vscode/src/vs/workbench/common/dialogs.js +36 -0
  182. package/vscode/src/vs/workbench/common/editor.js +5 -1
  183. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibility.contribution.js +23 -0
  184. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityStatus.js +112 -0
  185. package/vscode/src/vs/workbench/contrib/accessibility/browser/openDiffEditorAnnouncement.js +50 -0
  186. package/vscode/src/vs/workbench/contrib/accessibility/browser/saveAccessibilitySignal.js +18 -0
  187. package/vscode/src/vs/workbench/contrib/accessibility/browser/unfocusedViewDimmingContribution.js +66 -0
  188. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +358 -0
  189. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkFileEdits.js +362 -0
  190. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.js +265 -0
  191. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/conflicts.js +78 -0
  192. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEdit.contribution.js +364 -0
  193. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEdit.css.js +4 -0
  194. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPane.js +340 -0
  195. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPreview.js +361 -0
  196. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditTree.js +655 -0
  197. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +15 -0
  198. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +113 -0
  199. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +501 -0
  200. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +80 -0
  201. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +75 -0
  202. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +108 -0
  203. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +169 -0
  204. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +269 -0
  205. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +316 -0
  206. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +58 -0
  207. package/vscode/src/vs/workbench/contrib/chat/browser/chatContributionServiceImpl.js +421 -0
  208. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +96 -0
  209. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +283 -0
  210. package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +88 -0
  211. package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +183 -0
  212. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatHistoryVariables.js +25 -0
  213. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +617 -0
  214. package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +2 -1
  215. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +598 -0
  216. package/vscode/src/vs/workbench/contrib/chat/common/voiceChat.js +139 -0
  217. package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.css.js +4 -0
  218. package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.js +39 -0
  219. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.css.js +4 -0
  220. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +389 -0
  221. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline.js +370 -0
  222. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.css.js +4 -0
  223. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +290 -0
  224. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +86 -0
  225. package/vscode/src/vs/workbench/contrib/commands/common/commands.contribution.js +145 -0
  226. package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +231 -0
  227. package/vscode/src/vs/workbench/contrib/comments/browser/commentsEditorContribution.js +282 -0
  228. package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +74 -0
  229. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +1024 -0
  230. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +1003 -0
  231. package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +345 -0
  232. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +335 -0
  233. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +430 -0
  234. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +1037 -0
  235. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +647 -0
  236. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +62 -0
  237. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +634 -0
  238. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +738 -0
  239. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +406 -0
  240. package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +204 -0
  241. package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +78 -0
  242. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +167 -0
  243. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +1269 -0
  244. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +1328 -0
  245. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +113 -0
  246. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +75 -0
  247. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +305 -0
  248. package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +29 -0
  249. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +385 -0
  250. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +265 -0
  251. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +815 -0
  252. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +129 -0
  253. package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +140 -0
  254. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +260 -0
  255. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +667 -0
  256. package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +4 -0
  257. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +4 -0
  258. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +4 -0
  259. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +4 -0
  260. package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +4 -0
  261. package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +4 -0
  262. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +707 -0
  263. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +1000 -0
  264. package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +46 -0
  265. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +350 -0
  266. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +127 -0
  267. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +732 -0
  268. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +499 -0
  269. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +160 -0
  270. package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +19 -0
  271. package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +15 -0
  272. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +108 -0
  273. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +60 -0
  274. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +458 -0
  275. package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +164 -0
  276. package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +34 -0
  277. package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +148 -0
  278. package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +287 -0
  279. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +85 -0
  280. package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessions.contribution.js +1197 -0
  281. package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsFileSystemProvider.js +55 -0
  282. package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsStorageService.js +455 -0
  283. package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsViews.js +337 -0
  284. package/vscode/src/vs/workbench/contrib/editSessions/common/editSessionsLogService.js +39 -0
  285. package/vscode/src/vs/workbench/contrib/editSessions/common/editSessionsStorageClient.js +4 -0
  286. package/vscode/src/vs/workbench/contrib/editSessions/common/workspaceStateSync.js +140 -0
  287. package/vscode/src/vs/workbench/contrib/emmet/browser/actions/expandAbbreviation.js +41 -0
  288. package/vscode/src/vs/workbench/contrib/emmet/browser/emmetActions.js +88 -0
  289. package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.js +539 -0
  290. package/vscode/src/vs/workbench/contrib/extensions/browser/browserRuntimeExtensionsEditor.js +26 -0
  291. package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.js +76 -0
  292. package/vscode/src/vs/workbench/contrib/extensions/browser/deprecatedExtensionsChecker.js +88 -0
  293. package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.js +58 -0
  294. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +1171 -0
  295. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.js +50 -0
  296. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.js +543 -0
  297. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.js +464 -0
  298. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendations.js +15 -0
  299. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationsService.js +233 -0
  300. package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +2182 -0
  301. package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.web.contribution.js +12 -0
  302. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.js +44 -0
  303. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +63 -0
  304. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.js +96 -0
  305. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsList.js +219 -0
  306. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.js +119 -0
  307. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.js +293 -0
  308. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +934 -0
  309. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +1349 -0
  310. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +858 -0
  311. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +2349 -0
  312. package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +328 -0
  313. package/vscode/src/vs/workbench/contrib/extensions/browser/keymapRecommendations.js +26 -0
  314. package/vscode/src/vs/workbench/contrib/extensions/browser/languageRecommendations.js +26 -0
  315. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extension.css.js +4 -0
  316. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionEditor.css.js +4 -0
  317. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionsViewlet.css.js +4 -0
  318. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionsWidgets.css.js +4 -0
  319. package/vscode/src/vs/workbench/contrib/extensions/browser/media/runtimeExtensionsEditor.css.js +4 -0
  320. package/vscode/src/vs/workbench/contrib/extensions/browser/remoteRecommendations.js +27 -0
  321. package/vscode/src/vs/workbench/contrib/extensions/browser/unsupportedExtensionsMigrationContribution.js +24 -0
  322. package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.js +36 -0
  323. package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +160 -0
  324. package/vscode/src/vs/workbench/contrib/extensions/common/extensionQuery.js +56 -0
  325. package/vscode/src/vs/workbench/contrib/extensions/common/reportExtensionIssueAction.js +29 -0
  326. package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.js +49 -0
  327. package/vscode/src/vs/workbench/contrib/externalTerminal/browser/externalTerminal.contribution.js +152 -0
  328. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/contributedOpeners.js +81 -0
  329. package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +430 -0
  330. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +786 -0
  331. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +510 -0
  332. package/vscode/src/vs/workbench/contrib/files/browser/files.explorer.contribution.js +460 -0
  333. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +39 -0
  334. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +39 -0
  335. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +70 -0
  336. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.js +234 -0
  337. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChatServiceImpl.js +31 -0
  338. package/vscode/src/vs/workbench/contrib/interactive/browser/interactive.contribution.js +737 -0
  339. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.js +6 -0
  340. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditor.css.js +4 -0
  341. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditor.js +600 -0
  342. package/vscode/src/vs/workbench/contrib/interactive/browser/media/interactive.css.js +4 -0
  343. package/vscode/src/vs/workbench/contrib/issue/browser/issue.contribution.js +27 -0
  344. package/vscode/src/vs/workbench/contrib/issue/common/issue.contribution.js +102 -0
  345. package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +28 -0
  346. package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +156 -0
  347. package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistory.contribution.js +4 -0
  348. package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistory.js +35 -0
  349. package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryCommands.js +635 -0
  350. package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryFileSystemProvider.js +87 -0
  351. package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryTimeline.js +136 -0
  352. package/vscode/src/vs/workbench/contrib/logs/common/logs.contribution.js +225 -0
  353. package/vscode/src/vs/workbench/contrib/logs/common/logsActions.js +12 -6
  354. package/vscode/src/vs/workbench/contrib/markdown/browser/markdownSettingRenderer.js +307 -0
  355. package/vscode/src/vs/workbench/contrib/markers/browser/markers.contribution.js +759 -0
  356. package/vscode/src/vs/workbench/contrib/markers/browser/markersFileDecorations.js +127 -0
  357. package/vscode/src/vs/workbench/contrib/markers/browser/markersFilterOptions.js +75 -0
  358. package/vscode/src/vs/workbench/contrib/markers/browser/markersModel.js +200 -0
  359. package/vscode/src/vs/workbench/contrib/markers/browser/markersTable.js +475 -0
  360. package/vscode/src/vs/workbench/contrib/markers/browser/markersTreeViewer.js +691 -0
  361. package/vscode/src/vs/workbench/contrib/markers/browser/markersView.js +900 -0
  362. package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.css.js +4 -0
  363. package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.js +132 -0
  364. package/vscode/src/vs/workbench/contrib/markers/browser/media/markers.css.js +4 -0
  365. package/vscode/src/vs/workbench/contrib/markers/browser/messages.js +301 -0
  366. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +1 -1
  367. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/actions.js +108 -0
  368. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor.contribution.js +39 -0
  369. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor.js +117 -0
  370. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +146 -0
  371. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +107 -0
  372. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +172 -0
  373. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +542 -0
  374. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +105 -0
  375. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +66 -0
  376. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +163 -0
  377. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +65 -0
  378. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +318 -0
  379. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +70 -0
  380. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/media/notebookFind.css.js +4 -0
  381. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +167 -0
  382. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +207 -0
  383. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +82 -0
  384. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +81 -0
  385. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +65 -0
  386. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +100 -0
  387. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +391 -0
  388. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +62 -0
  389. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.js +3 -0
  390. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +95 -0
  391. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +118 -0
  392. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +58 -0
  393. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +148 -0
  394. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +654 -0
  395. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +75 -0
  396. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +515 -0
  397. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +157 -0
  398. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +55 -0
  399. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +93 -0
  400. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +50 -0
  401. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +651 -0
  402. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +719 -0
  403. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +349 -0
  404. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +314 -0
  405. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +197 -0
  406. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +46 -0
  407. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +1295 -0
  408. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +282 -0
  409. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +561 -0
  410. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +113 -0
  411. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +37 -0
  412. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css.js +4 -0
  413. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +312 -0
  414. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +909 -0
  415. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +11 -0
  416. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +393 -0
  417. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +183 -0
  418. package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +1185 -0
  419. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibility.js +157 -0
  420. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +449 -0
  421. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +190 -0
  422. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +104 -0
  423. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +508 -0
  424. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +128 -0
  425. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +339 -0
  426. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +109 -0
  427. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +26 -0
  428. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +63 -0
  429. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +639 -0
  430. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +198 -0
  431. package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +89 -0
  432. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +1000 -0
  433. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +101 -0
  434. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +201 -0
  435. package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +78 -0
  436. package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.js +96 -0
  437. package/vscode/src/vs/workbench/contrib/outline/browser/outline.contribution.js +367 -0
  438. package/vscode/src/vs/workbench/contrib/outline/browser/outlineActions.js +172 -0
  439. package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.css.js +4 -0
  440. package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.js +316 -0
  441. package/vscode/src/vs/workbench/contrib/outline/browser/outlineViewState.js +66 -0
  442. package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +613 -0
  443. package/vscode/src/vs/workbench/contrib/output/browser/output.css.js +4 -0
  444. package/vscode/src/vs/workbench/contrib/output/browser/outputLinkProvider.js +76 -0
  445. package/vscode/src/vs/workbench/contrib/output/browser/outputServices.js +200 -0
  446. package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +224 -0
  447. package/vscode/src/vs/workbench/contrib/performance/browser/inputLatencyContrib.js +43 -0
  448. package/vscode/src/vs/workbench/contrib/performance/browser/performance.contribution.js +116 -0
  449. package/vscode/src/vs/workbench/contrib/performance/browser/performance.web.contribution.js +5 -0
  450. package/vscode/src/vs/workbench/contrib/performance/browser/perfviewEditor.js +340 -0
  451. package/vscode/src/vs/workbench/contrib/performance/browser/startupTimings.js +114 -0
  452. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditor.js +1237 -0
  453. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.js +248 -0
  454. package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindingsEditor.css.js +4 -0
  455. package/vscode/src/vs/workbench/contrib/preferences/browser/media/preferences.css.js +4 -0
  456. package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css.js +4 -0
  457. package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsWidgets.css.js +4 -0
  458. package/vscode/src/vs/workbench/contrib/preferences/browser/preferences.contribution.js +1374 -0
  459. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesActions.js +104 -0
  460. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesEditor.js +47 -0
  461. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesRenderers.js +784 -0
  462. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesSearch.js +461 -0
  463. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditor2.js +1578 -0
  464. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditorSettingIndicators.js +624 -0
  465. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsSearchMenu.js +135 -0
  466. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTree.js +2122 -0
  467. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsWidgets.js +1158 -0
  468. package/vscode/src/vs/workbench/contrib/preferences/browser/tocTree.js +217 -0
  469. package/vscode/src/vs/workbench/contrib/preferences/common/preferencesContribution.js +160 -0
  470. package/vscode/src/vs/workbench/contrib/preferences/common/smartSnippetInserter.js +124 -0
  471. package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +293 -0
  472. package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +167 -0
  473. package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +264 -0
  474. package/vscode/src/vs/workbench/contrib/relauncher/browser/relauncher.contribution.js +206 -0
  475. package/vscode/src/vs/workbench/contrib/remote/browser/explorerViewItems.js +133 -0
  476. package/vscode/src/vs/workbench/contrib/remote/browser/media/remoteViewlet.css.js +4 -0
  477. package/vscode/src/vs/workbench/contrib/remote/browser/remote.contribution.js +18 -0
  478. package/vscode/src/vs/workbench/contrib/remote/browser/remote.js +829 -0
  479. package/vscode/src/vs/workbench/contrib/remote/browser/remoteConnectionHealth.js +164 -0
  480. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIndicator.js +800 -0
  481. package/vscode/src/vs/workbench/contrib/remote/browser/remoteStartEntry.contribution.js +5 -0
  482. package/vscode/src/vs/workbench/contrib/remote/browser/remoteStartEntry.js +95 -0
  483. package/vscode/src/vs/workbench/contrib/remote/browser/showCandidate.js +33 -0
  484. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelFactory.js +108 -0
  485. package/vscode/src/vs/workbench/contrib/remote/common/remote.contribution.js +513 -0
  486. package/vscode/src/vs/workbench/contrib/scm/browser/activity.js +306 -0
  487. package/vscode/src/vs/workbench/contrib/scm/browser/media/scm.css.js +4 -0
  488. package/vscode/src/vs/workbench/contrib/scm/browser/menus.js +278 -0
  489. package/vscode/src/vs/workbench/contrib/scm/browser/scm.contribution.js +701 -0
  490. package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.js +172 -0
  491. package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoryRenderer.js +134 -0
  492. package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.js +3365 -0
  493. package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPaneContainer.js +52 -0
  494. package/vscode/src/vs/workbench/contrib/scm/browser/scmViewService.js +303 -0
  495. package/vscode/src/vs/workbench/contrib/scm/browser/util.js +119 -0
  496. package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.js +74 -0
  497. package/vscode/src/vs/workbench/contrib/scm/common/scmService.js +310 -0
  498. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +794 -0
  499. package/vscode/src/vs/workbench/contrib/search/browser/media/anythingQuickAccess.css.js +4 -0
  500. package/vscode/src/vs/workbench/contrib/search/browser/media/searchview.css.js +4 -0
  501. package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +232 -0
  502. package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +339 -0
  503. package/vscode/src/vs/workbench/contrib/search/browser/replaceContributions.js +7 -0
  504. package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +230 -0
  505. package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +646 -0
  506. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +207 -0
  507. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +510 -0
  508. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +372 -0
  509. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +42 -0
  510. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +43 -0
  511. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +322 -0
  512. package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +101 -0
  513. package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +104 -0
  514. package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +64 -0
  515. package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +435 -0
  516. package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +2175 -0
  517. package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +672 -0
  518. package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +232 -0
  519. package/vscode/src/vs/workbench/contrib/search/common/cacheState.js +85 -0
  520. package/vscode/src/vs/workbench/contrib/searchEditor/browser/media/searchEditor.css.js +4 -0
  521. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +585 -0
  522. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +758 -0
  523. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +187 -0
  524. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +318 -0
  525. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +136 -0
  526. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +291 -0
  527. package/vscode/src/vs/workbench/contrib/share/browser/share.contribution.js +167 -0
  528. package/vscode/src/vs/workbench/contrib/share/browser/share.css.js +4 -0
  529. package/vscode/src/vs/workbench/contrib/share/browser/shareService.js +70 -0
  530. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/configureSnippets.js +331 -0
  531. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/insertSnippet.js +127 -0
  532. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/surroundWithSnippet.js +57 -0
  533. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCodeActionProvider.js +154 -0
  534. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetPicker.js +111 -0
  535. package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.contribution.js +141 -0
  536. package/vscode/src/vs/workbench/contrib/speech/browser/speechService.js +271 -0
  537. package/vscode/src/vs/workbench/contrib/surveys/browser/ces.contribution.js +137 -0
  538. package/vscode/src/vs/workbench/contrib/surveys/browser/languageSurveys.contribution.js +50 -0
  539. package/vscode/src/vs/workbench/contrib/surveys/browser/nps.contribution.js +92 -0
  540. package/vscode/src/vs/workbench/contrib/tasks/browser/abstractTaskService.js +3857 -0
  541. package/vscode/src/vs/workbench/contrib/tasks/browser/runAutomaticTasks.js +183 -0
  542. package/vscode/src/vs/workbench/contrib/tasks/browser/task.contribution.js +682 -0
  543. package/vscode/src/vs/workbench/contrib/tasks/browser/taskQuickPick.js +450 -0
  544. package/vscode/src/vs/workbench/contrib/tasks/browser/taskService.js +36 -0
  545. package/vscode/src/vs/workbench/contrib/tasks/browser/taskTerminalStatus.js +189 -0
  546. package/vscode/src/vs/workbench/contrib/tasks/browser/tasksQuickAccess.js +119 -0
  547. package/vscode/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.js +1711 -0
  548. package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchemaCommon.js +437 -0
  549. package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v1.js +123 -0
  550. package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v2.js +899 -0
  551. package/vscode/src/vs/workbench/contrib/tasks/common/problemCollectors.js +463 -0
  552. package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.js +1794 -0
  553. package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +1579 -0
  554. package/vscode/src/vs/workbench/contrib/tasks/common/taskSystem.js +14 -0
  555. package/vscode/src/vs/workbench/contrib/tasks/common/taskTemplates.js +143 -0
  556. package/vscode/src/vs/workbench/contrib/terminal/browser/baseTerminalBackend.js +114 -0
  557. package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +133 -0
  558. package/vscode/src/vs/workbench/contrib/terminal/browser/media/scrollbar.css.js +4 -0
  559. package/vscode/src/vs/workbench/contrib/terminal/browser/media/terminal.css.js +4 -0
  560. package/vscode/src/vs/workbench/contrib/terminal/browser/media/terminalVoice.css.js +4 -0
  561. package/vscode/src/vs/workbench/contrib/terminal/browser/media/widgets.css.js +4 -0
  562. package/vscode/src/vs/workbench/contrib/terminal/browser/media/xterm.css.js +4 -0
  563. package/vscode/src/vs/workbench/contrib/terminal/browser/remotePty.js +91 -0
  564. package/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.js +312 -0
  565. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.contribution.js +267 -0
  566. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.web.contribution.js +11 -0
  567. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +2070 -0
  568. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalCommands.js +22 -0
  569. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.js +221 -0
  570. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +40 -0
  571. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditor.js +193 -0
  572. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorSerializer.js +40 -0
  573. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorService.js +239 -0
  574. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEscapeSequences.js +12 -0
  575. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEvents.js +47 -0
  576. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroup.js +501 -0
  577. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroupService.js +368 -0
  578. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +2180 -0
  579. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstanceService.js +81 -0
  580. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMainContribution.js +94 -0
  581. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +840 -0
  582. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +619 -0
  583. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileQuickpick.js +312 -0
  584. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileResolverService.js +285 -0
  585. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileService.js +225 -0
  586. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +155 -0
  587. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +335 -0
  588. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalService.js +1156 -0
  589. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.js +121 -0
  590. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabbedView.js +439 -0
  591. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabsList.js +690 -0
  592. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTooltip.js +84 -0
  593. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalUri.js +39 -0
  594. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalView.js +628 -0
  595. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalVoice.js +199 -0
  596. package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/terminalHoverWidget.js +91 -0
  597. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +56 -0
  598. package/vscode/src/vs/workbench/contrib/terminal/common/basePty.js +91 -0
  599. package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariableService.js +96 -0
  600. package/vscode/src/vs/workbench/contrib/terminal/common/history.js +375 -0
  601. package/vscode/src/vs/workbench/contrib/terminal/common/remote/remoteTerminalChannel.js +253 -0
  602. package/vscode/src/vs/workbench/contrib/terminal/common/terminalClipboard.js +98 -0
  603. package/vscode/src/vs/workbench/contrib/terminal/common/terminalConfiguration.js +1351 -0
  604. package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +282 -0
  605. package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +145 -0
  606. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/bufferContentTracker.js +112 -0
  607. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminal.accessibility.contribution.js +389 -0
  608. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibilityHelp.js +190 -0
  609. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleBufferProvider.js +102 -0
  610. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/textAreaSyncAddon.js +106 -0
  611. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/media/terminalChatWidget.css.js +4 -0
  612. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminal.chat.contribution.js +9 -0
  613. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +84 -0
  614. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +125 -0
  615. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibleView.js +31 -0
  616. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +344 -0
  617. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +335 -0
  618. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +154 -0
  619. package/vscode/src/vs/workbench/contrib/terminalContrib/developer/browser/media/developer.css.js +4 -0
  620. package/vscode/src/vs/workbench/contrib/terminalContrib/developer/browser/terminal.developer.contribution.js +237 -0
  621. package/vscode/src/vs/workbench/contrib/terminalContrib/environmentChanges/browser/terminal.environmentChanges.contribution.js +114 -0
  622. package/vscode/src/vs/workbench/contrib/terminalContrib/find/browser/terminal.find.contribution.js +264 -0
  623. package/vscode/src/vs/workbench/contrib/terminalContrib/find/browser/terminalFindWidget.js +165 -0
  624. package/vscode/src/vs/workbench/contrib/terminalContrib/find/browser/textInputContextMenu.js +61 -0
  625. package/vscode/src/vs/workbench/contrib/terminalContrib/highlight/browser/terminal.highlight.contribution.js +36 -0
  626. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminal.links.contribution.js +132 -0
  627. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalExternalLinkDetector.js +38 -0
  628. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLink.js +120 -0
  629. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkDetectorAdapter.js +108 -0
  630. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkHelpers.js +175 -0
  631. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkManager.js +394 -0
  632. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkOpeners.js +240 -0
  633. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkParsing.js +206 -0
  634. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkQuickpick.js +264 -0
  635. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkResolver.js +141 -0
  636. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLocalLinkDetector.js +220 -0
  637. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalMultiLineLinkDetector.js +182 -0
  638. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalUriLinkDetector.js +119 -0
  639. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalWordLinkDetector.js +94 -0
  640. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/media/terminalQuickFix.css.js +4 -0
  641. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFixAddon.js +451 -0
  642. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminal.quickFix.contribution.js +61 -0
  643. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixBuiltinActions.js +323 -0
  644. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixService.js +168 -0
  645. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/media/stickyScroll.css.js +4 -0
  646. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminal.stickyScroll.contribution.js +5 -0
  647. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollColorRegistry.js +35 -0
  648. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollContribution.js +91 -0
  649. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollOverlay.js +379 -0
  650. package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminal.suggest.contribution.js +181 -0
  651. package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalSuggestAddon.js +406 -0
  652. package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/browser/terminal.typeAhead.contribution.js +54 -0
  653. package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/browser/terminalTypeAheadAddon.js +1047 -0
  654. package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/browser/terminal.zoom.contribution.js +130 -0
  655. package/vscode/src/vs/workbench/contrib/testing/browser/codeCoverageDecorations.js +589 -0
  656. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/display.js +2 -0
  657. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/index.js +81 -0
  658. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/listProjection.js +184 -0
  659. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/testItemContextOverlay.js +16 -0
  660. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/testingObjectTree.js +44 -0
  661. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/testingViewState.js +15 -0
  662. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/treeProjection.js +222 -0
  663. package/vscode/src/vs/workbench/contrib/testing/browser/icons.js +182 -0
  664. package/vscode/src/vs/workbench/contrib/testing/browser/media/testMessageColorizer.css.js +4 -0
  665. package/vscode/src/vs/workbench/contrib/testing/browser/media/testing.css.js +4 -0
  666. package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageBars.js +238 -0
  667. package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageView.js +562 -0
  668. package/vscode/src/vs/workbench/contrib/testing/browser/testExplorerActions.js +1671 -0
  669. package/vscode/src/vs/workbench/contrib/testing/browser/testMessageColorizer.js +71 -0
  670. package/vscode/src/vs/workbench/contrib/testing/browser/testing.contribution.js +224 -0
  671. package/vscode/src/vs/workbench/contrib/testing/browser/testingConfigurationUi.js +119 -0
  672. package/vscode/src/vs/workbench/contrib/testing/browser/testingDecorations.js +968 -0
  673. package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerFilter.js +234 -0
  674. package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerView.js +1239 -0
  675. package/vscode/src/vs/workbench/contrib/testing/browser/testingOutputPeek.css.js +4 -0
  676. package/vscode/src/vs/workbench/contrib/testing/browser/testingOutputPeek.js +2108 -0
  677. package/vscode/src/vs/workbench/contrib/testing/browser/testingProgressUiService.js +140 -0
  678. package/vscode/src/vs/workbench/contrib/testing/browser/testingViewPaneContainer.js +45 -0
  679. package/vscode/src/vs/workbench/contrib/testing/browser/theme.js +335 -0
  680. package/vscode/src/vs/workbench/contrib/testing/common/configuration.js +274 -0
  681. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +57 -0
  682. package/vscode/src/vs/workbench/contrib/testing/common/mainThreadTestCollection.js +127 -0
  683. package/vscode/src/vs/workbench/contrib/testing/common/observableUtils.js +19 -0
  684. package/vscode/src/vs/workbench/contrib/testing/common/testExclusions.js +46 -0
  685. package/vscode/src/vs/workbench/contrib/testing/common/testServiceImpl.js +294 -0
  686. package/vscode/src/vs/workbench/contrib/testing/common/testingContentProvider.js +123 -0
  687. package/vscode/src/vs/workbench/contrib/testing/common/testingUri.js +65 -0
  688. package/vscode/src/vs/workbench/contrib/themes/browser/themes.contribution.js +955 -0
  689. package/vscode/src/vs/workbench/contrib/timeline/browser/media/timelinePane.css.js +4 -0
  690. package/vscode/src/vs/workbench/contrib/timeline/browser/timeline.contribution.js +118 -0
  691. package/vscode/src/vs/workbench/contrib/timeline/browser/timelinePane.js +1161 -0
  692. package/vscode/src/vs/workbench/contrib/timeline/common/timelineService.js +106 -0
  693. package/vscode/src/vs/workbench/contrib/update/browser/media/releasenoteseditor.css.js +4 -0
  694. package/vscode/src/vs/workbench/contrib/update/browser/releaseNotesEditor.js +411 -0
  695. package/vscode/src/vs/workbench/contrib/update/browser/update.contribution.js +252 -0
  696. package/vscode/src/vs/workbench/contrib/update/browser/update.js +676 -0
  697. package/vscode/src/vs/workbench/contrib/url/browser/externalUriResolver.js +26 -0
  698. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +198 -0
  699. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainsFileSystemProvider.js +135 -0
  700. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainsValidator.js +203 -0
  701. package/vscode/src/vs/workbench/contrib/url/browser/url.contribution.js +66 -0
  702. package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSync.contribution.js +110 -0
  703. package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSync.js +1466 -0
  704. package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSyncConflictsView.js +223 -0
  705. package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSyncTrigger.js +59 -0
  706. package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSyncViews.js +858 -0
  707. package/vscode/src/vs/workbench/contrib/welcomeBanner/browser/welcomeBanner.contribution.js +45 -0
  708. package/vscode/src/vs/workbench/contrib/welcomeDialog/browser/media/welcomeWidget.css.js +4 -0
  709. package/vscode/src/vs/workbench/contrib/welcomeDialog/browser/welcomeDialog.contribution.js +102 -0
  710. package/vscode/src/vs/workbench/contrib/welcomeDialog/browser/welcomeWidget.js +187 -0
  711. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +380 -0
  712. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +1526 -0
  713. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +47 -0
  714. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedDetailsRenderer.js +261 -0
  715. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +14 -0
  716. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +51 -0
  717. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedList.js +95 -0
  718. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css.js +4 -0
  719. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +216 -0
  720. package/vscode/src/vs/workbench/contrib/welcomeViews/common/newFile.contribution.js +237 -0
  721. package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcome.contribution.js +18 -0
  722. package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcomeContribution.js +73 -0
  723. package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcomeExtensionPoint.js +97 -0
  724. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +61 -0
  725. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/media/walkThroughPart.css.js +4 -0
  726. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +38 -0
  727. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughActions.js +57 -0
  728. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.js +113 -0
  729. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +429 -0
  730. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughContentProvider.js +74 -0
  731. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +18 -0
  732. package/vscode/src/vs/workbench/contrib/workspace/browser/media/workspaceTrustEditor.css.js +4 -0
  733. package/vscode/src/vs/workbench/contrib/workspace/browser/workspace.contribution.js +976 -0
  734. package/vscode/src/vs/workbench/contrib/workspace/browser/workspaceTrustEditor.js +1243 -0
  735. package/vscode/src/vs/workbench/contrib/workspaces/browser/workspaces.contribution.js +132 -0
  736. package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +1595 -0
  737. package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformationService.js +82 -0
  738. package/vscode/src/vs/workbench/services/authentication/browser/authenticationExtensionsService.js +369 -0
  739. package/vscode/src/vs/workbench/services/commands/common/commandService.js +77 -0
  740. package/vscode/src/vs/workbench/services/configuration/browser/configuration.js +850 -0
  741. package/vscode/src/vs/workbench/services/configuration/browser/configurationService.js +1199 -0
  742. package/vscode/src/vs/workbench/services/configuration/common/configurationEditing.js +666 -0
  743. package/vscode/src/vs/workbench/services/configuration/common/configurationModels.js +119 -0
  744. package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +120 -0
  745. package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +309 -0
  746. package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +27 -0
  747. package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +330 -0
  748. package/vscode/src/vs/workbench/services/dialogs/browser/abstractFileDialogService.js +377 -0
  749. package/vscode/src/vs/workbench/services/dialogs/browser/simpleFileDialog.js +1037 -0
  750. package/vscode/src/vs/workbench/services/dialogs/common/dialogService.js +70 -0
  751. package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionEnablementService.js +638 -0
  752. package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionsProfileScannerService.js +22 -0
  753. package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js +892 -0
  754. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeaturesManagemetService.js +232 -0
  755. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagementChannelClient.js +107 -0
  756. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagementServerService.js +61 -0
  757. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagementService.js +1043 -0
  758. package/vscode/src/vs/workbench/services/extensionManagement/common/remoteExtensionManagementService.js +56 -0
  759. package/vscode/src/vs/workbench/services/extensionManagement/common/webExtensionManagementService.js +279 -0
  760. package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionIgnoredRecommendationsService.js +82 -0
  761. package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +283 -0
  762. package/vscode/src/vs/workbench/services/extensions/browser/extensionsScannerService.js +31 -0
  763. package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +274 -0
  764. package/vscode/src/vs/workbench/services/extensions/browser/webWorkerFileSystemProvider.js +50 -0
  765. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +1147 -0
  766. package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.js +40 -0
  767. package/vscode/src/vs/workbench/services/extensions/common/extensionDevOptions.js +23 -0
  768. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +510 -0
  769. package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.js +272 -0
  770. package/vscode/src/vs/workbench/services/extensions/common/extensionStorageMigration.js +56 -0
  771. package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +78 -0
  772. package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.js +62 -0
  773. package/vscode/src/vs/workbench/services/extensions/common/lazyCreateExtensionHostManager.js +159 -0
  774. package/vscode/src/vs/workbench/services/extensions/common/remoteConsoleUtil.js +47 -0
  775. package/vscode/src/vs/workbench/services/extensions/common/remoteExtensionHost.js +220 -0
  776. package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +428 -0
  777. package/vscode/src/vs/workbench/services/issue/browser/issueService.js +97 -0
  778. package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +945 -0
  779. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +500 -0
  780. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/_.contribution.js +13 -0
  781. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/cz.win.js +162 -0
  782. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de-swiss.win.js +162 -0
  783. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de.darwin.js +125 -0
  784. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de.linux.js +180 -0
  785. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de.win.js +162 -0
  786. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/dk.win.js +162 -0
  787. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/dvorak.darwin.js +125 -0
  788. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-belgian.win.js +162 -0
  789. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-ext.darwin.js +125 -0
  790. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-in.win.js +162 -0
  791. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-intl.darwin.js +125 -0
  792. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-intl.win.js +162 -0
  793. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-uk.darwin.js +125 -0
  794. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-uk.win.js +162 -0
  795. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en.darwin.js +133 -0
  796. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en.linux.js +182 -0
  797. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en.win.js +167 -0
  798. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es-latin.win.js +162 -0
  799. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es.darwin.js +125 -0
  800. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es.linux.js +180 -0
  801. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es.win.js +162 -0
  802. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.darwin.js +125 -0
  803. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.linux.js +180 -0
  804. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.win.js +162 -0
  805. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/hu.win.js +162 -0
  806. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/it.darwin.js +125 -0
  807. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/it.win.js +162 -0
  808. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/jp-roman.darwin.js +125 -0
  809. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/jp.darwin.js +125 -0
  810. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ko.darwin.js +125 -0
  811. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.darwin.js +17 -0
  812. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.linux.js +6 -0
  813. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.win.js +23 -0
  814. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/no.win.js +162 -0
  815. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pl.darwin.js +125 -0
  816. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pl.win.js +162 -0
  817. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pt-br.win.js +162 -0
  818. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pt.darwin.js +125 -0
  819. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pt.win.js +162 -0
  820. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.darwin.js +125 -0
  821. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.linux.js +180 -0
  822. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.win.js +162 -0
  823. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/sv.win.js +164 -0
  824. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/thai.win.js +162 -0
  825. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/tr.win.js +162 -0
  826. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/zh-hans.darwin.js +125 -0
  827. package/vscode/src/vs/workbench/services/keybinding/common/keybindingIO.js +72 -0
  828. package/vscode/src/vs/workbench/services/keybinding/common/keymapInfo.js +108 -0
  829. package/vscode/src/vs/workbench/services/keybinding/common/macLinuxKeyboardMapper.js +886 -0
  830. package/vscode/src/vs/workbench/services/keybinding/common/windowsKeyboardMapper.js +350 -0
  831. package/vscode/src/vs/workbench/services/label/common/labelService.js +435 -0
  832. package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionWorkerServiceImpl.js +259 -0
  833. package/vscode/src/vs/workbench/services/lifecycle/browser/lifecycleService.js +135 -0
  834. package/vscode/src/vs/workbench/services/localization/common/locale.d.ts +11 -0
  835. package/vscode/src/vs/workbench/services/notification/common/notificationService.js +251 -0
  836. package/vscode/src/vs/workbench/services/preferences/browser/preferencesService.js +551 -0
  837. package/vscode/src/vs/workbench/services/quickinput/browser/quickInputService.js +37 -0
  838. package/vscode/src/vs/workbench/services/remote/browser/browserRemoteResourceHandler.js +47 -0
  839. package/vscode/src/vs/workbench/services/remote/browser/remoteAgentService.js +76 -0
  840. package/vscode/src/vs/workbench/services/remote/common/abstractRemoteAgentService.js +177 -0
  841. package/vscode/src/vs/workbench/services/remote/common/remoteAgentEnvironmentChannel.js +52 -0
  842. package/vscode/src/vs/workbench/services/remote/common/remoteExtensionsScanner.js +71 -0
  843. package/vscode/src/vs/workbench/services/request/browser/requestService.js +48 -0
  844. package/vscode/src/vs/workbench/services/search/common/searchService.js +414 -0
  845. package/vscode/src/vs/workbench/services/storage/browser/storageService.js +290 -0
  846. package/vscode/src/vs/workbench/services/suggest/browser/media/suggest.css.js +4 -0
  847. package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.js +9 -0
  848. package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.js +97 -0
  849. package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +428 -0
  850. package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +83 -0
  851. package/vscode/src/vs/workbench/services/textMate/browser/arrayOperation.js +62 -0
  852. package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/textMateWorkerTokenizerController.js +160 -0
  853. package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/threadedBackgroundTokenizerFactory.js +200 -0
  854. package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js +482 -0
  855. package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/textMateTokenizationSupport.js +72 -0
  856. package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/tokenizationSupportWithLineLimit.js +39 -0
  857. package/vscode/src/vs/workbench/services/textMate/common/TMGrammarFactory.js +118 -0
  858. package/vscode/src/vs/workbench/services/textMate/common/TMScopeRegistry.js +15 -0
  859. package/vscode/src/vs/workbench/services/textfile/browser/browserTextFileService.js +57 -0
  860. package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +652 -0
  861. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +402 -0
  862. package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +62 -0
  863. package/vscode/src/vs/workbench/services/textmodelResolver/common/textModelResolverService.js +191 -0
  864. package/vscode/src/vs/workbench/services/textresourceProperties/common/textResourcePropertiesService.js +44 -0
  865. package/vscode/src/vs/workbench/services/themes/browser/fileIconThemeData.js +372 -0
  866. package/vscode/src/vs/workbench/services/themes/browser/productIconThemeData.js +305 -0
  867. package/vscode/src/vs/workbench/services/themes/browser/workbenchThemeService.js +768 -0
  868. package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +886 -0
  869. package/vscode/src/vs/workbench/services/themes/common/colorThemeSchema.js +309 -0
  870. package/vscode/src/vs/workbench/services/themes/common/fileIconThemeSchema.js +432 -0
  871. package/vscode/src/vs/workbench/services/themes/common/plistParser.js +439 -0
  872. package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +114 -0
  873. package/vscode/src/vs/workbench/services/themes/common/textMateScopeMatcher.js +120 -0
  874. package/vscode/src/vs/workbench/services/themes/common/themeCompatibility.js +76 -0
  875. package/vscode/src/vs/workbench/services/themes/common/themeConfiguration.js +469 -0
  876. package/vscode/src/vs/workbench/services/themes/common/themeExtensionPoints.js +340 -0
  877. package/vscode/src/vs/workbench/services/tunnel/browser/tunnelService.js +34 -0
  878. package/vscode/src/vs/workbench/services/url/browser/urlService.js +48 -0
  879. package/vscode/src/vs/workbench/services/userDataProfile/browser/extensionsResource.js +340 -0
  880. package/vscode/src/vs/workbench/services/userDataProfile/browser/globalStateResource.js +145 -0
  881. package/vscode/src/vs/workbench/services/userDataProfile/browser/iconSelectBox.js +96 -0
  882. package/vscode/src/vs/workbench/services/userDataProfile/browser/keybindingsResource.js +117 -0
  883. package/vscode/src/vs/workbench/services/userDataProfile/browser/media/userDataProfileView.css.js +4 -0
  884. package/vscode/src/vs/workbench/services/userDataProfile/browser/settingsResource.js +138 -0
  885. package/vscode/src/vs/workbench/services/userDataProfile/browser/snippetsResource.js +153 -0
  886. package/vscode/src/vs/workbench/services/userDataProfile/browser/tasksResource.js +116 -0
  887. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.js +1752 -0
  888. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileInit.js +148 -0
  889. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.js +188 -0
  890. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +7 -2
  891. package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncInit.js +445 -0
  892. package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncWorkbenchService.js +786 -0
  893. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSyncUtil.js +46 -0
  894. package/vscode/src/vs/workbench/services/workingCopy/browser/workingCopyBackupService.js +23 -0
  895. package/vscode/src/vs/workbench/services/workingCopy/browser/workingCopyBackupTracker.js +43 -0
  896. package/vscode/src/vs/workbench/services/workingCopy/browser/workingCopyHistoryService.js +28 -0
  897. package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +87 -0
  898. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +384 -0
  899. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +406 -0
  900. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +142 -0
  901. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +127 -0
  902. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +452 -0
  903. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupTracker.js +253 -0
  904. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyHistoryService.js +616 -0
  905. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyHistoryTracker.js +162 -0
  906. package/vscode/src/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js +335 -0
  907. package/vscode/src/vs/workbench/services/workspaces/browser/workspaceTrustEditorInput.js +41 -0
  908. package/vscode/src/vs/workbench/services/workspaces/browser/workspacesService.js +151 -0
  909. package/vscode/src/vs/workbench/services/workspaces/common/editSessionIdentityService.js +60 -0
@@ -0,0 +1,1579 @@
1
+ import { localizeWithPath } from '../../../../nls.js';
2
+ import { deepClone } from '../../../../base/common/objects.js';
3
+ import { isString, isUndefined, isBoolean, isStringArray } from '../../../../base/common/types.js';
4
+ import { generateUuid } from '../../../../base/common/uuid.js';
5
+ import { ProblemMatcherParser, isNamedProblemMatcher, ProblemMatcherRegistry } from './problemMatcher.js';
6
+ import { TaskGroup, ExecutionEngine as ExecutionEngine$1, CommandString, CustomTask as CustomTask$1, CUSTOMIZED_TASK_TYPE, TaskSourceKind, RunOnOptions as RunOnOptions$1, RevealKind, RevealProblemKind, PanelKind, RuntimeType, TaskDefinition, ConfiguringTask as ConfiguringTask$1, ShellQuoting, USER_TASKS_GROUP_KEY } from './tasks.js';
7
+ import { TaskDefinitionRegistry } from './taskDefinitionRegistry.js';
8
+ import { ShellExecutionSupportedContext, ProcessExecutionSupportedContext } from './taskService.js';
9
+ var ITaskIdentifier;
10
+ ( (function(ITaskIdentifier) {
11
+ function is(value) {
12
+ const candidate = value;
13
+ return candidate !== undefined && isString(value.type);
14
+ }
15
+ ITaskIdentifier.is = is;
16
+ })(ITaskIdentifier || (ITaskIdentifier = {})));
17
+ var ProblemMatcherKind;
18
+ ( (function(ProblemMatcherKind) {
19
+ ProblemMatcherKind[ProblemMatcherKind["Unknown"] = 0] = "Unknown";
20
+ ProblemMatcherKind[ProblemMatcherKind["String"] = 1] = "String";
21
+ ProblemMatcherKind[ProblemMatcherKind["ProblemMatcher"] = 2] = "ProblemMatcher";
22
+ ProblemMatcherKind[ProblemMatcherKind["Array"] = 3] = "Array";
23
+ })(ProblemMatcherKind || (ProblemMatcherKind = {})));
24
+ const EMPTY_ARRAY = [];
25
+ function assignProperty(target, source, key) {
26
+ const sourceAtKey = source[key];
27
+ if (sourceAtKey !== undefined) {
28
+ target[key] = sourceAtKey;
29
+ }
30
+ }
31
+ function fillProperty(target, source, key) {
32
+ const sourceAtKey = source[key];
33
+ if (target[key] === undefined && sourceAtKey !== undefined) {
34
+ target[key] = sourceAtKey;
35
+ }
36
+ }
37
+ function _isEmpty(value, properties, allowEmptyArray = false) {
38
+ if (value === undefined || value === null || properties === undefined) {
39
+ return true;
40
+ }
41
+ for (const meta of properties) {
42
+ const property = value[meta.property];
43
+ if (property !== undefined && property !== null) {
44
+ if (meta.type !== undefined && !meta.type.isEmpty(property)) {
45
+ return false;
46
+ }
47
+ else if (!Array.isArray(property) || (property.length > 0) || allowEmptyArray) {
48
+ return false;
49
+ }
50
+ }
51
+ }
52
+ return true;
53
+ }
54
+ function _assignProperties(target, source, properties) {
55
+ if (!source || _isEmpty(source, properties)) {
56
+ return target;
57
+ }
58
+ if (!target || _isEmpty(target, properties)) {
59
+ return source;
60
+ }
61
+ for (const meta of properties) {
62
+ const property = meta.property;
63
+ let value;
64
+ if (meta.type !== undefined) {
65
+ value = meta.type.assignProperties(target[property], source[property]);
66
+ }
67
+ else {
68
+ value = source[property];
69
+ }
70
+ if (value !== undefined && value !== null) {
71
+ target[property] = value;
72
+ }
73
+ }
74
+ return target;
75
+ }
76
+ function _fillProperties(target, source, properties, allowEmptyArray = false) {
77
+ if (!source || _isEmpty(source, properties)) {
78
+ return target;
79
+ }
80
+ if (!target || _isEmpty(target, properties, allowEmptyArray)) {
81
+ return source;
82
+ }
83
+ for (const meta of properties) {
84
+ const property = meta.property;
85
+ let value;
86
+ if (meta.type) {
87
+ value = meta.type.fillProperties(target[property], source[property]);
88
+ }
89
+ else if (target[property] === undefined) {
90
+ value = source[property];
91
+ }
92
+ if (value !== undefined && value !== null) {
93
+ target[property] = value;
94
+ }
95
+ }
96
+ return target;
97
+ }
98
+ function _fillDefaults(target, defaults, properties, context) {
99
+ if (target && Object.isFrozen(target)) {
100
+ return target;
101
+ }
102
+ if (target === undefined || target === null || defaults === undefined || defaults === null) {
103
+ if (defaults !== undefined && defaults !== null) {
104
+ return deepClone(defaults);
105
+ }
106
+ else {
107
+ return undefined;
108
+ }
109
+ }
110
+ for (const meta of properties) {
111
+ const property = meta.property;
112
+ if (target[property] !== undefined) {
113
+ continue;
114
+ }
115
+ let value;
116
+ if (meta.type) {
117
+ value = meta.type.fillDefaults(target[property], context);
118
+ }
119
+ else {
120
+ value = defaults[property];
121
+ }
122
+ if (value !== undefined && value !== null) {
123
+ target[property] = value;
124
+ }
125
+ }
126
+ return target;
127
+ }
128
+ function _freeze(target, properties) {
129
+ if (target === undefined || target === null) {
130
+ return undefined;
131
+ }
132
+ if (Object.isFrozen(target)) {
133
+ return target;
134
+ }
135
+ for (const meta of properties) {
136
+ if (meta.type) {
137
+ const value = target[meta.property];
138
+ if (value) {
139
+ meta.type.freeze(value);
140
+ }
141
+ }
142
+ }
143
+ return target;
144
+ }
145
+ var RunOnOptions;
146
+ ( (function(RunOnOptions) {
147
+ function fromString(value) {
148
+ if (!value) {
149
+ return RunOnOptions$1.default;
150
+ }
151
+ switch (value.toLowerCase()) {
152
+ case 'folderopen':
153
+ return RunOnOptions$1.folderOpen;
154
+ case 'default':
155
+ default:
156
+ return RunOnOptions$1.default;
157
+ }
158
+ }
159
+ RunOnOptions.fromString = fromString;
160
+ })(RunOnOptions || (RunOnOptions = {})));
161
+ var RunOptions;
162
+ ( (function(RunOptions) {
163
+ const properties = [{ property: 'reevaluateOnRerun' }, { property: 'runOn' }, { property: 'instanceLimit' }];
164
+ function fromConfiguration(value) {
165
+ return {
166
+ reevaluateOnRerun: value ? value.reevaluateOnRerun : true,
167
+ runOn: value ? RunOnOptions.fromString(value.runOn) : RunOnOptions$1.default,
168
+ instanceLimit: value ? value.instanceLimit : 1
169
+ };
170
+ }
171
+ RunOptions.fromConfiguration = fromConfiguration;
172
+ function assignProperties(target, source) {
173
+ return _assignProperties(target, source, properties);
174
+ }
175
+ RunOptions.assignProperties = assignProperties;
176
+ function fillProperties(target, source) {
177
+ return _fillProperties(target, source, properties);
178
+ }
179
+ RunOptions.fillProperties = fillProperties;
180
+ })(RunOptions || (RunOptions = {})));
181
+ var ShellConfiguration;
182
+ ( (function(ShellConfiguration) {
183
+ const properties = [{ property: 'executable' }, { property: 'args' }, { property: 'quoting' }];
184
+ function is(value) {
185
+ const candidate = value;
186
+ return candidate && (isString(candidate.executable) || isStringArray(candidate.args));
187
+ }
188
+ ShellConfiguration.is = is;
189
+ function from(config, context) {
190
+ if (!is(config)) {
191
+ return undefined;
192
+ }
193
+ const result = {};
194
+ if (config.executable !== undefined) {
195
+ result.executable = config.executable;
196
+ }
197
+ if (config.args !== undefined) {
198
+ result.args = config.args.slice();
199
+ }
200
+ if (config.quoting !== undefined) {
201
+ result.quoting = deepClone(config.quoting);
202
+ }
203
+ return result;
204
+ }
205
+ ShellConfiguration.from = from;
206
+ function isEmpty(value) {
207
+ return _isEmpty(value, properties, true);
208
+ }
209
+ ShellConfiguration.isEmpty = isEmpty;
210
+ function assignProperties(target, source) {
211
+ return _assignProperties(target, source, properties);
212
+ }
213
+ ShellConfiguration.assignProperties = assignProperties;
214
+ function fillProperties(target, source) {
215
+ return _fillProperties(target, source, properties, true);
216
+ }
217
+ ShellConfiguration.fillProperties = fillProperties;
218
+ function fillDefaults(value, context) {
219
+ return value;
220
+ }
221
+ ShellConfiguration.fillDefaults = fillDefaults;
222
+ function freeze(value) {
223
+ if (!value) {
224
+ return undefined;
225
+ }
226
+ return ( Object.freeze(value));
227
+ }
228
+ ShellConfiguration.freeze = freeze;
229
+ })(ShellConfiguration || (ShellConfiguration = {})));
230
+ var CommandOptions;
231
+ ( (function(CommandOptions) {
232
+ const properties = [{ property: 'cwd' }, { property: 'env' }, { property: 'shell', type: ShellConfiguration }];
233
+ const defaults = { cwd: '${workspaceFolder}' };
234
+ function from(options, context) {
235
+ const result = {};
236
+ if (options.cwd !== undefined) {
237
+ if (isString(options.cwd)) {
238
+ result.cwd = options.cwd;
239
+ }
240
+ else {
241
+ context.taskLoadIssues.push(( localizeWithPath(
242
+ 'vs/workbench/contrib/tasks/common/taskConfiguration',
243
+ 'ConfigurationParser.invalidCWD',
244
+ 'Warning: options.cwd must be of type string. Ignoring value {0}\n',
245
+ options.cwd
246
+ )));
247
+ }
248
+ }
249
+ if (options.env !== undefined) {
250
+ result.env = deepClone(options.env);
251
+ }
252
+ result.shell = ShellConfiguration.from(options.shell, context);
253
+ return isEmpty(result) ? undefined : result;
254
+ }
255
+ CommandOptions.from = from;
256
+ function isEmpty(value) {
257
+ return _isEmpty(value, properties);
258
+ }
259
+ CommandOptions.isEmpty = isEmpty;
260
+ function assignProperties(target, source) {
261
+ if ((source === undefined) || isEmpty(source)) {
262
+ return target;
263
+ }
264
+ if ((target === undefined) || isEmpty(target)) {
265
+ return source;
266
+ }
267
+ assignProperty(target, source, 'cwd');
268
+ if (target.env === undefined) {
269
+ target.env = source.env;
270
+ }
271
+ else if (source.env !== undefined) {
272
+ const env = Object.create(null);
273
+ if (target.env !== undefined) {
274
+ ( Object.keys(target.env)).forEach(key => env[key] = target.env[key]);
275
+ }
276
+ if (source.env !== undefined) {
277
+ ( Object.keys(source.env)).forEach(key => env[key] = source.env[key]);
278
+ }
279
+ target.env = env;
280
+ }
281
+ target.shell = ShellConfiguration.assignProperties(target.shell, source.shell);
282
+ return target;
283
+ }
284
+ CommandOptions.assignProperties = assignProperties;
285
+ function fillProperties(target, source) {
286
+ return _fillProperties(target, source, properties);
287
+ }
288
+ CommandOptions.fillProperties = fillProperties;
289
+ function fillDefaults(value, context) {
290
+ return _fillDefaults(value, defaults, properties, context);
291
+ }
292
+ CommandOptions.fillDefaults = fillDefaults;
293
+ function freeze(value) {
294
+ return _freeze(value, properties);
295
+ }
296
+ CommandOptions.freeze = freeze;
297
+ })(CommandOptions || (CommandOptions = {})));
298
+ var CommandConfiguration;
299
+ ( (function(CommandConfiguration) {
300
+ let PresentationOptions;
301
+ ( (function(PresentationOptions) {
302
+ const properties = [{ property: 'echo' }, { property: 'reveal' }, { property: 'revealProblems' }, { property: 'focus' }, { property: 'panel' }, { property: 'showReuseMessage' }, { property: 'clear' }, { property: 'group' }, { property: 'close' }];
303
+ function from(config, context) {
304
+ let echo;
305
+ let reveal;
306
+ let revealProblems;
307
+ let focus;
308
+ let panel;
309
+ let showReuseMessage;
310
+ let clear;
311
+ let group;
312
+ let close;
313
+ let hasProps = false;
314
+ if (isBoolean(config.echoCommand)) {
315
+ echo = config.echoCommand;
316
+ hasProps = true;
317
+ }
318
+ if (isString(config.showOutput)) {
319
+ reveal = RevealKind.fromString(config.showOutput);
320
+ hasProps = true;
321
+ }
322
+ const presentation = config.presentation || config.terminal;
323
+ if (presentation) {
324
+ if (isBoolean(presentation.echo)) {
325
+ echo = presentation.echo;
326
+ }
327
+ if (isString(presentation.reveal)) {
328
+ reveal = RevealKind.fromString(presentation.reveal);
329
+ }
330
+ if (isString(presentation.revealProblems)) {
331
+ revealProblems = RevealProblemKind.fromString(presentation.revealProblems);
332
+ }
333
+ if (isBoolean(presentation.focus)) {
334
+ focus = presentation.focus;
335
+ }
336
+ if (isString(presentation.panel)) {
337
+ panel = PanelKind.fromString(presentation.panel);
338
+ }
339
+ if (isBoolean(presentation.showReuseMessage)) {
340
+ showReuseMessage = presentation.showReuseMessage;
341
+ }
342
+ if (isBoolean(presentation.clear)) {
343
+ clear = presentation.clear;
344
+ }
345
+ if (isString(presentation.group)) {
346
+ group = presentation.group;
347
+ }
348
+ if (isBoolean(presentation.close)) {
349
+ close = presentation.close;
350
+ }
351
+ hasProps = true;
352
+ }
353
+ if (!hasProps) {
354
+ return undefined;
355
+ }
356
+ return { echo: echo, reveal: reveal, revealProblems: revealProblems, focus: focus, panel: panel, showReuseMessage: showReuseMessage, clear: clear, group, close: close };
357
+ }
358
+ PresentationOptions.from = from;
359
+ function assignProperties(target, source) {
360
+ return _assignProperties(target, source, properties);
361
+ }
362
+ PresentationOptions.assignProperties = assignProperties;
363
+ function fillProperties(target, source) {
364
+ return _fillProperties(target, source, properties);
365
+ }
366
+ PresentationOptions.fillProperties = fillProperties;
367
+ function fillDefaults(value, context) {
368
+ const defaultEcho = context.engine === ExecutionEngine$1.Terminal ? true : false;
369
+ return _fillDefaults(value, { echo: defaultEcho, reveal: RevealKind.Always, revealProblems: RevealProblemKind.Never, focus: false, panel: PanelKind.Shared, showReuseMessage: true, clear: false }, properties, context);
370
+ }
371
+ PresentationOptions.fillDefaults = fillDefaults;
372
+ function freeze(value) {
373
+ return _freeze(value, properties);
374
+ }
375
+ PresentationOptions.freeze = freeze;
376
+ function isEmpty(value) {
377
+ return _isEmpty(value, properties);
378
+ }
379
+ PresentationOptions.isEmpty = isEmpty;
380
+ })(
381
+ PresentationOptions = CommandConfiguration.PresentationOptions || (CommandConfiguration.PresentationOptions = {})
382
+ ));
383
+ let ShellString;
384
+ ( (function(ShellString) {
385
+ function from(value) {
386
+ if (value === undefined || value === null) {
387
+ return undefined;
388
+ }
389
+ if (isString(value)) {
390
+ return value;
391
+ }
392
+ else if (isStringArray(value)) {
393
+ return value.join(' ');
394
+ }
395
+ else {
396
+ const quoting = ShellQuoting.from(value.quoting);
397
+ const result = isString(value.value) ? value.value : isStringArray(value.value) ? value.value.join(' ') : undefined;
398
+ if (result) {
399
+ return {
400
+ value: result,
401
+ quoting: quoting
402
+ };
403
+ }
404
+ else {
405
+ return undefined;
406
+ }
407
+ }
408
+ }
409
+ ShellString.from = from;
410
+ })(ShellString || (ShellString = {})));
411
+ const properties = [
412
+ { property: 'runtime' }, { property: 'name' }, { property: 'options', type: CommandOptions },
413
+ { property: 'args' }, { property: 'taskSelector' }, { property: 'suppressTaskName' },
414
+ { property: 'presentation', type: PresentationOptions }
415
+ ];
416
+ function from(config, context) {
417
+ let result = fromBase(config, context);
418
+ let osConfig = undefined;
419
+ if (config.windows && context.platform === 3 ) {
420
+ osConfig = fromBase(config.windows, context);
421
+ }
422
+ else if (config.osx && context.platform === 1 ) {
423
+ osConfig = fromBase(config.osx, context);
424
+ }
425
+ else if (config.linux && context.platform === 2 ) {
426
+ osConfig = fromBase(config.linux, context);
427
+ }
428
+ if (osConfig) {
429
+ result = assignProperties(result, osConfig, context.schemaVersion === 2 );
430
+ }
431
+ return isEmpty(result) ? undefined : result;
432
+ }
433
+ CommandConfiguration.from = from;
434
+ function fromBase(config, context) {
435
+ const name = ShellString.from(config.command);
436
+ let runtime;
437
+ if (isString(config.type)) {
438
+ if (config.type === 'shell' || config.type === 'process') {
439
+ runtime = RuntimeType.fromString(config.type);
440
+ }
441
+ }
442
+ const isShellConfiguration = ShellConfiguration.is(config.isShellCommand);
443
+ if (isBoolean(config.isShellCommand) || isShellConfiguration) {
444
+ runtime = RuntimeType.Shell;
445
+ }
446
+ else if (config.isShellCommand !== undefined) {
447
+ runtime = !!config.isShellCommand ? RuntimeType.Shell : RuntimeType.Process;
448
+ }
449
+ const result = {
450
+ name: name,
451
+ runtime: runtime,
452
+ presentation: PresentationOptions.from(config, context)
453
+ };
454
+ if (config.args !== undefined) {
455
+ result.args = [];
456
+ for (const arg of config.args) {
457
+ const converted = ShellString.from(arg);
458
+ if (converted !== undefined) {
459
+ result.args.push(converted);
460
+ }
461
+ else {
462
+ context.taskLoadIssues.push(( localizeWithPath(
463
+ 'vs/workbench/contrib/tasks/common/taskConfiguration',
464
+ 'ConfigurationParser.inValidArg',
465
+ 'Error: command argument must either be a string or a quoted string. Provided value is:\n{0}',
466
+ arg ? JSON.stringify(arg, undefined, 4) : 'undefined'
467
+ )));
468
+ }
469
+ }
470
+ }
471
+ if (config.options !== undefined) {
472
+ result.options = CommandOptions.from(config.options, context);
473
+ if (result.options && result.options.shell === undefined && isShellConfiguration) {
474
+ result.options.shell = ShellConfiguration.from(config.isShellCommand, context);
475
+ if (context.engine !== ExecutionEngine$1.Terminal) {
476
+ context.taskLoadIssues.push(( localizeWithPath(
477
+ 'vs/workbench/contrib/tasks/common/taskConfiguration',
478
+ 'ConfigurationParser.noShell',
479
+ 'Warning: shell configuration is only supported when executing tasks in the terminal.'
480
+ )));
481
+ }
482
+ }
483
+ }
484
+ if (isString(config.taskSelector)) {
485
+ result.taskSelector = config.taskSelector;
486
+ }
487
+ if (isBoolean(config.suppressTaskName)) {
488
+ result.suppressTaskName = config.suppressTaskName;
489
+ }
490
+ return isEmpty(result) ? undefined : result;
491
+ }
492
+ function hasCommand(value) {
493
+ return value && !!value.name;
494
+ }
495
+ CommandConfiguration.hasCommand = hasCommand;
496
+ function isEmpty(value) {
497
+ return _isEmpty(value, properties);
498
+ }
499
+ CommandConfiguration.isEmpty = isEmpty;
500
+ function assignProperties(target, source, overwriteArgs) {
501
+ if (isEmpty(source)) {
502
+ return target;
503
+ }
504
+ if (isEmpty(target)) {
505
+ return source;
506
+ }
507
+ assignProperty(target, source, 'name');
508
+ assignProperty(target, source, 'runtime');
509
+ assignProperty(target, source, 'taskSelector');
510
+ assignProperty(target, source, 'suppressTaskName');
511
+ if (source.args !== undefined) {
512
+ if (target.args === undefined || overwriteArgs) {
513
+ target.args = source.args;
514
+ }
515
+ else {
516
+ target.args = target.args.concat(source.args);
517
+ }
518
+ }
519
+ target.presentation = PresentationOptions.assignProperties(target.presentation, source.presentation);
520
+ target.options = CommandOptions.assignProperties(target.options, source.options);
521
+ return target;
522
+ }
523
+ CommandConfiguration.assignProperties = assignProperties;
524
+ function fillProperties(target, source) {
525
+ return _fillProperties(target, source, properties);
526
+ }
527
+ CommandConfiguration.fillProperties = fillProperties;
528
+ function fillGlobals(target, source, taskName) {
529
+ if ((source === undefined) || isEmpty(source)) {
530
+ return target;
531
+ }
532
+ target = target || {
533
+ name: undefined,
534
+ runtime: undefined,
535
+ presentation: undefined
536
+ };
537
+ if (target.name === undefined) {
538
+ fillProperty(target, source, 'name');
539
+ fillProperty(target, source, 'taskSelector');
540
+ fillProperty(target, source, 'suppressTaskName');
541
+ let args = source.args ? source.args.slice() : [];
542
+ if (!target.suppressTaskName && taskName) {
543
+ if (target.taskSelector !== undefined) {
544
+ args.push(target.taskSelector + taskName);
545
+ }
546
+ else {
547
+ args.push(taskName);
548
+ }
549
+ }
550
+ if (target.args) {
551
+ args = args.concat(target.args);
552
+ }
553
+ target.args = args;
554
+ }
555
+ fillProperty(target, source, 'runtime');
556
+ target.presentation = PresentationOptions.fillProperties(target.presentation, source.presentation);
557
+ target.options = CommandOptions.fillProperties(target.options, source.options);
558
+ return target;
559
+ }
560
+ CommandConfiguration.fillGlobals = fillGlobals;
561
+ function fillDefaults(value, context) {
562
+ if (!value || Object.isFrozen(value)) {
563
+ return;
564
+ }
565
+ if (value.name !== undefined && value.runtime === undefined) {
566
+ value.runtime = RuntimeType.Process;
567
+ }
568
+ value.presentation = PresentationOptions.fillDefaults(value.presentation, context);
569
+ if (!isEmpty(value)) {
570
+ value.options = CommandOptions.fillDefaults(value.options, context);
571
+ }
572
+ if (value.args === undefined) {
573
+ value.args = EMPTY_ARRAY;
574
+ }
575
+ if (value.suppressTaskName === undefined) {
576
+ value.suppressTaskName = ((context.schemaVersion === 2) );
577
+ }
578
+ }
579
+ CommandConfiguration.fillDefaults = fillDefaults;
580
+ function freeze(value) {
581
+ return _freeze(value, properties);
582
+ }
583
+ CommandConfiguration.freeze = freeze;
584
+ })(CommandConfiguration || (CommandConfiguration = {})));
585
+ var ProblemMatcherConverter;
586
+ ( (function(ProblemMatcherConverter) {
587
+ function namedFrom(declares, context) {
588
+ const result = Object.create(null);
589
+ if (!Array.isArray(declares)) {
590
+ return result;
591
+ }
592
+ declares.forEach((value) => {
593
+ const namedProblemMatcher = (( new ProblemMatcherParser(context.problemReporter))).parse(value);
594
+ if (isNamedProblemMatcher(namedProblemMatcher)) {
595
+ result[namedProblemMatcher.name] = namedProblemMatcher;
596
+ }
597
+ else {
598
+ context.problemReporter.error(( localizeWithPath(
599
+ 'vs/workbench/contrib/tasks/common/taskConfiguration',
600
+ 'ConfigurationParser.noName',
601
+ 'Error: Problem Matcher in declare scope must have a name:\n{0}\n',
602
+ JSON.stringify(value, undefined, 4)
603
+ )));
604
+ }
605
+ });
606
+ return result;
607
+ }
608
+ ProblemMatcherConverter.namedFrom = namedFrom;
609
+ function fromWithOsConfig(external, context) {
610
+ let result = {};
611
+ if (external.windows && external.windows.problemMatcher && context.platform === 3 ) {
612
+ result = from(external.windows.problemMatcher, context);
613
+ }
614
+ else if (external.osx && external.osx.problemMatcher && context.platform === 1 ) {
615
+ result = from(external.osx.problemMatcher, context);
616
+ }
617
+ else if (external.linux && external.linux.problemMatcher && context.platform === 2 ) {
618
+ result = from(external.linux.problemMatcher, context);
619
+ }
620
+ else if (external.problemMatcher) {
621
+ result = from(external.problemMatcher, context);
622
+ }
623
+ return result;
624
+ }
625
+ ProblemMatcherConverter.fromWithOsConfig = fromWithOsConfig;
626
+ function from(config, context) {
627
+ const result = [];
628
+ if (config === undefined) {
629
+ return { value: result };
630
+ }
631
+ const errors = [];
632
+ function addResult(matcher) {
633
+ if (matcher.value) {
634
+ result.push(matcher.value);
635
+ }
636
+ if (matcher.errors) {
637
+ errors.push(...matcher.errors);
638
+ }
639
+ }
640
+ const kind = getProblemMatcherKind(config);
641
+ if (kind === ProblemMatcherKind.Unknown) {
642
+ const error = ( localizeWithPath(
643
+ 'vs/workbench/contrib/tasks/common/taskConfiguration',
644
+ 'ConfigurationParser.unknownMatcherKind',
645
+ 'Warning: the defined problem matcher is unknown. Supported types are string | ProblemMatcher | Array<string | ProblemMatcher>.\n{0}\n',
646
+ JSON.stringify(config, null, 4)
647
+ ));
648
+ context.problemReporter.warn(error);
649
+ }
650
+ else if (kind === ProblemMatcherKind.String || kind === ProblemMatcherKind.ProblemMatcher) {
651
+ addResult(resolveProblemMatcher(config, context));
652
+ }
653
+ else if (kind === ProblemMatcherKind.Array) {
654
+ const problemMatchers = config;
655
+ problemMatchers.forEach(problemMatcher => {
656
+ addResult(resolveProblemMatcher(problemMatcher, context));
657
+ });
658
+ }
659
+ return { value: result, errors };
660
+ }
661
+ ProblemMatcherConverter.from = from;
662
+ function getProblemMatcherKind(value) {
663
+ if (isString(value)) {
664
+ return ProblemMatcherKind.String;
665
+ }
666
+ else if (Array.isArray(value)) {
667
+ return ProblemMatcherKind.Array;
668
+ }
669
+ else if (!isUndefined(value)) {
670
+ return ProblemMatcherKind.ProblemMatcher;
671
+ }
672
+ else {
673
+ return ProblemMatcherKind.Unknown;
674
+ }
675
+ }
676
+ function resolveProblemMatcher(value, context) {
677
+ if (isString(value)) {
678
+ let variableName = value;
679
+ if (variableName.length > 1 && variableName[0] === '$') {
680
+ variableName = variableName.substring(1);
681
+ const global = ProblemMatcherRegistry.get(variableName);
682
+ if (global) {
683
+ return { value: deepClone(global) };
684
+ }
685
+ let localProblemMatcher = context.namedProblemMatchers[variableName];
686
+ if (localProblemMatcher) {
687
+ localProblemMatcher = deepClone(localProblemMatcher);
688
+ delete localProblemMatcher.name;
689
+ return { value: localProblemMatcher };
690
+ }
691
+ }
692
+ return { errors: [( localizeWithPath(
693
+ 'vs/workbench/contrib/tasks/common/taskConfiguration',
694
+ 'ConfigurationParser.invalidVariableReference',
695
+ 'Error: Invalid problemMatcher reference: {0}\n',
696
+ value
697
+ ))] };
698
+ }
699
+ else {
700
+ const json = value;
701
+ return { value: ( new ProblemMatcherParser(context.problemReporter)).parse(json) };
702
+ }
703
+ }
704
+ })(ProblemMatcherConverter || (ProblemMatcherConverter = {})));
705
+ const partialSource = {
706
+ label: 'Workspace',
707
+ config: undefined
708
+ };
709
+ var GroupKind;
710
+ ( (function(GroupKind) {
711
+ function from(external) {
712
+ if (external === undefined) {
713
+ return undefined;
714
+ }
715
+ else if (isString(external) && TaskGroup.is(external)) {
716
+ return { _id: external, isDefault: false };
717
+ }
718
+ else if (isString(external.kind) && TaskGroup.is(external.kind)) {
719
+ const group = external.kind;
720
+ const isDefault = isUndefined(external.isDefault) ? false : external.isDefault;
721
+ return { _id: group, isDefault };
722
+ }
723
+ return undefined;
724
+ }
725
+ GroupKind.from = from;
726
+ function to(group) {
727
+ if (isString(group)) {
728
+ return group;
729
+ }
730
+ else if (!group.isDefault) {
731
+ return group._id;
732
+ }
733
+ return {
734
+ kind: group._id,
735
+ isDefault: group.isDefault,
736
+ };
737
+ }
738
+ GroupKind.to = to;
739
+ })(GroupKind || (GroupKind = {})));
740
+ var TaskDependency;
741
+ ( (function(TaskDependency) {
742
+ function uriFromSource(context, source) {
743
+ switch (source) {
744
+ case TaskConfigSource.User: return USER_TASKS_GROUP_KEY;
745
+ case TaskConfigSource.TasksJson: return context.workspaceFolder.uri;
746
+ default: return context.workspace && context.workspace.configuration ? context.workspace.configuration : context.workspaceFolder.uri;
747
+ }
748
+ }
749
+ function from(external, context, source) {
750
+ if (isString(external)) {
751
+ return { uri: uriFromSource(context, source), task: external };
752
+ }
753
+ else if (ITaskIdentifier.is(external)) {
754
+ return {
755
+ uri: uriFromSource(context, source),
756
+ task: TaskDefinition.createTaskIdentifier(external, context.problemReporter)
757
+ };
758
+ }
759
+ else {
760
+ return undefined;
761
+ }
762
+ }
763
+ TaskDependency.from = from;
764
+ })(TaskDependency || (TaskDependency = {})));
765
+ var DependsOrder;
766
+ ( (function(DependsOrder) {
767
+ function from(order) {
768
+ switch (order) {
769
+ case "sequence" :
770
+ return "sequence" ;
771
+ case "parallel" :
772
+ default:
773
+ return "parallel" ;
774
+ }
775
+ }
776
+ DependsOrder.from = from;
777
+ })(DependsOrder || (DependsOrder = {})));
778
+ var ConfigurationProperties;
779
+ ( (function(ConfigurationProperties) {
780
+ const properties = [
781
+ { property: 'name' },
782
+ { property: 'identifier' },
783
+ { property: 'group' },
784
+ { property: 'isBackground' },
785
+ { property: 'promptOnClose' },
786
+ { property: 'dependsOn' },
787
+ { property: 'presentation', type: CommandConfiguration.PresentationOptions },
788
+ { property: 'problemMatchers' },
789
+ { property: 'options' },
790
+ { property: 'icon' },
791
+ { property: 'hide' }
792
+ ];
793
+ function from(external, context, includeCommandOptions, source, properties) {
794
+ if (!external) {
795
+ return {};
796
+ }
797
+ const result = {};
798
+ if (properties) {
799
+ for (const propertyName of ( Object.keys(properties))) {
800
+ if (external[propertyName] !== undefined) {
801
+ result[propertyName] = deepClone(external[propertyName]);
802
+ }
803
+ }
804
+ }
805
+ if (isString(external.taskName)) {
806
+ result.name = external.taskName;
807
+ }
808
+ if (isString(external.label) && context.schemaVersion === 2 ) {
809
+ result.name = external.label;
810
+ }
811
+ if (isString(external.identifier)) {
812
+ result.identifier = external.identifier;
813
+ }
814
+ result.icon = external.icon;
815
+ result.hide = external.hide;
816
+ if (external.isBackground !== undefined) {
817
+ result.isBackground = !!external.isBackground;
818
+ }
819
+ if (external.promptOnClose !== undefined) {
820
+ result.promptOnClose = !!external.promptOnClose;
821
+ }
822
+ result.group = GroupKind.from(external.group);
823
+ if (external.dependsOn !== undefined) {
824
+ if (Array.isArray(external.dependsOn)) {
825
+ result.dependsOn = external.dependsOn.reduce((dependencies, item) => {
826
+ const dependency = TaskDependency.from(item, context, source);
827
+ if (dependency) {
828
+ dependencies.push(dependency);
829
+ }
830
+ return dependencies;
831
+ }, []);
832
+ }
833
+ else {
834
+ const dependsOnValue = TaskDependency.from(external.dependsOn, context, source);
835
+ result.dependsOn = dependsOnValue ? [dependsOnValue] : undefined;
836
+ }
837
+ }
838
+ result.dependsOrder = DependsOrder.from(external.dependsOrder);
839
+ if (includeCommandOptions && (external.presentation !== undefined || external.terminal !== undefined)) {
840
+ result.presentation = CommandConfiguration.PresentationOptions.from(external, context);
841
+ }
842
+ if (includeCommandOptions && (external.options !== undefined)) {
843
+ result.options = CommandOptions.from(external.options, context);
844
+ }
845
+ const configProblemMatcher = ProblemMatcherConverter.fromWithOsConfig(external, context);
846
+ if (configProblemMatcher.value !== undefined) {
847
+ result.problemMatchers = configProblemMatcher.value;
848
+ }
849
+ if (external.detail) {
850
+ result.detail = external.detail;
851
+ }
852
+ return isEmpty(result) ? {} : { value: result, errors: configProblemMatcher.errors };
853
+ }
854
+ ConfigurationProperties.from = from;
855
+ function isEmpty(value) {
856
+ return _isEmpty(value, properties);
857
+ }
858
+ ConfigurationProperties.isEmpty = isEmpty;
859
+ })(ConfigurationProperties || (ConfigurationProperties = {})));
860
+ var ConfiguringTask;
861
+ ( (function(ConfiguringTask) {
862
+ const grunt = 'grunt.';
863
+ const jake = 'jake.';
864
+ const gulp = 'gulp.';
865
+ const npm = 'vscode.npm.';
866
+ const typescript = 'vscode.typescript.';
867
+ function from(external, context, index, source, registry) {
868
+ if (!external) {
869
+ return undefined;
870
+ }
871
+ const type = external.type;
872
+ const customize = external.customize;
873
+ if (!type && !customize) {
874
+ context.problemReporter.error(( localizeWithPath(
875
+ 'vs/workbench/contrib/tasks/common/taskConfiguration',
876
+ 'ConfigurationParser.noTaskType',
877
+ 'Error: tasks configuration must have a type property. The configuration will be ignored.\n{0}\n',
878
+ JSON.stringify(external, null, 4)
879
+ )));
880
+ return undefined;
881
+ }
882
+ const typeDeclaration = type ? registry?.get?.(type) || TaskDefinitionRegistry.get(type) : undefined;
883
+ if (!typeDeclaration) {
884
+ const message = ( localizeWithPath(
885
+ 'vs/workbench/contrib/tasks/common/taskConfiguration',
886
+ 'ConfigurationParser.noTypeDefinition',
887
+ 'Error: there is no registered task type \'{0}\'. Did you miss installing an extension that provides a corresponding task provider?',
888
+ type
889
+ ));
890
+ context.problemReporter.error(message);
891
+ return undefined;
892
+ }
893
+ let identifier;
894
+ if (isString(customize)) {
895
+ if (customize.indexOf(grunt) === 0) {
896
+ identifier = { type: 'grunt', task: customize.substring(grunt.length) };
897
+ }
898
+ else if (customize.indexOf(jake) === 0) {
899
+ identifier = { type: 'jake', task: customize.substring(jake.length) };
900
+ }
901
+ else if (customize.indexOf(gulp) === 0) {
902
+ identifier = { type: 'gulp', task: customize.substring(gulp.length) };
903
+ }
904
+ else if (customize.indexOf(npm) === 0) {
905
+ identifier = { type: 'npm', script: customize.substring(npm.length + 4) };
906
+ }
907
+ else if (customize.indexOf(typescript) === 0) {
908
+ identifier = { type: 'typescript', tsconfig: customize.substring(typescript.length + 6) };
909
+ }
910
+ }
911
+ else {
912
+ if (isString(external.type)) {
913
+ identifier = external;
914
+ }
915
+ }
916
+ if (identifier === undefined) {
917
+ context.problemReporter.error(( localizeWithPath(
918
+ 'vs/workbench/contrib/tasks/common/taskConfiguration',
919
+ 'ConfigurationParser.missingType',
920
+ 'Error: the task configuration \'{0}\' is missing the required property \'type\'. The task configuration will be ignored.',
921
+ JSON.stringify(external, undefined, 0)
922
+ )));
923
+ return undefined;
924
+ }
925
+ const taskIdentifier = TaskDefinition.createTaskIdentifier(identifier, context.problemReporter);
926
+ if (taskIdentifier === undefined) {
927
+ context.problemReporter.error(( localizeWithPath(
928
+ 'vs/workbench/contrib/tasks/common/taskConfiguration',
929
+ 'ConfigurationParser.incorrectType',
930
+ 'Error: the task configuration \'{0}\' is using an unknown type. The task configuration will be ignored.',
931
+ JSON.stringify(external, undefined, 0)
932
+ )));
933
+ return undefined;
934
+ }
935
+ const configElement = {
936
+ workspaceFolder: context.workspaceFolder,
937
+ file: '.vscode/tasks.json',
938
+ index,
939
+ element: external
940
+ };
941
+ let taskSource;
942
+ switch (source) {
943
+ case TaskConfigSource.User: {
944
+ taskSource = Object.assign({}, partialSource, { kind: TaskSourceKind.User, config: configElement });
945
+ break;
946
+ }
947
+ case TaskConfigSource.WorkspaceFile: {
948
+ taskSource = Object.assign({}, partialSource, { kind: TaskSourceKind.WorkspaceFile, config: configElement });
949
+ break;
950
+ }
951
+ default: {
952
+ taskSource = Object.assign({}, partialSource, { kind: TaskSourceKind.Workspace, config: configElement });
953
+ break;
954
+ }
955
+ }
956
+ const result = new ConfiguringTask$1(`${typeDeclaration.extensionId}.${taskIdentifier._key}`, taskSource, undefined, type, taskIdentifier, RunOptions.fromConfiguration(external.runOptions), { hide: external.hide });
957
+ const configuration = ConfigurationProperties.from(external, context, true, source, typeDeclaration.properties);
958
+ result.addTaskLoadMessages(configuration.errors);
959
+ if (configuration.value) {
960
+ result.configurationProperties = Object.assign(result.configurationProperties, configuration.value);
961
+ if (result.configurationProperties.name) {
962
+ result._label = result.configurationProperties.name;
963
+ }
964
+ else {
965
+ let label = result.configures.type;
966
+ if (typeDeclaration.required && typeDeclaration.required.length > 0) {
967
+ for (const required of typeDeclaration.required) {
968
+ const value = result.configures[required];
969
+ if (value) {
970
+ label = label + ': ' + value;
971
+ break;
972
+ }
973
+ }
974
+ }
975
+ result._label = label;
976
+ }
977
+ if (!result.configurationProperties.identifier) {
978
+ result.configurationProperties.identifier = taskIdentifier._key;
979
+ }
980
+ }
981
+ return result;
982
+ }
983
+ ConfiguringTask.from = from;
984
+ })(ConfiguringTask || (ConfiguringTask = {})));
985
+ var CustomTask;
986
+ ( (function(CustomTask) {
987
+ function from(external, context, index, source) {
988
+ if (!external) {
989
+ return undefined;
990
+ }
991
+ let type = external.type;
992
+ if (type === undefined || type === null) {
993
+ type = CUSTOMIZED_TASK_TYPE;
994
+ }
995
+ if (type !== CUSTOMIZED_TASK_TYPE && type !== 'shell' && type !== 'process') {
996
+ context.problemReporter.error(( localizeWithPath(
997
+ 'vs/workbench/contrib/tasks/common/taskConfiguration',
998
+ 'ConfigurationParser.notCustom',
999
+ 'Error: tasks is not declared as a custom task. The configuration will be ignored.\n{0}\n',
1000
+ JSON.stringify(external, null, 4)
1001
+ )));
1002
+ return undefined;
1003
+ }
1004
+ let taskName = external.taskName;
1005
+ if (isString(external.label) && context.schemaVersion === 2 ) {
1006
+ taskName = external.label;
1007
+ }
1008
+ if (!taskName) {
1009
+ context.problemReporter.error(( localizeWithPath(
1010
+ 'vs/workbench/contrib/tasks/common/taskConfiguration',
1011
+ 'ConfigurationParser.noTaskName',
1012
+ 'Error: a task must provide a label property. The task will be ignored.\n{0}\n',
1013
+ JSON.stringify(external, null, 4)
1014
+ )));
1015
+ return undefined;
1016
+ }
1017
+ let taskSource;
1018
+ switch (source) {
1019
+ case TaskConfigSource.User: {
1020
+ taskSource = Object.assign({}, partialSource, { kind: TaskSourceKind.User, config: { index, element: external, file: '.vscode/tasks.json', workspaceFolder: context.workspaceFolder } });
1021
+ break;
1022
+ }
1023
+ case TaskConfigSource.WorkspaceFile: {
1024
+ taskSource = Object.assign({}, partialSource, { kind: TaskSourceKind.WorkspaceFile, config: { index, element: external, file: '.vscode/tasks.json', workspaceFolder: context.workspaceFolder, workspace: context.workspace } });
1025
+ break;
1026
+ }
1027
+ default: {
1028
+ taskSource = Object.assign({}, partialSource, { kind: TaskSourceKind.Workspace, config: { index, element: external, file: '.vscode/tasks.json', workspaceFolder: context.workspaceFolder } });
1029
+ break;
1030
+ }
1031
+ }
1032
+ const result = new CustomTask$1(context.uuidMap.getUUID(taskName), taskSource, taskName, CUSTOMIZED_TASK_TYPE, undefined, false, RunOptions.fromConfiguration(external.runOptions), {
1033
+ name: taskName,
1034
+ identifier: taskName,
1035
+ });
1036
+ const configuration = ConfigurationProperties.from(external, context, false, source);
1037
+ result.addTaskLoadMessages(configuration.errors);
1038
+ if (configuration.value) {
1039
+ result.configurationProperties = Object.assign(result.configurationProperties, configuration.value);
1040
+ }
1041
+ {
1042
+ const legacy = external;
1043
+ if (result.configurationProperties.isBackground === undefined && legacy.isWatching !== undefined) {
1044
+ result.configurationProperties.isBackground = !!legacy.isWatching;
1045
+ }
1046
+ if (result.configurationProperties.group === undefined) {
1047
+ if (legacy.isBuildCommand === true) {
1048
+ result.configurationProperties.group = TaskGroup.Build;
1049
+ }
1050
+ else if (legacy.isTestCommand === true) {
1051
+ result.configurationProperties.group = TaskGroup.Test;
1052
+ }
1053
+ }
1054
+ }
1055
+ const command = CommandConfiguration.from(external, context);
1056
+ if (command) {
1057
+ result.command = command;
1058
+ }
1059
+ if (external.command !== undefined) {
1060
+ command.suppressTaskName = true;
1061
+ }
1062
+ return result;
1063
+ }
1064
+ CustomTask.from = from;
1065
+ function fillGlobals(task, globals) {
1066
+ if (CommandConfiguration.hasCommand(task.command) || task.configurationProperties.dependsOn === undefined) {
1067
+ task.command = CommandConfiguration.fillGlobals(task.command, globals.command, task.configurationProperties.name);
1068
+ }
1069
+ if (task.configurationProperties.problemMatchers === undefined && globals.problemMatcher !== undefined) {
1070
+ task.configurationProperties.problemMatchers = deepClone(globals.problemMatcher);
1071
+ task.hasDefinedMatchers = true;
1072
+ }
1073
+ if (task.configurationProperties.promptOnClose === undefined && task.configurationProperties.isBackground === undefined && globals.promptOnClose !== undefined) {
1074
+ task.configurationProperties.promptOnClose = globals.promptOnClose;
1075
+ }
1076
+ }
1077
+ CustomTask.fillGlobals = fillGlobals;
1078
+ function fillDefaults(task, context) {
1079
+ CommandConfiguration.fillDefaults(task.command, context);
1080
+ if (task.configurationProperties.promptOnClose === undefined) {
1081
+ task.configurationProperties.promptOnClose = task.configurationProperties.isBackground !== undefined ? !task.configurationProperties.isBackground : true;
1082
+ }
1083
+ if (task.configurationProperties.isBackground === undefined) {
1084
+ task.configurationProperties.isBackground = false;
1085
+ }
1086
+ if (task.configurationProperties.problemMatchers === undefined) {
1087
+ task.configurationProperties.problemMatchers = EMPTY_ARRAY;
1088
+ }
1089
+ }
1090
+ CustomTask.fillDefaults = fillDefaults;
1091
+ function createCustomTask(contributedTask, configuredProps) {
1092
+ const result = new CustomTask$1(configuredProps._id, Object.assign({}, configuredProps._source, { customizes: contributedTask.defines }), configuredProps.configurationProperties.name || contributedTask._label, CUSTOMIZED_TASK_TYPE, contributedTask.command, false, contributedTask.runOptions, {
1093
+ name: configuredProps.configurationProperties.name || contributedTask.configurationProperties.name,
1094
+ identifier: configuredProps.configurationProperties.identifier || contributedTask.configurationProperties.identifier,
1095
+ icon: configuredProps.configurationProperties.icon,
1096
+ hide: configuredProps.configurationProperties.hide
1097
+ });
1098
+ result.addTaskLoadMessages(configuredProps.taskLoadMessages);
1099
+ const resultConfigProps = result.configurationProperties;
1100
+ assignProperty(resultConfigProps, configuredProps.configurationProperties, 'group');
1101
+ assignProperty(resultConfigProps, configuredProps.configurationProperties, 'isBackground');
1102
+ assignProperty(resultConfigProps, configuredProps.configurationProperties, 'dependsOn');
1103
+ assignProperty(resultConfigProps, configuredProps.configurationProperties, 'problemMatchers');
1104
+ assignProperty(resultConfigProps, configuredProps.configurationProperties, 'promptOnClose');
1105
+ assignProperty(resultConfigProps, configuredProps.configurationProperties, 'detail');
1106
+ result.command.presentation = CommandConfiguration.PresentationOptions.assignProperties(result.command.presentation, configuredProps.configurationProperties.presentation);
1107
+ result.command.options = CommandOptions.assignProperties(result.command.options, configuredProps.configurationProperties.options);
1108
+ result.runOptions = RunOptions.assignProperties(result.runOptions, configuredProps.runOptions);
1109
+ const contributedConfigProps = contributedTask.configurationProperties;
1110
+ fillProperty(resultConfigProps, contributedConfigProps, 'group');
1111
+ fillProperty(resultConfigProps, contributedConfigProps, 'isBackground');
1112
+ fillProperty(resultConfigProps, contributedConfigProps, 'dependsOn');
1113
+ fillProperty(resultConfigProps, contributedConfigProps, 'problemMatchers');
1114
+ fillProperty(resultConfigProps, contributedConfigProps, 'promptOnClose');
1115
+ fillProperty(resultConfigProps, contributedConfigProps, 'detail');
1116
+ result.command.presentation = CommandConfiguration.PresentationOptions.fillProperties(result.command.presentation, contributedConfigProps.presentation);
1117
+ result.command.options = CommandOptions.fillProperties(result.command.options, contributedConfigProps.options);
1118
+ result.runOptions = RunOptions.fillProperties(result.runOptions, contributedTask.runOptions);
1119
+ if (contributedTask.hasDefinedMatchers === true) {
1120
+ result.hasDefinedMatchers = true;
1121
+ }
1122
+ return result;
1123
+ }
1124
+ CustomTask.createCustomTask = createCustomTask;
1125
+ })(CustomTask || (CustomTask = {})));
1126
+ var TaskParser;
1127
+ ( (function(TaskParser) {
1128
+ function isCustomTask(value) {
1129
+ const type = value.type;
1130
+ const customize = value.customize;
1131
+ return customize === undefined && (type === undefined || type === null || type === CUSTOMIZED_TASK_TYPE || type === 'shell' || type === 'process');
1132
+ }
1133
+ const builtinTypeContextMap = {
1134
+ shell: ShellExecutionSupportedContext,
1135
+ process: ProcessExecutionSupportedContext
1136
+ };
1137
+ function from(externals, globals, context, source, registry) {
1138
+ const result = { custom: [], configured: [] };
1139
+ if (!externals) {
1140
+ return result;
1141
+ }
1142
+ const defaultBuildTask = { task: undefined, rank: -1 };
1143
+ const defaultTestTask = { task: undefined, rank: -1 };
1144
+ const schema2_0_0 = context.schemaVersion === 2 ;
1145
+ const baseLoadIssues = deepClone(context.taskLoadIssues);
1146
+ for (let index = 0; index < externals.length; index++) {
1147
+ const external = externals[index];
1148
+ const definition = external.type ? registry?.get?.(external.type) || TaskDefinitionRegistry.get(external.type) : undefined;
1149
+ let typeNotSupported = false;
1150
+ if (definition && definition.when && !context.contextKeyService.contextMatchesRules(definition.when)) {
1151
+ typeNotSupported = true;
1152
+ }
1153
+ else if (!definition && external.type) {
1154
+ for (const key of ( Object.keys(builtinTypeContextMap))) {
1155
+ if (external.type === key) {
1156
+ typeNotSupported = !ShellExecutionSupportedContext.evaluate(context.contextKeyService.getContext(null));
1157
+ break;
1158
+ }
1159
+ }
1160
+ }
1161
+ if (typeNotSupported) {
1162
+ context.problemReporter.info(( localizeWithPath(
1163
+ 'vs/workbench/contrib/tasks/common/taskConfiguration',
1164
+ 'taskConfiguration.providerUnavailable',
1165
+ 'Warning: {0} tasks are unavailable in the current environment.\n',
1166
+ external.type
1167
+ )));
1168
+ continue;
1169
+ }
1170
+ if (isCustomTask(external)) {
1171
+ const customTask = CustomTask.from(external, context, index, source);
1172
+ if (customTask) {
1173
+ CustomTask.fillGlobals(customTask, globals);
1174
+ CustomTask.fillDefaults(customTask, context);
1175
+ if (schema2_0_0) {
1176
+ if ((customTask.command === undefined || customTask.command.name === undefined) && (customTask.configurationProperties.dependsOn === undefined || customTask.configurationProperties.dependsOn.length === 0)) {
1177
+ context.problemReporter.error(( localizeWithPath(
1178
+ 'vs/workbench/contrib/tasks/common/taskConfiguration',
1179
+ 'taskConfiguration.noCommandOrDependsOn',
1180
+ 'Error: the task \'{0}\' neither specifies a command nor a dependsOn property. The task will be ignored. Its definition is:\n{1}',
1181
+ customTask.configurationProperties.name,
1182
+ JSON.stringify(external, undefined, 4)
1183
+ )));
1184
+ continue;
1185
+ }
1186
+ }
1187
+ else {
1188
+ if (customTask.command === undefined || customTask.command.name === undefined) {
1189
+ context.problemReporter.warn(( localizeWithPath(
1190
+ 'vs/workbench/contrib/tasks/common/taskConfiguration',
1191
+ 'taskConfiguration.noCommand',
1192
+ 'Error: the task \'{0}\' doesn\'t define a command. The task will be ignored. Its definition is:\n{1}',
1193
+ customTask.configurationProperties.name,
1194
+ JSON.stringify(external, undefined, 4)
1195
+ )));
1196
+ continue;
1197
+ }
1198
+ }
1199
+ if (customTask.configurationProperties.group === TaskGroup.Build && defaultBuildTask.rank < 2) {
1200
+ defaultBuildTask.task = customTask;
1201
+ defaultBuildTask.rank = 2;
1202
+ }
1203
+ else if (customTask.configurationProperties.group === TaskGroup.Test && defaultTestTask.rank < 2) {
1204
+ defaultTestTask.task = customTask;
1205
+ defaultTestTask.rank = 2;
1206
+ }
1207
+ else if (customTask.configurationProperties.name === 'build' && defaultBuildTask.rank < 1) {
1208
+ defaultBuildTask.task = customTask;
1209
+ defaultBuildTask.rank = 1;
1210
+ }
1211
+ else if (customTask.configurationProperties.name === 'test' && defaultTestTask.rank < 1) {
1212
+ defaultTestTask.task = customTask;
1213
+ defaultTestTask.rank = 1;
1214
+ }
1215
+ customTask.addTaskLoadMessages(context.taskLoadIssues);
1216
+ result.custom.push(customTask);
1217
+ }
1218
+ }
1219
+ else {
1220
+ const configuredTask = ConfiguringTask.from(external, context, index, source, registry);
1221
+ if (configuredTask) {
1222
+ configuredTask.addTaskLoadMessages(context.taskLoadIssues);
1223
+ result.configured.push(configuredTask);
1224
+ }
1225
+ }
1226
+ context.taskLoadIssues = deepClone(baseLoadIssues);
1227
+ }
1228
+ const defaultBuildGroupName = isString(defaultBuildTask.task?.configurationProperties.group) ? defaultBuildTask.task?.configurationProperties.group : defaultBuildTask.task?.configurationProperties.group?._id;
1229
+ const defaultTestTaskGroupName = isString(defaultTestTask.task?.configurationProperties.group) ? defaultTestTask.task?.configurationProperties.group : defaultTestTask.task?.configurationProperties.group?._id;
1230
+ if ((defaultBuildGroupName !== TaskGroup.Build._id) && (defaultBuildTask.rank > -1) && (defaultBuildTask.rank < 2) && defaultBuildTask.task) {
1231
+ defaultBuildTask.task.configurationProperties.group = TaskGroup.Build;
1232
+ }
1233
+ else if ((defaultTestTaskGroupName !== TaskGroup.Test._id) && (defaultTestTask.rank > -1) && (defaultTestTask.rank < 2) && defaultTestTask.task) {
1234
+ defaultTestTask.task.configurationProperties.group = TaskGroup.Test;
1235
+ }
1236
+ return result;
1237
+ }
1238
+ TaskParser.from = from;
1239
+ function assignTasks(target, source) {
1240
+ if (source === undefined || source.length === 0) {
1241
+ return target;
1242
+ }
1243
+ if (target === undefined || target.length === 0) {
1244
+ return source;
1245
+ }
1246
+ if (source) {
1247
+ const map = Object.create(null);
1248
+ target.forEach((task) => {
1249
+ map[task.configurationProperties.name] = task;
1250
+ });
1251
+ source.forEach((task) => {
1252
+ map[task.configurationProperties.name] = task;
1253
+ });
1254
+ const newTarget = [];
1255
+ target.forEach(task => {
1256
+ newTarget.push(map[task.configurationProperties.name]);
1257
+ delete map[task.configurationProperties.name];
1258
+ });
1259
+ ( Object.keys(map)).forEach(key => newTarget.push(map[key]));
1260
+ target = newTarget;
1261
+ }
1262
+ return target;
1263
+ }
1264
+ TaskParser.assignTasks = assignTasks;
1265
+ })(TaskParser || (TaskParser = {})));
1266
+ var Globals;
1267
+ ( (function(Globals) {
1268
+ function from(config, context) {
1269
+ let result = fromBase(config, context);
1270
+ let osGlobals = undefined;
1271
+ if (config.windows && context.platform === 3 ) {
1272
+ osGlobals = fromBase(config.windows, context);
1273
+ }
1274
+ else if (config.osx && context.platform === 1 ) {
1275
+ osGlobals = fromBase(config.osx, context);
1276
+ }
1277
+ else if (config.linux && context.platform === 2 ) {
1278
+ osGlobals = fromBase(config.linux, context);
1279
+ }
1280
+ if (osGlobals) {
1281
+ result = Globals.assignProperties(result, osGlobals);
1282
+ }
1283
+ const command = CommandConfiguration.from(config, context);
1284
+ if (command) {
1285
+ result.command = command;
1286
+ }
1287
+ Globals.fillDefaults(result, context);
1288
+ Globals.freeze(result);
1289
+ return result;
1290
+ }
1291
+ Globals.from = from;
1292
+ function fromBase(config, context) {
1293
+ const result = {};
1294
+ if (config.suppressTaskName !== undefined) {
1295
+ result.suppressTaskName = !!config.suppressTaskName;
1296
+ }
1297
+ if (config.promptOnClose !== undefined) {
1298
+ result.promptOnClose = !!config.promptOnClose;
1299
+ }
1300
+ if (config.problemMatcher) {
1301
+ result.problemMatcher = ProblemMatcherConverter.from(config.problemMatcher, context).value;
1302
+ }
1303
+ return result;
1304
+ }
1305
+ Globals.fromBase = fromBase;
1306
+ function isEmpty(value) {
1307
+ return !value || value.command === undefined && value.promptOnClose === undefined && value.suppressTaskName === undefined;
1308
+ }
1309
+ Globals.isEmpty = isEmpty;
1310
+ function assignProperties(target, source) {
1311
+ if (isEmpty(source)) {
1312
+ return target;
1313
+ }
1314
+ if (isEmpty(target)) {
1315
+ return source;
1316
+ }
1317
+ assignProperty(target, source, 'promptOnClose');
1318
+ assignProperty(target, source, 'suppressTaskName');
1319
+ return target;
1320
+ }
1321
+ Globals.assignProperties = assignProperties;
1322
+ function fillDefaults(value, context) {
1323
+ if (!value) {
1324
+ return;
1325
+ }
1326
+ CommandConfiguration.fillDefaults(value.command, context);
1327
+ if (value.suppressTaskName === undefined) {
1328
+ value.suppressTaskName = ((context.schemaVersion === 2) );
1329
+ }
1330
+ if (value.promptOnClose === undefined) {
1331
+ value.promptOnClose = true;
1332
+ }
1333
+ }
1334
+ Globals.fillDefaults = fillDefaults;
1335
+ function freeze(value) {
1336
+ if (value.command) {
1337
+ CommandConfiguration.freeze(value.command);
1338
+ }
1339
+ }
1340
+ Globals.freeze = freeze;
1341
+ })(Globals || (Globals = {})));
1342
+ var ExecutionEngine;
1343
+ ( (function(ExecutionEngine) {
1344
+ function from(config) {
1345
+ const runner = config.runner || config._runner;
1346
+ let result;
1347
+ if (runner) {
1348
+ switch (runner) {
1349
+ case 'terminal':
1350
+ result = ExecutionEngine$1.Terminal;
1351
+ break;
1352
+ case 'process':
1353
+ result = ExecutionEngine$1.Process;
1354
+ break;
1355
+ }
1356
+ }
1357
+ const schemaVersion = JsonSchemaVersion.from(config);
1358
+ if (schemaVersion === 1 ) {
1359
+ return result || ExecutionEngine$1.Process;
1360
+ }
1361
+ else if (schemaVersion === 2 ) {
1362
+ return ExecutionEngine$1.Terminal;
1363
+ }
1364
+ else {
1365
+ throw new Error('Shouldn\'t happen.');
1366
+ }
1367
+ }
1368
+ ExecutionEngine.from = from;
1369
+ })(ExecutionEngine || (ExecutionEngine = {})));
1370
+ var JsonSchemaVersion;
1371
+ ( (function(JsonSchemaVersion) {
1372
+ const _default = 2 ;
1373
+ function from(config) {
1374
+ const version = config.version;
1375
+ if (!version) {
1376
+ return _default;
1377
+ }
1378
+ switch (version) {
1379
+ case '0.1.0':
1380
+ return 1 ;
1381
+ case '2.0.0':
1382
+ return 2 ;
1383
+ default:
1384
+ return _default;
1385
+ }
1386
+ }
1387
+ JsonSchemaVersion.from = from;
1388
+ })(JsonSchemaVersion || (JsonSchemaVersion = {})));
1389
+ class UUIDMap {
1390
+ constructor(other) {
1391
+ this.current = Object.create(null);
1392
+ if (other) {
1393
+ for (const key of ( Object.keys(other.current))) {
1394
+ const value = other.current[key];
1395
+ if (Array.isArray(value)) {
1396
+ this.current[key] = value.slice();
1397
+ }
1398
+ else {
1399
+ this.current[key] = value;
1400
+ }
1401
+ }
1402
+ }
1403
+ }
1404
+ start() {
1405
+ this.last = this.current;
1406
+ this.current = Object.create(null);
1407
+ }
1408
+ getUUID(identifier) {
1409
+ const lastValue = this.last ? this.last[identifier] : undefined;
1410
+ let result = undefined;
1411
+ if (lastValue !== undefined) {
1412
+ if (Array.isArray(lastValue)) {
1413
+ result = lastValue.shift();
1414
+ if (lastValue.length === 0) {
1415
+ delete this.last[identifier];
1416
+ }
1417
+ }
1418
+ else {
1419
+ result = lastValue;
1420
+ delete this.last[identifier];
1421
+ }
1422
+ }
1423
+ if (result === undefined) {
1424
+ result = generateUuid();
1425
+ }
1426
+ const currentValue = this.current[identifier];
1427
+ if (currentValue === undefined) {
1428
+ this.current[identifier] = result;
1429
+ }
1430
+ else {
1431
+ if (Array.isArray(currentValue)) {
1432
+ currentValue.push(result);
1433
+ }
1434
+ else {
1435
+ const arrayValue = [currentValue];
1436
+ arrayValue.push(result);
1437
+ this.current[identifier] = arrayValue;
1438
+ }
1439
+ }
1440
+ return result;
1441
+ }
1442
+ finish() {
1443
+ this.last = undefined;
1444
+ }
1445
+ }
1446
+ var TaskConfigSource;
1447
+ ( (function(TaskConfigSource) {
1448
+ TaskConfigSource[TaskConfigSource["TasksJson"] = 0] = "TasksJson";
1449
+ TaskConfigSource[TaskConfigSource["WorkspaceFile"] = 1] = "WorkspaceFile";
1450
+ TaskConfigSource[TaskConfigSource["User"] = 2] = "User";
1451
+ })(TaskConfigSource || (TaskConfigSource = {})));
1452
+ class ConfigurationParser {
1453
+ constructor(workspaceFolder, workspace, platform, problemReporter, uuidMap) {
1454
+ this.workspaceFolder = workspaceFolder;
1455
+ this.workspace = workspace;
1456
+ this.platform = platform;
1457
+ this.problemReporter = problemReporter;
1458
+ this.uuidMap = uuidMap;
1459
+ }
1460
+ run(fileConfig, source, contextKeyService) {
1461
+ const engine = ExecutionEngine.from(fileConfig);
1462
+ const schemaVersion = JsonSchemaVersion.from(fileConfig);
1463
+ const context = {
1464
+ workspaceFolder: this.workspaceFolder,
1465
+ workspace: this.workspace,
1466
+ problemReporter: this.problemReporter,
1467
+ uuidMap: this.uuidMap,
1468
+ namedProblemMatchers: {},
1469
+ engine,
1470
+ schemaVersion,
1471
+ platform: this.platform,
1472
+ taskLoadIssues: [],
1473
+ contextKeyService
1474
+ };
1475
+ const taskParseResult = this.createTaskRunnerConfiguration(fileConfig, context, source);
1476
+ return {
1477
+ validationStatus: this.problemReporter.status,
1478
+ custom: taskParseResult.custom,
1479
+ configured: taskParseResult.configured,
1480
+ engine
1481
+ };
1482
+ }
1483
+ createTaskRunnerConfiguration(fileConfig, context, source) {
1484
+ const globals = Globals.from(fileConfig, context);
1485
+ if (this.problemReporter.status.isFatal()) {
1486
+ return { custom: [], configured: [] };
1487
+ }
1488
+ context.namedProblemMatchers = ProblemMatcherConverter.namedFrom(fileConfig.declares, context);
1489
+ let globalTasks = undefined;
1490
+ let externalGlobalTasks = undefined;
1491
+ if (fileConfig.windows && context.platform === 3 ) {
1492
+ globalTasks = TaskParser.from(fileConfig.windows.tasks, globals, context, source).custom;
1493
+ externalGlobalTasks = fileConfig.windows.tasks;
1494
+ }
1495
+ else if (fileConfig.osx && context.platform === 1 ) {
1496
+ globalTasks = TaskParser.from(fileConfig.osx.tasks, globals, context, source).custom;
1497
+ externalGlobalTasks = fileConfig.osx.tasks;
1498
+ }
1499
+ else if (fileConfig.linux && context.platform === 2 ) {
1500
+ globalTasks = TaskParser.from(fileConfig.linux.tasks, globals, context, source).custom;
1501
+ externalGlobalTasks = fileConfig.linux.tasks;
1502
+ }
1503
+ if (context.schemaVersion === 2 && globalTasks && globalTasks.length > 0 && externalGlobalTasks && externalGlobalTasks.length > 0) {
1504
+ const taskContent = [];
1505
+ for (const task of externalGlobalTasks) {
1506
+ taskContent.push(JSON.stringify(task, null, 4));
1507
+ }
1508
+ context.problemReporter.error(( localizeWithPath(
1509
+ 'vs/workbench/contrib/tasks/common/taskConfiguration',
1510
+ { key: 'TaskParse.noOsSpecificGlobalTasks', comment: ['\"Task version 2.0.0\" refers to the 2.0.0 version of the task system. The \"version 2.0.0\" is not localizable as it is a json key and value.'] },
1511
+ '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}',
1512
+ taskContent.join('\n')
1513
+ )));
1514
+ }
1515
+ let result = { custom: [], configured: [] };
1516
+ if (fileConfig.tasks) {
1517
+ result = TaskParser.from(fileConfig.tasks, globals, context, source);
1518
+ }
1519
+ if (globalTasks) {
1520
+ result.custom = TaskParser.assignTasks(result.custom, globalTasks);
1521
+ }
1522
+ if ((!result.custom || result.custom.length === 0) && (globals.command && globals.command.name)) {
1523
+ const matchers = ProblemMatcherConverter.from(fileConfig.problemMatcher, context).value ?? [];
1524
+ const isBackground = fileConfig.isBackground ? !!fileConfig.isBackground : fileConfig.isWatching ? !!fileConfig.isWatching : undefined;
1525
+ const name = CommandString.value(globals.command.name);
1526
+ const task = new CustomTask$1(context.uuidMap.getUUID(name), Object.assign({}, source, { config: { index: -1, element: fileConfig, workspaceFolder: context.workspaceFolder } }), name, CUSTOMIZED_TASK_TYPE, {
1527
+ name: undefined,
1528
+ runtime: undefined,
1529
+ presentation: undefined,
1530
+ suppressTaskName: true
1531
+ }, false, { reevaluateOnRerun: true }, {
1532
+ name: name,
1533
+ identifier: name,
1534
+ group: TaskGroup.Build,
1535
+ isBackground: isBackground,
1536
+ problemMatchers: matchers
1537
+ });
1538
+ const taskGroupKind = GroupKind.from(fileConfig.group);
1539
+ if (taskGroupKind !== undefined) {
1540
+ task.configurationProperties.group = taskGroupKind;
1541
+ }
1542
+ else if (fileConfig.group === 'none') {
1543
+ task.configurationProperties.group = undefined;
1544
+ }
1545
+ CustomTask.fillGlobals(task, globals);
1546
+ CustomTask.fillDefaults(task, context);
1547
+ result.custom = [task];
1548
+ }
1549
+ result.custom = result.custom || [];
1550
+ result.configured = result.configured || [];
1551
+ return result;
1552
+ }
1553
+ }
1554
+ const uuidMaps = ( new Map());
1555
+ const recentUuidMaps = ( new Map());
1556
+ function parse(workspaceFolder, workspace, platform, configuration, logger, source, contextKeyService, isRecents = false) {
1557
+ const recentOrOtherMaps = isRecents ? recentUuidMaps : uuidMaps;
1558
+ let selectedUuidMaps = recentOrOtherMaps.get(source);
1559
+ if (!selectedUuidMaps) {
1560
+ recentOrOtherMaps.set(source, ( new Map()));
1561
+ selectedUuidMaps = recentOrOtherMaps.get(source);
1562
+ }
1563
+ let uuidMap = selectedUuidMaps.get(( workspaceFolder.uri.toString()));
1564
+ if (!uuidMap) {
1565
+ uuidMap = ( new UUIDMap());
1566
+ selectedUuidMaps.set(( workspaceFolder.uri.toString()), uuidMap);
1567
+ }
1568
+ try {
1569
+ uuidMap.start();
1570
+ return (( new ConfigurationParser(workspaceFolder, workspace, platform, logger, uuidMap))).run(configuration, source, contextKeyService);
1571
+ }
1572
+ finally {
1573
+ uuidMap.finish();
1574
+ }
1575
+ }
1576
+ function createCustomTask(contributedTask, configuredProps) {
1577
+ return CustomTask.createCustomTask(contributedTask, configuredProps);
1578
+ }
1579
+ export { ExecutionEngine, GroupKind, ITaskIdentifier, JsonSchemaVersion, ProblemMatcherConverter, RunOnOptions, RunOptions, TaskConfigSource, TaskParser, UUIDMap, createCustomTask, parse };