@codingame/monaco-vscode-api 4.4.0 → 4.5.0-improve-code-splitting.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1110) hide show
  1. package/extensions.js +4 -4
  2. package/lifecycle.js +2 -2
  3. package/localExtensionHost.js +9 -8
  4. package/missing-services.js +200 -194
  5. package/monaco.d.ts +1 -1
  6. package/monaco.js +8 -8
  7. package/package.json +8 -8
  8. package/service-override/tools/editor.d.ts +13 -13
  9. package/service-override/tools/editor.js +10 -10
  10. package/service-override/tools/views.js +6 -6
  11. package/services.d.ts +69 -58
  12. package/services.js +62 -58
  13. package/tools/l10n.js +2 -2
  14. package/vscode/src/vs/base/common/labels.js +2 -2
  15. package/vscode/src/vs/editor/browser/config/editorConfiguration.js +1 -1
  16. package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +1 -1
  17. package/vscode/src/vs/editor/browser/controller/textAreaInput.js +2 -2
  18. package/vscode/src/vs/editor/browser/editorExtensions.d.ts +1 -1
  19. package/vscode/src/vs/editor/browser/editorExtensions.js +4 -3
  20. package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +1 -1
  21. package/vscode/src/vs/editor/browser/services/editorWorkerService.js +1 -1
  22. package/vscode/src/vs/editor/browser/services/hoverService/hoverService.d.ts +6 -5
  23. package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +5 -5
  24. package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +4 -4
  25. package/vscode/src/vs/editor/browser/services/openerService.js +1 -1
  26. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +9 -6
  27. package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js +5 -5
  28. package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +1 -1
  29. package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +2 -1
  30. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
  31. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +2 -2
  32. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +1 -1
  33. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +4 -3
  34. package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +1 -1
  35. package/vscode/src/vs/editor/browser/widget/diffEditor/embeddedDiffEditorWidget.js +3 -3
  36. package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +3 -2
  37. package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -1
  38. package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +1 -1
  39. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +1 -1
  40. package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +1 -1
  41. package/vscode/src/vs/editor/common/model/textModel.js +1 -1
  42. package/vscode/src/vs/editor/common/services/languageFeatureDebounce.js +2 -2
  43. package/vscode/src/vs/editor/common/services/markerDecorationsService.js +2 -1
  44. package/vscode/src/vs/editor/common/services/modelService.js +2 -2
  45. package/vscode/src/vs/editor/common/services/semanticTokensProviderStyling.js +3 -2
  46. package/vscode/src/vs/editor/common/services/semanticTokensStylingService.js +2 -2
  47. package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +2 -1
  48. package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +1 -1
  49. package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +4 -3
  50. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +5 -5
  51. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionKeybindingResolver.js +1 -1
  52. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +2 -2
  53. package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +2 -1
  54. package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +3 -3
  55. package/vscode/src/vs/editor/contrib/colorPicker/browser/color.js +1 -1
  56. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +1 -1
  57. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +1 -1
  58. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerWidget.js +2 -2
  59. package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +8 -6
  60. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +3 -3
  61. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +1 -1
  62. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +1 -1
  63. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +3 -3
  64. package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +2 -1
  65. package/vscode/src/vs/editor/contrib/find/browser/findController.js +13 -9
  66. package/vscode/src/vs/editor/contrib/folding/browser/folding.d.ts +2 -2
  67. package/vscode/src/vs/editor/contrib/folding/browser/folding.js +4 -3
  68. package/vscode/src/vs/editor/contrib/format/browser/format.js +3 -2
  69. package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +6 -3
  70. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +2 -1
  71. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +6 -5
  72. package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.js +3 -2
  73. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +4 -3
  74. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  75. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +7 -5
  76. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +2 -2
  77. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +4 -4
  78. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +4 -3
  79. package/vscode/src/vs/editor/contrib/hover/browser/contentHover.js +4 -4
  80. package/vscode/src/vs/editor/contrib/hover/browser/hover.js +2 -2
  81. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +2 -2
  82. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +1 -1
  83. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +1 -1
  84. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +6 -3
  85. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +2 -2
  86. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js +7 -5
  87. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +1 -1
  88. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +3 -3
  89. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +6 -5
  90. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +7 -6
  91. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +1 -1
  92. package/vscode/src/vs/editor/contrib/inlineEdit/browser/hoverParticipant.js +1 -1
  93. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +4 -3
  94. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +6 -5
  95. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +1 -1
  96. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -1
  97. package/vscode/src/vs/editor/contrib/links/browser/links.js +2 -2
  98. package/vscode/src/vs/editor/contrib/message/browser/messageController.js +3 -2
  99. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +2 -2
  100. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +2 -1
  101. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +4 -4
  102. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +5 -4
  103. package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +2 -2
  104. package/vscode/src/vs/editor/contrib/semanticTokens/browser/viewportSemanticTokens.js +2 -2
  105. package/vscode/src/vs/editor/contrib/semanticTokens/common/getSemanticTokens.js +2 -1
  106. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +3 -2
  107. package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +2 -2
  108. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +1 -1
  109. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +2 -2
  110. package/vscode/src/vs/editor/contrib/suggest/browser/suggestAlternatives.js +2 -1
  111. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +6 -4
  112. package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +1 -1
  113. package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.js +3 -2
  114. package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.js +6 -6
  115. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +3 -3
  116. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +1 -1
  117. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetStatus.js +3 -2
  118. package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +2 -1
  119. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +4 -4
  120. package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +1 -2
  121. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -2
  122. package/vscode/src/vs/editor/editor.api.d.ts +80 -22
  123. package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +3 -3
  124. package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +13 -11
  125. package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditorService.js +2 -2
  126. package/vscode/src/vs/editor/standalone/browser/standaloneLayoutService.js +1 -1
  127. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +31 -26
  128. package/vscode/src/vs/platform/accessibility/browser/accessibilityService.js +3 -3
  129. package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +1 -17
  130. package/vscode/src/vs/platform/accessibility/common/accessibility.js +1 -3
  131. package/vscode/src/vs/platform/accessibility/common/accessibility.service.d.ts +19 -0
  132. package/vscode/src/vs/platform/accessibility/common/accessibility.service.js +3 -0
  133. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +1 -20
  134. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +4 -6
  135. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service.d.ts +22 -0
  136. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service.js +3 -0
  137. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +2 -2
  138. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +3 -2
  139. package/vscode/src/vs/platform/actions/browser/buttonbar.js +6 -5
  140. package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +5 -5
  141. package/vscode/src/vs/platform/actions/browser/floatingMenu.js +2 -2
  142. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +9 -8
  143. package/vscode/src/vs/platform/actions/browser/toolbar.js +6 -5
  144. package/vscode/src/vs/platform/actions/common/actions.d.ts +8 -24
  145. package/vscode/src/vs/platform/actions/common/actions.js +5 -5
  146. package/vscode/src/vs/platform/actions/common/actions.service.d.ts +25 -0
  147. package/vscode/src/vs/platform/actions/common/actions.service.js +3 -0
  148. package/vscode/src/vs/platform/actions/common/menuService.js +3 -3
  149. package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +2 -2
  150. package/vscode/src/vs/platform/clipboard/common/{clipboardService.d.ts → clipboardService.service.d.ts} +14 -14
  151. package/vscode/src/vs/platform/commands/common/commands.d.ts +2 -10
  152. package/vscode/src/vs/platform/commands/common/commands.js +2 -3
  153. package/vscode/src/vs/platform/commands/common/commands.service.d.ts +13 -0
  154. package/vscode/src/vs/platform/commands/common/commands.service.js +3 -0
  155. package/vscode/src/vs/platform/configuration/common/configuration.d.ts +10 -57
  156. package/vscode/src/vs/platform/configuration/common/configuration.js +1 -3
  157. package/vscode/src/vs/platform/configuration/common/configuration.service.d.ts +56 -0
  158. package/vscode/src/vs/platform/configuration/common/configuration.service.js +3 -0
  159. package/vscode/src/vs/platform/configuration/common/configurations.js +2 -2
  160. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +3 -2
  161. package/vscode/src/vs/platform/contextkey/common/contextkey.d.ts +2 -16
  162. package/vscode/src/vs/platform/contextkey/common/contextkey.js +1 -3
  163. package/vscode/src/vs/platform/contextkey/common/contextkey.service.d.ts +22 -0
  164. package/vscode/src/vs/platform/contextkey/common/contextkey.service.js +3 -0
  165. package/vscode/src/vs/platform/contextview/browser/contextMenuService.js +7 -6
  166. package/vscode/src/vs/platform/contextview/browser/contextView.d.ts +3 -21
  167. package/vscode/src/vs/platform/contextview/browser/contextView.service.d.ts +25 -0
  168. package/vscode/src/vs/platform/contextview/browser/contextViewService.js +1 -1
  169. package/vscode/src/vs/platform/diagnostics/common/diagnostics.js +1 -3
  170. package/vscode/src/vs/platform/diagnostics/common/diagnostics.service.js +4 -0
  171. package/vscode/src/vs/platform/dialogs/common/dialogs.d.ts +1 -121
  172. package/vscode/src/vs/platform/dialogs/common/dialogs.js +7 -4
  173. package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +125 -0
  174. package/vscode/src/vs/platform/dialogs/common/dialogs.service.js +4 -0
  175. package/vscode/src/vs/platform/dnd/browser/dnd.js +3 -3
  176. package/vscode/src/vs/platform/environment/common/environment.d.ts +1 -41
  177. package/vscode/src/vs/platform/environment/common/environment.service.d.ts +45 -0
  178. package/vscode/src/vs/platform/extensionManagement/common/extensionEnablementService.js +3 -2
  179. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +2 -33
  180. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +1 -6
  181. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +37 -0
  182. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.js +6 -0
  183. package/vscode/src/vs/platform/extensionManagement/common/extensionStorage.js +4 -6
  184. package/vscode/src/vs/platform/extensionManagement/common/extensionStorage.service.js +3 -0
  185. package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.service.js +3 -0
  186. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.service.js +3 -0
  187. package/vscode/src/vs/platform/extensionRecommendations/common/extensionRecommendations.service.js +3 -0
  188. package/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.js +1 -3
  189. package/vscode/src/vs/platform/extensionResourceLoader/common/{extensionResourceLoader.d.ts → extensionResourceLoader.service.d.ts} +10 -10
  190. package/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.service.js +3 -0
  191. package/vscode/src/vs/platform/extensions/common/extensions.js +1 -3
  192. package/vscode/src/vs/platform/extensions/common/extensions.service.js +3 -0
  193. package/vscode/src/vs/platform/files/common/files.d.ts +2 -211
  194. package/vscode/src/vs/platform/files/common/files.js +1 -3
  195. package/vscode/src/vs/platform/files/common/files.service.d.ts +218 -0
  196. package/vscode/src/vs/platform/files/common/files.service.js +3 -0
  197. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +2 -1
  198. package/vscode/src/vs/platform/hover/browser/hover.d.ts +1 -35
  199. package/vscode/src/vs/platform/hover/browser/hover.js +3 -4
  200. package/vscode/src/vs/platform/hover/browser/hover.service.d.ts +38 -0
  201. package/vscode/src/vs/platform/hover/browser/hover.service.js +3 -0
  202. package/vscode/src/vs/platform/keybinding/common/keybinding.d.ts +1 -57
  203. package/vscode/src/vs/platform/keybinding/common/keybinding.service.d.ts +62 -0
  204. package/vscode/src/vs/platform/keybinding/common/keybindingResolver.d.ts +2 -1
  205. package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.js +1 -3
  206. package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.service.js +3 -0
  207. package/vscode/src/vs/platform/label/common/label.d.ts +1 -37
  208. package/vscode/src/vs/platform/label/common/label.service.d.ts +39 -0
  209. package/vscode/src/vs/platform/languagePacks/common/languagePacks.d.ts +1 -10
  210. package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +2 -4
  211. package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +13 -0
  212. package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.js +3 -0
  213. package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +1 -83
  214. package/vscode/src/vs/platform/layout/browser/layoutService.service.d.ts +84 -0
  215. package/vscode/src/vs/platform/list/browser/listService.js +8 -7
  216. package/vscode/src/vs/platform/list/browser/listService.service.js +3 -0
  217. package/vscode/src/vs/platform/log/common/log.d.ts +1 -77
  218. package/vscode/src/vs/platform/log/common/log.js +1 -4
  219. package/vscode/src/vs/platform/log/common/log.service.d.ts +87 -0
  220. package/vscode/src/vs/platform/log/common/log.service.js +4 -0
  221. package/vscode/src/vs/platform/markers/common/markers.d.ts +1 -19
  222. package/vscode/src/vs/platform/markers/common/markers.js +1 -3
  223. package/vscode/src/vs/platform/markers/common/markers.service.d.ts +22 -0
  224. package/vscode/src/vs/platform/markers/common/markers.service.js +3 -0
  225. package/vscode/src/vs/platform/notification/common/notification.d.ts +2 -91
  226. package/vscode/src/vs/platform/notification/common/notification.js +2 -5
  227. package/vscode/src/vs/platform/notification/common/notification.service.d.ts +94 -0
  228. package/vscode/src/vs/platform/notification/common/notification.service.js +3 -0
  229. package/vscode/src/vs/platform/opener/browser/link.js +1 -1
  230. package/vscode/src/vs/platform/opener/common/opener.d.ts +1 -41
  231. package/vscode/src/vs/platform/opener/common/opener.js +1 -3
  232. package/vscode/src/vs/platform/opener/common/opener.service.d.ts +45 -0
  233. package/vscode/src/vs/platform/opener/common/opener.service.js +3 -0
  234. package/vscode/src/vs/platform/policy/common/policy.js +1 -3
  235. package/vscode/src/vs/platform/policy/common/policy.service.js +3 -0
  236. package/vscode/src/vs/platform/product/common/productService.js +1 -3
  237. package/vscode/src/vs/platform/product/common/productService.service.js +3 -0
  238. package/vscode/src/vs/platform/progress/common/progress.js +2 -4
  239. package/vscode/src/vs/platform/progress/common/progress.service.js +4 -0
  240. package/vscode/src/vs/platform/quickinput/browser/quickAccess.js +2 -1
  241. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +3 -2
  242. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +1 -1
  243. package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +7 -5
  244. package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
  245. package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +13 -81
  246. package/vscode/src/vs/platform/quickinput/common/quickInput.js +1 -3
  247. package/vscode/src/vs/platform/quickinput/common/quickInput.service.d.ts +82 -0
  248. package/vscode/src/vs/platform/quickinput/common/quickInput.service.js +3 -0
  249. package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.d.ts +1 -26
  250. package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.js +1 -3
  251. package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.service.d.ts +27 -0
  252. package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.service.js +3 -0
  253. package/vscode/src/vs/platform/remote/common/{remoteExtensionsScanner.js → remoteExtensionsScanner.service.js} +1 -2
  254. package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.d.ts +2 -16
  255. package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.service.d.ts +20 -0
  256. package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.service.js +3 -0
  257. package/vscode/src/vs/platform/request/common/request.js +1 -3
  258. package/vscode/src/vs/platform/request/common/request.service.js +3 -0
  259. package/vscode/src/vs/platform/secrets/common/secrets.d.ts +1 -10
  260. package/vscode/src/vs/platform/secrets/common/secrets.service.d.ts +11 -0
  261. package/vscode/src/vs/platform/secrets/common/secrets.service.js +3 -0
  262. package/vscode/src/vs/platform/sign/common/sign.js +1 -3
  263. package/vscode/src/vs/platform/sign/common/sign.service.js +4 -0
  264. package/vscode/src/vs/platform/storage/common/storage.d.ts +3 -151
  265. package/vscode/src/vs/platform/storage/common/storage.js +1 -3
  266. package/vscode/src/vs/platform/storage/common/storage.service.d.ts +158 -0
  267. package/vscode/src/vs/platform/storage/common/storage.service.js +3 -0
  268. package/vscode/src/vs/platform/telemetry/common/telemetry.d.ts +1 -34
  269. package/vscode/src/vs/platform/telemetry/common/telemetry.js +1 -4
  270. package/vscode/src/vs/platform/telemetry/common/telemetry.service.d.ts +35 -0
  271. package/vscode/src/vs/platform/telemetry/common/telemetry.service.js +4 -0
  272. package/vscode/src/vs/platform/terminal/common/terminal.d.ts +1 -12
  273. package/vscode/src/vs/platform/terminal/common/terminal.js +1 -3
  274. package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +14 -0
  275. package/vscode/src/vs/platform/terminal/common/terminal.service.js +3 -0
  276. package/vscode/src/vs/platform/theme/common/themeService.d.ts +2 -14
  277. package/vscode/src/vs/platform/theme/common/themeService.js +1 -3
  278. package/vscode/src/vs/platform/theme/common/themeService.service.d.ts +16 -0
  279. package/vscode/src/vs/platform/theme/common/themeService.service.js +3 -0
  280. package/vscode/src/vs/platform/tunnel/common/tunnel.d.ts +1 -31
  281. package/vscode/src/vs/platform/tunnel/common/tunnel.js +3 -5
  282. package/vscode/src/vs/platform/tunnel/common/tunnel.service.d.ts +34 -0
  283. package/vscode/src/vs/platform/tunnel/common/tunnel.service.js +3 -0
  284. package/vscode/src/vs/platform/undoRedo/common/undoRedo.js +1 -3
  285. package/vscode/src/vs/platform/undoRedo/common/undoRedo.service.js +3 -0
  286. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +4 -4
  287. package/vscode/src/vs/platform/update/common/update.js +1 -3
  288. package/vscode/src/vs/platform/update/common/update.service.js +3 -0
  289. package/vscode/src/vs/platform/uriIdentity/common/uriIdentity.service.d.ts +38 -0
  290. package/vscode/src/vs/platform/uriIdentity/common/uriIdentityService.js +1 -1
  291. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +1 -23
  292. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +6 -7
  293. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.service.d.ts +27 -0
  294. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.service.js +3 -0
  295. package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +11 -9
  296. package/vscode/src/vs/platform/userDataSync/common/ignoredExtensions.service.js +3 -0
  297. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +1 -11
  298. package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.js +11 -0
  299. package/vscode/src/vs/platform/userDataSync/common/userDataSyncAccount.service.js +3 -0
  300. package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +6 -8
  301. package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.service.js +3 -0
  302. package/vscode/src/vs/platform/userDataSync/common/userDataSyncStoreService.js +9 -7
  303. package/vscode/src/vs/platform/workspace/common/editSessions.js +1 -3
  304. package/vscode/src/vs/platform/workspace/common/editSessions.service.js +3 -0
  305. package/vscode/src/vs/platform/workspace/common/workspace.d.ts +1 -53
  306. package/vscode/src/vs/platform/workspace/common/workspace.js +1 -3
  307. package/vscode/src/vs/platform/workspace/common/workspace.service.d.ts +57 -0
  308. package/vscode/src/vs/platform/workspace/common/workspace.service.js +3 -0
  309. package/vscode/src/vs/platform/workspace/common/workspaceTrust.d.ts +1 -42
  310. package/vscode/src/vs/platform/workspace/common/workspaceTrust.service.d.ts +46 -0
  311. package/vscode/src/vs/platform/workspace/common/workspaceTrust.service.js +5 -0
  312. package/vscode/src/vs/platform/workspaces/common/workspaces.js +1 -3
  313. package/vscode/src/vs/platform/workspaces/common/workspaces.service.js +3 -0
  314. package/vscode/src/vs/workbench/api/browser/statusBarService.js +1 -1
  315. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +2 -1
  316. package/vscode/src/vs/workbench/api/common/extHost.common.services.js +1 -1
  317. package/vscode/src/vs/workbench/api/common/extHostApiDeprecationService.js +1 -1
  318. package/vscode/src/vs/workbench/api/common/extHostCommands.js +1 -1
  319. package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +1 -1
  320. package/vscode/src/vs/workbench/api/common/extHostDecorations.js +1 -1
  321. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
  322. package/vscode/src/vs/workbench/api/common/extHostDocumentsAndEditors.js +1 -1
  323. package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.js +1 -1
  324. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +1 -1
  325. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
  326. package/vscode/src/vs/workbench/api/common/extHostLocalizationService.js +1 -1
  327. package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
  328. package/vscode/src/vs/workbench/api/common/extHostMessageService.js +1 -1
  329. package/vscode/src/vs/workbench/api/common/extHostNotebookEditors.js +1 -1
  330. package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +1 -1
  331. package/vscode/src/vs/workbench/api/common/extHostOutput.js +2 -1
  332. package/vscode/src/vs/workbench/api/common/extHostRequireInterceptor.js +1 -1
  333. package/vscode/src/vs/workbench/api/common/extHostSCM.js +1 -1
  334. package/vscode/src/vs/workbench/api/common/extHostSearch.js +1 -1
  335. package/vscode/src/vs/workbench/api/common/extHostStoragePaths.js +1 -1
  336. package/vscode/src/vs/workbench/api/common/extHostTask.js +1 -1
  337. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -1
  338. package/vscode/src/vs/workbench/api/common/extHostTesting.js +1 -1
  339. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +1 -1
  340. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +4 -3
  341. package/vscode/src/vs/workbench/api/common/extensionHostMain.js +1 -1
  342. package/vscode/src/vs/workbench/browser/actions/developerActions.js +15 -15
  343. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +13 -11
  344. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +3 -3
  345. package/vscode/src/vs/workbench/browser/actions/widgetNavigationCommands.js +2 -1
  346. package/vscode/src/vs/workbench/browser/actions/windowActions.js +9 -9
  347. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +9 -9
  348. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +10 -9
  349. package/vscode/src/vs/workbench/browser/actions.d.ts +3 -2
  350. package/vscode/src/vs/workbench/browser/actions.js +3 -2
  351. package/vscode/src/vs/workbench/browser/codeeditor.js +5 -4
  352. package/vscode/src/vs/workbench/browser/composite.d.ts +3 -3
  353. package/vscode/src/vs/workbench/browser/dnd.js +9 -8
  354. package/vscode/src/vs/workbench/browser/editor.js +3 -3
  355. package/vscode/src/vs/workbench/browser/labels.js +7 -7
  356. package/vscode/src/vs/workbench/browser/panecomposite.d.ts +6 -6
  357. package/vscode/src/vs/workbench/browser/panecomposite.js +6 -6
  358. package/vscode/src/vs/workbench/browser/part.d.ts +4 -3
  359. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +2 -2
  360. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +6 -6
  361. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +6 -6
  362. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +1 -1
  363. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +2 -3
  364. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.js +3 -0
  365. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +15 -10
  366. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +3 -3
  367. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +8 -5
  368. package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +2 -2
  369. package/vscode/src/vs/workbench/browser/parts/editor/editor.d.ts +1 -1
  370. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +15 -14
  371. package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +8 -8
  372. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +14 -11
  373. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +16 -15
  374. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +5 -4
  375. package/vscode/src/vs/workbench/browser/parts/editor/editorPane.d.ts +6 -5
  376. package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +7 -7
  377. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +8 -8
  378. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +2 -2
  379. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +17 -13
  380. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +9 -8
  381. package/vscode/src/vs/workbench/browser/parts/editor/editorTitleControl.js +2 -1
  382. package/vscode/src/vs/workbench/browser/parts/editor/editorWithViewState.js +5 -5
  383. package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +2 -2
  384. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +11 -10
  385. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +6 -6
  386. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
  387. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +9 -8
  388. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +6 -6
  389. package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +6 -6
  390. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +20 -18
  391. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +2 -2
  392. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +5 -4
  393. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +11 -8
  394. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +8 -5
  395. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +3 -3
  396. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +3 -2
  397. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsTelemetry.js +3 -2
  398. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +13 -11
  399. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +9 -7
  400. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +7 -5
  401. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +20 -16
  402. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +9 -9
  403. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +25 -18
  404. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.d.ts +3 -3
  405. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +4 -3
  406. package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +9 -8
  407. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +10 -9
  408. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.d.ts +10 -9
  409. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +15 -12
  410. package/vscode/src/vs/workbench/browser/parts/views/viewsViewlet.js +9 -9
  411. package/vscode/src/vs/workbench/browser/quickaccess.js +4 -4
  412. package/vscode/src/vs/workbench/common/component.d.ts +4 -2
  413. package/vscode/src/vs/workbench/common/configuration.js +3 -3
  414. package/vscode/src/vs/workbench/common/contextkeys.js +3 -2
  415. package/vscode/src/vs/workbench/common/contributions.js +4 -4
  416. package/vscode/src/vs/workbench/common/editor/binaryEditorModel.js +1 -1
  417. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
  418. package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +1 -1
  419. package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +5 -4
  420. package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +5 -4
  421. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
  422. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +3 -2
  423. package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +7 -6
  424. package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +6 -6
  425. package/vscode/src/vs/workbench/common/editor/textResourceEditorModel.js +2 -2
  426. package/vscode/src/vs/workbench/common/editor.d.ts +1 -1
  427. package/vscode/src/vs/workbench/common/notifications.js +5 -4
  428. package/vscode/src/vs/workbench/common/resources.js +2 -2
  429. package/vscode/src/vs/workbench/common/views.d.ts +2 -50
  430. package/vscode/src/vs/workbench/common/views.js +1 -3
  431. package/vscode/src/vs/workbench/common/views.service.d.ts +53 -0
  432. package/vscode/src/vs/workbench/common/views.service.js +3 -0
  433. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +2 -1
  434. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +8 -6
  435. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.service.js +3 -0
  436. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +1 -1
  437. package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +4 -4
  438. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignal.contribution.js +1 -0
  439. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalDebuggerContribution.js +3 -2
  440. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalLineFeatureContribution.js +7 -5
  441. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/commands.js +6 -5
  442. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits.js +2 -2
  443. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +3 -3
  444. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +8 -8
  445. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +2 -2
  446. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +1 -1
  447. package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +1 -6
  448. package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.js +6 -0
  449. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +1 -1
  450. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +1 -1
  451. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +3 -2
  452. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +12 -10
  453. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +7 -7
  454. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +3 -3
  455. package/vscode/src/vs/workbench/contrib/chat/browser/chatOptions.js +3 -3
  456. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +10 -10
  457. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +3 -3
  458. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +4 -4
  459. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +3 -4
  460. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.js +3 -0
  461. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +3 -2
  462. package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +4 -3
  463. package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +1 -3
  464. package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.js +3 -0
  465. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.service.js +3 -0
  466. package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +1 -1
  467. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.js +3 -0
  468. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.service.js +3 -0
  469. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +1 -1
  470. package/vscode/src/vs/workbench/contrib/codeActions/browser/documentationContribution.js +2 -1
  471. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +5 -3
  472. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +10 -7
  473. package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorLineNumberMenu.js +4 -3
  474. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +4 -4
  475. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +5 -3
  476. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -5
  477. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +2 -2
  478. package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +2 -2
  479. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +1 -1
  480. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +3 -2
  481. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +1 -1
  482. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +1 -1
  483. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +3 -2
  484. package/vscode/src/vs/workbench/contrib/codeEditor/browser/workbenchReferenceSearch.js +4 -4
  485. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +7 -7
  486. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -4
  487. package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.js +3 -0
  488. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.js +1 -1
  489. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +2 -2
  490. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +4 -4
  491. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +4 -4
  492. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +2 -2
  493. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +10 -9
  494. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +11 -9
  495. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +13 -12
  496. package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +4 -4
  497. package/vscode/src/vs/workbench/contrib/contextmenu/browser/contextmenu.contribution.js +2 -2
  498. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +13 -13
  499. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.service.js +3 -0
  500. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +3 -3
  501. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +7 -7
  502. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +10 -9
  503. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.service.js +3 -0
  504. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +19 -15
  505. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +3 -3
  506. package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +3 -193
  507. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +1 -3
  508. package/vscode/src/vs/workbench/contrib/debug/common/debug.service.d.ts +198 -0
  509. package/vscode/src/vs/workbench/contrib/debug/common/debug.service.js +3 -0
  510. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +3 -3
  511. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.d.ts +3 -3
  512. package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.service.js +3 -0
  513. package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.service.js +4 -0
  514. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +51 -44
  515. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +2 -3
  516. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.js +3 -0
  517. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +8 -6
  518. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +6 -8
  519. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.service.js +3 -0
  520. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +4 -4
  521. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +3 -3
  522. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +7 -7
  523. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +17 -16
  524. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +6 -6
  525. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +13 -10
  526. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +13 -11
  527. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +30 -26
  528. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.save.js +8 -6
  529. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +17 -14
  530. package/vscode/src/vs/workbench/contrib/files/browser/files.d.ts +1 -38
  531. package/vscode/src/vs/workbench/contrib/files/browser/files.editorPane.contribution.js +1 -1
  532. package/vscode/src/vs/workbench/contrib/files/browser/files.js +1 -3
  533. package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +43 -0
  534. package/vscode/src/vs/workbench/contrib/files/browser/files.service.js +3 -0
  535. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +11 -10
  536. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +2 -2
  537. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +24 -22
  538. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +23 -19
  539. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +13 -12
  540. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +11 -9
  541. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +4 -3
  542. package/vscode/src/vs/workbench/contrib/files/common/explorerModel.d.ts +4 -3
  543. package/vscode/src/vs/workbench/contrib/files/common/files.js +2 -2
  544. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +2 -2
  545. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +14 -12
  546. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -5
  547. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  548. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -2
  549. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +7 -6
  550. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatContentWidget.js +1 -1
  551. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +11 -11
  552. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatFileCreationWidget.js +3 -3
  553. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +4 -4
  554. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +8 -6
  555. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +3 -3
  556. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +6 -6
  557. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
  558. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +1 -3
  559. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.service.js +3 -0
  560. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveDocumentService.service.js +3 -0
  561. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +5 -6
  562. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveHistoryService.service.js +3 -0
  563. package/vscode/src/vs/workbench/contrib/list/browser/list.contribution.js +1 -1
  564. package/vscode/src/vs/workbench/contrib/logs/common/defaultLogLevels.service.js +3 -0
  565. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +7 -7
  566. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +4 -5
  567. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +1 -1
  568. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +2 -1
  569. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/telemetry.js +1 -1
  570. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +1 -1
  571. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +5 -3
  572. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +1 -3
  573. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.js +3 -0
  574. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +2 -2
  575. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnostics.js +5 -4
  576. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +4 -3
  577. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +1 -1
  578. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +3 -3
  579. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +4 -4
  580. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +3 -3
  581. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +7 -6
  582. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +3 -3
  583. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +8 -9
  584. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +1 -1
  585. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +5 -5
  586. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +16 -15
  587. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +16 -15
  588. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +3 -3
  589. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +4 -4
  590. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.js +3 -2
  591. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +1 -1
  592. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.js +1 -1
  593. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +8 -7
  594. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.js +1 -1
  595. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +6 -6
  596. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +5 -4
  597. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +4 -4
  598. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +2 -1
  599. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +4 -3
  600. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +1 -1
  601. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
  602. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +4 -4
  603. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +4 -3
  604. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +19 -18
  605. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +7 -7
  606. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +3 -3
  607. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +2 -2
  608. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js +5 -4
  609. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +3 -2
  610. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +1 -1
  611. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +7 -6
  612. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.js +5 -4
  613. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +11 -10
  614. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
  615. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.js +2 -1
  616. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +3 -2
  617. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +10 -10
  618. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +4 -3
  619. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.js +1 -3
  620. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.service.js +3 -0
  621. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.js +1 -3
  622. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.js +3 -0
  623. package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.js +1 -4
  624. package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.service.js +4 -0
  625. package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.js +1 -3
  626. package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.js +3 -0
  627. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWorkerService.js +1 -3
  628. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWorkerService.service.js +4 -0
  629. package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.service.js +3 -0
  630. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +3 -3
  631. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +7 -6
  632. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +5 -4
  633. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.d.ts +1 -8
  634. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +1 -3
  635. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.service.d.ts +11 -0
  636. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.service.js +3 -0
  637. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +20 -17
  638. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +32 -25
  639. package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
  640. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +17 -12
  641. package/vscode/src/vs/workbench/contrib/scm/common/scm.js +1 -4
  642. package/vscode/src/vs/workbench/contrib/scm/common/scm.service.js +4 -0
  643. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService.js +8 -7
  644. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +12 -11
  645. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +13 -13
  646. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.service.js +3 -0
  647. package/vscode/src/vs/workbench/contrib/search/common/search.js +3 -3
  648. package/vscode/src/vs/workbench/contrib/search/common/searchHistoryService.service.js +3 -0
  649. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +3 -3
  650. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +1 -1
  651. package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.d.ts +1 -15
  652. package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.service.d.ts +16 -0
  653. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.d.ts +2 -2
  654. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  655. package/vscode/src/vs/workbench/contrib/snippets/browser/tabCompletion.js +4 -3
  656. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +1 -3
  657. package/vscode/src/vs/workbench/contrib/speech/common/speechService.service.js +3 -0
  658. package/vscode/src/vs/workbench/contrib/tags/browser/workspaceTagsService.js +0 -2
  659. package/vscode/src/vs/workbench/contrib/tags/common/{workspaceTags.js → workspaceTags.service.js} +0 -2
  660. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +16 -18
  661. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.js +3 -0
  662. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.js +1 -6
  663. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.js +6 -0
  664. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +7 -7
  665. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcon.js +1 -1
  666. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy.js +1 -1
  667. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +1 -4
  668. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.js +4 -0
  669. package/vscode/src/vs/workbench/contrib/terminal/common/terminalExtensionPoints.service.js +3 -0
  670. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.js +1 -3
  671. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.service.js +3 -0
  672. package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.service.js +3 -0
  673. package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.service.js +3 -0
  674. package/vscode/src/vs/workbench/contrib/testing/common/testProfileService.service.js +3 -0
  675. package/vscode/src/vs/workbench/contrib/testing/common/testResultService.service.js +3 -0
  676. package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.service.js +3 -0
  677. package/vscode/src/vs/workbench/contrib/testing/common/testService.service.js +3 -0
  678. package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.service.js +3 -0
  679. package/vscode/src/vs/workbench/contrib/testing/common/testingDecorations.service.js +3 -0
  680. package/vscode/src/vs/workbench/contrib/timeline/common/timeline.js +1 -3
  681. package/vscode/src/vs/workbench/contrib/timeline/common/timeline.service.js +4 -0
  682. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +2 -2
  683. package/vscode/src/vs/workbench/contrib/webview/browser/webview.js +2 -4
  684. package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.js +3 -0
  685. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +9 -8
  686. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewIconManager.js +2 -2
  687. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.js +6 -6
  688. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.js +3 -0
  689. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.service.js +3 -0
  690. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.service.js +3 -0
  691. package/vscode/src/vs/workbench/services/activity/common/activity.d.ts +1 -38
  692. package/vscode/src/vs/workbench/services/activity/common/activity.js +1 -3
  693. package/vscode/src/vs/workbench/services/activity/common/activity.service.d.ts +40 -0
  694. package/vscode/src/vs/workbench/services/activity/common/activity.service.js +3 -0
  695. package/vscode/src/vs/workbench/services/aiEmbeddingVector/common/aiEmbeddingVectorService.service.js +3 -0
  696. package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.js +1 -3
  697. package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.service.js +3 -0
  698. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.service.js +3 -0
  699. package/vscode/src/vs/workbench/services/authentication/browser/authenticationAccessService.service.js +3 -0
  700. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +2 -2
  701. package/vscode/src/vs/workbench/services/authentication/browser/authenticationUsageService.service.js +3 -0
  702. package/vscode/src/vs/workbench/services/authentication/common/authentication.js +1 -4
  703. package/vscode/src/vs/workbench/services/authentication/common/authentication.service.js +4 -0
  704. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.service.js +3 -0
  705. package/vscode/src/vs/workbench/services/banner/browser/bannerService.d.ts +1 -11
  706. package/vscode/src/vs/workbench/services/banner/browser/bannerService.service.d.ts +14 -0
  707. package/vscode/src/vs/workbench/services/configuration/common/configuration.js +1 -4
  708. package/vscode/src/vs/workbench/services/configuration/common/configuration.service.js +4 -0
  709. package/vscode/src/vs/workbench/services/configuration/common/jsonEditing.service.js +3 -0
  710. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +1 -3
  711. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.service.js +3 -0
  712. package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.js +4 -3
  713. package/vscode/src/vs/workbench/services/editor/browser/editorService.d.ts +12 -10
  714. package/vscode/src/vs/workbench/services/editor/browser/editorService.js +11 -9
  715. package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.js +4 -5
  716. package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.service.js +3 -0
  717. package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.js +3 -2
  718. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +4 -48
  719. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.js +1 -3
  720. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.d.ts +50 -0
  721. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.js +3 -0
  722. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +2 -62
  723. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -3
  724. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.service.d.ts +65 -0
  725. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.service.js +3 -0
  726. package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +3 -211
  727. package/vscode/src/vs/workbench/services/editor/common/editorService.js +1 -3
  728. package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +214 -0
  729. package/vscode/src/vs/workbench/services/editor/common/editorService.service.js +3 -0
  730. package/vscode/src/vs/workbench/services/environment/browser/{environmentService.d.ts → environmentService.service.d.ts} +8 -8
  731. package/vscode/src/vs/workbench/services/environment/browser/environmentService.service.js +4 -0
  732. package/vscode/src/vs/workbench/services/environment/common/{environmentService.d.ts → environmentService.service.d.ts} +4 -4
  733. package/vscode/src/vs/workbench/services/environment/common/{environmentService.js → environmentService.service.js} +1 -1
  734. package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.service.js +3 -0
  735. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeatures.js +1 -3
  736. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeatures.service.js +3 -0
  737. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -8
  738. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.js +8 -0
  739. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +8 -7
  740. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.service.js +3 -0
  741. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.service.js +3 -0
  742. package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.js +6 -7
  743. package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.service.js +3 -0
  744. package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +6 -131
  745. package/vscode/src/vs/workbench/services/extensions/common/extensions.js +1 -3
  746. package/vscode/src/vs/workbench/services/extensions/common/extensions.service.d.ts +135 -0
  747. package/vscode/src/vs/workbench/services/extensions/common/extensions.service.js +3 -0
  748. package/vscode/src/vs/workbench/services/extensions/common/workspaceContains.js +1 -1
  749. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.d.ts +2 -27
  750. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +12 -10
  751. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +30 -0
  752. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.js +3 -0
  753. package/vscode/src/vs/workbench/services/history/common/history.d.ts +1 -76
  754. package/vscode/src/vs/workbench/services/history/common/history.js +1 -3
  755. package/vscode/src/vs/workbench/services/history/common/history.service.d.ts +77 -0
  756. package/vscode/src/vs/workbench/services/history/common/history.service.js +3 -0
  757. package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +102 -0
  758. package/vscode/src/vs/workbench/services/issue/browser/issueTroubleshoot.service.js +3 -0
  759. package/vscode/src/vs/workbench/services/keybinding/common/{keybindingEditing.d.ts → keybindingEditing.service.d.ts} +0 -1
  760. package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.service.js +3 -0
  761. package/vscode/src/vs/workbench/services/language/common/languageService.js +4 -4
  762. package/vscode/src/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.js +1 -3
  763. package/vscode/src/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.service.js +3 -0
  764. package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.d.ts +3 -13
  765. package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.service.d.ts +15 -0
  766. package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.service.js +3 -0
  767. package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +1 -160
  768. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +1 -4
  769. package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +161 -0
  770. package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.js +4 -0
  771. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.d.ts +1 -68
  772. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.js +1 -3
  773. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.service.d.ts +70 -0
  774. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.service.js +3 -0
  775. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycleService.js +3 -2
  776. package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.js +2 -3
  777. package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.service.js +3 -0
  778. package/vscode/src/vs/workbench/services/output/common/output.d.ts +1 -36
  779. package/vscode/src/vs/workbench/services/output/common/output.js +1 -3
  780. package/vscode/src/vs/workbench/services/output/common/output.service.d.ts +39 -0
  781. package/vscode/src/vs/workbench/services/output/common/output.service.js +3 -0
  782. package/vscode/src/vs/workbench/services/panecomposite/browser/{panecomposite.d.ts → panecomposite.service.d.ts} +18 -18
  783. package/vscode/src/vs/workbench/services/path/common/pathService.service.d.ts +65 -0
  784. package/vscode/src/vs/workbench/services/path/common/pathService.service.js +3 -0
  785. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +2 -2
  786. package/vscode/src/vs/workbench/services/preferences/common/preferences.d.ts +2 -31
  787. package/vscode/src/vs/workbench/services/preferences/common/preferences.js +1 -3
  788. package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +35 -0
  789. package/vscode/src/vs/workbench/services/preferences/common/preferences.service.js +3 -0
  790. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +1 -1
  791. package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.d.ts +2 -1
  792. package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +2 -2
  793. package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.d.ts +2 -31
  794. package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.service.d.ts +34 -0
  795. package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.service.js +3 -0
  796. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +4 -5
  797. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.service.js +3 -0
  798. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +12 -11
  799. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +6 -5
  800. package/vscode/src/vs/workbench/services/search/common/search.js +1 -3
  801. package/vscode/src/vs/workbench/services/search/common/search.service.js +3 -0
  802. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +2 -21
  803. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.js +1 -3
  804. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.service.d.ts +23 -0
  805. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.service.js +3 -0
  806. package/vscode/src/vs/workbench/services/terminal/common/embedderTerminalService.service.js +3 -0
  807. package/vscode/src/vs/workbench/services/textfile/common/encoding.js +4 -4
  808. package/vscode/src/vs/workbench/services/textfile/common/textEditorService.js +7 -7
  809. package/vscode/src/vs/workbench/services/textfile/common/{textEditorService.d.ts → textEditorService.service.d.ts} +14 -15
  810. package/vscode/src/vs/workbench/services/textfile/common/textEditorService.service.js +3 -0
  811. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +12 -11
  812. package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +4 -97
  813. package/vscode/src/vs/workbench/services/textfile/common/textfiles.js +1 -3
  814. package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.d.ts +102 -0
  815. package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.js +3 -0
  816. package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.js +1 -4
  817. package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.service.js +4 -0
  818. package/vscode/src/vs/workbench/services/timer/browser/timerService.service.js +3 -0
  819. package/vscode/src/vs/workbench/services/title/browser/{titleService.d.ts → titleService.service.d.ts} +4 -4
  820. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +8 -8
  821. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorModel.js +7 -7
  822. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.service.js +3 -0
  823. package/vscode/src/vs/workbench/services/userActivity/common/userActivityService.service.js +3 -0
  824. package/vscode/src/vs/workbench/services/userData/browser/userDataInit.service.js +3 -0
  825. package/vscode/src/vs/workbench/services/userDataProfile/common/remoteUserDataProfiles.service.js +3 -0
  826. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.d.ts +1 -11
  827. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +1 -5
  828. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.service.d.ts +15 -0
  829. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.service.js +5 -0
  830. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +1 -3
  831. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.service.js +3 -0
  832. package/vscode/src/vs/workbench/services/views/browser/viewsService.js +14 -13
  833. package/vscode/src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.js +1 -1
  834. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.d.ts +1 -1
  835. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +14 -11
  836. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopy.d.ts +1 -1
  837. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.js +3 -0
  838. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.d.ts +4 -109
  839. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +114 -0
  840. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.js +3 -0
  841. package/vscode/src/vs/workbench/services/workingCopy/common/{workingCopyHistory.js → workingCopyHistory.service.js} +1 -2
  842. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.js +3 -0
  843. package/vscode/src/vs/workbench/services/workspaces/common/workspaceIdentityService.service.js +3 -0
  844. package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +9 -8
  845. package/override/iconv.js +0 -43
  846. package/override/jschardet.js +0 -7
  847. package/override/vs/platform/dialogs/common/dialogs.js +0 -8
  848. package/service-override/tools/editorAssets.js +0 -3
  849. package/vscode/src/vs/base/browser/deviceAccess.js +0 -60
  850. package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +0 -178
  851. package/vscode/src/vs/base/browser/ui/grid/grid.js +0 -492
  852. package/vscode/src/vs/base/browser/ui/grid/gridview.css.js +0 -4
  853. package/vscode/src/vs/base/browser/ui/grid/gridview.js +0 -1110
  854. package/vscode/src/vs/platform/environment/common/environmentService.js +0 -8
  855. package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +0 -333
  856. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +0 -901
  857. package/vscode/src/vs/platform/extensionRecommendations/common/extensionRecommendations.js +0 -10
  858. package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +0 -10
  859. package/vscode/src/vs/platform/remote/common/remoteExtensionsScanner.d.ts +0 -13
  860. package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.js +0 -30
  861. package/vscode/src/vs/platform/secrets/common/secrets.js +0 -127
  862. package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +0 -41
  863. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +0 -272
  864. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +0 -709
  865. package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +0 -29
  866. package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +0 -48
  867. package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +0 -94
  868. package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +0 -40
  869. package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +0 -319
  870. package/vscode/src/vs/platform/uriIdentity/common/uriIdentity.d.ts +0 -38
  871. package/vscode/src/vs/platform/userDataProfile/common/userDataProfileIpc.js +0 -65
  872. package/vscode/src/vs/platform/userDataSync/common/ignoredExtensions.js +0 -65
  873. package/vscode/src/vs/platform/userDataSync/common/userDataSyncAccount.js +0 -45
  874. package/vscode/src/vs/platform/webview/common/mimeTypes.js +0 -22
  875. package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +0 -62
  876. package/vscode/src/vs/platform/workspace/common/workspaceTrust.js +0 -18
  877. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +0 -904
  878. package/vscode/src/vs/workbench/browser/actions/listCommands.js +0 -762
  879. package/vscode/src/vs/workbench/browser/actions/navigationActions.js +0 -300
  880. package/vscode/src/vs/workbench/browser/media/style.css.js +0 -4
  881. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +0 -665
  882. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +0 -4
  883. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css.js +0 -4
  884. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +0 -226
  885. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +0 -4
  886. package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.d.ts +0 -45
  887. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +0 -604
  888. package/vscode/src/vs/workbench/browser/parts/compositePart.js +0 -344
  889. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +0 -243
  890. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +0 -1402
  891. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +0 -185
  892. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +0 -519
  893. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +0 -1028
  894. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +0 -390
  895. package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +0 -4
  896. package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +0 -4
  897. package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +0 -4
  898. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +0 -640
  899. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +0 -469
  900. package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +0 -66
  901. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +0 -157
  902. package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +0 -4
  903. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +0 -37
  904. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +0 -235
  905. package/vscode/src/vs/workbench/browser/style.js +0 -53
  906. package/vscode/src/vs/workbench/browser/window.js +0 -380
  907. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +0 -878
  908. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +0 -298
  909. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +0 -363
  910. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +0 -133
  911. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +0 -4
  912. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +0 -54
  913. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js +0 -37
  914. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +0 -41
  915. package/vscode/src/vs/workbench/contrib/comments/browser/commentMenus.js +0 -43
  916. package/vscode/src/vs/workbench/contrib/comments/browser/commentService.js +0 -354
  917. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +0 -21
  918. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +0 -144
  919. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +0 -212
  920. package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +0 -4
  921. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +0 -76
  922. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +0 -56
  923. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +0 -61
  924. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +0 -181
  925. package/vscode/src/vs/workbench/contrib/debug/common/debugContext.js +0 -14
  926. package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +0 -211
  927. package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.js +0 -59
  928. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +0 -6
  929. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveDocumentService.js +0 -27
  930. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveHistoryService.js +0 -49
  931. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +0 -406
  932. package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +0 -4
  933. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +0 -145
  934. package/vscode/src/vs/workbench/contrib/logs/common/defaultLogLevels.js +0 -155
  935. package/vscode/src/vs/workbench/contrib/logs/common/logsActions.js +0 -236
  936. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +0 -634
  937. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +0 -229
  938. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +0 -74
  939. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +0 -40
  940. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +0 -79
  941. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +0 -348
  942. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +0 -98
  943. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +0 -146
  944. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +0 -104
  945. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +0 -401
  946. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +0 -197
  947. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/fixedZoneWidget.js +0 -39
  948. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +0 -126
  949. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +0 -4
  950. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +0 -616
  951. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +0 -159
  952. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +0 -264
  953. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +0 -171
  954. package/vscode/src/vs/workbench/contrib/output/common/outputChannelModel.js +0 -326
  955. package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.js +0 -31
  956. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +0 -192
  957. package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +0 -37
  958. package/vscode/src/vs/workbench/contrib/sash/browser/sash.js +0 -39
  959. package/vscode/src/vs/workbench/contrib/search/common/searchHistoryService.js +0 -44
  960. package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +0 -92
  961. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +0 -934
  962. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +0 -48
  963. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +0 -25
  964. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +0 -64
  965. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.d.ts +0 -25
  966. package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +0 -36
  967. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +0 -537
  968. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +0 -141
  969. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.d.ts +0 -8
  970. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +0 -571
  971. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +0 -166
  972. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +0 -804
  973. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +0 -55
  974. package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.d.ts +0 -9
  975. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +0 -238
  976. package/vscode/src/vs/workbench/contrib/terminal/common/terminalExtensionPoints.js +0 -27
  977. package/vscode/src/vs/workbench/contrib/testing/common/storedValue.js +0 -36
  978. package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.js +0 -62
  979. package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.js +0 -116
  980. package/vscode/src/vs/workbench/contrib/testing/common/testProfileService.js +0 -194
  981. package/vscode/src/vs/workbench/contrib/testing/common/testResultService.js +0 -158
  982. package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.js +0 -160
  983. package/vscode/src/vs/workbench/contrib/testing/common/testService.js +0 -102
  984. package/vscode/src/vs/workbench/contrib/testing/common/testingContextKeys.js +0 -196
  985. package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.js +0 -127
  986. package/vscode/src/vs/workbench/contrib/testing/common/testingDecorations.js +0 -29
  987. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +0 -4
  988. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +0 -281
  989. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +0 -358
  990. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +0 -131
  991. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +0 -311
  992. package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +0 -94
  993. package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +0 -96
  994. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +0 -654
  995. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +0 -63
  996. package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +0 -57
  997. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +0 -140
  998. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +0 -119
  999. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +0 -65
  1000. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +0 -230
  1001. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.js +0 -45
  1002. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +0 -375
  1003. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +0 -525
  1004. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +0 -934
  1005. package/vscode/src/vs/workbench/services/activity/browser/activityService.d.ts +0 -26
  1006. package/vscode/src/vs/workbench/services/activity/browser/activityService.js +0 -143
  1007. package/vscode/src/vs/workbench/services/aiEmbeddingVector/common/aiEmbeddingVectorService.js +0 -75
  1008. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +0 -31
  1009. package/vscode/src/vs/workbench/services/authentication/browser/authenticationAccessService.js +0 -69
  1010. package/vscode/src/vs/workbench/services/authentication/browser/authenticationUsageService.js +0 -50
  1011. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +0 -341
  1012. package/vscode/src/vs/workbench/services/configuration/common/jsonEditing.js +0 -9
  1013. package/vscode/src/vs/workbench/services/driver/browser/driver.js +0 -184
  1014. package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +0 -11
  1015. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +0 -672
  1016. package/vscode/src/vs/workbench/services/environment/browser/environmentService.js +0 -378
  1017. package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +0 -396
  1018. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +0 -150
  1019. package/vscode/src/vs/workbench/services/extensions/browser/extensionService.d.ts +0 -44
  1020. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +0 -339
  1021. package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.d.ts +0 -11
  1022. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +0 -160
  1023. package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts +0 -18
  1024. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManagers.d.ts +0 -39
  1025. package/vscode/src/vs/workbench/services/extensions/common/extensionHostProxy.d.ts +0 -17
  1026. package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.d.ts +0 -20
  1027. package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.d.ts +0 -45
  1028. package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.d.ts +0 -17
  1029. package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.d.ts +0 -6
  1030. package/vscode/src/vs/workbench/services/history/browser/historyService.js +0 -1511
  1031. package/vscode/src/vs/workbench/services/host/browser/host.d.ts +0 -102
  1032. package/vscode/src/vs/workbench/services/issue/browser/issueTroubleshoot.js +0 -418
  1033. package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +0 -267
  1034. package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.js +0 -26
  1035. package/vscode/src/vs/workbench/services/path/common/pathService.d.ts +0 -65
  1036. package/vscode/src/vs/workbench/services/path/common/pathService.js +0 -108
  1037. package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +0 -4
  1038. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +0 -521
  1039. package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.js +0 -59
  1040. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +0 -83
  1041. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.d.ts +0 -182
  1042. package/vscode/src/vs/workbench/services/terminal/common/embedderTerminalService.js +0 -77
  1043. package/vscode/src/vs/workbench/services/timer/browser/timerService.js +0 -243
  1044. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +0 -100
  1045. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +0 -132
  1046. package/vscode/src/vs/workbench/services/userActivity/common/userActivityRegistry.js +0 -15
  1047. package/vscode/src/vs/workbench/services/userActivity/common/userActivityService.js +0 -37
  1048. package/vscode/src/vs/workbench/services/userData/browser/userDataInit.d.ts +0 -15
  1049. package/vscode/src/vs/workbench/services/userData/browser/userDataInit.js +0 -60
  1050. package/vscode/src/vs/workbench/services/userDataProfile/common/remoteUserDataProfiles.js +0 -150
  1051. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +0 -708
  1052. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +0 -601
  1053. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +0 -62
  1054. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.js +0 -40
  1055. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileOperationParticipant.js +0 -40
  1056. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.js +0 -181
  1057. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.js +0 -126
  1058. package/vscode/src/vs/workbench/services/workspaces/common/workspaceIdentityService.js +0 -102
  1059. /package/vscode/src/vs/platform/clipboard/common/{clipboardService.js → clipboardService.service.js} +0 -0
  1060. /package/vscode/src/vs/platform/contextview/browser/{contextView.js → contextView.service.js} +0 -0
  1061. /package/vscode/src/vs/platform/debug/common/{extensionHostDebug.js → extensionHostDebug.service.js} +0 -0
  1062. /package/vscode/src/vs/platform/download/common/{download.js → download.service.js} +0 -0
  1063. /package/vscode/src/vs/platform/encryption/common/{encryptionService.js → encryptionService.service.js} +0 -0
  1064. /package/vscode/src/vs/platform/environment/common/{environment.js → environment.service.js} +0 -0
  1065. /package/vscode/src/vs/platform/keybinding/common/{keybinding.js → keybinding.service.js} +0 -0
  1066. /package/vscode/src/vs/platform/label/common/{label.js → label.service.js} +0 -0
  1067. /package/vscode/src/vs/platform/layout/browser/{layoutService.js → layoutService.service.js} +0 -0
  1068. /package/vscode/src/vs/platform/product/common/{productService.d.ts → productService.service.d.ts} +0 -0
  1069. /package/vscode/src/vs/platform/uriIdentity/common/{uriIdentity.js → uriIdentity.service.js} +0 -0
  1070. /package/vscode/src/vs/platform/url/common/{url.js → url.service.js} +0 -0
  1071. /package/vscode/src/vs/platform/workspace/common/{canonicalUri.js → canonicalUri.service.js} +0 -0
  1072. /package/vscode/src/vs/workbench/browser/parts/editor/{breadcrumbs.d.ts → breadcrumbs.service.d.ts} +0 -0
  1073. /package/vscode/src/vs/workbench/contrib/chat/common/{chatContributionService.js → chatContributionService.service.js} +0 -0
  1074. /package/vscode/src/vs/workbench/contrib/chat/common/{chatVariables.js → chatVariables.service.js} +0 -0
  1075. /package/vscode/src/vs/workbench/contrib/inlineChat/browser/{inlineChatSavingService.js → inlineChatSavingService.service.js} +0 -0
  1076. /package/vscode/src/vs/workbench/contrib/inlineChat/browser/{inlineChatSessionService.js → inlineChatSessionService.service.js} +0 -0
  1077. /package/vscode/src/vs/workbench/contrib/notebook/browser/services/{notebookEditorService.js → notebookEditorService.service.js} +0 -0
  1078. /package/vscode/src/vs/workbench/contrib/notebook/common/{notebookCellStatusBarService.js → notebookCellStatusBarService.service.js} +0 -0
  1079. /package/vscode/src/vs/workbench/contrib/notebook/common/{notebookEditorModelResolverService.js → notebookEditorModelResolverService.service.js} +0 -0
  1080. /package/vscode/src/vs/workbench/contrib/notebook/common/{notebookKeymapService.js → notebookKeymapService.service.js} +0 -0
  1081. /package/vscode/src/vs/workbench/contrib/notebook/common/{notebookLoggingService.js → notebookLoggingService.service.js} +0 -0
  1082. /package/vscode/src/vs/workbench/contrib/notebook/common/{notebookRendererMessagingService.js → notebookRendererMessagingService.service.js} +0 -0
  1083. /package/vscode/src/vs/workbench/contrib/scm/common/{quickDiff.js → quickDiff.service.js} +0 -0
  1084. /package/vscode/src/vs/workbench/contrib/search/browser/{replace.js → replace.service.js} +0 -0
  1085. /package/vscode/src/vs/workbench/contrib/search/common/{notebookSearch.js → notebookSearch.service.js} +0 -0
  1086. /package/vscode/src/vs/workbench/contrib/share/common/{share.js → share.service.js} +0 -0
  1087. /package/vscode/src/vs/workbench/contrib/snippets/browser/{snippets.js → snippets.service.js} +0 -0
  1088. /package/vscode/src/vs/workbench/contrib/terminal/common/{environmentVariable.js → environmentVariable.service.js} +0 -0
  1089. /package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/{links.js → links.service.js} +0 -0
  1090. /package/vscode/src/vs/workbench/contrib/testing/common/{testingPeekOpener.js → testingPeekOpener.service.js} +0 -0
  1091. /package/vscode/src/vs/workbench/services/banner/browser/{bannerService.js → bannerService.service.js} +0 -0
  1092. /package/vscode/src/vs/workbench/services/decorations/common/{decorations.js → decorations.service.js} +0 -0
  1093. /package/vscode/src/vs/workbench/services/editor/common/{customEditorLabelService.d.ts → customEditorLabelService.service.d.ts} +0 -0
  1094. /package/vscode/src/vs/workbench/services/editor/common/{editorPaneService.js → editorPaneService.service.js} +0 -0
  1095. /package/vscode/src/vs/workbench/services/extensionRecommendations/common/{extensionRecommendations.js → extensionRecommendations.service.js} +0 -0
  1096. /package/vscode/src/vs/workbench/services/files/common/{elevatedFileService.js → elevatedFileService.service.js} +0 -0
  1097. /package/vscode/src/vs/workbench/services/host/browser/{host.js → host.service.js} +0 -0
  1098. /package/vscode/src/vs/workbench/services/issue/common/{issue.js → issue.service.js} +0 -0
  1099. /package/vscode/src/vs/workbench/services/localization/common/{locale.d.ts → locale.service.d.ts} +0 -0
  1100. /package/vscode/src/vs/workbench/services/localization/common/{locale.js → locale.service.js} +0 -0
  1101. /package/vscode/src/vs/workbench/services/outline/browser/{outline.js → outline.service.js} +0 -0
  1102. /package/vscode/src/vs/workbench/services/panecomposite/browser/{panecomposite.js → panecomposite.service.js} +0 -0
  1103. /package/vscode/src/vs/workbench/services/textMate/browser/{textMateTokenizationFeature.js → textMateTokenizationFeature.service.js} +0 -0
  1104. /package/vscode/src/vs/workbench/services/themes/common/{hostColorSchemeService.js → hostColorSchemeService.service.js} +0 -0
  1105. /package/vscode/src/vs/workbench/services/title/browser/{titleService.js → titleService.service.js} +0 -0
  1106. /package/vscode/src/vs/workbench/services/views/browser/{treeViewsService.js → treeViewsService.service.js} +0 -0
  1107. /package/vscode/src/vs/workbench/services/views/common/{viewsService.d.ts → viewsService.service.d.ts} +0 -0
  1108. /package/vscode/src/vs/workbench/services/views/common/{viewsService.js → viewsService.service.js} +0 -0
  1109. /package/vscode/src/vs/workbench/services/workingCopy/common/{workingCopyBackup.js → workingCopyBackup.service.js} +0 -0
  1110. /package/vscode/src/vs/workbench/services/workspaces/common/{workspaceEditing.js → workspaceEditing.service.js} +0 -0
