@codingame/monaco-vscode-api 1.85.0-next.2 → 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 +2540 -2533
  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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-api",
3
- "version": "1.85.0-next.2",
3
+ "version": "1.85.1",
4
4
  "description": "VSCode public API plugged on the monaco editor",
5
5
  "keywords": [],
6
6
  "author": {
@@ -100,10 +100,10 @@
100
100
  "dependencies": {
101
101
  "monaco-editor": "0.45.0",
102
102
  "vscode-semver": "npm:semver@=5.5.0",
103
- "@codingame/monaco-vscode-layout-service-override": "1.85.0-next.2",
104
- "@codingame/monaco-vscode-environment-service-override": "1.85.0-next.2",
105
- "@codingame/monaco-vscode-extensions-service-override": "1.85.0-next.2",
106
- "@codingame/monaco-vscode-files-service-override": "1.85.0-next.2",
107
- "@codingame/monaco-vscode-quickaccess-service-override": "1.85.0-next.2"
103
+ "@codingame/monaco-vscode-extensions-service-override": "1.85.1",
104
+ "@codingame/monaco-vscode-files-service-override": "1.85.1",
105
+ "@codingame/monaco-vscode-layout-service-override": "1.85.1",
106
+ "@codingame/monaco-vscode-environment-service-override": "1.85.1",
107
+ "@codingame/monaco-vscode-quickaccess-service-override": "1.85.1"
108
108
  }
109
109
  }
@@ -140,6 +140,13 @@ function format(documentText, range, options) {
140
140
  }
141
141
  return editOperations;
142
142
  }
