@codingame/monaco-vscode-api 1.83.16 → 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 (328) hide show
  1. package/api.js +13 -7
  2. package/assets/clear.mp3 +0 -0
  3. package/assets/format.mp3 +0 -0
  4. package/assets/save.mp3 +0 -0
  5. package/extensions.d.ts +13 -3
  6. package/external/{xterm-addon-image/typings/xterm-addon-image.d.ts → @xterm/addon-image/typings/addon-image.d.ts} +1 -1
  7. package/external/{xterm → @xterm/xterm}/typings/xterm.d.ts +13 -1
  8. package/lifecycle.js +2 -2
  9. package/localExtensionHost.js +3 -1
  10. package/missing-services.js +115 -23
  11. package/monaco-editor-treemending.patch +6884 -18018
  12. package/monaco-treemending.js +2 -2
  13. package/package.json +7 -7
  14. package/service-override/tools/editor.d.ts +8 -8
  15. package/service-override/tools/editor.js +44 -19
  16. package/services.d.ts +2 -2
  17. package/services.js +3 -3
  18. package/vscode/src/vs/base/browser/broadcast.js +6 -5
  19. package/vscode/src/vs/base/browser/dnd.d.ts +6 -0
  20. package/vscode/src/vs/base/browser/mouseEvent.d.ts +1 -1
  21. package/vscode/src/vs/base/browser/touch.d.ts +10 -0
  22. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.d.ts +1 -0
  23. package/vscode/src/vs/base/browser/ui/iconLabel/iconHoverDelegate.d.ts +22 -15
  24. package/vscode/src/vs/base/browser/ui/menu/menubar.js +4 -3
  25. package/vscode/src/vs/base/browser/ui/splitview/paneview.css.js +1 -1
  26. package/vscode/src/vs/base/browser/ui/splitview/paneview.d.ts +3 -0
  27. package/vscode/src/vs/base/browser/ui/splitview/paneview.js +34 -11
  28. package/vscode/src/vs/base/common/actions.d.ts +1 -15
  29. package/vscode/src/vs/base/common/async.d.ts +1 -31
  30. package/vscode/src/vs/base/common/event.d.ts +2 -1
  31. package/vscode/src/vs/base/common/observableInternal/base.d.ts +23 -10
  32. package/vscode/src/vs/base/common/prefixTree.js +21 -11
  33. package/vscode/src/vs/base/common/product.d.ts +16 -2
  34. package/vscode/src/vs/base/common/resourceTree.js +135 -0
  35. package/vscode/src/vs/base/common/skipList.js +1 -0
  36. package/vscode/src/vs/base/common/tfIdf.js +137 -0
  37. package/vscode/src/vs/base/common/types.d.ts +13 -1
  38. package/vscode/src/vs/base/common/verifier.js +62 -0
  39. package/vscode/src/vs/editor/browser/editorBrowser.d.ts +4 -2
  40. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +23 -4
  41. package/vscode/src/vs/editor/common/core/lineRange.d.ts +1 -0
  42. package/vscode/src/vs/editor/common/core/offsetRange.d.ts +3 -0
  43. package/vscode/src/vs/editor/common/core/position.d.ts +1 -0
  44. package/vscode/src/vs/editor/common/editorCommon.d.ts +2 -1
  45. package/vscode/src/vs/editor/common/languages.d.ts +23 -1
  46. package/vscode/src/vs/editor/common/services/languageFeatures.d.ts +2 -1
  47. package/vscode/src/vs/editor/common/services/resolverService.d.ts +11 -2
  48. package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +16 -1
  49. package/vscode/src/vs/platform/action/common/action.d.ts +8 -0
  50. package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +4 -0
  51. package/vscode/src/vs/platform/actions/common/actions.d.ts +8 -0
  52. package/vscode/src/vs/platform/audioCues/browser/audioCueService.d.ts +6 -0
  53. package/vscode/src/vs/platform/commands/common/commands.d.ts +13 -5
  54. package/vscode/src/vs/platform/dialogs/common/dialogs.d.ts +9 -3
  55. package/vscode/src/vs/platform/dialogs/common/dialogs.js +5 -2
  56. package/vscode/src/vs/platform/editor/common/editor.d.ts +3 -15
  57. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +1 -0
  58. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +3 -15
  59. package/vscode/src/vs/platform/extensionManagement/common/implicitActivationEvents.js +5 -0
  60. package/vscode/src/vs/platform/extensions/common/extensions.d.ts +0 -1
  61. package/vscode/src/vs/platform/files/common/files.d.ts +72 -8
  62. package/vscode/src/vs/platform/files/common/watcher.js +77 -0
  63. package/vscode/src/vs/platform/keybinding/common/keybindingsRegistry.d.ts +2 -2
  64. package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +52 -21
  65. package/vscode/src/vs/platform/request/browser/requestService.js +3 -0
  66. package/vscode/src/vs/platform/request/common/requestIpc.js +17 -0
  67. package/vscode/src/vs/platform/storage/common/storage.js +2 -2
  68. package/vscode/src/vs/platform/telemetry/common/telemetry.d.ts +1 -0
  69. package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +12 -7
  70. package/vscode/src/vs/platform/terminal/common/capabilities/{commandDetectionCapability.d.ts → commandDetection/terminalCommand.d.ts} +3 -2
  71. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +257 -0
  72. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +439 -354
  73. package/vscode/src/vs/platform/window/common/window.d.ts +9 -2
  74. package/vscode/src/vs/platform/window/common/window.js +6 -1
  75. package/vscode/src/vs/platform/workspaces/common/workspaces.d.ts +2 -43
  76. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +113 -81
  77. package/vscode/src/vs/workbench/api/common/extHost.protocol.js +5 -4
  78. package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +25 -3
  79. package/vscode/src/vs/workbench/api/common/extHostChat.js +13 -163
  80. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +412 -0
  81. package/vscode/src/vs/workbench/api/common/extHostChatProvider.js +79 -11
  82. package/vscode/src/vs/workbench/api/common/extHostCommands.js +13 -12
  83. package/vscode/src/vs/workbench/api/common/extHostComments.js +1 -1
  84. package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +8 -6
  85. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +1 -1
  86. package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +36 -19
  87. package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +52 -31
  88. package/vscode/src/vs/workbench/api/common/extHostIssueReporter.js +38 -0
  89. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +28 -3
  90. package/vscode/src/vs/workbench/api/common/extHostLanguages.js +10 -0
  91. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +117 -2
  92. package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +32 -4
  93. package/vscode/src/vs/workbench/api/common/extHostSCM.js +85 -23
  94. package/vscode/src/vs/workbench/api/common/extHostSearch.js +3 -0
  95. package/vscode/src/vs/workbench/api/common/extHostSpeech.js +42 -0
  96. package/vscode/src/vs/workbench/api/common/extHostTask.js +2 -1
  97. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -0
  98. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +3 -3
  99. package/vscode/src/vs/workbench/api/common/extHostTesting.js +97 -47
  100. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +115 -16
  101. package/vscode/src/vs/workbench/api/common/extHostTypes.js +66 -36
  102. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +6 -1
  103. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +182 -75
  104. package/vscode/src/vs/workbench/browser/actions/windowActions.js +176 -4
  105. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +143 -2
  106. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +237 -0
  107. package/vscode/src/vs/workbench/browser/composite.d.ts +0 -4
  108. package/vscode/src/vs/workbench/browser/composite.js +5 -4
  109. package/vscode/src/vs/workbench/browser/dnd.js +72 -23
  110. package/vscode/src/vs/workbench/browser/labels.js +7 -3
  111. package/vscode/src/vs/workbench/browser/media/part.css.js +1 -1
  112. package/vscode/src/vs/workbench/browser/panecomposite.d.ts +2 -2
  113. package/vscode/src/vs/workbench/browser/panecomposite.js +2 -0
  114. package/vscode/src/vs/workbench/browser/part.js +33 -2
  115. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +99 -117
  116. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +173 -33
  117. package/vscode/src/vs/workbench/browser/parts/editor/editor.js +102 -6
  118. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +256 -17
  119. package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +4 -0
  120. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +68 -35
  121. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +5 -5
  122. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +35 -16
  123. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +348 -0
  124. package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +43 -31
  125. package/vscode/src/vs/workbench/browser/parts/editor/media/editortabscontrol.css.js +4 -0
  126. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -0
  127. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -0
  128. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +14 -2
  129. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +4 -4
  130. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +277 -0
  131. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +5 -2
  132. package/vscode/src/vs/workbench/browser/parts/panel/media/panelpart.css.js +1 -1
  133. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +3 -38
  134. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.d.ts +54 -52
  135. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +2 -1
  136. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.d.ts +25 -0
  137. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +258 -0
  138. package/vscode/src/vs/workbench/browser/parts/views/media/paneviewlet.css.js +1 -1
  139. package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +2 -5
  140. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +157 -117
  141. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +50 -23
  142. package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +26 -11
  143. package/vscode/src/vs/workbench/browser/parts/views/viewsViewlet.js +10 -6
  144. package/vscode/src/vs/workbench/browser/style.js +2 -1
  145. package/vscode/src/vs/workbench/browser/web.api.d.ts +39 -2
  146. package/vscode/src/vs/workbench/browser/window.js +55 -0
  147. package/vscode/src/vs/workbench/browser/workbench.contribution.js +220 -40
  148. package/vscode/src/vs/workbench/common/activity.js +3 -0
  149. package/vscode/src/vs/workbench/common/contextkeys.js +35 -5
  150. package/vscode/src/vs/workbench/common/contributions.js +4 -3
  151. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +14 -4
  152. package/vscode/src/vs/workbench/common/editor/diffEditorModel.js +1 -1
  153. package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +22 -19
  154. package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +4 -3
  155. package/vscode/src/vs/workbench/common/editor/editorModel.d.ts +1 -2
  156. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +22 -4
  157. package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +3 -3
  158. package/vscode/src/vs/workbench/common/editor.d.ts +60 -30
  159. package/vscode/src/vs/workbench/common/editor.js +11 -3
  160. package/vscode/src/vs/workbench/common/theme.js +2 -2
  161. package/vscode/src/vs/workbench/common/views.d.ts +4 -4
  162. package/vscode/src/vs/workbench/common/views.js +3 -1
  163. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +97 -8
  164. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +17 -99
  165. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +103 -37
  166. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +2 -3
  167. package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +127 -0
  168. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +71 -0
  169. package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +2 -1
  170. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +33 -110
  171. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +64 -0
  172. package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +94 -0
  173. package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +6 -1
  174. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +1 -88
  175. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +4 -4
  176. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -2
  177. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +3 -1
  178. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +15 -16
  179. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +9 -3
  180. package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +3 -1
  181. package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +2 -3
  182. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +1 -0
  183. package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +9 -1
  184. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +10 -1
  185. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +114 -22
  186. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +1 -1
  187. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +4 -1
  188. package/vscode/src/vs/workbench/contrib/files/browser/explorerFileContrib.js +19 -0
  189. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +10 -8
  190. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +62 -10
  191. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +2 -1
  192. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +9 -8
  193. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +10 -1
  194. package/vscode/src/vs/workbench/contrib/files/browser/files.d.ts +1 -0
  195. package/vscode/src/vs/workbench/contrib/files/browser/files.js +7 -3
  196. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +4 -4
  197. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +64 -36
  198. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +42 -17
  199. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +145 -25
  200. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +1 -1
  201. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  202. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +36 -0
  203. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +3 -1
  204. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +24 -3
  205. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +11 -6
  206. package/vscode/src/vs/workbench/contrib/scm/common/scm.js +1 -2
  207. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/searchNotebookHelpers.js +31 -0
  208. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +61 -41
  209. package/vscode/src/vs/workbench/contrib/search/{browser/searchNotebookHelpers.js → common/cellSearchModel.js} +4 -63
  210. package/vscode/src/vs/workbench/contrib/search/common/searchNotebookHelpers.js +40 -0
  211. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +2 -2
  212. package/vscode/src/vs/workbench/{services/editor/browser/editorDropService.js → contrib/speech/common/speechService.js} +2 -2
  213. package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +29 -4
  214. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +100 -79
  215. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +3 -3
  216. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +1 -1
  217. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcon.js +7 -4
  218. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +5 -3
  219. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +143 -41
  220. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +17 -11
  221. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +41 -26
  222. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +5 -2
  223. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +2 -8
  224. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +2 -0
  225. package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +115 -0
  226. package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.js +74 -0
  227. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +3 -3
  228. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +64 -1
  229. package/vscode/src/vs/workbench/contrib/testing/common/testingContextKeys.js +9 -0
  230. package/vscode/src/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.js +4 -3
  231. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +8 -9
  232. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput.js +1 -1
  233. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewIconManager.js +5 -2
  234. package/vscode/src/vs/workbench/services/activity/browser/activityService.d.ts +16 -10
  235. package/vscode/src/vs/workbench/services/activity/common/activity.d.ts +14 -1
  236. package/vscode/src/vs/workbench/services/activity/common/activity.js +1 -7
  237. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +9 -28
  238. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +273 -0
  239. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +1 -0
  240. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +2 -0
  241. package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +2 -3
  242. package/vscode/src/vs/workbench/services/editor/browser/editorService.d.ts +7 -5
  243. package/vscode/src/vs/workbench/services/editor/browser/editorService.js +59 -37
  244. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +193 -94
  245. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.js +2 -2
  246. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +8 -2
  247. package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +8 -1
  248. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +62 -16
  249. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +5 -3
  250. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +3 -2
  251. package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +4 -9
  252. package/vscode/src/vs/workbench/services/extensions/common/{extensionHostManager.d.ts → extensionHostManagers.d.ts} +2 -0
  253. package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.d.ts +1 -1
  254. package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +9 -0
  255. package/vscode/src/vs/workbench/services/extensions/common/extensions.js +22 -0
  256. package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +14 -3
  257. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +9 -0
  258. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +3 -3
  259. package/vscode/src/vs/workbench/services/history/common/history.d.ts +2 -2
  260. package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +49 -18
  261. package/vscode/src/vs/workbench/services/host/browser/host.d.ts +29 -7
  262. package/vscode/src/vs/workbench/services/hover/browser/hover.d.ts +51 -28
  263. package/vscode/src/vs/workbench/services/hover/browser/hoverService.d.ts +5 -2
  264. package/vscode/src/vs/workbench/services/keybinding/browser/unboundCommands.js +2 -2
  265. package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.d.ts +4 -1
  266. package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +40 -36
  267. package/vscode/src/vs/workbench/services/panecomposite/browser/panecomposite.d.ts +0 -6
  268. package/vscode/src/vs/workbench/services/preferences/common/preferences.d.ts +3 -0
  269. package/vscode/src/vs/workbench/services/progress/browser/progressIndicator.js +2 -2
  270. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +16 -1
  271. package/vscode/src/vs/workbench/services/request/browser/requestService.js +48 -0
  272. package/vscode/src/vs/workbench/services/search/common/searchHelpers.js +4 -4
  273. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +10 -51
  274. package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +2 -2
  275. package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +32 -1
  276. package/vscode/src/vs/workbench/services/textfile/common/textEditorService.js +1 -5
  277. package/vscode/src/vs/workbench/services/themes/browser/browserHostColorSchemeService.js +4 -3
  278. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +9 -3
  279. package/vscode/src/vs/workbench/services/title/browser/titleService.d.ts +18 -0
  280. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +18 -3
  281. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorModel.js +16 -7
  282. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +6 -0
  283. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +13 -0
  284. package/vscode/src/vs/workbench/services/url/browser/urlService.js +2 -1
  285. package/vscode/src/vs/workbench/services/userActivity/common/userActivityService.js +2 -2
  286. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +9 -0
  287. package/vscode-dts/vscode.proposed.chatAgents2.d.ts +375 -0
  288. package/vscode-dts/vscode.proposed.chatAgents2Additions.d.ts +80 -0
  289. package/vscode-dts/vscode.proposed.chatProvider.d.ts +5 -1
  290. package/vscode-dts/vscode.proposed.chatRequestAccess.d.ts +68 -10
  291. package/vscode-dts/vscode.proposed.chatTab.d.ts +21 -0
  292. package/vscode-dts/vscode.proposed.chatVariables.d.ts +5 -1
  293. package/vscode-dts/vscode.proposed.codeActionAI.d.ts +16 -0
  294. package/vscode-dts/vscode.proposed.contribSourceControlInputBoxMenu.d.ts +7 -0
  295. package/vscode-dts/vscode.proposed.createFileSystemWatcher.d.ts +51 -0
  296. package/vscode-dts/vscode.proposed.defaultChatAgent.d.ts +30 -0
  297. package/vscode-dts/vscode.proposed.handleIssueUri.d.ts +26 -0
  298. package/vscode-dts/vscode.proposed.interactive.d.ts +26 -100
  299. package/vscode-dts/vscode.proposed.interactiveUserActions.d.ts +14 -7
  300. package/vscode-dts/vscode.proposed.languageStatusText.d.ts +12 -0
  301. package/vscode-dts/vscode.proposed.multiDocumentHighlightProvider.d.ts +63 -0
  302. package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +43 -0
  303. package/vscode-dts/vscode.proposed.resolvers.d.ts +100 -1
  304. package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +9 -1
  305. package/vscode-dts/vscode.proposed.scmInputBoxActionButton.d.ts +19 -0
  306. package/vscode-dts/vscode.proposed.scmInputBoxValueProvider.d.ts +25 -0
  307. package/vscode-dts/vscode.proposed.speech.d.ts +35 -0
  308. package/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts +11 -7
  309. package/vscode-dts/vscode.proposed.testCoverage.d.ts +6 -1
  310. package/vscode-dts/vscode.proposed.testingActiveProfile.d.ts +21 -0
  311. package/external/xterm-headless/typings/xterm-headless.d.ts +0 -49
  312. package/vscode/src/vs/platform/backup/common/backup.d.ts +0 -14
  313. package/vscode/src/vs/platform/update/common/update.d.ts +0 -112
  314. package/vscode/src/vs/workbench/api/common/extHostChatAgents.js +0 -62
  315. package/vscode/src/vs/workbench/api/common/extHostChatSlashCommand.js +0 -62
  316. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +0 -56
  317. package/vscode/src/vs/workbench/services/files/common/files.js +0 -4
  318. package/vscode/src/vs/workbench/services/host/browser/browserHostService.d.ts +0 -41
  319. package/vscode/src/vs/workbench/services/title/common/titleService.d.ts +0 -31
  320. package/vscode-dts/vscode.proposed.chatAgents.d.ts +0 -39
  321. package/vscode-dts/vscode.proposed.chatSlashCommands.d.ts +0 -47
  322. package/vscode-dts/vscode.proposed.testMessageContextValue.d.ts +0 -45
  323. /package/external/{xterm-addon-canvas/typings/xterm-addon-canvas.d.ts → @xterm/addon-canvas/typings/addon-canvas.d.ts} +0 -0
  324. /package/external/{xterm-addon-search/typings/xterm-addon-search.d.ts → @xterm/addon-search/typings/addon-search.d.ts} +0 -0
  325. /package/external/{xterm-addon-serialize/typings/xterm-addon-serialize.d.ts → @xterm/addon-serialize/typings/addon-serialize.d.ts} +0 -0
  326. /package/external/{xterm-addon-unicode11/typings/xterm-addon-unicode11.d.ts → @xterm/addon-unicode11/typings/addon-unicode11.d.ts} +0 -0
  327. /package/external/{xterm-addon-webgl/typings/xterm-addon-webgl.d.ts → @xterm/addon-webgl/typings/addon-webgl.d.ts} +0 -0
  328. /package/vscode/src/vs/workbench/services/title/{common → browser}/titleService.js +0 -0
