@codingame/monaco-vscode-api 1.82.4 → 1.82.5-next.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 (567) hide show
  1. package/extensions.d.ts +3 -3
  2. package/external/xterm/typings/xterm.d.ts +1729 -0
  3. package/external/xterm-addon-canvas/typings/xterm-addon-canvas.d.ts +38 -0
  4. package/external/xterm-addon-image/typings/xterm-addon-image.d.ts +115 -0
  5. package/external/xterm-addon-search/typings/xterm-addon-search.d.ts +141 -0
  6. package/external/xterm-addon-serialize/typings/xterm-addon-serialize.d.ts +83 -0
  7. package/external/xterm-addon-unicode11/typings/xterm-addon-unicode11.d.ts +9 -0
  8. package/external/xterm-addon-webgl/typings/xterm-addon-webgl.d.ts +43 -0
  9. package/external/xterm-headless/typings/xterm-headless.d.ts +49 -0
  10. package/missing-services.js +0 -1
  11. package/monaco-editor-treemending.patch +1026 -1026
  12. package/package.json +21 -1
  13. package/service-override/bulkEdit.js +0 -1
  14. package/service-override/environment.js +0 -1
  15. package/service-override/extensions.js +1 -1
  16. package/service-override/files.js +0 -1
  17. package/service-override/keybindings.js +1 -6
  18. package/service-override/layout.js +0 -1
  19. package/service-override/output.js +0 -1
  20. package/service-override/quickaccess.js +0 -1
  21. package/services.js +10 -0
  22. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.d.ts +1 -1
  23. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +1 -1
  24. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +7 -7
  25. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +1 -1
  26. package/README.md +0 -392
  27. package/override/vs/workbench/contrib/notebook/browser/notebookEditor.js +0 -2
  28. package/service-override/accessibility.d.ts +0 -5
  29. package/service-override/accessibility.js +0 -11
  30. package/service-override/audioCue.d.ts +0 -5
  31. package/service-override/audioCue.js +0 -13
  32. package/service-override/bulkEdit.d.ts +0 -5
  33. package/service-override/configuration.d.ts +0 -17
  34. package/service-override/configuration.js +0 -117
  35. package/service-override/debug.d.ts +0 -5
  36. package/service-override/debug.js +0 -23
  37. package/service-override/dialogs.d.ts +0 -5
  38. package/service-override/dialogs.js +0 -57
  39. package/service-override/editor.d.ts +0 -10
  40. package/service-override/editor.js +0 -37
  41. package/service-override/environment.d.ts +0 -6
  42. package/service-override/extensions.d.ts +0 -50
  43. package/service-override/files.d.ts +0 -103
  44. package/service-override/keybindings.d.ts +0 -10
  45. package/service-override/languageDetectionWorker.d.ts +0 -5
  46. package/service-override/languageDetectionWorker.js +0 -15
  47. package/service-override/languages.d.ts +0 -11
  48. package/service-override/languages.js +0 -27
  49. package/service-override/layout.d.ts +0 -71
  50. package/service-override/lifecycle.d.ts +0 -5
  51. package/service-override/lifecycle.js +0 -10
  52. package/service-override/markers.d.ts +0 -5
  53. package/service-override/markers.js +0 -6
  54. package/service-override/model.d.ts +0 -5
  55. package/service-override/model.js +0 -10
  56. package/service-override/notifications.d.ts +0 -5
  57. package/service-override/notifications.js +0 -34
  58. package/service-override/output.d.ts +0 -6
  59. package/service-override/preferences.d.ts +0 -5
  60. package/service-override/preferences.js +0 -16
  61. package/service-override/quickaccess.d.ts +0 -10
  62. package/service-override/remoteAgent.d.ts +0 -6
  63. package/service-override/remoteAgent.js +0 -42
  64. package/service-override/search.d.ts +0 -5
  65. package/service-override/search.js +0 -19
  66. package/service-override/snippets.d.ts +0 -9
  67. package/service-override/snippets.js +0 -21
  68. package/service-override/storage.d.ts +0 -40
  69. package/service-override/storage.js +0 -116
  70. package/service-override/terminal.d.ts +0 -69
  71. package/service-override/terminal.js +0 -117
  72. package/service-override/textmate.d.ts +0 -6
  73. package/service-override/textmate.js +0 -41
  74. package/service-override/theme.d.ts +0 -7
  75. package/service-override/theme.js +0 -26
  76. package/service-override/viewBanner.d.ts +0 -6
  77. package/service-override/viewBanner.js +0 -10
  78. package/service-override/viewStatusBar.d.ts +0 -6
  79. package/service-override/viewStatusBar.js +0 -10
  80. package/service-override/viewTitleBar.d.ts +0 -6
  81. package/service-override/viewTitleBar.js +0 -10
  82. package/service-override/views.d.ts +0 -74
  83. package/service-override/views.js +0 -511
  84. package/service-override/workspaceTrust.d.ts +0 -5
  85. package/service-override/workspaceTrust.js +0 -13
  86. package/vscode/src/vs/base/browser/broadcast.js +0 -52
  87. package/vscode/src/vs/base/browser/indexedDB.d.ts +0 -17
  88. package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +0 -178
  89. package/vscode/src/vs/base/browser/ui/grid/grid.js +0 -465
  90. package/vscode/src/vs/base/browser/ui/grid/gridview.css.js +0 -4
  91. package/vscode/src/vs/base/browser/ui/grid/gridview.js +0 -977
  92. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +0 -60
  93. package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +0 -14
  94. package/vscode/src/vs/base/common/codicons.d.ts +0 -556
  95. package/vscode/src/vs/base/common/processes.js +0 -24
  96. package/vscode/src/vs/editor/common/services/languageFeaturesService.js +0 -42
  97. package/vscode/src/vs/editor/common/services/modelUndoRedoParticipant.js +0 -56
  98. package/vscode/src/vs/editor/common/services/textResourceConfigurationService.js +0 -116
  99. package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +0 -67
  100. package/vscode/src/vs/platform/audioCues/browser/media/all.mp3.js +0 -20
  101. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +0 -10
  102. package/vscode/src/vs/platform/download/common/downloadIpc.js +0 -16
  103. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.d.ts +0 -43
  104. package/vscode/src/vs/platform/files/common/diskFileSystemProviderClient.js +0 -136
  105. package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.d.ts +0 -50
  106. package/vscode/src/vs/platform/log/common/logIpc.js +0 -24
  107. package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +0 -94
  108. package/vscode/src/vs/platform/remote/browser/browserSocketFactory.js +0 -193
  109. package/vscode/src/vs/platform/remote/browser/remoteAuthorityResolverService.js +0 -107
  110. package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +0 -41
  111. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +0 -566
  112. package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +0 -29
  113. package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +0 -22
  114. package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +0 -46
  115. package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +0 -94
  116. package/vscode/src/vs/platform/terminal/common/environmentVariable.js +0 -7
  117. package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.js +0 -196
  118. package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +0 -37
  119. package/vscode/src/vs/platform/terminal/common/terminalLogService.js +0 -42
  120. package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +0 -467
  121. package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +0 -107
  122. package/vscode/src/vs/platform/terminal/common/terminalRecorder.js +0 -66
  123. package/vscode/src/vs/platform/terminal/common/terminalStrings.js +0 -16
  124. package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +0 -319
  125. package/vscode/src/vs/platform/userDataSync/common/settingsMerge.js +0 -40
  126. package/vscode/src/vs/platform/webview/common/mimeTypes.js +0 -22
  127. package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +0 -62
  128. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +0 -699
  129. package/vscode/src/vs/workbench/api/common/configurationExtensionPoint.js +0 -450
  130. package/vscode/src/vs/workbench/api/common/extHost.api.impl.d.ts +0 -14
  131. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +0 -236
  132. package/vscode/src/vs/workbench/api/common/extHostConfiguration.d.ts +0 -43
  133. package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.d.ts +0 -33
  134. package/vscode/src/vs/workbench/api/common/extHostExtensionService.d.ts +0 -138
  135. package/vscode/src/vs/workbench/api/common/extHostFileSystemInfo.d.ts +0 -21
  136. package/vscode/src/vs/workbench/api/common/extHostInitDataService.d.ts +0 -9
  137. package/vscode/src/vs/workbench/api/common/extHostLocalizationService.d.ts +0 -29
  138. package/vscode/src/vs/workbench/api/common/extHostManagedSockets.d.ts +0 -11
  139. package/vscode/src/vs/workbench/api/common/extHostRpcService.d.ts +0 -9
  140. package/vscode/src/vs/workbench/api/common/extHostStoragePaths.d.ts +0 -14
  141. package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +0 -53
  142. package/vscode/src/vs/workbench/api/common/extHostTunnelService.d.ts +0 -19
  143. package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +0 -12
  144. package/vscode/src/vs/workbench/api/common/extHostUriTransformerService.d.ts +0 -9
  145. package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +0 -91
  146. package/vscode/src/vs/workbench/api/worker/extHostExtensionService.d.ts +0 -21
  147. package/vscode/src/vs/workbench/browser/actions/listCommands.js +0 -605
  148. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarActions.js +0 -597
  149. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +0 -116
  150. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +0 -783
  151. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +0 -4
  152. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css.js +0 -4
  153. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +0 -88
  154. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +0 -4
  155. package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.js +0 -228
  156. package/vscode/src/vs/workbench/browser/parts/banner/media/bannerpart.css.js +0 -4
  157. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +0 -691
  158. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.d.ts +0 -7
  159. package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +0 -84
  160. package/vscode/src/vs/workbench/browser/parts/compositePart.js +0 -318
  161. package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.web.contribution.js +0 -69
  162. package/vscode/src/vs/workbench/browser/parts/dialogs/dialogHandler.js +0 -127
  163. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +0 -692
  164. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +0 -141
  165. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +0 -414
  166. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +0 -507
  167. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +0 -1233
  168. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +0 -133
  169. package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +0 -306
  170. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +0 -850
  171. package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css.js +0 -4
  172. package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +0 -4
  173. package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +0 -4
  174. package/vscode/src/vs/workbench/browser/parts/editor/media/notabstitlecontrol.css.js +0 -4
  175. package/vscode/src/vs/workbench/browser/parts/editor/media/tabstitlecontrol.css.js +0 -4
  176. package/vscode/src/vs/workbench/browser/parts/editor/media/titlecontrol.css.js +0 -4
  177. package/vscode/src/vs/workbench/browser/parts/editor/noTabsTitleControl.js +0 -247
  178. package/vscode/src/vs/workbench/browser/parts/editor/tabsTitleControl.js +0 -1569
  179. package/vscode/src/vs/workbench/browser/parts/editor/titleControl.js +0 -292
  180. package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +0 -4
  181. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsActions.css.js +0 -4
  182. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsCenter.css.js +0 -4
  183. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsList.css.js +0 -4
  184. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsToasts.css.js +0 -4
  185. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +0 -124
  186. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +0 -58
  187. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +0 -227
  188. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +0 -212
  189. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +0 -419
  190. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +0 -398
  191. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +0 -78
  192. package/vscode/src/vs/workbench/browser/parts/panel/media/basepanelpart.css.js +0 -4
  193. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +0 -134
  194. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +0 -756
  195. package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +0 -4
  196. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +0 -59
  197. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +0 -217
  198. package/vscode/src/vs/workbench/browser/parts/statusbar/media/statusbarpart.css.js +0 -4
  199. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarActions.js +0 -109
  200. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarItem.js +0 -234
  201. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarModel.js +0 -249
  202. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.js +0 -439
  203. package/vscode/src/vs/workbench/browser/parts/titlebar/commandCenterControl.js +0 -134
  204. package/vscode/src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css.js +0 -4
  205. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.d.ts +0 -115
  206. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.d.ts +0 -77
  207. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.js +0 -365
  208. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +0 -216
  209. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +0 -104
  210. package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +0 -4
  211. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +0 -1589
  212. package/vscode/src/vs/workbench/common/activity.js +0 -3
  213. package/vscode/src/vs/workbench/common/dialogs.js +0 -31
  214. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibility.contribution.js +0 -13
  215. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +0 -312
  216. package/vscode/src/vs/workbench/contrib/accessibility/browser/unfocusedViewDimmingContribution.js +0 -63
  217. package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCueDebuggerContribution.js +0 -45
  218. package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCueLineFeatureContribution.js +0 -170
  219. package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCues.contribution.js +0 -181
  220. package/vscode/src/vs/workbench/contrib/audioCues/browser/commands.js +0 -49
  221. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +0 -262
  222. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +0 -339
  223. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +0 -119
  224. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +0 -4
  225. package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.css.js +0 -4
  226. package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.js +0 -35
  227. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css.js +0 -4
  228. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +0 -345
  229. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline.js +0 -362
  230. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.css.js +0 -4
  231. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +0 -255
  232. package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css.js +0 -4
  233. package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +0 -249
  234. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +0 -14
  235. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +0 -137
  236. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +0 -212
  237. package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +0 -4
  238. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +0 -72
  239. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +0 -61
  240. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +0 -106
  241. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +0 -198
  242. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +0 -783
  243. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +0 -397
  244. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +0 -1296
  245. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +0 -176
  246. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +0 -958
  247. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +0 -496
  248. package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +0 -345
  249. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +0 -297
  250. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +0 -398
  251. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +0 -825
  252. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +0 -619
  253. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +0 -58
  254. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +0 -525
  255. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +0 -679
  256. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +0 -354
  257. package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +0 -204
  258. package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +0 -80
  259. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +0 -141
  260. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +0 -1172
  261. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +0 -1142
  262. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +0 -104
  263. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +0 -66
  264. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +0 -273
  265. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +0 -312
  266. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +0 -166
  267. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +0 -661
  268. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +0 -103
  269. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +0 -229
  270. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +0 -629
  271. package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +0 -4
  272. package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackEditorContribution.css.js +0 -4
  273. package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +0 -4
  274. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +0 -4
  275. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +0 -4
  276. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +0 -4
  277. package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +0 -4
  278. package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +0 -4
  279. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +0 -693
  280. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +0 -951
  281. package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +0 -46
  282. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +0 -334
  283. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +0 -96
  284. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +0 -573
  285. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +0 -413
  286. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +0 -100
  287. package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +0 -19
  288. package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +0 -15
  289. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +0 -98
  290. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +0 -57
  291. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +0 -1480
  292. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +0 -344
  293. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +0 -121
  294. package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +0 -173
  295. package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +0 -34
  296. package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +0 -115
  297. package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +0 -258
  298. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +0 -25
  299. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +0 -81
  300. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +0 -281
  301. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +0 -2414
  302. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +0 -4
  303. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +0 -16
  304. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +0 -5
  305. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +0 -73
  306. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +0 -36
  307. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +0 -325
  308. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +0 -230
  309. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +0 -97
  310. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +0 -352
  311. package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +0 -426
  312. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +0 -508
  313. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +0 -615
  314. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution2.js +0 -94
  315. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +0 -144
  316. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +0 -53
  317. package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +0 -134
  318. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +0 -353
  319. package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +0 -4
  320. package/vscode/src/vs/workbench/contrib/markers/browser/markers.contribution.js +0 -586
  321. package/vscode/src/vs/workbench/contrib/markers/browser/markersFilterOptions.js +0 -75
  322. package/vscode/src/vs/workbench/contrib/markers/browser/markersModel.js +0 -200
  323. package/vscode/src/vs/workbench/contrib/markers/browser/markersTable.js +0 -455
  324. package/vscode/src/vs/workbench/contrib/markers/browser/markersTreeViewer.js +0 -670
  325. package/vscode/src/vs/workbench/contrib/markers/browser/markersView.js +0 -873
  326. package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.css.js +0 -4
  327. package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.js +0 -132
  328. package/vscode/src/vs/workbench/contrib/markers/browser/media/markers.css.js +0 -4
  329. package/vscode/src/vs/workbench/contrib/markers/browser/messages.js +0 -170
  330. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +0 -70
  331. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css.js +0 -4
  332. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +0 -158
  333. package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +0 -3
  334. package/vscode/src/vs/workbench/contrib/outline/browser/outline.contribution.js +0 -261
  335. package/vscode/src/vs/workbench/contrib/outline/browser/outline.js +0 -10
  336. package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.css.js +0 -4
  337. package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.js +0 -290
  338. package/vscode/src/vs/workbench/contrib/outline/browser/outlineViewState.js +0 -66
  339. package/vscode/src/vs/workbench/contrib/output/common/outputLinkComputer.js +0 -129
  340. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +0 -272
  341. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditor.js +0 -1102
  342. package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindings.css.js +0 -4
  343. package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindingsEditor.css.js +0 -4
  344. package/vscode/src/vs/workbench/contrib/preferences/browser/media/preferences.css.js +0 -4
  345. package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css.js +0 -4
  346. package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsWidgets.css.js +0 -4
  347. package/vscode/src/vs/workbench/contrib/preferences/browser/preferences.contribution.js +0 -1213
  348. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesActions.js +0 -94
  349. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesEditor.js +0 -47
  350. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +0 -37
  351. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesRenderers.js +0 -747
  352. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesSearch.js +0 -349
  353. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +0 -468
  354. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditor2.js +0 -1477
  355. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditorSettingIndicators.js +0 -504
  356. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +0 -296
  357. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsSearchMenu.js +0 -79
  358. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTree.js +0 -2041
  359. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +0 -771
  360. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsWidgets.js +0 -1004
  361. package/vscode/src/vs/workbench/contrib/preferences/browser/tocTree.js +0 -196
  362. package/vscode/src/vs/workbench/contrib/preferences/common/preferencesContribution.js +0 -151
  363. package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +0 -67
  364. package/vscode/src/vs/workbench/contrib/remote/browser/media/tunnelView.css.js +0 -4
  365. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +0 -207
  366. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +0 -27
  367. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +0 -1666
  368. package/vscode/src/vs/workbench/contrib/remote/common/remote.contribution.js +0 -481
  369. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +0 -759
  370. package/vscode/src/vs/workbench/contrib/search/browser/media/anythingQuickAccess.css.js +0 -4
  371. package/vscode/src/vs/workbench/contrib/search/browser/media/searchview.css.js +0 -4
  372. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearchContributions.js +0 -7
  373. package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +0 -220
  374. package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +0 -232
  375. package/vscode/src/vs/workbench/contrib/search/browser/replaceContributions.js +0 -7
  376. package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +0 -224
  377. package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +0 -513
  378. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +0 -46
  379. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +0 -204
  380. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +0 -354
  381. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +0 -459
  382. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +0 -365
  383. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +0 -35
  384. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +0 -23
  385. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +0 -308
  386. package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +0 -41
  387. package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +0 -39
  388. package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +0 -58
  389. package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +0 -383
  390. package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +0 -1916
  391. package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +0 -636
  392. package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +0 -220
  393. package/vscode/src/vs/workbench/contrib/search/common/cacheState.js +0 -85
  394. package/vscode/src/vs/workbench/contrib/search/common/constants.js +0 -66
  395. package/vscode/src/vs/workbench/contrib/searchEditor/browser/constants.js +0 -11
  396. package/vscode/src/vs/workbench/contrib/searchEditor/browser/media/searchEditor.css.js +0 -4
  397. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +0 -477
  398. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +0 -700
  399. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +0 -187
  400. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +0 -298
  401. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +0 -135
  402. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +0 -268
  403. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +0 -20
  404. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/configureSnippets.js +0 -264
  405. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +0 -87
  406. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/insertSnippet.js +0 -126
  407. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/surroundWithSnippet.js +0 -56
  408. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCodeActionProvider.js +0 -136
  409. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetPicker.js +0 -83
  410. package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.contribution.js +0 -113
  411. package/vscode/src/vs/workbench/contrib/terminal/browser/baseTerminalBackend.js +0 -101
  412. package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +0 -54
  413. package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +0 -119
  414. package/vscode/src/vs/workbench/contrib/terminal/browser/media/scrollbar.css.js +0 -4
  415. package/vscode/src/vs/workbench/contrib/terminal/browser/media/terminal.css.js +0 -4
  416. package/vscode/src/vs/workbench/contrib/terminal/browser/media/widgets.css.js +0 -4
  417. package/vscode/src/vs/workbench/contrib/terminal/browser/media/xterm.css.js +0 -4
  418. package/vscode/src/vs/workbench/contrib/terminal/browser/remotePty.js +0 -175
  419. package/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.js +0 -311
  420. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.contribution.js +0 -240
  421. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +0 -1964
  422. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalCommands.js +0 -22
  423. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.js +0 -215
  424. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +0 -16
  425. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditor.js +0 -186
  426. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorService.js +0 -239
  427. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEvents.js +0 -47
  428. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +0 -25
  429. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroup.js +0 -482
  430. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroupService.js +0 -367
  431. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +0 -37
  432. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +0 -2101
  433. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstanceService.js +0 -82
  434. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMainContribution.js +0 -82
  435. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +0 -762
  436. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +0 -617
  437. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileQuickpick.js +0 -278
  438. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileResolverService.js +0 -316
  439. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileService.js +0 -218
  440. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +0 -146
  441. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +0 -269
  442. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalService.js +0 -1134
  443. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.js +0 -108
  444. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabbedView.js +0 -420
  445. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabsList.js +0 -676
  446. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTooltip.js +0 -72
  447. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalUri.js +0 -39
  448. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalView.js +0 -598
  449. package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +0 -36
  450. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +0 -469
  451. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +0 -97
  452. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +0 -56
  453. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +0 -416
  454. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +0 -390
  455. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +0 -793
  456. package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariableService.js +0 -96
  457. package/vscode/src/vs/workbench/contrib/terminal/common/history.js +0 -356
  458. package/vscode/src/vs/workbench/contrib/terminal/common/remote/remoteTerminalChannel.js +0 -253
  459. package/vscode/src/vs/workbench/contrib/terminal/common/terminalConfiguration.js +0 -1016
  460. package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +0 -272
  461. package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +0 -93
  462. package/vscode/src/vs/workbench/contrib/terminal/electron-sandbox/terminalProfileResolverService.js +0 -42
  463. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/bufferContentTracker.js +0 -110
  464. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminal.accessibility.contribution.js +0 -232
  465. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibilityHelp.js +0 -138
  466. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleBuffer.js +0 -226
  467. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleWidget.js +0 -142
  468. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/textAreaSyncAddon.js +0 -98
  469. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkProviderService.js +0 -26
  470. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixService.js +0 -155
  471. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +0 -4
  472. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +0 -247
  473. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +0 -334
  474. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +0 -117
  475. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +0 -288
  476. package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +0 -94
  477. package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +0 -86
  478. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +0 -640
  479. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +0 -63
  480. package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +0 -57
  481. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +0 -120
  482. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +0 -119
  483. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +0 -61
  484. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +0 -232
  485. package/vscode/src/vs/workbench/contrib/workspace/browser/media/workspaceTrustEditor.css.js +0 -4
  486. package/vscode/src/vs/workbench/contrib/workspace/browser/workspace.contribution.js +0 -842
  487. package/vscode/src/vs/workbench/contrib/workspace/browser/workspaceTrustEditor.js +0 -1047
  488. package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +0 -14
  489. package/vscode/src/vs/workbench/services/activity/browser/activityService.js +0 -94
  490. package/vscode/src/vs/workbench/services/configuration/browser/configuration.js +0 -878
  491. package/vscode/src/vs/workbench/services/configuration/browser/configurationService.js +0 -1170
  492. package/vscode/src/vs/workbench/services/configuration/common/configurationCache.js +0 -80
  493. package/vscode/src/vs/workbench/services/configuration/common/configurationEditing.js +0 -589
  494. package/vscode/src/vs/workbench/services/configuration/common/configurationModels.js +0 -119
  495. package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +0 -303
  496. package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +0 -26
  497. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +0 -174
  498. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +0 -10
  499. package/vscode/src/vs/workbench/services/dialogs/browser/abstractFileDialogService.js +0 -320
  500. package/vscode/src/vs/workbench/services/dialogs/browser/simpleFileDialog.js +0 -989
  501. package/vscode/src/vs/workbench/services/dialogs/common/dialogService.js +0 -66
  502. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +0 -622
  503. package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.js +0 -4
  504. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +0 -2
  505. package/vscode/src/vs/workbench/services/history/browser/historyService.js +0 -1454
  506. package/vscode/src/vs/workbench/services/hover/browser/hoverService.js +0 -162
  507. package/vscode/src/vs/workbench/services/hover/browser/hoverWidget.js +0 -523
  508. package/vscode/src/vs/workbench/services/hover/browser/media/hover.css.js +0 -4
  509. package/vscode/src/vs/workbench/services/label/common/labelService.js +0 -412
  510. package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionSimpleWorker.js +0 -173
  511. package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionWorkerServiceImpl.js +0 -259
  512. package/vscode/src/vs/workbench/services/lifecycle/browser/lifecycleService.js +0 -121
  513. package/vscode/src/vs/workbench/services/localization/common/locale.js +0 -3
  514. package/vscode/src/vs/workbench/services/notification/common/notificationService.js +0 -188
  515. package/vscode/src/vs/workbench/services/outline/browser/outlineService.js +0 -35
  516. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +0 -37
  517. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +0 -556
  518. package/vscode/src/vs/workbench/services/preferences/browser/preferencesService.js +0 -547
  519. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +0 -39
  520. package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +0 -1039
  521. package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +0 -393
  522. package/vscode/src/vs/workbench/services/remote/browser/remoteAgentService.js +0 -71
  523. package/vscode/src/vs/workbench/services/remote/common/abstractRemoteAgentService.js +0 -177
  524. package/vscode/src/vs/workbench/services/remote/common/remoteAgentEnvironmentChannel.js +0 -51
  525. package/vscode/src/vs/workbench/services/remote/common/remoteFileSystemProviderClient.js +0 -38
  526. package/vscode/src/vs/workbench/services/search/common/queryBuilder.d.ts +0 -35
  527. package/vscode/src/vs/workbench/services/search/common/searchService.js +0 -370
  528. package/vscode/src/vs/workbench/services/storage/browser/storageService.d.ts +0 -40
  529. package/vscode/src/vs/workbench/services/storage/browser/storageService.js +0 -280
  530. package/vscode/src/vs/workbench/services/suggest/browser/media/suggest.css.js +0 -4
  531. package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.js +0 -10
  532. package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.js +0 -98
  533. package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +0 -399
  534. package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +0 -83
  535. package/vscode/src/vs/workbench/services/textMate/browser/arrayOperation.js +0 -62
  536. package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/textMateWorkerTokenizerController.js +0 -157
  537. package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/threadedBackgroundTokenizerFactory.js +0 -200
  538. package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/worker/textMateTokenizationWorker.worker.js +0 -87
  539. package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/worker/textMateWorkerTokenizer.js +0 -140
  540. package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeature.d.ts +0 -11
  541. package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js +0 -459
  542. package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/textMateTokenizationSupport.js +0 -72
  543. package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/tokenizationSupportWithLineLimit.js +0 -36
  544. package/vscode/src/vs/workbench/services/textMate/common/TMGrammarFactory.js +0 -118
  545. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +0 -93
  546. package/vscode/src/vs/workbench/services/textMate/common/TMScopeRegistry.js +0 -24
  547. package/vscode/src/vs/workbench/services/textmodelResolver/common/textModelResolverService.js +0 -187
  548. package/vscode/src/vs/workbench/services/themes/browser/fileIconThemeData.js +0 -353
  549. package/vscode/src/vs/workbench/services/themes/browser/productIconThemeData.js +0 -290
  550. package/vscode/src/vs/workbench/services/themes/browser/workbenchThemeService.js +0 -742
  551. package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +0 -864
  552. package/vscode/src/vs/workbench/services/themes/common/colorThemeSchema.js +0 -265
  553. package/vscode/src/vs/workbench/services/themes/common/fileIconThemeSchema.js +0 -303
  554. package/vscode/src/vs/workbench/services/themes/common/plistParser.js +0 -439
  555. package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +0 -94
  556. package/vscode/src/vs/workbench/services/themes/common/textMateScopeMatcher.js +0 -120
  557. package/vscode/src/vs/workbench/services/themes/common/themeCompatibility.js +0 -66
  558. package/vscode/src/vs/workbench/services/themes/common/themeConfiguration.js +0 -372
  559. package/vscode/src/vs/workbench/services/themes/common/themeExtensionPoints.js +0 -254
  560. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +0 -689
  561. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +0 -612
  562. package/vscode/src/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js +0 -322
  563. package/vscode/src/vs/workbench/services/workspaces/browser/workspaceTrustEditorInput.js +0 -27
  564. package/vscode/src/vs/workbench/services/workspaces/browser/workspacesService.js +0 -151
  565. package/workers/languageDetection.worker.js +0 -8
  566. package/workers/outputLinkComputer.worker.js +0 -3
  567. package/workers/textmate.worker.js +0 -3
