@codingame/monaco-vscode-api 1.81.8-next.3 → 1.82.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 (609) hide show
  1. package/README.md +14 -0
  2. package/api.js +12 -8
  3. package/missing-services.js +69 -20
  4. package/monaco-editor-treemending.patch +1407 -1026
  5. package/monaco-treemending.js +2 -2
  6. package/monaco.d.ts +1 -1
  7. package/package.json +3 -3
  8. package/service-override/extensions.d.ts +1 -1
  9. package/service-override/extensions.js +5 -1
  10. package/service-override/quickaccess.d.ts +2 -1
  11. package/service-override/quickaccess.js +5 -2
  12. package/service-override/search.js +2 -2
  13. package/service-override/snippets.d.ts +1 -1
  14. package/service-override/storage.d.ts +1 -1
  15. package/service-override/theme.d.ts +1 -1
  16. package/service-override/tools/editor.d.ts +1 -1
  17. package/service-override/tools/editor.js +4 -3
  18. package/service-override/views.d.ts +1 -1
  19. package/service-override/views.js +0 -2
  20. package/vscode/src/vs/base/browser/contextmenu.d.ts +1 -1
  21. package/vscode/src/vs/base/browser/dom.d.ts +1 -1
  22. package/vscode/src/vs/base/browser/keyboardEvent.d.ts +1 -1
  23. package/vscode/src/vs/base/browser/mouseEvent.d.ts +1 -1
  24. package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.d.ts +1 -1
  25. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.d.ts +7 -1
  26. package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.d.ts +1 -1
  27. package/vscode/src/vs/base/browser/ui/contextview/contextview.d.ts +1 -1
  28. package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.d.ts +1 -1
  29. package/vscode/src/vs/base/browser/ui/grid/grid.d.ts +1 -1
  30. package/vscode/src/vs/base/browser/ui/grid/gridview.d.ts +1 -1
  31. package/vscode/src/vs/base/browser/ui/grid/gridview.js +1 -0
  32. package/vscode/src/vs/base/browser/ui/iconLabel/iconHoverDelegate.d.ts +1 -1
  33. package/vscode/src/vs/base/browser/ui/iconLabel/iconLabelHover.d.ts +1 -1
  34. package/vscode/src/vs/base/browser/ui/menu/menubar.js +1 -2
  35. package/vscode/src/vs/base/browser/ui/sash/sash.d.ts +1 -1
  36. package/vscode/src/vs/base/browser/ui/splitview/paneview.d.ts +1 -1
  37. package/vscode/src/vs/base/browser/ui/splitview/splitview.d.ts +1 -1
  38. package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +1 -1
  39. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +5 -1
  40. package/vscode/src/vs/base/common/actions.d.ts +1 -1
  41. package/vscode/src/vs/base/common/async.d.ts +1 -1
  42. package/vscode/src/vs/base/common/buffer.d.ts +1 -1
  43. package/vscode/src/vs/base/common/codicons.d.ts +5 -0
  44. package/vscode/src/vs/base/common/collections.d.ts +1 -1
  45. package/vscode/src/vs/base/common/dataTransfer.d.ts +1 -1
  46. package/vscode/src/vs/base/common/errors.d.ts +1 -1
  47. package/vscode/src/vs/base/common/event.d.ts +10 -2
  48. package/vscode/src/vs/base/common/filters.d.ts +1 -1
  49. package/vscode/src/vs/base/common/glob.d.ts +1 -1
  50. package/vscode/src/vs/base/common/htmlContent.d.ts +1 -1
  51. package/vscode/src/vs/base/common/jsonSchema.d.ts +1 -1
  52. package/vscode/src/vs/base/common/keybindings.d.ts +1 -1
  53. package/vscode/src/vs/base/common/lifecycle.d.ts +1 -1
  54. package/vscode/src/vs/base/common/{observableImpl → observableInternal}/base.d.ts +1 -1
  55. package/vscode/src/vs/base/common/path.d.ts +1 -1
  56. package/vscode/src/vs/base/common/performance.d.ts +1 -1
  57. package/vscode/src/vs/base/common/platform.d.ts +1 -1
  58. package/vscode/src/vs/base/common/prefixTree.js +76 -13
  59. package/vscode/src/vs/base/common/processes.d.ts +1 -1
  60. package/vscode/src/vs/base/common/product.d.ts +10 -6
  61. package/vscode/src/vs/base/common/resources.d.ts +1 -1
  62. package/vscode/src/vs/base/common/stream.d.ts +1 -1
  63. package/vscode/src/vs/base/common/ternarySearchTree.d.ts +1 -1
  64. package/vscode/src/vs/base/common/themables.d.ts +1 -1
  65. package/vscode/src/vs/base/common/types.d.ts +1 -1
  66. package/vscode/src/vs/base/common/uri.d.ts +1 -1
  67. package/vscode/src/vs/base/common/uriIpc.d.ts +1 -1
  68. package/vscode/src/vs/base/parts/ipc/common/ipc.d.ts +1 -1
  69. package/vscode/src/vs/base/parts/ipc/common/ipc.net.d.ts +1 -1
  70. package/vscode/src/vs/base/parts/storage/common/storage.d.ts +1 -1
  71. package/vscode/src/vs/editor/browser/editorBrowser.d.ts +2 -2
  72. package/vscode/src/vs/editor/browser/services/bulkEditService.d.ts +1 -1
  73. package/vscode/src/vs/editor/browser/services/codeEditorService.d.ts +1 -1
  74. package/vscode/src/vs/editor/browser/widget/diffEditorWidget2/diffEditorWidget2.contribution.js +122 -26
  75. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +25 -5
  76. package/vscode/src/vs/editor/common/core/dimension.d.ts +1 -1
  77. package/vscode/src/vs/editor/common/core/editOperation.d.ts +1 -1
  78. package/vscode/src/vs/editor/common/core/lineRange.d.ts +8 -1
  79. package/vscode/src/vs/editor/common/core/offsetRange.d.ts +47 -0
  80. package/vscode/src/vs/editor/common/core/position.d.ts +1 -1
  81. package/vscode/src/vs/editor/common/core/range.d.ts +1 -1
  82. package/vscode/src/vs/editor/common/core/selection.d.ts +1 -1
  83. package/vscode/src/vs/editor/common/diff/documentDiffProvider.d.ts +3 -2
  84. package/vscode/src/vs/editor/common/diff/{smartLinesDiffComputer.d.ts → legacyLinesDiffComputer.d.ts} +1 -1
  85. package/vscode/src/vs/editor/common/diff/linesDiffComputer.d.ts +1 -0
  86. package/vscode/src/vs/editor/common/editorCommon.d.ts +1 -1
  87. package/vscode/src/vs/editor/common/encodedTokenAttributes.d.ts +1 -1
  88. package/vscode/src/vs/editor/common/languageFeatureRegistry.d.ts +1 -1
  89. package/vscode/src/vs/editor/common/languageSelector.d.ts +1 -1
  90. package/vscode/src/vs/editor/common/languages/language.d.ts +1 -1
  91. package/vscode/src/vs/editor/common/languages/languageConfiguration.d.ts +1 -1
  92. package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.d.ts +1 -1
  93. package/vscode/src/vs/editor/common/languages/supports/electricCharacter.d.ts +1 -1
  94. package/vscode/src/vs/editor/common/languages/supports/languageBracketsConfiguration.d.ts +1 -1
  95. package/vscode/src/vs/editor/common/languages.d.ts +37 -7
  96. package/vscode/src/vs/editor/common/model.d.ts +1 -1
  97. package/vscode/src/vs/editor/common/services/editorWorker.d.ts +2 -2
  98. package/vscode/src/vs/editor/common/services/languageFeatureDebounce.d.ts +1 -1
  99. package/vscode/src/vs/editor/common/services/languageFeatures.d.ts +2 -1
  100. package/vscode/src/vs/editor/common/services/languageFeaturesService.js +1 -0
  101. package/vscode/src/vs/editor/common/services/resolverService.d.ts +1 -1
  102. package/vscode/src/vs/editor/common/services/unicodeTextModelHighlighter.d.ts +1 -1
  103. package/vscode/src/vs/editor/common/textModelEvents.d.ts +1 -1
  104. package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +1 -1
  105. package/vscode/src/vs/editor/contrib/folding/browser/folding.d.ts +1 -1
  106. package/vscode/src/vs/editor/contrib/folding/browser/foldingModel.d.ts +1 -1
  107. package/vscode/src/vs/editor/contrib/folding/browser/foldingRanges.d.ts +1 -1
  108. package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.d.ts +1 -1
  109. package/vscode/src/vs/editor/standalone/browser/standaloneServices.d.ts +1 -1
  110. package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +1 -1
  111. package/vscode/src/vs/platform/action/common/action.d.ts +1 -1
  112. package/vscode/src/vs/platform/actions/browser/floatingMenu.js +73 -0
  113. package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +1 -1
  114. package/vscode/src/vs/platform/actions/common/actions.d.ts +5 -2
  115. package/vscode/src/vs/platform/audioCues/browser/audioCueService.d.ts +10 -3
  116. package/vscode/src/vs/platform/commands/common/commands.d.ts +1 -1
  117. package/vscode/src/vs/platform/configuration/common/configuration.d.ts +1 -1
  118. package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +1 -1
  119. package/vscode/src/vs/platform/contextkey/common/contextkey.d.ts +1 -1
  120. package/vscode/src/vs/platform/contextview/browser/contextView.d.ts +1 -1
  121. package/vscode/src/vs/platform/credentials/common/credentials.d.ts +1 -1
  122. package/vscode/src/vs/platform/diagnostics/common/diagnostics.d.ts +1 -1
  123. package/vscode/src/vs/platform/dialogs/common/dialogs.d.ts +1 -1
  124. package/vscode/src/vs/platform/editor/common/editor.d.ts +1 -1
  125. package/vscode/src/vs/platform/environment/common/environment.d.ts +1 -1
  126. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +1 -1
  127. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.d.ts +1 -1
  128. package/vscode/src/vs/platform/extensionManagement/common/extensionStorage.js +13 -14
  129. package/vscode/src/vs/platform/extensions/common/extensions.d.ts +1 -1
  130. package/vscode/src/vs/platform/files/common/files.d.ts +1 -1
  131. package/vscode/src/vs/platform/instantiation/common/descriptors.d.ts +1 -1
  132. package/vscode/src/vs/platform/instantiation/common/instantiation.d.ts +1 -1
  133. package/vscode/src/vs/platform/jsonschemas/common/jsonContributionRegistry.d.ts +1 -1
  134. package/vscode/src/vs/platform/keybinding/common/keybinding.d.ts +1 -1
  135. package/vscode/src/vs/platform/keybinding/common/keybindingResolver.d.ts +1 -1
  136. package/vscode/src/vs/platform/keybinding/common/keybindingsRegistry.d.ts +1 -1
  137. package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +1 -1
  138. package/vscode/src/vs/platform/log/common/log.d.ts +1 -1
  139. package/vscode/src/vs/platform/markers/common/markers.d.ts +1 -1
  140. package/vscode/src/vs/platform/notification/common/notification.d.ts +1 -1
  141. package/vscode/src/vs/platform/opener/common/opener.d.ts +1 -1
  142. package/vscode/src/vs/platform/policy/common/policy.d.ts +1 -1
  143. package/vscode/src/vs/platform/progress/common/progress.d.ts +1 -1
  144. package/vscode/src/vs/platform/quickinput/common/quickAccess.d.ts +1 -1
  145. package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +17 -13
  146. package/vscode/src/vs/platform/registry/common/platform.d.ts +1 -1
  147. package/vscode/src/vs/platform/remote/browser/browserSocketFactory.d.ts +1 -1
  148. package/vscode/src/vs/platform/remote/common/managedSocket.js +80 -1
  149. package/vscode/src/vs/platform/remote/common/remoteAgentConnection.d.ts +1 -1
  150. package/vscode/src/vs/platform/remote/common/remoteAgentEnvironment.d.ts +1 -1
  151. package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.d.ts +1 -1
  152. package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.d.ts +1 -1
  153. package/vscode/src/vs/platform/secrets/common/secrets.d.ts +1 -1
  154. package/vscode/src/vs/platform/storage/common/storage.d.ts +24 -5
  155. package/vscode/src/vs/platform/storage/common/storage.js +4 -2
  156. package/vscode/src/vs/platform/telemetry/common/gdprTypings.d.ts +1 -1
  157. package/vscode/src/vs/platform/telemetry/common/telemetry.d.ts +1 -1
  158. package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +4 -2
  159. package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +21 -3
  160. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.d.ts +32 -0
  161. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +14 -9
  162. package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +4 -2
  163. package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +18 -4
  164. package/vscode/src/vs/platform/terminal/common/environmentVariable.d.ts +1 -1
  165. package/vscode/src/vs/platform/terminal/common/terminal.d.ts +1 -1
  166. package/vscode/src/vs/platform/terminal/common/terminalProcess.d.ts +1 -1
  167. package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +6 -3
  168. package/vscode/src/vs/platform/theme/common/colorRegistry.d.ts +1 -1
  169. package/vscode/src/vs/platform/theme/common/iconRegistry.d.ts +1 -1
  170. package/vscode/src/vs/platform/theme/common/themeService.d.ts +1 -1
  171. package/vscode/src/vs/platform/tunnel/common/tunnel.d.ts +1 -1
  172. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +1 -1
  173. package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +5 -1
  174. package/vscode/src/vs/platform/window/common/window.d.ts +1 -1
  175. package/vscode/src/vs/platform/workspace/common/workspace.d.ts +1 -1
  176. package/vscode/src/vs/platform/workspace/common/workspaceTrust.d.ts +1 -1
  177. package/vscode/src/vs/platform/workspaces/common/workspaces.d.ts +1 -1
  178. package/vscode/src/vs/workbench/api/browser/mainThreadAiEmbeddingVector.js +29 -0
  179. package/vscode/src/vs/workbench/api/browser/mainThreadAiRelatedInformation.js +33 -0
  180. package/vscode/src/vs/workbench/api/browser/mainThreadChat.js +13 -16
  181. package/vscode/src/vs/workbench/api/browser/mainThreadChatProvider.js +59 -0
  182. package/vscode/src/vs/workbench/api/browser/mainThreadChatSlashCommands.js +46 -0
  183. package/vscode/src/vs/workbench/api/browser/mainThreadChatVariables.js +29 -0
  184. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +5 -4
  185. package/vscode/src/vs/workbench/api/browser/mainThreadEditor.js +1 -2
  186. package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +4 -2
  187. package/vscode/src/vs/workbench/api/browser/mainThreadInlineChat.js +2 -1
  188. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +31 -14
  189. package/vscode/src/vs/workbench/api/browser/mainThreadManagedSockets.js +12 -67
  190. package/vscode/src/vs/workbench/api/browser/mainThreadStorage.js +7 -6
  191. package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +1 -1
  192. package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.js +36 -11
  193. package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +21 -17
  194. package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +4 -2
  195. package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +2 -3
  196. package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +10 -1
  197. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +1 -1
  198. package/vscode/src/vs/workbench/api/common/extHost.api.impl.d.ts +1 -1
  199. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +55 -16
  200. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +32 -7
  201. package/vscode/src/vs/workbench/api/common/extHost.protocol.js +10 -2
  202. package/vscode/src/vs/workbench/api/common/extHostAiRelatedInformation.js +34 -0
  203. package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +21 -2
  204. package/vscode/src/vs/workbench/api/common/extHostChat.js +12 -31
  205. package/vscode/src/vs/workbench/api/common/extHostChatProvider.js +70 -0
  206. package/vscode/src/vs/workbench/api/common/extHostChatSlashCommand.js +53 -0
  207. package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +37 -0
  208. package/vscode/src/vs/workbench/api/common/extHostCommands.js +11 -0
  209. package/vscode/src/vs/workbench/api/common/extHostComments.js +1 -2
  210. package/vscode/src/vs/workbench/api/common/extHostDebugService.js +2 -3
  211. package/vscode/src/vs/workbench/api/common/extHostDecorations.js +6 -4
  212. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +8 -6
  213. package/vscode/src/vs/workbench/api/common/extHostEmbeddingVector.js +34 -0
  214. package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.d.ts +1 -1
  215. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +5 -4
  216. package/vscode/src/vs/workbench/api/common/extHostFileSystemConsumer.js +11 -10
  217. package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +3 -2
  218. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +45 -15
  219. package/vscode/src/vs/workbench/api/common/extHostRequireInterceptor.js +5 -3
  220. package/vscode/src/vs/workbench/api/common/extHostSCM.js +4 -2
  221. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +17 -1
  222. package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +12 -11
  223. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +66 -53
  224. package/vscode/src/vs/workbench/api/common/extHostTesting.js +32 -18
  225. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +3 -0
  226. package/vscode/src/vs/workbench/api/common/extHostTunnelService.d.ts +1 -1
  227. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +19 -5
  228. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +128 -6
  229. package/vscode/src/vs/workbench/api/common/extHostTypes.js +28 -13
  230. package/vscode/src/vs/workbench/api/common/extHostWindow.js +4 -2
  231. package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +1 -1
  232. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +2 -3
  233. package/vscode/src/vs/workbench/api/common/extensionHostMain.js +2 -2
  234. package/vscode/src/vs/workbench/browser/actions/widgetNavigationCommands.js +5 -3
  235. package/vscode/src/vs/workbench/browser/codeeditor.js +34 -67
  236. package/vscode/src/vs/workbench/browser/dnd.js +3 -2
  237. package/vscode/src/vs/workbench/browser/part.d.ts +1 -1
  238. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarActions.js +37 -20
  239. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +1 -1
  240. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +21 -22
  241. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +4 -2
  242. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.d.ts +1 -1
  243. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +10 -7
  244. package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +1 -1
  245. package/vscode/src/vs/workbench/browser/parts/compositePart.js +2 -2
  246. package/vscode/src/vs/workbench/browser/parts/dialogs/dialogHandler.js +4 -2
  247. package/vscode/src/vs/workbench/browser/parts/editor/accessibilityStatus.js +19 -24
  248. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +11 -9
  249. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +1 -2
  250. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +17 -16
  251. package/vscode/src/vs/workbench/browser/parts/editor/editor.d.ts +1 -1
  252. package/vscode/src/vs/workbench/browser/parts/editor/editor.js +1 -0
  253. package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +1 -2
  254. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +25 -16
  255. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +6 -4
  256. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +4 -2
  257. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +12 -12
  258. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +1 -1
  259. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +10 -8
  260. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +13 -9
  261. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +10 -6
  262. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +14 -16
  263. package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +6 -4
  264. package/vscode/src/vs/workbench/browser/parts/editor/media/tabstitlecontrol.css.js +1 -1
  265. package/vscode/src/vs/workbench/browser/parts/editor/noTabsTitleControl.js +6 -4
  266. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +7 -5
  267. package/vscode/src/vs/workbench/browser/parts/editor/tabsTitleControl.js +42 -32
  268. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +2 -2
  269. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +13 -6
  270. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +4 -2
  271. package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +6 -4
  272. package/vscode/src/vs/workbench/browser/parts/editor/titleControl.js +6 -5
  273. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +1 -1
  274. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +5 -3
  275. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +8 -3
  276. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +9 -7
  277. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +14 -11
  278. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +1 -1
  279. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +1 -1
  280. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +14 -10
  281. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +4 -2
  282. package/vscode/src/vs/workbench/browser/parts/statusbar/media/statusbarpart.css.js +1 -1
  283. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarItem.js +12 -2
  284. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarModel.js +21 -23
  285. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.js +2 -2
  286. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +1 -1
  287. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +10 -4
  288. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.d.ts +1 -1
  289. package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +1 -1
  290. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -2
  291. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.d.ts +1 -1
  292. package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +13 -1
  293. package/vscode/src/vs/workbench/browser/parts/views/viewsViewlet.d.ts +1 -1
  294. package/vscode/src/vs/workbench/browser/web.api.d.ts +1 -1
  295. package/vscode/src/vs/workbench/browser/workbench.contribution.js +37 -7
  296. package/vscode/src/vs/workbench/common/composite.d.ts +1 -1
  297. package/vscode/src/vs/workbench/common/contextkeys.js +12 -10
  298. package/vscode/src/vs/workbench/common/contributions.d.ts +1 -1
  299. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +6 -8
  300. package/vscode/src/vs/workbench/common/editor/editorGroupModel.d.ts +1 -1
  301. package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +15 -5
  302. package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
  303. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +7 -5
  304. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +5 -4
  305. package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +5 -3
  306. package/vscode/src/vs/workbench/common/editor.d.ts +3 -1
  307. package/vscode/src/vs/workbench/common/editor.js +18 -1
  308. package/vscode/src/vs/workbench/common/memento.d.ts +1 -1
  309. package/vscode/src/vs/workbench/common/panecomposite.d.ts +1 -1
  310. package/vscode/src/vs/workbench/common/resources.js +11 -9
  311. package/vscode/src/vs/workbench/common/theme.js +118 -10
  312. package/vscode/src/vs/workbench/common/views.d.ts +3 -1
  313. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibility.contribution.js +5 -241
  314. package/vscode/src/vs/workbench/contrib/accessibility/browser/{accessibilityContribution.js → accessibilityConfiguration.js} +50 -73
  315. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +312 -0
  316. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +376 -81
  317. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +216 -0
  318. package/vscode/src/vs/workbench/contrib/accessibility/browser/unfocusedViewDimmingContribution.js +63 -0
  319. package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCueDebuggerContribution.js +1 -1
  320. package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCueLineFeatureContribution.js +13 -13
  321. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +4 -1
  322. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkFileEdits.js +8 -3
  323. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +10 -7
  324. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +4 -2
  325. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +2 -0
  326. package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +2 -1
  327. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +204 -0
  328. package/vscode/src/vs/workbench/contrib/chat/common/chatProvider.js +3 -0
  329. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +3 -0
  330. package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.js +3 -0
  331. package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.css.js +1 -1
  332. package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.js +1 -1
  333. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +21 -10
  334. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css.js +1 -1
  335. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +45 -1
  336. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +4 -2
  337. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +1 -1
  338. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +4 -2
  339. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +14 -4
  340. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +1 -1
  341. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +1 -1
  342. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +0 -5
  343. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +7 -0
  344. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadRangeDecorator.js +4 -2
  345. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +15 -0
  346. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +2 -3
  347. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +2 -3
  348. package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +1 -1
  349. package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +2 -1
  350. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +7 -5
  351. package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +4 -3
  352. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +1 -2
  353. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +13 -8
  354. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +10 -6
  355. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +5 -1
  356. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +5 -3
  357. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +0 -1
  358. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +3 -4
  359. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +5 -3
  360. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +1 -2
  361. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +1 -1
  362. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +27 -26
  363. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +1 -2
  364. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +17 -13
  365. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +10 -7
  366. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +10 -6
  367. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +5 -4
  368. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +4 -2
  369. package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +1 -1
  370. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +5 -3
  371. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +19 -11
  372. package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +25 -1
  373. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +225 -113
  374. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/contributedOpeners.js +4 -2
  375. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +4 -2
  376. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +4 -3
  377. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +4 -2
  378. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +1 -1
  379. package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +29 -5
  380. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +2 -1
  381. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +11 -8
  382. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +1 -1
  383. package/vscode/src/vs/workbench/contrib/files/browser/files.d.ts +1 -1
  384. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +4 -2
  385. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +11 -6
  386. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +22 -19
  387. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +11 -7
  388. package/vscode/src/vs/workbench/contrib/files/common/files.d.ts +1 -1
  389. package/vscode/src/vs/workbench/contrib/files/common/files.js +6 -5
  390. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +16 -14
  391. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +5 -3
  392. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +7 -5
  393. package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +4 -2
  394. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +16 -23
  395. package/vscode/src/vs/workbench/contrib/markers/browser/markersModel.js +1 -2
  396. package/vscode/src/vs/workbench/contrib/markers/browser/markersTable.js +10 -6
  397. package/vscode/src/vs/workbench/contrib/markers/browser/markersView.js +1 -2
  398. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +7 -5
  399. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +5 -3
  400. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +27 -0
  401. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +0 -24
  402. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +14 -14
  403. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +1 -1
  404. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.js +1 -6
  405. package/vscode/src/vs/workbench/contrib/output/browser/logViewer.js +7 -4
  406. package/vscode/src/vs/workbench/contrib/output/browser/outputLinkProvider.js +4 -2
  407. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +16 -11
  408. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditor.js +13 -8
  409. package/vscode/src/vs/workbench/contrib/preferences/browser/preferences.contribution.js +77 -62
  410. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesRenderers.js +5 -3
  411. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesSearch.js +114 -36
  412. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditor2.js +92 -73
  413. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTree.js +21 -14
  414. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +110 -103
  415. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsWidgets.js +0 -4
  416. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.d.ts +1 -1
  417. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +4 -4
  418. package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +38 -36
  419. package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +6 -2
  420. package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +5 -4
  421. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +2 -2
  422. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +66 -36
  423. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +7 -5
  424. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +57 -55
  425. package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +232 -0
  426. package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +7 -5
  427. package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +33 -3
  428. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +1 -2
  429. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +3 -3
  430. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +23 -0
  431. package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +5 -1
  432. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +162 -90
  433. package/vscode/src/vs/workbench/contrib/search/browser/searchNotebookHelpers.js +57 -23
  434. package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +10 -6
  435. package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +80 -58
  436. package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +7 -5
  437. package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +7 -6
  438. package/vscode/src/vs/workbench/contrib/search/common/constants.js +2 -1
  439. package/vscode/src/vs/workbench/contrib/search/common/searchHistoryService.js +7 -5
  440. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +10 -7
  441. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +1 -2
  442. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +7 -5
  443. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCodeActionProvider.js +9 -6
  444. package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.d.ts +1 -1
  445. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -6
  446. package/vscode/src/vs/workbench/contrib/snippets/browser/tabCompletion.js +5 -3
  447. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +1 -1
  448. package/vscode/src/vs/workbench/contrib/terminal/browser/baseTerminalBackend.js +5 -6
  449. package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +54 -0
  450. package/vscode/src/vs/workbench/contrib/terminal/browser/media/terminal.css.js +1 -1
  451. package/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.js +3 -1
  452. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.contribution.js +1 -1
  453. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +56 -6
  454. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +44 -31
  455. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +2 -1
  456. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.js +4 -2
  457. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditor.js +1 -1
  458. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +5 -3
  459. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorService.js +7 -7
  460. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEvents.js +47 -0
  461. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +4 -4
  462. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroup.js +9 -9
  463. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroupService.js +13 -18
  464. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +86 -73
  465. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstanceService.js +1 -1
  466. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +15 -103
  467. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileResolverService.js +1 -2
  468. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileService.js +11 -6
  469. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +4 -2
  470. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +4 -2
  471. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalService.js +49 -32
  472. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.d.ts +1 -1
  473. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabbedView.js +3 -0
  474. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabsList.js +9 -13
  475. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalView.js +30 -6
  476. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +2 -2
  477. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +2 -2
  478. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +7 -1
  479. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +91 -25
  480. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +1 -1
  481. package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.d.ts +9 -0
  482. package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariableService.js +4 -2
  483. package/vscode/src/vs/workbench/contrib/terminal/common/history.js +6 -6
  484. package/vscode/src/vs/workbench/contrib/terminal/common/remote/remoteTerminalChannel.js +6 -7
  485. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +35 -2
  486. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +3 -7
  487. package/vscode/src/vs/workbench/contrib/terminal/common/terminalConfiguration.js +62 -10
  488. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +8 -0
  489. package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +3 -3
  490. package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +7 -0
  491. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminal.accessibility.contribution.js +48 -11
  492. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibilityHelp.js +42 -17
  493. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleBuffer.js +23 -17
  494. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleWidget.js +30 -20
  495. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/textAreaSyncAddon.js +98 -0
  496. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.js +8 -1
  497. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixService.js +12 -0
  498. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +44 -17
  499. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +2 -0
  500. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -7
  501. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +4 -2
  502. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +5 -1
  503. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +4 -2
  504. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +5 -4
  505. package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +28 -0
  506. package/vscode/src/vs/workbench/services/activity/common/activity.d.ts +1 -1
  507. package/vscode/src/vs/workbench/services/{semanticSimilarity/common/semanticSimilarityService.js → aiEmbeddingVector/common/aiEmbeddingVectorService.js} +18 -13
  508. package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.js +10 -0
  509. package/vscode/src/vs/workbench/services/configuration/browser/configuration.js +6 -4
  510. package/vscode/src/vs/workbench/services/configuration/browser/configurationService.js +1 -1
  511. package/vscode/src/vs/workbench/services/configuration/common/configurationEditing.js +5 -6
  512. package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.js +2 -2
  513. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +12 -9
  514. package/vscode/src/vs/workbench/services/editor/browser/editorService.js +6 -6
  515. package/vscode/src/vs/workbench/services/editor/common/editorGroupColumn.d.ts +1 -1
  516. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +1 -1
  517. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +1 -1
  518. package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
  519. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +1 -1
  520. package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +4 -3
  521. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +8 -6
  522. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +1 -1
  523. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +4 -3
  524. package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts +1 -1
  525. package/vscode/src/vs/workbench/services/extensions/common/extensionHostKind.d.ts +1 -1
  526. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.d.ts +1 -1
  527. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +5 -4
  528. package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.d.ts +1 -1
  529. package/vscode/src/vs/workbench/services/extensions/common/extensionHostProxy.d.ts +1 -1
  530. package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocation.d.ts +1 -1
  531. package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +1 -1
  532. package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +10 -5
  533. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.d.ts +1 -1
  534. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +9 -0
  535. package/vscode/src/vs/workbench/services/extensions/common/proxyIdentifier.d.ts +1 -1
  536. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.d.ts +1 -1
  537. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +10 -9
  538. package/vscode/src/vs/workbench/services/history/browser/historyService.js +14 -11
  539. package/vscode/src/vs/workbench/services/host/browser/browserHostService.d.ts +1 -1
  540. package/vscode/src/vs/workbench/services/hover/browser/hover.d.ts +2 -2
  541. package/vscode/src/vs/workbench/services/hover/browser/hoverService.d.ts +1 -1
  542. package/vscode/src/vs/workbench/services/hover/browser/hoverWidget.js +11 -3
  543. package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +6 -5
  544. package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionWorkerServiceImpl.js +10 -8
  545. package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.d.ts +1 -1
  546. package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +1 -1
  547. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.d.ts +1 -1
  548. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycleService.js +6 -4
  549. package/vscode/src/vs/workbench/services/localization/common/locale.js +3 -0
  550. package/vscode/src/vs/workbench/services/notification/common/notificationService.js +5 -3
  551. package/vscode/src/vs/workbench/services/output/common/output.d.ts +1 -1
  552. package/vscode/src/vs/workbench/services/path/common/pathService.js +4 -3
  553. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +5 -3
  554. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +12 -11
  555. package/vscode/src/vs/workbench/services/preferences/common/preferences.d.ts +4 -3
  556. package/vscode/src/vs/workbench/services/preferences/common/preferences.js +3 -2
  557. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +5 -3
  558. package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +4 -2
  559. package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.d.ts +1 -1
  560. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +6 -817
  561. package/vscode/src/vs/workbench/services/remote/common/{remoteExplorerService.d.ts → tunnelModel.d.ts} +1 -1
  562. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +860 -0
  563. package/vscode/src/vs/workbench/services/search/common/queryBuilder.d.ts +1 -1
  564. package/vscode/src/vs/workbench/services/search/common/search.d.ts +1 -1
  565. package/vscode/src/vs/workbench/services/search/common/searchService.js +41 -26
  566. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +12 -3
  567. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.js +2 -1
  568. package/vscode/src/vs/workbench/services/storage/browser/storageService.js +4 -2
  569. package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.d.ts +1 -1
  570. package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.d.ts +1 -1
  571. package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.d.ts +1 -1
  572. package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/textMateWorkerTokenizerController.js +1 -1
  573. package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/threadedBackgroundTokenizerFactory.js +9 -7
  574. package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js +7 -5
  575. package/vscode/src/vs/workbench/services/textfile/browser/browserTextFileService.js +1 -1
  576. package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +8 -6
  577. package/vscode/src/vs/workbench/services/textfile/common/encoding.js +5 -3
  578. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +19 -17
  579. package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +4 -1
  580. package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +1 -1
  581. package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.d.ts +1 -1
  582. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +5 -3
  583. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorModel.d.ts +1 -1
  584. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorModel.js +12 -9
  585. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +1 -1
  586. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +4 -2
  587. package/vscode/src/vs/workbench/services/update/browser/updateService.d.ts +1 -1
  588. package/vscode/src/vs/workbench/services/url/browser/urlService.d.ts +1 -1
  589. package/vscode/src/vs/workbench/services/userData/browser/userDataInit.d.ts +1 -1
  590. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.d.ts +1 -1
  591. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +14 -13
  592. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +4 -5
  593. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopy.d.ts +1 -1
  594. package/vscode/src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.d.ts +1 -1
  595. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.d.ts +1 -1
  596. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +1 -0
  597. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopy.d.ts +1 -1
  598. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +17 -8
  599. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileOperationParticipant.js +1 -0
  600. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.d.ts +1 -1
  601. package/vscode/src/vs/workbench/services/workspaces/browser/workspacesService.js +8 -11
  602. package/vscode/src/vs/workbench/api/browser/mainThreadSemanticSimilarity.js +0 -29
  603. package/vscode/src/vs/workbench/api/common/extHostSemanticSimilarity.js +0 -31
  604. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +0 -3
  605. package/vscode/src/vs/workbench/contrib/chat/browser/actions/quickQuestionActions/quickQuestionAction.js +0 -47
  606. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +0 -4
  607. package/vscode/src/vs/workbench/contrib/tasks/browser/taskQuickPick.js +0 -386
  608. package/vscode/src/vs/workbench/contrib/tasks/browser/tasksQuickAccess.js +0 -109
  609. /package/vscode/src/vs/workbench/contrib/search/{browser → common}/notebookSearch.js +0 -0