@@ -535,9 +535,12 @@ interface IEditorOptions {
535
535
  selectionHighlight?: boolean;
536
536
  /**
537
537
  * Enable semantic occurrences highlight.
538
- * Defaults to true.
538
+ * Defaults to 'singleFile'.
539
+ * 'off' disables occurrence highlighting
540
+ * 'singleFile' triggers occurrence highlighting in the current document
541
+ * 'multiFile' triggers occurrence highlighting across valid open documents
539
542
  */
540
- occurrencesHighlight?: boolean;
543
+ occurrencesHighlight?: 'off' | 'singleFile' | 'multiFile';
541
544
  /**
542
545
  * Show code lens
543
546
  * Defaults to true.
@@ -906,6 +909,11 @@ interface IEditorHoverOptions {
906
909
  */
907
910
  above?: boolean;
908
911
  }
912
+ declare enum ShowAiIconMode {
913
+ Off = "off",
914
+ OnCode = "onCode",
915
+ On = "on"
916
+ }
909
917
  /**
910
918
  * Configuration options for editor lightbulb
911
919
  */
@@ -915,6 +923,12 @@ interface IEditorLightbulbOptions {
915
923
  * Defaults to true.
916
924
  */
917
925
  enabled?: boolean;
926
+ experimental?: {
927
+ /**
928
+ * Highlight AI code actions with AI icon
929
+ */
930
+ showAiIcon?: ShowAiIconMode;
931
+ };
918
932
  }
