@codingame/monaco-vscode-api 1.79.1 → 1.79.2-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 (463) hide show
  1. package/README.md +11 -2
  2. package/dist/api.js +10 -8
  3. package/dist/composite.d.ts +65 -0
  4. package/dist/configurationRegistry.d.ts +212 -0
  5. package/dist/contextkey.d.ts +1 -1
  6. package/dist/default-extensions/json.js +1 -0
  7. package/dist/default-extensions/theme-defaults.js +2 -2
  8. package/dist/editorBrowser.d.ts +272 -3
  9. package/dist/event.d.ts +6 -1
  10. package/dist/{extension-tools-0c4c1ad7.js → extension-tools-3c2bf0a4.js} +698 -507
  11. package/dist/extensions.d.ts +3 -2
  12. package/dist/extensions.d2.ts +6 -17
  13. package/dist/extensionsRegistry.d.ts +15 -9
  14. package/dist/files.d.ts +71 -7
  15. package/dist/jsonSchema.d.ts +1 -1
  16. package/dist/keybinding.d.ts +2 -2
  17. package/dist/languageFeatures.d.ts +703 -61
  18. package/dist/monaco.d.ts +5 -4
  19. package/dist/override/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +2 -0
  20. package/dist/override/vs/workbench/contrib/notebook/browser/notebookEditor.js +2 -0
  21. package/dist/override/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +2 -0
  22. package/dist/override/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -1
  23. package/dist/platform.d.ts +11 -0
  24. package/dist/rollup-extension-directory-plugin.js +1 -1
  25. package/dist/rollup-vsix-plugin.js +1 -1
  26. package/dist/service-override/configuration.d.ts +5 -206
  27. package/dist/service-override/files.d.ts +2 -2
  28. package/dist/service-override/files.js +1 -1
  29. package/dist/service-override/markers.d.ts +7 -0
  30. package/dist/service-override/markers.js +6 -0
  31. package/dist/service-override/output.d.ts +7 -0
  32. package/dist/service-override/output.js +22 -0
  33. package/dist/service-override/preferences.js +7 -1
  34. package/dist/service-override/quickaccess.js +0 -9
  35. package/dist/service-override/search.d.ts +7 -0
  36. package/dist/service-override/search.js +19 -0
  37. package/dist/service-override/terminal.d.ts +607 -0
  38. package/dist/service-override/terminal.js +98 -0
  39. package/dist/service-override/tools/editor.js +1 -1
  40. package/dist/service-override/views.d.ts +561 -335
  41. package/dist/service-override/views.js +51 -11
  42. package/dist/services.d.ts +2627 -108
  43. package/dist/services.js +3 -0
  44. package/dist/severity.d.ts +16 -0
  45. package/dist/uri.d.ts +22 -11
  46. package/dist/views.d.ts +270 -0
  47. package/dist/vscode/vs/base/common/processes.js +24 -0
  48. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/decorations.js +20 -0
  49. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/delegatingEditorImpl.js +106 -0
  50. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffEditorSash.js +59 -0
  51. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffEditorWidget2.contribution.js +41 -0
  52. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffEditorWidget2.js +369 -0
  53. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffModel.js +247 -0
  54. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/lineAlignment.js +179 -0
  55. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/overviewRulerPart.js +121 -0
  56. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/style.css.js +4 -0
  57. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/unchangedRanges.js +184 -0
  58. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/utils.js +88 -0
  59. package/dist/vscode/vs/platform/extensionManagement/common/extensionManagement.js +38 -1
  60. package/dist/vscode/vs/platform/extensionManagement/common/extensionManagementUtil.js +5 -1
  61. package/dist/vscode/vs/platform/extensionResourceLoader/common/extensionResourceLoader.js +13 -5
  62. package/dist/vscode/vs/platform/files/common/fileService.js +43 -5
  63. package/dist/vscode/vs/platform/files/common/files.js +3 -1
  64. package/dist/vscode/vs/platform/languagePacks/common/languagePacks.js +4 -1
  65. package/dist/vscode/vs/platform/log/common/bufferLog.js +34 -0
  66. package/dist/vscode/vs/platform/log/common/fileLog.js +105 -0
  67. package/dist/vscode/vs/platform/quickinput/browser/quickPickPin.js +1 -1
  68. package/dist/vscode/vs/platform/remote/common/remoteAuthorityResolver.js +20 -1
  69. package/dist/vscode/vs/platform/request/browser/requestService.js +1 -1
  70. package/dist/vscode/vs/platform/request/common/request.js +3 -3
  71. package/dist/vscode/vs/platform/storage/common/storage.js +3 -0
  72. package/dist/vscode/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +39 -0
  73. package/dist/vscode/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +565 -0
  74. package/dist/vscode/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +27 -0
  75. package/dist/vscode/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +22 -0
  76. package/dist/vscode/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +46 -0
  77. package/dist/vscode/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +80 -0
  78. package/dist/vscode/vs/platform/terminal/common/environmentVariable.js +7 -0
  79. package/dist/vscode/vs/platform/terminal/common/environmentVariableCollection.js +196 -0
  80. package/dist/vscode/vs/platform/terminal/common/environmentVariableShared.js +23 -0
  81. package/dist/vscode/vs/platform/terminal/common/terminal.js +21 -1
  82. package/dist/vscode/vs/platform/terminal/common/terminalDataBuffering.js +45 -0
  83. package/dist/vscode/vs/platform/terminal/common/terminalEnvironment.js +37 -0
  84. package/dist/vscode/vs/platform/terminal/common/terminalPlatformConfiguration.js +622 -0
  85. package/dist/vscode/vs/platform/terminal/common/terminalProfiles.js +107 -0
  86. package/dist/vscode/vs/platform/terminal/common/terminalRecorder.js +66 -0
  87. package/dist/vscode/vs/platform/terminal/common/terminalStrings.js +16 -0
  88. package/dist/vscode/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +321 -0
  89. package/dist/vscode/vs/platform/userDataSync/common/settingsMerge.js +39 -1
  90. package/dist/vscode/vs/platform/userDataSync/common/userDataSync.js +19 -0
  91. package/dist/vscode/vs/platform/workspace/common/canonicalUri.js +3 -0
  92. package/dist/vscode/vs/platform/workspace/common/virtualWorkspace.js +4 -1
  93. package/dist/vscode/vs/platform/workspaces/common/workspaces.js +2 -2
  94. package/dist/vscode/vs/workbench/api/browser/mainThreadCommands.js +2 -3
  95. package/dist/vscode/vs/workbench/api/browser/mainThreadEditorTabs.js +473 -0
  96. package/dist/vscode/vs/workbench/api/browser/mainThreadLanguageFeatures.js +45 -38
  97. package/dist/vscode/vs/workbench/api/browser/mainThreadSearch.js +146 -0
  98. package/dist/vscode/vs/workbench/api/browser/mainThreadStatusBar.js +33 -52
  99. package/dist/vscode/vs/workbench/api/browser/mainThreadTerminalService.js +395 -0
  100. package/dist/vscode/vs/workbench/api/browser/mainThreadTheming.js +22 -0
  101. package/dist/vscode/vs/workbench/api/browser/mainThreadTreeViews.js +10 -5
  102. package/dist/vscode/vs/workbench/api/browser/mainThreadWindow.js +11 -4
  103. package/dist/vscode/vs/workbench/api/browser/mainThreadWorkspace.js +34 -11
  104. package/dist/vscode/vs/workbench/api/browser/statusBarExtensionPoint.js +81 -0
  105. package/dist/vscode/vs/workbench/api/common/extHost.protocol.js +7 -2
  106. package/dist/vscode/vs/workbench/api/common/extHostDebugService.js +4 -13
  107. package/dist/vscode/vs/workbench/api/common/extHostExtensionService.js +30 -15
  108. package/dist/vscode/vs/workbench/api/common/extHostFileSystemConsumer.js +20 -6
  109. package/dist/vscode/vs/workbench/api/common/extHostLanguageFeatures.js +41 -8
  110. package/dist/vscode/vs/workbench/api/common/extHostManagedSockets.js +3 -0
  111. package/dist/vscode/vs/workbench/api/common/extHostSearch.js +109 -0
  112. package/dist/vscode/vs/workbench/api/common/extHostStatusBar.js +33 -6
  113. package/dist/vscode/vs/workbench/api/common/extHostTerminalService.js +879 -1
  114. package/dist/vscode/vs/workbench/api/common/extHostTheming.js +38 -0
  115. package/dist/vscode/vs/workbench/api/common/extHostTreeViews.js +8 -5
  116. package/dist/vscode/vs/workbench/api/common/extHostTypeConverters.js +15 -17
  117. package/dist/vscode/vs/workbench/api/common/extHostTypes.js +117 -4
  118. package/dist/vscode/vs/workbench/api/common/extHostWindow.js +28 -6
  119. package/dist/vscode/vs/workbench/api/common/extHostWorkspace.js +28 -0
  120. package/dist/vscode/vs/workbench/api/common/shared/dataTransferCache.js +11 -14
  121. package/dist/vscode/vs/workbench/api/node/extHostTerminalService.js +22 -0
  122. package/dist/vscode/vs/workbench/browser/actions/layoutActions.js +2 -1
  123. package/dist/vscode/vs/workbench/browser/actions/windowActions.js +2 -2
  124. package/dist/vscode/vs/workbench/browser/dnd.js +56 -2
  125. package/dist/vscode/vs/workbench/browser/parts/compositePart.js +1 -1
  126. package/dist/vscode/vs/workbench/browser/parts/dialogs/dialogHandler.js +2 -2
  127. package/dist/vscode/vs/workbench/browser/parts/editor/editor.contribution.js +1 -0
  128. package/dist/vscode/vs/workbench/browser/parts/editor/editor.js +1 -0
  129. package/dist/vscode/vs/workbench/browser/parts/editor/editorCommands.js +9 -10
  130. package/dist/vscode/vs/workbench/browser/parts/editor/editorGroupView.js +15 -9
  131. package/dist/vscode/vs/workbench/browser/parts/editor/editorGroupWatermark.js +13 -17
  132. package/dist/vscode/vs/workbench/browser/parts/editor/editorStatus.js +1 -1
  133. package/dist/vscode/vs/workbench/browser/parts/editor/editorsObserver.js +2 -2
  134. package/dist/vscode/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +1 -1
  135. package/dist/vscode/vs/workbench/browser/parts/editor/media/tabstitlecontrol.css.js +1 -1
  136. package/dist/vscode/vs/workbench/browser/parts/editor/noTabsTitleControl.js +3 -1
  137. package/dist/vscode/vs/workbench/browser/parts/editor/tabsTitleControl.js +60 -11
  138. package/dist/vscode/vs/workbench/browser/parts/editor/textDiffEditor.js +16 -10
  139. package/dist/vscode/vs/workbench/browser/parts/editor/textResourceEditor.js +1 -1
  140. package/dist/vscode/vs/workbench/browser/parts/statusbar/media/statusbarpart.css.js +1 -1
  141. package/dist/vscode/vs/workbench/browser/parts/views/checkbox.js +10 -0
  142. package/dist/vscode/vs/workbench/browser/parts/views/treeView.js +78 -14
  143. package/dist/vscode/vs/workbench/browser/parts/views/viewPaneContainer.js +1 -1
  144. package/dist/vscode/vs/workbench/browser/workbench.contribution.js +65 -6
  145. package/dist/vscode/vs/workbench/common/configuration.js +8 -1
  146. package/dist/vscode/vs/workbench/common/contextkeys.js +9 -1
  147. package/dist/vscode/vs/workbench/common/editor/editorGroupModel.js +5 -1
  148. package/dist/vscode/vs/workbench/common/editor/resourceEditorInput.js +6 -3
  149. package/dist/vscode/vs/workbench/common/editor/textResourceEditorInput.js +9 -6
  150. package/dist/vscode/vs/workbench/common/editor.js +1 -5
  151. package/dist/vscode/vs/workbench/common/resources.js +111 -34
  152. package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +1 -1
  153. package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.js +1 -1
  154. package/dist/vscode/vs/workbench/contrib/chat/browser/chat.js +3 -0
  155. package/dist/vscode/vs/workbench/contrib/chat/common/chatService.js +3 -0
  156. package/dist/vscode/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +6 -4
  157. package/dist/vscode/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css.js +4 -0
  158. package/dist/vscode/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +250 -0
  159. package/dist/vscode/vs/workbench/contrib/customEditor/browser/customEditorInput.js +290 -0
  160. package/dist/vscode/vs/workbench/contrib/customEditor/common/customEditor.js +3 -0
  161. package/dist/vscode/vs/workbench/contrib/debug/browser/debugActionViewItems.js +1 -0
  162. package/dist/vscode/vs/workbench/contrib/debug/browser/debugCommands.js +2 -1
  163. package/dist/vscode/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +20 -20
  164. package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorActions.js +5 -3
  165. package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorContribution.js +5 -2
  166. package/dist/vscode/vs/workbench/contrib/debug/browser/debugHover.js +33 -6
  167. package/dist/vscode/vs/workbench/contrib/debug/browser/debugSession.js +1 -1
  168. package/dist/vscode/vs/workbench/contrib/debug/browser/debugTaskRunner.js +1 -1
  169. package/dist/vscode/vs/workbench/contrib/debug/browser/repl.js +3 -3
  170. package/dist/vscode/vs/workbench/contrib/debug/common/debugModel.js +29 -17
  171. package/dist/vscode/vs/workbench/contrib/debug/common/debugStorage.js +11 -10
  172. package/dist/vscode/vs/workbench/contrib/debug/common/debugger.js +10 -6
  173. package/dist/vscode/vs/workbench/contrib/extensions/browser/extensionsActions.js +2514 -0
  174. package/dist/vscode/vs/workbench/contrib/extensions/browser/extensionsIcons.js +82 -0
  175. package/dist/vscode/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +4 -0
  176. package/dist/vscode/vs/workbench/contrib/extensions/common/extensions.js +6 -1
  177. package/dist/vscode/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +16 -0
  178. package/dist/vscode/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +2 -3
  179. package/dist/vscode/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +2 -0
  180. package/dist/vscode/vs/workbench/contrib/files/browser/explorerService.js +10 -6
  181. package/dist/vscode/vs/workbench/contrib/files/browser/explorerViewlet.js +3 -18
  182. package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.contribution.js +37 -2
  183. package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.js +65 -3
  184. package/dist/vscode/vs/workbench/contrib/files/browser/fileCommands.js +3 -3
  185. package/dist/vscode/vs/workbench/contrib/files/browser/fileConstants.js +3 -1
  186. package/dist/vscode/vs/workbench/contrib/files/browser/files.contribution.js +41 -6
  187. package/dist/vscode/vs/workbench/contrib/files/browser/files.js +1 -0
  188. package/dist/vscode/vs/workbench/contrib/files/browser/views/explorerView.js +3 -3
  189. package/dist/vscode/vs/workbench/contrib/files/browser/views/explorerViewer.js +6 -2
  190. package/dist/vscode/vs/workbench/contrib/files/common/explorerModel.js +16 -9
  191. package/dist/vscode/vs/workbench/contrib/files/common/files.js +1 -6
  192. package/dist/vscode/vs/workbench/contrib/interactive/browser/interactiveDocumentService.js +3 -0
  193. package/dist/vscode/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +200 -0
  194. package/dist/vscode/vs/workbench/contrib/interactive/browser/interactiveHistoryService.js +3 -0
  195. package/dist/vscode/vs/workbench/contrib/markers/browser/markers.contribution.js +586 -0
  196. package/dist/vscode/vs/workbench/contrib/markers/browser/markersFilterOptions.js +75 -0
  197. package/dist/vscode/vs/workbench/contrib/markers/browser/markersModel.js +201 -0
  198. package/dist/vscode/vs/workbench/contrib/markers/browser/markersTable.js +451 -0
  199. package/dist/vscode/vs/workbench/contrib/markers/browser/markersTreeViewer.js +670 -0
  200. package/dist/vscode/vs/workbench/contrib/markers/browser/markersView.js +857 -0
  201. package/dist/vscode/vs/workbench/contrib/markers/browser/markersViewActions.css.js +4 -0
  202. package/dist/vscode/vs/workbench/contrib/markers/browser/markersViewActions.js +132 -0
  203. package/dist/vscode/vs/workbench/contrib/markers/browser/media/markers.css.js +4 -0
  204. package/dist/vscode/vs/workbench/contrib/markers/browser/messages.js +171 -0
  205. package/dist/vscode/vs/workbench/contrib/markers/common/markers.js +15 -1
  206. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +135 -0
  207. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +421 -0
  208. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +5 -0
  209. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +55 -0
  210. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/editing.js +54 -0
  211. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +108 -0
  212. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +334 -0
  213. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +606 -0
  214. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +307 -0
  215. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.js +36 -0
  216. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +165 -0
  217. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/telemetry.js +78 -0
  218. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/utils.js +68 -0
  219. package/dist/vscode/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +2 -0
  220. package/dist/vscode/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +70 -0
  221. package/dist/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css.js +4 -0
  222. package/dist/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +158 -0
  223. package/dist/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser.js +6 -1
  224. package/dist/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.js +3 -0
  225. package/dist/vscode/vs/workbench/contrib/notebook/common/notebookCommon.js +16 -1
  226. package/dist/vscode/vs/workbench/contrib/notebook/common/notebookService.js +3 -0
  227. package/dist/vscode/vs/workbench/contrib/output/browser/logViewer.js +64 -0
  228. package/dist/vscode/vs/workbench/contrib/output/browser/output.contribution.js +378 -0
  229. package/dist/vscode/vs/workbench/contrib/output/browser/outputServices.js +39 -3
  230. package/dist/vscode/vs/workbench/contrib/output/browser/outputView.js +220 -0
  231. package/dist/vscode/vs/workbench/contrib/output/common/outputChannelModel.js +12 -3
  232. package/dist/vscode/vs/workbench/contrib/output/common/outputLinkComputer.js +129 -0
  233. package/dist/vscode/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +270 -0
  234. package/dist/vscode/vs/workbench/contrib/preferences/browser/keybindingsEditor.js +1080 -0
  235. package/dist/vscode/vs/workbench/contrib/preferences/browser/media/keybindings.css.js +4 -0
  236. package/dist/vscode/vs/workbench/contrib/preferences/browser/media/keybindingsEditor.css.js +4 -0
  237. package/dist/vscode/vs/workbench/contrib/preferences/browser/media/preferences.css.js +4 -0
  238. package/dist/vscode/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css.js +4 -0
  239. package/dist/vscode/vs/workbench/contrib/preferences/browser/media/settingsWidgets.css.js +4 -0
  240. package/dist/vscode/vs/workbench/contrib/preferences/browser/preferences.contribution.js +1154 -0
  241. package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesActions.js +94 -0
  242. package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesEditor.js +47 -0
  243. package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesIcons.js +37 -0
  244. package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesRenderers.js +731 -0
  245. package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesSearch.js +271 -0
  246. package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +479 -0
  247. package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsEditor2.js +1465 -0
  248. package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsEditorSettingIndicators.js +506 -0
  249. package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsLayout.js +296 -0
  250. package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsSearchMenu.js +79 -0
  251. package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsTree.js +1984 -0
  252. package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +759 -0
  253. package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsWidgets.js +1008 -0
  254. package/dist/vscode/vs/workbench/contrib/preferences/browser/tocTree.js +196 -0
  255. package/dist/vscode/vs/workbench/contrib/preferences/common/preferences.js +68 -0
  256. package/dist/vscode/vs/workbench/contrib/preferences/common/preferencesContribution.js +157 -0
  257. package/dist/vscode/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +67 -0
  258. package/dist/vscode/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +16 -16
  259. package/dist/vscode/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +1 -2
  260. package/dist/vscode/vs/workbench/contrib/remote/browser/remoteExplorer.js +23 -2
  261. package/dist/vscode/vs/workbench/contrib/remote/browser/tunnelView.js +5 -5
  262. package/dist/vscode/vs/workbench/contrib/search/browser/media/searchview.css.js +4 -0
  263. package/dist/vscode/vs/workbench/contrib/search/browser/patternInputWidget.js +217 -0
  264. package/dist/vscode/vs/workbench/contrib/search/browser/replace.js +3 -0
  265. package/dist/vscode/vs/workbench/contrib/search/browser/replaceContributions.js +7 -0
  266. package/dist/vscode/vs/workbench/contrib/search/browser/replaceService.js +222 -0
  267. package/dist/vscode/vs/workbench/contrib/search/browser/search.contribution.js +54 -15
  268. package/dist/vscode/vs/workbench/contrib/search/browser/searchActionsBase.js +17 -0
  269. package/dist/vscode/vs/workbench/contrib/search/browser/searchFindInput.js +41 -0
  270. package/dist/vscode/vs/workbench/contrib/search/browser/searchIcons.js +35 -0
  271. package/dist/vscode/vs/workbench/contrib/search/browser/searchMessage.js +58 -0
  272. package/dist/vscode/vs/workbench/contrib/search/browser/searchModel.js +1842 -0
  273. package/dist/vscode/vs/workbench/contrib/search/browser/searchNotebookHelpers.js +49 -0
  274. package/dist/vscode/vs/workbench/contrib/search/browser/searchResultsView.js +379 -0
  275. package/dist/vscode/vs/workbench/contrib/search/browser/searchView.js +1867 -0
  276. package/dist/vscode/vs/workbench/contrib/search/browser/searchWidget.js +628 -0
  277. package/dist/vscode/vs/workbench/contrib/search/common/constants.js +30 -1
  278. package/dist/vscode/vs/workbench/contrib/search/common/search.js +9 -1
  279. package/dist/vscode/vs/workbench/contrib/search/common/searchHistoryService.js +42 -0
  280. package/dist/vscode/vs/workbench/contrib/searchEditor/browser/constants.js +11 -0
  281. package/dist/vscode/vs/workbench/contrib/searchEditor/browser/media/searchEditor.css.js +4 -0
  282. package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +477 -0
  283. package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditor.js +697 -0
  284. package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +188 -0
  285. package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +295 -0
  286. package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +135 -0
  287. package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +268 -0
  288. package/dist/vscode/vs/workbench/contrib/snippets/browser/tabCompletion.js +2 -2
  289. package/dist/vscode/vs/workbench/contrib/tasks/common/taskService.js +16 -1
  290. package/dist/vscode/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +119 -0
  291. package/dist/vscode/vs/workbench/contrib/terminal/browser/media/scrollbar.css.js +4 -0
  292. package/dist/vscode/vs/workbench/contrib/terminal/browser/media/terminal.css.js +4 -0
  293. package/dist/vscode/vs/workbench/contrib/terminal/browser/media/widgets.css.js +4 -0
  294. package/dist/vscode/vs/workbench/contrib/terminal/browser/media/xterm.css.js +4 -0
  295. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminal.contribution.js +238 -0
  296. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminal.js +4 -1
  297. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalActions.js +1930 -0
  298. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalCommands.js +22 -0
  299. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalConfigHelper.js +213 -0
  300. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +17 -0
  301. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalEditor.js +186 -0
  302. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +199 -0
  303. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalEditorService.js +239 -0
  304. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalExtensions.js +22 -0
  305. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalGroup.js +482 -0
  306. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalGroupService.js +372 -0
  307. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalIcon.js +60 -1
  308. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalIcons.js +37 -0
  309. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalInstance.js +2123 -0
  310. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalInstanceService.js +79 -0
  311. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalMainContribution.js +82 -0
  312. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalMenus.js +850 -0
  313. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy.js +142 -0
  314. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +618 -0
  315. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProfileQuickpick.js +278 -0
  316. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProfileResolverService.js +417 -0
  317. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProfileService.js +213 -0
  318. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +144 -0
  319. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +267 -0
  320. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalService.js +1063 -0
  321. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalStatusList.js +108 -0
  322. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalTabbedView.js +417 -0
  323. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalTabsList.js +680 -0
  324. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalTooltip.js +72 -0
  325. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalUri.js +39 -0
  326. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalView.js +535 -0
  327. package/dist/vscode/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +36 -0
  328. package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +469 -0
  329. package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +97 -0
  330. package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +56 -0
  331. package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +416 -0
  332. package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +390 -0
  333. package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +587 -0
  334. package/dist/vscode/vs/workbench/contrib/terminal/common/environmentVariable.js +3 -0
  335. package/dist/vscode/vs/workbench/contrib/terminal/common/environmentVariableService.js +94 -0
  336. package/dist/vscode/vs/workbench/contrib/terminal/common/history.js +356 -0
  337. package/dist/vscode/vs/workbench/contrib/terminal/common/terminal.js +266 -0
  338. package/dist/vscode/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -16
  339. package/dist/vscode/vs/workbench/contrib/terminal/common/terminalConfiguration.js +965 -0
  340. package/dist/vscode/vs/workbench/contrib/terminal/common/terminalContextKey.js +157 -0
  341. package/dist/vscode/vs/workbench/contrib/terminal/common/terminalEnvironment.js +272 -0
  342. package/dist/vscode/vs/workbench/contrib/terminal/common/terminalExtensionPoints.js +27 -0
  343. package/dist/vscode/vs/workbench/contrib/terminal/common/terminalStrings.js +86 -0
  344. package/dist/vscode/vs/workbench/contrib/terminal/electron-sandbox/terminalProfileResolverService.js +46 -0
  345. package/dist/vscode/vs/workbench/contrib/terminalContrib/links/browser/links.js +3 -0
  346. package/dist/vscode/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkProviderService.js +26 -0
  347. package/dist/vscode/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.js +3 -0
  348. package/dist/vscode/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixService.js +143 -0
  349. package/dist/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput.js +85 -0
  350. package/dist/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.js +52 -0
  351. package/dist/vscode/vs/workbench/services/actions/common/menusExtensionPoint.js +14 -6
  352. package/dist/vscode/vs/workbench/services/assignment/common/assignmentService.js +3 -0
  353. package/dist/vscode/vs/workbench/services/configuration/browser/configurationService.js +13 -13
  354. package/dist/vscode/vs/workbench/services/configuration/common/configuration.js +2 -1
  355. package/dist/vscode/vs/workbench/services/configuration/common/configurationEditing.js +2 -2
  356. package/dist/vscode/vs/workbench/services/configuration/common/jsonEditingService.js +2 -2
  357. package/dist/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.js +3 -2
  358. package/dist/vscode/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.js +4 -0
  359. package/dist/vscode/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +2 -0
  360. package/dist/vscode/vs/workbench/services/extensions/common/extensionManifestPropertiesService.js +3 -0
  361. package/dist/vscode/vs/workbench/services/extensions/common/extensions.js +14 -2
  362. package/dist/vscode/vs/workbench/services/extensions/common/extensionsApiProposals.js +10 -1
  363. package/dist/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +70 -3
  364. package/dist/vscode/vs/workbench/services/hover/browser/hoverService.js +1 -1
  365. package/dist/vscode/vs/workbench/services/hover/browser/hoverWidget.js +2 -1
  366. package/dist/vscode/vs/workbench/services/hover/browser/media/hover.css.js +1 -1
  367. package/dist/vscode/vs/workbench/services/keybinding/common/keybindingEditing.js +275 -0
  368. package/dist/vscode/vs/workbench/services/localization/common/locale.js +3 -0
  369. package/dist/vscode/vs/workbench/services/log/common/logConstants.js +2 -0
  370. package/dist/vscode/vs/workbench/services/output/common/output.js +4 -1
  371. package/dist/vscode/vs/workbench/services/preferences/common/preferences.js +22 -1
  372. package/dist/vscode/vs/workbench/services/preferences/common/preferencesModels.js +6 -0
  373. package/dist/vscode/vs/workbench/services/preferences/common/preferencesValidation.js +37 -1
  374. package/dist/vscode/vs/workbench/services/remote/common/remoteAgentService.js +69 -0
  375. package/dist/vscode/vs/workbench/services/remote/common/remoteExplorerService.js +66 -27
  376. package/dist/vscode/vs/workbench/services/search/common/fileSearchManager.js +265 -0
  377. package/dist/vscode/vs/workbench/services/search/common/queryBuilder.js +6 -0
  378. package/dist/vscode/vs/workbench/services/search/common/replace.js +203 -0
  379. package/dist/vscode/vs/workbench/services/search/common/search.js +227 -1
  380. package/dist/vscode/vs/workbench/services/search/common/searchExtTypes.js +6 -0
  381. package/dist/vscode/vs/workbench/services/search/common/searchHelpers.js +72 -0
  382. package/dist/vscode/vs/workbench/services/search/common/searchService.js +355 -0
  383. package/dist/vscode/vs/workbench/services/search/common/textSearchManager.js +309 -0
  384. package/dist/vscode/vs/workbench/services/suggest/browser/media/suggest.css.js +4 -0
  385. package/dist/vscode/vs/workbench/services/suggest/browser/simpleCompletionItem.js +10 -0
  386. package/dist/vscode/vs/workbench/services/suggest/browser/simpleCompletionModel.js +98 -0
  387. package/dist/vscode/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +399 -0
  388. package/dist/vscode/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +83 -0
  389. package/dist/vscode/vs/workbench/services/terminal/common/embedderTerminalService.js +3 -0
  390. package/dist/vscode/vs/workbench/services/textfile/browser/textFileService.js +1 -1
  391. package/dist/vscode/vs/workbench/services/textfile/common/textFileEditorModel.js +10 -3
  392. package/dist/vscode/vs/workbench/services/themes/browser/fileIconThemeData.js +3 -3
  393. package/dist/vscode/vs/workbench/services/themes/browser/productIconThemeData.js +3 -3
  394. package/dist/vscode/vs/workbench/services/themes/common/colorThemeData.js +3 -3
  395. package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorInput.js +6 -4
  396. package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorModel.js +3 -0
  397. package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.js +4 -0
  398. package/dist/vscode/vs/workbench/services/userActivity/common/userActivityRegistry.js +15 -0
  399. package/dist/vscode/vs/workbench/services/userActivity/common/userActivityService.js +37 -0
  400. package/dist/vscode/vs/workbench/services/userDataSync/common/userDataSync.js +7 -0
  401. package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService.js +40 -0
  402. package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyService.js +12 -0
  403. package/dist/vscode/vs/workbench/services/workspaces/common/canonicalUriService.js +19 -0
  404. package/dist/vscode-default-extensions/css/syntaxes/css.tmLanguage.json.extensionResource.js +1 -1
  405. package/dist/vscode-default-extensions/json/package.json.js +1 -1
  406. package/dist/vscode-default-extensions/json/syntaxes/JSONC.tmLanguage.json.extensionResource.js +1 -1
  407. package/dist/vscode-default-extensions/json/syntaxes/JSONL.tmLanguage.json.extensionResource.js +2 -0
  408. package/dist/vscode-default-extensions/latex/syntaxes/Bibtex.tmLanguage.json.extensionResource.js +1 -1
  409. package/dist/vscode-default-extensions/latex/syntaxes/LaTeX.tmLanguage.json.extensionResource.js +1 -1
  410. package/dist/vscode-default-extensions/latex/syntaxes/TeX.tmLanguage.json.extensionResource.js +1 -1
  411. package/dist/vscode-default-extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.extensionResource.js +1 -1
  412. package/dist/vscode-default-extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.extensionResource.js +1 -1
  413. package/dist/vscode-default-extensions/lua/syntaxes/lua.tmLanguage.json.extensionResource.js +1 -1
  414. package/dist/vscode-default-extensions/perl/package.json.js +1 -1
  415. package/dist/vscode-default-extensions/php/snippets/php.code-snippets.extensionResource.js +1 -1
  416. package/dist/vscode-default-extensions/sql/language-configuration.json.extensionResource.js +1 -1
  417. package/dist/vscode-default-extensions/theme-abyss/themes/abyss-color-theme.json.extensionResource.js +1 -1
  418. package/dist/vscode-default-extensions/theme-defaults/package.json.js +1 -1
  419. package/dist/vscode-default-extensions/theme-defaults/themes/dark_modern.json.extensionResource.js +2 -0
  420. package/dist/vscode-default-extensions/theme-defaults/themes/dark_vs.json.extensionResource.js +1 -1
  421. package/dist/vscode-default-extensions/theme-defaults/themes/hc_black.json.extensionResource.js +1 -1
  422. package/dist/vscode-default-extensions/theme-defaults/themes/hc_light.json.extensionResource.js +1 -1
  423. package/dist/vscode-default-extensions/theme-defaults/themes/light_modern.json.extensionResource.js +2 -0
  424. package/dist/vscode-default-extensions/theme-defaults/themes/light_vs.json.extensionResource.js +1 -1
  425. package/dist/vscode-default-extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json.extensionResource.js +1 -1
  426. package/dist/vscode-default-extensions/theme-monokai/themes/monokai-color-theme.json.extensionResource.js +1 -1
  427. package/dist/vscode-default-extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json.extensionResource.js +1 -1
  428. package/dist/vscode-default-extensions/theme-quietlight/themes/quietlight-color-theme.json.extensionResource.js +1 -1
  429. package/dist/vscode-default-extensions/theme-red/themes/Red-color-theme.json.extensionResource.js +1 -1
  430. package/dist/vscode-default-extensions/theme-seti/icons/vs-seti-icon-theme.json.extensionResource.js +1 -1
  431. package/dist/vscode-default-extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json.extensionResource.js +1 -1
  432. package/dist/vscode-default-extensions/theme-solarized-light/themes/solarized-light-color-theme.json.extensionResource.js +1 -1
  433. package/dist/vscode-default-extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-color-theme.json.extensionResource.js +1 -1
  434. package/dist/vscode-default-extensions/vb/language-configuration.json.extensionResource.js +1 -1
  435. package/dist/vscode-services/env.js +4 -2
  436. package/dist/vscode-services/extHost.js +32 -48
  437. package/dist/vscode-services/missing-services.js +407 -29
  438. package/dist/vscode-services/window.js +59 -65
  439. package/dist/vscode-services/workspace.js +19 -5
  440. package/dist/workers/outputLinkComputer.worker.d.ts +2 -0
  441. package/dist/workers/outputLinkComputer.worker.js +3 -0
  442. package/dist/workspace.d.ts +1 -1
  443. package/monaco-editor-treemending.patch +1305 -1184
  444. package/package.json +65 -19
  445. package/dist/activity.d.ts +0 -2802
  446. package/dist/collections.d.ts +0 -7
  447. package/dist/colorRegistry.d.ts +0 -710
  448. package/dist/vscode/vs/platform/product/common/product.js +0 -48
  449. package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionFollowups.js +0 -30
  450. package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionInputPart.js +0 -196
  451. package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionListRenderer.js +0 -622
  452. package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionOptions.js +0 -77
  453. package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionWidget.js +0 -311
  454. package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/media/interactiveSession.css.js +0 -4
  455. package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionContextKeys.js +0 -56
  456. package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionModel.js +0 -305
  457. package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionService.js +0 -13
  458. package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionServiceImpl.js +0 -379
  459. package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionViewModel.js +0 -207
  460. package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionWidgetHistoryService.js +0 -3
  461. package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionWordCounter.js +0 -25
  462. package/dist/vscode-default-extensions/theme-defaults/themes/dark_plus_experimental.json.extensionResource.js +0 -2
  463. package/dist/vscode-default-extensions/theme-defaults/themes/light_plus_experimental.json.extensionResource.js +0 -2
