@codingame/monaco-vscode-api 1.83.15 → 1.85.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/README.md +430 -0
  2. package/api.js +13 -7
  3. package/assets/clear.mp3 +0 -0
  4. package/assets/format.mp3 +0 -0
  5. package/assets/save.mp3 +0 -0
  6. package/contributions.js +3 -0
  7. package/extensions.d.ts +13 -3
  8. package/external/{xterm-addon-image/typings/xterm-addon-image.d.ts → @xterm/addon-image/typings/addon-image.d.ts} +1 -1
  9. package/external/{xterm → @xterm/xterm}/typings/xterm.d.ts +13 -1
  10. package/lifecycle.js +2 -2
  11. package/localExtensionHost.js +6 -3
  12. package/missing-services.js +170 -22
  13. package/monaco-editor-treemending.patch +6884 -18018
  14. package/monaco-treemending.js +2 -2
  15. package/package.json +7 -7
  16. package/service-override/tools/editor.d.ts +8 -8
  17. package/service-override/tools/editor.js +44 -19
  18. package/services.d.ts +2 -2
  19. package/services.js +3 -3
  20. package/vscode/src/vs/base/browser/broadcast.js +6 -5
  21. package/vscode/src/vs/base/browser/dnd.d.ts +6 -0
  22. package/vscode/src/vs/base/browser/mouseEvent.d.ts +1 -1
  23. package/vscode/src/vs/base/browser/touch.d.ts +10 -0
  24. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.d.ts +1 -0
  25. package/vscode/src/vs/base/browser/ui/iconLabel/iconHoverDelegate.d.ts +22 -15
  26. package/vscode/src/vs/base/browser/ui/menu/menubar.js +4 -3
  27. package/vscode/src/vs/base/browser/ui/splitview/paneview.css.js +1 -1
  28. package/vscode/src/vs/base/browser/ui/splitview/paneview.d.ts +3 -0
  29. package/vscode/src/vs/base/browser/ui/splitview/paneview.js +34 -11
  30. package/vscode/src/vs/base/common/actions.d.ts +1 -15
  31. package/vscode/src/vs/base/common/async.d.ts +1 -31
  32. package/vscode/src/vs/base/common/event.d.ts +2 -1
  33. package/vscode/src/vs/base/common/observableInternal/base.d.ts +23 -10
  34. package/vscode/src/vs/base/common/prefixTree.js +140 -0
  35. package/vscode/src/vs/base/common/product.d.ts +16 -2
  36. package/vscode/src/vs/base/common/resourceTree.js +135 -0
  37. package/vscode/src/vs/base/common/skipList.js +1 -0
  38. package/vscode/src/vs/base/common/tfIdf.js +137 -0
  39. package/vscode/src/vs/base/common/types.d.ts +13 -1
  40. package/vscode/src/vs/base/common/verifier.js +62 -0
  41. package/vscode/src/vs/editor/browser/editorBrowser.d.ts +4 -2
  42. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +23 -4
  43. package/vscode/src/vs/editor/common/core/lineRange.d.ts +1 -0
  44. package/vscode/src/vs/editor/common/core/offsetRange.d.ts +3 -0
  45. package/vscode/src/vs/editor/common/core/position.d.ts +1 -0
  46. package/vscode/src/vs/editor/common/editorCommon.d.ts +2 -1
  47. package/vscode/src/vs/editor/common/languages.d.ts +23 -1
  48. package/vscode/src/vs/editor/common/services/languageFeatures.d.ts +2 -1
  49. package/vscode/src/vs/editor/common/services/resolverService.d.ts +11 -2
  50. package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +16 -1
  51. package/vscode/src/vs/platform/action/common/action.d.ts +8 -0
  52. package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +4 -0
  53. package/vscode/src/vs/platform/actions/browser/floatingMenu.js +26 -2
  54. package/vscode/src/vs/platform/actions/common/actions.d.ts +8 -0
  55. package/vscode/src/vs/platform/audioCues/browser/audioCueService.d.ts +6 -0
  56. package/vscode/src/vs/platform/commands/common/commands.d.ts +13 -5
  57. package/vscode/src/vs/platform/dialogs/common/dialogs.d.ts +9 -3
  58. package/vscode/src/vs/platform/dialogs/common/dialogs.js +5 -2
  59. package/vscode/src/vs/platform/editor/common/editor.d.ts +3 -15
  60. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +1 -0
  61. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +3 -15
  62. package/vscode/src/vs/platform/extensionManagement/common/implicitActivationEvents.js +5 -0
  63. package/vscode/src/vs/platform/extensions/common/extensions.d.ts +0 -1
  64. package/vscode/src/vs/platform/files/common/files.d.ts +72 -8
  65. package/vscode/src/vs/platform/files/common/watcher.js +77 -0
  66. package/vscode/src/vs/platform/keybinding/common/keybindingsRegistry.d.ts +2 -2
  67. package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +52 -21
  68. package/vscode/src/vs/platform/request/browser/requestService.js +3 -0
  69. package/vscode/src/vs/platform/request/common/requestIpc.js +17 -0
  70. package/vscode/src/vs/platform/storage/common/storage.js +2 -2
  71. package/vscode/src/vs/platform/telemetry/common/telemetry.d.ts +1 -0
  72. package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +41 -0
  73. package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +12 -7
  74. package/vscode/src/vs/platform/terminal/common/capabilities/{commandDetectionCapability.d.ts → commandDetection/terminalCommand.d.ts} +3 -2
  75. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +257 -0
  76. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +651 -0
  77. package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +29 -0
  78. package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +48 -0
  79. package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +94 -0
  80. package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +37 -0
  81. package/vscode/src/vs/platform/terminal/common/terminalStrings.js +16 -0
  82. package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +319 -0
  83. package/vscode/src/vs/platform/window/common/window.d.ts +9 -2
  84. package/vscode/src/vs/platform/window/common/window.js +6 -1
  85. package/vscode/src/vs/platform/workspaces/common/workspaces.d.ts +2 -43
  86. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +113 -81
  87. package/vscode/src/vs/workbench/api/common/extHost.protocol.js +5 -4
  88. package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +25 -3
  89. package/vscode/src/vs/workbench/api/common/extHostChat.js +13 -163
  90. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +412 -0
  91. package/vscode/src/vs/workbench/api/common/extHostChatProvider.js +79 -11
  92. package/vscode/src/vs/workbench/api/common/extHostCommands.js +13 -12
  93. package/vscode/src/vs/workbench/api/common/extHostComments.js +1 -1
  94. package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +8 -6
  95. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +1 -1
  96. package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +36 -19
  97. package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +52 -31
  98. package/vscode/src/vs/workbench/api/common/extHostIssueReporter.js +38 -0
  99. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +28 -3
  100. package/vscode/src/vs/workbench/api/common/extHostLanguages.js +10 -0
  101. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +117 -2
  102. package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +32 -4
  103. package/vscode/src/vs/workbench/api/common/extHostSCM.js +85 -23
  104. package/vscode/src/vs/workbench/api/common/extHostSearch.js +3 -0
  105. package/vscode/src/vs/workbench/api/common/extHostSpeech.js +42 -0
  106. package/vscode/src/vs/workbench/api/common/extHostTask.js +2 -1
  107. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -0
  108. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +3 -3
  109. package/vscode/src/vs/workbench/api/common/extHostTesting.js +97 -47
  110. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +115 -16
  111. package/vscode/src/vs/workbench/api/common/extHostTypes.js +66 -36
  112. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +6 -1
  113. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +182 -75
  114. package/vscode/src/vs/workbench/browser/actions/windowActions.js +176 -4
  115. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +143 -2
  116. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +237 -0
  117. package/vscode/src/vs/workbench/browser/composite.d.ts +0 -4
  118. package/vscode/src/vs/workbench/browser/composite.js +5 -4
  119. package/vscode/src/vs/workbench/browser/dnd.js +72 -23
  120. package/vscode/src/vs/workbench/browser/labels.js +7 -3
  121. package/vscode/src/vs/workbench/browser/media/part.css.js +1 -1
  122. package/vscode/src/vs/workbench/browser/panecomposite.d.ts +2 -2
  123. package/vscode/src/vs/workbench/browser/panecomposite.js +2 -0
  124. package/vscode/src/vs/workbench/browser/part.js +33 -2
  125. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +99 -117
  126. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +173 -33
  127. package/vscode/src/vs/workbench/browser/parts/editor/editor.js +102 -6
  128. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +256 -17
  129. package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +4 -0
  130. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +68 -35
  131. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +5 -5
  132. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +35 -16
  133. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +348 -0
  134. package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +43 -31
  135. package/vscode/src/vs/workbench/browser/parts/editor/media/editortabscontrol.css.js +4 -0
  136. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -0
  137. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -0
  138. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +14 -2
  139. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +4 -4
  140. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +277 -0
  141. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +5 -2
  142. package/vscode/src/vs/workbench/browser/parts/panel/media/panelpart.css.js +1 -1
  143. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +3 -38
  144. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.d.ts +54 -52
  145. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +2 -1
  146. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.d.ts +25 -0
  147. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +258 -0
  148. package/vscode/src/vs/workbench/browser/parts/views/media/paneviewlet.css.js +1 -1
  149. package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +2 -5
  150. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +157 -117
  151. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +50 -23
  152. package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +26 -11
  153. package/vscode/src/vs/workbench/browser/parts/views/viewsViewlet.js +10 -6
  154. package/vscode/src/vs/workbench/browser/style.js +2 -1
  155. package/vscode/src/vs/workbench/browser/web.api.d.ts +39 -2
  156. package/vscode/src/vs/workbench/browser/window.js +55 -0
  157. package/vscode/src/vs/workbench/browser/workbench.contribution.js +220 -40
  158. package/vscode/src/vs/workbench/common/activity.js +3 -0
  159. package/vscode/src/vs/workbench/common/contextkeys.js +35 -5
  160. package/vscode/src/vs/workbench/common/contributions.js +4 -3
  161. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +14 -4
  162. package/vscode/src/vs/workbench/common/editor/diffEditorModel.js +1 -1
  163. package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +22 -19
  164. package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +4 -3
  165. package/vscode/src/vs/workbench/common/editor/editorModel.d.ts +1 -2
  166. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +22 -4
  167. package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +3 -3
  168. package/vscode/src/vs/workbench/common/editor.d.ts +60 -30
  169. package/vscode/src/vs/workbench/common/editor.js +11 -3
  170. package/vscode/src/vs/workbench/common/theme.js +2 -2
  171. package/vscode/src/vs/workbench/common/views.d.ts +4 -4
  172. package/vscode/src/vs/workbench/common/views.js +3 -1
  173. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +97 -8
  174. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +17 -99
  175. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +103 -37
  176. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +2 -3
  177. package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +127 -0
  178. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +71 -0
  179. package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +2 -1
  180. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +33 -110
  181. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +64 -0
  182. package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +94 -0
  183. package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +6 -1
  184. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +1 -88
  185. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +4 -4
  186. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -2
  187. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +3 -1
  188. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +15 -16
  189. package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +91 -1
  190. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +9 -3
  191. package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +3 -1
  192. package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +2 -3
  193. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +1 -0
  194. package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +9 -1
  195. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +10 -1
  196. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +114 -22
  197. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +1 -1
  198. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +4 -1
  199. package/vscode/src/vs/workbench/contrib/files/browser/explorerFileContrib.js +19 -0
  200. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +10 -8
  201. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +62 -10
  202. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +2 -1
  203. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +9 -8
  204. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +10 -1
  205. package/vscode/src/vs/workbench/contrib/files/browser/files.d.ts +1 -0
  206. package/vscode/src/vs/workbench/contrib/files/browser/files.js +7 -3
  207. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +4 -4
  208. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +64 -36
  209. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +42 -17
  210. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +145 -25
  211. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +423 -0
  212. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +82 -0
  213. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  214. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +36 -0
  215. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +3 -1
  216. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +24 -3
  217. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +11 -6
  218. package/vscode/src/vs/workbench/contrib/scm/common/scm.js +1 -2
  219. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/searchNotebookHelpers.js +31 -0
  220. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +61 -41
  221. package/vscode/src/vs/workbench/contrib/search/{browser/searchNotebookHelpers.js → common/cellSearchModel.js} +4 -63
  222. package/vscode/src/vs/workbench/contrib/search/common/searchNotebookHelpers.js +40 -0
  223. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +2 -2
  224. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +3 -0
  225. package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +92 -0
  226. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +100 -79
  227. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +3 -3
  228. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +1 -1
  229. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +25 -0
  230. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcon.js +7 -4
  231. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +64 -0
  232. package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +36 -0
  233. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +540 -0
  234. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +104 -0
  235. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +518 -0
  236. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +390 -0
  237. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +17 -11
  238. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +814 -0
  239. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +5 -2
  240. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +2 -8
  241. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +2 -0
  242. package/vscode/src/vs/workbench/contrib/testing/common/getComputedState.js +101 -0
  243. package/vscode/src/vs/workbench/contrib/testing/common/observableValue.js +30 -0
  244. package/vscode/src/vs/workbench/contrib/testing/common/storedValue.js +36 -0
  245. package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +115 -0
  246. package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.js +74 -0
  247. package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.js +116 -0
  248. package/vscode/src/vs/workbench/contrib/testing/common/testProfileService.js +172 -1
  249. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +384 -0
  250. package/vscode/src/vs/workbench/contrib/testing/common/testResultService.js +156 -1
  251. package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.js +156 -0
  252. package/vscode/src/vs/workbench/contrib/testing/common/testService.js +75 -1
  253. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +72 -1
  254. package/vscode/src/vs/workbench/contrib/testing/common/testingContextKeys.js +188 -0
  255. package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.js +102 -0
  256. package/vscode/src/vs/workbench/contrib/testing/common/testingDecorations.js +29 -0
  257. package/vscode/src/vs/workbench/{services/editor/browser/editorDropService.js → contrib/testing/common/testingPeekOpener.js} +2 -2
  258. package/vscode/src/vs/workbench/contrib/testing/common/testingStates.js +47 -0
  259. package/vscode/src/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.js +4 -3
  260. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +8 -9
  261. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput.js +1 -1
  262. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewIconManager.js +5 -2
  263. package/vscode/src/vs/workbench/services/activity/browser/activityService.d.ts +16 -10
  264. package/vscode/src/vs/workbench/services/activity/common/activity.d.ts +14 -1
  265. package/vscode/src/vs/workbench/services/activity/common/activity.js +1 -7
  266. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +9 -28
  267. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +273 -0
  268. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +1 -0
  269. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +2 -0
  270. package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +2 -3
  271. package/vscode/src/vs/workbench/services/editor/browser/editorService.d.ts +7 -5
  272. package/vscode/src/vs/workbench/services/editor/browser/editorService.js +59 -37
  273. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +193 -94
  274. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.js +2 -2
  275. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +8 -2
  276. package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +8 -1
  277. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +62 -16
  278. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +5 -3
  279. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +3 -2
  280. package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +4 -9
  281. package/vscode/src/vs/workbench/services/extensions/common/{extensionHostManager.d.ts → extensionHostManagers.d.ts} +2 -0
  282. package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.d.ts +1 -1
  283. package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +9 -0
  284. package/vscode/src/vs/workbench/services/extensions/common/extensions.js +22 -0
  285. package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +14 -3
  286. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +9 -0
  287. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +3 -3
  288. package/vscode/src/vs/workbench/services/history/common/history.d.ts +2 -2
  289. package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +49 -18
  290. package/vscode/src/vs/workbench/services/host/browser/host.d.ts +29 -7
  291. package/vscode/src/vs/workbench/services/hover/browser/hover.d.ts +51 -28
  292. package/vscode/src/vs/workbench/services/hover/browser/hoverService.d.ts +5 -2
  293. package/vscode/src/vs/workbench/services/keybinding/browser/unboundCommands.js +2 -2
  294. package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.d.ts +4 -1
  295. package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +40 -36
  296. package/vscode/src/vs/workbench/services/panecomposite/browser/panecomposite.d.ts +0 -6
  297. package/vscode/src/vs/workbench/services/preferences/common/preferences.d.ts +3 -0
  298. package/vscode/src/vs/workbench/services/progress/browser/progressIndicator.js +2 -2
  299. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +16 -1
  300. package/vscode/src/vs/workbench/services/request/browser/requestService.js +48 -0
  301. package/vscode/src/vs/workbench/services/search/common/searchHelpers.js +4 -4
  302. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +10 -51
  303. package/vscode/src/vs/workbench/services/suggest/browser/media/suggest.css.js +4 -0
  304. package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.js +10 -0
  305. package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.js +98 -0
  306. package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +428 -0
  307. package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +83 -0
  308. package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +32 -1
  309. package/vscode/src/vs/workbench/services/textfile/common/textEditorService.js +1 -5
  310. package/vscode/src/vs/workbench/services/themes/browser/browserHostColorSchemeService.js +4 -3
  311. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +9 -3
  312. package/vscode/src/vs/workbench/services/title/browser/titleService.d.ts +18 -0
  313. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +18 -3
  314. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorModel.js +16 -7
  315. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +6 -0
  316. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +13 -0
  317. package/vscode/src/vs/workbench/services/url/browser/urlService.js +2 -1
  318. package/vscode/src/vs/workbench/services/userActivity/common/userActivityService.js +2 -2
  319. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +9 -0
  320. package/vscode-dts/vscode.proposed.chatAgents2.d.ts +375 -0
  321. package/vscode-dts/vscode.proposed.chatAgents2Additions.d.ts +80 -0
  322. package/vscode-dts/vscode.proposed.chatProvider.d.ts +5 -1
  323. package/vscode-dts/vscode.proposed.chatRequestAccess.d.ts +68 -10
  324. package/vscode-dts/vscode.proposed.chatTab.d.ts +21 -0
  325. package/vscode-dts/vscode.proposed.chatVariables.d.ts +5 -1
  326. package/vscode-dts/vscode.proposed.codeActionAI.d.ts +16 -0
  327. package/vscode-dts/vscode.proposed.contribSourceControlInputBoxMenu.d.ts +7 -0
  328. package/vscode-dts/vscode.proposed.createFileSystemWatcher.d.ts +51 -0
  329. package/vscode-dts/vscode.proposed.defaultChatAgent.d.ts +30 -0
  330. package/vscode-dts/vscode.proposed.handleIssueUri.d.ts +26 -0
  331. package/vscode-dts/vscode.proposed.interactive.d.ts +26 -100
  332. package/vscode-dts/vscode.proposed.interactiveUserActions.d.ts +14 -7
  333. package/vscode-dts/vscode.proposed.languageStatusText.d.ts +12 -0
  334. package/vscode-dts/vscode.proposed.multiDocumentHighlightProvider.d.ts +63 -0
  335. package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +43 -0
  336. package/vscode-dts/vscode.proposed.resolvers.d.ts +100 -1
  337. package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +9 -1
  338. package/vscode-dts/vscode.proposed.scmInputBoxActionButton.d.ts +19 -0
  339. package/vscode-dts/vscode.proposed.scmInputBoxValueProvider.d.ts +25 -0
  340. package/vscode-dts/vscode.proposed.speech.d.ts +35 -0
  341. package/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts +11 -7
  342. package/vscode-dts/vscode.proposed.testCoverage.d.ts +6 -1
  343. package/vscode-dts/vscode.proposed.testingActiveProfile.d.ts +21 -0
  344. package/external/xterm-headless/typings/xterm-headless.d.ts +0 -49
  345. package/vscode/src/vs/platform/backup/common/backup.d.ts +0 -14
  346. package/vscode/src/vs/platform/update/common/update.d.ts +0 -112
  347. package/vscode/src/vs/workbench/api/common/extHostChatAgents.js +0 -62
  348. package/vscode/src/vs/workbench/api/common/extHostChatSlashCommand.js +0 -62
  349. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +0 -56
  350. package/vscode/src/vs/workbench/services/files/common/files.js +0 -4
  351. package/vscode/src/vs/workbench/services/host/browser/browserHostService.d.ts +0 -41
  352. package/vscode/src/vs/workbench/services/title/common/titleService.d.ts +0 -31
  353. package/vscode-dts/vscode.proposed.chatAgents.d.ts +0 -39
  354. package/vscode-dts/vscode.proposed.chatSlashCommands.d.ts +0 -47
  355. package/vscode-dts/vscode.proposed.testMessageContextValue.d.ts +0 -45
  356. /package/external/{xterm-addon-canvas/typings/xterm-addon-canvas.d.ts → @xterm/addon-canvas/typings/addon-canvas.d.ts} +0 -0
  357. /package/external/{xterm-addon-search/typings/xterm-addon-search.d.ts → @xterm/addon-search/typings/addon-search.d.ts} +0 -0
  358. /package/external/{xterm-addon-serialize/typings/xterm-addon-serialize.d.ts → @xterm/addon-serialize/typings/addon-serialize.d.ts} +0 -0
  359. /package/external/{xterm-addon-unicode11/typings/xterm-addon-unicode11.d.ts → @xterm/addon-unicode11/typings/addon-unicode11.d.ts} +0 -0
  360. /package/external/{xterm-addon-webgl/typings/xterm-addon-webgl.d.ts → @xterm/addon-webgl/typings/addon-webgl.d.ts} +0 -0
  361. /package/vscode/src/vs/workbench/services/title/{common → browser}/titleService.js +0 -0