@@ -0,0 +1,32 @@
1
+ import { IMarker } from 'xterm-headless';
2
+
3
+ interface ICurrentPartialCommand {
4
+ previousCommandMarker?: IMarker;
5
+ promptStartMarker?: IMarker;
6
+ commandStartMarker?: IMarker;
7
+ commandStartX?: number;
8
+ commandStartLineContent?: string;
9
+ commandRightPromptStartX?: number;
10
+ commandRightPromptEndX?: number;
11
+ commandLines?: IMarker;
12
+ commandExecutedMarker?: IMarker;
13
+ commandExecutedX?: number;
14
+ commandFinishedMarker?: IMarker;
15
+ currentContinuationMarker?: IMarker;
16
+ continuations?: {
17
+ marker: IMarker;
18
+ end: number;
19
+ }[];
20
+ command?: string;
21
+ /**
22
+ * Whether the command line is trusted via a nonce.
23
+ */
24
+ isTrusted?: boolean;
25
+ /**
26
+ * Something invalidated the command before it finished, this will prevent the onCommandFinished
27
+ * event from firing.
28
+ */
29
+ isInvalid?: boolean;
30
+ }
31
+
32
+ export type { ICurrentPartialCommand };
@@ -2,7 +2,8 @@ import { __decorate } from '../../../../../../../external/tslib/tslib.es6.js';
2
2
  import { timeout } from 'monaco-editor/esm/vs/base/common/async.js';