919
933
  interface IEditorStickyScrollOptions {
920
934
  /**
@@ -1120,6 +1134,11 @@ interface IEditorScrollbarOptions {
1120
1134
  * Defaults to false.
1121
1135
  */
1122
1136
  scrollByPage?: boolean;
1137
+ /**
1138
+ * When set, the horizontal scrollbar will not increase content height.
1139
+ * Defaults to false.
1140
+ */
1141
+ ignoreHorizontalScrollbarInContentHeight?: boolean;
1123
1142
  }
1124
1143
  type InUntrustedWorkspace = 'inUntrustedWorkspace';
1125
1144
  /**
@@ -1168,7 +1187,7 @@ interface IInlineSuggestOptions {
1168
1187
  * Defaults to `prefix`.
1169
1188
  */
1170
1189
  mode?: 'prefix' | 'subword' | 'subwordSmart';
1171
- showToolbar?: 'always' | 'onHover';
1190
+ showToolbar?: 'always' | 'onHover' | 'never';
1172
1191
  suppressSuggestions?: boolean;
1173
1192
  /**
1174
1193
  * Does not clear active inline suggestions when the editor loses focus.
@@ -1412,4 +1431,4 @@ interface IPasteAsOptions {
1412
1431
  showPasteSelector?: 'afterPaste' | 'never';
1413
1432
  }
1414
1433
 
1415
- export { type EditorAutoClosingEditStrategy, type EditorAutoClosingStrategy, EditorAutoIndentStrategy, type EditorAutoSurroundStrategy, type GoToLocationValues, type IBracketPairColorizationOptions, type IDiffEditorBaseOptions, type IDiffEditorOptions, type IDropIntoEditorOptions, type IEditorCommentsOptions, type IEditorFindOptions, type IEditorHoverOptions, type IEditorInlayHintsOptions, type IEditorLightbulbOptions, type IEditorMinimapOptions, type IEditorOptions, type IEditorPaddingOptions, type IEditorParameterHintOptions, type IEditorScrollbarOptions, type IEditorStickyScrollOptions, type IGotoLocationOptions, type IGuidesOptions, type IInlineSuggestOptions, type IPasteAsOptions, type IQuickSuggestionsOptions, type IRulerOption, type ISmartSelectOptions, type ISuggestOptions, type IUnicodeHighlightOptions, type InUntrustedWorkspace, type LineNumbersType, type QuickSuggestionsValue };
1434
+ export { type EditorAutoClosingEditStrategy, type EditorAutoClosingStrategy, EditorAutoIndentStrategy, type EditorAutoSurroundStrategy, type GoToLocationValues, type IBracketPairColorizationOptions, type IDiffEditorBaseOptions, type IDiffEditorOptions, type IDropIntoEditorOptions, type IEditorCommentsOptions, type IEditorFindOptions, type IEditorHoverOptions, type IEditorInlayHintsOptions, type IEditorLightbulbOptions, type IEditorMinimapOptions, type IEditorOptions, type IEditorPaddingOptions, type IEditorParameterHintOptions, type IEditorScrollbarOptions, type IEditorStickyScrollOptions, type IGotoLocationOptions, type IGuidesOptions, type IInlineSuggestOptions, type IPasteAsOptions, type IQuickSuggestionsOptions, type IRulerOption, type ISmartSelectOptions, type ISuggestOptions, type IUnicodeHighlightOptions, type InUntrustedWorkspace, type LineNumbersType, type QuickSuggestionsValue, ShowAiIconMode };
@@ -6,6 +6,7 @@ import { Range } from './range.js';
6
6
  */