@@ -847,8 +847,8 @@ async function run() {
847
847
  console.info('Monaco-editor has already been tree-mended, ignoring');
848
848
  process.exit(0);
849
849
  }
850
- if ("0.44.0" !== monacoVersion) {
851
- console.error(`Wrong monaco-editor version: expecting ${"0.44.0"}, got ${monacoVersion}`);
850
+ if ("0.45.0" !== monacoVersion) {
851
+ console.error(`Wrong monaco-editor version: expecting ${"0.45.0"}, got ${monacoVersion}`);
852
852
  process.exit(1);
853
853
  }
854
854
  // pnpm WA: copy files to a temp directory and patch files there. When finished copy back
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-api",
3
- "version": "1.83.15",
3
+ "version": "1.85.0-next.0",
4
4
  "description": "VSCode public API plugged on the monaco editor",
5
5
  "keywords": [],
6
6
  "author": {
@@ -98,12 +98,12 @@
98
98
  "monaco-treemending": "./monaco-treemending.js"
99
99
  },
100
100
  "dependencies": {
101
- "monaco-editor": "0.44.0",
101
+ "monaco-editor": "0.45.0",
102
102
  "vscode-semver": "npm:semver@=5.5.0",
103
- "@codingame/monaco-vscode-files-service-override": "1.83.15",
104
- "@codingame/monaco-vscode-layout-service-override": "1.83.15",
105
- "@codingame/monaco-vscode-environment-service-override": "1.83.15",
106
- "@codingame/monaco-vscode-extensions-service-override": "1.83.15",
107
- "@codingame/monaco-vscode-quickaccess-service-override": "1.83.15"
103
+ "@codingame/monaco-vscode-files-service-override": "1.85.0-next.0",
104
+ "@codingame/monaco-vscode-layout-service-override": "1.85.0-next.0",
105
+ "@codingame/monaco-vscode-environment-service-override": "1.85.0-next.0",
106
+ "@codingame/monaco-vscode-extensions-service-override": "1.85.0-next.0",
107
+ "@codingame/monaco-vscode-quickaccess-service-override": "1.85.0-next.0"
108
108
  }
109
109
  }
