@codingame/monaco-vscode-api 1.85.0 → 1.85.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. package/README.md +19 -10
  2. package/contributions.js +1 -0
  3. package/missing-services.js +91 -5
  4. package/monaco-editor-treemending.patch +957 -950
  5. package/package.json +6 -6
  6. package/vscode/src/vs/base/common/jsonFormatter.js +8 -1
  7. package/vscode/src/vs/platform/actions/browser/buttonbar.js +128 -0
  8. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -1
  9. package/vscode/src/vs/platform/layout/browser/zIndexRegistry.js +58 -0
  10. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +56 -1
  11. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +186 -4
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +191 -0
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +238 -2
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +75 -0
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +205 -1
  16. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +168 -0
  17. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +35 -0
  18. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +340 -0
  19. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +1195 -0
  20. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +115 -0
  21. package/vscode/src/vs/workbench/contrib/chat/browser/chatOptions.js +81 -0
  22. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.css.js +4 -0
  23. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.js +62 -0
  24. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +583 -0
  25. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css.js +4 -0
  26. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +290 -0
  27. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +167 -0
  28. package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +4 -0
  29. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +6 -1
  30. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +562 -0
  31. package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +31 -1
  32. package/vscode/src/vs/workbench/contrib/chat/common/chatProvider.js +24 -1
  33. package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +193 -0
  34. package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +22 -1
  35. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +52 -1
  36. package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +258 -0
  37. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js +37 -0
  38. package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.js +25 -0
  39. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css.js +4 -0
  40. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +388 -0
  41. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +61 -0
  42. package/vscode/src/vs/workbench/contrib/comments/browser/commentFormActions.js +49 -0
  43. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +647 -0
  44. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +300 -0
  45. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.js +60 -0
  46. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +249 -0
  47. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +107 -0
  48. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +333 -0
  49. package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +4 -0
  50. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +99 -0
  51. package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +55 -0
  52. package/vscode/src/vs/workbench/contrib/comments/common/commentsConfiguration.js +2 -0
  53. package/vscode/src/vs/workbench/contrib/contextmenu/browser/contextmenu.contribution.js +20 -0
  54. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +855 -0
  55. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +410 -0
  56. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +1591 -0
  57. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +178 -0
  58. package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +4 -0
  59. package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackEditorContribution.css.js +4 -0
  60. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +1485 -0
  61. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +125 -0
  62. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +29 -0
  63. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +41 -0
  64. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +102 -0
  65. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.css.js +4 -0
  66. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +988 -0
  67. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatLivePreviewWidget.js +431 -0
  68. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +417 -0
  69. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +806 -0
  70. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +915 -0
  71. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +19 -0
  72. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +129 -10
  73. package/vscode/src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.js +205 -0
  74. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +150 -0
  75. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +480 -0
  76. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +5 -0
  77. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +90 -0
  78. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/editing.js +54 -0
  79. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +108 -0
  80. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +258 -0
  81. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +614 -0
  82. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +307 -0
  83. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.js +44 -0
  84. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +165 -0
  85. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/telemetry.js +78 -0
  86. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +169 -0
  87. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +64 -0
  88. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/cellOutputClipboard.js +49 -0
  89. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +70 -0
  90. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +120 -0
  91. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +416 -0
  92. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css.js +4 -0
  93. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +663 -0
  94. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +593 -0
  95. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +72 -0
  96. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +326 -0
  97. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +539 -0
  98. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +265 -0
  99. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +348 -0
  100. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebook.css.js +4 -0
  101. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css.js +4 -0
  102. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellEditorHint.css.js +4 -0
  103. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellInsertToolbar.css.js +4 -0
  104. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellOutput.css.js +4 -0
  105. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellStatusBar.css.js +4 -0
  106. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellTitleToolbar.css.js +4 -0
  107. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookDnd.css.js +4 -0
  108. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookEditorStickyScroll.css.js +4 -0
  109. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFocusIndicator.css.js +4 -0
  110. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFolding.css.js +4 -0
  111. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookKernelActionViewItem.css.js +4 -0
  112. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookOutline.css.js +4 -0
  113. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookToolbar.css.js +4 -0
  114. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.js +95 -3
  115. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +437 -0
  116. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorExtensions.js +29 -0
  117. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +2730 -0
  118. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +139 -0
  119. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookLogger.js +17 -0
  120. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +564 -0
  121. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookViewEvents.js +27 -0
  122. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.js +119 -0
  123. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +27 -0
  124. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +135 -0
  125. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.js +178 -0
  126. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDecorations.js +35 -0
  127. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.js +377 -0
  128. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDragRenderer.js +97 -0
  129. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +194 -0
  130. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.js +71 -0
  131. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocus.js +20 -0
  132. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocusIndicator.js +85 -0
  133. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +652 -0
  134. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.js +59 -0
  135. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +303 -0
  136. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.js +24 -0
  137. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +228 -0
  138. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatActions.js +302 -0
  139. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatController.js +438 -0
  140. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatPart.js +45 -0
  141. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +435 -0
  142. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +95 -0
  143. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +107 -0
  144. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellInput.js +29 -0
  145. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +59 -0
  146. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +67 -0
  147. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +430 -0
  148. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.js +54 -0
  149. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +1131 -0
  150. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +21 -0
  151. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +1591 -0
  152. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +341 -0
  153. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +2155 -0
  154. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewThemeMapping.js +65 -0
  155. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.js +95 -0
  156. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +507 -0
  157. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +85 -0
  158. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel.js +47 -0
  159. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellSelectionCollection.js +40 -0
  160. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +435 -0
  161. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher.js +31 -0
  162. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.js +257 -0
  163. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +239 -0
  164. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +103 -0
  165. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js +211 -0
  166. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +808 -0
  167. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/viewContext.js +8 -0
  168. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +381 -0
  169. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +527 -0
  170. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.js +163 -0
  171. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +651 -0
  172. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +173 -0
  173. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.js +98 -0
  174. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +62 -0
  175. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel.js +101 -0
  176. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +346 -0
  177. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +152 -1
  178. package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +39 -0
  179. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +296 -0
  180. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +261 -0
  181. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.js +3 -1
  182. package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.js +2 -1
  183. package/vscode/src/vs/workbench/contrib/notebook/common/notebookKeymapService.js +3 -0
  184. package/vscode/src/vs/workbench/contrib/notebook/common/notebookLoggingService.js +3 -0
  185. package/vscode/src/vs/workbench/contrib/notebook/common/notebookPerformance.js +16 -0
  186. package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.js +66 -0
  187. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWorkerService.js +4 -0
  188. package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +130 -0
  189. package/vscode/src/vs/workbench/contrib/remote/browser/media/tunnelView.css.js +4 -0
  190. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +847 -0
  191. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +89 -0
  192. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +1942 -0
  193. package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.js +107 -0
  194. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +49 -0
  195. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +387 -0
  196. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +2 -2
  197. package/vscode/src/vs/workbench/contrib/search/common/constants.js +66 -0
  198. package/vscode/src/vs/workbench/contrib/searchEditor/browser/constants.js +11 -0
  199. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +24 -0
  200. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +95 -0
  201. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.js +4 -1
  202. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +2 -1
  203. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/featuredExtensionService.js +159 -0
  204. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +375 -0
  205. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +563 -0
  206. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +932 -0
  207. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +15 -1
  208. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +2 -2
  209. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +190 -2
  210. package/vscode/src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.js +77 -0
  211. package/assets/break.mp3 +0 -0
  212. package/assets/chatRequestSent.mp3 +0 -0
  213. package/assets/chatResponsePending.mp3 +0 -0
  214. package/assets/chatResponseReceived1.mp3 +0 -0
  215. package/assets/chatResponseReceived2.mp3 +0 -0
  216. package/assets/chatResponseReceived3.mp3 +0 -0
  217. package/assets/chatResponseReceived4.mp3 +0 -0
  218. package/assets/clear.mp3 +0 -0
  219. package/assets/defaultIcon.png +0 -0
  220. package/assets/diffLineDeleted.mp3 +0 -0
  221. package/assets/diffLineInserted.mp3 +0 -0
  222. package/assets/diffLineModified.mp3 +0 -0
  223. package/assets/error.mp3 +0 -0
  224. package/assets/fake.html +0 -10
  225. package/assets/foldedAreas.mp3 +0 -0
  226. package/assets/format.mp3 +0 -0
  227. package/assets/index-no-csp.html +0 -1226
  228. package/assets/index.html +0 -1227
  229. package/assets/quickFixes.mp3 +0 -0
  230. package/assets/save.mp3 +0 -0
  231. package/assets/service-worker.js +0 -457
  232. package/assets/taskCompleted.mp3 +0 -0
  233. package/assets/taskFailed.mp3 +0 -0
  234. package/assets/terminalBell.mp3 +0 -0
  235. package/assets/warning.mp3 +0 -0
  236. package/assets/webWorkerExtensionHostIframe.html +0 -123
  237. package/override/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +0 -2
  238. package/override/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +0 -2
  239. package/override/vs/workbench/contrib/notebook/common/notebookEditorInput.js +0 -5