@@ -10,7 +10,7 @@ import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform
10
10
  import { IExtensionService } from '../../services/extensions/common/extensions.js';
11
11
  import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
12
12
  import { createStringDataTransferItem, VSDataTransfer } from 'monaco-editor/esm/vs/base/common/dataTransfer.js';
13
- import { DataTransferCache } from '../common/shared/dataTransferCache.js';
13
+ import { DataTransferFileCache } from '../common/shared/dataTransferCache.js';
14
14
  import { DataTransfer } from '../common/extHostTypeConverters.js';
15
15
  let MainThreadTreeViews = class MainThreadTreeViews extends Disposable {
16
16
  constructor(extHostContext, viewsService, notificationService, extensionService, logService) {
@@ -38,8 +38,9 @@ let MainThreadTreeViews = class MainThreadTreeViews extends Disposable {
38
38
  )) : undefined;
39
39
  const viewer = this.getTreeView(treeViewId);
40
40
  if (viewer) {
41
- viewer.showCollapseAllAction = !!options.showCollapseAll;
42
- viewer.canSelectMany = !!options.canSelectMany;
41
+ viewer.showCollapseAllAction = options.showCollapseAll;
42
+ viewer.canSelectMany = options.canSelectMany;
43
+ viewer.manuallyManageCheckboxes = options.manuallyManageCheckboxes;
43
44
  viewer.dragAndDropController = dndController;
44
45
  if (dndController) {
45
46
  this._dndControllers.set(treeViewId, dndController);
@@ -190,12 +191,16 @@ class TreeViewDragAndDropController {
190
191
  this.dragMimeTypes = dragMimeTypes;
191
192
  this.hasWillDrop = hasWillDrop;
192
193
  this._proxy = _proxy;
193
- this.dataTransfersCache = ( new DataTransferCache());
194
+ this.dataTransfersCache = ( new DataTransferFileCache());
194
195
  }
195
196
  async handleDrop(dataTransfer, targetTreeItem, token, operationUuid, sourceTreeId, sourceTreeItemHandles) {
196
197
  const request = this.dataTransfersCache.add(dataTransfer);
197
198
  try {
198
- return await this._proxy.$handleDrop(this.treeViewId, request.id, await DataTransfer.toDataTransferDTO(dataTransfer), targetTreeItem?.handle, token, operationUuid, sourceTreeId, sourceTreeItemHandles);
199
+ const dataTransferDto = await DataTransfer.from(dataTransfer);
200
+ if (token.isCancellationRequested) {
201
+ return;
202
+ }
203
+ return await this._proxy.$handleDrop(this.treeViewId, request.id, dataTransferDto, targetTreeItem?.handle, token, operationUuid, sourceTreeId, sourceTreeItemHandles);
199
204
  }
200
205
  finally {
201
206
  request.dispose();
@@ -6,19 +6,25 @@ import { IOpenerService } from 'monaco-editor/esm/vs/platform/opener/common/open
6
6
  import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
7
7
  import { ExtHostContext, MainContext } from '../common/extHost.protocol.js';
8
8
  import { IHostService } from '../../services/host/browser/host.js';
9
+ import { IUserActivityService } from '../../services/userActivity/common/userActivityService.js';
9
10
  let MainThreadWindow = class MainThreadWindow {
10
- constructor(extHostContext, hostService, openerService) {
11
+ constructor(extHostContext, hostService, openerService, userActivityService) {
11
12
  this.hostService = hostService;
12
13
  this.openerService = openerService;
14
+ this.userActivityService = userActivityService;
13
15
  this.disposables = ( new DisposableStore());
14
16
  this.proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostWindow));
15
17
  Event.latch(hostService.onDidChangeFocus)(this.proxy.$onDidChangeWindowFocus, this.proxy, this.disposables);
18
+ userActivityService.onDidChangeIsActive(this.proxy.$onDidChangeWindowActive, this.proxy, this.disposables);
16
19
  }
17
20
  dispose() {
18
21
  this.disposables.dispose();
19
22
  }
20
- $getWindowVisibility() {
21
- return Promise.resolve(this.hostService.hasFocus);
23
+ $getInitialState() {
24
+ return Promise.resolve({
25
+ isFocused: this.hostService.hasFocus,
26
+ isActive: this.userActivityService.isActive,
27
+ });
22
28
  }
23
29
  async $openUri(uriComponents, uriString, options) {
24
30
  const uri = ( URI.from(uriComponents));
@@ -43,6 +49,7 @@ let MainThreadWindow = class MainThreadWindow {
43
49
  MainThreadWindow = __decorate([
44
50
  extHostNamedCustomer(MainContext.MainThreadWindow),
45
51
  ( __param(1, IHostService)),
46
- ( __param(2, IOpenerService))
52
+ ( __param(2, IOpenerService)),
53
+ ( __param(3, IUserActivityService))
47
54
  ], MainThreadWindow);
48
55
  export { MainThreadWindow };
@@ -23,11 +23,13 @@ import { ExtHostContext, MainContext } from '../common/extHost.protocol.js';
23
23
  import { IEditSessionIdentityService } from '../../../platform/workspace/common/editSessions.js';
24
24
  import { SideBySideEditor, EditorResourceAccessor } from '../../common/editor.js';
25
25
  import { firstOrDefault, coalesce } from 'monaco-editor/esm/vs/base/common/arrays.js';
26
+ import { ICanonicalUriService } from '../../../platform/workspace/common/canonicalUri.js';
26
27
  let MainThreadWorkspace = class MainThreadWorkspace {
27
- constructor(extHostContext, _searchService, _contextService, _editSessionIdentityService, _editorService, _workspaceEditingService, _notificationService, _requestService, _instantiationService, _labelService, _environmentService, fileService, _workspaceTrustManagementService, _workspaceTrustRequestService) {
28
+ constructor(extHostContext, _searchService, _contextService, _editSessionIdentityService, _canonicalUriService, _editorService, _workspaceEditingService, _notificationService, _requestService, _instantiationService, _labelService, _environmentService, fileService, _workspaceTrustManagementService, _workspaceTrustRequestService) {
28
29
  this._searchService = _searchService;
29
30
  this._contextService = _contextService;
30
31
  this._editSessionIdentityService = _editSessionIdentityService;
32
+ this._canonicalUriService = _canonicalUriService;
31
33
  this._editorService = _editorService;
32
34
  this._workspaceEditingService = _workspaceEditingService;
33
35
  this._notificationService = _notificationService;
@@ -41,6 +43,7 @@ let MainThreadWorkspace = class MainThreadWorkspace {
41
43
  this._activeCancelTokens = Object.create(null);
42
44
  this._queryBuilder = this._instantiationService.createInstance(QueryBuilder);
43
45
  this.registeredEditSessionProviders = ( new Map());
46
+ this.registeredCanonicalUriProviders = ( new Map());
44
47
  this._proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostWorkspace));
45
48
  const workspace = this._contextService.getWorkspace();
46
49
  if (workspace.configuration && !isNative && !fileService.hasProvider(workspace.configuration)) {
@@ -227,21 +230,41 @@ let MainThreadWorkspace = class MainThreadWorkspace {
227
230
  disposable?.dispose();
228
231
  this.registeredEditSessionProviders.delete(handle);
229
232
  }
233
+ $registerCanonicalUriProvider(handle, scheme) {
234
+ const disposable = this._canonicalUriService.registerCanonicalUriProvider({
235
+ scheme: scheme,
236
+ provideCanonicalUri: async (uri, targetScheme, token) => {
237
+ const result = await this._proxy.$provideCanonicalUri(uri, targetScheme, token);
238
+ if (result) {
239
+ return URI.revive(result);
240
+ }
241
+ return result;
242
+ }
243
+ });
244
+ this.registeredCanonicalUriProviders.set(handle, disposable);
245
+ this._toDispose.add(disposable);
246
+ }
247
+ $unregisterCanonicalUriProvider(handle) {
248
+ const disposable = this.registeredCanonicalUriProviders.get(handle);
249
+ disposable?.dispose();
250
+ this.registeredCanonicalUriProviders.delete(handle);
251
+ }
230
252
  };
231
253
  MainThreadWorkspace = __decorate([
232
254
  extHostNamedCustomer(MainContext.MainThreadWorkspace),
233
255
  ( __param(1, ISearchService)),
234
256
  ( __param(2, IWorkspaceContextService)),
235
257
  ( __param(3, IEditSessionIdentityService)),
236
- ( __param(4, IEditorService)),
237
- ( __param(5, IWorkspaceEditingService)),
238
- ( __param(6, INotificationService)),
239
- ( __param(7, IRequestService)),
240
- ( __param(8, IInstantiationService)),
241
- ( __param(9, ILabelService)),
242
- ( __param(10, IEnvironmentService)),
243
- ( __param(11, IFileService)),
244
- ( __param(12, IWorkspaceTrustManagementService)),
245
- ( __param(13, IWorkspaceTrustRequestService))
258
+ ( __param(4, ICanonicalUriService)),
259
+ ( __param(5, IEditorService)),
260
+ ( __param(6, IWorkspaceEditingService)),
261
+ ( __param(7, INotificationService)),
262
+ ( __param(8, IRequestService)),
263
+ ( __param(9, IInstantiationService)),
264
+ ( __param(10, ILabelService)),
265
+ ( __param(11, IEnvironmentService)),
266
+ ( __param(12, IFileService)),
267
+ ( __param(13, IWorkspaceTrustManagementService)),
268
+ ( __param(14, IWorkspaceTrustRequestService))
246
269
  ], MainThreadWorkspace);
247
270
  export { MainThreadWorkspace };
@@ -0,0 +1,81 @@
1
+ import { __decorate, __param } from '../../../../../node_modules/tslib/tslib.es6.js';
2
+ import { toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
3
+ import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
4
+ import { IStatusbarService } from '../../services/statusbar/browser/statusbar.js';
5
+ import { getCodiconAriaLabel } from 'monaco-editor/esm/vs/base/common/iconLabels.js';
6
+ import { hash } from 'monaco-editor/esm/vs/base/common/hash.js';
7
+ import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
8
+ const IExtensionStatusBarItemService = ( createDecorator('IExtensionStatusBarItemService'));
9
+ let ExtensionStatusBarItemService = class ExtensionStatusBarItemService {
10
+ constructor(_statusbarService) {
11
+ this._statusbarService = _statusbarService;
12
+ this._entries = ( new Map());
13
+ this._onDidChange = ( new Emitter());
14
+ this.onDidChange = this._onDidChange.event;
15
+ }
16
+ dispose() {
17
+ this._entries.forEach(entry => entry.accessor.dispose());
18
+ this._entries.clear();
19
+ this._onDidChange.dispose();
20
+ }
21
+ setOrUpdateEntry(entryId, id, extensionId, name, text, tooltip, command, color, backgroundColor, alignLeft, priority, accessibilityInformation) {
22
+ let ariaLabel;
23
+ let role = undefined;
24
+ if (accessibilityInformation) {
25
+ ariaLabel = accessibilityInformation.label;
26
+ role = accessibilityInformation.role;
27
+ }
28
+ else {
29
+ ariaLabel = getCodiconAriaLabel(text);
30
+ if (tooltip) {
31
+ const tooltipString = typeof tooltip === 'string' ? tooltip : tooltip.value;
32
+ ariaLabel += `, ${tooltipString}`;
33
+ }
34
+ }
35
+ const entry = { name, text, tooltip, command, color, backgroundColor, ariaLabel, role };
36
+ if (typeof priority === 'undefined') {
37
+ priority = 0;
38
+ }
39
+ let alignment = alignLeft ? 0 : 1 ;
40
+ const existingEntry = this._entries.get(entryId);
41
+ if (existingEntry) {
42
+ alignment = existingEntry.alignment;
43
+ priority = existingEntry.priority;
44
+ }
45
+ if (!existingEntry) {
46
+ let entryPriority;
47
+ if (typeof extensionId === 'string') {
48
+ entryPriority = { primary: priority, secondary: hash(extensionId) };
49
+ }
50
+ else {
51
+ entryPriority = priority;
52
+ }
53
+ this._entries.set(entryId, {
54
+ accessor: this._statusbarService.addEntry(entry, id, alignment, entryPriority),
55
+ entry,
56
+ alignment,
57
+ priority
58
+ });
59
+ this._onDidChange.fire({ added: [entryId, { entry, alignment, priority }] });
60
+ }
61
+ else {
62
+ existingEntry.accessor.update(entry);
63
+ existingEntry.entry = entry;
64
+ }
65
+ return toDisposable(() => {
66
+ const entry = this._entries.get(entryId);
67
+ if (entry) {
68
+ entry.accessor.dispose();
69
+ this._entries.delete(entryId);
70
+ this._onDidChange.fire({ removed: entryId });
71
+ }
72
+ });
73
+ }
74
+ getEntries() {
75
+ return this._entries.entries();
76
+ }
77
+ };
78
+ ExtensionStatusBarItemService = ( __decorate([
79
+ ( __param(0, IStatusbarService))
80
+ ], ExtensionStatusBarItemService));
81
+ export { ExtensionStatusBarItemService, IExtensionStatusBarItemService };
@@ -52,6 +52,7 @@ const MainContext = {
52
52
  MainThreadExtensionService: ( createProxyIdentifier('MainThreadExtensionService')),
53
53
  MainThreadSCM: ( createProxyIdentifier('MainThreadSCM')),
54
54
  MainThreadSearch: ( createProxyIdentifier('MainThreadSearch')),
55
+ MainThreadShare: ( createProxyIdentifier('MainThreadShare')),
55
56
  MainThreadTask: ( createProxyIdentifier('MainThreadTask')),
56
57
  MainThreadWindow: ( createProxyIdentifier('MainThreadWindow')),
57
58
  MainThreadLabelService: ( createProxyIdentifier('MainThreadLabelService')),
@@ -61,10 +62,11 @@ const MainContext = {
61
62
  MainThreadNotebookKernels: ( createProxyIdentifier('MainThreadNotebookKernels')),
62
63
  MainThreadNotebookRenderers: ( createProxyIdentifier('MainThreadNotebookRenderers')),
63
64
  MainThreadInteractive: ( createProxyIdentifier('MainThreadInteractive')),
64
- MainThreadInteractiveSession: ( createProxyIdentifier('MainThreadInteractiveSession')),
65
+ MainThreadChat: ( createProxyIdentifier('MainThreadChat')),
65
66
  MainThreadInteractiveEditor: ( createProxyIdentifier('MainThreadInteractiveEditor')),
66
67
  MainThreadTheming: ( createProxyIdentifier('MainThreadTheming')),
67
68
  MainThreadTunnelService: ( createProxyIdentifier('MainThreadTunnelService')),
69
+ MainThreadManagedSockets: ( createProxyIdentifier('MainThreadManagedSockets')),
68
70
  MainThreadTimeline: ( createProxyIdentifier('MainThreadTimeline')),
69
71
  MainThreadTesting: ( createProxyIdentifier('MainThreadTesting')),
70
72
  MainThreadLocalization: ( createProxyIdentifier('MainThreadLocalizationShape')),
@@ -90,6 +92,8 @@ const ExtHostContext = {
90
92
  ExtHostLanguageFeatures: ( createProxyIdentifier('ExtHostLanguageFeatures')),
91
93
  ExtHostQuickOpen: ( createProxyIdentifier('ExtHostQuickOpen')),
92
94
  ExtHostQuickDiff: ( createProxyIdentifier('ExtHostQuickDiff')),
95
+ ExtHostStatusBar: ( createProxyIdentifier('ExtHostStatusBar')),
96
+ ExtHostShare: ( createProxyIdentifier('ExtHostShare')),
93
97
  ExtHostExtensionService: ( createProxyIdentifier('ExtHostExtensionService')),
94
98
  ExtHostLogLevelServiceShape: ( createProxyIdentifier('ExtHostLogLevelServiceShape')),
95
99
  ExtHostTerminalService: ( createProxyIdentifier('ExtHostTerminalService')),
@@ -121,10 +125,11 @@ const ExtHostContext = {
121
125
  ExtHostNotebookDocumentSaveParticipant: ( createProxyIdentifier('ExtHostNotebookDocumentSaveParticipant')),
122
126
  ExtHostInteractive: ( createProxyIdentifier('ExtHostInteractive')),
123
127
  ExtHostInteractiveEditor: ( createProxyIdentifier('ExtHostInteractiveEditor')),
124
- ExtHostInteractiveSession: ( createProxyIdentifier('ExtHostInteractiveSession')),
128
+ ExtHostChat: ( createProxyIdentifier('ExtHostChat')),
125
129
  ExtHostSemanticSimilarity: ( createProxyIdentifier('ExtHostSemanticSimilarity')),
126
130
  ExtHostTheming: ( createProxyIdentifier('ExtHostTheming')),
127
131
  ExtHostTunnelService: ( createProxyIdentifier('ExtHostTunnelService')),
132
+ ExtHostManagedSockets: ( createProxyIdentifier('ExtHostManagedSockets')),
128
133
  ExtHostAuthentication: ( createProxyIdentifier('ExtHostAuthentication')),
129
134
  ExtHostTimeline: ( createProxyIdentifier('ExtHostTimeline')),
130
135
  ExtHostTesting: ( createProxyIdentifier('ExtHostTesting')),
@@ -8,7 +8,7 @@ import { MainContext } from './extHost.protocol.js';
8
8
  import { IExtHostEditorTabs } from './extHostEditorTabs.js';
9
9
  import { IExtHostExtensionService } from './extHostExtensionService.js';
10
10
  import { IExtHostRpcService } from './extHostRpcService.js';
11
- import { SourceBreakpoint, DebugConsoleMode, Disposable, setBreakpointId, FunctionBreakpoint, Location, Position, DebugAdapterExecutable, DebugAdapterServer, DebugAdapterNamedPipeServer, DebugAdapterInlineImplementation, DataBreakpoint } from './extHostTypes.js';
11
+ import { SourceBreakpoint, DebugConsoleMode, Disposable, setBreakpointId, FunctionBreakpoint, Location, Position, DebugAdapterExecutable, DebugAdapterServer, DebugAdapterNamedPipeServer, DebugAdapterInlineImplementation, DataBreakpoint, ThreadFocus, StackFrameFocus } from './extHostTypes.js';
12
12
  import { IExtHostWorkspace } from './extHostWorkspace.js';
13
13
  import { AbstractDebugAdapter } from '../../contrib/debug/common/abstractDebugAdapter.js';
14
14
  import { convertToVSCPaths, convertToDAPaths, isDebuggerMainContribution } from '../../contrib/debug/common/debugUtils.js';
@@ -433,22 +433,13 @@ let ExtHostDebugServiceBase = class ExtHostDebugServiceBase {
433
433
  throw new Error('no DebugSession found for debug focus context');
434
434
  }
435
435
  if (focusDto.kind === 'thread') {
436
- focus = {
437
- kind: focusDto.kind,
438
- threadId: focusDto.threadId,
439
- session,
440
- };
436
+ focus = ( new ThreadFocus(session, focusDto.threadId));
441
437
  }
442
438
  else {
443
- focus = {
444
- kind: focusDto.kind,
445
- threadId: focusDto.threadId,
446
- frameId: focusDto.frameId,
447
- session,
448
- };
439
+ focus = ( new StackFrameFocus(session, focusDto.threadId, focusDto.frameId));
449
440
  }
450
441
  this._stackFrameFocus = focus;
451
- this._onDidChangeStackFrameFocus.fire(focus);
442
+ this._onDidChangeStackFrameFocus.fire(this._stackFrameFocus);
452
443
  }
453
444
  $provideDebugConfigurations(configProviderHandle, folderUri, token) {
454
445
  return asPromise(async () => {
@@ -19,8 +19,8 @@ import * as errors from 'monaco-editor/esm/vs/base/common/errors.js';
19
19
  import { ExtensionIdentifier, ExtensionIdentifierMap, ExtensionIdentifierSet } from 'monaco-editor/esm/vs/platform/extensions/common/extensions.js';
20
20
  import { VSBuffer } from 'monaco-editor/esm/vs/base/common/buffer.js';
21
21
  import { ExtensionGlobalMemento, ExtensionMemento } from './extHostMemento.js';
22
- import { RemoteAuthorityResolverError, ExtensionMode, ExtensionKind } from './extHostTypes.js';
23
- import { RemoteAuthorityResolverErrorCode, getRemoteAuthorityPrefix } from '../../../platform/remote/common/remoteAuthorityResolver.js';
22
+ import { ManagedResolvedAuthority, RemoteAuthorityResolverError, ExtensionMode, ExtensionKind } from './extHostTypes.js';
23
+ import { RemoteAuthorityResolverErrorCode, getRemoteAuthorityPrefix, ManagedRemoteConnection, WebSocketRemoteConnection } from '../../../platform/remote/common/remoteAuthorityResolver.js';
24
24
  import { createDecorator, IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
25
25
  import { IExtHostInitDataService } from './extHostInitDataService.js';
26
26
  import { IExtensionStoragePaths } from './extHostStoragePaths.js';
@@ -36,11 +36,13 @@ import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
36
36
  import { IExtHostLocalizationService } from './extHostLocalizationService.js';
37
37
  import { StopWatch } from 'monaco-editor/esm/vs/base/common/stopwatch.js';
38
38
  import { setTimeout0 } from 'monaco-editor/esm/vs/base/common/platform.js';
39
+ import { IExtHostManagedSockets } from './extHostManagedSockets.js';
39
40
  var _Extension_extensionService, _Extension_originExtensionId, _Extension_identifier;
40
41
  const IHostUtils = ( createDecorator('IHostUtils'));
41
42
  let AbstractExtHostExtensionService = class AbstractExtHostExtensionService extends Disposable {
42
- constructor(instaService, hostUtils, extHostContext, extHostWorkspace, extHostConfiguration, logService, initData, storagePath, extHostTunnelService, extHostTerminalService, extHostLocalizationService) {
43
+ constructor(instaService, hostUtils, extHostContext, extHostWorkspace, extHostConfiguration, logService, initData, storagePath, extHostTunnelService, extHostTerminalService, extHostLocalizationService, _extHostManagedSockets) {
43
44
  super();
45
+ this._extHostManagedSockets = _extHostManagedSockets;
44
46
  this._onDidChangeRemoteConnectionData = this._register(( new Emitter()));
45
47
  this.onDidChangeRemoteConnectionData = this._onDidChangeRemoteConnectionData.event;
46
48
  this._isTerminating = false;
@@ -598,27 +600,39 @@ let AbstractExtHostExtensionService = class AbstractExtHostExtensionService exte
598
600
  const result = await resolver.resolve(remoteAuthority, { resolveAttempt });
599
601
  performance.mark(`code/extHost/didResolveAuthorityOK/${authorityPrefix}`);
600
602
  intervalLogger.dispose();
601
- logInfo(`returned ${result.host}:${result.port}`);
602
- const authority = {
603
- authority: remoteAuthority,
604
- host: result.host,
605
- port: result.port,
606
- connectionToken: result.connectionToken
603
+ const tunnelInformation = {
604
+ environmentTunnels: result.environmentTunnels,
605
+ features: result.tunnelFeatures
607
606
  };
608
607
  const options = {
609
608
  extensionHostEnv: result.extensionHostEnv,
610
609
  isTrusted: result.isTrusted,
611
610
  authenticationSession: result.authenticationSessionForInitializingExtensions ? { id: result.authenticationSessionForInitializingExtensions.id, providerId: result.authenticationSessionForInitializingExtensions.providerId } : undefined
612
611
  };
612
+ logInfo(`returned ${ManagedResolvedAuthority.isManagedResolvedAuthority(result) ? 'managed authority' : `${result.host}:${result.port}`}`);
613
+ let authority;
614
+ if (ManagedResolvedAuthority.isManagedResolvedAuthority(result)) {
615
+ const socketFactoryId = resolveAttempt;
616
+ this._extHostManagedSockets.setFactory(socketFactoryId, result.makeConnection);
617
+ authority = {
618
+ authority: remoteAuthority,
619
+ connectTo: ( new ManagedRemoteConnection(socketFactoryId)),
620
+ connectionToken: result.connectionToken
621
+ };
622
+ }
623
+ else {
624
+ authority = {
625
+ authority: remoteAuthority,
626
+ connectTo: ( new WebSocketRemoteConnection(result.host, result.port)),
627
+ connectionToken: result.connectionToken
628
+ };
629
+ }
613
630
  return {
614
631
  type: 'ok',
615
632
  value: {
616
- authority,
633
+ authority: authority,
617
634
  options,
618
- tunnelInformation: {
619
- environmentTunnels: result.environmentTunnels,
620
- features: result.tunnelFeatures
621
- }
635
+ tunnelInformation,
622
636
  }
623
637
  };
624
638
  }
@@ -717,7 +731,8 @@ AbstractExtHostExtensionService = ( __decorate([
717
731
  ( __param(7, IExtensionStoragePaths)),
718
732
  ( __param(8, IExtHostTunnelService)),
719
733
  ( __param(9, IExtHostTerminalService)),
720
- ( __param(10, IExtHostLocalizationService))
734
+ ( __param(10, IExtHostLocalizationService)),
735
+ ( __param(11, IExtHostManagedSockets))
721
736
  ], AbstractExtHostExtensionService));
722
737
  function applyExtensionsDelta(activationEventsReader, oldGlobalRegistry, oldMyRegistry, extensionsDelta) {
723
738
  activationEventsReader.addActivationEvents(extensionsDelta.addActivationEvents);
@@ -15,18 +15,21 @@ let ExtHostConsumerFileSystem = class ExtHostConsumerFileSystem {
15
15
  this.value = ( Object.freeze({
16
16
  async stat(uri) {
17
17
  try {
18
+ let stat;
18
19
  const provider = that._fileSystemProvider.get(uri.scheme);
19
- if (!provider) {
20
- return await that._proxy.$stat(uri);
20
+ if (provider) {
21
+ await that._proxy.$ensureActivation(uri.scheme);
22
+ stat = await provider.stat(uri);
23
+ }
24
+ else {
25
+ stat = await that._proxy.$stat(uri);
21
26
  }
22
- await that._proxy.$ensureActivation(uri.scheme);
23
- const stat = await provider.stat(uri);
24
27
  return {
25
28
  type: stat.type,
26
29
  ctime: stat.ctime,
27
30
  mtime: stat.mtime,
28
31
  size: stat.size,
29
- permissions: stat.permissions
32
+ permissions: stat.permissions === files.FilePermission.Readonly ? 1 : undefined
30
33
  };
31
34
  }
32
35
  catch (err) {
@@ -88,7 +91,7 @@ let ExtHostConsumerFileSystem = class ExtHostConsumerFileSystem {
88
91
  return await provider.delete(uri, { recursive: false, ...options });
89
92
  }
90
93
  else {
91
- return await that._proxy.$delete(uri, { recursive: false, useTrash: false, ...options });
94
+ return await that._proxy.$delete(uri, { recursive: false, useTrash: false, atomic: false, ...options });
92
95
  }
93
96
  }
94
97
  catch (err) {
@@ -124,6 +127,17 @@ let ExtHostConsumerFileSystem = class ExtHostConsumerFileSystem {
124
127
  if (err instanceof FileSystemError) {
125
128
  throw err;
126
129
  }
130
+ if (err instanceof files.FileSystemProviderError) {
131
+ switch (err.code) {
132
+ case files.FileSystemProviderErrorCode.FileExists: throw FileSystemError.FileExists(err.message);
133
+ case files.FileSystemProviderErrorCode.FileNotFound: throw FileSystemError.FileNotFound(err.message);
134
+ case files.FileSystemProviderErrorCode.FileNotADirectory: throw FileSystemError.FileNotADirectory(err.message);
135
+ case files.FileSystemProviderErrorCode.FileIsADirectory: throw FileSystemError.FileIsADirectory(err.message);
136
+ case files.FileSystemProviderErrorCode.NoPermissions: throw FileSystemError.NoPermissions(err.message);
137
+ case files.FileSystemProviderErrorCode.Unavailable: throw FileSystemError.Unavailable(err.message);
138
+ default: throw new FileSystemError(err.message, err.name);
139
+ }
140
+ }
127
141
  if (!(err instanceof Error)) {
128
142
  throw new FileSystemError(String(err));
129
143
  }
@@ -1,7 +1,7 @@
1
1
  import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
2
2
  import { mixin } from 'monaco-editor/esm/vs/base/common/objects.js';
3
3
  import { DocumentSelector, DocumentSymbol as DocumentSymbol$1, SymbolKind, SymbolTag, Range, Position, Hover, EvaluatableExpression, InlineValueContext, InlineValue, DocumentHighlight, location, Selection as Selection$1, CodeActionTriggerKind, Diagnostic, WorkspaceEdit, DataTransfer, TextEdit, WorkspaceSymbol, CompletionContext, CompletionItemKind, CompletionItemTag, MarkdownString, SignatureHelp, InlayHintKind, DocumentLink, Color, ColorPresentation, FoldingRange, SelectionRange, CallHierarchyItem, TypeHierarchyItem, DefinitionLink } from './extHostTypeConverters.js';
4
- import { Disposable, DocumentSymbol, Range as Range$2, CodeActionKind, SemanticTokens, SemanticTokensEdits, SemanticTokensEdit, SnippetString, Location, CompletionList, InlineCompletionTriggerKind } from './extHostTypes.js';
4
+ import { Disposable, DocumentSymbol, Range as Range$2, CodeActionKind, InternalDataTransferItem, SemanticTokens, SemanticTokensEdits, SemanticTokensEdit, SnippetString, Location, CompletionList, InlineCompletionTriggerKind } from './extHostTypes.js';
5
5
  import * as languages from 'monaco-editor/esm/vs/editor/common/languages.js';
6
6
  import { MainContext } from './extHost.protocol.js';
7
7
  import { regExpFlags, regExpLeadsToEndlessLoop } from 'monaco-editor/esm/vs/base/common/strings.js';
@@ -412,15 +412,16 @@ class CodeActionAdapter {
412
412
  }
413
413
  CodeActionAdapter._maxCodeActionsPerFile = 1000;
414
414
  class DocumentPasteEditProvider {
415
- constructor(_proxy, _documents, _provider, _handle) {
415
+ constructor(_proxy, _documents, _provider, _handle, _extension) {
416
416
  this._proxy = _proxy;
417
417
  this._documents = _documents;
418
418
  this._provider = _provider;
419
419
  this._handle = _handle;
420
+ this._extension = _extension;
420
421
  }
421
422
  async prepareDocumentPaste(resource, ranges, dataTransferDto, token) {
422
423
  if (!this._provider.prepareDocumentPaste) {
423
- return undefined;
424
+ return;
424
425
  }
425
426
  const doc = this._documents.getDocument(resource);
426
427
  const vscodeRanges = ( (ranges.map(range => Range.to(range))));
@@ -428,9 +429,16 @@ class DocumentPasteEditProvider {
428
429
  throw new NotImplementedError();
429
430
  });
430
431
  await this._provider.prepareDocumentPaste(doc, vscodeRanges, dataTransfer, token);
431
- return DataTransfer.toDataTransferDTO(dataTransfer);
432
+ if (token.isCancellationRequested) {
433
+ return;
434
+ }
435
+ const entries = Array.from(dataTransfer).filter(([, value]) => !(value instanceof InternalDataTransferItem));
436
+ return DataTransfer.from(entries);
432
437
  }
433
438
  async providePasteEdits(requestId, resource, ranges, dataTransferDto, token) {
439
+ if (!this._provider.provideDocumentPasteEdits) {
440
+ return;
441
+ }
434
442
  const doc = this._documents.getDocument(resource);
435
443
  const vscodeRanges = ( (ranges.map(range => Range.to(range))));
436
444
  const dataTransfer = DataTransfer.toDataTransfer(dataTransferDto, async (id) => {
@@ -441,6 +449,14 @@ class DocumentPasteEditProvider {
441
449
  return;
442
450
  }
443
451
  return {
452
+ id: edit.id ? this._extension.identifier.value + '.' + edit.id : this._extension.identifier.value,
453
+ label: edit.label ?? ( (localize(
454
+ 'defaultPasteLabel',
455
+ "Paste using '{0}' extension",
456
+ this._extension.displayName || this._extension.name
457
+ ))),
458
+ detail: this._extension.displayName || this._extension.name,
459
+ priority: edit.priority ?? 0,
444
460
  insertText: typeof edit.insertText === 'string' ? edit.insertText : { snippet: edit.insertText.value },
445
461
  additionalEdit: edit.additionalEdit ? WorkspaceEdit.from(edit.additionalEdit, undefined) : undefined,
446
462
  };
@@ -846,7 +862,17 @@ class CompletionsAdapter {
846
862
  if (!resolvedItem) {
847
863
  return undefined;
848
864
  }
849
- return this._convertCompletionItem(resolvedItem, id);
865
+ const enforcedResolvedItem = {
866
+ ...item,
867
+ documentation: resolvedItem.documentation,
868
+ detail: resolvedItem.detail,
869
+ additionalTextEdits: resolvedItem.additionalTextEdits
870
+ };
871
+ if (item.insertText !== resolvedItem.insertText) {
872
+ this._apiDeprecation.report('CompletionItem.insertText', this._extension, 'extension MAY NOT change \'insertText\' of a CompletionItem during resolve');
873
+ enforcedResolvedItem.insertText = resolvedItem.insertText;
874
+ }
875
+ return this._convertCompletionItem(enforcedResolvedItem, id);
850
876
  }
851
877
  releaseCompletionItems(id) {
852
878
  this._disposables.get(id)?.dispose();
@@ -1473,11 +1499,13 @@ class DocumentOnDropEditAdapter {
1473
1499
  return undefined;
1474
1500
  }
1475
1501
  return {
1502
+ id: edit.id ? this._extension.identifier.value + '.' + edit.id : this._extension.identifier.value,
1476
1503
  label: edit.label ?? ( (localize(
1477
1504
  'defaultDropLabel',
1478
1505
  "Drop using '{0}' extension",
1479
1506
  this._extension.displayName || this._extension.name
1480
1507
  ))),
1508
+ priority: edit.priority ?? 0,
1481
1509
  insertText: typeof edit.insertText === 'string' ? edit.insertText : { snippet: edit.insertText.value },
1482
1510
  additionalEdit: edit.additionalEdit ? WorkspaceEdit.from(edit.additionalEdit, undefined) : undefined,
1483
1511
  };
@@ -1961,7 +1989,7 @@ class ExtHostLanguageFeatures {
1961
1989
  (new DocumentOnDropEditAdapter(this._proxy, this._documents, provider, handle, extension)),
1962
1990
  extension
1963
1991
  ))));
1964
- this._proxy.$registerDocumentOnDropEditProvider(handle, this._transformDocumentSelector(selector, extension), extension.identifier, isProposedApiEnabled(extension, 'dropMetadata') ? metadata : undefined);
1992
+ this._proxy.$registerDocumentOnDropEditProvider(handle, this._transformDocumentSelector(selector, extension), isProposedApiEnabled(extension, 'dropMetadata') ? metadata : undefined);
1965
1993
  return this._createDisposable(handle);
1966
1994
  }
1967
1995
  $provideDocumentOnDropEdits(handle, requestId, resource, position, dataTransferDto, token) {
@@ -1970,10 +1998,15 @@ class ExtHostLanguageFeatures {
1970
1998
  registerDocumentPasteEditProvider(extension, selector, provider, metadata) {
1971
1999
  const handle = this._nextHandle();
1972
2000
  this._adapter.set(handle, ( (new AdapterData(
1973
- (new DocumentPasteEditProvider(this._proxy, this._documents, provider, handle)),
2001
+ (new DocumentPasteEditProvider(this._proxy, this._documents, provider, handle, extension)),
1974
2002
  extension
1975
2003
  ))));
1976
- this._proxy.$registerPasteEditProvider(handle, this._transformDocumentSelector(selector, extension), !!provider.prepareDocumentPaste, metadata.pasteMimeTypes);
2004
+ this._proxy.$registerPasteEditProvider(handle, this._transformDocumentSelector(selector, extension), {
2005
+ supportsCopy: !!provider.prepareDocumentPaste,
2006
+ supportsPaste: !!provider.provideDocumentPasteEdits,
2007
+ copyMimeTypes: metadata.copyMimeTypes,
2008
+ pasteMimeTypes: metadata.pasteMimeTypes,
2009
+ });
1977
2010
  return this._createDisposable(handle);
1978
2011
  }
1979
2012
  $prepareDocumentPaste(handle, resource, ranges, dataTransfer, token) {
@@ -0,0 +1,3 @@
1
+ import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
2
+ const IExtHostManagedSockets = ( createDecorator('IExtHostManagedSockets'));
3
+ export { IExtHostManagedSockets };