@@ -1,21 +1,21 @@
1
1
  import { IEditorPane, IUntypedEditorInput, IUntitledTextResourceEditorInput, IResourceDiffEditorInput, ITextDiffEditorPane } from '../../vscode/src/vs/workbench/common/editor.js';
2
+ import { IEditorGroupsService } from '../../vscode/src/vs/workbench/services/editor/common/editorGroupsService.js';
3
+ import { PreferredGroup } from '../../vscode/src/vs/workbench/services/editor/common/editorService.js';
4
+ import { EditorInput } from '../../vscode/src/vs/workbench/common/editor/editorInput.js';
5
+ import { IEditorOptions, IResourceEditorInput, ITextResourceEditorInput } from '../../vscode/src/vs/platform/editor/common/editor.js';
2
6
  import { ICodeEditor, IDiffEditor } from '../../vscode/src/vs/editor/browser/editorBrowser.js';
3
- import { IInstantiationService } from '../../vscode/src/vs/platform/instantiation/common/instantiation.js';
4
7
  import { IReference } from '../../vscode/src/vs/base/common/lifecycle.js';
5
8
  import { IConfigurationService } from '../../vscode/src/vs/platform/configuration/common/configuration.js';
6
- import { IEditorOptions, IResourceEditorInput, ITextResourceEditorInput } from '../../vscode/src/vs/platform/editor/common/editor.js';
9
+ import { IInstantiationService } from '../../vscode/src/vs/platform/instantiation/common/instantiation.js';
7
10
  import { IFileService } from '../../vscode/src/vs/platform/files/common/files.js';