7
7
  declare class LineRange {
8
8
  static fromRange(range: Range): LineRange;
9
+ static fromRangeInclusive(range: Range): LineRange;
9
10
  static subtract(a: LineRange, b: LineRange | undefined): LineRange[];
10
11
  /**
11
12
  * @param lineRanges An array of sorted line ranges.
@@ -11,6 +11,7 @@ declare class OffsetRange implements IOffsetRange {
11
11
  static addRange(range: OffsetRange, sortedRanges: OffsetRange[]): void;
12
12
  static tryCreate(start: number, endExclusive: number): OffsetRange | undefined;
13
13
  static ofLength(length: number): OffsetRange;
14
+ static ofStartAndLength(start: number, length: number): OffsetRange;
14
15
  constructor(start: number, endExclusive: number);
15
16
  get isEmpty(): boolean;
16
17
  delta(offset: number): OffsetRange;
@@ -34,6 +35,8 @@ declare class OffsetRange implements IOffsetRange {
34
35
  */
35
36
  intersect(other: OffsetRange): OffsetRange | undefined;
36
37
  intersectsOrTouches(other: OffsetRange): boolean;
38
+ isBefore(other: OffsetRange): boolean;
39
+ isAfter(other: OffsetRange): boolean;
37
40
  slice<T>(arr: T[]): T[];
38
41
  /**
39
42
  * Returns the given value if it is contained in this instance, otherwise the closest value that is contained.
@@ -86,6 +86,7 @@ declare class Position {
86
86
  * Test if `obj` is an `IPosition`.
87
87
  */
88
88
  static isIPosition(obj: any): obj is IPosition;
89
+ toJSON(): IPosition;
89
90
  }
90
91
 
91
92
  export { type IPosition, Position };
@@ -1,3 +1,4 @@
1
+ import { IDisposable } from '../../base/common/lifecycle.js';
1
2
  import * as monaco from 'monaco-editor';
2
3
  import { UriComponents } from '../../base/common/uri.js';
3
4
  import { ThemeColor } from '../../base/common/themables.js';
@@ -17,7 +18,7 @@ interface IDiffEditorModel {
17
18
  */
18
19
  modified: ITextModel;
19
20
  }
20
- interface IDiffEditorViewModel {
21
+ interface IDiffEditorViewModel extends IDisposable {
21
22
  readonly model: IDiffEditorModel;
22
23
  waitForDiff(): Promise<void>;
23
24
  }
@@ -14,6 +14,7 @@ import { LanguageId } from './encodedTokenAttributes.js';
14
14
  import { ITextModel, EndOfLineSequence } from './model.js';
15
15
  import { ExtensionIdentifier } from '../../platform/extensions/common/extensions.js';
16
16
  import { IMarkerData } from '../../platform/markers/common/markers.js';
17
+ import { LanguageFilter } from './languageSelector.js';
17
18
 
18
19
  /**
19
20
  * @internal
@@ -470,6 +471,7 @@ interface CodeAction {
470
471
  diagnostics?: IMarkerData[];
471
472
  kind?: string;
472
473
  isPreferred?: boolean;
474
+ isAI?: boolean;
473
475
  disabled?: string;
474
476
  }
475
477
  declare const enum CodeActionTriggerType {
@@ -668,6 +670,26 @@ interface DocumentHighlightProvider {
668
670
  */
669
671
  provideDocumentHighlights(model: ITextModel, position: Position, token: CancellationToken): ProviderResult<DocumentHighlight[]>;
670
672
  }