143
+ function toFormattedString(obj, options) {
144
+ const content = JSON.stringify(obj, undefined, options.insertSpaces ? options.tabSize || 4 : '\t');
145
+ if (options.eol !== undefined) {
146
+ return content.replace(/\r\n|\r|\n/g, options.eol);
147
+ }
148
+ return content;
149
+ }
143
150
  function repeat(s, count) {
144
151
  let result = '';
145
152
  for (let i = 0; i < count; i++) {
@@ -184,4 +191,4 @@ function getEOL(options, text) {
184
191
  function isEOL(text, offset) {
185
192
  return '\r\n'.indexOf(text.charAt(offset)) !== -1;
186
193
  }
187
- export { format, getEOL, isEOL };
194
+ export { format, getEOL, isEOL, toFormattedString };
@@ -0,0 +1,128 @@
1
+ import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
2
+ import { ButtonBar } from 'monaco-editor/esm/vs/base/browser/ui/button/button.js';
3
+ import { ActionRunner, SubmenuAction } from 'monaco-editor/esm/vs/base/common/actions.js';
4
+ import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
5
+ import { DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
6
+ import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
7
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
8
+ import { MenuItemAction, IMenuService } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
9
+ import { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
10
+ import { IContextMenuService } from 'monaco-editor/esm/vs/platform/contextview/browser/contextView.js';
11
+ import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
12
+ import { ITelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
13
+ let WorkbenchButtonBar = class WorkbenchButtonBar extends ButtonBar {
14
+ constructor(container, _options, _contextMenuService, _keybindingService, telemetryService) {
15
+ super(container);
16
+ this._options = _options;
17
+ this._contextMenuService = _contextMenuService;
18
+ this._keybindingService = _keybindingService;
19
+ this._store = ( new DisposableStore());
20
+ this._onDidChange = ( new Emitter());
21
+ this.onDidChange = this._onDidChange.event;
22
+ this._actionRunner = this._store.add(( new ActionRunner()));
23
+ if (_options?.telemetrySource) {
24
+ this._actionRunner.onDidRun(e => {
25
+ telemetryService.publicLog2('workbenchActionExecuted', { id: e.action.id, from: _options.telemetrySource });
26
+ }, undefined, this._store);
27
+ }
28
+ }
29
+ dispose() {
30
+ this._onDidChange.dispose();
31
+ this._store.dispose();
32
+ super.dispose();
33
+ }
34
+ update(actions) {
35
+ const conifgProvider = this._options?.buttonConfigProvider ?? (() => ({ showLabel: true }));
36
+ this.clear();
37
+ for (let i = 0; i < actions.length; i++) {
38
+ const secondary = i > 0;
39
+ const actionOrSubmenu = actions[i];
40
+ let action;
41
+ let btn;
42
+ if (actionOrSubmenu instanceof SubmenuAction && actionOrSubmenu.actions.length > 0) {
43
+ const [first, ...rest] = actionOrSubmenu.actions;
44
+ action = first;
45
+ btn = this.addButtonWithDropdown({
46
+ secondary: conifgProvider(action)?.isSecondary ?? secondary,
47
+ actionRunner: this._actionRunner,
48
+ actions: rest,
49
+ contextMenuProvider: this._contextMenuService,
50
+ });
51
+ }
52
+ else {
53
+ action = actionOrSubmenu;
54
+ btn = this.addButton({
55
+ secondary: conifgProvider(action)?.isSecondary ?? secondary,
56
+ });
57
+ }
58
+ btn.enabled = action.enabled;
59
+ btn.element.classList.add('default-colors');
60
+ if (conifgProvider(action)?.showLabel ?? true) {
61
+ btn.label = action.label;
62
+ }
63
+ else {
64
+ btn.element.classList.add('monaco-text-button');
65
+ }
66
+ if (conifgProvider(action)?.showIcon) {
67
+ if (action instanceof MenuItemAction && ThemeIcon.isThemeIcon(action.item.icon)) {
68
+ btn.icon = action.item.icon;
69
+ }
70
+ else if (action.class) {
71
+ btn.element.classList.add(...action.class.split(' '));
72
+ }
73
+ }
74
+ const kb = this._keybindingService.lookupKeybinding(action.id);
75
+ if (kb) {
76
+ btn.element.title = ( localizeWithPath(
77
+ 'vs/platform/actions/browser/buttonbar',
78
+ 'labelWithKeybinding',
79
+ "{0} ({1})",
80
+ action.label,
81
+ kb.getLabel()
82
+ ));
83
+ }
84
+ else {
85
+ btn.element.title = action.label;
86
+ }
87
+ btn.onDidClick(async () => {
88
+ this._actionRunner.run(action);
89
+ });
90
+ }
91
+ this._onDidChange.fire(this);
92
+ }
93
+ };
94
+ WorkbenchButtonBar = ( __decorate([
95
+ ( __param(2, IContextMenuService)),
96
+ ( __param(3, IKeybindingService)),
97
+ ( __param(4, ITelemetryService))
98
+ ], WorkbenchButtonBar));
99
+ let MenuWorkbenchButtonBar = class MenuWorkbenchButtonBar extends WorkbenchButtonBar {
100
+ constructor(container, menuId, options, menuService, contextKeyService, contextMenuService, keybindingService, telemetryService) {
101
+ super(container, options, contextMenuService, keybindingService, telemetryService);
102
+ const menu = menuService.createMenu(menuId, contextKeyService);
103
+ this._store.add(menu);
104
+ const update = () => {
105
+ this.clear();
106
+ const actions = menu
107
+ .getActions({ renderShortTitle: true })
108
+ .flatMap(entry => entry[1]);
109
+ super.update(actions);
110
+ };
111
+ this._store.add(menu.onDidChange(update));
112
+ update();
113
+ }
114
+ dispose() {
115
+ super.dispose();
116
+ }
117
+ update(_actions) {
118
+ throw new Error('Use Menu or WorkbenchButtonBar');
119
+ }
120
+ };
121
+ MenuWorkbenchButtonBar = ( __decorate([
122
+ ( __param(3, IMenuService)),
123
+ ( __param(4, IContextKeyService)),
124
+ ( __param(5, IContextMenuService)),
125
+ ( __param(6, IKeybindingService)),
126
+ ( __param(7, ITelemetryService))
127
+ ], MenuWorkbenchButtonBar));
128
+ export { MenuWorkbenchButtonBar, WorkbenchButtonBar };
@@ -3,6 +3,7 @@ import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/com
3
3
  const EXTENSION_IDENTIFIER_PATTERN = '^([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$';
4
4
  const EXTENSION_IDENTIFIER_REGEX = ( new RegExp(EXTENSION_IDENTIFIER_PATTERN));
5
5
  const WEB_EXTENSION_TAG = '__web_extension';
6
+ const EXTENSION_INSTALL_SKIP_WALKTHROUGH_CONTEXT = 'skipWalkthrough';
6
7
  const EXTENSION_INSTALL_SYNC_CONTEXT = 'extensionsSync';
7
8
  const EXTENSION_INSTALL_DEP_PACK_CONTEXT = 'dependecyOrPackExtensionInstall';
8
9
  function TargetPlatformToString(targetPlatform) {
@@ -141,4 +142,4 @@ const PreferencesLocalizedLabel = { value: ( localizeWithPath(
141
142
  'preferences',
142
143
  "Preferences"
143
144
  )), original: 'Preferences' };
144
- export { DISABLED_EXTENSIONS_STORAGE_PATH, ENABLED_EXTENSIONS_STORAGE_PATH, EXTENSION_IDENTIFIER_PATTERN, EXTENSION_IDENTIFIER_REGEX, EXTENSION_INSTALL_DEP_PACK_CONTEXT, EXTENSION_INSTALL_SYNC_CONTEXT, ExtensionManagementError, ExtensionManagementErrorCode, ExtensionsLabel, ExtensionsLocalizedLabel, IExtensionGalleryService, IExtensionManagementService, IExtensionTipsService, IGlobalExtensionEnablementService, PreferencesLocalizedLabel, TargetPlatformToString, WEB_EXTENSION_TAG, getTargetPlatform, isNotWebExtensionInWebTargetPlatform, isTargetPlatformCompatible, toTargetPlatform };
145
+ export { DISABLED_EXTENSIONS_STORAGE_PATH, ENABLED_EXTENSIONS_STORAGE_PATH, EXTENSION_IDENTIFIER_PATTERN, EXTENSION_IDENTIFIER_REGEX, EXTENSION_INSTALL_DEP_PACK_CONTEXT, EXTENSION_INSTALL_SKIP_WALKTHROUGH_CONTEXT, EXTENSION_INSTALL_SYNC_CONTEXT, ExtensionManagementError, ExtensionManagementErrorCode, ExtensionsLabel, ExtensionsLocalizedLabel, IExtensionGalleryService, IExtensionManagementService, IExtensionTipsService, IGlobalExtensionEnablementService, PreferencesLocalizedLabel, TargetPlatformToString, WEB_EXTENSION_TAG, getTargetPlatform, isNotWebExtensionInWebTargetPlatform, isTargetPlatformCompatible, toTargetPlatform };
@@ -0,0 +1,58 @@
1
+ import { createStyleSheet, clearNode, createCSSRule } from 'monaco-editor/esm/vs/base/browser/dom.js';
2
+ import { RunOnceScheduler } from 'monaco-editor/esm/vs/base/common/async.js';
3
+ var ZIndex;
4
+ ( (function(ZIndex) {
5
+ ZIndex[ZIndex["Base"] = 0] = "Base";
6
+ ZIndex[ZIndex["Sash"] = 35] = "Sash";
7
+ ZIndex[ZIndex["SuggestWidget"] = 40] = "SuggestWidget";
8
+ ZIndex[ZIndex["Hover"] = 50] = "Hover";
9
+ ZIndex[ZIndex["DragImage"] = 1000] = "DragImage";
10
+ ZIndex[ZIndex["MenubarMenuItemsHolder"] = 2000] = "MenubarMenuItemsHolder";
11
+ ZIndex[ZIndex["ContextView"] = 2500] = "ContextView";
12
+ ZIndex[ZIndex["ModalDialog"] = 2600] = "ModalDialog";
13
+ ZIndex[ZIndex["PaneDropOverlay"] = 10000] = "PaneDropOverlay";
14
+ })(ZIndex || (ZIndex = {})));
15
+ const ZIndexValues = ( ( Object.keys(ZIndex)).filter(key => !isNaN(Number(key))).map(key => Number(key))).sort((a, b) => b - a);
16
+ function findBase(z) {
17
+ for (const zi of ZIndexValues) {
18
+ if (z >= zi) {
19
+ return zi;
20
+ }
21
+ }
22
+ return -1;
23
+ }
24
+ class ZIndexRegistry {
25
+ constructor() {
26
+ this.styleSheet = createStyleSheet();
27
+ this.zIndexMap = ( new Map());
28
+ this.scheduler = ( new RunOnceScheduler(() => this.updateStyleElement(), 200));
29
+ }
30
+ registerZIndex(relativeLayer, z, name) {
31
+ if (this.zIndexMap.get(name)) {
32
+ throw new Error(`z-index with name ${name} has already been registered.`);
33
+ }
34
+ const proposedZValue = relativeLayer + z;
35
+ if (findBase(proposedZValue) !== relativeLayer) {
36
+ throw new Error(`Relative layer: ${relativeLayer} + z-index: ${z} exceeds next layer ${proposedZValue}.`);
37
+ }
38
+ this.zIndexMap.set(name, proposedZValue);
39
+ this.scheduler.schedule();
40
+ return this.getVarName(name);
41
+ }
42
+ getVarName(name) {
43
+ return `--z-index-${name}`;
44
+ }
45
+ updateStyleElement() {
46
+ clearNode(this.styleSheet);
47
+ let ruleBuilder = '';
48
+ this.zIndexMap.forEach((zIndex, name) => {
49
+ ruleBuilder += `${this.getVarName(name)}: ${zIndex};\n`;
50
+ });
51
+ createCSSRule(':root', ruleBuilder, this.styleSheet);
52
+ }
53
+ }
54
+ const zIndexRegistry = ( new ZIndexRegistry());
55
+ function registerZIndex(relativeLayer, z, name) {
56
+ return zIndexRegistry.registerZIndex(relativeLayer, z, name);
57
+ }
58
+ export { ZIndex, registerZIndex };
@@ -645,7 +645,62 @@ let WindowsPtyHeuristics = class WindowsPtyHeuristics extends Disposable {
645
645
  WindowsPtyHeuristics = ( __decorate([
646
646
  ( __param(3, ILogService))
647
647
  ], WindowsPtyHeuristics));
648
+ function getLinesForCommand(buffer, command, cols, outputMatcher) {
649
+ if (!outputMatcher) {
650
+ return undefined;
651
+ }
652
+ const executedMarker = command.executedMarker;
653
+ const endMarker = command.endMarker;
654
+ if (!executedMarker || !endMarker) {
655
+ return undefined;
656
+ }
657
+ const startLine = executedMarker.line;
658
+ const endLine = endMarker.line;
659
+ const linesToCheck = outputMatcher.length;
660
+ const lines = [];
661
+ if (outputMatcher.anchor === 'bottom') {
662
+ for (let i = endLine - (outputMatcher.offset || 0); i >= startLine; i--) {
663
+ let wrappedLineStart = i;
664
+ const wrappedLineEnd = i;
665
+ while (wrappedLineStart >= startLine && buffer.getLine(wrappedLineStart)?.isWrapped) {
666
+ wrappedLineStart--;
667
+ }
668
+ i = wrappedLineStart;
669
+ lines.unshift(getXtermLineContent(buffer, wrappedLineStart, wrappedLineEnd, cols));
670
+ if (lines.length > linesToCheck) {
671
+ lines.pop();
672
+ }
673
+ }
674
+ }
675
+ else {
676
+ for (let i = startLine + (outputMatcher.offset || 0); i < endLine; i++) {
677
+ const wrappedLineStart = i;
678
+ let wrappedLineEnd = i;
679
+ while (wrappedLineEnd + 1 < endLine && buffer.getLine(wrappedLineEnd + 1)?.isWrapped) {
680
+ wrappedLineEnd++;
681
+ }
682
+ i = wrappedLineEnd;
683
+ lines.push(getXtermLineContent(buffer, wrappedLineStart, wrappedLineEnd, cols));
684
+ if (lines.length === linesToCheck) {
685
+ lines.shift();
686
+ }
687
+ }
688
+ }
689
+ return lines;
690
+ }
691
+ function getXtermLineContent(buffer, lineStart, lineEnd, cols) {
692
+ const maxLineLength = Math.max(2048 / cols * 2);
693
+ lineEnd = Math.min(lineEnd, lineStart + maxLineLength);
694
+ let content = '';
695
+ for (let i = lineStart; i <= lineEnd; i++) {
696
+ const line = buffer.getLine(i);
697
+ if (line) {
698
+ content += line.translateToString(true, 0, cols);
699
+ }
700
+ }
701
+ return content;
702
+ }
648
703
  function cloneMarker(xterm, marker, offset = 0) {
649
704
  return xterm.registerMarker(marker.line - (xterm.buffer.active.baseY + xterm.buffer.active.cursorY) + offset);
650
705
  }
651
- export { CommandDetectionCapability };
706
+ export { CommandDetectionCapability, getLinesForCommand };
@@ -1,5 +1,5 @@
1
1
  import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
2
- import { registerAction2, Action2, MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
2
+ import { registerAction2, Action2, MenuId, MenuRegistry } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
3
3
  import { Categories } from 'monaco-editor/esm/vs/platform/action/common/actionCommonCategories.js';
4
4
  import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
5
5
  import { IWorkbenchLayoutService, positionToString } from '../../services/layout/browser/layoutService.js';
@@ -9,7 +9,7 @@ import { isWindows, isLinux, isWeb, isMacintosh, isNative } from 'monaco-editor/
9
9
  import { IsMacNativeContext } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkeys.js';
10
10
  import { KeybindingsRegistry } from 'monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js';
11
11
  import { ContextKeyExpr, IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
12
- import { IViewDescriptorService, IViewsService } from '../../common/views.js';
12
+ import { ViewContainerLocationToString, IViewDescriptorService, IViewsService } from '../../common/views.js';
13
13
  import { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
14
14
  import '../../../../../../override/vs/platform/dialogs/common/dialogs.js';
15
15
  import { IPaneCompositePartService } from '../../services/panecomposite/browser/panecomposite.js';
@@ -43,7 +43,7 @@ const panelLeftIcon = registerIcon('panel-left', Codicon.layoutSidebarLeft, ( lo
43
43
  'panelLeft',
44
44
  "Represents a side bar in the left position"
45
45
  )));
46
- registerIcon('panel-left-off', Codicon.layoutSidebarLeftOff, ( localizeWithPath(
46
+ const panelLeftOffIcon = registerIcon('panel-left-off', Codicon.layoutSidebarLeftOff, ( localizeWithPath(
47
47
  'vs/workbench/browser/actions/layoutActions',
48
48
  'panelLeftOff',
49
49
  "Represents a side bar in the left position toggled off"
@@ -53,7 +53,7 @@ const panelRightIcon = registerIcon('panel-right', Codicon.layoutSidebarRight, (
53
53
  'panelRight',
54
54
  "Represents side bar in the right position"
55
55
  )));
56
- registerIcon('panel-right-off', Codicon.layoutSidebarRightOff, ( localizeWithPath(
56
+ const panelRightOffIcon = registerIcon('panel-right-off', Codicon.layoutSidebarRightOff, ( localizeWithPath(
57
57
  'vs/workbench/browser/actions/layoutActions',
58
58
  'panelRightOff',
59
59
  "Represents side bar in the right position toggled off"
@@ -245,6 +245,115 @@ const configureLayoutIcon = registerIcon('configure-layout-icon', Codicon.layout
245
245
  'cofigureLayoutIcon',
246
246
  'Icon represents workbench layout configuration.'
247
247
  )));
248
+ MenuRegistry.appendMenuItems([{
249
+ id: MenuId.ViewContainerTitleContext,
250
+ item: {
251
+ group: '3_workbench_layout_move',
252
+ command: {
253
+ id: ToggleSidebarPositionAction.ID,
254
+ title: ( localizeWithPath(
255
+ 'vs/workbench/browser/actions/layoutActions',
256
+ 'move side bar right',
257
+ "Move Primary Side Bar Right"
258
+ ))
259
+ },
260
+ when: ( ContextKeyExpr.and(( ContextKeyExpr.notEquals('config.workbench.sideBar.location', 'right')), ( ContextKeyExpr.equals(
261
+ 'viewContainerLocation',
262
+ ViewContainerLocationToString(0 )
263
+ )))),
264
+ order: 1
265
+ }
266
+ }, {
267
+ id: MenuId.ViewTitleContext,
268
+ item: {
269
+ group: '3_workbench_layout_move',
270
+ command: {
271
+ id: ToggleSidebarPositionAction.ID,
272
+ title: ( localizeWithPath(
273
+ 'vs/workbench/browser/actions/layoutActions',
274
+ 'move sidebar right',
275
+ "Move Primary Side Bar Right"
276
+ ))
277
+ },
278
+ when: ( ContextKeyExpr.and(( ContextKeyExpr.notEquals('config.workbench.sideBar.location', 'right')), ( ContextKeyExpr.equals(
279
+ 'viewLocation',
280
+ ViewContainerLocationToString(0 )
281
+ )))),
282
+ order: 1
283
+ }
284
+ }, {
285
+ id: MenuId.ViewContainerTitleContext,
286
+ item: {
287
+ group: '3_workbench_layout_move',
288
+ command: {
289
+ id: ToggleSidebarPositionAction.ID,
290
+ title: ( localizeWithPath(
291
+ 'vs/workbench/browser/actions/layoutActions',
292
+ 'move sidebar left',
293
+ "Move Primary Side Bar Left"
294
+ ))
295
+ },
296
+ when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.workbench.sideBar.location', 'right')), ( ContextKeyExpr.equals(
297
+ 'viewContainerLocation',
298
+ ViewContainerLocationToString(0 )
299
+ )))),
300
+ order: 1
301
+ }
302
+ }, {
303
+ id: MenuId.ViewTitleContext,
304
+ item: {
305
+ group: '3_workbench_layout_move',
306
+ command: {
307
+ id: ToggleSidebarPositionAction.ID,
308
+ title: ( localizeWithPath(
309
+ 'vs/workbench/browser/actions/layoutActions',
310
+ 'move sidebar left',
311
+ "Move Primary Side Bar Left"
312
+ ))
313
+ },
314
+ when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.workbench.sideBar.location', 'right')), ( ContextKeyExpr.equals(
315
+ 'viewLocation',
316
+ ViewContainerLocationToString(0 )
317
+ )))),
318
+ order: 1
319
+ }
320
+ }, {
321
+ id: MenuId.ViewTitleContext,
322
+ item: {
323
+ group: '3_workbench_layout_move',
324
+ command: {
325
+ id: ToggleSidebarPositionAction.ID,
326
+ title: ( localizeWithPath(
327
+ 'vs/workbench/browser/actions/layoutActions',
328
+ 'move second sidebar left',
329
+ "Move Secondary Side Bar Left"
330
+ ))
331
+ },
332
+ when: ( ContextKeyExpr.and(( ContextKeyExpr.notEquals('config.workbench.sideBar.location', 'right')), ( ContextKeyExpr.equals(
333
+ 'viewLocation',
334
+ ViewContainerLocationToString(2 )
335
+ )))),
336
+ order: 1
337
+ }
338
+ }, {
339
+ id: MenuId.ViewTitleContext,
340
+ item: {
341
+ group: '3_workbench_layout_move',
342
+ command: {
343
+ id: ToggleSidebarPositionAction.ID,
344
+ title: ( localizeWithPath(
345
+ 'vs/workbench/browser/actions/layoutActions',
346
+ 'move second sidebar right',
347
+ "Move Secondary Side Bar Right"
348
+ ))
349
+ },
350
+ when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.workbench.sideBar.location', 'right')), ( ContextKeyExpr.equals(
351
+ 'viewLocation',
352
+ ViewContainerLocationToString(2 )
353
+ )))),
354
+ order: 1
355
+ }
356
+ }]);
248
357
  registerAction2(class extends Action2 {
249
358
  constructor() {
250
359
  super({
@@ -321,6 +430,79 @@ class ToggleSidebarVisibilityAction extends Action2 {
321
430
  }
322
431
  }
323
432
  registerAction2(ToggleSidebarVisibilityAction);
433
+ MenuRegistry.appendMenuItems([
434
+ {
435
+ id: MenuId.ViewContainerTitleContext,
436
+ item: {
437
+ group: '3_workbench_layout_move',
438
+ command: {
439
+ id: ToggleSidebarVisibilityAction.ID,
440
+ title: ( localizeWithPath(
441
+ 'vs/workbench/browser/actions/layoutActions',
442
+ 'compositePart.hideSideBarLabel',
443
+ "Hide Primary Side Bar"
444
+ )),
445
+ },
446
+ when: ( ContextKeyExpr.and(SideBarVisibleContext, ( ContextKeyExpr.equals(
447
+ 'viewContainerLocation',
448
+ ViewContainerLocationToString(0 )
449
+ )))),
450
+ order: 2
451
+ }
452
+ }, {
453
+ id: MenuId.ViewTitleContext,
454
+ item: {
455
+ group: '3_workbench_layout_move',
456
+ command: {
457
+ id: ToggleSidebarVisibilityAction.ID,
458
+ title: ( localizeWithPath(
459
+ 'vs/workbench/browser/actions/layoutActions',
460
+ 'compositePart.hideSideBarLabel',
461
+ "Hide Primary Side Bar"
462
+ )),
463
+ },
464
+ when: ( ContextKeyExpr.and(SideBarVisibleContext, ( ContextKeyExpr.equals(
465
+ 'viewLocation',
466
+ ViewContainerLocationToString(0 )
467
+ )))),
468
+ order: 2
469
+ }
470
+ }, {
471
+ id: MenuId.LayoutControlMenu,
472
+ item: {
473
+ group: '0_workbench_toggles',
474
+ command: {
475
+ id: ToggleSidebarVisibilityAction.ID,
476
+ title: ( localizeWithPath(
477
+ 'vs/workbench/browser/actions/layoutActions',
478
+ 'toggleSideBar',
479
+ "Toggle Primary Side Bar"
480
+ )),
481
+ icon: panelLeftOffIcon,
482
+ toggled: { condition: SideBarVisibleContext, icon: panelLeftIcon }
483
+ },
484
+ when: ( ContextKeyExpr.and(( ContextKeyExpr.or(( ContextKeyExpr.equals('config.workbench.layoutControl.type', 'toggles')), ( ContextKeyExpr.equals('config.workbench.layoutControl.type', 'both')))), ( ContextKeyExpr.equals('config.workbench.sideBar.location', 'left')))),
485
+ order: 0
486
+ }
487
+ }, {
488
+ id: MenuId.LayoutControlMenu,
489
+ item: {
490
+ group: '0_workbench_toggles',
491
+ command: {
492
+ id: ToggleSidebarVisibilityAction.ID,
493
+ title: ( localizeWithPath(
494
+ 'vs/workbench/browser/actions/layoutActions',
495
+ 'toggleSideBar',
496
+ "Toggle Primary Side Bar"
497
+ )),
498
+ icon: panelRightOffIcon,
499
+ toggled: { condition: SideBarVisibleContext, icon: panelRightIcon }
500
+ },
501
+ when: ( ContextKeyExpr.and(( ContextKeyExpr.or(( ContextKeyExpr.equals('config.workbench.layoutControl.type', 'toggles')), ( ContextKeyExpr.equals('config.workbench.layoutControl.type', 'both')))), ( ContextKeyExpr.equals('config.workbench.sideBar.location', 'right')))),
502
+ order: 2
503
+ }
504
+ }
505
+ ]);
324
506
  class ToggleStatusbarVisibilityAction extends Action2 {
325
507
  static { this.ID = 'workbench.action.toggleStatusbarVisibility'; }
326
508
  static { this.statusbarVisibleKey = 'workbench.statusBar.visible'; }