8
11
  import { IWorkspaceContextService } from '../../vscode/src/vs/platform/workspace/common/workspace.js';
9
12
  import { IUriIdentityService } from '../../vscode/src/vs/platform/uriIdentity/common/uriIdentity.js';
10
- import { IResolvedTextEditorModel, ITextModelService } from '../../vscode/src/vs/editor/common/services/resolverService.js';
11
- import { PreferredGroup } from '../../vscode/src/vs/workbench/services/editor/common/editorService.js';
12
- import { EditorInput } from '../../vscode/src/vs/workbench/common/editor/editorInput.js';
13
13
  import { IHostService } from '../../vscode/src/vs/workbench/services/host/browser/host.js';
14
- import { IEditorGroupsService } from '../../vscode/src/vs/workbench/services/editor/common/editorGroupsService.js';
14
+ import { IResolvedTextEditorModel, ITextModelService } from '../../vscode/src/vs/editor/common/services/resolverService.js';
15
+ import { EditorService } from '../../vscode/src/vs/workbench/services/editor/browser/editorService.js';
16
+ import { IWorkspaceTrustRequestService } from '../../vscode/src/vs/platform/workspace/common/workspaceTrust.js';
15
17
  import { IEditorResolverService } from '../../vscode/src/vs/workbench/services/editor/common/editorResolverService.js';
16
18
  import { ITextEditorService } from '../../vscode/src/vs/workbench/services/textfile/common/textEditorService.js';
17
- import { IWorkspaceTrustRequestService } from '../../vscode/src/vs/platform/workspace/common/workspaceTrust.js';
18
- import { EditorService } from '../../vscode/src/vs/workbench/services/editor/browser/editorService.js';
19
19
 
20
20
  type OpenEditor = (modelRef: IReference<IResolvedTextEditorModel>, options: IEditorOptions | undefined, sideBySide?: boolean) => Promise<ICodeEditor | undefined>;
21
21
  declare class MonacoEditorService extends EditorService {
@@ -88,7 +88,7 @@ function wrapOpenEditor(textModelService, defaultBehavior, fallbackBahavior) {
88
88
  }
89
89
  let MonacoEditorService = class MonacoEditorService extends EditorService {
90
90
  constructor(_openEditorFallback, _isEditorPartVisible, _editorGroupService, instantiationService, fileService, configurationService, contextService, uriIdentityService, editorResolverService, workspaceTrustRequestService, hostService, textEditorService, textModelService) {
91
- super(_editorGroupService, instantiationService, fileService, configurationService, contextService, uriIdentityService, editorResolverService, workspaceTrustRequestService, hostService, textEditorService);
91
+ super(undefined, _editorGroupService, instantiationService, fileService, configurationService, contextService, uriIdentityService, editorResolverService, workspaceTrustRequestService, hostService, textEditorService);
92
92
  this._isEditorPartVisible = _isEditorPartVisible;
93
93
  this.openEditor = wrapOpenEditor(textModelService, this.openEditor.bind(this), _openEditorFallback);
94
94
  }
@@ -228,7 +228,7 @@ let StandaloneEditorGroup = StandaloneEditorGroup_1 = class StandaloneEditorGrou
228
228
  });
229
229
  this.pane = new StandaloneEditorPane(editor, editorInput, this);
230
230
  this._onDidModelChange.fire({
231
- kind: 3 ,
231
+ kind: 4 ,
232
232
  editor: editorInput,
233
233
  editorIndex: 0
234
234
  });
@@ -241,7 +241,7 @@ let StandaloneEditorGroup = StandaloneEditorGroup_1 = class StandaloneEditorGrou
241
241
  const pane = this.pane;
242
242
  this.pane = undefined;
243
243
  this._onDidModelChange.fire({
244
- kind: 4 ,
244
+ kind: 5 ,
245
245
  editorIndex: 0
246
246
  });
247
247
  this._onDidActiveEditorChange.fire({
@@ -278,6 +278,19 @@ let StandaloneEditorGroup = StandaloneEditorGroup_1 = class StandaloneEditorGrou
278
278
  this.pane = new StandaloneEditorPane(editor, editorInput, this);
279
279
  }
280
280
  }
281
+ get groupsView() {
282
+ return unsupported();
283
+ }
284
+ notifyLabelChanged() { }
285
+ createEditorActions() {
286
+ return {
287
+ actions: {
288
+ primary: [],
289
+ secondary: []
290
+ },
291
+ onDidChange: Event.None
292
+ };
293
+ }
281
294
  get titleHeight() { return unsupported(); }
282
295
  setActive(isActive) {
283
296
  this.active = isActive;
@@ -314,6 +327,8 @@ let MonacoDelegateEditorGroupsService = class MonacoDelegateEditorGroupsService
314
327
  this._serviceBrand = undefined;
315
328
  this.additionalGroups = [];
316
329
  this.activeGroupOverride = undefined;
330
+ this.onDidCreateAuxiliaryEditorPart = this.delegate.onDidCreateAuxiliaryEditorPart;
331
+ this.onDidChangeGroupMaximized = this.delegate.onDidChangeGroupMaximized;
317
332
  this._onDidChangeActiveGroup = new Emitter();
318
333
  this.onDidChangeActiveGroup = Event.any(this._onDidChangeActiveGroup.event, this.delegate.onDidChangeActiveGroup);
319
334
  this._onDidAddGroup = new Emitter();
@@ -322,8 +337,6 @@ let MonacoDelegateEditorGroupsService = class MonacoDelegateEditorGroupsService
322
337
  this.onDidRemoveGroup = Event.any(this._onDidRemoveGroup.event, this.delegate.onDidRemoveGroup);
323
338
  this.onDidMoveGroup = this.delegate.onDidMoveGroup;
324
339
  this.onDidActivateGroup = this.delegate.onDidActivateGroup;
325
- this.onDidLayout = this.delegate.onDidLayout;
326
- this.onDidScroll = this.delegate.onDidScroll;
327
340
  this.onDidChangeGroupIndex = this.delegate.onDidChangeGroupIndex;
328
341
  this.onDidChangeGroupLocked = this.delegate.onDidChangeGroupLocked;
329
342
  this.getLayout = () => {
@@ -350,12 +363,6 @@ let MonacoDelegateEditorGroupsService = class MonacoDelegateEditorGroupsService
350
363
  this.applyLayout = (...args) => {
351
364
  return this.delegate.applyLayout(...args);
352
365
  };
353
- this.centerLayout = (...args) => {
354
- return this.delegate.centerLayout(...args);
355
- };
356
- this.isLayoutCentered = (...args) => {
357
- return this.delegate.isLayoutCentered(...args);
358
- };
359
366
  this.setGroupOrientation = (...args) => {
360
367
  return this.delegate.setGroupOrientation(...args);
361
368
  };
@@ -380,9 +387,6 @@ let MonacoDelegateEditorGroupsService = class MonacoDelegateEditorGroupsService
380
387
  this.copyGroup = (...args) => {
381
388
  return this.delegate.copyGroup(...args);
382
389
  };
383
- this.enforcePartOptions = (...args) => {
384
- return this.delegate.enforcePartOptions(...args);
385
- };
386
390
  this.onDidChangeEditorPartOptions = this.delegate.onDidChangeEditorPartOptions;
387
391
  setTimeout(() => {
388
392
  const codeEditorService = StandaloneServices.get(ICodeEditorService);
@@ -392,8 +396,16 @@ let MonacoDelegateEditorGroupsService = class MonacoDelegateEditorGroupsService
392
396
  this.activeGroupOverride = this.additionalGroups.find(group => group.editor === editor);
393
397
  this._onDidChangeActiveGroup.fire(this.activeGroup);
394
398
  };
399
+ const onEditorBlurred = () => {
400
+ if (this.activeGroupOverride === this.additionalGroups.find(group => group.editor === editor)) {
401
+ this.activeGroupOverride = undefined;
402
+ this._onDidChangeActiveGroup.fire(this.activeGroup);
403
+ }
404
+ };
395
405
  editor.onDidFocusEditorText(onEditorFocused);
396
406
  editor.onDidFocusEditorWidget(onEditorFocused);
407
+ editor.onDidBlurEditorText(onEditorBlurred);
408
+ editor.onDidBlurEditorWidget(onEditorBlurred);
397
409
  if (editor.hasWidgetFocus()) {
398
410
  onEditorFocused();
399
411
  }
@@ -421,20 +433,33 @@ let MonacoDelegateEditorGroupsService = class MonacoDelegateEditorGroupsService
421
433
  codeEditorService.listCodeEditors().forEach(handleCodeEditor);
422
434
  });
423
435
  }