673
+ /**
674
+ * A provider that can provide document highlights across multiple documents.
675
+ */
676
+ interface MultiDocumentHighlightProvider {
677
+ selector: LanguageFilter;
678
+ /**
679
+ * Provide a Map of URI --> document highlights, like all occurrences of a variable or
680
+ * all exit-points of a function.
681
+ *
682
+ * Used in cases such as split view, notebooks, etc. where there can be multiple documents
683
+ * with shared symbols.
684
+ *
685
+ * @param primaryModel The primary text model.
686
+ * @param position The position at which to provide document highlights.
687
+ * @param otherModels The other text models to search for document highlights.
688
+ * @param token A cancellation token.
689
+ * @returns A map of URI to document highlights.
690
+ */
691
+ provideMultiDocumentHighlights(primaryModel: ITextModel, position: Position, otherModels: ITextModel[], token: CancellationToken): ProviderResult<Map<URI, DocumentHighlight[]>>;
692
+ }
671
693
  /**
672
694
  * The linked editing range provider interface defines the contract between extensions and
673
695
  * the linked editing feature.
@@ -1277,4 +1299,4 @@ interface MappedEditsProvider {
1277
1299
  provideMappedEdits(document: ITextModel, codeBlocks: string[], context: MappedEditsContext, token: CancellationToken): Promise<WorkspaceEdit | null>;
1278
1300
  }
1279
1301
 
1280
- export { type CodeAction, type CodeActionContext, type CodeActionList, type CodeActionProvider, CodeActionTriggerType, type CodeLens, type CodeLensList, type CodeLensProvider, Command, type CompletionContext, type CompletionItem, CompletionItemInsertTextRule, CompletionItemKind, type CompletionItemLabel, type CompletionItemProvider, type CompletionItemRanges, CompletionItemTag, type CompletionList, CompletionTriggerKind, type DeclarationProvider, type Definition, type DefinitionProvider, type DocumentColorProvider, type DocumentContextItem, type DocumentFormattingEditProvider, type DocumentHighlight, DocumentHighlightKind, type DocumentHighlightProvider, type DocumentOnDropEdit, type DocumentOnDropEditProvider, type DocumentPasteEdit, type DocumentPasteEditProvider, type DocumentRangeFormattingEditProvider, type DocumentRangeSemanticTokensProvider, type DocumentSemanticTokensProvider, type DocumentSymbol, type DocumentSymbolProvider, type DropYieldTo, type EvaluatableExpression, type EvaluatableExpressionProvider, type FoldingContext, type FoldingRange, FoldingRangeKind, type FoldingRangeProvider, type FormattingOptions, type Hover, type HoverProvider, type IColor, type IColorInformation, type IColorPresentation, type IInplaceReplaceSupportResult, type ILanguageIdCodec, type ILink, type ILinksList, type IWorkspaceFileEdit, type IWorkspaceTextEdit, type ImplementationProvider, type InlayHint, InlayHintKind, type InlayHintLabelPart, type InlayHintList, type InlayHintsProvider, type InlineCompletion, type InlineCompletionContext, type InlineCompletionProviderGroupId, InlineCompletionTriggerKind, type InlineCompletions, type InlineCompletionsProvider, type InlineValue, type InlineValueContext, type InlineValueExpression, type InlineValueText, type InlineValueVariableLookup, type InlineValuesProvider, type LinkProvider, type LinkedEditingRangeProvider, type LinkedEditingRanges, type Location, type LocationLink, type MappedEditsContext, type MappedEditsProvider, type OnTypeFormattingEditProvider, type ParameterInformation, type ProviderResult, type ReferenceContext, type ReferenceProvider, type Rejection, type RenameLocation, type RenameProvider, SelectedSuggestionInfo, type SelectionRange, type SelectionRangeProvider, type SemanticTokens, type SemanticTokensEdit, type SemanticTokensEdits, type SemanticTokensLegend, type SignatureHelp, type SignatureHelpContext, type SignatureHelpProvider, type SignatureHelpResult, SignatureHelpTriggerKind, type SignatureInformation, SymbolKind, SymbolTag, TextEdit, type TypeDefinitionProvider, type WorkspaceEdit, type WorkspaceEditMetadata, type WorkspaceFileEditOptions };
1302
+ export { type CodeAction, type CodeActionContext, type CodeActionList, type CodeActionProvider, CodeActionTriggerType, type CodeLens, type CodeLensList, type CodeLensProvider, Command, type CompletionContext, type CompletionItem, CompletionItemInsertTextRule, CompletionItemKind, type CompletionItemLabel, type CompletionItemProvider, type CompletionItemRanges, CompletionItemTag, type CompletionList, CompletionTriggerKind, type DeclarationProvider, type Definition, type DefinitionProvider, type DocumentColorProvider, type DocumentContextItem, type DocumentFormattingEditProvider, type DocumentHighlight, DocumentHighlightKind, type DocumentHighlightProvider, type DocumentOnDropEdit, type DocumentOnDropEditProvider, type DocumentPasteEdit, type DocumentPasteEditProvider, type DocumentRangeFormattingEditProvider, type DocumentRangeSemanticTokensProvider, type DocumentSemanticTokensProvider, type DocumentSymbol, type DocumentSymbolProvider, type DropYieldTo, type EvaluatableExpression, type EvaluatableExpressionProvider, type FoldingContext, type FoldingRange, FoldingRangeKind, type FoldingRangeProvider, type FormattingOptions, type Hover, type HoverProvider, type IColor, type IColorInformation, type IColorPresentation, type IInplaceReplaceSupportResult, type ILanguageIdCodec, type ILink, type ILinksList, type IWorkspaceFileEdit, type IWorkspaceTextEdit, type ImplementationProvider, type InlayHint, InlayHintKind, type InlayHintLabelPart, type InlayHintList, type InlayHintsProvider, type InlineCompletion, type InlineCompletionContext, type InlineCompletionProviderGroupId, InlineCompletionTriggerKind, type InlineCompletions, type InlineCompletionsProvider, type InlineValue, type InlineValueContext, type InlineValueExpression, type InlineValueText, type InlineValueVariableLookup, type InlineValuesProvider, type LinkProvider, type LinkedEditingRangeProvider, type LinkedEditingRanges, type Location, type LocationLink, type MappedEditsContext, type MappedEditsProvider, type MultiDocumentHighlightProvider, type OnTypeFormattingEditProvider, type ParameterInformation, type ProviderResult, type ReferenceContext, type ReferenceProvider, type Rejection, type RenameLocation, type RenameProvider, SelectedSuggestionInfo, type SelectionRange, type SelectionRangeProvider, type SemanticTokens, type SemanticTokensEdit, type SemanticTokensEdits, type SemanticTokensLegend, type SignatureHelp, type SignatureHelpContext, type SignatureHelpProvider, type SignatureHelpResult, SignatureHelpTriggerKind, type SignatureInformation, SymbolKind, SymbolTag, TextEdit, type TypeDefinitionProvider, type WorkspaceEdit, type WorkspaceEditMetadata, type WorkspaceFileEditOptions };
@@ -1,6 +1,6 @@
1
1
  import { ServiceIdentifier } from '../../../platform/instantiation/common/instantiation.js';
2
2
  import { LanguageFeatureRegistry, NotebookInfoResolver } from '../languageFeatureRegistry.js';
3
- import { ReferenceProvider, DefinitionProvider, TypeDefinitionProvider, DeclarationProvider, ImplementationProvider, CodeActionProvider, DocumentPasteEditProvider, RenameProvider, DocumentFormattingEditProvider, DocumentRangeFormattingEditProvider, OnTypeFormattingEditProvider, DocumentSymbolProvider, InlayHintsProvider, DocumentColorProvider, CodeLensProvider, SignatureHelpProvider, HoverProvider, DocumentHighlightProvider, DocumentRangeSemanticTokensProvider, DocumentSemanticTokensProvider, SelectionRangeProvider, FoldingRangeProvider, LinkProvider, InlineCompletionsProvider, CompletionItemProvider, LinkedEditingRangeProvider, InlineValuesProvider, EvaluatableExpressionProvider, DocumentOnDropEditProvider, MappedEditsProvider } from '../languages.js';
3
+ import { ReferenceProvider, DefinitionProvider, TypeDefinitionProvider, DeclarationProvider, ImplementationProvider, CodeActionProvider, DocumentPasteEditProvider, RenameProvider, DocumentFormattingEditProvider, DocumentRangeFormattingEditProvider, OnTypeFormattingEditProvider, DocumentSymbolProvider, InlayHintsProvider, DocumentColorProvider, CodeLensProvider, SignatureHelpProvider, HoverProvider, DocumentHighlightProvider, MultiDocumentHighlightProvider, DocumentRangeSemanticTokensProvider, DocumentSemanticTokensProvider, SelectionRangeProvider, FoldingRangeProvider, LinkProvider, InlineCompletionsProvider, CompletionItemProvider, LinkedEditingRangeProvider, InlineValuesProvider, EvaluatableExpressionProvider, DocumentOnDropEditProvider, MappedEditsProvider } from '../languages.js';
4
4
 
5
5
  declare const ILanguageFeaturesService: ServiceIdentifier<ILanguageFeaturesService>;
6
6
  interface ILanguageFeaturesService {
@@ -23,6 +23,7 @@ interface ILanguageFeaturesService {
23
23
  readonly signatureHelpProvider: LanguageFeatureRegistry<SignatureHelpProvider>;
24
24
  readonly hoverProvider: LanguageFeatureRegistry<HoverProvider>;
25
25
  readonly documentHighlightProvider: LanguageFeatureRegistry<DocumentHighlightProvider>;
26
+ readonly multiDocumentHighlightProvider: LanguageFeatureRegistry<MultiDocumentHighlightProvider>;
26
27
  readonly documentRangeSemanticTokensProvider: LanguageFeatureRegistry<DocumentRangeSemanticTokensProvider>;
27
28
  readonly documentSemanticTokensProvider: LanguageFeatureRegistry<DocumentSemanticTokensProvider>;
28
29
  readonly selectionRangeProvider: LanguageFeatureRegistry<SelectionRangeProvider>;
@@ -1,9 +1,10 @@
1
1
  import { ServiceIdentifier } from '../../../platform/instantiation/common/instantiation.js';
2
+ import { Event } from '../../../base/common/event.js';
2
3
  import { IMarkdownString } from '../../../base/common/htmlContent.js';
3
4
  import { IReference, IDisposable } from '../../../base/common/lifecycle.js';
4
5
  import { URI } from '../../../base/common/uri.js';
5
6
  import { ITextModel, ITextSnapshot } from '../model.js';
6
- import { IEditorModel } from '../../../platform/editor/common/editor.js';
7
+ import { IResolvableEditorModel } from '../../../platform/editor/common/editor.js';
7
8
 
8
9
  declare const ITextModelService: ServiceIdentifier<ITextModelService>;
9
10
  interface ITextModelService {
@@ -28,7 +29,11 @@ interface ITextModelContentProvider {
28
29
  */