@@ -0,0 +1,95 @@
1
+ import { isFalsyOrEmpty, groupBy } from 'monaco-editor/esm/vs/base/common/arrays.js';
2
+ import { compare } from 'monaco-editor/esm/vs/base/common/strings.js';
3
+ import { getCodeEditor } from 'monaco-editor/esm/vs/editor/browser/editorBrowser.js';
4
+ import { ILanguageService } from 'monaco-editor/esm/vs/editor/common/languages/language.js';
5
+ import { SnippetController2 } from 'monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetController2.js';
6
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
7
+ import { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
8
+ import { SnippetsAction } from './abstractSnippetsActions.js';
9
+ import { ISnippetsService } from '../snippets.js';
10
+ import { IEditorService } from '../../../../services/editor/common/editorService.js';
11
+ class ApplyFileSnippetAction extends SnippetsAction {
12
+ static { this.Id = 'workbench.action.populateFileFromSnippet'; }
13
+ constructor() {
14
+ super({
15
+ id: ApplyFileSnippetAction.Id,
16
+ title: {
17
+ value: ( localizeWithPath(
18
+ 'vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets',
19
+ 'label',
20
+ 'Fill File with Snippet'
21
+ )),
22
+ original: 'Fill File with Snippet'
23
+ },
24
+ f1: true,
25
+ });
26
+ }
27
+ async run(accessor) {
28
+ const snippetService = accessor.get(ISnippetsService);
29
+ const quickInputService = accessor.get(IQuickInputService);
30
+ const editorService = accessor.get(IEditorService);
31
+ const langService = accessor.get(ILanguageService);
32
+ const editor = getCodeEditor(editorService.activeTextEditorControl);
33
+ if (!editor || !editor.hasModel()) {
34
+ return;
35
+ }
36
+ const snippets = await snippetService.getSnippets(undefined, { fileTemplateSnippets: true, noRecencySort: true, includeNoPrefixSnippets: true });
37
+ if (snippets.length === 0) {
38
+ return;
39
+ }
40
+ const selection = await this._pick(quickInputService, langService, snippets);
41
+ if (!selection) {
42
+ return;
43
+ }
44
+ if (editor.hasModel()) {
45
+ SnippetController2.get(editor)?.apply([{
46
+ range: editor.getModel().getFullModelRange(),
47
+ template: selection.snippet.body
48
+ }]);
49
+ editor.getModel().setLanguage(langService.createById(selection.langId), ApplyFileSnippetAction.Id);
50
+ editor.focus();
51
+ }
52
+ }
53
+ async _pick(quickInputService, langService, snippets) {
54
+ const all = [];
55
+ for (const snippet of snippets) {
56
+ if (isFalsyOrEmpty(snippet.scopes)) {
57
+ all.push({ langId: '', snippet });
58
+ }
59
+ else {
60
+ for (const langId of snippet.scopes) {
61
+ all.push({ langId, snippet });
62
+ }
63
+ }
64
+ }
65
+ const picks = [];
66
+ const groups = groupBy(all, (a, b) => compare(a.langId, b.langId));
67
+ for (const group of groups) {
68
+ let first = true;
69
+ for (const item of group) {
70
+ if (first) {
71
+ picks.push({
72
+ type: 'separator',
73
+ label: langService.getLanguageName(item.langId) ?? item.langId
74
+ });
75
+ first = false;
76
+ }
77
+ picks.push({
78
+ snippet: item,
79
+ label: item.snippet.prefix || item.snippet.name,
80
+ detail: item.snippet.description
81
+ });
82
+ }
83
+ }
84
+ const pick = await quickInputService.pick(picks, {
85
+ placeHolder: ( localizeWithPath(
86
+ 'vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets',
87
+ 'placeholder',
88
+ 'Select a snippet'
89
+ )),
90
+ matchOnDetail: true,
91
+ });
92
+ return pick?.snippet;
93
+ }
94
+ }
95
+ export { ApplyFileSnippetAction };
@@ -3,5 +3,8 @@ const ITerminalService = ( createDecorator('terminalService'));
3
3
  const ITerminalEditorService = ( createDecorator('terminalEditorService'));
4
4
  const ITerminalGroupService = ( createDecorator('terminalGroupService'));
5
5
  const ITerminalInstanceService = ( createDecorator('terminalInstanceService'));
6
+ const isDetachedTerminalInstance = (t) => typeof t.instanceId !== 'number';
7
+ class TerminalLinkQuickPickEvent extends MouseEvent {
8
+ }
6
9
  const terminalEditorId = 'terminalEditor';
7
- export { ITerminalEditorService, ITerminalGroupService, ITerminalInstanceService, ITerminalService, terminalEditorId };
10
+ export { ITerminalEditorService, ITerminalGroupService, ITerminalInstanceService, ITerminalService, TerminalLinkQuickPickEvent, isDetachedTerminalInstance, terminalEditorId };
@@ -14,6 +14,7 @@ const SUGGESTIONS_FONT_WEIGHT = ['normal', 'bold', '100', '200', '300', '400', '
14
14
  const ITerminalProfileResolverService = ( createDecorator('terminalProfileResolverService'));
15
15
  const ITerminalProfileService = ( createDecorator('terminalProfileService'));
16
16
  const DEFAULT_LOCAL_ECHO_EXCLUDE = ['vim', 'vi', 'nano', 'tmux'];
17
+ const isTerminalProcessManager = (t) => typeof t.write === 'function';
17
18
  const DEFAULT_COMMANDS_TO_SKIP_SHELL = [
18
19
  "workbench.action.terminal.clearSelection" ,
19
20
  "workbench.action.terminal.clear" ,
@@ -245,4 +246,4 @@ const terminalContributionsDescriptor = {
245
246
  },
246
247
  },
247
248
  };
248
- export { DEFAULT_BOLD_FONT_WEIGHT, DEFAULT_COMMANDS_TO_SKIP_SHELL, DEFAULT_FONT_WEIGHT, DEFAULT_LETTER_SPACING, DEFAULT_LINE_HEIGHT, DEFAULT_LOCAL_ECHO_EXCLUDE, ITerminalProfileResolverService, ITerminalProfileService, MAXIMUM_FONT_WEIGHT, MINIMUM_FONT_WEIGHT, MINIMUM_LETTER_SPACING, SUGGESTIONS_FONT_WEIGHT, TERMINAL_CONFIG_SECTION, TERMINAL_CREATION_COMMANDS, TERMINAL_VIEW_ID, terminalContributionsDescriptor };
249
+ export { DEFAULT_BOLD_FONT_WEIGHT, DEFAULT_COMMANDS_TO_SKIP_SHELL, DEFAULT_FONT_WEIGHT, DEFAULT_LETTER_SPACING, DEFAULT_LINE_HEIGHT, DEFAULT_LOCAL_ECHO_EXCLUDE, ITerminalProfileResolverService, ITerminalProfileService, MAXIMUM_FONT_WEIGHT, MINIMUM_FONT_WEIGHT, MINIMUM_LETTER_SPACING, SUGGESTIONS_FONT_WEIGHT, TERMINAL_CONFIG_SECTION, TERMINAL_CREATION_COMMANDS, TERMINAL_VIEW_ID, isTerminalProcessManager, terminalContributionsDescriptor };
@@ -0,0 +1,159 @@
1
+ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
3
+ import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
4
+ import { IExtensionManagementService, IExtensionGalleryService } from '../../../../platform/extensionManagement/common/extensionManagement.js';
5
+ import { IProductService } from 'monaco-editor/esm/vs/platform/product/common/productService.js';
6
+ import { CancellationToken } from 'monaco-editor/esm/vs/base/common/cancellation.js';
7
+ import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
8
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
9
+ import { ExtensionIdentifier } from 'monaco-editor/esm/vs/platform/extensions/common/extensions.js';
10
+ import { IExtensionService } from '../../../services/extensions/common/extensions.js';
11
+ var FeaturedExtensionsService_1;
12
+ const IFeaturedExtensionsService = ( createDecorator('featuredExtensionsService'));
13
+ let FeaturedExtensionsService = class FeaturedExtensionsService extends Disposable {
14
+ static { FeaturedExtensionsService_1 = this; }
15
+ static { this.STORAGE_KEY = 'workbench.welcomePage.extensionMetadata'; }
16
+ constructor(extensionManagementService, extensionService, storageService, productService, galleryService) {
17
+ super();
18
+ this.extensionManagementService = extensionManagementService;
19
+ this.extensionService = extensionService;
20
+ this.storageService = storageService;
21
+ this.productService = productService;
22
+ this.galleryService = galleryService;
23
+ this.ignoredExtensions = ( new Set());
24
+ this._isInitialized = false;
25
+ this.title = ( localizeWithPath(
26
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/featuredExtensionService',
27
+ 'gettingStarted.featuredTitle',
28
+ 'Recommended'
29
+ ));
30
+ }
31
+ async getExtensions() {
32
+ await this._init();
33
+ const featuredExtensions = [];
34
+ for (const extension of this.productService.featuredExtensions?.filter(e => !( this.ignoredExtensions.has(e.id))) ?? []) {
35
+ const resolvedExtension = await this.resolveExtension(extension);
36
+ if (resolvedExtension) {
37
+ featuredExtensions.push(resolvedExtension);
38
+ }
39
+ }
40
+ return featuredExtensions;
41
+ }
42
+ async _init() {
43
+ if (this._isInitialized) {
44
+ return;
45
+ }
46
+ const featuredExtensions = this.productService.featuredExtensions;
47
+ if (!featuredExtensions) {
48
+ this._isInitialized = true;
49
+ return;
50
+ }
51
+ await this.extensionService.whenInstalledExtensionsRegistered();
52
+ const installed = await this.extensionManagementService.getInstalled();
53
+ for (const extension of featuredExtensions) {
54
+ if (( installed.some(e => ExtensionIdentifier.equals(e.identifier.id, extension.id)))) {
55
+ this.ignoredExtensions.add(extension.id);
56
+ }
57
+ else {
58
+ let galleryExtension;
59
+ try {
60
+ galleryExtension = (await this.galleryService.getExtensions([{ id: extension.id }], CancellationToken.None))[0];
61
+ }
62
+ catch (err) {
63
+ continue;
64
+ }
65
+ if (!(await this.extensionManagementService.canInstall(galleryExtension))) {
66
+ this.ignoredExtensions.add(extension.id);
67
+ }
68
+ }
69
+ }
70
+ this._isInitialized = true;
71
+ }
72
+ async resolveExtension(productMetadata) {
73
+ const title = productMetadata.title ?? (await this.getMetadata(productMetadata.id, 0 ));
74
+ const description = productMetadata.description ?? (await this.getMetadata(productMetadata.id, 1 ));
75
+ const imagePath = productMetadata.imagePath ?? (await this.getMetadata(productMetadata.id, 2 ));
76
+ if (title && description && imagePath) {
77
+ return {
78
+ id: productMetadata.id,
79
+ title: title,
80
+ description: description,
81
+ imagePath: imagePath,
82
+ };
83
+ }
84
+ return undefined;
85
+ }
86
+ async getMetadata(extensionId, key) {
87
+ const storageMetadata = this.getStorageData(extensionId);
88
+ if (storageMetadata) {
89
+ switch (key) {
90
+ case 0 : {
91
+ return storageMetadata.title;
92
+ }
93
+ case 1 : {
94
+ return storageMetadata.description;
95
+ }
96
+ case 2 : {
97
+ return storageMetadata.imagePath;
98
+ }
99
+ default:
100
+ return undefined;
101
+ }
102
+ }
103
+ return await this.getGalleryMetadata(extensionId, key);
104
+ }
105
+ getStorageData(extensionId) {
106
+ const metadata = this.storageService.get(FeaturedExtensionsService_1.STORAGE_KEY + '.' + extensionId, -1 );
107
+ if (metadata) {
108
+ const value = JSON.parse(metadata);
109
+ const lastUpdateDate = ( new Date()).getTime() - value.date;
110
+ if (lastUpdateDate < 1000 * 60 * 60 * 24 * 7) {
111
+ return value;
112
+ }
113
+ }
114
+ return undefined;
115
+ }
116
+ async getGalleryMetadata(extensionId, key) {
117
+ const storageKey = FeaturedExtensionsService_1.STORAGE_KEY + '.' + extensionId;
118
+ this.storageService.remove(storageKey, -1 );
119
+ let metadata;
120
+ let galleryExtension;
121
+ try {
122
+ galleryExtension = (await this.galleryService.getExtensions([{ id: extensionId }], CancellationToken.None))[0];
123
+ }
124
+ catch (err) {
125
+ }
126
+ if (!galleryExtension) {
127
+ return metadata;
128
+ }
129
+ switch (key) {
130
+ case 0 : {
131
+ metadata = galleryExtension.displayName;
132
+ break;
133
+ }
134
+ case 1 : {
135
+ metadata = galleryExtension.description;
136
+ break;
137
+ }
138
+ case 2 : {
139
+ metadata = galleryExtension.assets.icon?.uri;
140
+ break;
141
+ }
142
+ }
143
+ this.storageService.store(storageKey, JSON.stringify({
144
+ title: galleryExtension.displayName,
145
+ description: galleryExtension.description,
146
+ imagePath: galleryExtension.assets.icon?.uri,
147
+ date: ( new Date()).getTime()
148
+ }), -1 , 1 );
149
+ return metadata;
150
+ }
151
+ };
152
+ FeaturedExtensionsService = FeaturedExtensionsService_1 = ( __decorate([
153
+ ( __param(0, IExtensionManagementService)),
154
+ ( __param(1, IExtensionService)),
155
+ ( __param(2, IStorageService)),
156
+ ( __param(3, IProductService)),
157
+ ( __param(4, IExtensionGalleryService))
158
+ ], FeaturedExtensionsService));
159
+ export { FeaturedExtensionsService, IFeaturedExtensionsService };
@@ -0,0 +1,375 @@
1
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
2
+ import { ExtensionsRegistry } from '../../../services/extensions/common/extensionsRegistry.js';
3
+ const titleTranslated = ( localizeWithPath(
4
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
5
+ 'title',
6
+ "Title"
7
+ ));
8
+ const walkthroughsExtensionPoint = ( ExtensionsRegistry.registerExtensionPoint({
9
+ extensionPoint: 'walkthroughs',
10
+ jsonSchema: {
11
+ description: ( localizeWithPath(
12
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
13
+ 'walkthroughs',
14
+ "Contribute walkthroughs to help users getting started with your extension."
15
+ )),
16
+ type: 'array',
17
+ items: {
18
+ type: 'object',
19
+ required: ['id', 'title', 'description', 'steps'],
20
+ defaultSnippets: [{ body: { 'id': '$1', 'title': '$2', 'description': '$3', 'steps': [] } }],
21
+ properties: {
22
+ id: {
23
+ type: 'string',
24
+ description: ( localizeWithPath(
25
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
26
+ 'walkthroughs.id',
27
+ "Unique identifier for this walkthrough."
28
+ )),
29
+ },
30
+ title: {
31
+ type: 'string',
32
+ description: ( localizeWithPath(
33
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
34
+ 'walkthroughs.title',
35
+ "Title of walkthrough."
36
+ ))
37
+ },
38
+ icon: {
39
+ type: 'string',
40
+ description: ( localizeWithPath(
41
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
42
+ 'walkthroughs.icon',
43
+ "Relative path to the icon of the walkthrough. The path is relative to the extension location. If not specified, the icon defaults to the extension icon if available."
44
+ )),
45
+ },
46
+ description: {
47
+ type: 'string',
48
+ description: ( localizeWithPath(
49
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
50
+ 'walkthroughs.description',
51
+ "Description of walkthrough."
52
+ ))
53
+ },
54
+ featuredFor: {
55
+ type: 'array',
56
+ description: ( localizeWithPath(
57
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
58
+ 'walkthroughs.featuredFor',
59
+ "Walkthroughs that match one of these glob patterns appear as 'featured' in workspaces with the specified files. For example, a walkthrough for TypeScript projects might specify `tsconfig.json` here."
60
+ )),
61
+ items: {
62
+ type: 'string'
63
+ },
64
+ },
65
+ when: {
66
+ type: 'string',
67
+ description: ( localizeWithPath(
68
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
69
+ 'walkthroughs.when',
70
+ "Context key expression to control the visibility of this walkthrough."
71
+ ))
72
+ },
73
+ steps: {
74
+ type: 'array',
75
+ description: ( localizeWithPath(
76
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
77
+ 'walkthroughs.steps',
78
+ "Steps to complete as part of this walkthrough."
79
+ )),
80
+ items: {
81
+ type: 'object',
82
+ required: ['id', 'title', 'media'],
83
+ defaultSnippets: [{
84
+ body: {
85
+ 'id': '$1', 'title': '$2', 'description': '$3',
86
+ 'completionEvents': ['$5'],
87
+ 'media': {},
88
+ }
89
+ }],
90
+ properties: {
91
+ id: {
92
+ type: 'string',
93
+ description: ( localizeWithPath(
94
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
95
+ 'walkthroughs.steps.id',
96
+ "Unique identifier for this step. This is used to keep track of which steps have been completed."
97
+ )),
98
+ },
99
+ title: {
100
+ type: 'string',
101
+ description: ( localizeWithPath(
102
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
103
+ 'walkthroughs.steps.title',
104
+ "Title of step."
105
+ ))
106
+ },
107
+ description: {
108
+ type: 'string',
109
+ description: ( localizeWithPath(
110
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
111
+ 'walkthroughs.steps.description.interpolated',
112
+ "Description of step. Supports ``preformatted``, __italic__, and **bold** text. Use markdown-style links for commands or external links: {0}, {1}, or {2}. Links on their own line will be rendered as buttons.",
113
+ `[${titleTranslated}](command:myext.command)`,
114
+ `[${titleTranslated}](command:toSide:myext.command)`,
115
+ `[${titleTranslated}](https://aka.ms)`
116
+ ))
117
+ },
118
+ button: {
119
+ deprecationMessage: ( localizeWithPath(
120
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
121
+ 'walkthroughs.steps.button.deprecated.interpolated',
122
+ "Deprecated. Use markdown links in the description instead, i.e. {0}, {1}, or {2}",
123
+ `[${titleTranslated}](command:myext.command)`,
124
+ `[${titleTranslated}](command:toSide:myext.command)`,
125
+ `[${titleTranslated}](https://aka.ms)`
126
+ )),
127
+ },
128
+ media: {
129
+ type: 'object',
130
+ description: ( localizeWithPath(
131
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
132
+ 'walkthroughs.steps.media',
133
+ "Media to show alongside this step, either an image or markdown content."
134
+ )),
135
+ oneOf: [
136
+ {
137
+ required: ['image', 'altText'],
138
+ additionalProperties: false,
139
+ properties: {
140
+ path: {
141
+ deprecationMessage: ( localizeWithPath(
142
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
143
+ 'pathDeprecated',
144
+ "Deprecated. Please use `image` or `markdown` instead"
145
+ ))
146
+ },
147
+ image: {
148
+ description: ( localizeWithPath(
149
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
150
+ 'walkthroughs.steps.media.image.path.string',
151
+ "Path to an image - or object consisting of paths to light, dark, and hc images - relative to extension directory. Depending on context, the image will be displayed from 400px to 800px wide, with similar bounds on height. To support HIDPI displays, the image will be rendered at 1.5x scaling, for example a 900 physical pixels wide image will be displayed as 600 logical pixels wide."
152
+ )),
153
+ oneOf: [
154
+ {
155
+ type: 'string',
156
+ },
157
+ {
158
+ type: 'object',
159
+ required: ['dark', 'light', 'hc', 'hcLight'],
160
+ properties: {
161
+ dark: {
162
+ description: ( localizeWithPath(
163
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
164
+ 'walkthroughs.steps.media.image.path.dark.string',
165
+ "Path to the image for dark themes, relative to extension directory."
166
+ )),
167
+ type: 'string',
168
+ },
169
+ light: {
170
+ description: ( localizeWithPath(
171
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
172
+ 'walkthroughs.steps.media.image.path.light.string',
173
+ "Path to the image for light themes, relative to extension directory."
174
+ )),
175
+ type: 'string',
176
+ },
177
+ hc: {
178
+ description: ( localizeWithPath(
179
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
180
+ 'walkthroughs.steps.media.image.path.hc.string',
181
+ "Path to the image for hc themes, relative to extension directory."
182
+ )),
183
+ type: 'string',
184
+ },
185
+ hcLight: {
186
+ description: ( localizeWithPath(
187
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
188
+ 'walkthroughs.steps.media.image.path.hcLight.string',
189
+ "Path to the image for hc light themes, relative to extension directory."
190
+ )),
191
+ type: 'string',
192
+ }
193
+ }
194
+ }
195
+ ]
196
+ },
197
+ altText: {
198
+ type: 'string',
199
+ description: ( localizeWithPath(
200
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
201
+ 'walkthroughs.steps.media.altText',
202
+ "Alternate text to display when the image cannot be loaded or in screen readers."
203
+ ))
204
+ }
205
+ }
206
+ },
207
+ {
208
+ required: ['svg', 'altText'],
209
+ additionalProperties: false,
210
+ properties: {
211
+ svg: {
212
+ description: ( localizeWithPath(
213
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
214
+ 'walkthroughs.steps.media.image.path.svg',
215
+ "Path to an svg, color tokens are supported in variables to support theming to match the workbench."
216
+ )),
217
+ type: 'string',
218
+ },
219
+ altText: {
220
+ type: 'string',
221
+ description: ( localizeWithPath(
222
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
223
+ 'walkthroughs.steps.media.altText',
224
+ "Alternate text to display when the image cannot be loaded or in screen readers."
225
+ ))
226
+ },
227
+ }
228
+ },
229
+ {
230
+ required: ['markdown'],
231
+ additionalProperties: false,
232
+ properties: {
233
+ path: {
234
+ deprecationMessage: ( localizeWithPath(
235
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
236
+ 'pathDeprecated',
237
+ "Deprecated. Please use `image` or `markdown` instead"
238
+ ))
239
+ },
240
+ markdown: {
241
+ description: ( localizeWithPath(
242
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
243
+ 'walkthroughs.steps.media.markdown.path',
244
+ "Path to the markdown document, relative to extension directory."
245
+ )),
246
+ type: 'string',
247
+ }
248
+ }
249
+ }
250
+ ]
251
+ },
252
+ completionEvents: {
253
+ description: ( localizeWithPath(
254
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
255
+ 'walkthroughs.steps.completionEvents',
256
+ "Events that should trigger this step to become checked off. If empty or not defined, the step will check off when any of the step's buttons or links are clicked; if the step has no buttons or links it will check on when it is selected."
257
+ )),
258
+ type: 'array',
259
+ items: {
260
+ type: 'string',
261
+ defaultSnippets: [
262
+ {
263
+ label: 'onCommand',
264
+ description: ( localizeWithPath(
265
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
266
+ 'walkthroughs.steps.completionEvents.onCommand',
267
+ 'Check off step when a given command is executed anywhere in VS Code.'
268
+ )),
269
+ body: 'onCommand:${1:commandId}'
270
+ },
271
+ {
272
+ label: 'onLink',
273
+ description: ( localizeWithPath(
274
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
275
+ 'walkthroughs.steps.completionEvents.onLink',
276
+ 'Check off step when a given link is opened via a walkthrough step.'
277
+ )),
278
+ body: 'onLink:${2:linkId}'
279
+ },
280
+ {
281
+ label: 'onView',
282
+ description: ( localizeWithPath(
283
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
284
+ 'walkthroughs.steps.completionEvents.onView',
285
+ 'Check off step when a given view is opened'
286
+ )),
287
+ body: 'onView:${2:viewId}'
288
+ },
289
+ {
290
+ label: 'onSettingChanged',
291
+ description: ( localizeWithPath(
292
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
293
+ 'walkthroughs.steps.completionEvents.onSettingChanged',
294
+ 'Check off step when a given setting is changed'
295
+ )),
296
+ body: 'onSettingChanged:${2:settingName}'
297
+ },
298
+ {
299
+ label: 'onContext',
300
+ description: ( localizeWithPath(
301
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
302
+ 'walkthroughs.steps.completionEvents.onContext',
303
+ 'Check off step when a context key expression is true.'
304
+ )),
305
+ body: 'onContext:${2:key}'
306
+ },
307
+ {
308
+ label: 'onExtensionInstalled',
309
+ description: ( localizeWithPath(
310
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
311
+ 'walkthroughs.steps.completionEvents.extensionInstalled',
312
+ 'Check off step when an extension with the given id is installed. If the extension is already installed, the step will start off checked.'
313
+ )),
314
+ body: 'onExtensionInstalled:${3:extensionId}'
315
+ },
316
+ {
317
+ label: 'onStepSelected',
318
+ description: ( localizeWithPath(
319
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
320
+ 'walkthroughs.steps.completionEvents.stepSelected',
321
+ 'Check off step as soon as it is selected.'
322
+ )),
323
+ body: 'onStepSelected'
324
+ },
325
+ ]
326
+ }
327
+ },
328
+ doneOn: {
329
+ description: ( localizeWithPath(
330
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
331
+ 'walkthroughs.steps.doneOn',
332
+ "Signal to mark step as complete."
333
+ )),
334
+ deprecationMessage: ( localizeWithPath(
335
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
336
+ 'walkthroughs.steps.doneOn.deprecation',
337
+ "doneOn is deprecated. By default steps will be checked off when their buttons are clicked, to configure further use completionEvents"
338
+ )),
339
+ type: 'object',
340
+ required: ['command'],
341
+ defaultSnippets: [{ 'body': { command: '$1' } }],
342
+ properties: {
343
+ 'command': {
344
+ description: ( localizeWithPath(
345
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
346
+ 'walkthroughs.steps.oneOn.command',
347
+ "Mark step done when the specified command is executed."
348
+ )),
349
+ type: 'string'
350
+ }
351
+ },
352
+ },
353
+ when: {
354
+ type: 'string',
355
+ description: ( localizeWithPath(
356
+ 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint',
357
+ 'walkthroughs.steps.when',
358
+ "Context key expression to control the visibility of this step."
359
+ ))
360
+ }
361
+ }
362
+ }
363
+ }
364
+ }
365
+ }
366
+ },
367
+ activationEventsGenerator: (walkthroughContributions, result) => {
368
+ for (const walkthroughContribution of walkthroughContributions) {
369
+ if (walkthroughContribution.id) {
370
+ result.push(`onWalkthrough:${walkthroughContribution.id}`);
371
+ }
372
+ }
373
+ }
374
+ }));
375
+ export { walkthroughsExtensionPoint };