436
+ get parts() { return this.delegate.parts; }
437
+ createAuxiliaryEditorPart(options) {
438
+ return this.delegate.createAuxiliaryEditorPart(options);
439
+ }
440
+ get mainPart() { return this.delegate.mainPart; }
441
+ get activePart() { return this.delegate.activePart; }
442
+ getPart(container) {
443
+ return this.delegate.getPart(container);
444
+ }
445
+ toggleMaximizeGroup(group) {
446
+ return this.delegate.toggleMaximizeGroup(group);
447
+ }
448
+ toggleExpandGroup(group) {
449
+ return this.delegate.toggleExpandGroup(group);
450
+ }
451
+ createEditorDropTarget(container, delegate) {
452
+ return this.delegate.createEditorDropTarget(container, delegate);
453
+ }
424
454
  get groups() {
425
455
  return [...this.additionalGroups, ...this.delegate.groups];
426
456
  }
427
457
  get activeGroup() {
428
458
  return this.activeGroupOverride ?? this.delegate.activeGroup;
429
459
  }
430
- get contentDimension() { return this.delegate.contentDimension; }
431
460
  get sideGroup() { return this.delegate.sideGroup; }
432
461
  get count() { return this.delegate.count + this.additionalGroups.length; }
433
462
  get orientation() { return this.delegate.orientation; }
434
- get isReady() { return this.delegate.isReady; }
435
- get whenReady() { return this.delegate.whenReady; }
436
- get whenRestored() { return this.delegate.whenRestored; }
437
- get hasRestorableState() { return this.delegate.hasRestorableState; }
438
463
  get partOptions() { return this.delegate.partOptions; }
439
464
  };