@@ -1,1511 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { localizeWithPath } from '../../../../nls.js';
3
- import { URI } from '../../../../base/common/uri.js';
4
- import { isEditorPaneWithSelection, isEditorInput, EditorResourceAccessor, EditorCloseContext, SideBySideEditor, isSideBySideEditorInput, isResourceEditorInput } from '../../../common/editor.js';
5
- import { IEditorService } from '../../editor/common/editorService.js';
6
- import { IHistoryService } from '../common/history.js';
7
- import { FILES_EXCLUDE_CONFIG, FileChangesEvent, FileOperationEvent, IFileService } from '../../../../platform/files/common/files.js';
8
- import { IWorkspaceContextService } from '../../../../platform/workspace/common/workspace.js';
9
- import { Disposable, DisposableStore, dispose } from '../../../../base/common/lifecycle.js';
10
- import { IStorageService } from '../../../../platform/storage/common/storage.js';
11
- import { Emitter, Event } from '../../../../base/common/event.js';
12
- import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
13
- import { IEditorGroupsService } from '../../editor/common/editorGroupsService.js';
14
- import { getExcludes, SEARCH_EXCLUDE_CONFIG } from '../../search/common/search.js';
15
- import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
16
- import { IWorkbenchLayoutService } from '../../layout/browser/layoutService.js';
17
- import { RawContextKey, IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
18
- import { coalesce, remove } from '../../../../base/common/arrays.js';
19
- import { registerSingleton } from '../../../../platform/instantiation/common/extensions.js';
20
- import { WindowIdleValue, EventHelper, addDisposableListener, EventType } from '../../../../base/browser/dom.js';
21
- import { IWorkspacesService } from '../../../../platform/workspaces/common/workspaces.js';
22
- import { Schemas } from '../../../../base/common/network.js';
23
- import { onUnexpectedError } from '../../../../base/common/errors.js';
24
- import { ResourceGlobMatcher } from '../../../common/resources.js';
25
- import { IPathService } from '../../path/common/pathService.js';
26
- import { IUriIdentityService } from '../../../../platform/uriIdentity/common/uriIdentity.js';
27
- import { ILifecycleService } from '../../lifecycle/common/lifecycle.js';
28
- import { LogLevel, ILogService } from '../../../../platform/log/common/log.js';
29
- import { mainWindow } from '../../../../base/browser/window.js';
30
- var HistoryService_1, EditorNavigationStack_1;
31
- let HistoryService = class HistoryService extends Disposable {
32
- static { HistoryService_1 = this; }
33
- static { this.MOUSE_NAVIGATION_SETTING = 'workbench.editor.mouseBackForwardToNavigate'; }
34
- static { this.NAVIGATION_SCOPE_SETTING = 'workbench.editor.navigationScope'; }
35
- constructor(editorService, editorGroupService, contextService, storageService, configurationService, fileService, workspacesService, instantiationService, layoutService, contextKeyService, logService) {
36
- super();
37
- this.editorService = editorService;
38
- this.editorGroupService = editorGroupService;
39
- this.contextService = contextService;
40
- this.storageService = storageService;
41
- this.configurationService = configurationService;
42
- this.fileService = fileService;
43
- this.workspacesService = workspacesService;
44
- this.instantiationService = instantiationService;
45
- this.layoutService = layoutService;
46
- this.contextKeyService = contextKeyService;
47
- this.logService = logService;
48
- this.activeEditorListeners = this._register(( new DisposableStore()));
49
- this.lastActiveEditor = undefined;
50
- this.editorHelper = this.instantiationService.createInstance(EditorHelper);
51
- this.canNavigateBackContextKey = (( new RawContextKey('canNavigateBack', false, ( localizeWithPath(
52
- 'vs/workbench/services/history/browser/historyService',
53
- 'canNavigateBack',
54
- "Whether it is possible to navigate back in editor history"
55
- ))))).bindTo(this.contextKeyService);
56
- this.canNavigateForwardContextKey = (( new RawContextKey('canNavigateForward', false, ( localizeWithPath(
57
- 'vs/workbench/services/history/browser/historyService',
58
- 'canNavigateForward',
59
- "Whether it is possible to navigate forward in editor history"
60
- ))))).bindTo(this.contextKeyService);
61
- this.canNavigateBackInNavigationsContextKey = (( new RawContextKey('canNavigateBackInNavigationLocations', false, ( localizeWithPath(
62
- 'vs/workbench/services/history/browser/historyService',
63
- 'canNavigateBackInNavigationLocations',
64
- "Whether it is possible to navigate back in editor navigation locations history"
65
- ))))).bindTo(this.contextKeyService);
66
- this.canNavigateForwardInNavigationsContextKey = (( new RawContextKey('canNavigateForwardInNavigationLocations', false, ( localizeWithPath(
67
- 'vs/workbench/services/history/browser/historyService',
68
- 'canNavigateForwardInNavigationLocations',
69
- "Whether it is possible to navigate forward in editor navigation locations history"
70
- ))))).bindTo(this.contextKeyService);
71
- this.canNavigateToLastNavigationLocationContextKey = (( new RawContextKey('canNavigateToLastNavigationLocation', false, ( localizeWithPath(
72
- 'vs/workbench/services/history/browser/historyService',
73
- 'canNavigateToLastNavigationLocation',
74
- "Whether it is possible to navigate to the last editor navigation location"
75
- ))))).bindTo(this.contextKeyService);
76
- this.canNavigateBackInEditsContextKey = (( new RawContextKey('canNavigateBackInEditLocations', false, ( localizeWithPath(
77
- 'vs/workbench/services/history/browser/historyService',
78
- 'canNavigateBackInEditLocations',
79
- "Whether it is possible to navigate back in editor edit locations history"
80
- ))))).bindTo(this.contextKeyService);
81
- this.canNavigateForwardInEditsContextKey = (( new RawContextKey('canNavigateForwardInEditLocations', false, ( localizeWithPath(
82
- 'vs/workbench/services/history/browser/historyService',
83
- 'canNavigateForwardInEditLocations',
84
- "Whether it is possible to navigate forward in editor edit locations history"
85
- ))))).bindTo(this.contextKeyService);
86
- this.canNavigateToLastEditLocationContextKey = (( new RawContextKey('canNavigateToLastEditLocation', false, ( localizeWithPath(
87
- 'vs/workbench/services/history/browser/historyService',
88
- 'canNavigateToLastEditLocation',
89
- "Whether it is possible to navigate to the last editor edit location"
90
- ))))).bindTo(this.contextKeyService);
91
- this.canReopenClosedEditorContextKey = (( new RawContextKey('canReopenClosedEditor', false, ( localizeWithPath(
92
- 'vs/workbench/services/history/browser/historyService',
93
- 'canReopenClosedEditor',
94
- "Whether it is possible to reopen the last closed editor"
95
- ))))).bindTo(this.contextKeyService);
96
- this._onDidChangeEditorNavigationStack = this._register(( new Emitter()));
97
- this.onDidChangeEditorNavigationStack = this._onDidChangeEditorNavigationStack.event;
98
- this.defaultScopedEditorNavigationStack = undefined;
99
- this.editorGroupScopedNavigationStacks = ( new Map());
100
- this.editorScopedNavigationStacks = ( new Map());
101
- this.editorNavigationScope = 0 ;
102
- this.recentlyUsedEditorsStack = undefined;
103
- this.recentlyUsedEditorsStackIndex = 0;
104
- this.recentlyUsedEditorsInGroupStack = undefined;
105
- this.recentlyUsedEditorsInGroupStackIndex = 0;
106
- this.navigatingInRecentlyUsedEditorsStack = false;
107
- this.navigatingInRecentlyUsedEditorsInGroupStack = false;
108
- this.recentlyClosedEditors = [];
109
- this.ignoreEditorCloseEvent = false;
110
- this.history = undefined;
111
- this.editorHistoryListeners = ( new Map());
112
- this.resourceExcludeMatcher = this._register(( new WindowIdleValue(mainWindow, () => {
113
- const matcher = this._register(this.instantiationService.createInstance(ResourceGlobMatcher, root => getExcludes(root ? this.configurationService.getValue({ resource: root }) : this.configurationService.getValue()) || Object.create(null), event => event.affectsConfiguration(FILES_EXCLUDE_CONFIG) || event.affectsConfiguration(SEARCH_EXCLUDE_CONFIG)));
114
- this._register(matcher.onExpressionChange(() => this.removeExcludedFromHistory()));
115
- return matcher;
116
- })));
117
- this.registerListeners();
118
- if (this.editorService.activeEditorPane) {
119
- this.onDidActiveEditorChange();
120
- }
121
- }
122
- registerListeners() {
123
- this.registerMouseNavigationListener();
124
- this._register(this.editorService.onDidActiveEditorChange(() => this.onDidActiveEditorChange()));
125
- this._register(this.editorService.onDidOpenEditorFail(event => this.remove(event.editor)));
126
- this._register(this.editorService.onDidCloseEditor(event => this.onDidCloseEditor(event)));
127
- this._register(this.editorService.onDidMostRecentlyActiveEditorsChange(() => this.handleEditorEventInRecentEditorsStack()));
128
- this._register(this.editorGroupService.onDidRemoveGroup(e => this.onDidRemoveGroup(e)));
129
- this._register(this.fileService.onDidFilesChange(event => this.onDidFilesChange(event)));
130
- this._register(this.fileService.onDidRunOperation(event => this.onDidFilesChange(event)));
131
- this._register(this.storageService.onWillSaveState(() => this.saveState()));
132
- this.registerEditorNavigationScopeChangeListener();
133
- this._register(this.onDidChangeEditorNavigationStack(() => this.updateContextKeys()));
134
- this._register(this.editorGroupService.onDidChangeActiveGroup(() => this.updateContextKeys()));
135
- }
136
- onDidCloseEditor(e) {
137
- this.handleEditorCloseEventInHistory(e);
138
- this.handleEditorCloseEventInReopen(e);
139
- }
140
- registerMouseNavigationListener() {
141
- const mouseBackForwardSupportListener = this._register(( new DisposableStore()));
142
- const handleMouseBackForwardSupport = () => {
143
- mouseBackForwardSupportListener.clear();
144
- if (this.configurationService.getValue(HistoryService_1.MOUSE_NAVIGATION_SETTING)) {
145
- this._register(Event.runAndSubscribe(this.layoutService.onDidAddContainer, ({ container, disposables }) => {
146
- const eventDisposables = disposables.add(( new DisposableStore()));
147
- eventDisposables.add(addDisposableListener(container, EventType.MOUSE_DOWN, e => this.onMouseDownOrUp(e, true)));
148
- eventDisposables.add(addDisposableListener(container, EventType.MOUSE_UP, e => this.onMouseDownOrUp(e, false)));
149
- mouseBackForwardSupportListener.add(eventDisposables);
150
- }, { container: this.layoutService.mainContainer, disposables: this._store }));
151
- }
152
- };
153
- this._register(this.configurationService.onDidChangeConfiguration(event => {
154
- if (event.affectsConfiguration(HistoryService_1.MOUSE_NAVIGATION_SETTING)) {
155
- handleMouseBackForwardSupport();
156
- }
157
- }));
158
- handleMouseBackForwardSupport();
159
- }
160
- onMouseDownOrUp(event, isMouseDown) {
161
- switch (event.button) {
162
- case 3:
163
- EventHelper.stop(event);
164
- if (isMouseDown) {
165
- this.goBack();
166
- }
167
- break;
168
- case 4:
169
- EventHelper.stop(event);
170
- if (isMouseDown) {
171
- this.goForward();
172
- }
173
- break;
174
- }
175
- }
176
- onDidRemoveGroup(group) {
177
- this.handleEditorGroupRemoveInNavigationStacks(group);
178
- }
179
- onDidActiveEditorChange() {
180
- const activeEditorGroup = this.editorGroupService.activeGroup;
181
- const activeEditorPane = activeEditorGroup.activeEditorPane;
182
- if (this.lastActiveEditor && this.editorHelper.matchesEditorIdentifier(this.lastActiveEditor, activeEditorPane)) {
183
- return;
184
- }
185
- this.lastActiveEditor = activeEditorPane?.input ? { editor: activeEditorPane.input, groupId: activeEditorPane.group.id } : undefined;
186
- this.activeEditorListeners.clear();
187
- if (!activeEditorPane?.group.isTransient(activeEditorPane.input)) {
188
- this.handleActiveEditorChange(activeEditorGroup, activeEditorPane);
189
- }
190
- else {
191
- this.logService.trace(`[History]: ignoring transient editor change (editor: ${activeEditorPane.input?.resource?.toString()}})`);
192
- }
193
- if (isEditorPaneWithSelection(activeEditorPane)) {
194
- this.activeEditorListeners.add(activeEditorPane.onDidChangeSelection(e => {
195
- if (!activeEditorPane.group.isTransient(activeEditorPane.input)) {
196
- this.handleActiveEditorSelectionChangeEvent(activeEditorGroup, activeEditorPane, e);
197
- }
198
- else {
199
- this.logService.trace(`[History]: ignoring transient editor selection change (editor: ${activeEditorPane.input?.resource?.toString()}})`);
200
- }
201
- }));
202
- }
203
- this.updateContextKeys();
204
- }
205
- onDidFilesChange(event) {
206
- if (event instanceof FileChangesEvent) {
207
- if (event.gotDeleted()) {
208
- this.remove(event);
209
- }
210
- }
211
- else {
212
- if (event.isOperation(1 )) {
213
- this.remove(event);
214
- }
215
- else if (event.isOperation(2 ) && event.target.isFile) {
216
- this.move(event);
217
- }
218
- }
219
- }
220
- handleActiveEditorChange(group, editorPane) {
221
- this.handleActiveEditorChangeInHistory(editorPane);
222
- this.handleActiveEditorChangeInNavigationStacks(group, editorPane);
223
- }
224
- handleActiveEditorSelectionChangeEvent(group, editorPane, event) {
225
- this.handleActiveEditorSelectionChangeInNavigationStacks(group, editorPane, event);
226
- }
227
- move(event) {
228
- this.moveInHistory(event);
229
- this.moveInEditorNavigationStacks(event);
230
- }
231
- remove(arg1) {
232
- this.removeFromHistory(arg1);
233
- this.removeFromEditorNavigationStacks(arg1);
234
- this.removeFromRecentlyClosedEditors(arg1);
235
- this.removeFromRecentlyOpened(arg1);
236
- }
237
- removeFromRecentlyOpened(arg1) {
238
- let resource = undefined;
239
- if (isEditorInput(arg1)) {
240
- resource = EditorResourceAccessor.getOriginalUri(arg1);
241
- }
242
- else if (arg1 instanceof FileChangesEvent) ;
243
- else {
244
- resource = arg1.resource;
245
- }
246
- if (resource) {
247
- this.workspacesService.removeRecentlyOpened([resource]);
248
- }
249
- }
250
- clear() {
251
- this.clearRecentlyOpened();
252
- this.clearEditorNavigationStacks();
253
- this.recentlyClosedEditors = [];
254
- this.updateContextKeys();
255
- }
256
- updateContextKeys() {
257
- this.contextKeyService.bufferChangeEvents(() => {
258
- const activeStack = this.getStack();
259
- this.canNavigateBackContextKey.set(activeStack.canGoBack(0 ));
260
- this.canNavigateForwardContextKey.set(activeStack.canGoForward(0 ));
261
- this.canNavigateBackInNavigationsContextKey.set(activeStack.canGoBack(2 ));
262
- this.canNavigateForwardInNavigationsContextKey.set(activeStack.canGoForward(2 ));
263
- this.canNavigateToLastNavigationLocationContextKey.set(activeStack.canGoLast(2 ));
264
- this.canNavigateBackInEditsContextKey.set(activeStack.canGoBack(1 ));
265
- this.canNavigateForwardInEditsContextKey.set(activeStack.canGoForward(1 ));
266
- this.canNavigateToLastEditLocationContextKey.set(activeStack.canGoLast(1 ));
267
- this.canReopenClosedEditorContextKey.set(this.recentlyClosedEditors.length > 0);
268
- });
269
- }
270
- registerEditorNavigationScopeChangeListener() {
271
- const handleEditorNavigationScopeChange = () => {
272
- this.disposeEditorNavigationStacks();
273
- const configuredScope = this.configurationService.getValue(HistoryService_1.NAVIGATION_SCOPE_SETTING);
274
- if (configuredScope === 'editorGroup') {
275
- this.editorNavigationScope = 1 ;
276
- }
277
- else if (configuredScope === 'editor') {
278
- this.editorNavigationScope = 2 ;
279
- }
280
- else {
281
- this.editorNavigationScope = 0 ;
282
- }
283
- };
284
- this._register(this.configurationService.onDidChangeConfiguration(event => {
285
- if (event.affectsConfiguration(HistoryService_1.NAVIGATION_SCOPE_SETTING)) {
286
- handleEditorNavigationScopeChange();
287
- }
288
- }));
289
- handleEditorNavigationScopeChange();
290
- }
291
- getStack(group = this.editorGroupService.activeGroup, editor = group.activeEditor) {
292
- switch (this.editorNavigationScope) {
293
- case 2 : {
294
- if (!editor) {
295
- return ( new NoOpEditorNavigationStacks());
296
- }
297
- let stacksForGroup = this.editorScopedNavigationStacks.get(group.id);
298
- if (!stacksForGroup) {
299
- stacksForGroup = ( new Map());
300
- this.editorScopedNavigationStacks.set(group.id, stacksForGroup);
301
- }
302
- let stack = stacksForGroup.get(editor)?.stack;
303
- if (!stack) {
304
- const disposable = ( new DisposableStore());
305
- stack = disposable.add(this.instantiationService.createInstance(EditorNavigationStacks, 2 ));
306
- disposable.add(stack.onDidChange(() => this._onDidChangeEditorNavigationStack.fire()));
307
- stacksForGroup.set(editor, { stack, disposable });
308
- }
309
- return stack;
310
- }
311
- case 1 : {
312
- let stack = this.editorGroupScopedNavigationStacks.get(group.id)?.stack;
313
- if (!stack) {
314
- const disposable = ( new DisposableStore());
315
- stack = disposable.add(this.instantiationService.createInstance(EditorNavigationStacks, 1 ));
316
- disposable.add(stack.onDidChange(() => this._onDidChangeEditorNavigationStack.fire()));
317
- this.editorGroupScopedNavigationStacks.set(group.id, { stack, disposable });
318
- }
319
- return stack;
320
- }
321
- case 0 : {
322
- if (!this.defaultScopedEditorNavigationStack) {
323
- this.defaultScopedEditorNavigationStack = this._register(this.instantiationService.createInstance(EditorNavigationStacks, 0 ));
324
- this._register(this.defaultScopedEditorNavigationStack.onDidChange(() => this._onDidChangeEditorNavigationStack.fire()));
325
- }
326
- return this.defaultScopedEditorNavigationStack;
327
- }
328
- }
329
- }
330
- goForward(filter) {
331
- return this.getStack().goForward(filter);
332
- }
333
- goBack(filter) {
334
- return this.getStack().goBack(filter);
335
- }
336
- goPrevious(filter) {
337
- return this.getStack().goPrevious(filter);
338
- }
339
- goLast(filter) {
340
- return this.getStack().goLast(filter);
341
- }
342
- handleActiveEditorChangeInNavigationStacks(group, editorPane) {
343
- this.getStack(group, editorPane?.input).handleActiveEditorChange(editorPane);
344
- }
345
- handleActiveEditorSelectionChangeInNavigationStacks(group, editorPane, event) {
346
- this.getStack(group, editorPane.input).handleActiveEditorSelectionChange(editorPane, event);
347
- }
348
- handleEditorCloseEventInHistory(e) {
349
- const editors = this.editorScopedNavigationStacks.get(e.groupId);
350
- if (editors) {
351
- const editorStack = editors.get(e.editor);
352
- if (editorStack) {
353
- editorStack.disposable.dispose();
354
- editors.delete(e.editor);
355
- }
356
- if (editors.size === 0) {
357
- this.editorScopedNavigationStacks.delete(e.groupId);
358
- }
359
- }
360
- }
361
- handleEditorGroupRemoveInNavigationStacks(group) {
362
- this.defaultScopedEditorNavigationStack?.remove(group.id);
363
- const editorGroupStack = this.editorGroupScopedNavigationStacks.get(group.id);
364
- if (editorGroupStack) {
365
- editorGroupStack.disposable.dispose();
366
- this.editorGroupScopedNavigationStacks.delete(group.id);
367
- }
368
- }
369
- clearEditorNavigationStacks() {
370
- this.withEachEditorNavigationStack(stack => stack.clear());
371
- }
372
- removeFromEditorNavigationStacks(arg1) {
373
- this.withEachEditorNavigationStack(stack => stack.remove(arg1));
374
- }
375
- moveInEditorNavigationStacks(event) {
376
- this.withEachEditorNavigationStack(stack => stack.move(event));
377
- }
378
- withEachEditorNavigationStack(fn) {
379
- if (this.defaultScopedEditorNavigationStack) {
380
- fn(this.defaultScopedEditorNavigationStack);
381
- }
382
- for (const [, entry] of this.editorGroupScopedNavigationStacks) {
383
- fn(entry.stack);
384
- }
385
- for (const [, entries] of this.editorScopedNavigationStacks) {
386
- for (const [, entry] of entries) {
387
- fn(entry.stack);
388
- }
389
- }
390
- }
391
- disposeEditorNavigationStacks() {
392
- this.defaultScopedEditorNavigationStack?.dispose();
393
- this.defaultScopedEditorNavigationStack = undefined;
394
- for (const [, stack] of this.editorGroupScopedNavigationStacks) {
395
- stack.disposable.dispose();
396
- }
397
- this.editorGroupScopedNavigationStacks.clear();
398
- for (const [, stacks] of this.editorScopedNavigationStacks) {
399
- for (const [, stack] of stacks) {
400
- stack.disposable.dispose();
401
- }
402
- }
403
- this.editorScopedNavigationStacks.clear();
404
- }
405
- openNextRecentlyUsedEditor(groupId) {
406
- const [stack, index] = this.ensureRecentlyUsedStack(index => index - 1, groupId);
407
- return this.doNavigateInRecentlyUsedEditorsStack(stack[index], groupId);
408
- }
409
- openPreviouslyUsedEditor(groupId) {
410
- const [stack, index] = this.ensureRecentlyUsedStack(index => index + 1, groupId);
411
- return this.doNavigateInRecentlyUsedEditorsStack(stack[index], groupId);
412
- }
413
- async doNavigateInRecentlyUsedEditorsStack(editorIdentifier, groupId) {
414
- if (editorIdentifier) {
415
- const acrossGroups = typeof groupId !== 'number' || !this.editorGroupService.getGroup(groupId);
416
- if (acrossGroups) {
417
- this.navigatingInRecentlyUsedEditorsStack = true;
418
- }
419
- else {
420
- this.navigatingInRecentlyUsedEditorsInGroupStack = true;
421
- }
422
- const group = this.editorGroupService.getGroup(editorIdentifier.groupId) ?? this.editorGroupService.activeGroup;
423
- try {
424
- await group.openEditor(editorIdentifier.editor);
425
- }
426
- finally {
427
- if (acrossGroups) {
428
- this.navigatingInRecentlyUsedEditorsStack = false;
429
- }
430
- else {
431
- this.navigatingInRecentlyUsedEditorsInGroupStack = false;
432
- }
433
- }
434
- }
435
- }
436
- ensureRecentlyUsedStack(indexModifier, groupId) {
437
- let editors;
438
- let index;
439
- const group = typeof groupId === 'number' ? this.editorGroupService.getGroup(groupId) : undefined;
440
- if (!group) {
441
- editors = this.recentlyUsedEditorsStack || this.editorService.getEditors(0 );
442
- index = this.recentlyUsedEditorsStackIndex;
443
- }
444
- else {
445
- editors = this.recentlyUsedEditorsInGroupStack || ( group.getEditors(0 ).map(editor => ({ groupId: group.id, editor })));
446
- index = this.recentlyUsedEditorsInGroupStackIndex;
447
- }
448
- let newIndex = indexModifier(index);
449
- if (newIndex < 0) {
450
- newIndex = 0;
451
- }
452
- else if (newIndex > editors.length - 1) {
453
- newIndex = editors.length - 1;
454
- }
455
- if (!group) {
456
- this.recentlyUsedEditorsStack = editors;
457
- this.recentlyUsedEditorsStackIndex = newIndex;
458
- }
459
- else {
460
- this.recentlyUsedEditorsInGroupStack = editors;
461
- this.recentlyUsedEditorsInGroupStackIndex = newIndex;
462
- }
463
- return [editors, newIndex];
464
- }
465
- handleEditorEventInRecentEditorsStack() {
466
- if (!this.navigatingInRecentlyUsedEditorsStack) {
467
- this.recentlyUsedEditorsStack = undefined;
468
- this.recentlyUsedEditorsStackIndex = 0;
469
- }
470
- if (!this.navigatingInRecentlyUsedEditorsInGroupStack) {
471
- this.recentlyUsedEditorsInGroupStack = undefined;
472
- this.recentlyUsedEditorsInGroupStackIndex = 0;
473
- }
474
- }
475
- static { this.MAX_RECENTLY_CLOSED_EDITORS = 20; }
476
- handleEditorCloseEventInReopen(event) {
477
- if (this.ignoreEditorCloseEvent) {
478
- return;
479
- }
480
- const { editor, context } = event;
481
- if (context === EditorCloseContext.REPLACE || context === EditorCloseContext.MOVE) {
482
- return;
483
- }
484
- const untypedEditor = editor.toUntyped();
485
- if (!untypedEditor) {
486
- return;
487
- }
488
- const associatedResources = [];
489
- const editorResource = EditorResourceAccessor.getOriginalUri(editor, { supportSideBySide: SideBySideEditor.BOTH });
490
- if (URI.isUri(editorResource)) {
491
- associatedResources.push(editorResource);
492
- }
493
- else if (editorResource) {
494
- associatedResources.push(...coalesce([editorResource.primary, editorResource.secondary]));
495
- }
496
- this.removeFromRecentlyClosedEditors(editor);
497
- this.recentlyClosedEditors.push({
498
- editorId: editor.editorId,
499
- editor: untypedEditor,
500
- resource: EditorResourceAccessor.getOriginalUri(editor),
501
- associatedResources,
502
- index: event.index,
503
- sticky: event.sticky
504
- });
505
- if (this.recentlyClosedEditors.length > HistoryService_1.MAX_RECENTLY_CLOSED_EDITORS) {
506
- this.recentlyClosedEditors.shift();
507
- }
508
- this.canReopenClosedEditorContextKey.set(true);
509
- }
510
- async reopenLastClosedEditor() {
511
- const lastClosedEditor = this.recentlyClosedEditors.pop();
512
- let reopenClosedEditorPromise = undefined;
513
- if (lastClosedEditor) {
514
- reopenClosedEditorPromise = this.doReopenLastClosedEditor(lastClosedEditor);
515
- }
516
- this.canReopenClosedEditorContextKey.set(this.recentlyClosedEditors.length > 0);
517
- return reopenClosedEditorPromise;
518
- }
519
- async doReopenLastClosedEditor(lastClosedEditor) {
520
- const options = { pinned: true, sticky: lastClosedEditor.sticky, index: lastClosedEditor.index, ignoreError: true };
521
- if ((lastClosedEditor.sticky && !this.editorGroupService.activeGroup.isSticky(lastClosedEditor.index)) ||
522
- (!lastClosedEditor.sticky && this.editorGroupService.activeGroup.isSticky(lastClosedEditor.index))) {
523
- options.index = undefined;
524
- }
525
- let editorPane = undefined;
526
- if (!this.editorGroupService.activeGroup.contains(lastClosedEditor.editor)) {
527
- this.ignoreEditorCloseEvent = true;
528
- try {
529
- editorPane = await this.editorService.openEditor({
530
- ...lastClosedEditor.editor,
531
- options: {
532
- ...lastClosedEditor.editor.options,
533
- ...options
534
- }
535
- });
536
- }
537
- finally {
538
- this.ignoreEditorCloseEvent = false;
539
- }
540
- }
541
- if (!editorPane) {
542
- remove(this.recentlyClosedEditors, lastClosedEditor);
543
- this.reopenLastClosedEditor();
544
- }
545
- }
546
- removeFromRecentlyClosedEditors(arg1) {
547
- this.recentlyClosedEditors = this.recentlyClosedEditors.filter(recentlyClosedEditor => {
548
- if (isEditorInput(arg1) && recentlyClosedEditor.editorId !== arg1.editorId) {
549
- return true;
550
- }
551
- if (recentlyClosedEditor.resource && this.editorHelper.matchesFile(recentlyClosedEditor.resource, arg1)) {
552
- return false;
553
- }
554
- if (( recentlyClosedEditor.associatedResources.some(
555
- associatedResource => this.editorHelper.matchesFile(associatedResource, arg1)
556
- ))) {
557
- return false;
558
- }
559
- return true;
560
- });
561
- this.canReopenClosedEditorContextKey.set(this.recentlyClosedEditors.length > 0);
562
- }
563
- static { this.MAX_HISTORY_ITEMS = 200; }
564
- static { this.HISTORY_STORAGE_KEY = 'history.entries'; }
565
- handleActiveEditorChangeInHistory(editorPane) {
566
- const editor = editorPane?.input;
567
- if (!editor || editor.isDisposed() || !this.includeInHistory(editor)) {
568
- return;
569
- }
570
- this.removeFromHistory(editor);
571
- this.addToHistory(editor);
572
- }
573
- addToHistory(editor, insertFirst = true) {
574
- this.ensureHistoryLoaded(this.history);
575
- const historyInput = this.editorHelper.preferResourceEditorInput(editor);
576
- if (!historyInput) {
577
- return;
578
- }
579
- if (insertFirst) {
580
- this.history.unshift(historyInput);
581
- }
582
- else {
583
- this.history.push(historyInput);
584
- }
585
- if (this.history.length > HistoryService_1.MAX_HISTORY_ITEMS) {
586
- this.editorHelper.clearOnEditorDispose(this.history.pop(), this.editorHistoryListeners);
587
- }
588
- if (isEditorInput(editor)) {
589
- this.editorHelper.onEditorDispose(editor, () => this.updateHistoryOnEditorDispose(historyInput), this.editorHistoryListeners);
590
- }
591
- }
592
- updateHistoryOnEditorDispose(editor) {
593
- if (isEditorInput(editor)) {
594
- if (!isSideBySideEditorInput(editor)) {
595
- this.removeFromHistory(editor);
596
- }
597
- else {
598
- const resourceInputs = [];
599
- const sideInputs = editor.primary.matches(editor.secondary) ? [editor.primary] : [editor.primary, editor.secondary];
600
- for (const sideInput of sideInputs) {
601
- const candidateResourceInput = this.editorHelper.preferResourceEditorInput(sideInput);
602
- if (isResourceEditorInput(candidateResourceInput)) {
603
- resourceInputs.push(candidateResourceInput);
604
- }
605
- }
606
- this.replaceInHistory(editor, ...resourceInputs);
607
- }
608
- }
609
- else {
610
- if (!this.includeInHistory(editor)) {
611
- this.removeFromHistory(editor);
612
- }
613
- }
614
- }
615
- includeInHistory(editor) {
616
- if (isEditorInput(editor)) {
617
- return true;
618
- }
619
- return !this.resourceExcludeMatcher.value.matches(editor.resource);
620
- }
621
- removeExcludedFromHistory() {
622
- this.ensureHistoryLoaded(this.history);
623
- this.history = this.history.filter(entry => {
624
- const include = this.includeInHistory(entry);
625
- if (!include) {
626
- this.editorHelper.clearOnEditorDispose(entry, this.editorHistoryListeners);
627
- }
628
- return include;
629
- });
630
- }
631
- moveInHistory(event) {
632
- if (event.isOperation(2 )) {
633
- const removed = this.removeFromHistory(event);
634
- if (removed) {
635
- this.addToHistory({ resource: event.target.resource });
636
- }
637
- }
638
- }
639
- removeFromHistory(arg1) {
640
- let removed = false;
641
- this.ensureHistoryLoaded(this.history);
642
- this.history = this.history.filter(entry => {
643
- const matches = this.editorHelper.matchesEditor(arg1, entry);
644
- if (matches) {
645
- this.editorHelper.clearOnEditorDispose(arg1, this.editorHistoryListeners);
646
- removed = true;
647
- }
648
- return !matches;
649
- });
650
- return removed;
651
- }
652
- replaceInHistory(editor, ...replacements) {
653
- this.ensureHistoryLoaded(this.history);
654
- let replaced = false;
655
- const newHistory = [];
656
- for (const entry of this.history) {
657
- if (this.editorHelper.matchesEditor(editor, entry)) {
658
- this.editorHelper.clearOnEditorDispose(editor, this.editorHistoryListeners);
659
- if (!replaced) {
660
- newHistory.push(...replacements);
661
- replaced = true;
662
- }
663
- }
664
- else if (!( replacements.some(replacement => this.editorHelper.matchesEditor(replacement, entry)))) {
665
- newHistory.push(entry);
666
- }
667
- }
668
- if (!replaced) {
669
- newHistory.push(...replacements);
670
- }
671
- this.history = newHistory;
672
- }
673
- clearRecentlyOpened() {
674
- this.history = [];
675
- for (const [, disposable] of this.editorHistoryListeners) {
676
- dispose(disposable);
677
- }
678
- this.editorHistoryListeners.clear();
679
- }
680
- getHistory() {
681
- this.ensureHistoryLoaded(this.history);
682
- return this.history;
683
- }
684
- ensureHistoryLoaded(history) {
685
- if (!this.history) {
686
- this.history = [];
687
- if (this.editorGroupService.isReady) {
688
- this.loadHistory();
689
- }
690
- else {
691
- (async () => {
692
- await this.editorGroupService.whenReady;
693
- this.loadHistory();
694
- })();
695
- }
696
- }
697
- }
698
- loadHistory() {
699
- this.history = [];
700
- const storedEditorHistory = this.loadHistoryFromStorage();
701
- const openedEditorsLru = [...this.editorService.getEditors(0 )].reverse();
702
- const handledEditors = ( new Set());
703
- for (const { editor } of openedEditorsLru) {
704
- if (!this.includeInHistory(editor)) {
705
- continue;
706
- }
707
- this.addToHistory(editor);
708
- if (editor.resource) {
709
- handledEditors.add(`${( editor.resource.toString())}/${editor.editorId}`);
710
- }
711
- }
712
- for (const editor of storedEditorHistory) {
713
- if (!( handledEditors.has(`${( editor.resource.toString())}/${editor.options?.override}`)) &&
714
- this.includeInHistory(editor)) {
715
- this.addToHistory(editor, false );
716
- }
717
- }
718
- }
719
- loadHistoryFromStorage() {
720
- const entries = [];
721
- const entriesRaw = this.storageService.get(HistoryService_1.HISTORY_STORAGE_KEY, 1 );
722
- if (entriesRaw) {
723
- try {
724
- const entriesParsed = JSON.parse(entriesRaw);
725
- for (const entryParsed of entriesParsed) {
726
- if (!entryParsed.editor || !entryParsed.editor.resource) {
727
- continue;
728
- }
729
- try {
730
- entries.push({
731
- ...entryParsed.editor,
732
- resource: typeof entryParsed.editor.resource === 'string' ?
733
- (
734
- URI.parse(entryParsed.editor.resource)) :
735
- ( URI.from(entryParsed.editor.resource))
736
- });
737
- }
738
- catch (error) {
739
- onUnexpectedError(error);
740
- }
741
- }
742
- }
743
- catch (error) {
744
- onUnexpectedError(error);
745
- }
746
- }
747
- return entries;
748
- }
749
- saveState() {
750
- if (!this.history) {
751
- return;
752
- }
753
- const entries = [];
754
- for (const editor of this.history) {
755
- if (isEditorInput(editor) || !isResourceEditorInput(editor)) {
756
- continue;
757
- }
758
- entries.push({
759
- editor: {
760
- ...editor,
761
- resource: ( editor.resource.toString())
762
- }
763
- });
764
- }
765
- this.storageService.store(HistoryService_1.HISTORY_STORAGE_KEY, JSON.stringify(entries), 1 , 1 );
766
- }
767
- getLastActiveWorkspaceRoot(schemeFilter, authorityFilter) {
768
- const folders = this.contextService.getWorkspace().folders;
769
- if (folders.length === 0) {
770
- return undefined;
771
- }
772
- if (folders.length === 1) {
773
- const resource = folders[0].uri;
774
- if ((!schemeFilter || resource.scheme === schemeFilter) && (!authorityFilter || resource.authority === authorityFilter)) {
775
- return resource;
776
- }
777
- return undefined;
778
- }
779
- for (const input of this.getHistory()) {
780
- if (isEditorInput(input)) {
781
- continue;
782
- }
783
- if (schemeFilter && input.resource.scheme !== schemeFilter) {
784
- continue;
785
- }
786
- if (authorityFilter && input.resource.authority !== authorityFilter) {
787
- continue;
788
- }
789
- const resourceWorkspace = this.contextService.getWorkspaceFolder(input.resource);
790
- if (resourceWorkspace) {
791
- return resourceWorkspace.uri;
792
- }
793
- }
794
- for (const folder of folders) {
795
- const resource = folder.uri;
796
- if ((!schemeFilter || resource.scheme === schemeFilter) && (!authorityFilter || resource.authority === authorityFilter)) {
797
- return resource;
798
- }
799
- }
800
- return undefined;
801
- }
802
- getLastActiveFile(filterByScheme, filterByAuthority) {
803
- for (const input of this.getHistory()) {
804
- let resource;
805
- if (isEditorInput(input)) {
806
- resource = EditorResourceAccessor.getOriginalUri(input, { filterByScheme });
807
- }
808
- else {
809
- resource = input.resource;
810
- }
811
- if (resource && resource.scheme === filterByScheme && (!filterByAuthority || resource.authority === filterByAuthority)) {
812
- return resource;
813
- }
814
- }
815
- return undefined;
816
- }
817
- dispose() {
818
- super.dispose();
819
- for (const [, stack] of this.editorGroupScopedNavigationStacks) {
820
- stack.disposable.dispose();
821
- }
822
- for (const [, editors] of this.editorScopedNavigationStacks) {
823
- for (const [, stack] of editors) {
824
- stack.disposable.dispose();
825
- }
826
- }
827
- for (const [, listener] of this.editorHistoryListeners) {
828
- listener.dispose();
829
- }
830
- }
831
- };
832
- HistoryService = HistoryService_1 = ( __decorate([
833
- ( __param(0, IEditorService)),
834
- ( __param(1, IEditorGroupsService)),
835
- ( __param(2, IWorkspaceContextService)),
836
- ( __param(3, IStorageService)),
837
- ( __param(4, IConfigurationService)),
838
- ( __param(5, IFileService)),
839
- ( __param(6, IWorkspacesService)),
840
- ( __param(7, IInstantiationService)),
841
- ( __param(8, IWorkbenchLayoutService)),
842
- ( __param(9, IContextKeyService)),
843
- ( __param(10, ILogService))
844
- ], HistoryService));
845
- ( registerSingleton(IHistoryService, HistoryService, 0 ));
846
- class EditorSelectionState {
847
- constructor(editorIdentifier, selection, reason) {
848
- this.editorIdentifier = editorIdentifier;
849
- this.selection = selection;
850
- this.reason = reason;
851
- }
852
- justifiesNewNavigationEntry(other) {
853
- if (this.editorIdentifier.groupId !== other.editorIdentifier.groupId) {
854
- return true;
855
- }
856
- if (!this.editorIdentifier.editor.matches(other.editorIdentifier.editor)) {
857
- return true;
858
- }
859
- if (!this.selection || !other.selection) {
860
- return true;
861
- }
862
- const result = this.selection.compare(other.selection);
863
- if (result === 2 && ((other.reason === 4 || other.reason === 5) )) {
864
- return true;
865
- }
866
- return result === 3 ;
867
- }
868
- }
869
- let EditorNavigationStacks = class EditorNavigationStacks extends Disposable {
870
- constructor(scope, instantiationService) {
871
- super();
872
- this.scope = scope;
873
- this.instantiationService = instantiationService;
874
- this.selectionsStack = this._register(this.instantiationService.createInstance(EditorNavigationStack, 0 , this.scope));
875
- this.editsStack = this._register(this.instantiationService.createInstance(EditorNavigationStack, 1 , this.scope));
876
- this.navigationsStack = this._register(this.instantiationService.createInstance(EditorNavigationStack, 2 , this.scope));
877
- this.stacks = [
878
- this.selectionsStack,
879
- this.editsStack,
880
- this.navigationsStack
881
- ];
882
- this.onDidChange = Event.any(this.selectionsStack.onDidChange, this.editsStack.onDidChange, this.navigationsStack.onDidChange);
883
- }
884
- canGoForward(filter) {
885
- return this.getStack(filter).canGoForward();
886
- }
887
- goForward(filter) {
888
- return this.getStack(filter).goForward();
889
- }
890
- canGoBack(filter) {
891
- return this.getStack(filter).canGoBack();
892
- }
893
- goBack(filter) {
894
- return this.getStack(filter).goBack();
895
- }
896
- goPrevious(filter) {
897
- return this.getStack(filter).goPrevious();
898
- }
899
- canGoLast(filter) {
900
- return this.getStack(filter).canGoLast();
901
- }
902
- goLast(filter) {
903
- return this.getStack(filter).goLast();
904
- }
905
- getStack(filter = 0 ) {
906
- switch (filter) {
907
- case 0 : return this.selectionsStack;
908
- case 1 : return this.editsStack;
909
- case 2 : return this.navigationsStack;
910
- }
911
- }
912
- handleActiveEditorChange(editorPane) {
913
- this.selectionsStack.notifyNavigation(editorPane);
914
- }
915
- handleActiveEditorSelectionChange(editorPane, event) {
916
- const previous = this.selectionsStack.current;
917
- this.selectionsStack.notifyNavigation(editorPane, event);
918
- if (event.reason === 3 ) {
919
- this.editsStack.notifyNavigation(editorPane, event);
920
- }
921
- else if (((event.reason === 4 || event.reason === 5) ) &&
922
- !this.selectionsStack.isNavigating()) {
923
- if (event.reason === 5 && !this.navigationsStack.isNavigating()) {
924
- if (previous) {
925
- this.navigationsStack.addOrReplace(previous.groupId, previous.editor, previous.selection);
926
- }
927
- }
928
- this.navigationsStack.notifyNavigation(editorPane, event);
929
- }
930
- }
931
- clear() {
932
- for (const stack of this.stacks) {
933
- stack.clear();
934
- }
935
- }
936
- remove(arg1) {
937
- for (const stack of this.stacks) {
938
- stack.remove(arg1);
939
- }
940
- }
941
- move(event) {
942
- for (const stack of this.stacks) {
943
- stack.move(event);
944
- }
945
- }
946
- };
947
- EditorNavigationStacks = ( __decorate([
948
- ( __param(1, IInstantiationService))
949
- ], EditorNavigationStacks));
950
- class NoOpEditorNavigationStacks {
951
- constructor() {
952
- this.onDidChange = Event.None;
953
- }
954
- canGoForward() { return false; }
955
- async goForward() { }
956
- canGoBack() { return false; }
957
- async goBack() { }
958
- async goPrevious() { }
959
- canGoLast() { return false; }
960
- async goLast() { }
961
- handleActiveEditorChange() { }
962
- handleActiveEditorSelectionChange() { }
963
- clear() { }
964
- remove() { }
965
- move() { }
966
- dispose() { }
967
- }
968
- let EditorNavigationStack = class EditorNavigationStack extends Disposable {
969
- static { EditorNavigationStack_1 = this; }
970
- static { this.MAX_STACK_SIZE = 50; }
971
- get current() {
972
- return this.stack[this.index];
973
- }
974
- set current(entry) {
975
- if (entry) {
976
- this.stack[this.index] = entry;
977
- }
978
- }
979
- constructor(filter, scope, instantiationService, editorService, editorGroupService, logService) {
980
- super();
981
- this.filter = filter;
982
- this.scope = scope;
983
- this.instantiationService = instantiationService;
984
- this.editorService = editorService;
985
- this.editorGroupService = editorGroupService;
986
- this.logService = logService;
987
- this._onDidChange = this._register(( new Emitter()));
988
- this.onDidChange = this._onDidChange.event;
989
- this.mapEditorToDisposable = ( new Map());
990
- this.mapGroupToDisposable = ( new Map());
991
- this.editorHelper = this.instantiationService.createInstance(EditorHelper);
992
- this.stack = [];
993
- this.index = -1;
994
- this.previousIndex = -1;
995
- this.navigating = false;
996
- this.currentSelectionState = undefined;
997
- this.registerListeners();
998
- }
999
- registerListeners() {
1000
- this._register(this.onDidChange(() => this.traceStack()));
1001
- this._register(this.logService.onDidChangeLogLevel(() => this.traceStack()));
1002
- }
1003
- traceStack() {
1004
- if (this.logService.getLevel() !== LogLevel.Trace) {
1005
- return;
1006
- }
1007
- const entryLabels = [];
1008
- for (const entry of this.stack) {
1009
- if (typeof entry.selection?.log === 'function') {
1010
- entryLabels.push(`- group: ${entry.groupId}, editor: ${entry.editor.resource?.toString()}, selection: ${entry.selection.log()}`);
1011
- }
1012
- else {
1013
- entryLabels.push(`- group: ${entry.groupId}, editor: ${entry.editor.resource?.toString()}, selection: <none>`);
1014
- }
1015
- }
1016
- if (entryLabels.length === 0) {
1017
- this.trace(`index: ${this.index}, navigating: ${this.isNavigating()}: <empty>`);
1018
- }
1019
- else {
1020
- this.trace(`index: ${this.index}, navigating: ${this.isNavigating()}
1021
- ${entryLabels.join('\n')}
1022
- `);
1023
- }
1024
- }
1025
- trace(msg, editor = null, event) {
1026
- if (this.logService.getLevel() !== LogLevel.Trace) {
1027
- return;
1028
- }
1029
- let filterLabel;
1030
- switch (this.filter) {
1031
- case 0 :
1032
- filterLabel = 'global';
1033
- break;
1034
- case 1 :
1035
- filterLabel = 'edits';
1036
- break;
1037
- case 2 :
1038
- filterLabel = 'navigation';
1039
- break;
1040
- }
1041
- let scopeLabel;
1042
- switch (this.scope) {
1043
- case 0 :
1044
- scopeLabel = 'default';
1045
- break;
1046
- case 1 :
1047
- scopeLabel = 'editorGroup';
1048
- break;
1049
- case 2 :
1050
- scopeLabel = 'editor';
1051
- break;
1052
- }
1053
- if (editor !== null) {
1054
- this.logService.trace(`[History stack ${filterLabel}-${scopeLabel}]: ${msg} (editor: ${editor?.resource?.toString()}, event: ${this.traceEvent(event)})`);
1055
- }
1056
- else {
1057
- this.logService.trace(`[History stack ${filterLabel}-${scopeLabel}]: ${msg}`);
1058
- }
1059
- }
1060
- traceEvent(event) {
1061
- if (!event) {
1062
- return '<none>';
1063
- }
1064
- switch (event.reason) {
1065
- case 3 : return 'edit';
1066
- case 4 : return 'navigation';
1067
- case 5 : return 'jump';
1068
- case 1 : return 'programmatic';
1069
- case 2 : return 'user';
1070
- }
1071
- }
1072
- registerGroupListeners(groupId) {
1073
- if (!( this.mapGroupToDisposable.has(groupId))) {
1074
- const group = this.editorGroupService.getGroup(groupId);
1075
- if (group) {
1076
- this.mapGroupToDisposable.set(groupId, group.onWillMoveEditor(e => this.onWillMoveEditor(e)));
1077
- }
1078
- }
1079
- }
1080
- onWillMoveEditor(e) {
1081
- this.trace('onWillMoveEditor()', e.editor);
1082
- if (this.scope === 1 ) {
1083
- return;
1084
- }
1085
- for (const entry of this.stack) {
1086
- if (entry.groupId !== e.groupId) {
1087
- continue;
1088
- }
1089
- if (!this.editorHelper.matchesEditor(e.editor, entry.editor)) {
1090
- continue;
1091
- }
1092
- entry.groupId = e.target;
1093
- }
1094
- }
1095
- notifyNavigation(editorPane, event) {
1096
- this.trace('notifyNavigation()', editorPane?.input, event);
1097
- const isSelectionAwareEditorPane = isEditorPaneWithSelection(editorPane);
1098
- const hasValidEditor = editorPane?.input && !editorPane.input.isDisposed();
1099
- if (this.navigating) {
1100
- this.trace(`notifyNavigation() ignoring (navigating)`, editorPane?.input, event);
1101
- if (isSelectionAwareEditorPane && hasValidEditor) {
1102
- this.trace('notifyNavigation() updating current selection state', editorPane?.input, event);
1103
- this.currentSelectionState = ( new EditorSelectionState(
1104
- { groupId: editorPane.group.id, editor: editorPane.input },
1105
- editorPane.getSelection(),
1106
- event?.reason
1107
- ));
1108
- }
1109
- else {
1110
- this.trace('notifyNavigation() dropping current selection state', editorPane?.input, event);
1111
- this.currentSelectionState = undefined;
1112
- }
1113
- }
1114
- else {
1115
- this.trace(`notifyNavigation() not ignoring`, editorPane?.input, event);
1116
- if (isSelectionAwareEditorPane && hasValidEditor) {
1117
- this.onSelectionAwareEditorNavigation(editorPane.group.id, editorPane.input, editorPane.getSelection(), event);
1118
- }
1119
- else {
1120
- this.currentSelectionState = undefined;
1121
- if (hasValidEditor) {
1122
- this.onNonSelectionAwareEditorNavigation(editorPane.group.id, editorPane.input);
1123
- }
1124
- }
1125
- }
1126
- }
1127
- onSelectionAwareEditorNavigation(groupId, editor, selection, event) {
1128
- if (this.current?.groupId === groupId && !selection && this.editorHelper.matchesEditor(this.current.editor, editor)) {
1129
- return;
1130
- }
1131
- this.trace('onSelectionAwareEditorNavigation()', editor, event);
1132
- const stateCandidate = ( new EditorSelectionState({ groupId, editor }, selection, event?.reason));
1133
- if (!this.currentSelectionState || this.currentSelectionState.justifiesNewNavigationEntry(stateCandidate)) {
1134
- this.doAdd(groupId, editor, stateCandidate.selection);
1135
- }
1136
- else {
1137
- this.doReplace(groupId, editor, stateCandidate.selection);
1138
- }
1139
- this.currentSelectionState = stateCandidate;
1140
- }
1141
- onNonSelectionAwareEditorNavigation(groupId, editor) {
1142
- if (this.current?.groupId === groupId && this.editorHelper.matchesEditor(this.current.editor, editor)) {
1143
- return;
1144
- }
1145
- this.trace('onNonSelectionAwareEditorNavigation()', editor);
1146
- this.doAdd(groupId, editor);
1147
- }
1148
- doAdd(groupId, editor, selection) {
1149
- if (!this.navigating) {
1150
- this.addOrReplace(groupId, editor, selection);
1151
- }
1152
- }
1153
- doReplace(groupId, editor, selection) {
1154
- if (!this.navigating) {
1155
- this.addOrReplace(groupId, editor, selection, true );
1156
- }
1157
- }
1158
- addOrReplace(groupId, editorCandidate, selection, forceReplace) {
1159
- this.registerGroupListeners(groupId);
1160
- let replace = false;
1161
- if (this.current) {
1162
- if (forceReplace) {
1163
- replace = true;
1164
- }
1165
- else if (this.shouldReplaceStackEntry(this.current, { groupId, editor: editorCandidate, selection })) {
1166
- replace = true;
1167
- }
1168
- }
1169
- const editor = this.editorHelper.preferResourceEditorInput(editorCandidate);
1170
- if (!editor) {
1171
- return;
1172
- }
1173
- if (replace) {
1174
- this.trace('replace()', editor);
1175
- }
1176
- else {
1177
- this.trace('add()', editor);
1178
- }
1179
- const newStackEntry = { groupId, editor, selection };
1180
- const removedEntries = [];
1181
- if (replace) {
1182
- if (this.current) {
1183
- removedEntries.push(this.current);
1184
- }
1185
- this.current = newStackEntry;
1186
- }
1187
- else {
1188
- if (this.stack.length > this.index + 1) {
1189
- for (let i = this.index + 1; i < this.stack.length; i++) {
1190
- removedEntries.push(this.stack[i]);
1191
- }
1192
- this.stack = this.stack.slice(0, this.index + 1);
1193
- }
1194
- this.stack.splice(this.index + 1, 0, newStackEntry);
1195
- if (this.stack.length > EditorNavigationStack_1.MAX_STACK_SIZE) {
1196
- removedEntries.push(this.stack.shift());
1197
- if (this.previousIndex >= 0) {
1198
- this.previousIndex--;
1199
- }
1200
- }
1201
- else {
1202
- this.setIndex(this.index + 1, true );
1203
- }
1204
- }
1205
- for (const removedEntry of removedEntries) {
1206
- this.editorHelper.clearOnEditorDispose(removedEntry.editor, this.mapEditorToDisposable);
1207
- }
1208
- if (isEditorInput(editor)) {
1209
- this.editorHelper.onEditorDispose(editor, () => this.remove(editor), this.mapEditorToDisposable);
1210
- }
1211
- this._onDidChange.fire();
1212
- }
1213
- shouldReplaceStackEntry(entry, candidate) {
1214
- if (entry.groupId !== candidate.groupId) {
1215
- return false;
1216
- }
1217
- if (!this.editorHelper.matchesEditor(entry.editor, candidate.editor)) {
1218
- return false;
1219
- }
1220
- if (!entry.selection) {
1221
- return true;
1222
- }
1223
- if (!candidate.selection) {
1224
- return false;
1225
- }
1226
- return entry.selection.compare(candidate.selection) === 1 ;
1227
- }
1228
- move(event) {
1229
- if (event.isOperation(2 )) {
1230
- for (const entry of this.stack) {
1231
- if (this.editorHelper.matchesEditor(event, entry.editor)) {
1232
- entry.editor = { resource: event.target.resource };
1233
- }
1234
- }
1235
- }
1236
- }
1237
- remove(arg1) {
1238
- const previousStackSize = this.stack.length;
1239
- this.stack = this.stack.filter(entry => {
1240
- const matches = typeof arg1 === 'number' ? entry.groupId === arg1 : this.editorHelper.matchesEditor(arg1, entry.editor);
1241
- if (matches) {
1242
- this.editorHelper.clearOnEditorDispose(entry.editor, this.mapEditorToDisposable);
1243
- }
1244
- return !matches;
1245
- });
1246
- if (previousStackSize === this.stack.length) {
1247
- return;
1248
- }
1249
- this.flatten();
1250
- this.index = this.stack.length - 1;
1251
- this.previousIndex = -1;
1252
- if (typeof arg1 === 'number') {
1253
- this.mapGroupToDisposable.get(arg1)?.dispose();
1254
- this.mapGroupToDisposable.delete(arg1);
1255
- }
1256
- this._onDidChange.fire();
1257
- }
1258
- flatten() {
1259
- const flattenedStack = [];
1260
- let previousEntry = undefined;
1261
- for (const entry of this.stack) {
1262
- if (previousEntry && this.shouldReplaceStackEntry(entry, previousEntry)) {
1263
- continue;
1264
- }
1265
- previousEntry = entry;
1266
- flattenedStack.push(entry);
1267
- }
1268
- this.stack = flattenedStack;
1269
- }
1270
- clear() {
1271
- this.index = -1;
1272
- this.previousIndex = -1;
1273
- this.stack.splice(0);
1274
- for (const [, disposable] of this.mapEditorToDisposable) {
1275
- dispose(disposable);
1276
- }
1277
- this.mapEditorToDisposable.clear();
1278
- for (const [, disposable] of this.mapGroupToDisposable) {
1279
- dispose(disposable);
1280
- }
1281
- this.mapGroupToDisposable.clear();
1282
- }
1283
- dispose() {
1284
- super.dispose();
1285
- this.clear();
1286
- }
1287
- canGoForward() {
1288
- return this.stack.length > this.index + 1;
1289
- }
1290
- async goForward() {
1291
- const navigated = await this.maybeGoCurrent();
1292
- if (navigated) {
1293
- return;
1294
- }
1295
- if (!this.canGoForward()) {
1296
- return;
1297
- }
1298
- this.setIndex(this.index + 1);
1299
- return this.navigate();
1300
- }
1301
- canGoBack() {
1302
- return this.index > 0;
1303
- }
1304
- async goBack() {
1305
- const navigated = await this.maybeGoCurrent();
1306
- if (navigated) {
1307
- return;
1308
- }
1309
- if (!this.canGoBack()) {
1310
- return;
1311
- }
1312
- this.setIndex(this.index - 1);
1313
- return this.navigate();
1314
- }
1315
- async goPrevious() {
1316
- const navigated = await this.maybeGoCurrent();
1317
- if (navigated) {
1318
- return;
1319
- }
1320
- if (this.previousIndex === -1) {
1321
- return this.goBack();
1322
- }
1323
- this.setIndex(this.previousIndex);
1324
- return this.navigate();
1325
- }
1326
- canGoLast() {
1327
- return this.stack.length > 0;
1328
- }
1329
- async goLast() {
1330
- if (!this.canGoLast()) {
1331
- return;
1332
- }
1333
- this.setIndex(this.stack.length - 1);
1334
- return this.navigate();
1335
- }
1336
- async maybeGoCurrent() {
1337
- if (this.filter === 0 ) {
1338
- return false;
1339
- }
1340
- if (this.isCurrentSelectionActive()) {
1341
- return false;
1342
- }
1343
- await this.navigate();
1344
- return true;
1345
- }
1346
- isCurrentSelectionActive() {
1347
- if (!this.current?.selection) {
1348
- return false;
1349
- }
1350
- const pane = this.editorService.activeEditorPane;
1351
- if (!isEditorPaneWithSelection(pane)) {
1352
- return false;
1353
- }
1354
- if (pane.group.id !== this.current.groupId) {
1355
- return false;
1356
- }
1357
- if (!pane.input || !this.editorHelper.matchesEditor(pane.input, this.current.editor)) {
1358
- return false;
1359
- }
1360
- const paneSelection = pane.getSelection();
1361
- if (!paneSelection) {
1362
- return false;
1363
- }
1364
- return paneSelection.compare(this.current.selection) === 1 ;
1365
- }
1366
- setIndex(newIndex, skipEvent) {
1367
- this.previousIndex = this.index;
1368
- this.index = newIndex;
1369
- if (!skipEvent) {
1370
- this._onDidChange.fire();
1371
- }
1372
- }
1373
- async navigate() {
1374
- this.navigating = true;
1375
- try {
1376
- if (this.current) {
1377
- await this.doNavigate(this.current);
1378
- }
1379
- }
1380
- finally {
1381
- this.navigating = false;
1382
- }
1383
- }
1384
- doNavigate(location) {
1385
- let options = Object.create(null);
1386
- if (location.selection) {
1387
- options = location.selection.restore(options);
1388
- }
1389
- if (isEditorInput(location.editor)) {
1390
- return this.editorService.openEditor(location.editor, options, location.groupId);
1391
- }
1392
- return this.editorService.openEditor({
1393
- ...location.editor,
1394
- options: {
1395
- ...location.editor.options,
1396
- ...options
1397
- }
1398
- }, location.groupId);
1399
- }
1400
- isNavigating() {
1401
- return this.navigating;
1402
- }
1403
- };
1404
- EditorNavigationStack = EditorNavigationStack_1 = ( __decorate([
1405
- ( __param(2, IInstantiationService)),
1406
- ( __param(3, IEditorService)),
1407
- ( __param(4, IEditorGroupsService)),
1408
- ( __param(5, ILogService))
1409
- ], EditorNavigationStack));
1410
- let EditorHelper = class EditorHelper {
1411
- constructor(uriIdentityService, lifecycleService, fileService, pathService) {
1412
- this.uriIdentityService = uriIdentityService;
1413
- this.lifecycleService = lifecycleService;
1414
- this.fileService = fileService;
1415
- this.pathService = pathService;
1416
- }
1417
- preferResourceEditorInput(editor) {
1418
- const resource = EditorResourceAccessor.getOriginalUri(editor);
1419
- const hasValidResourceEditorInputScheme = resource?.scheme === Schemas.file ||
1420
- resource?.scheme === Schemas.vscodeRemote ||
1421
- resource?.scheme === Schemas.vscodeUserData ||
1422
- resource?.scheme === this.pathService.defaultUriScheme;
1423
- if (hasValidResourceEditorInputScheme) {
1424
- if (isEditorInput(editor)) {
1425
- const untypedInput = editor.toUntyped();
1426
- if (isResourceEditorInput(untypedInput)) {
1427
- return untypedInput;
1428
- }
1429
- }
1430
- return editor;
1431
- }
1432
- else {
1433
- return isEditorInput(editor) ? editor : undefined;
1434
- }
1435
- }
1436
- matchesEditor(arg1, inputB) {
1437
- if (arg1 instanceof FileChangesEvent || arg1 instanceof FileOperationEvent) {
1438
- if (isEditorInput(inputB)) {
1439
- return false;
1440
- }
1441
- if (arg1 instanceof FileChangesEvent) {
1442
- return arg1.contains(inputB.resource, 2 );
1443
- }
1444
- return this.matchesFile(inputB.resource, arg1);
1445
- }
1446
- if (isEditorInput(arg1)) {
1447
- if (isEditorInput(inputB)) {
1448
- return arg1.matches(inputB);
1449
- }
1450
- return this.matchesFile(inputB.resource, arg1);
1451
- }
1452
- if (isEditorInput(inputB)) {
1453
- return this.matchesFile(arg1.resource, inputB);
1454
- }
1455
- return arg1 && inputB && this.uriIdentityService.extUri.isEqual(arg1.resource, inputB.resource);
1456
- }
1457
- matchesFile(resource, arg2) {
1458
- if (arg2 instanceof FileChangesEvent) {
1459
- return arg2.contains(resource, 2 );
1460
- }
1461
- if (arg2 instanceof FileOperationEvent) {
1462
- return this.uriIdentityService.extUri.isEqualOrParent(resource, arg2.resource);
1463
- }
1464
- if (isEditorInput(arg2)) {
1465
- const inputResource = arg2.resource;
1466
- if (!inputResource) {
1467
- return false;
1468
- }
1469
- if (this.lifecycleService.phase >= 3 && !this.fileService.hasProvider(inputResource)) {
1470
- return false;
1471
- }
1472
- return this.uriIdentityService.extUri.isEqual(inputResource, resource);
1473
- }
1474
- return this.uriIdentityService.extUri.isEqual(arg2?.resource, resource);
1475
- }
1476
- matchesEditorIdentifier(identifier, editorPane) {
1477
- if (!editorPane?.group) {
1478
- return false;
1479
- }
1480
- if (identifier.groupId !== editorPane.group.id) {
1481
- return false;
1482
- }
1483
- return editorPane.input ? identifier.editor.matches(editorPane.input) : false;
1484
- }
1485
- onEditorDispose(editor, listener, mapEditorToDispose) {
1486
- const toDispose = Event.once(editor.onWillDispose)(() => listener());
1487
- let disposables = mapEditorToDispose.get(editor);
1488
- if (!disposables) {
1489
- disposables = ( new DisposableStore());
1490
- mapEditorToDispose.set(editor, disposables);
1491
- }
1492
- disposables.add(toDispose);
1493
- }
1494
- clearOnEditorDispose(editor, mapEditorToDispose) {
1495
- if (!isEditorInput(editor)) {
1496
- return;
1497
- }
1498
- const disposables = mapEditorToDispose.get(editor);
1499
- if (disposables) {
1500
- dispose(disposables);
1501
- mapEditorToDispose.delete(editor);
1502
- }
1503
- }
1504
- };
1505
- EditorHelper = ( __decorate([
1506
- ( __param(0, IUriIdentityService)),
1507
- ( __param(1, ILifecycleService)),
1508
- ( __param(2, IFileService)),
1509
- ( __param(3, IPathService))
1510
- ], EditorHelper));
1511
- export { EditorNavigationStack, HistoryService };