29
30
  provideTextContent(resource: URI): Promise<ITextModel | null> | null;
30
31
  }
31
- interface ITextEditorModel extends IEditorModel {
32
+ interface ITextEditorModel extends IResolvableEditorModel {
33
+ /**
34
+ * Emitted when the text model is about to be disposed.
35
+ */
36
+ readonly onWillDispose: Event<void>;
32
37
  /**
33
38
  * Provides access to the underlying `ITextModel`.
34
39
  */
@@ -46,6 +51,10 @@ interface ITextEditorModel extends IEditorModel {
46
51
  * The language id of the text model if known.
47
52
  */
48
53
  getLanguageId(): string | undefined;
54
+ /**
55
+ * Find out if this text model has been disposed.
56
+ */
57
+ isDisposed(): boolean;
49
58
  }
50
59
  interface IResolvedTextEditorModel extends ITextEditorModel {
51
60
  /**
@@ -25,5 +25,20 @@ interface IAccessibilityInformation {
25
25
  label: string;
26
26
  role?: string;
27
27
  }
28
+ declare const IAccessibleNotificationService: ServiceIdentifier<IAccessibleNotificationService>;
29
+ /**
30
+ * Manages whether an audio cue or an aria alert will be used
31
+ * in response to actions taken around the workbench.
32
+ * Targets screen reader and braille users.
33
+ */
34
+ interface IAccessibleNotificationService {
35
+ readonly _serviceBrand: undefined;
36
+ notify(event: AccessibleNotificationEvent, userGesture?: boolean): void;
37
+ }
38
+ declare const enum AccessibleNotificationEvent {
39
+ Clear = "clear",
40
+ Save = "save",
41
+ Format = "format"
42
+ }
28
43
 
29
- export { AccessibilitySupport, type IAccessibilityInformation, IAccessibilityService };
44
+ export { AccessibilitySupport, AccessibleNotificationEvent, type IAccessibilityInformation, IAccessibilityService, IAccessibleNotificationService };
@@ -2,6 +2,7 @@ import { URI } from '../../../base/common/uri.js';
2
2
  import { ContextKeyExpression } from '../../contextkey/common/contextkey.js';
3
3
  import { ThemeIcon } from '../../../base/common/themables.js';
4
4
  import { Categories } from './actionCommonCategories.js';
5
+ import { ICommandMetadata } from '../../commands/common/commands.js';
5
6
 
6
7
  interface ILocalizedString {
7
8
  /**
@@ -47,6 +48,13 @@ interface ICommandAction {
47
48
  id: string;
48
49
  title: string | ICommandActionTitle;
49
50
  shortTitle?: string | ICommandActionTitle;
51
+ /**
52
+ * Metadata about this command, used for:
53
+ * - API commands
54
+ * - when showing keybindings that have no other UX
55
+ * - when searching for commands in the Command Palette
56
+ */
57
+ metadata?: ICommandMetadata;
50
58
  category?: keyof typeof Categories | ILocalizedString | string;
51
59
  tooltip?: string | ILocalizedString;
52
60
  icon?: Icon;
@@ -29,9 +29,13 @@ let DropdownWithPrimaryActionViewItem = class DropdownWithPrimaryActionViewItem
29
29
  _contextMenuProvider,
30
30
  _accessibilityService
31
31
  ));
32
+ if (_options?.actionRunner) {
33
+ this._primaryAction.actionRunner = _options.actionRunner;
34
+ }
32
35
  this._dropdown = ( new DropdownMenuActionViewItem(dropdownAction, dropdownMenuActions, this._contextMenuProvider, {
33
36
  menuAsChild: true,
34
37
  classNames: className ? ['codicon', 'codicon-chevron-down', className] : ['codicon', 'codicon-chevron-down'],
38
+ actionRunner: this._options?.actionRunner,
35
39
  keybindingProvider: this._options?.getKeyBinding
36
40
  }));
37
41
  }
@@ -48,6 +48,8 @@ declare class MenuId {
48
48
  static readonly EmptyEditorGroup: MenuId;
49
49
  static readonly EmptyEditorGroupContext: MenuId;
50
50
  static readonly EditorTabsBarContext: MenuId;
51
+ static readonly EditorTabsBarShowTabsSubmenu: MenuId;
52
+ static readonly EditorActionsPositionSubmenu: MenuId;
51
53
  static readonly ExplorerContext: MenuId;
52
54
  static readonly ExplorerContextShare: MenuId;
53
55
  static readonly ExtensionContext: MenuId;
@@ -68,6 +70,7 @@ declare class MenuId {
68
70
  static readonly MenubarNewBreakpointMenu: MenuId;
69
71
  static readonly PanelAlignmentMenu: MenuId;
70
72
  static readonly PanelPositionMenu: MenuId;
73
+ static readonly ActivityBarPositionMenu: MenuId;
71
74
  static readonly MenubarPreferencesMenu: MenuId;
72
75
  static readonly MenubarRecentMenu: MenuId;
73
76
  static readonly MenubarSelectionMenu: MenuId;
@@ -80,6 +83,8 @@ declare class MenuId {
80
83
  static readonly OpenEditorsContext: MenuId;
81
84
  static readonly OpenEditorsContextShare: MenuId;
82
85
  static readonly ProblemsPanelContext: MenuId;
86
+ static readonly SCMInputBox: MenuId;
87
+ static readonly SCMHistoryItem: MenuId;
83
88
  static readonly SCMChangeContext: MenuId;
84
89
  static readonly SCMResourceContext: MenuId;
85
90
  static readonly SCMResourceContextShare: MenuId;
@@ -148,6 +153,7 @@ declare class MenuId {
148
153
  static readonly TimelineTitleContext: MenuId;
149
154
  static readonly TimelineFilterSubMenu: MenuId;
150
155
  static readonly AccountsContext: MenuId;
156
+ static readonly SidebarTitle: MenuId;
151
157
  static readonly PanelTitle: MenuId;
152
158
  static readonly AuxiliaryBarTitle: MenuId;
153
159
  static readonly TerminalInstanceContext: MenuId;
@@ -155,6 +161,7 @@ declare class MenuId {
155
161
  static readonly TerminalNewDropdownContext: MenuId;
156
162
  static readonly TerminalTabContext: MenuId;
157
163
  static readonly TerminalTabEmptyAreaContext: MenuId;
164
+ static readonly TerminalStickyScrollContext: MenuId;
158
165
  static readonly WebviewContext: MenuId;
159
166
  static readonly InlineCompletionsActions: MenuId;
160
167
  static readonly NewFile: MenuId;
@@ -169,6 +176,7 @@ declare class MenuId {
169
176
  static readonly ChatExecute: MenuId;
170
177
  static readonly ChatInputSide: MenuId;
171
178
  static readonly AccessibleView: MenuId;
179
+ static readonly MultiDiffEditorFileToolbar: MenuId;
172
180
  /**
173
181
  * Create or reuse a `MenuId` with the given identifier
174
182
  */
@@ -42,6 +42,9 @@ declare class Sound {
42
42
  static readonly chatResponseReceived2: Sound;
43
43
  static readonly chatResponseReceived3: Sound;
44
44
  static readonly chatResponseReceived4: Sound;
45
+ static readonly clear: Sound;
46
+ static readonly save: Sound;
47
+ static readonly format: Sound;
45
48
  private constructor();
46
49
  }
47
50
  declare class SoundSource {
@@ -76,6 +79,9 @@ declare class AudioCue {
76
79
  static readonly chatRequestSent: AudioCue;
77
80
  static readonly chatResponseReceived: AudioCue;
78
81
  static readonly chatResponsePending: AudioCue;
82
+ static readonly clear: AudioCue;
83
+ static readonly save: AudioCue;
84
+ static readonly format: AudioCue;
79
85
  private constructor();
80
86
  }
81
87
 
@@ -3,6 +3,7 @@ import { Event } from '../../../base/common/event.js';
3
3
  import { IJSONSchema } from '../../../base/common/jsonSchema.js';
4
4
  import { IDisposable } from '../../../base/common/lifecycle.js';
5
5
  import { TypeConstraint } from '../../../base/common/types.js';
6
+ import { ILocalizedString } from '../../action/common/action.js';
6
7
 
7
8
  interface ICommandEvent {
8
9
  commandId: string;
@@ -23,11 +24,18 @@ interface ICommandHandler {
23
24
  interface ICommand {
24
25
  id: string;
25
26
  handler: ICommandHandler;
26
- description?: ICommandHandlerDescription | null;
27
+ metadata?: ICommandMetadata | null;
27
28
  }
28
- interface ICommandHandlerDescription {
29
- readonly description: string;
30
- readonly args: ReadonlyArray<{
29
+ interface ICommandMetadata {
30
+ /**
31
+ * NOTE: Please use an ILocalizedString. string is in the type for backcompat for now.
32
+ * A short summary of what the command does. This will be used in:
33
+ * - API commands
34
+ * - when showing keybindings that have no other UX
35
+ * - when searching for commands in the Command Palette
36
+ */
37
+ readonly description: ILocalizedString | string;
38
+ readonly args?: ReadonlyArray<{
31
39
  readonly name: string;
32
40
  readonly isOptional?: boolean;
33
41
  readonly description?: string;
@@ -46,4 +54,4 @@ interface ICommandRegistry {
46
54
  }
47
55
  declare const CommandsRegistry: ICommandRegistry;
48
56
 
49
- export { CommandsRegistry, type ICommand, type ICommandEvent, type ICommandHandler, type ICommandHandlerDescription, type ICommandRegistry, ICommandService, type ICommandsMap };
57
+ export { CommandsRegistry, type ICommand, type ICommandEvent, type ICommandHandler, type ICommandMetadata, type ICommandRegistry, ICommandService, type ICommandsMap };
@@ -109,7 +109,13 @@ interface IPromptResult<T> extends ICheckboxResult {
109
109
  interface IPromptResultWithCancel<T> extends IPromptResult<T> {
110
110
  readonly result: T;
111
111
  }
112
- type IDialogResult = IConfirmationResult | IInputResult | IPromptResult<unknown>;
112
+ interface IAsyncPromptResult<T> extends ICheckboxResult {
113
+ /**
114
+ * The result of the `IPromptButton` that was pressed or `undefined` if none.
115
+ */
116
+ readonly result?: Promise<T>;
117
+ }
118
+ type IDialogResult = IConfirmationResult | IInputResult | IAsyncPromptResult<unknown>;
113
119
  type DialogType = 'none' | 'info' | 'error' | 'question' | 'warning';
114
120
  interface ICheckbox {
115
121
  readonly label: string;
@@ -215,7 +221,7 @@ interface IDialogHandler {
215
221
  /**
216
222
  * Prompt the user with a modal dialog.
217
223
  */
218
- prompt<T>(prompt: IPrompt<T>): Promise<IPromptResult<T>>;
224
+ prompt<T>(prompt: IPrompt<T>): Promise<IAsyncPromptResult<T>>;
219
225
  /**
220
226
  * Present a modal dialog to the user asking for input.
221
227
  */
@@ -349,4 +355,4 @@ declare const enum ConfirmResult {
349
355
  CANCEL = 2
350
356
  }
351
357
 
352
- export { ConfirmResult, type DialogType, type FileFilter, type IBaseDialogOptions, type ICheckbox, type ICheckboxResult, type IConfirmDialogArgs, type IConfirmation, type IConfirmationResult, type ICustomDialogMarkdown, type ICustomDialogOptions, type IDialogArgs, type IDialogHandler, type IDialogResult, IDialogService, IFileDialogService, type IInput, type IInputDialogArgs, type IInputElement, type IInputResult, type IOpenDialogOptions, type IPickAndOpenOptions, type IPrompt, type IPromptBaseButton, type IPromptButton, type IPromptCancelButton, type IPromptDialogArgs, type IPromptResult, type IPromptResultWithCancel, type IPromptWithCustomCancel, type IPromptWithDefaultCancel, type ISaveDialogOptions };
358
+ export { ConfirmResult, type DialogType, type FileFilter, type IAsyncPromptResult, type IBaseDialogOptions, type ICheckbox, type ICheckboxResult, type IConfirmDialogArgs, type IConfirmation, type IConfirmationResult, type ICustomDialogMarkdown, type ICustomDialogOptions, type IDialogArgs, type IDialogHandler, type IDialogResult, IDialogService, IFileDialogService, type IInput, type IInputDialogArgs, type IInputElement, type IInputResult, type IOpenDialogOptions, type IPickAndOpenOptions, type IPrompt, type IPromptBaseButton, type IPromptButton, type IPromptCancelButton, type IPromptDialogArgs, type IPromptResult, type IPromptResultWithCancel, type IPromptWithCustomCancel, type IPromptWithDefaultCancel, type ISaveDialogOptions };
@@ -104,12 +104,15 @@ class AbstractDialogHandler {
104
104
  }
105
105
  return undefined;
106
106
  }
107
- async getPromptResult(prompt, buttonIndex, checkboxChecked) {
107
+ getPromptResult(prompt, buttonIndex, checkboxChecked) {
108
108
  const promptButtons = [...(prompt.buttons ?? [])];
109
109
  if (prompt.cancelButton && typeof prompt.cancelButton !== 'string' && typeof prompt.cancelButton !== 'boolean') {
110
110
  promptButtons.push(prompt.cancelButton);
111
111
  }
112
- const result = await promptButtons[buttonIndex]?.run({ checkboxChecked });
112
+ let result = promptButtons[buttonIndex]?.run({ checkboxChecked });
113
+ if (!(result instanceof Promise)) {
114
+ result = Promise.resolve(result);
115
+ }
113
116
  return { result, checkboxChecked };
114
117
  }
115
118
  }
@@ -1,11 +1,7 @@
1
- import { Event } from '../../../base/common/event.js';
1
+ import { IDisposable } from '../../../base/common/lifecycle.js';
2
2
  import { URI } from '../../../base/common/uri.js';
3
3
 
4
- interface IEditorModel {
5
- /**
6
- * Emitted when the model is about to be disposed.
7
- */
8
- readonly onWillDispose: Event<void>;
4
+ interface IResolvableEditorModel extends IDisposable {
9
5
  /**
10
6
  * Resolves the model.
11
7
  */
@@ -14,14 +10,6 @@ interface IEditorModel {
14
10
  * Find out if the editor model was resolved or not.
15
11
  */
16
12
  isResolved(): boolean;
17
- /**
18
- * Find out if this model has been disposed.
19
- */
20
- isDisposed(): boolean;
21
- /**
22
- * Dispose associated resources
23
- */
24
- dispose(): void;
25
13
  }
26
14
  interface IBaseUntypedEditorInput {
27
15
  /**
@@ -305,4 +293,4 @@ interface ITextEditorOptions extends IEditorOptions {
305
293
  selectionSource?: TextEditorSelectionSource | string;
306
294
  }
307
295
 
308
- export { EditorActivation, EditorOpenSource, EditorResolution, type IBaseResourceEditorInput, type IBaseTextResourceEditorInput, type IBaseUntypedEditorInput, type IEditorModel, type IEditorOptions, type IResourceEditorInput, type IResourceEditorInputIdentifier, type ITextEditorOptions, type ITextEditorSelection, type ITextResourceEditorInput, TextEditorSelectionRevealType, TextEditorSelectionSource };
296
+ export { EditorActivation, EditorOpenSource, EditorResolution, type IBaseResourceEditorInput, type IBaseTextResourceEditorInput, type IBaseUntypedEditorInput, type IEditorOptions, type IResolvableEditorModel, type IResourceEditorInput, type IResourceEditorInputIdentifier, type ITextEditorOptions, type ITextEditorSelection, type ITextResourceEditorInput, TextEditorSelectionRevealType, TextEditorSelectionSource };
@@ -153,6 +153,7 @@ type InstallOptions = {
153
153
  isBuiltin?: boolean;
154
154
  isMachineScoped?: boolean;
155
155
  isApplicationScoped?: boolean;
156
+ pinned?: boolean;
156
157
  donotIncludePackAndDependencies?: boolean;
157
158
  installGivenVersion?: boolean;
158
159
  installPreReleaseVersion?: boolean;
@@ -1,13 +1,13 @@
1
1
  import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
2
2
  import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
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
+ const EXTENSION_IDENTIFIER_REGEX = ( new RegExp(EXTENSION_IDENTIFIER_PATTERN));
4
5
  const WEB_EXTENSION_TAG = '__web_extension';
5
6
  const EXTENSION_INSTALL_SYNC_CONTEXT = 'extensionsSync';
6
7
  const EXTENSION_INSTALL_DEP_PACK_CONTEXT = 'dependecyOrPackExtensionInstall';
7
8
  function TargetPlatformToString(targetPlatform) {
8
9
  switch (targetPlatform) {
9
10
  case "win32-x64" : return 'Windows 64 bit';
10
- case "win32-ia32" : return 'Windows 32 bit';
11
11
  case "win32-arm64" : return 'Windows ARM';
12
12
  case "linux-x64" : return 'Linux 64 bit';
13
13
  case "linux-arm64" : return 'Linux ARM 64';
@@ -25,7 +25,6 @@ function TargetPlatformToString(targetPlatform) {
25
25
  function toTargetPlatform(targetPlatform) {
26
26
  switch (targetPlatform) {
27
27
  case "win32-x64" : return "win32-x64" ;
28
- case "win32-ia32" : return "win32-ia32" ;
29
28
  case "win32-arm64" : return "win32-arm64" ;
30
29
  case "linux-x64" : return "linux-x64" ;
31
30
  case "linux-arm64" : return "linux-arm64" ;
@@ -45,9 +44,6 @@ function getTargetPlatform(platform, arch) {
45
44
  if (arch === 'x64') {
46
45
  return "win32-x64" ;
47
46
  }
48
- if (arch === 'ia32') {
49
- return "win32-ia32" ;
50
- }
51
47
  if (arch === 'arm64') {
52
48
  return "win32-arm64" ;
53
49
  }
@@ -101,15 +97,7 @@ function isTargetPlatformCompatible(extensionTargetPlatform, allTargetPlatforms,
101
97
  if (extensionTargetPlatform === productTargetPlatform) {
102
98
  return true;
103
99
  }
104
- const fallbackTargetPlatforms = getFallbackTargetPlarforms(productTargetPlatform);
105
- return fallbackTargetPlatforms.includes(extensionTargetPlatform);
106
- }
107
- function getFallbackTargetPlarforms(targetPlatform) {
108
- switch (targetPlatform) {
109
- case "win32-x64" : return ["win32-ia32" ];
110
- case "win32-arm64" : return ["win32-ia32" ];
111
- }
112
- return [];
100
+ return false;
113
101
  }
114
102
  const IExtensionGalleryService = ( createDecorator('extensionGalleryService'));
115
103
  var ExtensionManagementErrorCode;
@@ -153,4 +141,4 @@ const PreferencesLocalizedLabel = { value: ( localizeWithPath(
153
141
  'preferences',
154
142
  "Preferences"
155
143
  )), original: 'Preferences' };
156
- export { DISABLED_EXTENSIONS_STORAGE_PATH, ENABLED_EXTENSIONS_STORAGE_PATH, EXTENSION_IDENTIFIER_PATTERN, EXTENSION_INSTALL_DEP_PACK_CONTEXT, EXTENSION_INSTALL_SYNC_CONTEXT, ExtensionManagementError, ExtensionManagementErrorCode, ExtensionsLabel, ExtensionsLocalizedLabel, IExtensionGalleryService, IExtensionManagementService, IExtensionTipsService, IGlobalExtensionEnablementService, PreferencesLocalizedLabel, TargetPlatformToString, WEB_EXTENSION_TAG, getFallbackTargetPlarforms, getTargetPlatform, isNotWebExtensionInWebTargetPlatform, isTargetPlatformCompatible, toTargetPlatform };
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 };
@@ -29,6 +29,11 @@ class ImplicitActivationEventsImpl {
29
29
  return [];
30
30
  }
31
31
  const activationEvents = (Array.isArray(desc.activationEvents) ? desc.activationEvents.slice(0) : []);
32
+ for (let i = 0; i < activationEvents.length; i++) {
33
+ if (activationEvents[i] === 'onUri') {
34
+ activationEvents[i] = `onUri:${ExtensionIdentifier.toKey(desc.identifier)}`;
35
+ }
36
+ }
32
37
  if (!desc.contributes) {
33
38
  return activationEvents;
34
39
  }
@@ -262,7 +262,6 @@ declare const enum ExtensionType {
262
262
  }
263
263
  declare const enum TargetPlatform {
264
264
  WIN32_X64 = "win32-x64",
265
- WIN32_IA32 = "win32-ia32",
266
265
  WIN32_ARM64 = "win32-arm64",
267
266
  LINUX_X64 = "linux-x64",
268
267
  LINUX_ARM64 = "linux-arm64",