440
465
  MonacoDelegateEditorGroupsService = __decorate([
package/services.d.ts CHANGED
@@ -5,6 +5,7 @@ export { IInstantiationService } from './vscode/src/vs/platform/instantiation/co
5
5
  export { IContextKeyService } from './vscode/src/vs/platform/contextkey/common/contextkey.js';
6
6
  export { IDimension } from './vscode/src/vs/editor/common/core/dimension.js';
7
7
  export { default as Severity } from './vscode/src/vs/base/common/severity.js';
8
+ export { ICommandService } from './vscode/src/vs/platform/commands/common/commands.js';
8
9
  export { IMarkerService } from './vscode/src/vs/platform/markers/common/markers.js';
9
10
  export { ILanguageService } from './vscode/src/vs/editor/common/languages/language.js';
10
11
  export { ILanguageConfigurationService } from './vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js';
@@ -17,7 +18,6 @@ export { ITextModelContentProvider, ITextModelService } from './vscode/src/vs/ed
17
18
  export { CloseDirection, EditorInputWithOptions, EditorsOrder, GroupIdentifier, IActiveEditorChangeEvent, IEditorCloseEvent, IEditorControl, IEditorPane, IEditorPartOptions, IEditorPartOptionsChangeEvent, IEditorWillMoveEvent, IEditorWillOpenEvent, IFindEditorOptions, IMatchEditorOptions, IUntypedEditorInput, IVisibleEditorPane } from './vscode/src/vs/workbench/common/editor.js';
18
19
  export { ITextFileService } from './vscode/src/vs/workbench/services/textfile/common/textfiles.js';
19
20
  export { IAction } from './vscode/src/vs/base/common/actions.js';
20
- export { ICommandService } from './vscode/src/vs/platform/commands/common/commands.js';
21
21
  export { IAudioCueService } from './vscode/src/vs/platform/audioCues/browser/audioCueService.js';
22
22
  import { IEditorOverrideServices } from './vscode/src/vs/editor/standalone/browser/standaloneServices.js';
23
23
  export { StandaloneServices } from './vscode/src/vs/editor/standalone/browser/standaloneServices.js';
@@ -70,7 +70,7 @@ export { IActivityService, IBadge } from './vscode/src/vs/workbench/services/act
70
70
  export { IHoverService } from './vscode/src/vs/workbench/services/hover/browser/hover.js';
71
71
  export { IExplorerService } from './vscode/src/vs/workbench/contrib/files/browser/files.js';
72
72
  export { IStatusbarService } from './vscode/src/vs/workbench/services/statusbar/browser/statusbar.js';
73
- export { ITitleService } from './vscode/src/vs/workbench/services/title/common/titleService.js';
73
+ export { ITitleService } from './vscode/src/vs/workbench/services/title/browser/titleService.js';
74
74
  export { IBannerService } from './vscode/src/vs/workbench/services/banner/browser/bannerService.js';
75
75
  export { IWorkspaceTrustEnablementService, IWorkspaceTrustManagementService, IWorkspaceTrustRequestService, IWorkspaceTrustUriInfo } from './vscode/src/vs/platform/workspace/common/workspaceTrust.js';
76
76
 
package/services.js CHANGED
@@ -76,7 +76,7 @@ export { IActivityService } from './vscode/src/vs/workbench/services/activity/co
76
76
  export { IHoverService } from './vscode/src/vs/workbench/services/hover/browser/hover.js';
77
77
  export { IExplorerService } from './vscode/src/vs/workbench/contrib/files/browser/files.js';
78
78
  export { IStatusbarService } from './vscode/src/vs/workbench/services/statusbar/browser/statusbar.js';
79
- export { ITitleService } from './vscode/src/vs/workbench/services/title/common/titleService.js';
79
+ export { ITitleService } from './vscode/src/vs/workbench/services/title/browser/titleService.js';
80
80
  export { IBannerService } from './vscode/src/vs/workbench/services/banner/browser/bannerService.js';
81
81
  export { IWorkspaceTrustEnablementService, IWorkspaceTrustManagementService, IWorkspaceTrustRequestService } from 'monaco-editor/esm/vs/platform/workspace/common/workspaceTrust.js';
82
82
  export { IDialogService, IFileDialogService } from './vscode/src/vs/platform/dialogs/common/dialogs.js';
@@ -85,9 +85,9 @@ async function initialize(overrides, container = document.body, configuration =
85
85
  initialize$1(container, configuration);
86
86
  const instantiationService = StandaloneServices.initialize({
87
87
  [( IProductService.toString())]: mixin({
88
- version: "1.83.0",
88
+ version: "1.85.0",
89
89
  quality: 'oss',
90
- commit: "e7e037083ff4455cf320e344325dacb480062c3c",
90
+ commit: "af28b32d7e553898b2a91af498b1fb666fdebe0c",
91
91
  nameShort: 'Code - OSS Dev',
92
92
  nameLong: 'Code - OSS Dev',
93
93
  applicationName: 'code-oss',
@@ -1,3 +1,4 @@
1
+ import { mainWindow } from 'monaco-editor/esm/vs/base/browser/window.js';
1
2
  import { getErrorMessage } from 'monaco-editor/esm/vs/base/common/errors.js';
2
3
  import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
3
4
  import { Disposable, toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
@@ -7,7 +8,7 @@ class BroadcastDataChannel extends Disposable {
7
8
  this.channelName = channelName;
8
9
  this._onDidReceiveData = this._register(( new Emitter()));
9
10
  this.onDidReceiveData = this._onDidReceiveData.event;
10
- if ('BroadcastChannel' in window) {
11
+ if ('BroadcastChannel' in mainWindow) {
11
12
  try {
12
13
  this.broadcastChannel = ( new BroadcastChannel(channelName));
13
14
  const listener = (event) => {
@@ -36,16 +37,16 @@ class BroadcastDataChannel extends Disposable {
36
37
  this._onDidReceiveData.fire(JSON.parse(event.newValue));
37
38
  }
38
39
  };
39
- window.addEventListener('storage', listener);
40
- this._register(toDisposable(() => window.removeEventListener('storage', listener)));
40
+ mainWindow.addEventListener('storage', listener);
41
+ this._register(toDisposable(() => mainWindow.removeEventListener('storage', listener)));
41
42
  }
42
43
  postData(data) {
43
44
  if (this.broadcastChannel) {
44
45
  this.broadcastChannel.postMessage(data);
45
46
  }
46
47
  else {
47
- window.localStorage.removeItem(this.channelName);
48
- window.localStorage.setItem(this.channelName, JSON.stringify(data));
48
+ localStorage.removeItem(this.channelName);
49
+ localStorage.setItem(this.channelName, JSON.stringify(data));
49
50
  }
50
51
  }
51
52
  }
@@ -0,0 +1,6 @@
1
+ interface IDragAndDropData {
2
+ update(dataTransfer: DataTransfer): void;
3
+ getData(): unknown;
4
+ }
5
+
6
+ export type { IDragAndDropData };
@@ -31,7 +31,7 @@ declare class StandardMouseEvent implements IMouseEvent {
31
31
  readonly altKey: boolean;
32
32
  readonly metaKey: boolean;
33
33
  readonly timestamp: number;
34
- constructor(e: MouseEvent);
34
+ constructor(targetWindow: Window, e: MouseEvent);
35
35
  preventDefault(): void;
36
36
  stopPropagation(): void;
37
37
  }
@@ -0,0 +1,10 @@
1
+ interface GestureEvent extends MouseEvent {
2
+ initialTarget: EventTarget | undefined;
3
+ translationX: number;
4
+ translationY: number;
5
+ pageX: number;
6
+ pageY: number;
7
+ tapCount: number;
8
+ }
9
+
10
+ export type { GestureEvent };
@@ -13,6 +13,7 @@ interface IActionViewItem extends IDisposable {
13
13
  isEnabled(): boolean;
14
14
  focus(fromRight?: boolean): void;
15
15
  blur(): void;
16
+ showHover?(): void;
16
17
  }
17
18
  interface IActionViewItemProvider {
18
19
  (action: IAction, options: IActionViewItemOptions): IActionViewItem | undefined;
@@ -20,21 +20,6 @@ interface IHoverDelegateOptions extends IUpdatableHoverOptions {
20
20
  * dispose method is required.
21
21
  */
22
22
  target: IHoverDelegateTarget | HTMLElement;
23
- /**
24
- * Position of the hover. The default is to show above the target. This option will be ignored
25
- * if there is not enough room to layout the hover in the specified position, unless the
26
- * forcePosition option is set.
27
- */
28
- hoverPosition?: HoverPosition;
29
- /**
30
- * Whether to show the hover pointer
31
- */
32
- showPointer?: boolean;
33
- /**
34
- * Whether to skip the fade in animation, this should be used when hovering from one hover to
35
- * another in the same group so it looks like the hover is moving from one element to the other.
36
- */
37
- skipFadeInAnimation?: boolean;
38
23
  /**
39
24
  * The container to pass to {@link IContextViewProvider.showContextView} which renders the hover
40
25
  * in. This is particularly useful for more natural tab focusing behavior, where the hover is
@@ -42,6 +27,28 @@ interface IHoverDelegateOptions extends IUpdatableHoverOptions {
42
27
  * element's container hiding on `focusout`.
43
28
  */
44
29
  container?: HTMLElement;
30
+ /**
31
+ * Options that defines where the hover is positioned.
32
+ */
33
+ position?: {
34
+ /**
35
+ * Position of the hover. The default is to show above the target. This option will be ignored
36
+ * if there is not enough room to layout the hover in the specified position, unless the
37
+ * forcePosition option is set.
38
+ */
39
+ hoverPosition?: HoverPosition;
40
+ };
41
+ appearance?: {
42
+ /**
43
+ * Whether to show the hover pointer
44
+ */
45
+ showPointer?: boolean;
46
+ /**
47
+ * Whether to skip the fade in animation, this should be used when hovering from one hover to
48
+ * another in the same group so it looks like the hover is moving from one element to the other.
49
+ */
50
+ skipFadeInAnimation?: boolean;
51
+ };
45
52
  }
46
53
  interface IHoverDelegate {
47
54
  showHover(options: IHoverDelegateOptions, focus?: boolean): IHoverWidget | undefined;
@@ -83,6 +83,7 @@ class MenuBar extends Disposable {
83
83
  event.stopPropagation();
84
84
  }
85
85
  }));
86
+ const window = dom.getWindow(this.container);
86
87
  this._register(dom.addDisposableListener(window, dom.EventType.MOUSE_DOWN, () => {
87
88
  if (this.isFocused) {
88
89
  this.setUnfocusedState();
@@ -167,7 +168,7 @@ class MenuBar extends Disposable {
167
168
  e.stopPropagation();
168
169
  }));
169
170
  this._register(dom.addDisposableListener(buttonElement, dom.EventType.MOUSE_DOWN, (e) => {
170
- const mouseEvent = ( new StandardMouseEvent(e));
171
+ const mouseEvent = ( new StandardMouseEvent(dom.getWindow(buttonElement), e));
171
172
  if (!mouseEvent.leftButton) {
172
173
  e.preventDefault();
173
174
  return;
@@ -262,7 +263,7 @@ class MenuBar extends Disposable {
262
263
  e.stopPropagation();
263
264
  }));
264
265
  this._register(dom.addDisposableListener(buttonElement, dom.EventType.MOUSE_DOWN, (e) => {
265
- const mouseEvent = ( new StandardMouseEvent(e));
266
+ const mouseEvent = ( new StandardMouseEvent(dom.getWindow(buttonElement), e));
266
267
  if (!mouseEvent.leftButton) {
267
268
  e.preventDefault();
268
269
  return;
@@ -478,7 +479,7 @@ class MenuBar extends Disposable {
478
479
  this.updateLabels(menuBarMenu.titleElement, menuBarMenu.buttonElement, menuBarMenu.label);
479
480
  });
480
481
  if (!this.overflowLayoutScheduled) {
481
- this.overflowLayoutScheduled = dom.scheduleAtNextAnimationFrame(() => {
482
+ this.overflowLayoutScheduled = dom.scheduleAtNextAnimationFrame(dom.getWindow(this.container), () => {
482
483
  this.updateOverflowAction();
483
484
  this.overflowLayoutScheduled = undefined;
484
485
  });
@@ -1,4 +1,4 @@
1
1
  import n from '../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
2
- var css = ".monaco-pane-view{height:100%;width:100%}.monaco-pane-view .pane{display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%}.monaco-pane-view .pane.horizontal:not(.expanded){flex-direction:row}.monaco-pane-view .pane>.pane-header{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;font-size:11px;font-weight:700;height:22px;overflow:hidden}.monaco-pane-view .pane>.pane-header>.title{text-transform:uppercase}.monaco-pane-view .pane.horizontal:not(.expanded)>.pane-header{flex-direction:column;height:100%;width:22px}.monaco-pane-view .pane>.pane-header>.codicon:first-of-type{margin:0 2px}.monaco-pane-view .pane.horizontal:not(.expanded)>.pane-header>.codicon:first-of-type{margin:2px}.monaco-pane-view .pane>.pane-header>.actions{display:none;margin-left:auto}.monaco-pane-view .pane>.pane-header>.actions .action-item{margin-right:4px}.monaco-pane-view .pane>.pane-header>.actions .action-label{padding:2px}.monaco-pane-view .pane:focus-within>.pane-header.expanded>.actions,.monaco-pane-view .pane:hover>.pane-header.expanded>.actions,.monaco-pane-view .pane>.pane-header.actions-always-visible.expanded>.actions,.monaco-pane-view .pane>.pane-header.focused.expanded>.actions{display:initial}.monaco-pane-view .pane>.pane-header .monaco-action-bar .action-item.select-container{cursor:default}.monaco-pane-view .pane>.pane-header .action-item .monaco-select-box{cursor:pointer;min-height:18px;min-width:110px;padding:2px 23px 2px 8px}.linux .monaco-pane-view .pane>.pane-header .action-item .monaco-select-box,.windows .monaco-pane-view .pane>.pane-header .action-item .monaco-select-box{padding:0 23px 0 8px}.monaco-pane-view:lang(ja) .pane>.pane-header,.monaco-pane-view:lang(ko) .pane>.pane-header,.monaco-pane-view:lang(zh-Hans) .pane>.pane-header,.monaco-pane-view:lang(zh-Hant) .pane>.pane-header{font-weight:400}.monaco-pane-view .pane>.pane-header.hidden{display:none}.monaco-pane-view .pane>.pane-body{flex:1;overflow:hidden}.monaco-pane-view.animated .split-view-view{transition-duration:.15s;transition-timing-function:ease-out}.reduce-motion .monaco-pane-view .split-view-view{transition-duration:0s!important}.monaco-pane-view.animated.vertical .split-view-view{transition-property:height}.monaco-pane-view.animated.horizontal .split-view-view{transition-property:width}#monaco-pane-drop-overlay{box-sizing:border-box;height:100%;left:0;position:absolute;width:100%;z-index:10000}#monaco-pane-drop-overlay>.pane-overlay-indicator{height:100%;min-height:22px;min-width:19px;pointer-events:none;position:absolute;transition:opacity .15s ease-out;width:100%}#monaco-pane-drop-overlay>.pane-overlay-indicator.overlay-move-transition{transition:top 70ms ease-out,left 70ms ease-out,width 70ms ease-out,height 70ms ease-out,opacity .15s ease-out}";
2
+ var css = ".monaco-pane-view{height:100%;width:100%}.monaco-pane-view .pane{display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%}.monaco-pane-view .pane.horizontal:not(.expanded){flex-direction:row}.monaco-pane-view .pane>.pane-header{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;font-size:11px;font-weight:700;height:22px;overflow:hidden}.monaco-pane-view .pane>.pane-header.not-collapsible{cursor:default}.monaco-pane-view .pane>.pane-header>.title{text-transform:uppercase}.monaco-pane-view .pane.horizontal:not(.expanded)>.pane-header{flex-direction:column;height:100%;width:22px}.monaco-pane-view .pane>.pane-header>.codicon:first-of-type{margin:0 2px}.monaco-pane-view .pane.horizontal:not(.expanded)>.pane-header>.codicon:first-of-type{margin:2px}.monaco-pane-view .pane>.pane-header>.actions{display:none;margin-left:auto}.monaco-pane-view .pane>.pane-header>.actions .action-item{margin-right:4px}.monaco-pane-view .pane>.pane-header>.actions .action-label{padding:2px}.monaco-pane-view .pane:focus-within>.pane-header.expanded>.actions,.monaco-pane-view .pane:hover>.pane-header.expanded>.actions,.monaco-pane-view .pane>.pane-header.actions-always-visible.expanded>.actions,.monaco-pane-view .pane>.pane-header.focused.expanded>.actions{display:initial}.monaco-pane-view .pane>.pane-header .monaco-action-bar .action-item.select-container{cursor:default}.monaco-pane-view .pane>.pane-header .action-item .monaco-select-box{cursor:pointer;min-height:18px;min-width:110px;padding:2px 23px 2px 8px}.linux .monaco-pane-view .pane>.pane-header .action-item .monaco-select-box,.windows .monaco-pane-view .pane>.pane-header .action-item .monaco-select-box{padding:0 23px 0 8px}.monaco-pane-view:lang(ja) .pane>.pane-header,.monaco-pane-view:lang(ko) .pane>.pane-header,.monaco-pane-view:lang(zh-Hans) .pane>.pane-header,.monaco-pane-view:lang(zh-Hant) .pane>.pane-header{font-weight:400}.monaco-pane-view .pane>.pane-header.hidden{display:none}.monaco-pane-view .pane>.pane-body{flex:1;overflow:hidden}.monaco-pane-view.animated .split-view-view{transition-duration:.15s;transition-timing-function:ease-out}.reduce-motion .monaco-pane-view .split-view-view{transition-duration:0s!important}.monaco-pane-view.animated.vertical .split-view-view{transition-property:height}.monaco-pane-view.animated.horizontal .split-view-view{transition-property:width}#monaco-pane-drop-overlay{box-sizing:border-box;height:100%;left:0;position:absolute;width:100%;z-index:10000}#monaco-pane-drop-overlay>.pane-overlay-indicator{height:100%;min-height:22px;min-width:19px;pointer-events:none;position:absolute;transition:opacity .15s ease-out;width:100%}#monaco-pane-drop-overlay>.pane-overlay-indicator.overlay-move-transition{transition:top 70ms ease-out,left 70ms ease-out,width 70ms ease-out,height 70ms ease-out,opacity .15s ease-out}";
3
3
  n(css,{});
4
4
  export { css, css as default };
@@ -36,6 +36,7 @@ declare abstract class Pane extends Disposable implements IView {
36
36
  protected _orientation: Orientation;
37
37
  private expandedSize;
38
38
  private _headerVisible;
39
+ private _collapsible;
39
40
  private _bodyRendered;
40
41
  private _minimumBodySize;
41
42
  private _maximumBodySize;
@@ -64,6 +65,8 @@ declare abstract class Pane extends Disposable implements IView {
64
65
  setExpanded(expanded: boolean): boolean;
65
66
  get headerVisible(): boolean;
66
67
  set headerVisible(visible: boolean);
68
+ get collapsible(): boolean;
69
+ set collapsible(collapsible: boolean);
67
70
  get orientation(): Orientation;
68
71
  set orientation(orientation: Orientation);
69
72
  render(): void;
@@ -1,6 +1,6 @@
1
1
  import { isFirefox } from 'monaco-editor/esm/vs/base/browser/browser.js';
2
2
  import { DataTransfers } from 'monaco-editor/esm/vs/base/browser/dnd.js';
3
- import { $, append, trackFocus, EventType, addDisposableListener, EventHelper, clearNode } from 'monaco-editor/esm/vs/base/browser/dom.js';
3
+ import { $, getWindow, append, trackFocus, EventType, addDisposableListener, EventHelper, clearNode } from 'monaco-editor/esm/vs/base/browser/dom.js';
4
4
  import { DomEmitter } from 'monaco-editor/esm/vs/base/browser/event.js';
5
5
  import { StandardKeyboardEvent } from 'monaco-editor/esm/vs/base/browser/keyboardEvent.js';
6
6
  import { Gesture, EventType as EventType$1 } from 'monaco-editor/esm/vs/base/browser/touch.js';
@@ -61,6 +61,7 @@ class Pane extends Disposable {
61
61
  super();
62
62
  this.expandedSize = undefined;
63
63
  this._headerVisible = true;
64
+ this._collapsible = true;
64
65
  this._bodyRendered = false;
65
66
  this.styles = {
66
67
  dropBackground: undefined,
@@ -91,6 +92,9 @@ class Pane extends Disposable {
91
92
  return this._expanded;
92
93
  }
93
94
  setExpanded(expanded) {
95
+ if (!expanded && !this.collapsible) {
96
+ return false;
97
+ }
94
98
  if (this._expanded === !!expanded) {
95
99
  return false;
96
100
  }
@@ -103,12 +107,12 @@ class Pane extends Disposable {
103
107
  this._bodyRendered = true;
104
108
  }
105
109
  if (typeof this.animationTimer === 'number') {
106
- clearTimeout(this.animationTimer);
110
+ getWindow(this.element).clearTimeout(this.animationTimer);
107
111
  }
108
112
  append(this.element, this.body);
109
113
  }
110
114
  else {
111
- this.animationTimer = window.setTimeout(() => {
115
+ this.animationTimer = getWindow(this.element).setTimeout(() => {
112
116
  this.body.remove();
113
117
  }, 200);
114
118
  }
@@ -127,6 +131,16 @@ class Pane extends Disposable {
127
131
  this.updateHeader();
128
132
  this._onDidChange.fire(undefined);
129
133
  }
134
+ get collapsible() {
135
+ return this._collapsible;
136
+ }
137
+ set collapsible(collapsible) {
138
+ if (this._collapsible === !!collapsible) {
139
+ return;
140
+ }
141
+ this._collapsible = !!collapsible;
142
+ this.updateHeader();
143
+ }
130
144
  get orientation() {
131
145
  return this._orientation;
132
146
  }
@@ -200,12 +214,21 @@ class Pane extends Disposable {
200
214
  }
201
215
  updateHeader() {
202
216
  const expanded = !this.headerVisible || this.isExpanded();
217
+ if (this.collapsible) {
218
+ this.header.setAttribute('tabindex', '0');
219
+ this.header.setAttribute('role', 'button');
220
+ }
221
+ else {
222
+ this.header.removeAttribute('tabindex');
223
+ this.header.removeAttribute('role');
224
+ }
203
225
  this.header.style.lineHeight = `${this.headerSize}px`;
204
226
  this.header.classList.toggle('hidden', !this.headerVisible);
205
227
  this.header.classList.toggle('expanded', expanded);
228
+ this.header.classList.toggle('not-collapsible', !this.collapsible);
206
229
  this.header.setAttribute('aria-expanded', String(expanded));
207
- this.header.style.color = this.styles.headerForeground ?? '';
208
- this.header.style.backgroundColor = this.styles.headerBackground ?? '';
230
+ this.header.style.color = this.collapsible ? this.styles.headerForeground ?? '' : '';
231
+ this.header.style.backgroundColor = (this.collapsible ? this.styles.headerBackground : 'transparent') ?? '';
209
232
  this.header.style.borderTop = this.styles.headerBorder && this.orientation === 0 ? `1px solid ${this.styles.headerBorder}` : '';
210
233
  this.element.style.borderLeft = this.styles.leftBorder && this.orientation === 1 ? `1px solid ${this.styles.leftBorder}` : '';
211
234
  }
@@ -237,9 +260,9 @@ class PaneDraggable extends Disposable {
237
260
  if (isFirefox) {
238
261
  e.dataTransfer?.setData(DataTransfers.TEXT, this.pane.draggableElement.textContent || '');
239
262
  }
240
- const dragImage = append(document.body, $('.monaco-drag-image', {}, this.pane.draggableElement.textContent || ''));
263
+ const dragImage = append(this.pane.element.ownerDocument.body, $('.monaco-drag-image', {}, this.pane.draggableElement.textContent || ''));
241
264
  e.dataTransfer.setDragImage(dragImage, -10, -10);
242
- setTimeout(() => document.body.removeChild(dragImage), 0);
265
+ setTimeout(() => this.pane.element.ownerDocument.body.removeChild(dragImage), 0);
243
266
  this.context.draggable = this;
244
267
  }
245
268
  onDragEnter(e) {
@@ -408,10 +431,10 @@ class PaneView extends Disposable {
408
431
  }
409
432
  setupAnimation() {
410
433
  if (typeof this.animationTimer === 'number') {
411
- window.clearTimeout(this.animationTimer);
434
+ getWindow(this.element).clearTimeout(this.animationTimer);
412
435
  }
413
436
  this.element.classList.add('animated');
414
- this.animationTimer = window.setTimeout(() => {
437
+ this.animationTimer = getWindow(this.element).setTimeout(() => {
415
438
  this.animationTimer = undefined;
416
439
  this.element.classList.remove('animated');
417
440
  }, 200);
@@ -421,7 +444,7 @@ class PaneView extends Disposable {
421
444
  }
422
445
  focusPrevious() {
423
446
  const headers = this.getPaneHeaderElements();
424
- const index = headers.indexOf(document.activeElement);
447
+ const index = headers.indexOf(this.element.ownerDocument.activeElement);
425
448
  if (index === -1) {
426
449
  return;
427
450
  }
@@ -429,7 +452,7 @@ class PaneView extends Disposable {
429
452
  }
430
453
  focusNext() {
431
454
  const headers = this.getPaneHeaderElements();
432
- const index = headers.indexOf(document.activeElement);
455
+ const index = headers.indexOf(this.element.ownerDocument.activeElement);
433
456
  if (index === -1) {
434
457
  return;
435
458
  }
@@ -19,20 +19,6 @@ interface IRunEvent {
19
19
  readonly action: IAction;
20
20
  readonly error?: Error;
21
21
  }
22
- declare class Separator implements IAction {
23
- /**
24
- * Joins all non-empty lists of actions with separators.
25
- */
26
- static join(...actionLists: readonly IAction[][]): IAction[];
27
- static readonly ID = "vs.actions.separator";
28
- readonly id: string;
29
- readonly label: string;
30
- readonly tooltip: string;
31
- readonly class: string;
32
- readonly enabled: boolean;
33
- readonly checked: boolean;
34
- run(): Promise<void>;
35
- }
36
22
  declare class SubmenuAction implements IAction {
37
23
  readonly id: string;
38
24
  readonly label: string;
@@ -46,4 +32,4 @@ declare class SubmenuAction implements IAction {
46
32
  run(): Promise<void>;
47
33
  }
48
34
 
49
- export { type IAction, type IActionRunner, type IRunEvent, Separator, SubmenuAction };
35
+ export { type IAction, type IActionRunner, type IRunEvent, SubmenuAction };
@@ -1,35 +1,5 @@
1
- import { IDisposable } from './lifecycle.js';
2
-
3
1
  interface CancelablePromise<T> extends Promise<T> {
4
2
  cancel(): void;
5
3
  }
6
- declare class RunOnceScheduler implements IDisposable {
7
- protected runner: ((...args: unknown[]) => void) | null;
8
- private timeoutToken;
9
- private timeout;
10
- private timeoutHandler;
11
- constructor(runner: (...args: any[]) => void, delay: number);
12
- /**
13
- * Dispose RunOnceScheduler
14
- */
15
- dispose(): void;
16
- /**
17
- * Cancel current scheduled runner (if any).
18
- */
19
- cancel(): void;
20
- /**
21
- * Cancel previous runner (if any) & schedule a new runner.
22
- */
23
- schedule(delay?: number): void;
24
- get delay(): number;
25
- set delay(value: number);
26
- /**
27
- * Returns true if scheduled.
28
- */
29
- isScheduled(): boolean;
30
- flush(): void;
31
- private onTimeout;
32
- protected doRun(): void;
33
- }
34
4
 
35
- export { type CancelablePromise, RunOnceScheduler };
5
+ export type { CancelablePromise };