3
3
  import { debounce } from 'monaco-editor/esm/vs/base/common/decorators.js';
4
4
  import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
5
- class CommandDetectionCapability {
5
+ import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
6
+ class CommandDetectionCapability extends Disposable {
6
7
  get commands() { return this._commands; }
7
8
  get executingCommand() { return this._currentCommand.command; }
8
9
  get executingCommandObject() {
@@ -11,6 +12,9 @@ class CommandDetectionCapability {
11
12
  }
12
13
  return undefined;
13
14
  }
15
+ get currentCommand() {
16
+ return this._currentCommand;
17
+ }
14
18
  get cwd() { return this._cwd; }
15
19
  get _isInputting() {
16
20
  return !!(this._currentCommand.commandStartMarker && !this._currentCommand.commandExecutedMarker);
@@ -29,6 +33,7 @@ class CommandDetectionCapability {
29
33
  return true;
30
34
  }
31
35
  constructor(_terminal, _logService) {
36
+ super();
32
37
  this._terminal = _terminal;
33
38
  this._logService = _logService;
34
39
  this.type = 2 ;
@@ -37,24 +42,24 @@ class CommandDetectionCapability {
37
42
  this._isWindowsPty = false;
38
43
  this._commandMarkers = [];
39
44
  this.__isCommandStorageDisabled = false;
40
- this._onCommandStarted = ( new Emitter());
45
+ this._onCommandStarted = this._register(( new Emitter()));
41
46
  this.onCommandStarted = this._onCommandStarted.event;
42
- this._onBeforeCommandFinished = ( new Emitter());
47
+ this._onBeforeCommandFinished = this._register(( new Emitter()));
43
48
  this.onBeforeCommandFinished = this._onBeforeCommandFinished.event;
44
- this._onCommandFinished = ( new Emitter());
49
+ this._onCommandFinished = this._register(( new Emitter()));
45
50
  this.onCommandFinished = this._onCommandFinished.event;
46
- this._onCommandExecuted = ( new Emitter());
51
+ this._onCommandExecuted = this._register(( new Emitter()));
47
52
  this.onCommandExecuted = this._onCommandExecuted.event;
48
- this._onCommandInvalidated = ( new Emitter());
53
+ this._onCommandInvalidated = this._register(( new Emitter()));
49
54
  this.onCommandInvalidated = this._onCommandInvalidated.event;
50
- this._onCurrentCommandInvalidated = ( new Emitter());
55
+ this._onCurrentCommandInvalidated = this._register(( new Emitter()));
51
56
  this.onCurrentCommandInvalidated = this._onCurrentCommandInvalidated.event;
52
57
  this._dimensions = {
53
58
  cols: this._terminal.cols,
54
59
  rows: this._terminal.rows
55
60
  };
56
- this._terminal.onResize(e => this._handleResize(e));
57
- this._terminal.onCursorMove(() => this._handleCursorMove());
61
+ this._register(this._terminal.onResize(e => this._handleResize(e)));
62
+ this._register(this._terminal.onCursorMove(() => this._handleCursorMove()));
58
63
  this._setupClearListeners();
59
64
  }
60
65
  _handleResize(e) {
@@ -1,10 +1,12 @@
1
1
  import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
2
- class CwdDetectionCapability {
2
+ import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
3
+ class CwdDetectionCapability extends Disposable {
3
4
  constructor() {
5
+ super(...arguments);
4
6
  this.type = 0 ;
5
7
  this._cwd = '';
6
8
  this._cwds = ( new Map());
7
- this._onDidChangeCwd = ( new Emitter());
9
+ this._onDidChangeCwd = this._register(( new Emitter()));
8
10
  this.onDidChangeCwd = this._onDidChangeCwd.event;
9
11
  }
10
12
  get cwds() {
@@ -4,6 +4,10 @@ class TerminalCapabilityStore extends Disposable {
4
4
  constructor() {
5
5
  super(...arguments);
6
6
  this._map = ( new Map());
7
+ this._onDidRemoveCapabilityType = this._register(( new Emitter()));
8
+ this.onDidRemoveCapabilityType = this._onDidRemoveCapabilityType.event;
9
+ this._onDidAddCapabilityType = this._register(( new Emitter()));
10
+ this.onDidAddCapabilityType = this._onDidAddCapabilityType.event;
7
11
  this._onDidRemoveCapability = this._register(( new Emitter()));
8
12
  this.onDidRemoveCapability = this._onDidRemoveCapability.event;
9
13
  this._onDidAddCapability = this._register(( new Emitter()));
@@ -14,17 +18,20 @@ class TerminalCapabilityStore extends Disposable {
14
18
  }
15
19
  add(capability, impl) {
16
20
  this._map.set(capability, impl);
17
- this._onDidAddCapability.fire(capability);
21
+ this._onDidAddCapabilityType.fire(capability);
22
+ this._onDidAddCapability.fire({ id: capability, capability: impl });
18
23
  }
19
24
  get(capability) {
20
25
  return this._map.get(capability);
21
26
  }
22
27
  remove(capability) {
23
- if (!( this._map.has(capability))) {
28
+ const impl = this._map.get(capability);
29
+ if (!impl) {
24
30
  return;
25
31
  }
26
32
  this._map.delete(capability);
27
- this._onDidRemoveCapability.fire(capability);
33
+ this._onDidRemoveCapabilityType.fire(capability);
34
+ this._onDidAddCapability.fire({ id: capability, capability: impl });
28
35
  }
29
36
  has(capability) {
30
37
  return ( this._map.has(capability));
@@ -34,6 +41,10 @@ class TerminalCapabilityStoreMultiplexer extends Disposable {
34
41
  constructor() {
35
42
  super(...arguments);
36
43
  this._stores = [];
44
+ this._onDidRemoveCapabilityType = this._register(( new Emitter()));
45
+ this.onDidRemoveCapabilityType = this._onDidRemoveCapabilityType.event;
46
+ this._onDidAddCapabilityType = this._register(( new Emitter()));
47
+ this.onDidAddCapabilityType = this._onDidAddCapabilityType.event;
37
48
  this._onDidRemoveCapability = this._register(( new Emitter()));
38
49
  this.onDidRemoveCapability = this._onDidRemoveCapability.event;
39
50
  this._onDidAddCapability = this._register(( new Emitter()));
@@ -71,9 +82,12 @@ class TerminalCapabilityStoreMultiplexer extends Disposable {
71
82
  add(store) {
72
83
  this._stores.push(store);
73
84
  for (const capability of store.items) {
74
- this._onDidAddCapability.fire(capability);
85
+ this._onDidAddCapabilityType.fire(capability);
86
+ this._onDidAddCapability.fire({ id: capability, capability: store.get(capability) });
75
87
  }
88
+ store.onDidAddCapabilityType(e => this._onDidAddCapabilityType.fire(e));
76
89
  store.onDidAddCapability(e => this._onDidAddCapability.fire(e));
90
+ store.onDidRemoveCapabilityType(e => this._onDidRemoveCapabilityType.fire(e));
77
91
  store.onDidRemoveCapability(e => this._onDidRemoveCapability.fire(e));
78
92
  }
79
93
  }
@@ -72,4 +72,4 @@ interface IMergedEnvironmentVariableCollection {
72
72
  diff(other: IMergedEnvironmentVariableCollection, scope: EnvironmentVariableScope | undefined): IMergedEnvironmentVariableCollectionDiff | undefined;
73
73
  }
74
74
 
75
- export { EnvironmentVariableMutatorType, EnvironmentVariableScope, IEnvironmentVariableCollection, IEnvironmentVariableCollectionDescription, IEnvironmentVariableMutator, IEnvironmentVariableMutatorOptions, IExtensionOwnedEnvironmentVariableMutator, IMergedEnvironmentVariableCollection, IMergedEnvironmentVariableCollectionDiff, ISerializableEnvironmentDescriptionMap, ISerializableEnvironmentVariableCollection, ISerializableEnvironmentVariableCollections };
75
+ export { EnvironmentVariableMutatorType, type EnvironmentVariableScope, type IEnvironmentVariableCollection, type IEnvironmentVariableCollectionDescription, type IEnvironmentVariableMutator, type IEnvironmentVariableMutatorOptions, type IExtensionOwnedEnvironmentVariableMutator, type IMergedEnvironmentVariableCollection, type IMergedEnvironmentVariableCollectionDiff, type ISerializableEnvironmentDescriptionMap, type ISerializableEnvironmentVariableCollection, type ISerializableEnvironmentVariableCollections };
@@ -612,4 +612,4 @@ interface ITerminalLogService extends ILogService {
612
612
  readonly _logBrand: undefined;
613
613
  }
614
614
 
615
- export { IBaseUnresolvedTerminalProfile, ICreateContributedTerminalProfileOptions, IExtensionTerminalProfile, IFixedTerminalDimensions, IProcessDataEvent, IProcessProperty, IProcessPropertyMap, IProcessReadyEvent, IProcessReadyWindowsPty, IPtyHostAttachTarget, IPtyHostLatencyMeasurement, IRawTerminalInstanceLayoutInfo, IRawTerminalTabLayoutInfo, IRawTerminalsLayoutInfo, IReconnectionProperties, IShellIntegration, IShellLaunchConfig, IShellLaunchConfigDto, ITerminalBackend, ITerminalChildProcess, ITerminalDimensions, ITerminalDimensionsOverride, ITerminalEnvironment, ITerminalExecutable, ITerminalLaunchError, ITerminalLogService, ITerminalOutputMatch, ITerminalOutputMatcher, ITerminalProcessOptions, ITerminalProfile, ITerminalProfileContribution, ITerminalProfileObject, ITerminalProfileSource, ITerminalTabLayoutInfoById, ITerminalUnsafePath, ITerminalsLayoutInfo, ITerminalsLayoutInfoById, PosixShellType, ProcessPropertyType, ProfileSource, ShellIntegrationStatus, TerminalExitReason, TerminalIcon, TerminalLocation, TerminalLocationString, TerminalShellType, TerminalType, TitleEventSource, WaitOnExitValue, WindowsShellType };
615
+ export { type IBaseUnresolvedTerminalProfile, type ICreateContributedTerminalProfileOptions, type IExtensionTerminalProfile, type IFixedTerminalDimensions, type IProcessDataEvent, type IProcessProperty, type IProcessPropertyMap, type IProcessReadyEvent, type IProcessReadyWindowsPty, type IPtyHostAttachTarget, type IPtyHostLatencyMeasurement, type IRawTerminalInstanceLayoutInfo, type IRawTerminalTabLayoutInfo, type IRawTerminalsLayoutInfo, type IReconnectionProperties, type IShellIntegration, type IShellLaunchConfig, type IShellLaunchConfigDto, type ITerminalBackend, type ITerminalChildProcess, type ITerminalDimensions, type ITerminalDimensionsOverride, type ITerminalEnvironment, type ITerminalExecutable, type ITerminalLaunchError, ITerminalLogService, type ITerminalOutputMatch, type ITerminalOutputMatcher, type ITerminalProcessOptions, type ITerminalProfile, type ITerminalProfileContribution, type ITerminalProfileObject, type ITerminalProfileSource, type ITerminalTabLayoutInfoById, type ITerminalUnsafePath, type ITerminalsLayoutInfo, type ITerminalsLayoutInfoById, PosixShellType, ProcessPropertyType, ProfileSource, ShellIntegrationStatus, TerminalExitReason, type TerminalIcon, TerminalLocation, TerminalLocationString, type TerminalShellType, type TerminalType, TitleEventSource, type WaitOnExitValue, WindowsShellType };
@@ -23,4 +23,4 @@ interface IProcessDetails {
23
23
  shellIntegrationNonce: string;
24
24
  }
25
25
 
26
- export { IProcessDetails };
26
+ export type { IProcessDetails };
@@ -40,6 +40,9 @@ class ShellIntegrationAddon extends Disposable {
40
40
  this._register(xterm.parser.registerOscHandler(9 , data => this._doHandleSetWindowsFriendlyCwd(data)));
41
41
  this._ensureCapabilitiesOrAddFailureTelemetry();
42
42
  }
43
+ getMarkerId(terminal, vscodeMarkerId) {
44
+ this._createOrGetBufferMarkDetection(terminal).getMark(vscodeMarkerId);
45
+ }
43
46
  _handleFinalTermSequence(data) {
44
47
  const didHandle = this._doHandleFinalTermSequence(data);
45
48
  if (this._status === 0 ) {
@@ -260,7 +263,7 @@ class ShellIntegrationAddon extends Disposable {
260
263
  _createOrGetCwdDetection() {
261
264
  let cwdDetection = this.capabilities.get(0 );
262
265
  if (!cwdDetection) {
263
- cwdDetection = ( new CwdDetectionCapability());
266
+ cwdDetection = this._register(( new CwdDetectionCapability()));
264
267
  this.capabilities.add(0 , cwdDetection);
265
268
  }
266
269
  return cwdDetection;
@@ -268,7 +271,7 @@ class ShellIntegrationAddon extends Disposable {
268
271
  _createOrGetCommandDetection(terminal) {
269
272
  let commandDetection = this.capabilities.get(2 );
270
273
  if (!commandDetection) {
271
- commandDetection = ( new CommandDetectionCapability(terminal, this._logService));
274
+ commandDetection = this._register(( new CommandDetectionCapability(terminal, this._logService)));
272
275
  this.capabilities.add(2 , commandDetection);
273
276
  }
274
277
  return commandDetection;
@@ -276,7 +279,7 @@ class ShellIntegrationAddon extends Disposable {
276
279
  _createOrGetBufferMarkDetection(terminal) {
277
280
  let bufferMarkDetection = this.capabilities.get(4 );
278
281
  if (!bufferMarkDetection) {
279
- bufferMarkDetection = ( new BufferMarkCapability(terminal));
282
+ bufferMarkDetection = this._register(( new BufferMarkCapability(terminal)));
280
283
  this.capabilities.add(4 , bufferMarkDetection);
281
284
  }
282
285
  return bufferMarkDetection;
@@ -53,4 +53,4 @@ interface ColorDefaults {
53
53
  type ColorValue = Color | string | ColorIdentifier | ColorTransform;
54
54
  declare function registerColor(id: string, defaults: ColorDefaults | null, description: string, needsTransparency?: boolean, deprecationMessage?: string): ColorIdentifier;
55
55
 
56
- export { ColorDefaults, ColorIdentifier, ColorTransform, ColorTransformType, ColorValue, registerColor };
56
+ export { type ColorDefaults, type ColorIdentifier, type ColorTransform, ColorTransformType, type ColorValue, registerColor };
@@ -79,4 +79,4 @@ interface IIconRegistry {
79
79
  getIconFont(id: string): IconFontDefinition | undefined;
80
80
  }
81
81
 
82
- export { IIconRegistry, IconContribution, IconDefaults, IconDefinition, IconFontContribution, IconFontDefinition, IconFontSource };
82
+ export { type IIconRegistry, IconContribution, type IconDefaults, type IconDefinition, type IconFontContribution, IconFontDefinition, type IconFontSource };
@@ -77,4 +77,4 @@ declare class Themable extends Disposable {
77
77
  protected getColor(id: string, modify?: (color: Color, theme: IColorTheme) => Color): string | null;
78
78
  }
79
79
 
80
- export { IColorTheme, IFileIconTheme, IProductIconTheme, IThemeService, ITokenStyle, Themable };
80
+ export { type IColorTheme, type IFileIconTheme, type IProductIconTheme, IThemeService, type ITokenStyle, Themable };
@@ -40,4 +40,4 @@ interface ProvidedPortAttributes {
40
40
  autoForwardAction: ProvidedOnAutoForward;
41
41
  }
42
42
 
43
- export { ProvidedOnAutoForward, ProvidedPortAttributes, TunnelCreationOptions, TunnelOptions, TunnelPrivacyId, TunnelProviderFeatures };
43
+ export { ProvidedOnAutoForward, type ProvidedPortAttributes, type TunnelCreationOptions, type TunnelOptions, TunnelPrivacyId, type TunnelProviderFeatures };
@@ -31,4 +31,4 @@ interface IUserDataProfile {
31
31
  readonly isTransient?: boolean;
32
32
  }
33
33
 
34
- export { IUserDataProfile, ProfileResourceType, UseDefaultProfileFlags };
34
+ export { type IUserDataProfile, ProfileResourceType, type UseDefaultProfileFlags };
@@ -48,7 +48,11 @@ class WebviewPortMappingManager {
48
48
  if (existing) {
49
49
  return existing;
50
50
  }
51
- const tunnel = await this.tunnelService.openTunnel({ getAddress: async () => remoteAuthority }, undefined, remotePort);
51
+ const tunnelOrError = await this.tunnelService.openTunnel({ getAddress: async () => remoteAuthority }, undefined, remotePort);
52
+ let tunnel;
53
+ if (typeof tunnelOrError === 'string') {
54
+ tunnel = undefined;
55
+ }
52
56
  if (tunnel) {
53
57
  this._tunnels.set(remotePort, tunnel);
54
58
  }
@@ -76,4 +76,4 @@ interface IPathData<T = IEditorOptions> {
76
76
  readonly openOnlyIfExists?: boolean;
77
77
  }
78
78
 
79
- export { IBaseOpenWindowsOptions, IBaseWindowOpenable, IFileToOpen, IFolderToOpen, IOpenEmptyWindowOptions, IOpenWindowOptions, IPath, IPathData, IWindowOpenable, IWorkspaceToOpen };
79
+ export type { IBaseOpenWindowsOptions, IBaseWindowOpenable, IFileToOpen, IFolderToOpen, IOpenEmptyWindowOptions, IOpenWindowOptions, IPath, IPathData, IWindowOpenable, IWorkspaceToOpen };
@@ -189,4 +189,4 @@ declare class WorkspaceFolder implements IWorkspaceFolder {
189
189
  toJSON(): IWorkspaceFolderData;
190
190
  }
191
191
 
192
- export { IAnyWorkspaceIdentifier, IBaseWorkspaceIdentifier, IEmptyWorkspaceIdentifier, IRawFileWorkspaceFolder, IRawUriWorkspaceFolder, ISingleFolderWorkspaceIdentifier, IWorkspace, IWorkspaceContextService, IWorkspaceFolder, IWorkspaceFolderData, IWorkspaceFoldersChangeEvent, IWorkspaceFoldersWillChangeEvent, IWorkspaceIdentifier, WorkbenchState, Workspace, WorkspaceFolder };
192
+ export { type IAnyWorkspaceIdentifier, type IBaseWorkspaceIdentifier, type IEmptyWorkspaceIdentifier, type IRawFileWorkspaceFolder, type IRawUriWorkspaceFolder, type ISingleFolderWorkspaceIdentifier, type IWorkspace, IWorkspaceContextService, type IWorkspaceFolder, type IWorkspaceFolderData, type IWorkspaceFoldersChangeEvent, type IWorkspaceFoldersWillChangeEvent, type IWorkspaceIdentifier, WorkbenchState, Workspace, WorkspaceFolder };
@@ -29,4 +29,4 @@ interface IWorkspaceTrustRequestService {
29
29
  requestWorkspaceTrustOnStartup(): void;
30
30
  }
31
31
 
32
- export { IWorkspaceTrustRequestService, WorkspaceTrustRequestButton, WorkspaceTrustRequestOptions, WorkspaceTrustUriResponse };
32
+ export { IWorkspaceTrustRequestService, type WorkspaceTrustRequestButton, type WorkspaceTrustRequestOptions, WorkspaceTrustUriResponse };
@@ -5,4 +5,4 @@ interface IWorkspaceFolderCreationData {
5
5
  readonly name?: string;
6
6
  }
7
7
 
8
- export { IWorkspaceFolderCreationData };
8
+ export type { IWorkspaceFolderCreationData };
@@ -0,0 +1,29 @@
1
+ import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
2
+ import { Disposable, DisposableMap } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
3
+ import { ExtHostContext, MainContext } from '../common/extHost.protocol.js';
4
+ import { IAiEmbeddingVectorService } from '../../services/aiEmbeddingVector/common/aiEmbeddingVectorService.js';
5
+ import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
6
+ let MainThreadAiEmbeddingVector = class MainThreadAiEmbeddingVector extends Disposable {
7
+ constructor(context, _AiEmbeddingVectorService) {
8
+ super();
9
+ this._AiEmbeddingVectorService = _AiEmbeddingVectorService;
10
+ this._registrations = this._register(( new DisposableMap()));
11
+ this._proxy = ( context.getProxy(ExtHostContext.ExtHostAiEmbeddingVector));
12
+ }
13
+ $registerAiEmbeddingVectorProvider(model, handle) {
14
+ const provider = {
15
+ provideAiEmbeddingVector: (strings, token) => {
16
+ return this._proxy.$provideAiEmbeddingVector(handle, strings, token);
17
+ },
18
+ };
19
+ this._registrations.set(handle, this._AiEmbeddingVectorService.registerAiEmbeddingVectorProvider(model, provider));
20
+ }
21
+ $unregisterAiEmbeddingVectorProvider(handle) {
22
+ this._registrations.deleteAndDispose(handle);
23
+ }
24
+ };
25
+ MainThreadAiEmbeddingVector = __decorate([
26
+ extHostNamedCustomer(MainContext.MainThreadAiEmbeddingVector),
27
+ ( __param(1, IAiEmbeddingVectorService))
28
+ ], MainThreadAiEmbeddingVector);
29
+ export { MainThreadAiEmbeddingVector };
@@ -0,0 +1,33 @@
1
+ import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
2
+ import { CancellationToken } from 'monaco-editor/esm/vs/base/common/cancellation.js';
3
+ import { Disposable, DisposableMap } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
4
+ import { ExtHostContext, MainContext } from '../common/extHost.protocol.js';
5
+ import { IAiRelatedInformationService } from '../../services/aiRelatedInformation/common/aiRelatedInformation.js';
6
+ import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
7
+ let MainThreadAiRelatedInformation = class MainThreadAiRelatedInformation extends Disposable {
8
+ constructor(context, _aiRelatedInformationService) {
9
+ super();
10
+ this._aiRelatedInformationService = _aiRelatedInformationService;
11
+ this._registrations = this._register(( new DisposableMap()));
12
+ this._proxy = ( context.getProxy(ExtHostContext.ExtHostAiRelatedInformation));
13
+ }
14
+ $getAiRelatedInformation(query, types) {
15
+ return this._aiRelatedInformationService.getRelatedInformation(query, types, CancellationToken.None);
16
+ }
17
+ $registerAiRelatedInformationProvider(handle, type) {
18
+ const provider = {
19
+ provideAiRelatedInformation: (query, token) => {
20
+ return this._proxy.$provideAiRelatedInformation(handle, query, token);
21
+ },
22
+ };
23
+ this._registrations.set(handle, this._aiRelatedInformationService.registerAiRelatedInformationProvider(type, provider));
24
+ }
25
+ $unregisterAiRelatedInformationProvider(handle) {
26
+ this._registrations.deleteAndDispose(handle);
27
+ }
28
+ };
29
+ MainThreadAiRelatedInformation = __decorate([
30
+ extHostNamedCustomer(MainContext.MainThreadAiRelatedInformation),
31
+ ( __param(1, IAiRelatedInformationService))
32
+ ], MainThreadAiRelatedInformation);
33
+ export { MainThreadAiRelatedInformation };
@@ -2,10 +2,12 @@ import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.
2
2
  import { DeferredPromise } from 'monaco-editor/esm/vs/base/common/async.js';
3
3
  import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
4
4
  import { Disposable, DisposableMap } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
5
+ import { revive } from 'monaco-editor/esm/vs/base/common/marshalling.js';
5
6
  import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
6
7
  import { ExtHostContext, MainContext } from '../common/extHost.protocol.js';
7
8
  import { IChatWidgetService } from '../../contrib/chat/browser/chat.js';
8
9
  import { IChatContributionService } from '../../contrib/chat/common/chatContributionService.js';
10
+ import { isCompleteInteractiveProgressTreeData } from '../../contrib/chat/common/chatModel.js';
9
11
  import { IChatService } from '../../contrib/chat/common/chatService.js';
10
12
  import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
11
13
  let MainThreadChat = class MainThreadChat extends Disposable {
@@ -24,21 +26,6 @@ let MainThreadChat = class MainThreadChat extends Disposable {
24
26
  this._proxy.$onDidPerformUserAction(e);
25
27
  }));
26
28
  }
27
- async $registerSlashCommandProvider(handle, chatProviderId) {
28
- const unreg = this._chatService.registerSlashCommandProvider({
29
- chatProviderId,
30
- provideSlashCommands: async (token) => {
31
- return this._proxy.$provideProviderSlashCommands(handle, token);
32
- },
33
- resolveSlashCommand: async (command, token) => {
34
- return this._proxy.$resolveSlashCommand(handle, command, token);
35
- }
36
- });
37
- this._providerRegistrations.set(handle, unreg);
38
- }
39
- async $unregisterSlashCommandProvider(handle) {
40
- this._providerRegistrations.deleteAndDispose(handle);
41
- }
42
29
  $transferChatSession(sessionId, toWorkspace) {
43
30
  const sessionIdStr = this._chatService.getSessionId(sessionId);
44
31
  if (!sessionIdStr) {
@@ -94,6 +81,7 @@ let MainThreadChat = class MainThreadChat extends Disposable {
94
81
  try {
95
82
  const requestDto = {
96
83
  message: request.message,
84
+ variables: request.variables
97
85
  };
98
86
  const dto = await this._proxy.$provideReply(handle, request.session.id, requestDto, token);
99
87
  return {
@@ -132,10 +120,19 @@ let MainThreadChat = class MainThreadChat extends Disposable {
132
120
  else if (responsePartHandle) {
133
121
  const responsePartId = `${id}_${responsePartHandle}`;
134
122
  const deferredContentPromise = this._activeResponsePartPromises.get(responsePartId);
135
- if (deferredContentPromise && 'content' in progress) {
123
+ if (deferredContentPromise && isCompleteInteractiveProgressTreeData(progress)) {
124
+ const withRevivedUris = revive(progress);
125
+ deferredContentPromise.complete(withRevivedUris);
126
+ this._activeResponsePartPromises.delete(responsePartId);
127
+ }
128
+ else if (deferredContentPromise && 'content' in progress) {
136
129
  deferredContentPromise.complete(progress.content);
137
130
  this._activeResponsePartPromises.delete(responsePartId);
138
131
  }
132
+ return;
133
+ }
134
+ if (isCompleteInteractiveProgressTreeData(progress)) {
135
+ return;
139
136
  }
140
137
  this._activeRequestProgressCallbacks.get(id)?.(progress);
141
138
  }
@@ -0,0 +1,59 @@
1
+ import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
2
+ import { DisposableMap } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
3
+ import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
4
+ import { Progress } from 'monaco-editor/esm/vs/platform/progress/common/progress.js';
5
+ import { ExtHostContext, MainContext } from '../common/extHost.protocol.js';
6
+ import { IChatProviderService } from '../../contrib/chat/common/chatProvider.js';
7
+ import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
8
+ let MainThreadChatProvider = class MainThreadChatProvider {
9
+ constructor(extHostContext, _chatProviderService, _logService) {
10
+ this._chatProviderService = _chatProviderService;
11
+ this._logService = _logService;
12
+ this._providerRegistrations = ( new DisposableMap());
13
+ this._pendingProgress = ( new Map());
14
+ this._proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostChatProvider));
15
+ }
16
+ dispose() {
17
+ this._providerRegistrations.dispose();
18
+ }
19
+ $registerProvider(handle, identifier, metadata) {
20
+ const registration = this._chatProviderService.registerChatResponseProvider(identifier, {
21
+ metadata,
22
+ provideChatResponse: async (messages, options, progress, token) => {
23
+ const requestId = (Math.random() * 1e6) | 0;
24
+ this._pendingProgress.set(requestId, progress);
25
+ try {
26
+ await this._proxy.$provideChatResponse(handle, requestId, messages, options, token);
27
+ }
28
+ finally {
29
+ this._pendingProgress.delete(requestId);
30
+ }
31
+ }
32
+ });
33
+ this._providerRegistrations.set(handle, registration);
34
+ }
35
+ async $handleProgressChunk(requestId, chunk) {
36
+ this._pendingProgress.get(requestId)?.report(chunk);
37
+ }
38
+ $unregisterProvider(handle) {
39
+ this._providerRegistrations.deleteAndDispose(handle);
40
+ }
41
+ async $fetchResponse(extension, providerId, requestId, messages, options, token) {
42
+ this._logService.debug('[CHAT] extension request STARTED', extension.value, requestId);
43
+ const task = this._chatProviderService.fetchChatResponse(providerId, messages, options, ( new Progress(value => {
44
+ this._proxy.$handleResponseFragment(requestId, value);
45
+ })), token);
46
+ task.catch(err => {
47
+ this._logService.error('[CHAT] extension request ERRORED', err, extension.value, requestId);
48
+ }).finally(() => {
49
+ this._logService.debug('[CHAT] extension request DONE', extension.value, requestId);
50
+ });
51
+ return task;
52
+ }
53
+ };
54
+ MainThreadChatProvider = __decorate([
55
+ extHostNamedCustomer(MainContext.MainThreadChatProvider),
56
+ ( __param(1, IChatProviderService)),
57
+ ( __param(2, ILogService))
58
+ ], MainThreadChatProvider);
59
+ export { MainThreadChatProvider };
@@ -0,0 +1,46 @@
1
+ import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
2
+ import { DisposableMap } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
3
+ import { ExtHostContext, MainContext } from '../common/extHost.protocol.js';
4
+ import { IChatSlashCommandService } from '../../contrib/chat/common/chatSlashCommands.js';
5
+ import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
6
+ let MainThreadChatSlashCommands = class MainThreadChatSlashCommands {
7
+ constructor(extHostContext, _chatSlashCommandService) {
8
+ this._chatSlashCommandService = _chatSlashCommandService;
9
+ this._commands = ( new DisposableMap());
10
+ this._pendingProgress = ( new Map());
11
+ this._proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostChatSlashCommands));
12
+ }
13
+ dispose() {
14
+ this._commands.clearAndDisposeAll();
15
+ }
16
+ $registerCommand(handle, name, detail) {
17
+ if (!this._chatSlashCommandService.hasCommand(name)) {
18
+ this._chatSlashCommandService.registerSlashData({
19
+ command: name,
20
+ detail
21
+ });
22
+ }
23
+ const d = this._chatSlashCommandService.registerSlashCallback(name, async (prompt, progress, history, token) => {
24
+ const requestId = Math.random();
25
+ this._pendingProgress.set(requestId, progress);
26
+ try {
27
+ await this._proxy.$executeCommand(handle, requestId, prompt, { history }, token);
28
+ }
29
+ finally {
30
+ this._pendingProgress.delete(requestId);
31
+ }
32
+ });
33
+ this._commands.set(handle, d);
34
+ }
35
+ async $handleProgressChunk(requestId, chunk) {
36
+ this._pendingProgress.get(requestId)?.report(chunk);
37
+ }
38
+ $unregisterCommand(handle) {
39
+ this._commands.deleteAndDispose(handle);
40
+ }
41
+ };
42
+ MainThreadChatSlashCommands = __decorate([
43
+ extHostNamedCustomer(MainContext.MainThreadChatSlashCommands),
44
+ ( __param(1, IChatSlashCommandService))
45
+ ], MainThreadChatSlashCommands);
46
+ export { MainThreadChatSlashCommands };
@@ -0,0 +1,29 @@
1
+ import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
2
+ import { DisposableMap } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
3
+ import { ExtHostContext, MainContext } from '../common/extHost.protocol.js';
4
+ import { IChatVariablesService } from '../../contrib/chat/common/chatVariables.js';
5
+ import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
6
+ let MainThreadChatSlashCommands = class MainThreadChatSlashCommands {
7
+ constructor(extHostContext, _chatVariablesService) {
8
+ this._chatVariablesService = _chatVariablesService;
9
+ this._variables = ( new DisposableMap());
10
+ this._proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostChatVariables));
11
+ }
12
+ dispose() {
13
+ this._variables.clearAndDisposeAll();
14
+ }
15
+ $registerVariable(handle, data) {
16
+ const registration = this._chatVariablesService.registerVariable(data, (messageText, _arg, _model, token) => {
17
+ return this._proxy.$resolveVariable(handle, messageText, token);
18
+ });
19
+ this._variables.set(handle, registration);
20
+ }
21
+ $unregisterVariable(handle) {
22
+ this._variables.deleteAndDispose(handle);
23
+ }
24
+ };
25
+ MainThreadChatSlashCommands = __decorate([
26
+ extHostNamedCustomer(MainContext.MainThreadChatVariables),
27
+ ( __param(1, IChatVariablesService))
28
+ ], MainThreadChatSlashCommands);
29
+ export { MainThreadChatSlashCommands };
@@ -35,6 +35,7 @@ import { NO_TYPE_ID } from '../../services/workingCopy/common/workingCopy.js';
35
35
  import { IWorkingCopyFileService } from '../../services/workingCopy/common/workingCopyFileService.js';
36
36
  import { IWorkingCopyService } from '../../services/workingCopy/common/workingCopyService.js';
37
37
  import { IFileDialogService } from '../../../platform/dialogs/common/dialogs.js';
38
+ var MainThreadCustomEditorModel_1;
38
39
  let MainThreadCustomEditors = class MainThreadCustomEditors extends Disposable {
39
40
  constructor(context, mainThreadWebview, mainThreadWebviewPanels, extensionService, storageService, workingCopyService, workingCopyFileService, _customEditorService, _editorGroupService, _editorService, _instantiationService, _webviewWorkbenchService) {
40
41
  super();
@@ -247,7 +248,7 @@ var HotExitState;
247
248
  }
248
249
  HotExitState.Pending = Pending;
249
250
  })(HotExitState || (HotExitState = {}))));
250
- let MainThreadCustomEditorModel = class MainThreadCustomEditorModel extends ResourceWorkingCopy {
251
+ let MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = class MainThreadCustomEditorModel extends ResourceWorkingCopy {
251
252
  static async create(instantiationService, proxy, viewType, resource, options, getEditors, cancellation) {
252
253
  const editors = getEditors();
253
254
  let untitledDocumentData;
@@ -255,10 +256,10 @@ let MainThreadCustomEditorModel = class MainThreadCustomEditorModel extends Reso
255
256
  untitledDocumentData = editors[0].untitledDocumentData;
256
257
  }
257
258
  const { editable } = await proxy.$createCustomDocument(resource, viewType, options.backupId, untitledDocumentData, cancellation);
258
- return instantiationService.createInstance(MainThreadCustomEditorModel, proxy, viewType, resource, !!options.backupId, editable, !!untitledDocumentData, getEditors);
259
+ return instantiationService.createInstance(MainThreadCustomEditorModel_1, proxy, viewType, resource, !!options.backupId, editable, !!untitledDocumentData, getEditors);
259
260
  }
260
261
  constructor(_proxy, _viewType, _editorResource, fromBackup, _editable, startDirty, _getEditors, _fileDialogService, fileService, _labelService, _undoService, _environmentService, workingCopyService, _pathService, extensionService) {
261
- super(MainThreadCustomEditorModel.toWorkingCopyResource(_viewType, _editorResource), fileService);
262
+ super(MainThreadCustomEditorModel_1.toWorkingCopyResource(_viewType, _editorResource), fileService);
262
263
  this._proxy = _proxy;
263
264
  this._viewType = _viewType;
264
265
  this._editorResource = _editorResource;
@@ -555,7 +556,7 @@ let MainThreadCustomEditorModel = class MainThreadCustomEditorModel extends Reso
555
556
  throw new Error(`Cannot back up in this state: ${errorMessage}`);
556
557
  }
557
558
  };
558
- MainThreadCustomEditorModel = ( (__decorate([
559
+ MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = ( (__decorate([
559
560
  ( (__param(7, IFileDialogService))),
560
561
  ( (__param(8, IFileService))),
561
562
  ( (__param(9, ILabelService))),
@@ -5,7 +5,6 @@ import { Range } from 'monaco-editor/esm/vs/editor/common/core/range.js';
5
5
  import { Selection } from 'monaco-editor/esm/vs/editor/common/core/selection.js';
6
6
  import { SnippetController2 } from 'monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetController2.js';
7
7
  import { TextEditorRevealType } from '../common/extHost.protocol.js';
8
- import { withNullAsUndefined } from 'monaco-editor/esm/vs/base/common/types.js';
9
8
  import { equals } from 'monaco-editor/esm/vs/base/common/arrays.js';
10
9
  import { EditorState } from 'monaco-editor/esm/vs/editor/contrib/editorState/browser/editorState.js';
11
10
  import { SnippetParser } from 'monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetParser.js';
@@ -83,7 +82,7 @@ class MainThreadTextEditorProperties {
83
82
  if (!oldProps || !MainThreadTextEditorProperties._selectionsEqual(oldProps.selections, this.selections)) {
84
83
  delta.selections = {
85
84
  selections: this.selections,
86
- source: withNullAsUndefined(selectionChangeSource)
85
+ source: selectionChangeSource ?? undefined,
87
86
  };
88
87
  }
89
88
  if (!oldProps || !MainThreadTextEditorProperties._optionsEqual(oldProps.options, this.options)) {