@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,1752 @@
1
+ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import './media/userDataProfileView.css.js';
3
+ import { localizeWithPath } from '../../../../nls.js';
4
+ import { SyncDescriptor } from '../../../../platform/instantiation/common/descriptors.js';
5
+ import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
6
+ import { INotificationService } from '../../../../platform/notification/common/notification.js';
7
+ import { Event, Emitter } from '../../../../base/common/event.js';
8
+ import { $, append, addDisposableListener, Dimension, getClientArea, clearNode, EventHelper, EventType } from '../../../../base/browser/dom.js';
9
+ import { IS_PROFILE_EXPORT_IN_PROGRESS_CONTEXT, IS_PROFILE_IMPORT_IN_PROGRESS_CONTEXT, PROFILES_TITLE, defaultUserDataProfileIcon, PROFILE_URL_AUTHORITY, PROFILE_FILTER, PROFILE_EXTENSION, PROFILES_CATEGORY, toUserDataProfileUri, IUserDataProfileService, IUserDataProfileManagementService } from '../common/userDataProfile.js';
10
+ import { Disposable, toDisposable, DisposableStore } from '../../../../base/common/lifecycle.js';
11
+ import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
12
+ import { IUriIdentityService } from '../../../../platform/uriIdentity/common/uriIdentity.js';
13
+ import { ITextFileService } from '../../textfile/common/textfiles.js';
14
+ import { IFileService } from '../../../../platform/files/common/files.js';
15
+ import { URI } from '../../../../base/common/uri.js';
16
+ import { Extensions, TreeItemCollapsibleState, IViewDescriptorService } from '../../../common/views.js';
17
+ import { IViewsService } from '../../views/common/viewsService.js';
18
+ import { isUserDataProfile, toUserDataProfile, IUserDataProfilesService } from '../../../../platform/userDataProfile/common/userDataProfile.js';
19
+ import { ContextKeyExpr, IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
20
+ import { Registry } from '../../../../platform/registry/common/platform.js';
21
+ import { ViewPaneContainer } from '../../../browser/parts/views/viewPaneContainer.js';
22
+ import { ILogService } from '../../../../platform/log/common/log.js';
23
+ import { TreeView, TreeViewPane } from '../../../browser/parts/views/treeView.js';
24
+ import { SettingsResource, SettingsResourceTreeItem } from './settingsResource.js';
25
+ import { KeybindingsResource, KeybindingsResourceTreeItem } from './keybindingsResource.js';
26
+ import { SnippetsResource, SnippetsResourceTreeItem } from './snippetsResource.js';
27
+ import { TasksResource, TasksResourceTreeItem } from './tasksResource.js';
28
+ import { ExtensionsResource, ExtensionsResourceExportTreeItem, ExtensionsResourceImportTreeItem, ExtensionsResourceTreeItem } from './extensionsResource.js';
29
+ import { GlobalStateResource, GlobalStateResourceExportTreeItem, GlobalStateResourceImportTreeItem, GlobalStateResourceTreeItem } from './globalStateResource.js';
30
+ import { InMemoryFileSystemProvider } from '../../../../platform/files/common/inMemoryFilesystemProvider.js';
31
+ import { Button } from '../../../../base/browser/ui/button/button.js';
32
+ import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.js';
33
+ import { IContextViewService, IContextMenuService } from '../../../../platform/contextview/browser/contextView.js';
34
+ import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
35
+ import { IOpenerService } from '../../../../platform/opener/common/opener.js';
36
+ import { IThemeService } from '../../../../platform/theme/common/themeService.js';
37
+ import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.js';
38
+ import { defaultInputBoxStyles, defaultSelectBoxStyles, defaultButtonStyles } from '../../../../platform/theme/browser/defaultStyles.js';
39
+ import { generateUuid } from '../../../../base/common/uuid.js';
40
+ import { IEditorService } from '../../editor/common/editorService.js';
41
+ import { getErrorMessage, onUnexpectedError } from '../../../../base/common/errors.js';
42
+ import { IProgressService } from '../../../../platform/progress/common/progress.js';
43
+ import { IExtensionService } from '../../extensions/common/extensions.js';
44
+ import { IQuickInputService } from '../../../../platform/quickinput/common/quickInput.js';
45
+ import { VSBuffer } from '../../../../base/common/buffer.js';
46
+ import { joinPath } from '../../../../base/common/resources.js';
47
+ import { escapeRegExpCharacters } from '../../../../base/common/strings.js';
48
+ import { Schemas } from '../../../../base/common/network.js';
49
+ import { CancellationToken } from '../../../../base/common/cancellation.js';
50
+ import Severity$1 from '../../../../base/common/severity.js';
51
+ import { IClipboardService } from '../../../../platform/clipboard/common/clipboardService.js';
52
+ import { IURLService } from '../../../../platform/url/common/url.js';
53
+ import { asText, IRequestService } from '../../../../platform/request/common/request.js';
54
+ import { IProductService } from '../../../../platform/product/common/productService.js';
55
+ import { isUndefined } from '../../../../base/common/types.js';
56
+ import { Action, ActionRunner } from '../../../../base/common/actions.js';
57
+ import { isWeb } from '../../../../base/common/platform.js';
58
+ import { registerAction2, Action2, MenuId } from '../../../../platform/actions/common/actions.js';
59
+ import { getAllCodicons, Codicon } from '../../../../base/common/codicons.js';
60
+ import { Barrier } from '../../../../base/common/async.js';
61
+ import { IExtensionManagementService } from '../../../../platform/extensionManagement/common/extensionManagement.js';
62
+ import { areSameExtensions } from '../../../../platform/extensionManagement/common/extensionManagementUtil.js';
63
+ import { MarkdownString } from '../../../../base/common/htmlContent.js';
64
+ import { renderMarkdown } from '../../../../base/browser/markdownRenderer.js';
65
+ import { showWindowLogActionId } from '../../log/common/logConstants.js';
66
+ import { SelectBox } from '../../../../base/browser/ui/selectBox/selectBox.js';
67
+ import { ThemeIcon } from '../../../../base/common/themables.js';
68
+ import { IHoverService } from '../../../../platform/hover/browser/hover.js';
69
+ import { ICONS, DEFAULT_ICON } from '../common/userDataProfileIcons.js';
70
+ import { WorkbenchIconSelectBox } from './iconSelectBox.js';
71
+ import { StandardKeyboardEvent } from '../../../../base/browser/keyboardEvent.js';
72
+ import { IDialogService, IFileDialogService } from '../../../../platform/dialogs/common/dialogs.js';
73
+ var UserDataProfileImportExportService_1;
74
+ function isUserDataProfileTemplate(thing) {
75
+ const candidate = thing;
76
+ return !!(candidate && typeof candidate === 'object'
77
+ && (candidate.name && typeof candidate.name === 'string')
78
+ && (isUndefined(candidate.icon) || typeof candidate.icon === 'string')
79
+ && (isUndefined(candidate.settings) || typeof candidate.settings === 'string')
80
+ && (isUndefined(candidate.globalState) || typeof candidate.globalState === 'string')
81
+ && (isUndefined(candidate.extensions) || typeof candidate.extensions === 'string'));
82
+ }
83
+ const EXPORT_PROFILE_PREVIEW_VIEW = 'workbench.views.profiles.export.preview';
84
+ const IMPORT_PROFILE_PREVIEW_VIEW = 'workbench.views.profiles.import.preview';
85
+ let UserDataProfileImportExportService = class UserDataProfileImportExportService extends Disposable {
86
+ static { UserDataProfileImportExportService_1 = this; }
87
+ static { this.PROFILE_URL_AUTHORITY_PREFIX = 'profile-'; }
88
+ constructor(instantiationService, userDataProfileService, viewsService, editorService, contextKeyService, userDataProfileManagementService, userDataProfilesService, extensionService, extensionManagementService, quickInputService, notificationService, progressService, dialogService, clipboardService, openerService, requestService, urlService, productService, uriIdentityService, telemetryService, contextViewService, hoverService, logService) {
89
+ super();
90
+ this.instantiationService = instantiationService;
91
+ this.userDataProfileService = userDataProfileService;
92
+ this.viewsService = viewsService;
93
+ this.editorService = editorService;
94
+ this.userDataProfileManagementService = userDataProfileManagementService;
95
+ this.userDataProfilesService = userDataProfilesService;
96
+ this.extensionService = extensionService;
97
+ this.extensionManagementService = extensionManagementService;
98
+ this.quickInputService = quickInputService;
99
+ this.notificationService = notificationService;
100
+ this.progressService = progressService;
101
+ this.dialogService = dialogService;
102
+ this.clipboardService = clipboardService;
103
+ this.openerService = openerService;
104
+ this.requestService = requestService;
105
+ this.productService = productService;
106
+ this.uriIdentityService = uriIdentityService;
107
+ this.telemetryService = telemetryService;
108
+ this.contextViewService = contextViewService;
109
+ this.hoverService = hoverService;
110
+ this.logService = logService;
111
+ this.profileContentHandlers = ( new Map());
112
+ this.registerProfileContentHandler(Schemas.file, this.fileUserDataProfileContentHandler = instantiationService.createInstance(FileUserDataProfileContentHandler));
113
+ this.isProfileExportInProgressContextKey = IS_PROFILE_EXPORT_IN_PROGRESS_CONTEXT.bindTo(contextKeyService);
114
+ this.isProfileImportInProgressContextKey = IS_PROFILE_IMPORT_IN_PROGRESS_CONTEXT.bindTo(contextKeyService);
115
+ this.viewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
116
+ id: 'userDataProfiles',
117
+ title: PROFILES_TITLE,
118
+ ctorDescriptor: ( new SyncDescriptor(
119
+ ViewPaneContainer,
120
+ ['userDataProfiles', { mergeViewWithContainerWhenSingleView: true }]
121
+ )),
122
+ icon: defaultUserDataProfileIcon,
123
+ hideIfEmpty: true,
124
+ }, 0 );
125
+ urlService.registerHandler(this);
126
+ }
127
+ isProfileURL(uri) {
128
+ return uri.authority === PROFILE_URL_AUTHORITY || ( new RegExp(`^${UserDataProfileImportExportService_1.PROFILE_URL_AUTHORITY_PREFIX}`)).test(uri.authority);
129
+ }
130
+ async handleURL(uri) {
131
+ if (this.isProfileURL(uri)) {
132
+ try {
133
+ await this.importProfile(uri);
134
+ }
135
+ catch (error) {
136
+ this.notificationService.error(( localizeWithPath(
137
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
138
+ 'profile import error',
139
+ "Error while importing profile: {0}",
140
+ getErrorMessage(error)
141
+ )));
142
+ }
143
+ return true;
144
+ }
145
+ return false;
146
+ }
147
+ registerProfileContentHandler(id, profileContentHandler) {
148
+ if (( this.profileContentHandlers.has(id))) {
149
+ throw new Error(`Profile content handler with id '${id}' already registered.`);
150
+ }
151
+ this.profileContentHandlers.set(id, profileContentHandler);
152
+ return toDisposable(() => this.unregisterProfileContentHandler(id));
153
+ }
154
+ unregisterProfileContentHandler(id) {
155
+ this.profileContentHandlers.delete(id);
156
+ }
157
+ async exportProfile() {
158
+ if (this.isProfileExportInProgressContextKey.get()) {
159
+ this.logService.warn('Profile export already in progress.');
160
+ return;
161
+ }
162
+ return this.showProfileContents();
163
+ }
164
+ async importProfile(uri, options) {
165
+ if (this.isProfileImportInProgressContextKey.get()) {
166
+ this.notificationService.warn('Profile import already in progress.');
167
+ return;
168
+ }
169
+ this.isProfileImportInProgressContextKey.set(true);
170
+ const disposables = ( new DisposableStore());
171
+ disposables.add(toDisposable(() => this.isProfileImportInProgressContextKey.set(false)));
172
+ try {
173
+ const mode = options?.mode ?? 'preview';
174
+ const profileTemplate = await this.progressService.withProgress({
175
+ location: 10 ,
176
+ command: showWindowLogActionId,
177
+ title: ( localizeWithPath(
178
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
179
+ 'resolving uri',
180
+ "{0}: Resolving profile content...",
181
+ options?.mode ? ( localizeWithPath(
182
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
183
+ 'preview profile',
184
+ "Preview Profile"
185
+ )) : ( localizeWithPath(
186
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
187
+ 'import profile',
188
+ "Create Profile"
189
+ ))
190
+ )),
191
+ }, () => this.resolveProfileTemplate(uri, options));
192
+ if (!profileTemplate) {
193
+ return;
194
+ }
195
+ if (mode === 'preview') {
196
+ await this.previewProfile(profileTemplate, options);
197
+ }
198
+ else if (mode === 'apply') {
199
+ await this.createAndSwitch(profileTemplate, false, true, options, ( localizeWithPath(
200
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
201
+ 'create profile',
202
+ "Create Profile"
203
+ )));
204
+ }
205
+ else if (mode === 'both') {
206
+ await this.importAndPreviewProfile(uri, profileTemplate, options);
207
+ }
208
+ }
209
+ finally {
210
+ disposables.dispose();
211
+ }
212
+ }
213
+ createProfile(from) {
214
+ return this.saveProfile(undefined, from);
215
+ }
216
+ editProfile(profile) {
217
+ return this.saveProfile(profile);
218
+ }
219
+ async saveProfile(profile, source) {
220
+ const createProfileTelemetryData = { source: source instanceof URI ? 'template' : isUserDataProfile(source) ? 'profile' : source ? 'external' : undefined };
221
+ if (profile) {
222
+ this.telemetryService.publicLog2('userDataProfile.startEdit');
223
+ }
224
+ else {
225
+ this.telemetryService.publicLog2('userDataProfile.startCreate', createProfileTelemetryData);
226
+ }
227
+ const disposables = ( new DisposableStore());
228
+ const title = profile ? ( localizeWithPath(
229
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
230
+ 'save profile',
231
+ "Edit {0} Profile...",
232
+ profile.name
233
+ )) : ( localizeWithPath(
234
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
235
+ 'create new profle',
236
+ "Create New Profile..."
237
+ ));
238
+ const settings = { id: "settings" , label: ( localizeWithPath(
239
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
240
+ 'settings',
241
+ "Settings"
242
+ )), picked: !profile?.useDefaultFlags?.settings };
243
+ const keybindings = { id: "keybindings" , label: ( localizeWithPath(
244
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
245
+ 'keybindings',
246
+ "Keyboard Shortcuts"
247
+ )), picked: !profile?.useDefaultFlags?.keybindings };
248
+ const snippets = { id: "snippets" , label: ( localizeWithPath(
249
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
250
+ 'snippets',
251
+ "User Snippets"
252
+ )), picked: !profile?.useDefaultFlags?.snippets };
253
+ const tasks = { id: "tasks" , label: ( localizeWithPath(
254
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
255
+ 'tasks',
256
+ "User Tasks"
257
+ )), picked: !profile?.useDefaultFlags?.tasks };
258
+ const extensions = { id: "extensions" , label: ( localizeWithPath(
259
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
260
+ 'extensions',
261
+ "Extensions"
262
+ )), picked: !profile?.useDefaultFlags?.extensions };
263
+ const resources = [settings, keybindings, snippets, tasks, extensions];
264
+ const quickPick = this.quickInputService.createQuickPick();
265
+ quickPick.title = title;
266
+ quickPick.placeholder = ( localizeWithPath(
267
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
268
+ 'name placeholder',
269
+ "Profile name"
270
+ ));
271
+ quickPick.value = profile?.name ?? (isUserDataProfileTemplate(source) ? this.generateProfileName(source.name) : '');
272
+ quickPick.canSelectMany = true;
273
+ quickPick.matchOnDescription = false;
274
+ quickPick.matchOnDetail = false;
275
+ quickPick.matchOnLabel = false;
276
+ quickPick.sortByLabel = false;
277
+ quickPick.hideCountBadge = true;
278
+ quickPick.ok = false;
279
+ quickPick.customButton = true;
280
+ quickPick.hideCheckAll = true;
281
+ quickPick.ignoreFocusOut = true;
282
+ quickPick.customLabel = profile ? ( localizeWithPath(
283
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
284
+ 'save',
285
+ "Save"
286
+ )) : ( localizeWithPath(
287
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
288
+ 'create',
289
+ "Create"
290
+ ));
291
+ quickPick.description = ( localizeWithPath(
292
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
293
+ 'customise the profile',
294
+ "Choose what to configure in your Profile:"
295
+ ));
296
+ quickPick.items = [...resources];
297
+ const update = () => {
298
+ quickPick.items = resources;
299
+ quickPick.selectedItems = resources.filter(item => item.picked);
300
+ };
301
+ update();
302
+ const validate = () => {
303
+ if (!profile && ( this.userDataProfilesService.profiles.some(p => p.name === quickPick.value))) {
304
+ quickPick.validationMessage = ( localizeWithPath(
305
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
306
+ 'profileExists',
307
+ "Profile with name {0} already exists.",
308
+ quickPick.value
309
+ ));
310
+ quickPick.severity = Severity$1.Warning;
311
+ return;
312
+ }
313
+ if (resources.every(resource => !resource.picked)) {
314
+ quickPick.validationMessage = ( localizeWithPath(
315
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
316
+ 'invalid configurations',
317
+ "The profile should contain at least one configuration."
318
+ ));
319
+ quickPick.severity = Severity$1.Warning;
320
+ return;
321
+ }
322
+ quickPick.severity = Severity$1.Ignore;
323
+ quickPick.validationMessage = undefined;
324
+ };
325
+ disposables.add(quickPick.onDidChangeSelection(items => {
326
+ let needUpdate = false;
327
+ for (const resource of resources) {
328
+ resource.picked = items.includes(resource);
329
+ const description = resource.picked ? undefined : ( localizeWithPath(
330
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
331
+ 'use default profile',
332
+ "Using Default Profile"
333
+ ));
334
+ if (resource.description !== description) {
335
+ resource.description = description;
336
+ needUpdate = true;
337
+ }
338
+ }
339
+ if (needUpdate) {
340
+ update();
341
+ }
342
+ validate();
343
+ }));
344
+ disposables.add(quickPick.onDidChangeValue(validate));
345
+ let icon = DEFAULT_ICON;
346
+ if (profile?.icon) {
347
+ icon = ThemeIcon.fromId(profile.icon);
348
+ }
349
+ if (isUserDataProfileTemplate(source) && source.icon) {
350
+ icon = ThemeIcon.fromId(source.icon);
351
+ }
352
+ if (icon.id !== DEFAULT_ICON.id && !( ICONS.some(({ id }) => id === icon.id)) && !( getAllCodicons().some(({ id }) => id === icon.id))) {
353
+ icon = DEFAULT_ICON;
354
+ }
355
+ let result;
356
+ disposables.add(Event.any(quickPick.onDidCustom, quickPick.onDidAccept)(() => {
357
+ const name = quickPick.value.trim();
358
+ if (!name) {
359
+ quickPick.validationMessage = ( localizeWithPath(
360
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
361
+ 'name required',
362
+ "Profile name is required and must be a non-empty value."
363
+ ));
364
+ quickPick.severity = Severity$1.Error;
365
+ }
366
+ if (quickPick.validationMessage) {
367
+ return;
368
+ }
369
+ result = { name, items: quickPick.selectedItems, icon: icon.id === DEFAULT_ICON.id ? null : icon.id };
370
+ quickPick.hide();
371
+ quickPick.severity = Severity$1.Ignore;
372
+ quickPick.validationMessage = undefined;
373
+ }));
374
+ const domNode = $('.profile-edit-widget');
375
+ const profileIconContainer = $('.profile-icon-container');
376
+ append(profileIconContainer, $('.profile-icon-label', undefined, ( localizeWithPath(
377
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
378
+ 'icon',
379
+ "Icon:"
380
+ ))));
381
+ const profileIconElement = append(profileIconContainer, $(`.profile-icon${ThemeIcon.asCSSSelector(icon)}`));
382
+ profileIconElement.tabIndex = 0;
383
+ profileIconElement.role = 'button';
384
+ profileIconElement.ariaLabel = ( localizeWithPath(
385
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
386
+ 'select icon',
387
+ "Icon: {0}",
388
+ icon.id
389
+ ));
390
+ const iconSelectBox = disposables.add(this.instantiationService.createInstance(WorkbenchIconSelectBox, { icons: ICONS, inputBoxStyles: defaultInputBoxStyles }));
391
+ const dimension = new Dimension(486, 260);
392
+ iconSelectBox.layout(dimension);
393
+ let hoverWidget;
394
+ const updateIcon = (updated) => {
395
+ icon = updated ?? DEFAULT_ICON;
396
+ profileIconElement.className = `profile-icon ${ThemeIcon.asClassName(icon)}`;
397
+ profileIconElement.ariaLabel = ( localizeWithPath(
398
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
399
+ 'select icon',
400
+ "Icon: {0}",
401
+ icon.id
402
+ ));
403
+ };
404
+ disposables.add(iconSelectBox.onDidSelect(selectedIcon => {
405
+ if (icon.id !== selectedIcon.id) {
406
+ updateIcon(selectedIcon);
407
+ }
408
+ hoverWidget?.dispose();
409
+ profileIconElement.focus();
410
+ }));
411
+ const showIconSelectBox = () => {
412
+ iconSelectBox.clearInput();
413
+ hoverWidget = this.hoverService.showHover({
414
+ content: iconSelectBox.domNode,
415
+ target: profileIconElement,
416
+ position: {
417
+ hoverPosition: 2 ,
418
+ },
419
+ persistence: {
420
+ sticky: true,
421
+ },
422
+ appearance: {
423
+ showPointer: true,
424
+ },
425
+ }, true);
426
+ if (hoverWidget) {
427
+ iconSelectBox.layout(dimension);
428
+ disposables.add(hoverWidget);
429
+ }
430
+ iconSelectBox.focus();
431
+ };
432
+ disposables.add(addDisposableListener(profileIconElement, EventType.CLICK, (e) => {
433
+ EventHelper.stop(e, true);
434
+ showIconSelectBox();
435
+ }));
436
+ disposables.add(addDisposableListener(profileIconElement, EventType.KEY_DOWN, e => {
437
+ const event = ( new StandardKeyboardEvent(e));
438
+ if (event.equals(3 ) || event.equals(10 )) {
439
+ EventHelper.stop(event, true);
440
+ showIconSelectBox();
441
+ }
442
+ }));
443
+ disposables.add(addDisposableListener(iconSelectBox.domNode, EventType.KEY_DOWN, e => {
444
+ const event = ( new StandardKeyboardEvent(e));
445
+ if (event.equals(9 )) {
446
+ EventHelper.stop(event, true);
447
+ hoverWidget?.dispose();
448
+ profileIconElement.focus();
449
+ }
450
+ }));
451
+ if (!profile && !isUserDataProfileTemplate(source)) {
452
+ const profileTypeContainer = append(domNode, $('.profile-type-container'));
453
+ append(profileTypeContainer, $('.profile-type-create-label', undefined, ( localizeWithPath(
454
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
455
+ 'create from',
456
+ "Copy from:"
457
+ ))));
458
+ const separator = { text: '\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500', isDisabled: true };
459
+ const profileOptions = [];
460
+ profileOptions.push({ text: ( localizeWithPath(
461
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
462
+ 'empty profile',
463
+ "None"
464
+ )) });
465
+ const templates = await this.userDataProfileManagementService.getBuiltinProfileTemplates();
466
+ if (templates.length) {
467
+ profileOptions.push({ ...separator, decoratorRight: ( localizeWithPath(
468
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
469
+ 'from templates',
470
+ "Profile Templates"
471
+ )) });
472
+ for (const template of templates) {
473
+ profileOptions.push({ text: template.name, id: template.url, source: ( URI.parse(template.url)) });
474
+ }
475
+ }
476
+ profileOptions.push({ ...separator, decoratorRight: ( localizeWithPath(
477
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
478
+ 'from existing profiles',
479
+ "Existing Profiles"
480
+ )) });
481
+ for (const profile of this.userDataProfilesService.profiles) {
482
+ profileOptions.push({ text: profile.name, id: profile.id, source: profile });
483
+ }
484
+ const findOptionIndex = () => {
485
+ const index = profileOptions.findIndex(option => {
486
+ if (source instanceof URI) {
487
+ return option.source instanceof URI && this.uriIdentityService.extUri.isEqual(option.source, source);
488
+ }
489
+ else if (isUserDataProfile(source)) {
490
+ return option.id === source.id;
491
+ }
492
+ return false;
493
+ });
494
+ return index > -1 ? index : 0;
495
+ };
496
+ const initialIndex = findOptionIndex();
497
+ const selectBox = disposables.add(this.instantiationService.createInstance(SelectBox, profileOptions, initialIndex, this.contextViewService, defaultSelectBoxStyles, {
498
+ useCustomDrawn: true,
499
+ ariaLabel: ( localizeWithPath(
500
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
501
+ 'copy profile from',
502
+ "Copy profile from"
503
+ )),
504
+ }));
505
+ selectBox.render(append(profileTypeContainer, $('.profile-type-select-container')));
506
+ if (profileOptions[initialIndex].source) {
507
+ quickPick.value = this.generateProfileName(profileOptions[initialIndex].text);
508
+ }
509
+ const updateOptions = () => {
510
+ const option = profileOptions[findOptionIndex()];
511
+ for (const resource of resources) {
512
+ resource.picked = option.source && !(option.source instanceof URI) ? !option.source?.useDefaultFlags?.[resource.id] : true;
513
+ }
514
+ updateIcon(!(option.source instanceof URI) && option.source?.icon ? ThemeIcon.fromId(option.source.icon) : undefined);
515
+ update();
516
+ };
517
+ updateOptions();
518
+ disposables.add(selectBox.onDidSelect(({ index }) => {
519
+ source = profileOptions[index].source;
520
+ updateOptions();
521
+ }));
522
+ }
523
+ append(domNode, profileIconContainer);
524
+ quickPick.widget = domNode;
525
+ quickPick.show();
526
+ await ( new Promise((c, e) => {
527
+ disposables.add(quickPick.onDidHide(() => {
528
+ disposables.dispose();
529
+ c();
530
+ }));
531
+ }));
532
+ if (!result) {
533
+ if (profile) {
534
+ this.telemetryService.publicLog2('userDataProfile.cancelEdit');
535
+ }
536
+ else {
537
+ this.telemetryService.publicLog2('userDataProfile.cancelCreate', createProfileTelemetryData);
538
+ }
539
+ return;
540
+ }
541
+ try {
542
+ const useDefaultFlags = result.items.length === resources.length
543
+ ? undefined
544
+ : {
545
+ settings: !result.items.includes(settings),
546
+ keybindings: !result.items.includes(keybindings),
547
+ snippets: !result.items.includes(snippets),
548
+ tasks: !result.items.includes(tasks),
549
+ extensions: !result.items.includes(extensions)
550
+ };
551
+ if (profile) {
552
+ await this.userDataProfileManagementService.updateProfile(profile, { name: result.name, icon: result.icon, useDefaultFlags: profile.useDefaultFlags && !useDefaultFlags ? {} : useDefaultFlags });
553
+ }
554
+ else {
555
+ if (source instanceof URI) {
556
+ this.telemetryService.publicLog2('userDataProfile.createFromTemplate', createProfileTelemetryData);
557
+ await this.importProfile(source, { mode: 'apply', name: result.name, useDefaultFlags, icon: result.icon ? result.icon : undefined });
558
+ }
559
+ else if (isUserDataProfile(source)) {
560
+ this.telemetryService.publicLog2('userDataProfile.createFromProfile', createProfileTelemetryData);
561
+ await this.createFromProfile(source, result.name, { useDefaultFlags, icon: result.icon ? result.icon : undefined });
562
+ }
563
+ else if (isUserDataProfileTemplate(source)) {
564
+ source.name = result.name;
565
+ this.telemetryService.publicLog2('userDataProfile.createFromExternalTemplate', createProfileTelemetryData);
566
+ await this.createAndSwitch(source, false, true, { useDefaultFlags, icon: result.icon ? result.icon : undefined }, ( localizeWithPath(
567
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
568
+ 'create profile',
569
+ "Create Profile"
570
+ )));
571
+ }
572
+ else {
573
+ this.telemetryService.publicLog2('userDataProfile.createEmptyProfile', createProfileTelemetryData);
574
+ await this.userDataProfileManagementService.createAndEnterProfile(result.name, { useDefaultFlags, icon: result.icon ? result.icon : undefined });
575
+ }
576
+ }
577
+ }
578
+ catch (error) {
579
+ this.notificationService.error(error);
580
+ }
581
+ }
582
+ async showProfileContents() {
583
+ const view = this.viewsService.getViewWithId(EXPORT_PROFILE_PREVIEW_VIEW);
584
+ if (view) {
585
+ this.viewsService.openView(view.id, true);
586
+ return;
587
+ }
588
+ const disposables = ( new DisposableStore());
589
+ try {
590
+ const userDataProfilesExportState = disposables.add(this.instantiationService.createInstance(UserDataProfileExportState, this.userDataProfileService.currentProfile));
591
+ const barrier = ( new Barrier());
592
+ const exportAction = ( new BarrierAction(barrier, ( new Action('export', ( localizeWithPath(
593
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
594
+ 'export',
595
+ "Export"
596
+ )), undefined, true, async () => {
597
+ exportAction.enabled = false;
598
+ try {
599
+ await this.doExportProfile(userDataProfilesExportState);
600
+ }
601
+ catch (error) {
602
+ this.notificationService.error(error);
603
+ throw error;
604
+ }
605
+ })), this.notificationService));
606
+ const closeAction = ( new BarrierAction(barrier, ( new Action('close', ( localizeWithPath(
607
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
608
+ 'close',
609
+ "Close"
610
+ )))), this.notificationService));
611
+ await this.showProfilePreviewView(EXPORT_PROFILE_PREVIEW_VIEW, userDataProfilesExportState.profile.name, exportAction, closeAction, true, userDataProfilesExportState);
612
+ disposables.add(this.userDataProfileService.onDidChangeCurrentProfile(e => barrier.open()));
613
+ await barrier.wait();
614
+ await this.hideProfilePreviewView(EXPORT_PROFILE_PREVIEW_VIEW);
615
+ }
616
+ finally {
617
+ disposables.dispose();
618
+ }
619
+ }
620
+ async createFromProfile(profile, name, options) {
621
+ const userDataProfilesExportState = this.instantiationService.createInstance(UserDataProfileExportState, profile);
622
+ try {
623
+ const profileTemplate = await userDataProfilesExportState.getProfileTemplate(name, options?.icon);
624
+ await this.progressService.withProgress({
625
+ location: 15 ,
626
+ delay: 500,
627
+ sticky: true,
628
+ }, async (progress) => {
629
+ const reportProgress = (message) => progress.report({ message: ( localizeWithPath(
630
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
631
+ 'create from profile',
632
+ "Create Profile: {0}",
633
+ message
634
+ )) });
635
+ const createdProfile = await this.doCreateProfile(profileTemplate, false, false, { useDefaultFlags: options?.useDefaultFlags, icon: options?.icon }, reportProgress);
636
+ if (createdProfile) {
637
+ reportProgress(( localizeWithPath(
638
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
639
+ 'progress extensions',
640
+ "Applying Extensions..."
641
+ )));
642
+ await this.instantiationService.createInstance(ExtensionsResource).copy(profile, createdProfile, false);
643
+ reportProgress(( localizeWithPath(
644
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
645
+ 'switching profile',
646
+ "Switching Profile..."
647
+ )));
648
+ await this.userDataProfileManagementService.switchProfile(createdProfile);
649
+ }
650
+ });
651
+ }
652
+ finally {
653
+ userDataProfilesExportState.dispose();
654
+ }
655
+ }
656
+ async createTroubleshootProfile() {
657
+ const userDataProfilesExportState = this.instantiationService.createInstance(UserDataProfileExportState, this.userDataProfileService.currentProfile);
658
+ try {
659
+ const profileTemplate = await userDataProfilesExportState.getProfileTemplate(( localizeWithPath(
660
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
661
+ 'troubleshoot issue',
662
+ "Troubleshoot Issue"
663
+ )), undefined);
664
+ await this.progressService.withProgress({
665
+ location: 15 ,
666
+ delay: 1000,
667
+ sticky: true,
668
+ }, async (progress) => {
669
+ const reportProgress = (message) => progress.report({ message: ( localizeWithPath(
670
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
671
+ 'troubleshoot profile progress',
672
+ "Setting up Troubleshoot Profile: {0}",
673
+ message
674
+ )) });
675
+ const profile = await this.doCreateProfile(profileTemplate, true, false, { useDefaultFlags: this.userDataProfileService.currentProfile.useDefaultFlags }, reportProgress);
676
+ if (profile) {
677
+ reportProgress(( localizeWithPath(
678
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
679
+ 'progress extensions',
680
+ "Applying Extensions..."
681
+ )));
682
+ await this.instantiationService.createInstance(ExtensionsResource).copy(this.userDataProfileService.currentProfile, profile, true);
683
+ reportProgress(( localizeWithPath(
684
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
685
+ 'switching profile',
686
+ "Switching Profile..."
687
+ )));
688
+ await this.userDataProfileManagementService.switchProfile(profile);
689
+ }
690
+ });
691
+ }
692
+ finally {
693
+ userDataProfilesExportState.dispose();
694
+ }
695
+ }
696
+ async doExportProfile(userDataProfilesExportState) {
697
+ const profile = await userDataProfilesExportState.getProfileToExport();
698
+ if (!profile) {
699
+ return;
700
+ }
701
+ this.isProfileExportInProgressContextKey.set(true);
702
+ const disposables = ( new DisposableStore());
703
+ disposables.add(toDisposable(() => this.isProfileExportInProgressContextKey.set(false)));
704
+ try {
705
+ await this.progressService.withProgress({
706
+ location: EXPORT_PROFILE_PREVIEW_VIEW,
707
+ title: ( localizeWithPath(
708
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
709
+ 'profiles.exporting',
710
+ "{0}: Exporting...",
711
+ PROFILES_CATEGORY.value
712
+ )),
713
+ }, async (progress) => {
714
+ const id = await this.pickProfileContentHandler(profile.name);
715
+ if (!id) {
716
+ return;
717
+ }
718
+ const profileContentHandler = this.profileContentHandlers.get(id);
719
+ if (!profileContentHandler) {
720
+ return;
721
+ }
722
+ const saveResult = await profileContentHandler.saveProfile(profile.name.replace('/', '-'), JSON.stringify(profile), CancellationToken.None);
723
+ if (!saveResult) {
724
+ return;
725
+ }
726
+ const message = ( localizeWithPath(
727
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
728
+ 'export success',
729
+ "Profile '{0}' was exported successfully.",
730
+ profile.name
731
+ ));
732
+ if (profileContentHandler.extensionId) {
733
+ const buttons = [];
734
+ const link = this.productService.webUrl ? `${this.productService.webUrl}/${PROFILE_URL_AUTHORITY}/${id}/${saveResult.id}` : ( toUserDataProfileUri(`/${id}/${saveResult.id}`, this.productService).toString());
735
+ buttons.push({
736
+ label: ( localizeWithPath(
737
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
738
+ { key: 'copy', comment: ['&& denotes a mnemonic'] },
739
+ "&&Copy Link"
740
+ )),
741
+ run: () => this.clipboardService.writeText(link)
742
+ });
743
+ if (this.productService.webUrl) {
744
+ buttons.push({
745
+ label: ( localizeWithPath(
746
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
747
+ { key: 'open', comment: ['&& denotes a mnemonic'] },
748
+ "&&Open Link"
749
+ )),
750
+ run: async () => {
751
+ await this.openerService.open(link);
752
+ }
753
+ });
754
+ }
755
+ else {
756
+ buttons.push({
757
+ label: ( localizeWithPath(
758
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
759
+ { key: 'open in', comment: ['&& denotes a mnemonic'] },
760
+ "&&Open in {0}",
761
+ profileContentHandler.name
762
+ )),
763
+ run: async () => {
764
+ await this.openerService.open(( saveResult.link.toString()));
765
+ }
766
+ });
767
+ }
768
+ await this.dialogService.prompt({
769
+ type: Severity$1.Info,
770
+ message,
771
+ buttons,
772
+ cancelButton: ( localizeWithPath(
773
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
774
+ 'close',
775
+ "Close"
776
+ ))
777
+ });
778
+ }
779
+ else {
780
+ await this.dialogService.info(message);
781
+ }
782
+ });
783
+ }
784
+ finally {
785
+ disposables.dispose();
786
+ }
787
+ }
788
+ async resolveProfileTemplate(uri, options) {
789
+ const profileContent = await this.resolveProfileContent(uri);
790
+ if (profileContent === null) {
791
+ return null;
792
+ }
793
+ const profileTemplate = JSON.parse(profileContent);
794
+ if (!isUserDataProfileTemplate(profileTemplate)) {
795
+ throw new Error('Invalid profile content.');
796
+ }
797
+ if (options?.name) {
798
+ profileTemplate.name = options.name;
799
+ }
800
+ if (options?.icon) {
801
+ profileTemplate.icon = options.icon;
802
+ }
803
+ return profileTemplate;
804
+ }
805
+ async importAndPreviewProfile(uri, profileTemplate, options) {
806
+ const disposables = ( new DisposableStore());
807
+ try {
808
+ const userDataProfileImportState = disposables.add(this.instantiationService.createInstance(UserDataProfileImportState, profileTemplate));
809
+ profileTemplate = await userDataProfileImportState.getProfileTemplateToImport();
810
+ const importedProfile = await this.createAndSwitch(profileTemplate, true, false, options, ( localizeWithPath(
811
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
812
+ 'preview profile',
813
+ "Preview Profile"
814
+ )));
815
+ if (!importedProfile) {
816
+ return;
817
+ }
818
+ const barrier = ( new Barrier());
819
+ const importAction = this.getCreateAction(barrier, userDataProfileImportState);
820
+ const primaryAction = isWeb
821
+ ? ( new Action('importInDesktop', ( localizeWithPath(
822
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
823
+ 'import in desktop',
824
+ "Create Profile in {0}",
825
+ this.productService.nameLong
826
+ )), undefined, true, async () => this.openerService.open(uri, { openExternal: true })))
827
+ : importAction;
828
+ const secondaryAction = isWeb
829
+ ? importAction
830
+ : ( new BarrierAction(barrier, ( new Action('close', ( localizeWithPath(
831
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
832
+ 'close',
833
+ "Close"
834
+ )))), this.notificationService));
835
+ const view = await this.showProfilePreviewView(IMPORT_PROFILE_PREVIEW_VIEW, importedProfile.name, primaryAction, secondaryAction, false, userDataProfileImportState);
836
+ const message = ( new MarkdownString());
837
+ message.appendMarkdown(( localizeWithPath(
838
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
839
+ 'preview profile message',
840
+ "By default, extensions aren't installed when previewing a profile on the web. You can still install them manually before importing the profile. "
841
+ )));
842
+ message.appendMarkdown(`[${( localizeWithPath(
843
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
844
+ 'learn more',
845
+ "Learn more"
846
+ ))}](https://aka.ms/vscode-extension-marketplace#_can-i-trust-extensions-from-the-marketplace).`);
847
+ view.setMessage(message);
848
+ const that = this;
849
+ const disposable = disposables.add(registerAction2(class extends Action2 {
850
+ constructor() {
851
+ super({
852
+ id: 'previewProfile.installExtensions',
853
+ title: ( localizeWithPath(
854
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
855
+ 'install extensions title',
856
+ "Install Extensions"
857
+ )),
858
+ icon: Codicon.cloudDownload,
859
+ menu: {
860
+ id: MenuId.ViewItemContext,
861
+ group: 'inline',
862
+ when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', IMPORT_PROFILE_PREVIEW_VIEW)), ( ContextKeyExpr.equals('viewItem', "extensions" )))),
863
+ }
864
+ });
865
+ }
866
+ async run() {
867
+ return that.progressService.withProgress({
868
+ location: IMPORT_PROFILE_PREVIEW_VIEW,
869
+ }, async (progress) => {
870
+ view.setMessage(undefined);
871
+ const profileTemplate = await userDataProfileImportState.getProfileTemplateToImport();
872
+ if (profileTemplate.extensions) {
873
+ await that.instantiationService.createInstance(ExtensionsResource).apply(profileTemplate.extensions, importedProfile);
874
+ }
875
+ disposable.dispose();
876
+ });
877
+ }
878
+ }));
879
+ disposables.add(Event.debounce(this.extensionManagementService.onDidInstallExtensions, () => undefined, 100)(async () => {
880
+ const profileTemplate = await userDataProfileImportState.getProfileTemplateToImport();
881
+ if (profileTemplate.extensions) {
882
+ const profileExtensions = await that.instantiationService.createInstance(ExtensionsResource).getProfileExtensions(profileTemplate.extensions);
883
+ const installed = await this.extensionManagementService.getInstalled(1 );
884
+ if (profileExtensions.every(e => ( installed.some(i => areSameExtensions(e.identifier, i.identifier))))) {
885
+ disposable.dispose();
886
+ }
887
+ }
888
+ }));
889
+ await barrier.wait();
890
+ await this.hideProfilePreviewView(IMPORT_PROFILE_PREVIEW_VIEW);
891
+ }
892
+ finally {
893
+ disposables.dispose();
894
+ }
895
+ }
896
+ async previewProfile(profileTemplate, options) {
897
+ const disposables = ( new DisposableStore());
898
+ try {
899
+ const userDataProfileImportState = disposables.add(this.instantiationService.createInstance(UserDataProfileImportState, profileTemplate));
900
+ if (userDataProfileImportState.isEmpty()) {
901
+ await this.createAndSwitch(profileTemplate, false, true, options, ( localizeWithPath(
902
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
903
+ 'create profile',
904
+ "Create Profile"
905
+ )));
906
+ }
907
+ else {
908
+ const barrier = ( new Barrier());
909
+ const cancelAction = ( new BarrierAction(barrier, ( new Action('cancel', ( localizeWithPath(
910
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
911
+ 'cancel',
912
+ "Cancel"
913
+ )))), this.notificationService));
914
+ const importAction = this.getCreateAction(barrier, userDataProfileImportState, cancelAction);
915
+ await this.showProfilePreviewView(IMPORT_PROFILE_PREVIEW_VIEW, profileTemplate.name, importAction, cancelAction, false, userDataProfileImportState);
916
+ await barrier.wait();
917
+ await this.hideProfilePreviewView(IMPORT_PROFILE_PREVIEW_VIEW);
918
+ }
919
+ }
920
+ finally {
921
+ disposables.dispose();
922
+ }
923
+ }
924
+ getCreateAction(barrier, userDataProfileImportState, cancelAction) {
925
+ const importAction = ( new BarrierAction(barrier, ( new Action('title', ( localizeWithPath(
926
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
927
+ 'import',
928
+ "Create Profile"
929
+ )), undefined, true, async () => {
930
+ importAction.enabled = false;
931
+ if (cancelAction) {
932
+ cancelAction.enabled = false;
933
+ }
934
+ const profileTemplate = await userDataProfileImportState.getProfileTemplateToImport();
935
+ return this.saveProfile(undefined, profileTemplate);
936
+ })), this.notificationService));
937
+ return importAction;
938
+ }
939
+ async createAndSwitch(profileTemplate, temporaryProfile, extensions, options, title) {
940
+ return this.progressService.withProgress({
941
+ location: 15 ,
942
+ delay: 500,
943
+ sticky: true,
944
+ }, async (progress) => {
945
+ title = `${title} (${profileTemplate.name})`;
946
+ progress.report({ message: title });
947
+ const reportProgress = (message) => progress.report({ message: `${title}: ${message}` });
948
+ const profile = await this.doCreateProfile(profileTemplate, temporaryProfile, extensions, options, reportProgress);
949
+ if (profile) {
950
+ reportProgress(( localizeWithPath(
951
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
952
+ 'switching profile',
953
+ "Switching Profile..."
954
+ )));
955
+ await this.userDataProfileManagementService.switchProfile(profile);
956
+ }
957
+ return profile;
958
+ });
959
+ }
960
+ async doCreateProfile(profileTemplate, temporaryProfile, extensions, options, progress) {
961
+ const profile = await this.getProfileToImport(profileTemplate, temporaryProfile, options);
962
+ if (!profile) {
963
+ return undefined;
964
+ }
965
+ if (profileTemplate.settings && !profile.useDefaultFlags?.settings) {
966
+ progress(( localizeWithPath(
967
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
968
+ 'progress settings',
969
+ "Applying Settings..."
970
+ )));
971
+ await this.instantiationService.createInstance(SettingsResource).apply(profileTemplate.settings, profile);
972
+ }
973
+ if (profileTemplate.keybindings && !profile.useDefaultFlags?.keybindings) {
974
+ progress(( localizeWithPath(
975
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
976
+ 'progress keybindings',
977
+ "Applying Keyboard Shortcuts..."
978
+ )));
979
+ await this.instantiationService.createInstance(KeybindingsResource).apply(profileTemplate.keybindings, profile);
980
+ }
981
+ if (profileTemplate.tasks && !profile.useDefaultFlags?.tasks) {
982
+ progress(( localizeWithPath(
983
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
984
+ 'progress tasks',
985
+ "Applying Tasks..."
986
+ )));
987
+ await this.instantiationService.createInstance(TasksResource).apply(profileTemplate.tasks, profile);
988
+ }
989
+ if (profileTemplate.snippets && !profile.useDefaultFlags?.snippets) {
990
+ progress(( localizeWithPath(
991
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
992
+ 'progress snippets',
993
+ "Applying Snippets..."
994
+ )));
995
+ await this.instantiationService.createInstance(SnippetsResource).apply(profileTemplate.snippets, profile);
996
+ }
997
+ if (profileTemplate.globalState && !profile.useDefaultFlags?.globalState) {
998
+ progress(( localizeWithPath(
999
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1000
+ 'progress global state',
1001
+ "Applying State..."
1002
+ )));
1003
+ await this.instantiationService.createInstance(GlobalStateResource).apply(profileTemplate.globalState, profile);
1004
+ }
1005
+ if (profileTemplate.extensions && extensions && !profile.useDefaultFlags?.extensions) {
1006
+ progress(( localizeWithPath(
1007
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1008
+ 'progress extensions',
1009
+ "Applying Extensions..."
1010
+ )));
1011
+ await this.instantiationService.createInstance(ExtensionsResource).apply(profileTemplate.extensions, profile);
1012
+ }
1013
+ return profile;
1014
+ }
1015
+ async resolveProfileContent(resource) {
1016
+ if (await this.fileUserDataProfileContentHandler.canHandle(resource)) {
1017
+ return this.fileUserDataProfileContentHandler.readProfile(resource, CancellationToken.None);
1018
+ }
1019
+ if (this.isProfileURL(resource)) {
1020
+ let handlerId, idOrUri;
1021
+ if (resource.authority === PROFILE_URL_AUTHORITY) {
1022
+ idOrUri = this.uriIdentityService.extUri.basename(resource);
1023
+ handlerId = this.uriIdentityService.extUri.basename(this.uriIdentityService.extUri.dirname(resource));
1024
+ }
1025
+ else {
1026
+ handlerId = resource.authority.substring(UserDataProfileImportExportService_1.PROFILE_URL_AUTHORITY_PREFIX.length);
1027
+ idOrUri = ( URI.parse(resource.path.substring(1)));
1028
+ }
1029
+ await this.extensionService.activateByEvent(`onProfile:${handlerId}`);
1030
+ const profileContentHandler = this.profileContentHandlers.get(handlerId);
1031
+ if (profileContentHandler) {
1032
+ return profileContentHandler.readProfile(idOrUri, CancellationToken.None);
1033
+ }
1034
+ }
1035
+ await this.extensionService.activateByEvent('onProfile');
1036
+ for (const profileContentHandler of ( this.profileContentHandlers.values())) {
1037
+ const content = await profileContentHandler.readProfile(resource, CancellationToken.None);
1038
+ if (content !== null) {
1039
+ return content;
1040
+ }
1041
+ }
1042
+ const context = await this.requestService.request({ type: 'GET', url: ( resource.toString(true)) }, CancellationToken.None);
1043
+ if (context.res.statusCode === 200) {
1044
+ return await asText(context);
1045
+ }
1046
+ else {
1047
+ const message = await asText(context);
1048
+ throw new Error(`Failed to get profile from URL: ${resource.toString()}. Status code: ${context.res.statusCode}. Message: ${message}`);
1049
+ }
1050
+ }
1051
+ async pickProfileContentHandler(name) {
1052
+ await this.extensionService.activateByEvent('onProfile');
1053
+ if (this.profileContentHandlers.size === 1) {
1054
+ return ( this.profileContentHandlers.keys()).next().value;
1055
+ }
1056
+ const options = [];
1057
+ for (const [id, profileContentHandler] of this.profileContentHandlers) {
1058
+ options.push({ id, label: profileContentHandler.name, description: profileContentHandler.description });
1059
+ }
1060
+ const result = await this.quickInputService.pick(options.reverse(), {
1061
+ title: ( localizeWithPath(
1062
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1063
+ 'select profile content handler',
1064
+ "Export '{0}' profile as...",
1065
+ name
1066
+ )),
1067
+ hideInput: true
1068
+ });
1069
+ return result?.id;
1070
+ }
1071
+ async getProfileToImport(profileTemplate, temp, options) {
1072
+ const profileName = profileTemplate.name;
1073
+ const profile = this.userDataProfilesService.profiles.find(p => p.name === profileName);
1074
+ if (profile) {
1075
+ if (temp) {
1076
+ return this.userDataProfilesService.createNamedProfile(`${profileName} ${this.getProfileNameIndex(profileName)}`, { ...options, transient: temp });
1077
+ }
1078
+ let ImportProfileChoice;
1079
+ ( (function(ImportProfileChoice) {
1080
+ ImportProfileChoice[ImportProfileChoice["Overwrite"] = 0] = "Overwrite";
1081
+ ImportProfileChoice[ImportProfileChoice["CreateNew"] = 1] = "CreateNew";
1082
+ ImportProfileChoice[ImportProfileChoice["Cancel"] = 2] = "Cancel";
1083
+ })(ImportProfileChoice || (ImportProfileChoice = {})));
1084
+ const { result } = await this.dialogService.prompt({
1085
+ type: Severity$1.Info,
1086
+ message: ( localizeWithPath(
1087
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1088
+ 'profile already exists',
1089
+ "Profile with name '{0}' already exists. Do you want to overwrite it?",
1090
+ profileName
1091
+ )),
1092
+ buttons: [
1093
+ {
1094
+ label: ( localizeWithPath(
1095
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1096
+ { key: 'overwrite', comment: ['&& denotes a mnemonic'] },
1097
+ "&&Overwrite"
1098
+ )),
1099
+ run: () => ImportProfileChoice.Overwrite
1100
+ },
1101
+ {
1102
+ label: ( localizeWithPath(
1103
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1104
+ { key: 'create new', comment: ['&& denotes a mnemonic'] },
1105
+ "&&Create New Profile"
1106
+ )),
1107
+ run: () => ImportProfileChoice.CreateNew
1108
+ },
1109
+ ],
1110
+ cancelButton: {
1111
+ run: () => ImportProfileChoice.Cancel
1112
+ }
1113
+ });
1114
+ if (result === ImportProfileChoice.Overwrite) {
1115
+ return profile;
1116
+ }
1117
+ if (result === ImportProfileChoice.Cancel) {
1118
+ return undefined;
1119
+ }
1120
+ const name = await this.quickInputService.input({
1121
+ placeHolder: ( localizeWithPath(
1122
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1123
+ 'name',
1124
+ "Profile name"
1125
+ )),
1126
+ title: ( localizeWithPath(
1127
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1128
+ 'create new title',
1129
+ "Create New Profile"
1130
+ )),
1131
+ value: `${profileName} ${this.getProfileNameIndex(profileName)}`,
1132
+ validateInput: async (value) => {
1133
+ if (( this.userDataProfilesService.profiles.some(p => p.name === value))) {
1134
+ return ( localizeWithPath(
1135
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1136
+ 'profileExists',
1137
+ "Profile with name {0} already exists.",
1138
+ value
1139
+ ));
1140
+ }
1141
+ return undefined;
1142
+ }
1143
+ });
1144
+ if (!name) {
1145
+ return undefined;
1146
+ }
1147
+ return this.userDataProfilesService.createNamedProfile(name);
1148
+ }
1149
+ else {
1150
+ return this.userDataProfilesService.createNamedProfile(profileName, { ...options, transient: temp });
1151
+ }
1152
+ }
1153
+ generateProfileName(profileName) {
1154
+ const existingProfile = this.userDataProfilesService.profiles.find(p => p.name === profileName);
1155
+ return existingProfile ? `${profileName} ${this.getProfileNameIndex(profileName)}` : profileName;
1156
+ }
1157
+ getProfileNameIndex(name) {
1158
+ const nameRegEx = ( new RegExp(`${escapeRegExpCharacters(name)}\\s(\\d+)`));
1159
+ let nameIndex = 0;
1160
+ for (const profile of this.userDataProfilesService.profiles) {
1161
+ const matches = nameRegEx.exec(profile.name);
1162
+ const index = matches ? parseInt(matches[1]) : 0;
1163
+ nameIndex = index > nameIndex ? index : nameIndex;
1164
+ }
1165
+ return nameIndex + 1;
1166
+ }
1167
+ async showProfilePreviewView(id, name, primary, secondary, refreshAction, userDataProfilesData) {
1168
+ const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
1169
+ const treeView = this.instantiationService.createInstance(TreeView, id, name);
1170
+ if (refreshAction) {
1171
+ treeView.showRefreshAction = true;
1172
+ }
1173
+ const actionRunner = ( new ActionRunner());
1174
+ const descriptor = {
1175
+ id,
1176
+ name: { value: name, original: name },
1177
+ ctorDescriptor: ( new SyncDescriptor(
1178
+ UserDataProfilePreviewViewPane,
1179
+ [userDataProfilesData, primary, secondary, actionRunner]
1180
+ )),
1181
+ canToggleVisibility: false,
1182
+ canMoveView: false,
1183
+ treeView,
1184
+ collapsed: false,
1185
+ };
1186
+ viewsRegistry.registerViews([descriptor], this.viewContainer);
1187
+ return (await this.viewsService.openView(id, true));
1188
+ }
1189
+ async hideProfilePreviewView(id) {
1190
+ const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
1191
+ const viewDescriptor = viewsRegistry.getView(id);
1192
+ if (viewDescriptor) {
1193
+ viewDescriptor.treeView.dispose();
1194
+ viewsRegistry.deregisterViews([viewDescriptor], this.viewContainer);
1195
+ }
1196
+ await this.closeAllImportExportPreviewEditors();
1197
+ }
1198
+ async closeAllImportExportPreviewEditors() {
1199
+ const editorsToColse = this.editorService.getEditors(1 ).filter(({ editor }) => editor.resource?.scheme === USER_DATA_PROFILE_EXPORT_SCHEME || editor.resource?.scheme === USER_DATA_PROFILE_EXPORT_PREVIEW_SCHEME || editor.resource?.scheme === USER_DATA_PROFILE_IMPORT_PREVIEW_SCHEME);
1200
+ if (editorsToColse.length) {
1201
+ await this.editorService.closeEditors(editorsToColse);
1202
+ }
1203
+ }
1204
+ async setProfile(profile) {
1205
+ await this.progressService.withProgress({
1206
+ location: 15 ,
1207
+ title: ( localizeWithPath(
1208
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1209
+ 'profiles.applying',
1210
+ "{0}: Applying...",
1211
+ PROFILES_CATEGORY.value
1212
+ )),
1213
+ }, async (progress) => {
1214
+ if (profile.settings) {
1215
+ await this.instantiationService.createInstance(SettingsResource).apply(profile.settings, this.userDataProfileService.currentProfile);
1216
+ }
1217
+ if (profile.globalState) {
1218
+ await this.instantiationService.createInstance(GlobalStateResource).apply(profile.globalState, this.userDataProfileService.currentProfile);
1219
+ }
1220
+ if (profile.extensions) {
1221
+ await this.instantiationService.createInstance(ExtensionsResource).apply(profile.extensions, this.userDataProfileService.currentProfile);
1222
+ }
1223
+ });
1224
+ this.notificationService.info(( localizeWithPath(
1225
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1226
+ 'applied profile',
1227
+ "{0}: Applied successfully.",
1228
+ PROFILES_CATEGORY.value
1229
+ )));
1230
+ }
1231
+ };
1232
+ UserDataProfileImportExportService = UserDataProfileImportExportService_1 = ( __decorate([
1233
+ ( __param(0, IInstantiationService)),
1234
+ ( __param(1, IUserDataProfileService)),
1235
+ ( __param(2, IViewsService)),
1236
+ ( __param(3, IEditorService)),
1237
+ ( __param(4, IContextKeyService)),
1238
+ ( __param(5, IUserDataProfileManagementService)),
1239
+ ( __param(6, IUserDataProfilesService)),
1240
+ ( __param(7, IExtensionService)),
1241
+ ( __param(8, IExtensionManagementService)),
1242
+ ( __param(9, IQuickInputService)),
1243
+ ( __param(10, INotificationService)),
1244
+ ( __param(11, IProgressService)),
1245
+ ( __param(12, IDialogService)),
1246
+ ( __param(13, IClipboardService)),
1247
+ ( __param(14, IOpenerService)),
1248
+ ( __param(15, IRequestService)),
1249
+ ( __param(16, IURLService)),
1250
+ ( __param(17, IProductService)),
1251
+ ( __param(18, IUriIdentityService)),
1252
+ ( __param(19, ITelemetryService)),
1253
+ ( __param(20, IContextViewService)),
1254
+ ( __param(21, IHoverService)),
1255
+ ( __param(22, ILogService))
1256
+ ], UserDataProfileImportExportService));
1257
+ let FileUserDataProfileContentHandler = class FileUserDataProfileContentHandler {
1258
+ constructor(fileDialogService, uriIdentityService, fileService, textFileService) {
1259
+ this.fileDialogService = fileDialogService;
1260
+ this.uriIdentityService = uriIdentityService;
1261
+ this.fileService = fileService;
1262
+ this.textFileService = textFileService;
1263
+ this.name = ( localizeWithPath(
1264
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1265
+ 'local',
1266
+ "Local"
1267
+ ));
1268
+ this.description = ( localizeWithPath(
1269
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1270
+ 'file',
1271
+ "file"
1272
+ ));
1273
+ }
1274
+ async saveProfile(name, content, token) {
1275
+ const link = await this.fileDialogService.showSaveDialog({
1276
+ title: ( localizeWithPath(
1277
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1278
+ 'export profile dialog',
1279
+ "Save Profile"
1280
+ )),
1281
+ filters: PROFILE_FILTER,
1282
+ defaultUri: this.uriIdentityService.extUri.joinPath(await this.fileDialogService.defaultFilePath(), `${name}.${PROFILE_EXTENSION}`),
1283
+ });
1284
+ if (!link) {
1285
+ return null;
1286
+ }
1287
+ await this.textFileService.create([{ resource: link, value: content, options: { overwrite: true } }]);
1288
+ return { link, id: ( link.toString()) };
1289
+ }
1290
+ async canHandle(uri) {
1291
+ return uri.scheme !== Schemas.http && uri.scheme !== Schemas.https && (await this.fileService.canHandleResource(uri));
1292
+ }
1293
+ async readProfile(uri, token) {
1294
+ if (await this.canHandle(uri)) {
1295
+ return ( (await this.fileService.readFile(uri, undefined, token)).value.toString());
1296
+ }
1297
+ return null;
1298
+ }
1299
+ async selectProfile() {
1300
+ const profileLocation = await this.fileDialogService.showOpenDialog({
1301
+ canSelectFolders: false,
1302
+ canSelectFiles: true,
1303
+ canSelectMany: false,
1304
+ filters: PROFILE_FILTER,
1305
+ title: ( localizeWithPath(
1306
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1307
+ 'select profile',
1308
+ "Select Profile"
1309
+ )),
1310
+ });
1311
+ return profileLocation ? profileLocation[0] : null;
1312
+ }
1313
+ };
1314
+ FileUserDataProfileContentHandler = ( __decorate([
1315
+ ( __param(0, IFileDialogService)),
1316
+ ( __param(1, IUriIdentityService)),
1317
+ ( __param(2, IFileService)),
1318
+ ( __param(3, ITextFileService))
1319
+ ], FileUserDataProfileContentHandler));
1320
+ let UserDataProfilePreviewViewPane = class UserDataProfilePreviewViewPane extends TreeViewPane {
1321
+ constructor(userDataProfileData, primaryAction, secondaryAction, actionRunner, options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, notificationService) {
1322
+ super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, notificationService);
1323
+ this.userDataProfileData = userDataProfileData;
1324
+ this.primaryAction = primaryAction;
1325
+ this.secondaryAction = secondaryAction;
1326
+ this.actionRunner = actionRunner;
1327
+ this.totalTreeItemsCount = 0;
1328
+ this.renderDisposables = this._register(( new DisposableStore()));
1329
+ }
1330
+ renderTreeView(container) {
1331
+ this.treeView.dataProvider = this.userDataProfileData;
1332
+ super.renderTreeView(append(container, $('.profile-view-tree-container')));
1333
+ this.messageContainer = append(container, $('.profile-view-message-container.hide'));
1334
+ this.createButtons(container);
1335
+ this._register(this.treeView.onDidChangeCheckboxState(() => this.updateConfirmButtonEnablement()));
1336
+ this.computeAndLayout();
1337
+ this._register(Event.any(this.userDataProfileData.onDidChangeRoots, this.treeView.onDidCollapseItem, this.treeView.onDidExpandItem)(() => this.computeAndLayout()));
1338
+ }
1339
+ async computeAndLayout() {
1340
+ const roots = await this.userDataProfileData.getRoots();
1341
+ const children = await Promise.all(( roots.map(async (root) => {
1342
+ let expanded = root.collapsibleState === TreeItemCollapsibleState.Expanded;
1343
+ try {
1344
+ expanded = !this.treeView.isCollapsed(root);
1345
+ }
1346
+ catch (error) { }
1347
+ if (expanded) {
1348
+ const children = await root.getChildren();
1349
+ return children ?? [];
1350
+ }
1351
+ return [];
1352
+ })));
1353
+ this.totalTreeItemsCount = roots.length + children.flat().length;
1354
+ this.updateConfirmButtonEnablement();
1355
+ if (this.dimension) {
1356
+ this.layoutTreeView(this.dimension.height, this.dimension.width);
1357
+ }
1358
+ }
1359
+ createButtons(container) {
1360
+ this.buttonsContainer = append(container, $('.profile-view-buttons-container'));
1361
+ this.primaryButton = this._register(( new Button(this.buttonsContainer, { ...defaultButtonStyles })));
1362
+ this.primaryButton.element.classList.add('profile-view-button');
1363
+ this.primaryButton.label = this.primaryAction.label;
1364
+ this.primaryButton.enabled = this.primaryAction.enabled;
1365
+ this._register(this.primaryButton.onDidClick(() => this.actionRunner.run(this.primaryAction)));
1366
+ this._register(this.primaryAction.onDidChange(e => {
1367
+ if (e.enabled !== undefined) {
1368
+ this.primaryButton.enabled = e.enabled;
1369
+ }
1370
+ }));
1371
+ this.secondaryButton = this._register(( new Button(this.buttonsContainer, { secondary: true, ...defaultButtonStyles })));
1372
+ this.secondaryButton.label = this.secondaryAction.label;
1373
+ this.secondaryButton.element.classList.add('profile-view-button');
1374
+ this.secondaryButton.enabled = this.secondaryAction.enabled;
1375
+ this._register(this.secondaryButton.onDidClick(() => this.actionRunner.run(this.secondaryAction)));
1376
+ this._register(this.secondaryAction.onDidChange(e => {
1377
+ if (e.enabled !== undefined) {
1378
+ this.secondaryButton.enabled = e.enabled;
1379
+ }
1380
+ }));
1381
+ }
1382
+ layoutTreeView(height, width) {
1383
+ this.dimension = new Dimension(width, height);
1384
+ let messageContainerHeight = 0;
1385
+ if (!this.messageContainer.classList.contains('hide')) {
1386
+ messageContainerHeight = getClientArea(this.messageContainer).height;
1387
+ }
1388
+ const buttonContainerHeight = 108;
1389
+ this.buttonsContainer.style.height = `${buttonContainerHeight}px`;
1390
+ this.buttonsContainer.style.width = `${width}px`;
1391
+ super.layoutTreeView(Math.min(height - buttonContainerHeight - messageContainerHeight, 22 * this.totalTreeItemsCount), width);
1392
+ }
1393
+ updateConfirmButtonEnablement() {
1394
+ this.primaryButton.enabled = this.primaryAction.enabled && this.userDataProfileData.isEnabled();
1395
+ }
1396
+ setMessage(message) {
1397
+ this.messageContainer.classList.toggle('hide', !message);
1398
+ clearNode(this.messageContainer);
1399
+ if (message) {
1400
+ this.renderDisposables.clear();
1401
+ const rendered = this.renderDisposables.add(renderMarkdown(message, {
1402
+ actionHandler: {
1403
+ callback: (content) => {
1404
+ this.openerService.open(content, { allowCommands: true }).catch(onUnexpectedError);
1405
+ },
1406
+ disposables: this.renderDisposables
1407
+ }
1408
+ }));
1409
+ append(this.messageContainer, rendered.element);
1410
+ }
1411
+ }
1412
+ refresh() {
1413
+ return this.treeView.refresh();
1414
+ }
1415
+ };
1416
+ UserDataProfilePreviewViewPane = ( __decorate([
1417
+ ( __param(5, IKeybindingService)),
1418
+ ( __param(6, IContextMenuService)),
1419
+ ( __param(7, IConfigurationService)),
1420
+ ( __param(8, IContextKeyService)),
1421
+ ( __param(9, IViewDescriptorService)),
1422
+ ( __param(10, IInstantiationService)),
1423
+ ( __param(11, IOpenerService)),
1424
+ ( __param(12, IThemeService)),
1425
+ ( __param(13, ITelemetryService)),
1426
+ ( __param(14, INotificationService))
1427
+ ], UserDataProfilePreviewViewPane));
1428
+ const USER_DATA_PROFILE_EXPORT_SCHEME = 'userdataprofileexport';
1429
+ const USER_DATA_PROFILE_EXPORT_PREVIEW_SCHEME = 'userdataprofileexportpreview';
1430
+ const USER_DATA_PROFILE_IMPORT_PREVIEW_SCHEME = 'userdataprofileimportpreview';
1431
+ let UserDataProfileImportExportState = class UserDataProfileImportExportState extends Disposable {
1432
+ constructor(quickInputService) {
1433
+ super();
1434
+ this.quickInputService = quickInputService;
1435
+ this._onDidChangeRoots = this._register(( new Emitter()));
1436
+ this.onDidChangeRoots = this._onDidChangeRoots.event;
1437
+ this.roots = [];
1438
+ }
1439
+ async getChildren(element) {
1440
+ if (element) {
1441
+ const children = await element.getChildren();
1442
+ if (children) {
1443
+ for (const child of children) {
1444
+ if (child.parent.checkbox && child.checkbox) {
1445
+ child.checkbox.isChecked = child.parent.checkbox.isChecked && child.checkbox.isChecked;
1446
+ }
1447
+ }
1448
+ }
1449
+ return children;
1450
+ }
1451
+ else {
1452
+ this.rootsPromise = undefined;
1453
+ this._onDidChangeRoots.fire();
1454
+ return this.getRoots();
1455
+ }
1456
+ }
1457
+ getRoots() {
1458
+ if (!this.rootsPromise) {
1459
+ this.rootsPromise = (async () => {
1460
+ this.roots = await this.fetchRoots();
1461
+ for (const root of this.roots) {
1462
+ root.checkbox = {
1463
+ isChecked: !root.isFromDefaultProfile(),
1464
+ tooltip: ( localizeWithPath(
1465
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1466
+ 'select',
1467
+ "Select {0}",
1468
+ root.label.label
1469
+ )),
1470
+ accessibilityInformation: {
1471
+ label: ( localizeWithPath(
1472
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1473
+ 'select',
1474
+ "Select {0}",
1475
+ root.label.label
1476
+ )),
1477
+ }
1478
+ };
1479
+ if (root.isFromDefaultProfile()) {
1480
+ root.description = ( localizeWithPath(
1481
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1482
+ 'from default',
1483
+ "From Default Profile"
1484
+ ));
1485
+ }
1486
+ }
1487
+ return this.roots;
1488
+ })();
1489
+ }
1490
+ return this.rootsPromise;
1491
+ }
1492
+ isEnabled(resourceType) {
1493
+ if (resourceType !== undefined) {
1494
+ return ( this.roots.some(root => root.type === resourceType && this.isSelected(root)));
1495
+ }
1496
+ return ( this.roots.some(root => this.isSelected(root)));
1497
+ }
1498
+ async getProfileTemplate(name, icon) {
1499
+ const roots = await this.getRoots();
1500
+ let settings;
1501
+ let keybindings;
1502
+ let tasks;
1503
+ let snippets;
1504
+ let extensions;
1505
+ let globalState;
1506
+ for (const root of roots) {
1507
+ if (!this.isSelected(root)) {
1508
+ continue;
1509
+ }
1510
+ if (root instanceof SettingsResourceTreeItem) {
1511
+ settings = await root.getContent();
1512
+ }
1513
+ else if (root instanceof KeybindingsResourceTreeItem) {
1514
+ keybindings = await root.getContent();
1515
+ }
1516
+ else if (root instanceof TasksResourceTreeItem) {
1517
+ tasks = await root.getContent();
1518
+ }
1519
+ else if (root instanceof SnippetsResourceTreeItem) {
1520
+ snippets = await root.getContent();
1521
+ }
1522
+ else if (root instanceof ExtensionsResourceTreeItem) {
1523
+ extensions = await root.getContent();
1524
+ }
1525
+ else if (root instanceof GlobalStateResourceTreeItem) {
1526
+ globalState = await root.getContent();
1527
+ }
1528
+ }
1529
+ return {
1530
+ name,
1531
+ icon,
1532
+ settings,
1533
+ keybindings,
1534
+ tasks,
1535
+ snippets,
1536
+ extensions,
1537
+ globalState
1538
+ };
1539
+ }
1540
+ isSelected(treeItem) {
1541
+ if (treeItem.checkbox) {
1542
+ return treeItem.checkbox.isChecked || !!treeItem.children?.some(child => child.checkbox?.isChecked);
1543
+ }
1544
+ return true;
1545
+ }
1546
+ };
1547
+ UserDataProfileImportExportState = ( __decorate([
1548
+ ( __param(0, IQuickInputService))
1549
+ ], UserDataProfileImportExportState));
1550
+ let UserDataProfileExportState = class UserDataProfileExportState extends UserDataProfileImportExportState {
1551
+ constructor(profile, quickInputService, fileService, instantiationService) {
1552
+ super(quickInputService);
1553
+ this.profile = profile;
1554
+ this.fileService = fileService;
1555
+ this.instantiationService = instantiationService;
1556
+ this.disposables = this._register(( new DisposableStore()));
1557
+ }
1558
+ async fetchRoots() {
1559
+ this.disposables.clear();
1560
+ this.disposables.add(this.fileService.registerProvider(USER_DATA_PROFILE_EXPORT_SCHEME, this._register(( new InMemoryFileSystemProvider()))));
1561
+ const previewFileSystemProvider = this._register(( new InMemoryFileSystemProvider()));
1562
+ this.disposables.add(this.fileService.registerProvider(USER_DATA_PROFILE_EXPORT_PREVIEW_SCHEME, previewFileSystemProvider));
1563
+ const roots = [];
1564
+ const exportPreviewProfle = this.createExportPreviewProfile(this.profile);
1565
+ const settingsResource = this.instantiationService.createInstance(SettingsResource);
1566
+ const settingsContent = await settingsResource.getContent(this.profile);
1567
+ await settingsResource.apply(settingsContent, exportPreviewProfle);
1568
+ const settingsResourceTreeItem = this.instantiationService.createInstance(SettingsResourceTreeItem, exportPreviewProfle);
1569
+ if (await settingsResourceTreeItem.hasContent()) {
1570
+ roots.push(settingsResourceTreeItem);
1571
+ }
1572
+ const keybindingsResource = this.instantiationService.createInstance(KeybindingsResource);
1573
+ const keybindingsContent = await keybindingsResource.getContent(this.profile);
1574
+ await keybindingsResource.apply(keybindingsContent, exportPreviewProfle);
1575
+ const keybindingsResourceTreeItem = this.instantiationService.createInstance(KeybindingsResourceTreeItem, exportPreviewProfle);
1576
+ if (await keybindingsResourceTreeItem.hasContent()) {
1577
+ roots.push(keybindingsResourceTreeItem);
1578
+ }
1579
+ const snippetsResource = this.instantiationService.createInstance(SnippetsResource);
1580
+ const snippetsContent = await snippetsResource.getContent(this.profile);
1581
+ await snippetsResource.apply(snippetsContent, exportPreviewProfle);
1582
+ const snippetsResourceTreeItem = this.instantiationService.createInstance(SnippetsResourceTreeItem, exportPreviewProfle);
1583
+ if (await snippetsResourceTreeItem.hasContent()) {
1584
+ roots.push(snippetsResourceTreeItem);
1585
+ }
1586
+ const tasksResource = this.instantiationService.createInstance(TasksResource);
1587
+ const tasksContent = await tasksResource.getContent(this.profile);
1588
+ await tasksResource.apply(tasksContent, exportPreviewProfle);
1589
+ const tasksResourceTreeItem = this.instantiationService.createInstance(TasksResourceTreeItem, exportPreviewProfle);
1590
+ if (await tasksResourceTreeItem.hasContent()) {
1591
+ roots.push(tasksResourceTreeItem);
1592
+ }
1593
+ const globalStateResource = joinPath(exportPreviewProfle.globalStorageHome, 'globalState.json').with({ scheme: USER_DATA_PROFILE_EXPORT_PREVIEW_SCHEME });
1594
+ const globalStateResourceTreeItem = this.instantiationService.createInstance(GlobalStateResourceExportTreeItem, exportPreviewProfle, globalStateResource);
1595
+ const content = await globalStateResourceTreeItem.getContent();
1596
+ if (content) {
1597
+ await this.fileService.writeFile(globalStateResource, VSBuffer.fromString(JSON.stringify(JSON.parse(content), null, '\t')));
1598
+ roots.push(globalStateResourceTreeItem);
1599
+ }
1600
+ const extensionsResourceTreeItem = this.instantiationService.createInstance(ExtensionsResourceExportTreeItem, exportPreviewProfle);
1601
+ if (await extensionsResourceTreeItem.hasContent()) {
1602
+ roots.push(extensionsResourceTreeItem);
1603
+ }
1604
+ previewFileSystemProvider.setReadOnly(true);
1605
+ return roots;
1606
+ }
1607
+ createExportPreviewProfile(profile) {
1608
+ return {
1609
+ id: profile.id,
1610
+ name: profile.name,
1611
+ location: profile.location,
1612
+ isDefault: profile.isDefault,
1613
+ shortName: profile.shortName,
1614
+ icon: profile.icon,
1615
+ globalStorageHome: profile.globalStorageHome,
1616
+ settingsResource: profile.settingsResource.with({ scheme: USER_DATA_PROFILE_EXPORT_SCHEME }),
1617
+ keybindingsResource: profile.keybindingsResource.with({ scheme: USER_DATA_PROFILE_EXPORT_SCHEME }),
1618
+ tasksResource: profile.tasksResource.with({ scheme: USER_DATA_PROFILE_EXPORT_SCHEME }),
1619
+ snippetsHome: profile.snippetsHome.with({ scheme: USER_DATA_PROFILE_EXPORT_SCHEME }),
1620
+ extensionsResource: profile.extensionsResource,
1621
+ cacheHome: profile.cacheHome,
1622
+ useDefaultFlags: profile.useDefaultFlags,
1623
+ isTransient: profile.isTransient
1624
+ };
1625
+ }
1626
+ async getProfileToExport() {
1627
+ let name = this.profile.name;
1628
+ if (this.profile.isDefault) {
1629
+ name = await this.quickInputService.input({
1630
+ placeHolder: ( localizeWithPath(
1631
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1632
+ 'export profile name',
1633
+ "Name the profile"
1634
+ )),
1635
+ title: ( localizeWithPath(
1636
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1637
+ 'export profile title',
1638
+ "Export Profile"
1639
+ )),
1640
+ async validateInput(input) {
1641
+ if (!input.trim()) {
1642
+ return ( localizeWithPath(
1643
+ 'vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService',
1644
+ 'profile name required',
1645
+ "Profile name must be provided."
1646
+ ));
1647
+ }
1648
+ return undefined;
1649
+ },
1650
+ });
1651
+ if (!name) {
1652
+ return null;
1653
+ }
1654
+ }
1655
+ return super.getProfileTemplate(name, this.profile.icon);
1656
+ }
1657
+ };
1658
+ UserDataProfileExportState = ( __decorate([
1659
+ ( __param(1, IQuickInputService)),
1660
+ ( __param(2, IFileService)),
1661
+ ( __param(3, IInstantiationService))
1662
+ ], UserDataProfileExportState));
1663
+ let UserDataProfileImportState = class UserDataProfileImportState extends UserDataProfileImportExportState {
1664
+ constructor(profile, fileService, quickInputService, instantiationService) {
1665
+ super(quickInputService);
1666
+ this.profile = profile;
1667
+ this.fileService = fileService;
1668
+ this.instantiationService = instantiationService;
1669
+ this.disposables = this._register(( new DisposableStore()));
1670
+ }
1671
+ async fetchRoots() {
1672
+ this.disposables.clear();
1673
+ const inMemoryProvider = this._register(( new InMemoryFileSystemProvider()));
1674
+ this.disposables.add(this.fileService.registerProvider(USER_DATA_PROFILE_IMPORT_PREVIEW_SCHEME, inMemoryProvider));
1675
+ const roots = [];
1676
+ const importPreviewProfle = toUserDataProfile(generateUuid(), this.profile.name, URI.file('/root').with({ scheme: USER_DATA_PROFILE_IMPORT_PREVIEW_SCHEME }), URI.file('/cache').with({ scheme: USER_DATA_PROFILE_IMPORT_PREVIEW_SCHEME }));
1677
+ if (this.profile.settings) {
1678
+ const settingsResource = this.instantiationService.createInstance(SettingsResource);
1679
+ await settingsResource.apply(this.profile.settings, importPreviewProfle);
1680
+ const settingsResourceTreeItem = this.instantiationService.createInstance(SettingsResourceTreeItem, importPreviewProfle);
1681
+ if (await settingsResourceTreeItem.hasContent()) {
1682
+ roots.push(settingsResourceTreeItem);
1683
+ }
1684
+ }
1685
+ if (this.profile.keybindings) {
1686
+ const keybindingsResource = this.instantiationService.createInstance(KeybindingsResource);
1687
+ await keybindingsResource.apply(this.profile.keybindings, importPreviewProfle);
1688
+ const keybindingsResourceTreeItem = this.instantiationService.createInstance(KeybindingsResourceTreeItem, importPreviewProfle);
1689
+ if (await keybindingsResourceTreeItem.hasContent()) {
1690
+ roots.push(keybindingsResourceTreeItem);
1691
+ }
1692
+ }
1693
+ if (this.profile.snippets) {
1694
+ const snippetsResource = this.instantiationService.createInstance(SnippetsResource);
1695
+ await snippetsResource.apply(this.profile.snippets, importPreviewProfle);
1696
+ const snippetsResourceTreeItem = this.instantiationService.createInstance(SnippetsResourceTreeItem, importPreviewProfle);
1697
+ if (await snippetsResourceTreeItem.hasContent()) {
1698
+ roots.push(snippetsResourceTreeItem);
1699
+ }
1700
+ }
1701
+ if (this.profile.tasks) {
1702
+ const tasksResource = this.instantiationService.createInstance(TasksResource);
1703
+ await tasksResource.apply(this.profile.tasks, importPreviewProfle);
1704
+ const tasksResourceTreeItem = this.instantiationService.createInstance(TasksResourceTreeItem, importPreviewProfle);
1705
+ if (await tasksResourceTreeItem.hasContent()) {
1706
+ roots.push(tasksResourceTreeItem);
1707
+ }
1708
+ }
1709
+ if (this.profile.globalState) {
1710
+ const globalStateResource = joinPath(importPreviewProfle.globalStorageHome, 'globalState.json');
1711
+ const content = VSBuffer.fromString(JSON.stringify(JSON.parse(this.profile.globalState), null, '\t'));
1712
+ if (content) {
1713
+ await this.fileService.writeFile(globalStateResource, content);
1714
+ roots.push(this.instantiationService.createInstance(GlobalStateResourceImportTreeItem, this.profile.globalState, globalStateResource));
1715
+ }
1716
+ }
1717
+ if (this.profile.extensions) {
1718
+ const extensionsResourceTreeItem = this.instantiationService.createInstance(ExtensionsResourceImportTreeItem, this.profile.extensions);
1719
+ if (await extensionsResourceTreeItem.hasContent()) {
1720
+ roots.push(extensionsResourceTreeItem);
1721
+ }
1722
+ }
1723
+ inMemoryProvider.setReadOnly(true);
1724
+ return roots;
1725
+ }
1726
+ isEmpty() {
1727
+ return !(this.profile.settings || this.profile.keybindings || this.profile.tasks || this.profile.snippets || this.profile.globalState || this.profile.extensions);
1728
+ }
1729
+ async getProfileTemplateToImport() {
1730
+ return this.getProfileTemplate(this.profile.name, this.profile.icon);
1731
+ }
1732
+ };
1733
+ UserDataProfileImportState = ( __decorate([
1734
+ ( __param(1, IFileService)),
1735
+ ( __param(2, IQuickInputService)),
1736
+ ( __param(3, IInstantiationService))
1737
+ ], UserDataProfileImportState));
1738
+ class BarrierAction extends Action {
1739
+ constructor(barrier, action, notificationService) {
1740
+ super(action.id, action.label, action.class, action.enabled, async () => {
1741
+ try {
1742
+ await action.run();
1743
+ }
1744
+ catch (error) {
1745
+ notificationService.error(error);
1746
+ throw error;
1747
+ }
1748
+ barrier.open();
1749
+ });
1750
+ }
1751
+ }
1752
+ export { UserDataProfileImportExportService };