@@ -1,2414 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import './media/extensionActions.css.js';
3
- import { localize } from 'monaco-editor/esm/vs/nls.js';
4
- import { Action, Separator, SubmenuAction } from 'monaco-editor/esm/vs/base/common/actions.js';
5
- import { Throttler, Delayer } from 'monaco-editor/esm/vs/base/common/async.js';
6
- import * as dom from 'monaco-editor/esm/vs/base/browser/dom.js';
7
- import { Event, Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
8
- import * as json from 'monaco-editor/esm/vs/base/common/json.js';
9
- import { IContextMenuService } from 'monaco-editor/esm/vs/platform/contextview/browser/contextView.js';
10
- import { disposeIfDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
11
- import { INSTALL_ACTIONS_GROUP, THEME_ACTIONS_GROUP, VIEWLET_ID, IExtensionsWorkbenchService, SELECT_INSTALL_VSIX_EXTENSION_COMMAND_ID, TOGGLE_IGNORE_EXTENSION_ACTION_ID } from '../common/extensions.js';
12
- import { ExtensionsConfigurationInitialContent } from '../common/extensionsFileTemplate.js';
13
- import { TargetPlatformToString, ExtensionManagementErrorCode, IExtensionGalleryService } from '../../../../platform/extensionManagement/common/extensionManagement.js';
14
- import { IExtensionManagementServerService, IWorkbenchExtensionEnablementService } from '../../../services/extensionManagement/common/extensionManagement.js';
15
- import { IExtensionRecommendationsService, IExtensionIgnoredRecommendationsService } from '../../../services/extensionRecommendations/common/extensionRecommendations.js';
16
- import { areSameExtensions, getExtensionId } from '../../../../platform/extensionManagement/common/extensionManagementUtil.js';
17
- import { isLanguagePackExtension, ExtensionIdentifier, getWorkspaceSupportTypeMessage, isApplicationScopedExtension } from 'monaco-editor/esm/vs/platform/extensions/common/extensions.js';
18
- import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
19
- import { IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
20
- import { IWorkspaceContextService } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
21
- import { IHostService } from '../../../services/host/browser/host.js';
22
- import { toExtensionDescription, toExtension, IExtensionService } from '../../../services/extensions/common/extensions.js';
23
- import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
24
- import { CommandsRegistry, ICommandService } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
25
- import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
26
- import { registerThemingParticipant } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
27
- import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
28
- import { registerColor, buttonBackground, buttonForeground, buttonHoverBackground, buttonSeparator, editorErrorForeground, editorWarningForeground, editorInfoForeground } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
29
- import { IJSONEditingService } from '../../../services/configuration/common/jsonEditing.js';
30
- import { ITextModelService } from 'monaco-editor/esm/vs/editor/common/services/resolverService.js';
31
- import { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
32
- import { IMenuService, MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
33
- import { PICK_WORKSPACE_FOLDER_COMMAND_ID } from '../../../browser/actions/workspaceCommands.js';
34
- import { Severity, INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
35
- import { IOpenerService } from 'monaco-editor/esm/vs/platform/opener/common/opener.js';
36
- import { IEditorService } from '../../../services/editor/common/editorService.js';
37
- import { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
38
- import { CancellationToken } from 'monaco-editor/esm/vs/base/common/cancellation.js';
39
- import { alert } from 'monaco-editor/esm/vs/base/browser/ui/aria/aria.js';
40
- import { IWorkbenchThemeService } from '../../../services/themes/common/workbenchThemeService.js';
41
- import { ILabelService } from 'monaco-editor/esm/vs/platform/label/common/label.js';
42
- import { ITextFileService } from '../../../services/textfile/common/textfiles.js';
43
- import { IProductService } from 'monaco-editor/esm/vs/platform/product/common/productService.js';
44
- import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
45
- import { ActionViewItem } from 'monaco-editor/esm/vs/base/browser/ui/actionbar/actionViewItems.js';
46
- import { EXTENSIONS_CONFIG } from '../../../services/extensionRecommendations/common/workspaceExtensionsConfig.js';
47
- import { isCancellationError, getErrorMessage } from 'monaco-editor/esm/vs/base/common/errors.js';
48
- import { IUserDataSyncEnablementService } from '../../../../platform/userDataSync/common/userDataSync.js';
49
- import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
50
- import { manageExtensionIcon, preReleaseIcon, syncIgnoredIcon, syncEnabledIcon, warningIcon, infoIcon, trustIcon, errorIcon } from './extensionsIcons.js';
51
- import { language, isWeb, isIOS } from 'monaco-editor/esm/vs/base/common/platform.js';
52
- import { IExtensionManifestPropertiesService } from '../../../services/extensions/common/extensionManifestPropertiesService.js';
53
- import { IWorkspaceTrustEnablementService, IWorkspaceTrustManagementService } from 'monaco-editor/esm/vs/platform/workspace/common/workspaceTrust.js';
54
- import { isVirtualWorkspace } from '../../../../platform/workspace/common/virtualWorkspace.js';
55
- import { MarkdownString, escapeMarkdownSyntaxTokens } from 'monaco-editor/esm/vs/base/common/htmlContent.js';
56
- import { IPaneCompositePartService } from '../../../services/panecomposite/browser/panecomposite.js';
57
- import { fromNow } from '../../../../base/common/date.js';
58
- import { IPreferencesService } from '../../../services/preferences/common/preferences.js';
59
- import { getLocale } from '../../../../platform/languagePacks/common/languagePacks.js';
60
- import { ILocaleService } from '../../../services/localization/common/locale.js';
61
- import { isString } from 'monaco-editor/esm/vs/base/common/types.js';
62
- import { showWindowLogActionId } from '../../../services/log/common/logConstants.js';
63
- import { ITelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
64
- import { IDialogService } from '../../../../platform/dialogs/common/dialogs.js';
65
- var InstallAction_1, InstallInOtherServerAction_1, UninstallAction_1, MigrateDeprecatedExtensionAction_1, ManageExtensionAction_1, SwitchToPreReleaseVersionAction_1, SwitchToReleasedVersionAction_1, InstallAnotherVersionAction_1, EnableForWorkspaceAction_1, EnableGloballyAction_1, DisableForWorkspaceAction_1, DisableGloballyAction_1, ReloadAction_1, SetColorThemeAction_1, SetFileIconThemeAction_1, SetProductIconThemeAction_1, SetLanguageAction_1, ClearLanguageAction_1, ShowRecommendedExtensionAction_1, InstallRecommendedExtensionAction_1, IgnoreExtensionRecommendationAction_1, UndoIgnoreExtensionRecommendationAction_1, ExtensionStatusLabelAction_1, ToggleSyncExtensionAction_1, ExtensionStatusAction_1, ReinstallAction_1, InstallSpecificVersionOfExtensionAction_1;
66
- let PromptExtensionInstallFailureAction = class PromptExtensionInstallFailureAction extends Action {
67
- constructor(extension, version, installOperation, error, productService, openerService, notificationService, dialogService, commandService, logService, extensionManagementServerService, instantiationService, galleryService, extensionManifestPropertiesService) {
68
- super('extension.promptExtensionInstallFailure');
69
- this.extension = extension;
70
- this.version = version;
71
- this.installOperation = installOperation;
72
- this.error = error;
73
- this.productService = productService;
74
- this.openerService = openerService;
75
- this.notificationService = notificationService;
76
- this.dialogService = dialogService;
77
- this.commandService = commandService;
78
- this.logService = logService;
79
- this.extensionManagementServerService = extensionManagementServerService;
80
- this.instantiationService = instantiationService;
81
- this.galleryService = galleryService;
82
- this.extensionManifestPropertiesService = extensionManifestPropertiesService;
83
- }
84
- async run() {
85
- if (isCancellationError(this.error)) {
86
- return;
87
- }
88
- this.logService.error(this.error);
89
- if (this.error.name === ExtensionManagementErrorCode.Unsupported) {
90
- const productName = isWeb ? ( (localize('VS Code for Web', "{0} for the Web", this.productService.nameLong))) : this.productService.nameLong;
91
- const message = ( (localize(
92
- 'cannot be installed',
93
- "The '{0}' extension is not available in {1}. Click 'More Information' to learn more.",
94
- this.extension.displayName || this.extension.identifier.id,
95
- productName
96
- )));
97
- const { confirmed } = await this.dialogService.confirm({
98
- type: Severity.Info,
99
- message,
100
- primaryButton: ( (localize(
101
- { key: 'more information', comment: ['&& denotes a mnemonic'] },
102
- "&&More Information"
103
- ))),
104
- cancelButton: ( (localize('close', "Close")))
105
- });
106
- if (confirmed) {
107
- this.openerService.open(isWeb ? ( (URI.parse('https://aka.ms/vscode-web-extensions-guide'))) : ( (URI.parse('https://aka.ms/vscode-remote'))));
108
- }
109
- return;
110
- }
111
- if ([ExtensionManagementErrorCode.Incompatible, ExtensionManagementErrorCode.IncompatibleTargetPlatform, ExtensionManagementErrorCode.Malicious, ExtensionManagementErrorCode.ReleaseVersionNotFound, ExtensionManagementErrorCode.Deprecated].includes(this.error.name)) {
112
- await this.dialogService.info(getErrorMessage(this.error));
113
- return;
114
- }
115
- if (ExtensionManagementErrorCode.Signature === this.error.name) {
116
- await this.dialogService.prompt({
117
- type: 'error',
118
- message: ( (localize(
119
- 'signature verification failed',
120
- "{0} cannot verify the '{1}' extension. Are you sure you want to install it?",
121
- this.productService.nameLong,
122
- this.extension.displayName || this.extension.identifier.id
123
- ))),
124
- buttons: [{
125
- label: ( (localize('install anyway', "Install Anyway"))),
126
- run: () => {
127
- const installAction = this.instantiationService.createInstance(InstallAction, { donotVerifySignature: true });
128
- installAction.extension = this.extension;
129
- return installAction.run();
130
- }
131
- }],
132
- cancelButton: ( (localize('cancel', "Cancel")))
133
- });
134
- return;
135
- }
136
- const operationMessage = this.installOperation === 3 ? ( (localize(
137
- 'update operation',
138
- "Error while updating '{0}' extension.",
139
- this.extension.displayName || this.extension.identifier.id
140
- )))
141
- : ( (localize(
142
- 'install operation',
143
- "Error while installing '{0}' extension.",
144
- this.extension.displayName || this.extension.identifier.id
145
- )));
146
- let additionalMessage;
147
- const promptChoices = [];
148
- const downloadUrl = await this.getDownloadUrl();
149
- if (downloadUrl) {
150
- additionalMessage = ( (localize(
151
- 'check logs',
152
- "Please check the [log]({0}) for more details.",
153
- `command:${showWindowLogActionId}`
154
- )));
155
- promptChoices.push({
156
- label: ( (localize('download', "Try Downloading Manually..."))),
157
- run: () => this.openerService.open(downloadUrl).then(() => {
158
- this.notificationService.prompt(Severity.Info, ( (localize(
159
- 'install vsix',
160
- 'Once downloaded, please manually install the downloaded VSIX of \'{0}\'.',
161
- this.extension.identifier.id
162
- ))), [{
163
- label: ( (localize('installVSIX', "Install from VSIX..."))),
164
- run: () => this.commandService.executeCommand(SELECT_INSTALL_VSIX_EXTENSION_COMMAND_ID)
165
- }]);
166
- })
167
- });
168
- }
169
- const message = `${operationMessage}${additionalMessage ? ` ${additionalMessage}` : ''}`;
170
- this.notificationService.prompt(Severity.Error, message, promptChoices);
171
- }
172
- async getDownloadUrl() {
173
- if (isIOS) {
174
- return undefined;
175
- }
176
- if (!this.extension.gallery) {
177
- return undefined;
178
- }
179
- if (!this.productService.extensionsGallery) {
180
- return undefined;
181
- }
182
- if (!this.extensionManagementServerService.localExtensionManagementServer && !this.extensionManagementServerService.remoteExtensionManagementServer) {
183
- return undefined;
184
- }
185
- let targetPlatform = this.extension.gallery.properties.targetPlatform;
186
- if (targetPlatform !== "universal" && targetPlatform !== "undefined" && this.extensionManagementServerService.remoteExtensionManagementServer) {
187
- try {
188
- const manifest = await this.galleryService.getManifest(this.extension.gallery, CancellationToken.None);
189
- if (manifest && this.extensionManifestPropertiesService.prefersExecuteOnWorkspace(manifest)) {
190
- targetPlatform = await this.extensionManagementServerService.remoteExtensionManagementServer.extensionManagementService.getTargetPlatform();
191
- }
192
- }
193
- catch (error) {
194
- this.logService.error(error);
195
- return undefined;
196
- }
197
- }
198
- if (targetPlatform === "unknown" ) {
199
- return undefined;
200
- }
201
- return (
202
- (URI.parse(
203
- `${this.productService.extensionsGallery.serviceUrl}/publishers/${this.extension.publisher}/vsextensions/${this.extension.name}/${this.version}/vspackage${targetPlatform !== "undefined" ? `?targetPlatform=${targetPlatform}` : ''}`
204
- ))
205
- );
206
- }
207
- };
208
- PromptExtensionInstallFailureAction = ( (__decorate([
209
- ( (__param(4, IProductService))),
210
- ( (__param(5, IOpenerService))),
211
- ( (__param(6, INotificationService))),
212
- ( (__param(7, IDialogService))),
213
- ( (__param(8, ICommandService))),
214
- ( (__param(9, ILogService))),
215
- ( (__param(10, IExtensionManagementServerService))),
216
- ( (__param(11, IInstantiationService))),
217
- ( (__param(12, IExtensionGalleryService))),
218
- ( (__param(13, IExtensionManifestPropertiesService)))
219
- ], PromptExtensionInstallFailureAction)));
220
- class ExtensionAction extends Action {
221
- constructor() {
222
- super(...arguments);
223
- this._extension = null;
224
- }
225
- static { this.EXTENSION_ACTION_CLASS = 'extension-action'; }
226
- static { this.TEXT_ACTION_CLASS = `${ExtensionAction.EXTENSION_ACTION_CLASS} text`; }
227
- static { this.LABEL_ACTION_CLASS = `${ExtensionAction.EXTENSION_ACTION_CLASS} label`; }
228
- static { this.ICON_ACTION_CLASS = `${ExtensionAction.EXTENSION_ACTION_CLASS} icon`; }
229
- get extension() { return this._extension; }
230
- set extension(extension) { this._extension = extension; this.update(); }
231
- }
232
- let InstallAction = class InstallAction extends ExtensionAction {
233
- static { InstallAction_1 = this; }
234
- static { this.Class = `${ExtensionAction.LABEL_ACTION_CLASS} prominent install`; }
235
- set manifest(manifest) {
236
- this._manifest = manifest;
237
- this.updateLabel();
238
- }
239
- constructor(options, extensionsWorkbenchService, instantiationService, runtimeExtensionService, workbenchThemeService, labelService, dialogService, preferencesService, telemetryService) {
240
- super('extensions.install', ( (localize('install', "Install"))), InstallAction_1.Class, false);
241
- this.extensionsWorkbenchService = extensionsWorkbenchService;
242
- this.instantiationService = instantiationService;
243
- this.runtimeExtensionService = runtimeExtensionService;
244
- this.workbenchThemeService = workbenchThemeService;
245
- this.labelService = labelService;
246
- this.dialogService = dialogService;
247
- this.preferencesService = preferencesService;
248
- this.telemetryService = telemetryService;
249
- this._manifest = null;
250
- this.updateThrottler = ( (new Throttler()));
251
- this.options = { ...options, isMachineScoped: false };
252
- this.update();
253
- this._register(this.labelService.onDidChangeFormatters(() => this.updateLabel(), this));
254
- }
255
- update() {
256
- this.updateThrottler.queue(() => this.computeAndUpdateEnablement());
257
- }
258
- async computeAndUpdateEnablement() {
259
- this.enabled = false;
260
- if (!this.extension) {
261
- return;
262
- }
263
- if (this.extension.isBuiltin) {
264
- return;
265
- }
266
- if (this.extensionsWorkbenchService.canSetLanguage(this.extension)) {
267
- return;
268
- }
269
- if (this.extension.state === 3 && (await this.extensionsWorkbenchService.canInstall(this.extension))) {
270
- this.enabled = this.options.installPreReleaseVersion ? this.extension.hasPreReleaseVersion : this.extension.hasReleaseVersion;
271
- this.updateLabel();
272
- }
273
- }
274
- async run() {
275
- if (!this.extension) {
276
- return;
277
- }
278
- if (this.extension.deprecationInfo) {
279
- let detail = ( (localize(
280
- 'deprecated message',
281
- "This extension is deprecated as it is no longer being maintained."
282
- )));
283
- let DeprecationChoice;
284
- ( ((function(DeprecationChoice) {
285
- DeprecationChoice[DeprecationChoice["InstallAnyway"] = 0] = "InstallAnyway";
286
- DeprecationChoice[DeprecationChoice["ShowAlternateExtension"] = 1] = "ShowAlternateExtension";
287
- DeprecationChoice[DeprecationChoice["ConfigureSettings"] = 2] = "ConfigureSettings";
288
- DeprecationChoice[DeprecationChoice["Cancel"] = 3] = "Cancel";
289
- })(DeprecationChoice || (DeprecationChoice = {}))));
290
- const buttons = [
291
- {
292
- label: ( (localize('install anyway', "Install Anyway"))),
293
- run: () => DeprecationChoice.InstallAnyway
294
- }
295
- ];
296
- if (this.extension.deprecationInfo.extension) {
297
- detail = ( (localize(
298
- 'deprecated with alternate extension message',
299
- "This extension is deprecated. Use the {0} extension instead.",
300
- this.extension.deprecationInfo.extension.displayName
301
- )));
302
- const alternateExtension = this.extension.deprecationInfo.extension;
303
- buttons.push({
304
- label: ( (localize(
305
- { key: 'Show alternate extension', comment: ['&& denotes a mnemonic'] },
306
- "&&Open {0}",
307
- this.extension.deprecationInfo.extension.displayName
308
- ))),
309
- run: async () => {
310
- const [extension] = await this.extensionsWorkbenchService.getExtensions([{ id: alternateExtension.id, preRelease: alternateExtension.preRelease }], CancellationToken.None);
311
- await this.extensionsWorkbenchService.open(extension);
312
- return DeprecationChoice.ShowAlternateExtension;
313
- }
314
- });
315
- }
316
- else if (this.extension.deprecationInfo.settings) {
317
- detail = ( (localize(
318
- 'deprecated with alternate settings message',
319
- "This extension is deprecated as this functionality is now built-in to VS Code."
320
- )));
321
- const settings = this.extension.deprecationInfo.settings;
322
- buttons.push({
323
- label: ( (localize(
324
- { key: 'configure in settings', comment: ['&& denotes a mnemonic'] },
325
- "&&Configure Settings"
326
- ))),
327
- run: async () => {
328
- await this.preferencesService.openSettings({ query: ( (settings.map(setting => `@id:${setting}`))).join(' ') });
329
- return DeprecationChoice.ConfigureSettings;
330
- }
331
- });
332
- }
333
- else if (this.extension.deprecationInfo.additionalInfo) {
334
- detail = ( (new MarkdownString(`${detail} ${this.extension.deprecationInfo.additionalInfo}`)));
335
- }
336
- const { result } = await this.dialogService.prompt({
337
- type: Severity.Warning,
338
- message: ( (localize(
339
- 'install confirmation',
340
- "Are you sure you want to install '{0}'?",
341
- this.extension.displayName
342
- ))),
343
- detail: isString(detail) ? detail : undefined,
344
- custom: isString(detail) ? undefined : {
345
- markdownDetails: [{
346
- markdown: detail
347
- }]
348
- },
349
- buttons,
350
- cancelButton: {
351
- run: () => DeprecationChoice.Cancel
352
- }
353
- });
354
- if (result !== DeprecationChoice.InstallAnyway) {
355
- return;
356
- }
357
- }
358
- this.extensionsWorkbenchService.open(this.extension, { showPreReleaseVersion: this.options.installPreReleaseVersion });
359
- alert(( (localize(
360
- 'installExtensionStart',
361
- "Installing extension {0} started. An editor is now open with more details on this extension",
362
- this.extension.displayName
363
- ))));
364
- this.telemetryService.publicLog('extensions:action:install', { ...this.extension.telemetryData, actionId: this.id });
365
- const extension = await this.install(this.extension);
366
- if (extension?.local) {
367
- alert(( (localize(
368
- 'installExtensionComplete',
369
- "Installing extension {0} is completed.",
370
- this.extension.displayName
371
- ))));
372
- const runningExtension = await this.getRunningExtension(extension.local);
373
- if (runningExtension && !(runningExtension.activationEvents && ( (runningExtension.activationEvents.some(activationEent => activationEent.startsWith('onLanguage')))))) {
374
- const action = await this.getThemeAction(extension);
375
- if (action) {
376
- action.extension = extension;
377
- try {
378
- return action.run({ showCurrentTheme: true, ignoreFocusLost: true });
379
- }
380
- finally {
381
- action.dispose();
382
- }
383
- }
384
- }
385
- }
386
- }
387
- async getThemeAction(extension) {
388
- const colorThemes = await this.workbenchThemeService.getColorThemes();
389
- if (( (colorThemes.some(theme => isThemeFromExtension(theme, extension))))) {
390
- return this.instantiationService.createInstance(SetColorThemeAction);
391
- }
392
- const fileIconThemes = await this.workbenchThemeService.getFileIconThemes();
393
- if (( (fileIconThemes.some(theme => isThemeFromExtension(theme, extension))))) {
394
- return this.instantiationService.createInstance(SetFileIconThemeAction);
395
- }
396
- const productIconThemes = await this.workbenchThemeService.getProductIconThemes();
397
- if (( (productIconThemes.some(theme => isThemeFromExtension(theme, extension))))) {
398
- return this.instantiationService.createInstance(SetProductIconThemeAction);
399
- }
400
- return undefined;
401
- }
402
- async install(extension) {
403
- try {
404
- return await this.extensionsWorkbenchService.install(extension, this.options);
405
- }
406
- catch (error) {
407
- await this.instantiationService.createInstance(PromptExtensionInstallFailureAction, extension, extension.latestVersion, 2 , error).run();
408
- return undefined;
409
- }
410
- }
411
- async getRunningExtension(extension) {
412
- const runningExtension = await this.runtimeExtensionService.getExtension(extension.identifier.id);
413
- if (runningExtension) {
414
- return runningExtension;
415
- }
416
- if (this.runtimeExtensionService.canAddExtension(toExtensionDescription(extension))) {
417
- return (
418
- (new Promise((c, e) => {
419
- const disposable = this.runtimeExtensionService.onDidChangeExtensions(async () => {
420
- const runningExtension = await this.runtimeExtensionService.getExtension(extension.identifier.id);
421
- if (runningExtension) {
422
- disposable.dispose();
423
- c(runningExtension);
424
- }
425
- });
426
- }))
427
- );
428
- }
429
- return null;
430
- }
431
- updateLabel() {
432
- this.label = this.getLabel();
433
- }
434
- getLabel(primary) {
435
- if (this.options.installPreReleaseVersion && this.extension?.hasPreReleaseVersion) {
436
- return primary ? ( (localize('install pre-release', "Install Pre-Release"))) : ( (localize('install pre-release version', "Install Pre-Release Version")));
437
- }
438
- if (this.extension?.hasPreReleaseVersion) {
439
- return primary ? ( (localize('install', "Install"))) : ( (localize('install release version', "Install Release Version")));
440
- }
441
- return (
442
- (localize('install', "Install"))
443
- );
444
- }
445
- };
446
- InstallAction = InstallAction_1 = ( (__decorate([
447
- ( (__param(1, IExtensionsWorkbenchService))),
448
- ( (__param(2, IInstantiationService))),
449
- ( (__param(3, IExtensionService))),
450
- ( (__param(4, IWorkbenchThemeService))),
451
- ( (__param(5, ILabelService))),
452
- ( (__param(6, IDialogService))),
453
- ( (__param(7, IPreferencesService))),
454
- ( (__param(8, ITelemetryService)))
455
- ], InstallAction)));
456
- class InstallingLabelAction extends ExtensionAction {
457
- static { this.LABEL = ( (localize('installing', "Installing"))); }
458
- static { this.CLASS = `${ExtensionAction.LABEL_ACTION_CLASS} install installing`; }
459
- constructor() {
460
- super('extension.installing', InstallingLabelAction.LABEL, InstallingLabelAction.CLASS, false);
461
- }
462
- update() {
463
- this.class = `${InstallingLabelAction.CLASS}${this.extension && this.extension.state === 0 ? '' : ' hide'}`;
464
- }
465
- }
466
- let InstallInOtherServerAction = class InstallInOtherServerAction extends ExtensionAction {
467
- static { InstallInOtherServerAction_1 = this; }
468
- static { this.INSTALL_LABEL = ( (localize('install', "Install"))); }
469
- static { this.INSTALLING_LABEL = ( (localize('installing', "Installing"))); }
470
- static { this.Class = `${ExtensionAction.LABEL_ACTION_CLASS} prominent install`; }
471
- static { this.InstallingClass = `${ExtensionAction.LABEL_ACTION_CLASS} install installing`; }
472
- constructor(id, server, canInstallAnyWhere, extensionsWorkbenchService, extensionManagementServerService, extensionManifestPropertiesService) {
473
- super(id, InstallInOtherServerAction_1.INSTALL_LABEL, InstallInOtherServerAction_1.Class, false);
474
- this.server = server;
475
- this.canInstallAnyWhere = canInstallAnyWhere;
476
- this.extensionsWorkbenchService = extensionsWorkbenchService;
477
- this.extensionManagementServerService = extensionManagementServerService;
478
- this.extensionManifestPropertiesService = extensionManifestPropertiesService;
479
- this.updateWhenCounterExtensionChanges = true;
480
- this.update();
481
- }
482
- update() {
483
- this.enabled = false;
484
- this.class = InstallInOtherServerAction_1.Class;
485
- if (this.canInstall()) {
486
- const extensionInOtherServer = this.extensionsWorkbenchService.installed.filter(e => areSameExtensions(e.identifier, this.extension.identifier) && e.server === this.server)[0];
487
- if (extensionInOtherServer) {
488
- if (extensionInOtherServer.state === 0 && !extensionInOtherServer.local) {
489
- this.enabled = true;
490
- this.label = InstallInOtherServerAction_1.INSTALLING_LABEL;
491
- this.class = InstallInOtherServerAction_1.InstallingClass;
492
- }
493
- }
494
- else {
495
- this.enabled = true;
496
- this.label = this.getInstallLabel();
497
- }
498
- }
499
- }
500
- canInstall() {
501
- if (!this.extension
502
- || !this.server
503
- || !this.extension.local
504
- || this.extension.state !== 1
505
- || this.extension.type !== 1
506
- || this.extension.enablementState === 2 || this.extension.enablementState === 0 || this.extension.enablementState === 4 ) {
507
- return false;
508
- }
509
- if (isLanguagePackExtension(this.extension.local.manifest)) {
510
- return true;
511
- }
512
- if (this.server === this.extensionManagementServerService.localExtensionManagementServer && this.extensionManifestPropertiesService.prefersExecuteOnUI(this.extension.local.manifest)) {
513
- return true;
514
- }
515
- if (this.server === this.extensionManagementServerService.remoteExtensionManagementServer && this.extensionManifestPropertiesService.prefersExecuteOnWorkspace(this.extension.local.manifest)) {
516
- return true;
517
- }
518
- if (this.server === this.extensionManagementServerService.webExtensionManagementServer && this.extensionManifestPropertiesService.prefersExecuteOnWeb(this.extension.local.manifest)) {
519
- return true;
520
- }
521
- if (this.canInstallAnyWhere) {
522
- if (this.server === this.extensionManagementServerService.localExtensionManagementServer && this.extensionManifestPropertiesService.canExecuteOnUI(this.extension.local.manifest)) {
523
- return true;
524
- }
525
- if (this.server === this.extensionManagementServerService.remoteExtensionManagementServer && this.extensionManifestPropertiesService.canExecuteOnWorkspace(this.extension.local.manifest)) {
526
- return true;
527
- }
528
- }
529
- return false;
530
- }
531
- async run() {
532
- if (!this.extension?.local) {
533
- return;
534
- }
535
- if (!this.extension?.server) {
536
- return;
537
- }
538
- if (!this.server) {
539
- return;
540
- }
541
- this.extensionsWorkbenchService.open(this.extension);
542
- alert(( (localize(
543
- 'installExtensionStart',
544
- "Installing extension {0} started. An editor is now open with more details on this extension",
545
- this.extension.displayName
546
- ))));
547
- return this.extensionsWorkbenchService.installInServer(this.extension, this.server);
548
- }
549
- };
550
- InstallInOtherServerAction = InstallInOtherServerAction_1 = ( (__decorate([
551
- ( (__param(3, IExtensionsWorkbenchService))),
552
- ( (__param(4, IExtensionManagementServerService))),
553
- ( (__param(5, IExtensionManifestPropertiesService)))
554
- ], InstallInOtherServerAction)));
555
- let UninstallAction = class UninstallAction extends ExtensionAction {
556
- static { UninstallAction_1 = this; }
557
- static { this.UninstallLabel = ( (localize('uninstallAction', "Uninstall"))); }
558
- static { this.UninstallingLabel = ( (localize('Uninstalling', "Uninstalling"))); }
559
- static { this.UninstallClass = `${ExtensionAction.LABEL_ACTION_CLASS} uninstall`; }
560
- static { this.UnInstallingClass = `${ExtensionAction.LABEL_ACTION_CLASS} uninstall uninstalling`; }
561
- constructor(extensionsWorkbenchService) {
562
- super('extensions.uninstall', UninstallAction_1.UninstallLabel, UninstallAction_1.UninstallClass, false);
563
- this.extensionsWorkbenchService = extensionsWorkbenchService;
564
- this.update();
565
- }
566
- update() {
567
- if (!this.extension) {
568
- this.enabled = false;
569
- return;
570
- }
571
- const state = this.extension.state;
572
- if (state === 2 ) {
573
- this.label = UninstallAction_1.UninstallingLabel;
574
- this.class = UninstallAction_1.UnInstallingClass;
575
- this.enabled = false;
576
- return;
577
- }
578
- this.label = UninstallAction_1.UninstallLabel;
579
- this.class = UninstallAction_1.UninstallClass;
580
- this.tooltip = UninstallAction_1.UninstallLabel;
581
- if (state !== 1 ) {
582
- this.enabled = false;
583
- return;
584
- }
585
- if (this.extension.isBuiltin) {
586
- this.enabled = false;
587
- return;
588
- }
589
- this.enabled = true;
590
- }
591
- async run() {
592
- if (!this.extension) {
593
- return;
594
- }
595
- alert(( (localize(
596
- 'uninstallExtensionStart',
597
- "Uninstalling extension {0} started.",
598
- this.extension.displayName
599
- ))));
600
- return this.extensionsWorkbenchService.uninstall(this.extension).then(() => {
601
- alert(( (localize(
602
- 'uninstallExtensionComplete',
603
- "Please reload Visual Studio Code to complete the uninstallation of the extension {0}.",
604
- this.extension.displayName
605
- ))));
606
- });
607
- }
608
- };
609
- UninstallAction = UninstallAction_1 = ( (__decorate([
610
- ( (__param(0, IExtensionsWorkbenchService)))
611
- ], UninstallAction)));
612
- class AbstractUpdateAction extends ExtensionAction {
613
- static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} prominent update`; }
614
- static { this.DisabledClass = `${AbstractUpdateAction.EnabledClass} disabled`; }
615
- constructor(id, label, extensionsWorkbenchService) {
616
- super(id, label, AbstractUpdateAction.DisabledClass, false);
617
- this.extensionsWorkbenchService = extensionsWorkbenchService;
618
- this.updateThrottler = ( (new Throttler()));
619
- this.update();
620
- }
621
- update() {
622
- this.updateThrottler.queue(() => this.computeAndUpdateEnablement());
623
- }
624
- async computeAndUpdateEnablement() {
625
- this.enabled = false;
626
- this.class = UpdateAction.DisabledClass;
627
- if (!this.extension) {
628
- return;
629
- }
630
- if (this.extension.deprecationInfo) {
631
- return;
632
- }
633
- const canInstall = await this.extensionsWorkbenchService.canInstall(this.extension);
634
- const isInstalled = this.extension.state === 1 ;
635
- this.enabled = canInstall && isInstalled && this.extension.outdated;
636
- this.class = this.enabled ? AbstractUpdateAction.EnabledClass : AbstractUpdateAction.DisabledClass;
637
- }
638
- }
639
- let UpdateAction = class UpdateAction extends AbstractUpdateAction {
640
- constructor(verbose, extensionsWorkbenchService, instantiationService) {
641
- super(`extensions.update`, ( (localize('update', "Update"))), extensionsWorkbenchService);
642
- this.verbose = verbose;
643
- this.instantiationService = instantiationService;
644
- }
645
- update() {
646
- super.update();
647
- if (this.extension) {
648
- this.label = this.verbose ? ( (localize('update to', "Update to v{0}", this.extension.latestVersion))) : ( (localize('update', "Update")));
649
- }
650
- }
651
- async run() {
652
- if (!this.extension) {
653
- return;
654
- }
655
- alert(( (localize(
656
- 'updateExtensionStart',
657
- "Updating extension {0} to version {1} started.",
658
- this.extension.displayName,
659
- this.extension.latestVersion
660
- ))));
661
- return this.install(this.extension);
662
- }
663
- async install(extension) {
664
- try {
665
- await this.extensionsWorkbenchService.install(extension, extension.local?.preRelease ? { installPreReleaseVersion: true } : undefined);
666
- alert(( (localize(
667
- 'updateExtensionComplete',
668
- "Updating extension {0} to version {1} completed.",
669
- extension.displayName,
670
- extension.latestVersion
671
- ))));
672
- }
673
- catch (err) {
674
- this.instantiationService.createInstance(PromptExtensionInstallFailureAction, extension, extension.latestVersion, 3 , err).run();
675
- }
676
- }
677
- };
678
- UpdateAction = ( (__decorate([
679
- ( (__param(1, IExtensionsWorkbenchService))),
680
- ( (__param(2, IInstantiationService)))
681
- ], UpdateAction)));
682
- let MigrateDeprecatedExtensionAction = class MigrateDeprecatedExtensionAction extends ExtensionAction {
683
- static { MigrateDeprecatedExtensionAction_1 = this; }
684
- static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} migrate`; }
685
- static { this.DisabledClass = `${MigrateDeprecatedExtensionAction_1.EnabledClass} disabled`; }
686
- constructor(small, extensionsWorkbenchService) {
687
- super('extensionsAction.migrateDeprecatedExtension', ( (localize('migrateExtension', "Migrate"))), MigrateDeprecatedExtensionAction_1.DisabledClass, false);
688
- this.small = small;
689
- this.extensionsWorkbenchService = extensionsWorkbenchService;
690
- this.update();
691
- }
692
- update() {
693
- this.enabled = false;
694
- this.class = MigrateDeprecatedExtensionAction_1.DisabledClass;
695
- if (!this.extension?.local) {
696
- return;
697
- }
698
- if (this.extension.state !== 1 ) {
699
- return;
700
- }
701
- if (!this.extension.deprecationInfo?.extension) {
702
- return;
703
- }
704
- const id = this.extension.deprecationInfo.extension.id;
705
- if (( (this.extensionsWorkbenchService.local.some(e => areSameExtensions(e.identifier, { id }))))) {
706
- return;
707
- }
708
- this.enabled = true;
709
- this.class = MigrateDeprecatedExtensionAction_1.EnabledClass;
710
- this.tooltip = ( (localize(
711
- 'migrate to',
712
- "Migrate to {0}",
713
- this.extension.deprecationInfo.extension.displayName
714
- )));
715
- this.label = this.small ? ( (localize('migrate', "Migrate"))) : this.tooltip;
716
- }
717
- async run() {
718
- if (!this.extension?.deprecationInfo?.extension) {
719
- return;
720
- }
721
- const local = this.extension.local;
722
- await this.extensionsWorkbenchService.uninstall(this.extension);
723
- const [extension] = await this.extensionsWorkbenchService.getExtensions([{ id: this.extension.deprecationInfo.extension.id, preRelease: this.extension.deprecationInfo?.extension?.preRelease }], CancellationToken.None);
724
- await this.extensionsWorkbenchService.install(extension, { isMachineScoped: local?.isMachineScoped });
725
- }
726
- };
727
- MigrateDeprecatedExtensionAction = MigrateDeprecatedExtensionAction_1 = ( (__decorate([
728
- ( (__param(1, IExtensionsWorkbenchService)))
729
- ], MigrateDeprecatedExtensionAction)));
730
- let ExtensionDropDownAction = class ExtensionDropDownAction extends ExtensionAction {
731
- constructor(id, label, cssClass, enabled, instantiationService) {
732
- super(id, label, cssClass, enabled);
733
- this.instantiationService = instantiationService;
734
- this._actionViewItem = null;
735
- }
736
- createActionViewItem() {
737
- this._actionViewItem = this.instantiationService.createInstance(DropDownMenuActionViewItem, this);
738
- return this._actionViewItem;
739
- }
740
- run({ actionGroups, disposeActionsOnHide }) {
741
- this._actionViewItem?.showMenu(actionGroups, disposeActionsOnHide);
742
- return Promise.resolve();
743
- }
744
- };
745
- ExtensionDropDownAction = ( (__decorate([
746
- ( (__param(4, IInstantiationService)))
747
- ], ExtensionDropDownAction)));
748
- let DropDownMenuActionViewItem = class DropDownMenuActionViewItem extends ActionViewItem {
749
- constructor(action, contextMenuService) {
750
- super(null, action, { icon: true, label: true });
751
- this.contextMenuService = contextMenuService;
752
- }
753
- showMenu(menuActionGroups, disposeActionsOnHide) {
754
- if (this.element) {
755
- const actions = this.getActions(menuActionGroups);
756
- const elementPosition = dom.getDomNodePagePosition(this.element);
757
- const anchor = { x: elementPosition.left, y: elementPosition.top + elementPosition.height + 10 };
758
- this.contextMenuService.showContextMenu({
759
- getAnchor: () => anchor,
760
- getActions: () => actions,
761
- actionRunner: this.actionRunner,
762
- onHide: () => { if (disposeActionsOnHide) {
763
- disposeIfDisposable(actions);
764
- } }
765
- });
766
- }
767
- }
768
- getActions(menuActionGroups) {
769
- let actions = [];
770
- for (const menuActions of menuActionGroups) {
771
- actions = [...actions, ...menuActions, ( (new Separator()))];
772
- }
773
- return actions.length ? actions.slice(0, actions.length - 1) : actions;
774
- }
775
- };
776
- DropDownMenuActionViewItem = ( (__decorate([
777
- ( (__param(1, IContextMenuService)))
778
- ], DropDownMenuActionViewItem)));
779
- async function getContextMenuActionsGroups(extension, contextKeyService, instantiationService) {
780
- return instantiationService.invokeFunction(async (accessor) => {
781
- const extensionsWorkbenchService = accessor.get(IExtensionsWorkbenchService);
782
- const menuService = accessor.get(IMenuService);
783
- const extensionRecommendationsService = accessor.get(IExtensionRecommendationsService);
784
- const extensionIgnoredRecommendationsService = accessor.get(IExtensionIgnoredRecommendationsService);
785
- const workbenchThemeService = accessor.get(IWorkbenchThemeService);
786
- const cksOverlay = [];
787
- if (extension) {
788
- cksOverlay.push(['extension', extension.identifier.id]);
789
- cksOverlay.push(['isBuiltinExtension', extension.isBuiltin]);
790
- cksOverlay.push(['isDefaultApplicationScopedExtension', extension.local && isApplicationScopedExtension(extension.local.manifest)]);
791
- cksOverlay.push(['isApplicationScopedExtension', extension.local && extension.local.isApplicationScoped]);
792
- cksOverlay.push(['extensionHasConfiguration', extension.local && !!extension.local.manifest.contributes && !!extension.local.manifest.contributes.configuration]);
793
- cksOverlay.push(['extensionHasKeybindings', extension.local && !!extension.local.manifest.contributes && !!extension.local.manifest.contributes.keybindings]);
794
- cksOverlay.push(['extensionHasCommands', extension.local && !!extension.local.manifest.contributes && !!extension.local.manifest.contributes?.commands]);
795
- cksOverlay.push(['isExtensionRecommended', !!extensionRecommendationsService.getAllRecommendationsWithReason()[extension.identifier.id.toLowerCase()]]);
796
- cksOverlay.push(['isExtensionWorkspaceRecommended', extensionRecommendationsService.getAllRecommendationsWithReason()[extension.identifier.id.toLowerCase()]?.reasonId === 0 ]);
797
- cksOverlay.push(['isUserIgnoredRecommendation', ( (extensionIgnoredRecommendationsService.globalIgnoredRecommendations.some(e => e === extension.identifier.id.toLowerCase())))]);
798
- if (extension.state === 1 ) {
799
- cksOverlay.push(['extensionStatus', 'installed']);
800
- }
801
- cksOverlay.push(['installedExtensionIsPreReleaseVersion', !!extension.local?.isPreReleaseVersion]);
802
- cksOverlay.push(['installedExtensionIsOptedTpPreRelease', !!extension.local?.preRelease]);
803
- cksOverlay.push(['galleryExtensionIsPreReleaseVersion', !!extension.gallery?.properties.isPreReleaseVersion]);
804
- cksOverlay.push(['extensionHasPreReleaseVersion', extension.hasPreReleaseVersion]);
805
- cksOverlay.push(['extensionHasReleaseVersion', extension.hasReleaseVersion]);
806
- const [colorThemes, fileIconThemes, productIconThemes] = await Promise.all([workbenchThemeService.getColorThemes(), workbenchThemeService.getFileIconThemes(), workbenchThemeService.getProductIconThemes()]);
807
- cksOverlay.push(['extensionHasColorThemes', ( (colorThemes.some(theme => isThemeFromExtension(theme, extension))))]);
808
- cksOverlay.push(['extensionHasFileIconThemes', ( (fileIconThemes.some(theme => isThemeFromExtension(theme, extension))))]);
809
- cksOverlay.push(['extensionHasProductIconThemes', ( (productIconThemes.some(theme => isThemeFromExtension(theme, extension))))]);
810
- cksOverlay.push(['canSetLanguage', extensionsWorkbenchService.canSetLanguage(extension)]);
811
- cksOverlay.push(['isActiveLanguagePackExtension', extension.gallery && language === getLocale(extension.gallery)]);
812
- }
813
- const menu = menuService.createMenu(MenuId.ExtensionContext, contextKeyService.createOverlay(cksOverlay));
814
- const actionsGroups = menu.getActions({ shouldForwardArgs: true });
815
- menu.dispose();
816
- return actionsGroups;
817
- });
818
- }
819
- function toActions(actionsGroups, instantiationService) {
820
- const result = [];
821
- for (const [, actions] of actionsGroups) {
822
- result.push(( (actions.map(action => {
823
- if (action instanceof SubmenuAction) {
824
- return action;
825
- }
826
- return instantiationService.createInstance(MenuItemExtensionAction, action);
827
- }))));
828
- }
829
- return result;
830
- }
831
- let ManageExtensionAction = class ManageExtensionAction extends ExtensionDropDownAction {
832
- static { ManageExtensionAction_1 = this; }
833
- static { this.ID = 'extensions.manage'; }
834
- static { this.Class = `${ExtensionAction.ICON_ACTION_CLASS} manage ` + ThemeIcon.asClassName(manageExtensionIcon); }
835
- static { this.HideManageExtensionClass = `${ManageExtensionAction_1.Class} hide`; }
836
- constructor(instantiationService, extensionService, contextKeyService) {
837
- super(ManageExtensionAction_1.ID, '', '', true, instantiationService);
838
- this.extensionService = extensionService;
839
- this.contextKeyService = contextKeyService;
840
- this.tooltip = ( (localize('manage', "Manage")));
841
- this.update();
842
- }
843
- async getActionGroups() {
844
- const groups = [];
845
- const contextMenuActionsGroups = await getContextMenuActionsGroups(this.extension, this.contextKeyService, this.instantiationService);
846
- const themeActions = [], installActions = [], otherActionGroups = [];
847
- for (const [group, actions] of contextMenuActionsGroups) {
848
- if (group === INSTALL_ACTIONS_GROUP) {
849
- installActions.push(...toActions([[group, actions]], this.instantiationService)[0]);
850
- }
851
- else if (group === THEME_ACTIONS_GROUP) {
852
- themeActions.push(...toActions([[group, actions]], this.instantiationService)[0]);
853
- }
854
- else {
855
- otherActionGroups.push(...toActions([[group, actions]], this.instantiationService));
856
- }
857
- }
858
- if (themeActions.length) {
859
- groups.push(themeActions);
860
- }
861
- groups.push([
862
- this.instantiationService.createInstance(EnableGloballyAction),
863
- this.instantiationService.createInstance(EnableForWorkspaceAction)
864
- ]);
865
- groups.push([
866
- this.instantiationService.createInstance(DisableGloballyAction),
867
- this.instantiationService.createInstance(DisableForWorkspaceAction)
868
- ]);
869
- groups.push([
870
- ...(installActions.length ? installActions : []),
871
- this.instantiationService.createInstance(InstallAnotherVersionAction),
872
- this.instantiationService.createInstance(UninstallAction),
873
- ]);
874
- otherActionGroups.forEach(actions => groups.push(actions));
875
- groups.forEach(group => group.forEach(extensionAction => {
876
- if (extensionAction instanceof ExtensionAction) {
877
- extensionAction.extension = this.extension;
878
- }
879
- }));
880
- return groups;
881
- }
882
- async run() {
883
- await this.extensionService.whenInstalledExtensionsRegistered();
884
- return super.run({ actionGroups: await this.getActionGroups(), disposeActionsOnHide: true });
885
- }
886
- update() {
887
- this.class = ManageExtensionAction_1.HideManageExtensionClass;
888
- this.enabled = false;
889
- if (this.extension) {
890
- const state = this.extension.state;
891
- this.enabled = state === 1 ;
892
- this.class = this.enabled || state === 2 ? ManageExtensionAction_1.Class : ManageExtensionAction_1.HideManageExtensionClass;
893
- }
894
- }
895
- };
896
- ManageExtensionAction = ManageExtensionAction_1 = ( (__decorate([
897
- ( (__param(0, IInstantiationService))),
898
- ( (__param(1, IExtensionService))),
899
- ( (__param(2, IContextKeyService)))
900
- ], ManageExtensionAction)));
901
- let MenuItemExtensionAction = class MenuItemExtensionAction extends ExtensionAction {
902
- constructor(action, extensionsWorkbenchService) {
903
- super(action.id, action.label);
904
- this.action = action;
905
- this.extensionsWorkbenchService = extensionsWorkbenchService;
906
- }
907
- update() {
908
- if (!this.extension) {
909
- return;
910
- }
911
- if (this.action.id === TOGGLE_IGNORE_EXTENSION_ACTION_ID) {
912
- this.checked = !this.extensionsWorkbenchService.isExtensionIgnoredToSync(this.extension);
913
- }
914
- else {
915
- this.checked = this.action.checked;
916
- }
917
- }
918
- async run() {
919
- if (this.extension) {
920
- await this.action.run(this.extension.local ? getExtensionId(this.extension.local.manifest.publisher, this.extension.local.manifest.name)
921
- : this.extension.gallery ? getExtensionId(this.extension.gallery.publisher, this.extension.gallery.name)
922
- : this.extension.identifier.id);
923
- }
924
- }
925
- };
926
- MenuItemExtensionAction = ( (__decorate([
927
- ( (__param(1, IExtensionsWorkbenchService)))
928
- ], MenuItemExtensionAction)));
929
- let SwitchToPreReleaseVersionAction = class SwitchToPreReleaseVersionAction extends ExtensionAction {
930
- static { SwitchToPreReleaseVersionAction_1 = this; }
931
- static { this.ID = 'workbench.extensions.action.switchToPreReleaseVersion'; }
932
- static { this.TITLE = { value: ( (localize('switch to pre-release version', "Switch to Pre-Release Version"))), original: 'Switch to Pre-Release Version' }; }
933
- constructor(icon, commandService) {
934
- super(SwitchToPreReleaseVersionAction_1.ID, icon ? '' : SwitchToPreReleaseVersionAction_1.TITLE.value, `${icon ? ExtensionAction.ICON_ACTION_CLASS + ' ' + ThemeIcon.asClassName(preReleaseIcon) : ExtensionAction.LABEL_ACTION_CLASS} hide-when-disabled switch-to-prerelease`, true);
935
- this.commandService = commandService;
936
- this.tooltip = ( (localize(
937
- 'switch to pre-release version tooltip',
938
- "Switch to Pre-Release version of this extension"
939
- )));
940
- this.update();
941
- }
942
- update() {
943
- this.enabled = !!this.extension && !this.extension.isBuiltin && !this.extension.local?.isPreReleaseVersion && !this.extension.local?.preRelease && this.extension.hasPreReleaseVersion && this.extension.state === 1 ;
944
- }
945
- async run() {
946
- if (!this.enabled) {
947
- return;
948
- }
949
- return this.commandService.executeCommand(SwitchToPreReleaseVersionAction_1.ID, this.extension?.identifier.id);
950
- }
951
- };
952
- SwitchToPreReleaseVersionAction = SwitchToPreReleaseVersionAction_1 = ( (__decorate([
953
- ( (__param(1, ICommandService)))
954
- ], SwitchToPreReleaseVersionAction)));
955
- let SwitchToReleasedVersionAction = class SwitchToReleasedVersionAction extends ExtensionAction {
956
- static { SwitchToReleasedVersionAction_1 = this; }
957
- static { this.ID = 'workbench.extensions.action.switchToReleaseVersion'; }
958
- static { this.TITLE = { value: ( (localize('switch to release version', "Switch to Release Version"))), original: 'Switch to Release Version' }; }
959
- constructor(icon, commandService) {
960
- super(SwitchToReleasedVersionAction_1.ID, icon ? '' : SwitchToReleasedVersionAction_1.TITLE.value, `${icon ? ExtensionAction.ICON_ACTION_CLASS + ' ' + ThemeIcon.asClassName(preReleaseIcon) : ExtensionAction.LABEL_ACTION_CLASS} hide-when-disabled switch-to-released`);
961
- this.commandService = commandService;
962
- this.tooltip = ( (localize(
963
- 'switch to release version tooltip',
964
- "Switch to Release version of this extension"
965
- )));
966
- this.update();
967
- }
968
- update() {
969
- this.enabled = !!this.extension && !this.extension.isBuiltin && this.extension.state === 1 && !!this.extension.local?.isPreReleaseVersion && !!this.extension.hasReleaseVersion;
970
- }
971
- async run() {
972
- if (!this.enabled) {
973
- return;
974
- }
975
- return this.commandService.executeCommand(SwitchToReleasedVersionAction_1.ID, this.extension?.identifier.id);
976
- }
977
- };
978
- SwitchToReleasedVersionAction = SwitchToReleasedVersionAction_1 = ( (__decorate([
979
- ( (__param(1, ICommandService)))
980
- ], SwitchToReleasedVersionAction)));
981
- let InstallAnotherVersionAction = class InstallAnotherVersionAction extends ExtensionAction {
982
- static { InstallAnotherVersionAction_1 = this; }
983
- static { this.ID = 'workbench.extensions.action.install.anotherVersion'; }
984
- static { this.LABEL = ( (localize('install another version', "Install Another Version..."))); }
985
- constructor(extensionsWorkbenchService, extensionGalleryService, quickInputService, instantiationService, dialogService) {
986
- super(InstallAnotherVersionAction_1.ID, InstallAnotherVersionAction_1.LABEL, ExtensionAction.LABEL_ACTION_CLASS);
987
- this.extensionsWorkbenchService = extensionsWorkbenchService;
988
- this.extensionGalleryService = extensionGalleryService;
989
- this.quickInputService = quickInputService;
990
- this.instantiationService = instantiationService;
991
- this.dialogService = dialogService;
992
- this.update();
993
- }
994
- update() {
995
- this.enabled = !!this.extension && !this.extension.isBuiltin && !!this.extension.gallery && !!this.extension.local && !!this.extension.server && this.extension.state === 1 && !this.extension.deprecationInfo;
996
- }
997
- async run() {
998
- if (!this.enabled) {
999
- return;
1000
- }
1001
- const targetPlatform = await this.extension.server.extensionManagementService.getTargetPlatform();
1002
- const allVersions = await this.extensionGalleryService.getAllCompatibleVersions(this.extension.gallery, this.extension.local.preRelease, targetPlatform);
1003
- if (!allVersions.length) {
1004
- await this.dialogService.info(( (localize('no versions', "This extension has no other versions."))));
1005
- return;
1006
- }
1007
- const picks = ( (allVersions.map((v, i) => {
1008
- return {
1009
- id: v.version,
1010
- label: v.version,
1011
- description: `${fromNow(( new Date(Date.parse(v.date))), true)}${v.isPreReleaseVersion ? ` (${( ( localize('pre-release', "pre-release")))})` : ''}${v.version === this.extension.version ? ` (${( ( localize('current', "current")))})` : ''}`,
1012
- latest: i === 0,
1013
- ariaLabel: `${v.isPreReleaseVersion ? 'Pre-Release version' : 'Release version'} ${v.version}`,
1014
- isPreReleaseVersion: v.isPreReleaseVersion
1015
- };
1016
- })));
1017
- const pick = await this.quickInputService.pick(picks, {
1018
- placeHolder: ( (localize('selectVersion', "Select Version to Install"))),
1019
- matchOnDetail: true
1020
- });
1021
- if (pick) {
1022
- if (this.extension.version === pick.id) {
1023
- return;
1024
- }
1025
- try {
1026
- if (pick.latest) {
1027
- await this.extensionsWorkbenchService.install(this.extension, { installPreReleaseVersion: pick.isPreReleaseVersion });
1028
- }
1029
- else {
1030
- await this.extensionsWorkbenchService.installVersion(this.extension, pick.id, { installPreReleaseVersion: pick.isPreReleaseVersion });
1031
- }
1032
- }
1033
- catch (error) {
1034
- this.instantiationService.createInstance(PromptExtensionInstallFailureAction, this.extension, pick.latest ? this.extension.latestVersion : pick.id, 2 , error).run();
1035
- }
1036
- }
1037
- return null;
1038
- }
1039
- };
1040
- InstallAnotherVersionAction = InstallAnotherVersionAction_1 = ( (__decorate([
1041
- ( (__param(0, IExtensionsWorkbenchService))),
1042
- ( (__param(1, IExtensionGalleryService))),
1043
- ( (__param(2, IQuickInputService))),
1044
- ( (__param(3, IInstantiationService))),
1045
- ( (__param(4, IDialogService)))
1046
- ], InstallAnotherVersionAction)));
1047
- let EnableForWorkspaceAction = class EnableForWorkspaceAction extends ExtensionAction {
1048
- static { EnableForWorkspaceAction_1 = this; }
1049
- static { this.ID = 'extensions.enableForWorkspace'; }
1050
- static { this.LABEL = ( (localize('enableForWorkspaceAction', "Enable (Workspace)"))); }
1051
- constructor(extensionsWorkbenchService, extensionEnablementService) {
1052
- super(EnableForWorkspaceAction_1.ID, EnableForWorkspaceAction_1.LABEL, ExtensionAction.LABEL_ACTION_CLASS);
1053
- this.extensionsWorkbenchService = extensionsWorkbenchService;
1054
- this.extensionEnablementService = extensionEnablementService;
1055
- this.tooltip = ( (localize(
1056
- 'enableForWorkspaceActionToolTip',
1057
- "Enable this extension only in this workspace"
1058
- )));
1059
- this.update();
1060
- }
1061
- update() {
1062
- this.enabled = false;
1063
- if (this.extension && this.extension.local) {
1064
- this.enabled = this.extension.state === 1
1065
- && !this.extensionEnablementService.isEnabled(this.extension.local)
1066
- && this.extensionEnablementService.canChangeWorkspaceEnablement(this.extension.local);
1067
- }
1068
- }
1069
- async run() {
1070
- if (!this.extension) {
1071
- return;
1072
- }
1073
- return this.extensionsWorkbenchService.setEnablement(this.extension, 9 );
1074
- }
1075
- };
1076
- EnableForWorkspaceAction = EnableForWorkspaceAction_1 = ( (__decorate([
1077
- ( (__param(0, IExtensionsWorkbenchService))),
1078
- ( (__param(1, IWorkbenchExtensionEnablementService)))
1079
- ], EnableForWorkspaceAction)));
1080
- let EnableGloballyAction = class EnableGloballyAction extends ExtensionAction {
1081
- static { EnableGloballyAction_1 = this; }
1082
- static { this.ID = 'extensions.enableGlobally'; }
1083
- static { this.LABEL = ( (localize('enableGloballyAction', "Enable"))); }
1084
- constructor(extensionsWorkbenchService, extensionEnablementService) {
1085
- super(EnableGloballyAction_1.ID, EnableGloballyAction_1.LABEL, ExtensionAction.LABEL_ACTION_CLASS);
1086
- this.extensionsWorkbenchService = extensionsWorkbenchService;
1087
- this.extensionEnablementService = extensionEnablementService;
1088
- this.tooltip = ( (localize('enableGloballyActionToolTip', "Enable this extension")));
1089
- this.update();
1090
- }
1091
- update() {
1092
- this.enabled = false;
1093
- if (this.extension && this.extension.local) {
1094
- this.enabled = this.extension.state === 1
1095
- && this.extensionEnablementService.isDisabledGlobally(this.extension.local)
1096
- && this.extensionEnablementService.canChangeEnablement(this.extension.local);
1097
- }
1098
- }
1099
- async run() {
1100
- if (!this.extension) {
1101
- return;
1102
- }
1103
- return this.extensionsWorkbenchService.setEnablement(this.extension, 8 );
1104
- }
1105
- };
1106
- EnableGloballyAction = EnableGloballyAction_1 = ( (__decorate([
1107
- ( (__param(0, IExtensionsWorkbenchService))),
1108
- ( (__param(1, IWorkbenchExtensionEnablementService)))
1109
- ], EnableGloballyAction)));
1110
- let DisableForWorkspaceAction = class DisableForWorkspaceAction extends ExtensionAction {
1111
- static { DisableForWorkspaceAction_1 = this; }
1112
- static { this.ID = 'extensions.disableForWorkspace'; }
1113
- static { this.LABEL = ( (localize('disableForWorkspaceAction', "Disable (Workspace)"))); }
1114
- constructor(workspaceContextService, extensionsWorkbenchService, extensionEnablementService, extensionService) {
1115
- super(DisableForWorkspaceAction_1.ID, DisableForWorkspaceAction_1.LABEL, ExtensionAction.LABEL_ACTION_CLASS);
1116
- this.workspaceContextService = workspaceContextService;
1117
- this.extensionsWorkbenchService = extensionsWorkbenchService;
1118
- this.extensionEnablementService = extensionEnablementService;
1119
- this.extensionService = extensionService;
1120
- this.tooltip = ( (localize(
1121
- 'disableForWorkspaceActionToolTip',
1122
- "Disable this extension only in this workspace"
1123
- )));
1124
- this.update();
1125
- this._register(this.extensionService.onDidChangeExtensions(() => this.update()));
1126
- }
1127
- update() {
1128
- this.enabled = false;
1129
- if (this.extension && this.extension.local && ( (this.extensionService.extensions.some(
1130
- e => areSameExtensions({ id: e.identifier.value, uuid: e.uuid }, this.extension.identifier) && this.workspaceContextService.getWorkbenchState() !== 1
1131
- )))) {
1132
- this.enabled = this.extension.state === 1
1133
- && ((this.extension.enablementState === 8 || this.extension.enablementState === 9) )
1134
- && this.extensionEnablementService.canChangeWorkspaceEnablement(this.extension.local);
1135
- }
1136
- }
1137
- async run() {
1138
- if (!this.extension) {
1139
- return;
1140
- }
1141
- return this.extensionsWorkbenchService.setEnablement(this.extension, 7 );
1142
- }
1143
- };
1144
- DisableForWorkspaceAction = DisableForWorkspaceAction_1 = ( (__decorate([
1145
- ( (__param(0, IWorkspaceContextService))),
1146
- ( (__param(1, IExtensionsWorkbenchService))),
1147
- ( (__param(2, IWorkbenchExtensionEnablementService))),
1148
- ( (__param(3, IExtensionService)))
1149
- ], DisableForWorkspaceAction)));
1150
- let DisableGloballyAction = class DisableGloballyAction extends ExtensionAction {
1151
- static { DisableGloballyAction_1 = this; }
1152
- static { this.ID = 'extensions.disableGlobally'; }
1153
- static { this.LABEL = ( (localize('disableGloballyAction', "Disable"))); }
1154
- constructor(extensionsWorkbenchService, extensionEnablementService, extensionService) {
1155
- super(DisableGloballyAction_1.ID, DisableGloballyAction_1.LABEL, ExtensionAction.LABEL_ACTION_CLASS);
1156
- this.extensionsWorkbenchService = extensionsWorkbenchService;
1157
- this.extensionEnablementService = extensionEnablementService;
1158
- this.extensionService = extensionService;
1159
- this.tooltip = ( (localize('disableGloballyActionToolTip', "Disable this extension")));
1160
- this.update();
1161
- this._register(this.extensionService.onDidChangeExtensions(() => this.update()));
1162
- }
1163
- update() {
1164
- this.enabled = false;
1165
- if (this.extension && this.extension.local && ( (this.extensionService.extensions.some(
1166
- e => areSameExtensions({ id: e.identifier.value, uuid: e.uuid }, this.extension.identifier)
1167
- )))) {
1168
- this.enabled = this.extension.state === 1
1169
- && ((this.extension.enablementState === 8 || this.extension.enablementState === 9) )
1170
- && this.extensionEnablementService.canChangeEnablement(this.extension.local);
1171
- }
1172
- }
1173
- async run() {
1174
- if (!this.extension) {
1175
- return;
1176
- }
1177
- return this.extensionsWorkbenchService.setEnablement(this.extension, 6 );
1178
- }
1179
- };
1180
- DisableGloballyAction = DisableGloballyAction_1 = ( (__decorate([
1181
- ( (__param(0, IExtensionsWorkbenchService))),
1182
- ( (__param(1, IWorkbenchExtensionEnablementService))),
1183
- ( (__param(2, IExtensionService)))
1184
- ], DisableGloballyAction)));
1185
- let ReloadAction = class ReloadAction extends ExtensionAction {
1186
- static { ReloadAction_1 = this; }
1187
- static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} reload`; }
1188
- static { this.DisabledClass = `${ReloadAction_1.EnabledClass} disabled`; }
1189
- constructor(hostService, extensionService) {
1190
- super('extensions.reload', ( (localize('reloadAction', "Reload"))), ReloadAction_1.DisabledClass, false);
1191
- this.hostService = hostService;
1192
- this.extensionService = extensionService;
1193
- this.updateWhenCounterExtensionChanges = true;
1194
- this._register(this.extensionService.onDidChangeExtensions(() => this.update()));
1195
- this.update();
1196
- }
1197
- update() {
1198
- this.enabled = false;
1199
- this.tooltip = '';
1200
- if (!this.extension) {
1201
- return;
1202
- }
1203
- const state = this.extension.state;
1204
- if (state === 0 || state === 2 ) {
1205
- return;
1206
- }
1207
- if (this.extension.local && this.extension.local.manifest && this.extension.local.manifest.contributes && this.extension.local.manifest.contributes.localizations && this.extension.local.manifest.contributes.localizations.length > 0) {
1208
- return;
1209
- }
1210
- const reloadTooltip = this.extension.reloadRequiredStatus;
1211
- this.enabled = reloadTooltip !== undefined;
1212
- this.label = reloadTooltip !== undefined ? ( (localize('reload required', 'Reload Required'))) : '';
1213
- this.tooltip = reloadTooltip !== undefined ? reloadTooltip : '';
1214
- this.class = this.enabled ? ReloadAction_1.EnabledClass : ReloadAction_1.DisabledClass;
1215
- }
1216
- run() {
1217
- return Promise.resolve(this.hostService.reload());
1218
- }
1219
- };
1220
- ReloadAction = ReloadAction_1 = ( (__decorate([
1221
- ( (__param(0, IHostService))),
1222
- ( (__param(1, IExtensionService)))
1223
- ], ReloadAction)));
1224
- function isThemeFromExtension(theme, extension) {
1225
- return !!(extension && theme.extensionData && ExtensionIdentifier.equals(theme.extensionData.extensionId, extension.identifier.id));
1226
- }
1227
- function getQuickPickEntries(themes, currentTheme, extension, showCurrentTheme) {
1228
- const picks = [];
1229
- for (const theme of themes) {
1230
- if (isThemeFromExtension(theme, extension) && !(showCurrentTheme && theme === currentTheme)) {
1231
- picks.push({ label: theme.label, id: theme.id });
1232
- }
1233
- }
1234
- if (showCurrentTheme) {
1235
- picks.push({ type: 'separator', label: ( (localize('current', "current"))) });
1236
- picks.push({ label: currentTheme.label, id: currentTheme.id });
1237
- }
1238
- return picks;
1239
- }
1240
- let SetColorThemeAction = class SetColorThemeAction extends ExtensionAction {
1241
- static { SetColorThemeAction_1 = this; }
1242
- static { this.ID = 'workbench.extensions.action.setColorTheme'; }
1243
- static { this.TITLE = { value: ( (localize('workbench.extensions.action.setColorTheme', "Set Color Theme"))), original: 'Set Color Theme' }; }
1244
- static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} theme`; }
1245
- static { this.DisabledClass = `${SetColorThemeAction_1.EnabledClass} disabled`; }
1246
- constructor(extensionService, workbenchThemeService, quickInputService, extensionEnablementService) {
1247
- super(SetColorThemeAction_1.ID, SetColorThemeAction_1.TITLE.value, SetColorThemeAction_1.DisabledClass, false);
1248
- this.workbenchThemeService = workbenchThemeService;
1249
- this.quickInputService = quickInputService;
1250
- this.extensionEnablementService = extensionEnablementService;
1251
- this._register(Event.any(extensionService.onDidChangeExtensions, workbenchThemeService.onDidColorThemeChange)(() => this.update(), this));
1252
- this.update();
1253
- }
1254
- update() {
1255
- this.workbenchThemeService.getColorThemes().then(colorThemes => {
1256
- this.enabled = this.computeEnablement(colorThemes);
1257
- this.class = this.enabled ? SetColorThemeAction_1.EnabledClass : SetColorThemeAction_1.DisabledClass;
1258
- });
1259
- }
1260
- computeEnablement(colorThemes) {
1261
- return !!this.extension && this.extension.state === 1 && this.extensionEnablementService.isEnabledEnablementState(this.extension.enablementState) && ( (colorThemes.some(th => isThemeFromExtension(th, this.extension))));
1262
- }
1263
- async run({ showCurrentTheme, ignoreFocusLost } = { showCurrentTheme: false, ignoreFocusLost: false }) {
1264
- const colorThemes = await this.workbenchThemeService.getColorThemes();
1265
- if (!this.computeEnablement(colorThemes)) {
1266
- return;
1267
- }
1268
- const currentTheme = this.workbenchThemeService.getColorTheme();
1269
- const delayer = ( (new Delayer(100)));
1270
- const picks = getQuickPickEntries(colorThemes, currentTheme, this.extension, showCurrentTheme);
1271
- const pickedTheme = await this.quickInputService.pick(picks, {
1272
- placeHolder: ( (localize('select color theme', "Select Color Theme"))),
1273
- onDidFocus: item => delayer.trigger(() => this.workbenchThemeService.setColorTheme(item.id, undefined)),
1274
- ignoreFocusLost
1275
- });
1276
- return this.workbenchThemeService.setColorTheme(pickedTheme ? pickedTheme.id : currentTheme.id, 'auto');
1277
- }
1278
- };
1279
- SetColorThemeAction = SetColorThemeAction_1 = ( (__decorate([
1280
- ( (__param(0, IExtensionService))),
1281
- ( (__param(1, IWorkbenchThemeService))),
1282
- ( (__param(2, IQuickInputService))),
1283
- ( (__param(3, IWorkbenchExtensionEnablementService)))
1284
- ], SetColorThemeAction)));
1285
- let SetFileIconThemeAction = class SetFileIconThemeAction extends ExtensionAction {
1286
- static { SetFileIconThemeAction_1 = this; }
1287
- static { this.ID = 'workbench.extensions.action.setFileIconTheme'; }
1288
- static { this.TITLE = { value: ( (localize('workbench.extensions.action.setFileIconTheme', "Set File Icon Theme"))), original: 'Set File Icon Theme' }; }
1289
- static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} theme`; }
1290
- static { this.DisabledClass = `${SetFileIconThemeAction_1.EnabledClass} disabled`; }
1291
- constructor(extensionService, workbenchThemeService, quickInputService, extensionEnablementService) {
1292
- super(SetFileIconThemeAction_1.ID, SetFileIconThemeAction_1.TITLE.value, SetFileIconThemeAction_1.DisabledClass, false);
1293
- this.workbenchThemeService = workbenchThemeService;
1294
- this.quickInputService = quickInputService;
1295
- this.extensionEnablementService = extensionEnablementService;
1296
- this._register(Event.any(extensionService.onDidChangeExtensions, workbenchThemeService.onDidFileIconThemeChange)(() => this.update(), this));
1297
- this.update();
1298
- }
1299
- update() {
1300
- this.workbenchThemeService.getFileIconThemes().then(fileIconThemes => {
1301
- this.enabled = this.computeEnablement(fileIconThemes);
1302
- this.class = this.enabled ? SetFileIconThemeAction_1.EnabledClass : SetFileIconThemeAction_1.DisabledClass;
1303
- });
1304
- }
1305
- computeEnablement(colorThemfileIconThemess) {
1306
- return !!this.extension && this.extension.state === 1 && this.extensionEnablementService.isEnabledEnablementState(this.extension.enablementState) && ( (colorThemfileIconThemess.some(th => isThemeFromExtension(th, this.extension))));
1307
- }
1308
- async run({ showCurrentTheme, ignoreFocusLost } = { showCurrentTheme: false, ignoreFocusLost: false }) {
1309
- const fileIconThemes = await this.workbenchThemeService.getFileIconThemes();
1310
- if (!this.computeEnablement(fileIconThemes)) {
1311
- return;
1312
- }
1313
- const currentTheme = this.workbenchThemeService.getFileIconTheme();
1314
- const delayer = ( (new Delayer(100)));
1315
- const picks = getQuickPickEntries(fileIconThemes, currentTheme, this.extension, showCurrentTheme);
1316
- const pickedTheme = await this.quickInputService.pick(picks, {
1317
- placeHolder: ( (localize('select file icon theme', "Select File Icon Theme"))),
1318
- onDidFocus: item => delayer.trigger(() => this.workbenchThemeService.setFileIconTheme(item.id, undefined)),
1319
- ignoreFocusLost
1320
- });
1321
- return this.workbenchThemeService.setFileIconTheme(pickedTheme ? pickedTheme.id : currentTheme.id, 'auto');
1322
- }
1323
- };
1324
- SetFileIconThemeAction = SetFileIconThemeAction_1 = ( (__decorate([
1325
- ( (__param(0, IExtensionService))),
1326
- ( (__param(1, IWorkbenchThemeService))),
1327
- ( (__param(2, IQuickInputService))),
1328
- ( (__param(3, IWorkbenchExtensionEnablementService)))
1329
- ], SetFileIconThemeAction)));
1330
- let SetProductIconThemeAction = class SetProductIconThemeAction extends ExtensionAction {
1331
- static { SetProductIconThemeAction_1 = this; }
1332
- static { this.ID = 'workbench.extensions.action.setProductIconTheme'; }
1333
- static { this.TITLE = { value: ( (localize(
1334
- 'workbench.extensions.action.setProductIconTheme',
1335
- "Set Product Icon Theme"
1336
- ))), original: 'Set Product Icon Theme' }; }
1337
- static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} theme`; }
1338
- static { this.DisabledClass = `${SetProductIconThemeAction_1.EnabledClass} disabled`; }
1339
- constructor(extensionService, workbenchThemeService, quickInputService, extensionEnablementService) {
1340
- super(SetProductIconThemeAction_1.ID, SetProductIconThemeAction_1.TITLE.value, SetProductIconThemeAction_1.DisabledClass, false);
1341
- this.workbenchThemeService = workbenchThemeService;
1342
- this.quickInputService = quickInputService;
1343
- this.extensionEnablementService = extensionEnablementService;
1344
- this._register(Event.any(extensionService.onDidChangeExtensions, workbenchThemeService.onDidProductIconThemeChange)(() => this.update(), this));
1345
- this.update();
1346
- }
1347
- update() {
1348
- this.workbenchThemeService.getProductIconThemes().then(productIconThemes => {
1349
- this.enabled = this.computeEnablement(productIconThemes);
1350
- this.class = this.enabled ? SetProductIconThemeAction_1.EnabledClass : SetProductIconThemeAction_1.DisabledClass;
1351
- });
1352
- }
1353
- computeEnablement(productIconThemes) {
1354
- return !!this.extension && this.extension.state === 1 && this.extensionEnablementService.isEnabledEnablementState(this.extension.enablementState) && ( (productIconThemes.some(th => isThemeFromExtension(th, this.extension))));
1355
- }
1356
- async run({ showCurrentTheme, ignoreFocusLost } = { showCurrentTheme: false, ignoreFocusLost: false }) {
1357
- const productIconThemes = await this.workbenchThemeService.getProductIconThemes();
1358
- if (!this.computeEnablement(productIconThemes)) {
1359
- return;
1360
- }
1361
- const currentTheme = this.workbenchThemeService.getProductIconTheme();
1362
- const delayer = ( (new Delayer(100)));
1363
- const picks = getQuickPickEntries(productIconThemes, currentTheme, this.extension, showCurrentTheme);
1364
- const pickedTheme = await this.quickInputService.pick(picks, {
1365
- placeHolder: ( (localize('select product icon theme', "Select Product Icon Theme"))),
1366
- onDidFocus: item => delayer.trigger(() => this.workbenchThemeService.setProductIconTheme(item.id, undefined)),
1367
- ignoreFocusLost
1368
- });
1369
- return this.workbenchThemeService.setProductIconTheme(pickedTheme ? pickedTheme.id : currentTheme.id, 'auto');
1370
- }
1371
- };
1372
- SetProductIconThemeAction = SetProductIconThemeAction_1 = ( (__decorate([
1373
- ( (__param(0, IExtensionService))),
1374
- ( (__param(1, IWorkbenchThemeService))),
1375
- ( (__param(2, IQuickInputService))),
1376
- ( (__param(3, IWorkbenchExtensionEnablementService)))
1377
- ], SetProductIconThemeAction)));
1378
- let SetLanguageAction = class SetLanguageAction extends ExtensionAction {
1379
- static { SetLanguageAction_1 = this; }
1380
- static { this.ID = 'workbench.extensions.action.setDisplayLanguage'; }
1381
- static { this.TITLE = { value: ( (localize('workbench.extensions.action.setDisplayLanguage', "Set Display Language"))), original: 'Set Display Language' }; }
1382
- static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} language`; }
1383
- static { this.DisabledClass = `${SetLanguageAction_1.EnabledClass} disabled`; }
1384
- constructor(extensionsWorkbenchService) {
1385
- super(SetLanguageAction_1.ID, SetLanguageAction_1.TITLE.value, SetLanguageAction_1.DisabledClass, false);
1386
- this.extensionsWorkbenchService = extensionsWorkbenchService;
1387
- this.update();
1388
- }
1389
- update() {
1390
- this.enabled = false;
1391
- this.class = SetLanguageAction_1.DisabledClass;
1392
- if (!this.extension) {
1393
- return;
1394
- }
1395
- if (!this.extensionsWorkbenchService.canSetLanguage(this.extension)) {
1396
- return;
1397
- }
1398
- if (this.extension.gallery && language === getLocale(this.extension.gallery)) {
1399
- return;
1400
- }
1401
- this.enabled = true;
1402
- this.class = SetLanguageAction_1.EnabledClass;
1403
- }
1404
- async run() {
1405
- return this.extension && this.extensionsWorkbenchService.setLanguage(this.extension);
1406
- }
1407
- };
1408
- SetLanguageAction = SetLanguageAction_1 = ( (__decorate([
1409
- ( (__param(0, IExtensionsWorkbenchService)))
1410
- ], SetLanguageAction)));
1411
- let ClearLanguageAction = class ClearLanguageAction extends ExtensionAction {
1412
- static { ClearLanguageAction_1 = this; }
1413
- static { this.ID = 'workbench.extensions.action.clearLanguage'; }
1414
- static { this.TITLE = { value: ( (localize('workbench.extensions.action.clearLanguage', "Clear Display Language"))), original: 'Clear Display Language' }; }
1415
- static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} language`; }
1416
- static { this.DisabledClass = `${ClearLanguageAction_1.EnabledClass} disabled`; }
1417
- constructor(extensionsWorkbenchService, localeService) {
1418
- super(ClearLanguageAction_1.ID, ClearLanguageAction_1.TITLE.value, ClearLanguageAction_1.DisabledClass, false);
1419
- this.extensionsWorkbenchService = extensionsWorkbenchService;
1420
- this.localeService = localeService;
1421
- this.update();
1422
- }
1423
- update() {
1424
- this.enabled = false;
1425
- this.class = ClearLanguageAction_1.DisabledClass;
1426
- if (!this.extension) {
1427
- return;
1428
- }
1429
- if (!this.extensionsWorkbenchService.canSetLanguage(this.extension)) {
1430
- return;
1431
- }
1432
- if (this.extension.gallery && language !== getLocale(this.extension.gallery)) {
1433
- return;
1434
- }
1435
- this.enabled = true;
1436
- this.class = ClearLanguageAction_1.EnabledClass;
1437
- }
1438
- async run() {
1439
- return this.extension && this.localeService.clearLocalePreference();
1440
- }
1441
- };
1442
- ClearLanguageAction = ClearLanguageAction_1 = ( (__decorate([
1443
- ( (__param(0, IExtensionsWorkbenchService))),
1444
- ( (__param(1, ILocaleService)))
1445
- ], ClearLanguageAction)));
1446
- let ShowRecommendedExtensionAction = class ShowRecommendedExtensionAction extends Action {
1447
- static { ShowRecommendedExtensionAction_1 = this; }
1448
- static { this.ID = 'workbench.extensions.action.showRecommendedExtension'; }
1449
- static { this.LABEL = ( (localize('showRecommendedExtension', "Show Recommended Extension"))); }
1450
- constructor(extensionId, paneCompositeService, extensionWorkbenchService) {
1451
- super(ShowRecommendedExtensionAction_1.ID, ShowRecommendedExtensionAction_1.LABEL, undefined, false);
1452
- this.paneCompositeService = paneCompositeService;
1453
- this.extensionWorkbenchService = extensionWorkbenchService;
1454
- this.extensionId = extensionId;
1455
- }
1456
- async run() {
1457
- const paneComposite = await this.paneCompositeService.openPaneComposite(VIEWLET_ID, 0 , true);
1458
- const paneContainer = paneComposite?.getViewPaneContainer();
1459
- paneContainer.search(`@id:${this.extensionId}`);
1460
- paneContainer.focus();
1461
- const [extension] = await this.extensionWorkbenchService.getExtensions([{ id: this.extensionId }], { source: 'install-recommendation' }, CancellationToken.None);
1462
- if (extension) {
1463
- return this.extensionWorkbenchService.open(extension);
1464
- }
1465
- return null;
1466
- }
1467
- };
1468
- ShowRecommendedExtensionAction = ShowRecommendedExtensionAction_1 = ( (__decorate([
1469
- ( (__param(1, IPaneCompositePartService))),
1470
- ( (__param(2, IExtensionsWorkbenchService)))
1471
- ], ShowRecommendedExtensionAction)));
1472
- let InstallRecommendedExtensionAction = class InstallRecommendedExtensionAction extends Action {
1473
- static { InstallRecommendedExtensionAction_1 = this; }
1474
- static { this.ID = 'workbench.extensions.action.installRecommendedExtension'; }
1475
- static { this.LABEL = ( (localize('installRecommendedExtension', "Install Recommended Extension"))); }
1476
- constructor(extensionId, paneCompositeService, instantiationService, extensionWorkbenchService) {
1477
- super(InstallRecommendedExtensionAction_1.ID, InstallRecommendedExtensionAction_1.LABEL, undefined, false);
1478
- this.paneCompositeService = paneCompositeService;
1479
- this.instantiationService = instantiationService;
1480
- this.extensionWorkbenchService = extensionWorkbenchService;
1481
- this.extensionId = extensionId;
1482
- }
1483
- async run() {
1484
- const viewlet = await this.paneCompositeService.openPaneComposite(VIEWLET_ID, 0 , true);
1485
- const viewPaneContainer = viewlet?.getViewPaneContainer();
1486
- viewPaneContainer.search(`@id:${this.extensionId}`);
1487
- viewPaneContainer.focus();
1488
- const [extension] = await this.extensionWorkbenchService.getExtensions([{ id: this.extensionId }], { source: 'install-recommendation' }, CancellationToken.None);
1489
- if (extension) {
1490
- await this.extensionWorkbenchService.open(extension);
1491
- try {
1492
- await this.extensionWorkbenchService.install(extension);
1493
- }
1494
- catch (err) {
1495
- this.instantiationService.createInstance(PromptExtensionInstallFailureAction, extension, extension.latestVersion, 2 , err).run();
1496
- }
1497
- }
1498
- }
1499
- };
1500
- InstallRecommendedExtensionAction = InstallRecommendedExtensionAction_1 = ( (__decorate([
1501
- ( (__param(1, IPaneCompositePartService))),
1502
- ( (__param(2, IInstantiationService))),
1503
- ( (__param(3, IExtensionsWorkbenchService)))
1504
- ], InstallRecommendedExtensionAction)));
1505
- let IgnoreExtensionRecommendationAction = class IgnoreExtensionRecommendationAction extends Action {
1506
- static { IgnoreExtensionRecommendationAction_1 = this; }
1507
- static { this.ID = 'extensions.ignore'; }
1508
- static { this.Class = `${ExtensionAction.LABEL_ACTION_CLASS} ignore`; }
1509
- constructor(extension, extensionRecommendationsManagementService) {
1510
- super(IgnoreExtensionRecommendationAction_1.ID, 'Ignore Recommendation');
1511
- this.extension = extension;
1512
- this.extensionRecommendationsManagementService = extensionRecommendationsManagementService;
1513
- this.class = IgnoreExtensionRecommendationAction_1.Class;
1514
- this.tooltip = ( (localize('ignoreExtensionRecommendation', "Do not recommend this extension again")));
1515
- this.enabled = true;
1516
- }
1517
- run() {
1518
- this.extensionRecommendationsManagementService.toggleGlobalIgnoredRecommendation(this.extension.identifier.id, true);
1519
- return Promise.resolve();
1520
- }
1521
- };
1522
- IgnoreExtensionRecommendationAction = IgnoreExtensionRecommendationAction_1 = ( (__decorate([
1523
- ( (__param(1, IExtensionIgnoredRecommendationsService)))
1524
- ], IgnoreExtensionRecommendationAction)));
1525
- let UndoIgnoreExtensionRecommendationAction = class UndoIgnoreExtensionRecommendationAction extends Action {
1526
- static { UndoIgnoreExtensionRecommendationAction_1 = this; }
1527
- static { this.ID = 'extensions.ignore'; }
1528
- static { this.Class = `${ExtensionAction.LABEL_ACTION_CLASS} undo-ignore`; }
1529
- constructor(extension, extensionRecommendationsManagementService) {
1530
- super(UndoIgnoreExtensionRecommendationAction_1.ID, 'Undo');
1531
- this.extension = extension;
1532
- this.extensionRecommendationsManagementService = extensionRecommendationsManagementService;
1533
- this.class = UndoIgnoreExtensionRecommendationAction_1.Class;
1534
- this.tooltip = ( (localize('undo', "Undo")));
1535
- this.enabled = true;
1536
- }
1537
- run() {
1538
- this.extensionRecommendationsManagementService.toggleGlobalIgnoredRecommendation(this.extension.identifier.id, false);
1539
- return Promise.resolve();
1540
- }
1541
- };
1542
- UndoIgnoreExtensionRecommendationAction = UndoIgnoreExtensionRecommendationAction_1 = ( (__decorate([
1543
- ( (__param(1, IExtensionIgnoredRecommendationsService)))
1544
- ], UndoIgnoreExtensionRecommendationAction)));
1545
- let SearchExtensionsAction = class SearchExtensionsAction extends Action {
1546
- constructor(searchValue, paneCompositeService) {
1547
- super('extensions.searchExtensions', ( (localize('search recommendations', "Search Extensions"))), undefined, true);
1548
- this.searchValue = searchValue;
1549
- this.paneCompositeService = paneCompositeService;
1550
- }
1551
- async run() {
1552
- const viewPaneContainer = (await this.paneCompositeService.openPaneComposite(VIEWLET_ID, 0 , true))?.getViewPaneContainer();
1553
- viewPaneContainer.search(this.searchValue);
1554
- viewPaneContainer.focus();
1555
- }
1556
- };
1557
- SearchExtensionsAction = ( (__decorate([
1558
- ( (__param(1, IPaneCompositePartService)))
1559
- ], SearchExtensionsAction)));
1560
- let AbstractConfigureRecommendedExtensionsAction = class AbstractConfigureRecommendedExtensionsAction extends Action {
1561
- constructor(id, label, contextService, fileService, textFileService, editorService, jsonEditingService, textModelResolverService) {
1562
- super(id, label);
1563
- this.contextService = contextService;
1564
- this.fileService = fileService;
1565
- this.textFileService = textFileService;
1566
- this.editorService = editorService;
1567
- this.jsonEditingService = jsonEditingService;
1568
- this.textModelResolverService = textModelResolverService;
1569
- }
1570
- openExtensionsFile(extensionsFileResource) {
1571
- return this.getOrCreateExtensionsFile(extensionsFileResource)
1572
- .then(({ created, content }) => this.getSelectionPosition(content, extensionsFileResource, ['recommendations'])
1573
- .then(selection => this.editorService.openEditor({
1574
- resource: extensionsFileResource,
1575
- options: {
1576
- pinned: created,
1577
- selection
1578
- }
1579
- })), error => Promise.reject(( (new Error( (localize(
1580
- 'OpenExtensionsFile.failed',
1581
- "Unable to create 'extensions.json' file inside the '.vscode' folder ({0}).",
1582
- error
1583
- )))))));
1584
- }
1585
- openWorkspaceConfigurationFile(workspaceConfigurationFile) {
1586
- return this.getOrUpdateWorkspaceConfigurationFile(workspaceConfigurationFile)
1587
- .then(content => this.getSelectionPosition(( (content.value.toString())), content.resource, ['extensions', 'recommendations']))
1588
- .then(selection => this.editorService.openEditor({
1589
- resource: workspaceConfigurationFile,
1590
- options: {
1591
- selection,
1592
- forceReload: true
1593
- }
1594
- }));
1595
- }
1596
- getOrUpdateWorkspaceConfigurationFile(workspaceConfigurationFile) {
1597
- return Promise.resolve(this.fileService.readFile(workspaceConfigurationFile))
1598
- .then(content => {
1599
- const workspaceRecommendations = json.parse(( (content.value.toString())))['extensions'];
1600
- if (!workspaceRecommendations || !workspaceRecommendations.recommendations) {
1601
- return this.jsonEditingService.write(workspaceConfigurationFile, [{ path: ['extensions'], value: { recommendations: [] } }], true)
1602
- .then(() => this.fileService.readFile(workspaceConfigurationFile));
1603
- }
1604
- return content;
1605
- });
1606
- }
1607
- getSelectionPosition(content, resource, path) {
1608
- const tree = json.parseTree(content);
1609
- const node = json.findNodeAtLocation(tree, path);
1610
- if (node && node.parent && node.parent.children) {
1611
- const recommendationsValueNode = node.parent.children[1];
1612
- const lastExtensionNode = recommendationsValueNode.children && recommendationsValueNode.children.length ? recommendationsValueNode.children[recommendationsValueNode.children.length - 1] : null;
1613
- const offset = lastExtensionNode ? lastExtensionNode.offset + lastExtensionNode.length : recommendationsValueNode.offset + 1;
1614
- return Promise.resolve(this.textModelResolverService.createModelReference(resource))
1615
- .then(reference => {
1616
- const position = reference.object.textEditorModel.getPositionAt(offset);
1617
- reference.dispose();
1618
- return {
1619
- startLineNumber: position.lineNumber,
1620
- startColumn: position.column,
1621
- endLineNumber: position.lineNumber,
1622
- endColumn: position.column,
1623
- };
1624
- });
1625
- }
1626
- return Promise.resolve(undefined);
1627
- }
1628
- getOrCreateExtensionsFile(extensionsFileResource) {
1629
- return Promise.resolve(this.fileService.readFile(extensionsFileResource)).then(content => {
1630
- return { created: false, extensionsFileResource, content: ( (content.value.toString())) };
1631
- }, err => {
1632
- return this.textFileService.write(extensionsFileResource, ExtensionsConfigurationInitialContent).then(() => {
1633
- return { created: true, extensionsFileResource, content: ExtensionsConfigurationInitialContent };
1634
- });
1635
- });
1636
- }
1637
- };
1638
- AbstractConfigureRecommendedExtensionsAction = ( (__decorate([
1639
- ( (__param(2, IWorkspaceContextService))),
1640
- ( (__param(3, IFileService))),
1641
- ( (__param(4, ITextFileService))),
1642
- ( (__param(5, IEditorService))),
1643
- ( (__param(6, IJSONEditingService))),
1644
- ( (__param(7, ITextModelService)))
1645
- ], AbstractConfigureRecommendedExtensionsAction)));
1646
- (class ConfigureWorkspaceRecommendedExtensionsAction extends AbstractConfigureRecommendedExtensionsAction {
1647
- static { this.ID = 'workbench.extensions.action.configureWorkspaceRecommendedExtensions'; }
1648
- static { this.LABEL = ( (localize(
1649
- 'configureWorkspaceRecommendedExtensions',
1650
- "Configure Recommended Extensions (Workspace)"
1651
- ))); }
1652
- constructor(id, label, fileService, textFileService, contextService, editorService, jsonEditingService, textModelResolverService) {
1653
- super(id, label, contextService, fileService, textFileService, editorService, jsonEditingService, textModelResolverService);
1654
- this._register(this.contextService.onDidChangeWorkbenchState(() => this.update(), this));
1655
- this.update();
1656
- }
1657
- update() {
1658
- this.enabled = this.contextService.getWorkbenchState() !== 1 ;
1659
- }
1660
- run() {
1661
- switch (this.contextService.getWorkbenchState()) {
1662
- case 2 :
1663
- return this.openExtensionsFile(this.contextService.getWorkspace().folders[0].toResource(EXTENSIONS_CONFIG));
1664
- case 3 :
1665
- return this.openWorkspaceConfigurationFile(this.contextService.getWorkspace().configuration);
1666
- }
1667
- return Promise.resolve();
1668
- }
1669
- });
1670
- (class ConfigureWorkspaceFolderRecommendedExtensionsAction extends AbstractConfigureRecommendedExtensionsAction {
1671
- static { this.ID = 'workbench.extensions.action.configureWorkspaceFolderRecommendedExtensions'; }
1672
- static { this.LABEL = ( (localize(
1673
- 'configureWorkspaceFolderRecommendedExtensions',
1674
- "Configure Recommended Extensions (Workspace Folder)"
1675
- ))); }
1676
- constructor(id, label, fileService, textFileService, contextService, editorService, jsonEditingService, textModelResolverService, commandService) {
1677
- super(id, label, contextService, fileService, textFileService, editorService, jsonEditingService, textModelResolverService);
1678
- this.commandService = commandService;
1679
- }
1680
- run() {
1681
- const folderCount = this.contextService.getWorkspace().folders.length;
1682
- const pickFolderPromise = folderCount === 1 ? Promise.resolve(this.contextService.getWorkspace().folders[0]) : this.commandService.executeCommand(PICK_WORKSPACE_FOLDER_COMMAND_ID);
1683
- return Promise.resolve(pickFolderPromise)
1684
- .then(workspaceFolder => {
1685
- if (workspaceFolder) {
1686
- return this.openExtensionsFile(workspaceFolder.toResource(EXTENSIONS_CONFIG));
1687
- }
1688
- return null;
1689
- });
1690
- }
1691
- });
1692
- let ExtensionStatusLabelAction = class ExtensionStatusLabelAction extends Action {
1693
- static { ExtensionStatusLabelAction_1 = this; }
1694
- static { this.ENABLED_CLASS = `${ExtensionAction.TEXT_ACTION_CLASS} extension-status-label`; }
1695
- static { this.DISABLED_CLASS = `${ExtensionStatusLabelAction_1.ENABLED_CLASS} hide`; }
1696
- get extension() { return this._extension; }
1697
- set extension(extension) {
1698
- if (!(this._extension && extension && areSameExtensions(this._extension.identifier, extension.identifier))) {
1699
- this.initialStatus = null;
1700
- this.status = null;
1701
- this.enablementState = null;
1702
- }
1703
- this._extension = extension;
1704
- this.update();
1705
- }
1706
- constructor(extensionService, extensionManagementServerService, extensionEnablementService) {
1707
- super('extensions.action.statusLabel', '', ExtensionStatusLabelAction_1.DISABLED_CLASS, false);
1708
- this.extensionService = extensionService;
1709
- this.extensionManagementServerService = extensionManagementServerService;
1710
- this.extensionEnablementService = extensionEnablementService;
1711
- this.initialStatus = null;
1712
- this.status = null;
1713
- this.version = null;
1714
- this.enablementState = null;
1715
- this._extension = null;
1716
- }
1717
- update() {
1718
- const label = this.computeLabel();
1719
- this.label = label || '';
1720
- this.class = label ? ExtensionStatusLabelAction_1.ENABLED_CLASS : ExtensionStatusLabelAction_1.DISABLED_CLASS;
1721
- }
1722
- computeLabel() {
1723
- if (!this.extension) {
1724
- return null;
1725
- }
1726
- const currentStatus = this.status;
1727
- const currentVersion = this.version;
1728
- const currentEnablementState = this.enablementState;
1729
- this.status = this.extension.state;
1730
- this.version = this.extension.version;
1731
- if (this.initialStatus === null) {
1732
- this.initialStatus = this.status;
1733
- }
1734
- this.enablementState = this.extension.enablementState;
1735
- const canAddExtension = () => {
1736
- const runningExtension = this.extensionService.extensions.filter(e => areSameExtensions({ id: e.identifier.value, uuid: e.uuid }, this.extension.identifier))[0];
1737
- if (this.extension.local) {
1738
- if (runningExtension && this.extension.version === runningExtension.version) {
1739
- return true;
1740
- }
1741
- return this.extensionService.canAddExtension(toExtensionDescription(this.extension.local));
1742
- }
1743
- return false;
1744
- };
1745
- const canRemoveExtension = () => {
1746
- if (this.extension.local) {
1747
- if (this.extensionService.extensions.every(e => !(areSameExtensions({ id: e.identifier.value, uuid: e.uuid }, this.extension.identifier) && this.extension.server === this.extensionManagementServerService.getExtensionManagementServer(toExtension(e))))) {
1748
- return true;
1749
- }
1750
- return this.extensionService.canRemoveExtension(toExtensionDescription(this.extension.local));
1751
- }
1752
- return false;
1753
- };
1754
- if (currentStatus !== null) {
1755
- if (currentStatus === 0 && this.status === 1 ) {
1756
- return canAddExtension() ? this.initialStatus === 1 && this.version !== currentVersion ? ( (localize('updated', "Updated"))) : ( (localize('installed', "Installed"))) : null;
1757
- }
1758
- if (currentStatus === 2 && this.status === 3 ) {
1759
- this.initialStatus = this.status;
1760
- return canRemoveExtension() ? ( (localize('uninstalled', "Uninstalled"))) : null;
1761
- }
1762
- }
1763
- if (currentEnablementState !== null) {
1764
- const currentlyEnabled = this.extensionEnablementService.isEnabledEnablementState(currentEnablementState);
1765
- const enabled = this.extensionEnablementService.isEnabledEnablementState(this.enablementState);
1766
- if (!currentlyEnabled && enabled) {
1767
- return canAddExtension() ? ( (localize('enabled', "Enabled"))) : null;
1768
- }
1769
- if (currentlyEnabled && !enabled) {
1770
- return canRemoveExtension() ? ( (localize('disabled', "Disabled"))) : null;
1771
- }
1772
- }
1773
- return null;
1774
- }
1775
- run() {
1776
- return Promise.resolve();
1777
- }
1778
- };
1779
- ExtensionStatusLabelAction = ExtensionStatusLabelAction_1 = ( (__decorate([
1780
- ( (__param(0, IExtensionService))),
1781
- ( (__param(1, IExtensionManagementServerService))),
1782
- ( (__param(2, IWorkbenchExtensionEnablementService)))
1783
- ], ExtensionStatusLabelAction)));
1784
- let ToggleSyncExtensionAction = class ToggleSyncExtensionAction extends ExtensionDropDownAction {
1785
- static { ToggleSyncExtensionAction_1 = this; }
1786
- static { this.IGNORED_SYNC_CLASS = `${ExtensionAction.ICON_ACTION_CLASS} extension-sync ${ThemeIcon.asClassName(syncIgnoredIcon)}`; }
1787
- static { this.SYNC_CLASS = `${ToggleSyncExtensionAction_1.ICON_ACTION_CLASS} extension-sync ${ThemeIcon.asClassName(syncEnabledIcon)}`; }
1788
- constructor(configurationService, extensionsWorkbenchService, userDataSyncEnablementService, instantiationService) {
1789
- super('extensions.sync', '', ToggleSyncExtensionAction_1.SYNC_CLASS, false, instantiationService);
1790
- this.configurationService = configurationService;
1791
- this.extensionsWorkbenchService = extensionsWorkbenchService;
1792
- this.userDataSyncEnablementService = userDataSyncEnablementService;
1793
- this._register(Event.filter(this.configurationService.onDidChangeConfiguration, e => e.affectsConfiguration('settingsSync.ignoredExtensions'))(() => this.update()));
1794
- this._register(userDataSyncEnablementService.onDidChangeEnablement(() => this.update()));
1795
- this.update();
1796
- }
1797
- update() {
1798
- this.enabled = !!this.extension && this.userDataSyncEnablementService.isEnabled() && this.extension.state === 1 ;
1799
- if (this.extension) {
1800
- const isIgnored = this.extensionsWorkbenchService.isExtensionIgnoredToSync(this.extension);
1801
- this.class = isIgnored ? ToggleSyncExtensionAction_1.IGNORED_SYNC_CLASS : ToggleSyncExtensionAction_1.SYNC_CLASS;
1802
- this.tooltip = isIgnored ? ( (localize('ignored', "This extension is ignored during sync"))) : ( (localize('synced', "This extension is synced")));
1803
- }
1804
- }
1805
- async run() {
1806
- return super.run({
1807
- actionGroups: [
1808
- [
1809
- ( (new Action(
1810
- 'extensions.syncignore',
1811
- this.extensionsWorkbenchService.isExtensionIgnoredToSync(this.extension) ? ( (localize('sync', "Sync this extension"))) : ( (localize('do not sync', "Do not sync this extension"))),
1812
- undefined,
1813
- true,
1814
- () => this.extensionsWorkbenchService.toggleExtensionIgnoredToSync(this.extension)
1815
- )))
1816
- ]
1817
- ], disposeActionsOnHide: true
1818
- });
1819
- }
1820
- };
1821
- ToggleSyncExtensionAction = ToggleSyncExtensionAction_1 = ( (__decorate([
1822
- ( (__param(0, IConfigurationService))),
1823
- ( (__param(1, IExtensionsWorkbenchService))),
1824
- ( (__param(2, IUserDataSyncEnablementService))),
1825
- ( (__param(3, IInstantiationService)))
1826
- ], ToggleSyncExtensionAction)));
1827
- let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction {
1828
- static { ExtensionStatusAction_1 = this; }
1829
- static { this.CLASS = `${ExtensionAction.ICON_ACTION_CLASS} extension-status`; }
1830
- get status() { return this._status; }
1831
- constructor(extensionManagementServerService, labelService, commandService, workspaceTrustEnablementService, workspaceTrustService, extensionsWorkbenchService, extensionService, extensionManifestPropertiesService, contextService, productService, workbenchExtensionEnablementService) {
1832
- super('extensions.status', '', `${ExtensionStatusAction_1.CLASS} hide`, false);
1833
- this.extensionManagementServerService = extensionManagementServerService;
1834
- this.labelService = labelService;
1835
- this.commandService = commandService;
1836
- this.workspaceTrustEnablementService = workspaceTrustEnablementService;
1837
- this.workspaceTrustService = workspaceTrustService;
1838
- this.extensionsWorkbenchService = extensionsWorkbenchService;
1839
- this.extensionService = extensionService;
1840
- this.extensionManifestPropertiesService = extensionManifestPropertiesService;
1841
- this.contextService = contextService;
1842
- this.productService = productService;
1843
- this.workbenchExtensionEnablementService = workbenchExtensionEnablementService;
1844
- this.updateWhenCounterExtensionChanges = true;
1845
- this._onDidChangeStatus = this._register(( (new Emitter())));
1846
- this.onDidChangeStatus = this._onDidChangeStatus.event;
1847
- this.updateThrottler = ( (new Throttler()));
1848
- this._register(this.labelService.onDidChangeFormatters(() => this.update(), this));
1849
- this._register(this.extensionService.onDidChangeExtensions(() => this.update()));
1850
- this.update();
1851
- }
1852
- update() {
1853
- this.updateThrottler.queue(() => this.computeAndUpdateStatus());
1854
- }
1855
- async computeAndUpdateStatus() {
1856
- this.updateStatus(undefined, true);
1857
- this.enabled = false;
1858
- if (!this.extension) {
1859
- return;
1860
- }
1861
- if (this.extension.isMalicious) {
1862
- this.updateStatus({ icon: warningIcon, message: ( (new MarkdownString(
1863
- (localize('malicious tooltip', "This extension was reported to be problematic."))
1864
- ))) }, true);
1865
- return;
1866
- }
1867
- if (this.extension.deprecationInfo) {
1868
- if (this.extension.deprecationInfo.extension) {
1869
- const link = `[${this.extension.deprecationInfo.extension.displayName}](${( ( URI.parse(
1870
- `command:extension.open?${encodeURIComponent(JSON.stringify([this.extension.deprecationInfo.extension.id]))}`
1871
- )))})`;
1872
- this.updateStatus({ icon: warningIcon, message: ( (new MarkdownString( (localize(
1873
- 'deprecated with alternate extension tooltip',
1874
- "This extension is deprecated. Use the {0} extension instead.",
1875
- link
1876
- ))))) }, true);
1877
- }
1878
- else if (this.extension.deprecationInfo.settings) {
1879
- const link = `[${( ( localize('settings', "settings")))}](${( ( URI.parse(
1880
- `command:workbench.action.openSettings?${encodeURIComponent(JSON.stringify([( ( this.extension.deprecationInfo.settings.map(setting => `@id:${setting}`))).join(' ')]))}`
1881
- )))})`;
1882
- this.updateStatus({ icon: warningIcon, message: ( (new MarkdownString( (localize(
1883
- 'deprecated with alternate settings tooltip',
1884
- "This extension is deprecated as this functionality is now built-in to VS Code. Configure these {0} to use this functionality.",
1885
- link
1886
- ))))) }, true);
1887
- }
1888
- else {
1889
- const message = ( (new MarkdownString( (localize(
1890
- 'deprecated tooltip',
1891
- "This extension is deprecated as it is no longer being maintained."
1892
- )))));
1893
- if (this.extension.deprecationInfo.additionalInfo) {
1894
- message.appendMarkdown(` ${this.extension.deprecationInfo.additionalInfo}`);
1895
- }
1896
- this.updateStatus({ icon: warningIcon, message }, true);
1897
- }
1898
- return;
1899
- }
1900
- if (this.extensionsWorkbenchService.canSetLanguage(this.extension)) {
1901
- return;
1902
- }
1903
- if (this.extension.gallery && this.extension.state === 3 && !(await this.extensionsWorkbenchService.canInstall(this.extension))) {
1904
- if (this.extensionManagementServerService.localExtensionManagementServer || this.extensionManagementServerService.remoteExtensionManagementServer) {
1905
- const targetPlatform = await (this.extensionManagementServerService.localExtensionManagementServer ? this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.getTargetPlatform() : this.extensionManagementServerService.remoteExtensionManagementServer.extensionManagementService.getTargetPlatform());
1906
- const message = ( (new MarkdownString(`${( ( localize(
1907
- 'incompatible platform',
1908
- "The '{0}' extension is not available in {1} for {2}.",
1909
- this.extension.displayName || this.extension.identifier.id,
1910
- this.productService.nameLong,
1911
- TargetPlatformToString(targetPlatform)
1912
- )))} [${( ( localize('learn more', "Learn More")))}](https://aka.ms/vscode-platform-specific-extensions)`)));
1913
- this.updateStatus({ icon: warningIcon, message }, true);
1914
- return;
1915
- }
1916
- if (this.extensionManagementServerService.webExtensionManagementServer) {
1917
- const productName = ( (localize('VS Code for Web', "{0} for the Web", this.productService.nameLong)));
1918
- const message = ( (new MarkdownString(`${( ( localize(
1919
- 'not web tooltip',
1920
- "The '{0}' extension is not available in {1}.",
1921
- this.extension.displayName || this.extension.identifier.id,
1922
- productName
1923
- )))} [${( ( localize('learn why', "Learn Why")))}](https://aka.ms/vscode-web-extensions-guide)`)));
1924
- this.updateStatus({ icon: warningIcon, message }, true);
1925
- return;
1926
- }
1927
- }
1928
- if (!this.extension.local ||
1929
- !this.extension.server ||
1930
- this.extension.state !== 1 ) {
1931
- return;
1932
- }
1933
- if (this.extension.enablementState === 2 ) {
1934
- this.updateStatus({ message: ( (new MarkdownString( (localize(
1935
- 'disabled by environment',
1936
- "This extension is disabled by the environment."
1937
- ))))) }, true);
1938
- return;
1939
- }
1940
- if (this.extension.enablementState === 3 ) {
1941
- this.updateStatus({ message: ( (new MarkdownString( (localize(
1942
- 'enabled by environment',
1943
- "This extension is enabled because it is required in the current environment."
1944
- ))))) }, true);
1945
- return;
1946
- }
1947
- if (this.extension.enablementState === 4 ) {
1948
- const details = getWorkspaceSupportTypeMessage(this.extension.local.manifest.capabilities?.virtualWorkspaces);
1949
- this.updateStatus({ icon: infoIcon, message: ( (new MarkdownString(details ? escapeMarkdownSyntaxTokens(details) : ( (localize(
1950
- 'disabled because of virtual workspace',
1951
- "This extension has been disabled because it does not support virtual workspaces."
1952
- )))))) }, true);
1953
- return;
1954
- }
1955
- if (isVirtualWorkspace(this.contextService.getWorkspace())) {
1956
- const virtualSupportType = this.extensionManifestPropertiesService.getExtensionVirtualWorkspaceSupportType(this.extension.local.manifest);
1957
- const details = getWorkspaceSupportTypeMessage(this.extension.local.manifest.capabilities?.virtualWorkspaces);
1958
- if (virtualSupportType === 'limited' || details) {
1959
- this.updateStatus({ icon: warningIcon, message: ( (new MarkdownString(details ? escapeMarkdownSyntaxTokens(details) : ( (localize(
1960
- 'extension limited because of virtual workspace',
1961
- "This extension has limited features because the current workspace is virtual."
1962
- )))))) }, true);
1963
- return;
1964
- }
1965
- }
1966
- if (this.extension.enablementState === 0 ||
1967
- (this.extension.enablementState === 5 && this.workbenchExtensionEnablementService.getDependenciesEnablementStates(this.extension.local).every(([, enablementState]) => this.workbenchExtensionEnablementService.isEnabledEnablementState(enablementState) || enablementState === 0 ))) {
1968
- this.enabled = true;
1969
- const untrustedDetails = getWorkspaceSupportTypeMessage(this.extension.local.manifest.capabilities?.untrustedWorkspaces);
1970
- this.updateStatus({ icon: trustIcon, message: ( (new MarkdownString(
1971
- untrustedDetails ? escapeMarkdownSyntaxTokens(untrustedDetails) : ( (localize(
1972
- 'extension disabled because of trust requirement',
1973
- "This extension has been disabled because the current workspace is not trusted."
1974
- )))
1975
- ))) }, true);
1976
- return;
1977
- }
1978
- if (this.workspaceTrustEnablementService.isWorkspaceTrustEnabled() && !this.workspaceTrustService.isWorkspaceTrusted()) {
1979
- const untrustedSupportType = this.extensionManifestPropertiesService.getExtensionUntrustedWorkspaceSupportType(this.extension.local.manifest);
1980
- const untrustedDetails = getWorkspaceSupportTypeMessage(this.extension.local.manifest.capabilities?.untrustedWorkspaces);
1981
- if (untrustedSupportType === 'limited' || untrustedDetails) {
1982
- this.enabled = true;
1983
- this.updateStatus({ icon: trustIcon, message: ( (new MarkdownString(
1984
- untrustedDetails ? escapeMarkdownSyntaxTokens(untrustedDetails) : ( (localize(
1985
- 'extension limited because of trust requirement',
1986
- "This extension has limited features because the current workspace is not trusted."
1987
- )))
1988
- ))) }, true);
1989
- return;
1990
- }
1991
- }
1992
- if (this.extension.enablementState === 1 ) {
1993
- if (!( (this.extensionsWorkbenchService.installed.some(
1994
- e => areSameExtensions(e.identifier, this.extension.identifier) && e.server !== this.extension.server
1995
- )))) {
1996
- let message;
1997
- if (this.extensionManagementServerService.localExtensionManagementServer === this.extension.server) {
1998
- if (this.extensionManifestPropertiesService.prefersExecuteOnWorkspace(this.extension.local.manifest)) {
1999
- if (this.extensionManagementServerService.remoteExtensionManagementServer) {
2000
- message = ( (new MarkdownString(`${( ( localize(
2001
- 'Install in remote server to enable',
2002
- "This extension is disabled in this workspace because it is defined to run in the Remote Extension Host. Please install the extension in '{0}' to enable.",
2003
- this.extensionManagementServerService.remoteExtensionManagementServer.label
2004
- )))} [${( ( localize('learn more', "Learn More")))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`)));
2005
- }
2006
- }
2007
- }
2008
- else if (this.extensionManagementServerService.remoteExtensionManagementServer === this.extension.server) {
2009
- if (this.extensionManifestPropertiesService.prefersExecuteOnUI(this.extension.local.manifest)) {
2010
- if (this.extensionManagementServerService.localExtensionManagementServer) {
2011
- message = ( (new MarkdownString(`${( ( localize(
2012
- 'Install in local server to enable',
2013
- "This extension is disabled in this workspace because it is defined to run in the Local Extension Host. Please install the extension locally to enable.",
2014
- this.extensionManagementServerService.remoteExtensionManagementServer.label
2015
- )))} [${( ( localize('learn more', "Learn More")))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`)));
2016
- }
2017
- else if (isWeb) {
2018
- message = ( (new MarkdownString(`${( ( localize(
2019
- 'Defined to run in desktop',
2020
- "This extension is disabled because it is defined to run only in {0} for the Desktop.",
2021
- this.productService.nameLong
2022
- )))} [${( ( localize('learn more', "Learn More")))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`)));
2023
- }
2024
- }
2025
- }
2026
- else if (this.extensionManagementServerService.webExtensionManagementServer === this.extension.server) {
2027
- message = ( (new MarkdownString(`${( ( localize(
2028
- 'Cannot be enabled',
2029
- "This extension is disabled because it is not supported in {0} for the Web.",
2030
- this.productService.nameLong
2031
- )))} [${( ( localize('learn more', "Learn More")))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`)));
2032
- }
2033
- if (message) {
2034
- this.updateStatus({ icon: warningIcon, message }, true);
2035
- }
2036
- return;
2037
- }
2038
- }
2039
- if (this.extensionManagementServerService.remoteExtensionManagementServer) {
2040
- if (isLanguagePackExtension(this.extension.local.manifest)) {
2041
- if (!( (this.extensionsWorkbenchService.installed.some(
2042
- e => areSameExtensions(e.identifier, this.extension.identifier) && e.server !== this.extension.server
2043
- )))) {
2044
- const message = this.extension.server === this.extensionManagementServerService.localExtensionManagementServer
2045
- ? ( (new MarkdownString( (localize(
2046
- 'Install language pack also in remote server',
2047
- "Install the language pack extension on '{0}' to enable it there also.",
2048
- this.extensionManagementServerService.remoteExtensionManagementServer.label
2049
- )))))
2050
- : ( (new MarkdownString( (localize(
2051
- 'Install language pack also locally',
2052
- "Install the language pack extension locally to enable it there also."
2053
- )))));
2054
- this.updateStatus({ icon: infoIcon, message }, true);
2055
- }
2056
- return;
2057
- }
2058
- const runningExtension = this.extensionService.extensions.filter(e => areSameExtensions({ id: e.identifier.value, uuid: e.uuid }, this.extension.identifier))[0];
2059
- const runningExtensionServer = runningExtension ? this.extensionManagementServerService.getExtensionManagementServer(toExtension(runningExtension)) : null;
2060
- if (this.extension.server === this.extensionManagementServerService.localExtensionManagementServer && runningExtensionServer === this.extensionManagementServerService.remoteExtensionManagementServer) {
2061
- if (this.extensionManifestPropertiesService.prefersExecuteOnWorkspace(this.extension.local.manifest)) {
2062
- this.updateStatus({ icon: infoIcon, message: ( (new MarkdownString(`${( ( localize(
2063
- 'enabled remotely',
2064
- "This extension is enabled in the Remote Extension Host because it prefers to run there."
2065
- )))} [${( ( localize('learn more', "Learn More")))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`))) }, true);
2066
- }
2067
- return;
2068
- }
2069
- if (this.extension.server === this.extensionManagementServerService.remoteExtensionManagementServer && runningExtensionServer === this.extensionManagementServerService.localExtensionManagementServer) {
2070
- if (this.extensionManifestPropertiesService.prefersExecuteOnUI(this.extension.local.manifest)) {
2071
- this.updateStatus({ icon: infoIcon, message: ( (new MarkdownString(`${( ( localize(
2072
- 'enabled locally',
2073
- "This extension is enabled in the Local Extension Host because it prefers to run there."
2074
- )))} [${( ( localize('learn more', "Learn More")))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`))) }, true);
2075
- }
2076
- return;
2077
- }
2078
- if (this.extension.server === this.extensionManagementServerService.remoteExtensionManagementServer && runningExtensionServer === this.extensionManagementServerService.webExtensionManagementServer) {
2079
- if (this.extensionManifestPropertiesService.canExecuteOnWeb(this.extension.local.manifest)) {
2080
- this.updateStatus({ icon: infoIcon, message: ( (new MarkdownString(`${( ( localize(
2081
- 'enabled in web worker',
2082
- "This extension is enabled in the Web Worker Extension Host because it prefers to run there."
2083
- )))} [${( ( localize('learn more', "Learn More")))}](https://aka.ms/vscode-remote/developing-extensions/architecture)`))) }, true);
2084
- }
2085
- return;
2086
- }
2087
- }
2088
- if (this.extension.enablementState === 5 ) {
2089
- this.updateStatus({ icon: warningIcon, message: ( (new MarkdownString( (localize(
2090
- 'extension disabled because of dependency',
2091
- "This extension has been disabled because it depends on an extension that is disabled."
2092
- ))))) }, true);
2093
- return;
2094
- }
2095
- const isEnabled = this.workbenchExtensionEnablementService.isEnabled(this.extension.local);
2096
- const isRunning = ( (this.extensionService.extensions.some(
2097
- e => areSameExtensions({ id: e.identifier.value, uuid: e.uuid }, this.extension.identifier)
2098
- )));
2099
- if (isEnabled && isRunning) {
2100
- if (this.extensionManagementServerService.localExtensionManagementServer && this.extensionManagementServerService.remoteExtensionManagementServer) {
2101
- if (this.extension.server === this.extensionManagementServerService.remoteExtensionManagementServer) {
2102
- this.updateStatus({ message: ( (new MarkdownString( (localize(
2103
- 'extension enabled on remote',
2104
- "Extension is enabled on '{0}'",
2105
- this.extension.server.label
2106
- ))))) }, true);
2107
- return;
2108
- }
2109
- }
2110
- if (this.extension.enablementState === 8 ) {
2111
- this.updateStatus({ message: ( (new MarkdownString(
2112
- (localize('globally enabled', "This extension is enabled globally."))
2113
- ))) }, true);
2114
- return;
2115
- }
2116
- if (this.extension.enablementState === 9 ) {
2117
- this.updateStatus({ message: ( (new MarkdownString( (localize(
2118
- 'workspace enabled',
2119
- "This extension is enabled for this workspace by the user."
2120
- ))))) }, true);
2121
- return;
2122
- }
2123
- }
2124
- if (!isEnabled && !isRunning) {
2125
- if (this.extension.enablementState === 6 ) {
2126
- this.updateStatus({ message: ( (new MarkdownString(
2127
- (localize('globally disabled', "This extension is disabled globally by the user."))
2128
- ))) }, true);
2129
- return;
2130
- }
2131
- if (this.extension.enablementState === 7 ) {
2132
- this.updateStatus({ message: ( (new MarkdownString( (localize(
2133
- 'workspace disabled',
2134
- "This extension is disabled for this workspace by the user."
2135
- ))))) }, true);
2136
- return;
2137
- }
2138
- }
2139
- if (isEnabled && !isRunning && !this.extension.local.isValid) {
2140
- const errors = ( (this.extension.local.validations.filter(([severity]) => severity === Severity.Error).map(([, message]) => message)));
2141
- this.updateStatus({ icon: errorIcon, message: ( (new MarkdownString(errors.join(' ').trim()))) }, true);
2142
- }
2143
- }
2144
- updateStatus(status, updateClass) {
2145
- if (this._status === status) {
2146
- return;
2147
- }
2148
- if (this._status && status && this._status.message === status.message && this._status.icon?.id === status.icon?.id) {
2149
- return;
2150
- }
2151
- this._status = status;
2152
- if (updateClass) {
2153
- if (this._status?.icon === errorIcon) {
2154
- this.class = `${ExtensionStatusAction_1.CLASS} extension-status-error ${ThemeIcon.asClassName(errorIcon)}`;
2155
- }
2156
- else if (this._status?.icon === warningIcon) {
2157
- this.class = `${ExtensionStatusAction_1.CLASS} extension-status-warning ${ThemeIcon.asClassName(warningIcon)}`;
2158
- }
2159
- else if (this._status?.icon === infoIcon) {
2160
- this.class = `${ExtensionStatusAction_1.CLASS} extension-status-info ${ThemeIcon.asClassName(infoIcon)}`;
2161
- }
2162
- else if (this._status?.icon === trustIcon) {
2163
- this.class = `${ExtensionStatusAction_1.CLASS} ${ThemeIcon.asClassName(trustIcon)}`;
2164
- }
2165
- else {
2166
- this.class = `${ExtensionStatusAction_1.CLASS} hide`;
2167
- }
2168
- }
2169
- this._onDidChangeStatus.fire();
2170
- }
2171
- async run() {
2172
- if (this._status?.icon === trustIcon) {
2173
- return this.commandService.executeCommand('workbench.trust.manage');
2174
- }
2175
- }
2176
- };
2177
- ExtensionStatusAction = ExtensionStatusAction_1 = ( (__decorate([
2178
- ( (__param(0, IExtensionManagementServerService))),
2179
- ( (__param(1, ILabelService))),
2180
- ( (__param(2, ICommandService))),
2181
- ( (__param(3, IWorkspaceTrustEnablementService))),
2182
- ( (__param(4, IWorkspaceTrustManagementService))),
2183
- ( (__param(5, IExtensionsWorkbenchService))),
2184
- ( (__param(6, IExtensionService))),
2185
- ( (__param(7, IExtensionManifestPropertiesService))),
2186
- ( (__param(8, IWorkspaceContextService))),
2187
- ( (__param(9, IProductService))),
2188
- ( (__param(10, IWorkbenchExtensionEnablementService)))
2189
- ], ExtensionStatusAction)));
2190
- let ReinstallAction = class ReinstallAction extends Action {
2191
- static { ReinstallAction_1 = this; }
2192
- static { this.ID = 'workbench.extensions.action.reinstall'; }
2193
- static { this.LABEL = ( (localize('reinstall', "Reinstall Extension..."))); }
2194
- constructor(id = ReinstallAction_1.ID, label = ReinstallAction_1.LABEL, extensionsWorkbenchService, extensionManagementServerService, quickInputService, notificationService, hostService, instantiationService, extensionService) {
2195
- super(id, label);
2196
- this.extensionsWorkbenchService = extensionsWorkbenchService;
2197
- this.extensionManagementServerService = extensionManagementServerService;
2198
- this.quickInputService = quickInputService;
2199
- this.notificationService = notificationService;
2200
- this.hostService = hostService;
2201
- this.instantiationService = instantiationService;
2202
- this.extensionService = extensionService;
2203
- }
2204
- get enabled() {
2205
- return this.extensionsWorkbenchService.local.filter(l => !l.isBuiltin && l.local).length > 0;
2206
- }
2207
- run() {
2208
- return this.quickInputService.pick(this.getEntries(), { placeHolder: ( (localize('selectExtensionToReinstall', "Select Extension to Reinstall"))) })
2209
- .then(pick => pick && this.reinstallExtension(pick.extension));
2210
- }
2211
- getEntries() {
2212
- return this.extensionsWorkbenchService.queryLocal()
2213
- .then(local => {
2214
- const entries = ( (local
2215
- .filter(extension => !extension.isBuiltin && extension.server !== this.extensionManagementServerService.webExtensionManagementServer)
2216
- .map(extension => {
2217
- return {
2218
- id: extension.identifier.id,
2219
- label: extension.displayName,
2220
- description: extension.identifier.id,
2221
- extension,
2222
- };
2223
- })));
2224
- return entries;
2225
- });
2226
- }
2227
- reinstallExtension(extension) {
2228
- return this.instantiationService.createInstance(SearchExtensionsAction, '@installed ').run()
2229
- .then(() => {
2230
- return this.extensionsWorkbenchService.reinstall(extension)
2231
- .then(extension => {
2232
- const requireReload = !(extension.local && this.extensionService.canAddExtension(toExtensionDescription(extension.local)));
2233
- const message = requireReload ? ( (localize(
2234
- 'ReinstallAction.successReload',
2235
- "Please reload Visual Studio Code to complete reinstalling the extension {0}.",
2236
- extension.identifier.id
2237
- )))
2238
- : ( (localize(
2239
- 'ReinstallAction.success',
2240
- "Reinstalling the extension {0} is completed.",
2241
- extension.identifier.id
2242
- )));
2243
- const actions = requireReload ? [{
2244
- label: ( (localize('InstallVSIXAction.reloadNow', "Reload Now"))),
2245
- run: () => this.hostService.reload()
2246
- }] : [];
2247
- this.notificationService.prompt(Severity.Info, message, actions, { sticky: true });
2248
- }, error => this.notificationService.error(error));
2249
- });
2250
- }
2251
- };
2252
- ReinstallAction = ReinstallAction_1 = ( (__decorate([
2253
- ( (__param(2, IExtensionsWorkbenchService))),
2254
- ( (__param(3, IExtensionManagementServerService))),
2255
- ( (__param(4, IQuickInputService))),
2256
- ( (__param(5, INotificationService))),
2257
- ( (__param(6, IHostService))),
2258
- ( (__param(7, IInstantiationService))),
2259
- ( (__param(8, IExtensionService)))
2260
- ], ReinstallAction)));
2261
- let InstallSpecificVersionOfExtensionAction = class InstallSpecificVersionOfExtensionAction extends Action {
2262
- static { InstallSpecificVersionOfExtensionAction_1 = this; }
2263
- static { this.ID = 'workbench.extensions.action.install.specificVersion'; }
2264
- static { this.LABEL = ( (localize('install previous version', "Install Specific Version of Extension..."))); }
2265
- constructor(id = InstallSpecificVersionOfExtensionAction_1.ID, label = InstallSpecificVersionOfExtensionAction_1.LABEL, extensionsWorkbenchService, quickInputService, instantiationService, extensionEnablementService) {
2266
- super(id, label);
2267
- this.extensionsWorkbenchService = extensionsWorkbenchService;
2268
- this.quickInputService = quickInputService;
2269
- this.instantiationService = instantiationService;
2270
- this.extensionEnablementService = extensionEnablementService;
2271
- }
2272
- get enabled() {
2273
- return (
2274
- (this.extensionsWorkbenchService.local.some(l => this.isEnabled(l)))
2275
- );
2276
- }
2277
- async run() {
2278
- const extensionPick = await this.quickInputService.pick(this.getExtensionEntries(), { placeHolder: ( (localize('selectExtension', "Select Extension"))), matchOnDetail: true });
2279
- if (extensionPick && extensionPick.extension) {
2280
- const action = this.instantiationService.createInstance(InstallAnotherVersionAction);
2281
- action.extension = extensionPick.extension;
2282
- await action.run();
2283
- await this.instantiationService.createInstance(SearchExtensionsAction, extensionPick.extension.identifier.id).run();
2284
- }
2285
- }
2286
- isEnabled(extension) {
2287
- const action = this.instantiationService.createInstance(InstallAnotherVersionAction);
2288
- action.extension = extension;
2289
- return action.enabled && !!extension.local && this.extensionEnablementService.isEnabled(extension.local);
2290
- }
2291
- async getExtensionEntries() {
2292
- const installed = await this.extensionsWorkbenchService.queryLocal();
2293
- const entries = [];
2294
- for (const extension of installed) {
2295
- if (this.isEnabled(extension)) {
2296
- entries.push({
2297
- id: extension.identifier.id,
2298
- label: extension.displayName || extension.identifier.id,
2299
- description: extension.identifier.id,
2300
- extension,
2301
- });
2302
- }
2303
- }
2304
- return entries.sort((e1, e2) => e1.extension.displayName.localeCompare(e2.extension.displayName));
2305
- }
2306
- };
2307
- InstallSpecificVersionOfExtensionAction = InstallSpecificVersionOfExtensionAction_1 = ( (__decorate([
2308
- ( (__param(2, IExtensionsWorkbenchService))),
2309
- ( (__param(3, IQuickInputService))),
2310
- ( (__param(4, IInstantiationService))),
2311
- ( (__param(5, IWorkbenchExtensionEnablementService)))
2312
- ], InstallSpecificVersionOfExtensionAction)));
2313
- CommandsRegistry.registerCommand('workbench.extensions.action.showExtensionsForLanguage', function (accessor, fileExtension) {
2314
- const paneCompositeService = accessor.get(IPaneCompositePartService);
2315
- return paneCompositeService.openPaneComposite(VIEWLET_ID, 0 , true)
2316
- .then(viewlet => viewlet?.getViewPaneContainer())
2317
- .then(viewlet => {
2318
- viewlet.search(`ext:${fileExtension.replace(/^\./, '')}`);
2319
- viewlet.focus();
2320
- });
2321
- });
2322
- CommandsRegistry.registerCommand('workbench.extensions.action.showExtensionsWithIds', function (accessor, extensionIds) {
2323
- const paneCompositeService = accessor.get(IPaneCompositePartService);
2324
- return paneCompositeService.openPaneComposite(VIEWLET_ID, 0 , true)
2325
- .then(viewlet => viewlet?.getViewPaneContainer())
2326
- .then(viewlet => {
2327
- const query = ( (extensionIds
2328
- .map(id => `@id:${id}`)))
2329
- .join(' ');
2330
- viewlet.search(query);
2331
- viewlet.focus();
2332
- });
2333
- });
2334
- registerColor('extensionButton.background', {
2335
- dark: buttonBackground,
2336
- light: buttonBackground,
2337
- hcDark: null,
2338
- hcLight: null
2339
- }, ( (localize(
2340
- 'extensionButtonBackground',
2341
- "Button background color for extension actions."
2342
- ))));
2343
- registerColor('extensionButton.foreground', {
2344
- dark: buttonForeground,
2345
- light: buttonForeground,
2346
- hcDark: null,
2347
- hcLight: null
2348
- }, ( (localize(
2349
- 'extensionButtonForeground',
2350
- "Button foreground color for extension actions."
2351
- ))));
2352
- registerColor('extensionButton.hoverBackground', {
2353
- dark: buttonHoverBackground,
2354
- light: buttonHoverBackground,
2355
- hcDark: null,
2356
- hcLight: null
2357
- }, ( (localize(
2358
- 'extensionButtonHoverBackground',
2359
- "Button background hover color for extension actions."
2360
- ))));
2361
- registerColor('extensionButton.separator', {
2362
- dark: buttonSeparator,
2363
- light: buttonSeparator,
2364
- hcDark: buttonSeparator,
2365
- hcLight: buttonSeparator
2366
- }, ( (localize('extensionButtonSeparator', "Button separator color for extension actions"))));
2367
- registerColor('extensionButton.prominentBackground', {
2368
- dark: buttonBackground,
2369
- light: buttonBackground,
2370
- hcDark: null,
2371
- hcLight: null
2372
- }, ( (localize(
2373
- 'extensionButtonProminentBackground',
2374
- "Button background color for extension actions that stand out (e.g. install button)."
2375
- ))));
2376
- registerColor('extensionButton.prominentForeground', {
2377
- dark: buttonForeground,
2378
- light: buttonForeground,
2379
- hcDark: null,
2380
- hcLight: null
2381
- }, ( (localize(
2382
- 'extensionButtonProminentForeground',
2383
- "Button foreground color for extension actions that stand out (e.g. install button)."
2384
- ))));
2385
- registerColor('extensionButton.prominentHoverBackground', {
2386
- dark: buttonHoverBackground,
2387
- light: buttonHoverBackground,
2388
- hcDark: null,
2389
- hcLight: null
2390
- }, ( (localize(
2391
- 'extensionButtonProminentHoverBackground',
2392
- "Button background hover color for extension actions that stand out (e.g. install button)."
2393
- ))));
2394
- registerThemingParticipant((theme, collector) => {
2395
- const errorColor = theme.getColor(editorErrorForeground);
2396
- if (errorColor) {
2397
- collector.addRule(`.extension-editor .header .actions-status-container > .status ${ThemeIcon.asCSSSelector(errorIcon)} { color: ${errorColor}; }`);
2398
- collector.addRule(`.extension-editor .body .subcontent .runtime-status ${ThemeIcon.asCSSSelector(errorIcon)} { color: ${errorColor}; }`);
2399
- collector.addRule(`.monaco-hover.extension-hover .markdown-hover .hover-contents ${ThemeIcon.asCSSSelector(errorIcon)} { color: ${errorColor}; }`);
2400
- }
2401
- const warningColor = theme.getColor(editorWarningForeground);
2402
- if (warningColor) {
2403
- collector.addRule(`.extension-editor .header .actions-status-container > .status ${ThemeIcon.asCSSSelector(warningIcon)} { color: ${warningColor}; }`);
2404
- collector.addRule(`.extension-editor .body .subcontent .runtime-status ${ThemeIcon.asCSSSelector(warningIcon)} { color: ${warningColor}; }`);
2405
- collector.addRule(`.monaco-hover.extension-hover .markdown-hover .hover-contents ${ThemeIcon.asCSSSelector(warningIcon)} { color: ${warningColor}; }`);
2406
- }
2407
- const infoColor = theme.getColor(editorInfoForeground);
2408
- if (infoColor) {
2409
- collector.addRule(`.extension-editor .header .actions-status-container > .status ${ThemeIcon.asCSSSelector(infoIcon)} { color: ${infoColor}; }`);
2410
- collector.addRule(`.extension-editor .body .subcontent .runtime-status ${ThemeIcon.asCSSSelector(infoIcon)} { color: ${infoColor}; }`);
2411
- collector.addRule(`.monaco-hover.extension-hover .markdown-hover .hover-contents ${ThemeIcon.asCSSSelector(infoIcon)} { color: ${infoColor}; }`);
2412
- }
2413
- });
2414
- export { AbstractConfigureRecommendedExtensionsAction, ClearLanguageAction, DisableForWorkspaceAction, DisableGloballyAction, DropDownMenuActionViewItem, EnableForWorkspaceAction, EnableGloballyAction, ExtensionAction, ExtensionDropDownAction, ExtensionStatusAction, ExtensionStatusLabelAction, IgnoreExtensionRecommendationAction, InstallAction, InstallAnotherVersionAction, InstallInOtherServerAction, InstallRecommendedExtensionAction, InstallSpecificVersionOfExtensionAction, InstallingLabelAction, ManageExtensionAction, MenuItemExtensionAction, MigrateDeprecatedExtensionAction, PromptExtensionInstallFailureAction, ReinstallAction, ReloadAction, SearchExtensionsAction, SetColorThemeAction, SetFileIconThemeAction, SetLanguageAction, SetProductIconThemeAction, ShowRecommendedExtensionAction, SwitchToPreReleaseVersionAction, SwitchToReleasedVersionAction, ToggleSyncExtensionAction, UndoIgnoreExtensionRecommendationAction, UninstallAction, UpdateAction };