@codingame/monaco-vscode-api 1.82.4 → 1.82.5-next.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 (567) hide show
  1. package/extensions.d.ts +3 -3
  2. package/external/xterm/typings/xterm.d.ts +1729 -0
  3. package/external/xterm-addon-canvas/typings/xterm-addon-canvas.d.ts +38 -0
  4. package/external/xterm-addon-image/typings/xterm-addon-image.d.ts +115 -0
  5. package/external/xterm-addon-search/typings/xterm-addon-search.d.ts +141 -0
  6. package/external/xterm-addon-serialize/typings/xterm-addon-serialize.d.ts +83 -0
  7. package/external/xterm-addon-unicode11/typings/xterm-addon-unicode11.d.ts +9 -0
  8. package/external/xterm-addon-webgl/typings/xterm-addon-webgl.d.ts +43 -0
  9. package/external/xterm-headless/typings/xterm-headless.d.ts +49 -0
  10. package/missing-services.js +0 -1
  11. package/monaco-editor-treemending.patch +1026 -1026
  12. package/package.json +21 -1
  13. package/service-override/bulkEdit.js +0 -1
  14. package/service-override/environment.js +0 -1
  15. package/service-override/extensions.js +1 -1
  16. package/service-override/files.js +0 -1
  17. package/service-override/keybindings.js +1 -6
  18. package/service-override/layout.js +0 -1
  19. package/service-override/output.js +0 -1
  20. package/service-override/quickaccess.js +0 -1
  21. package/services.js +10 -0
  22. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.d.ts +1 -1
  23. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +1 -1
  24. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +7 -7
  25. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +1 -1
  26. package/README.md +0 -392
  27. package/override/vs/workbench/contrib/notebook/browser/notebookEditor.js +0 -2
  28. package/service-override/accessibility.d.ts +0 -5
  29. package/service-override/accessibility.js +0 -11
  30. package/service-override/audioCue.d.ts +0 -5
  31. package/service-override/audioCue.js +0 -13
  32. package/service-override/bulkEdit.d.ts +0 -5
  33. package/service-override/configuration.d.ts +0 -17
  34. package/service-override/configuration.js +0 -117
  35. package/service-override/debug.d.ts +0 -5
  36. package/service-override/debug.js +0 -23
  37. package/service-override/dialogs.d.ts +0 -5
  38. package/service-override/dialogs.js +0 -57
  39. package/service-override/editor.d.ts +0 -10
  40. package/service-override/editor.js +0 -37
  41. package/service-override/environment.d.ts +0 -6
  42. package/service-override/extensions.d.ts +0 -50
  43. package/service-override/files.d.ts +0 -103
  44. package/service-override/keybindings.d.ts +0 -10
  45. package/service-override/languageDetectionWorker.d.ts +0 -5
  46. package/service-override/languageDetectionWorker.js +0 -15
  47. package/service-override/languages.d.ts +0 -11
  48. package/service-override/languages.js +0 -27
  49. package/service-override/layout.d.ts +0 -71
  50. package/service-override/lifecycle.d.ts +0 -5
  51. package/service-override/lifecycle.js +0 -10
  52. package/service-override/markers.d.ts +0 -5
  53. package/service-override/markers.js +0 -6
  54. package/service-override/model.d.ts +0 -5
  55. package/service-override/model.js +0 -10
  56. package/service-override/notifications.d.ts +0 -5
  57. package/service-override/notifications.js +0 -34
  58. package/service-override/output.d.ts +0 -6
  59. package/service-override/preferences.d.ts +0 -5
  60. package/service-override/preferences.js +0 -16
  61. package/service-override/quickaccess.d.ts +0 -10
  62. package/service-override/remoteAgent.d.ts +0 -6
  63. package/service-override/remoteAgent.js +0 -42
  64. package/service-override/search.d.ts +0 -5
  65. package/service-override/search.js +0 -19
  66. package/service-override/snippets.d.ts +0 -9
  67. package/service-override/snippets.js +0 -21
  68. package/service-override/storage.d.ts +0 -40
  69. package/service-override/storage.js +0 -116
  70. package/service-override/terminal.d.ts +0 -69
  71. package/service-override/terminal.js +0 -117
  72. package/service-override/textmate.d.ts +0 -6
  73. package/service-override/textmate.js +0 -41
  74. package/service-override/theme.d.ts +0 -7
  75. package/service-override/theme.js +0 -26
  76. package/service-override/viewBanner.d.ts +0 -6
  77. package/service-override/viewBanner.js +0 -10
  78. package/service-override/viewStatusBar.d.ts +0 -6
  79. package/service-override/viewStatusBar.js +0 -10
  80. package/service-override/viewTitleBar.d.ts +0 -6
  81. package/service-override/viewTitleBar.js +0 -10
  82. package/service-override/views.d.ts +0 -74
  83. package/service-override/views.js +0 -511
  84. package/service-override/workspaceTrust.d.ts +0 -5
  85. package/service-override/workspaceTrust.js +0 -13
  86. package/vscode/src/vs/base/browser/broadcast.js +0 -52
  87. package/vscode/src/vs/base/browser/indexedDB.d.ts +0 -17
  88. package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +0 -178
  89. package/vscode/src/vs/base/browser/ui/grid/grid.js +0 -465
  90. package/vscode/src/vs/base/browser/ui/grid/gridview.css.js +0 -4
  91. package/vscode/src/vs/base/browser/ui/grid/gridview.js +0 -977
  92. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +0 -60
  93. package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +0 -14
  94. package/vscode/src/vs/base/common/codicons.d.ts +0 -556
  95. package/vscode/src/vs/base/common/processes.js +0 -24
  96. package/vscode/src/vs/editor/common/services/languageFeaturesService.js +0 -42
  97. package/vscode/src/vs/editor/common/services/modelUndoRedoParticipant.js +0 -56
  98. package/vscode/src/vs/editor/common/services/textResourceConfigurationService.js +0 -116
  99. package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +0 -67
  100. package/vscode/src/vs/platform/audioCues/browser/media/all.mp3.js +0 -20
  101. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +0 -10
  102. package/vscode/src/vs/platform/download/common/downloadIpc.js +0 -16
  103. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.d.ts +0 -43
  104. package/vscode/src/vs/platform/files/common/diskFileSystemProviderClient.js +0 -136
  105. package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.d.ts +0 -50
  106. package/vscode/src/vs/platform/log/common/logIpc.js +0 -24
  107. package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +0 -94
  108. package/vscode/src/vs/platform/remote/browser/browserSocketFactory.js +0 -193
  109. package/vscode/src/vs/platform/remote/browser/remoteAuthorityResolverService.js +0 -107
  110. package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +0 -41
  111. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +0 -566
  112. package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +0 -29
  113. package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +0 -22
  114. package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +0 -46
  115. package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +0 -94
  116. package/vscode/src/vs/platform/terminal/common/environmentVariable.js +0 -7
  117. package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.js +0 -196
  118. package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +0 -37
  119. package/vscode/src/vs/platform/terminal/common/terminalLogService.js +0 -42
  120. package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +0 -467
  121. package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +0 -107
  122. package/vscode/src/vs/platform/terminal/common/terminalRecorder.js +0 -66
  123. package/vscode/src/vs/platform/terminal/common/terminalStrings.js +0 -16
  124. package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +0 -319
  125. package/vscode/src/vs/platform/userDataSync/common/settingsMerge.js +0 -40
  126. package/vscode/src/vs/platform/webview/common/mimeTypes.js +0 -22
  127. package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +0 -62
  128. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +0 -699
  129. package/vscode/src/vs/workbench/api/common/configurationExtensionPoint.js +0 -450
  130. package/vscode/src/vs/workbench/api/common/extHost.api.impl.d.ts +0 -14
  131. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +0 -236
  132. package/vscode/src/vs/workbench/api/common/extHostConfiguration.d.ts +0 -43
  133. package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.d.ts +0 -33
  134. package/vscode/src/vs/workbench/api/common/extHostExtensionService.d.ts +0 -138
  135. package/vscode/src/vs/workbench/api/common/extHostFileSystemInfo.d.ts +0 -21
  136. package/vscode/src/vs/workbench/api/common/extHostInitDataService.d.ts +0 -9
  137. package/vscode/src/vs/workbench/api/common/extHostLocalizationService.d.ts +0 -29
  138. package/vscode/src/vs/workbench/api/common/extHostManagedSockets.d.ts +0 -11
  139. package/vscode/src/vs/workbench/api/common/extHostRpcService.d.ts +0 -9
  140. package/vscode/src/vs/workbench/api/common/extHostStoragePaths.d.ts +0 -14
  141. package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +0 -53
  142. package/vscode/src/vs/workbench/api/common/extHostTunnelService.d.ts +0 -19
  143. package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +0 -12
  144. package/vscode/src/vs/workbench/api/common/extHostUriTransformerService.d.ts +0 -9
  145. package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +0 -91
  146. package/vscode/src/vs/workbench/api/worker/extHostExtensionService.d.ts +0 -21
  147. package/vscode/src/vs/workbench/browser/actions/listCommands.js +0 -605
  148. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarActions.js +0 -597
  149. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +0 -116
  150. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +0 -783
  151. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +0 -4
  152. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css.js +0 -4
  153. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +0 -88
  154. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +0 -4
  155. package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.js +0 -228
  156. package/vscode/src/vs/workbench/browser/parts/banner/media/bannerpart.css.js +0 -4
  157. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +0 -691
  158. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.d.ts +0 -7
  159. package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +0 -84
  160. package/vscode/src/vs/workbench/browser/parts/compositePart.js +0 -318
  161. package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.web.contribution.js +0 -69
  162. package/vscode/src/vs/workbench/browser/parts/dialogs/dialogHandler.js +0 -127
  163. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +0 -692
  164. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +0 -141
  165. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +0 -414
  166. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +0 -507
  167. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +0 -1233
  168. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +0 -133
  169. package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +0 -306
  170. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +0 -850
  171. package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css.js +0 -4
  172. package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +0 -4
  173. package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +0 -4
  174. package/vscode/src/vs/workbench/browser/parts/editor/media/notabstitlecontrol.css.js +0 -4
  175. package/vscode/src/vs/workbench/browser/parts/editor/media/tabstitlecontrol.css.js +0 -4
  176. package/vscode/src/vs/workbench/browser/parts/editor/media/titlecontrol.css.js +0 -4
  177. package/vscode/src/vs/workbench/browser/parts/editor/noTabsTitleControl.js +0 -247
  178. package/vscode/src/vs/workbench/browser/parts/editor/tabsTitleControl.js +0 -1569
  179. package/vscode/src/vs/workbench/browser/parts/editor/titleControl.js +0 -292
  180. package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +0 -4
  181. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsActions.css.js +0 -4
  182. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsCenter.css.js +0 -4
  183. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsList.css.js +0 -4
  184. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsToasts.css.js +0 -4
  185. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +0 -124
  186. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +0 -58
  187. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +0 -227
  188. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +0 -212
  189. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +0 -419
  190. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +0 -398
  191. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +0 -78
  192. package/vscode/src/vs/workbench/browser/parts/panel/media/basepanelpart.css.js +0 -4
  193. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +0 -134
  194. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +0 -756
  195. package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +0 -4
  196. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +0 -59
  197. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +0 -217
  198. package/vscode/src/vs/workbench/browser/parts/statusbar/media/statusbarpart.css.js +0 -4
  199. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarActions.js +0 -109
  200. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarItem.js +0 -234
  201. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarModel.js +0 -249
  202. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.js +0 -439
  203. package/vscode/src/vs/workbench/browser/parts/titlebar/commandCenterControl.js +0 -134
  204. package/vscode/src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css.js +0 -4
  205. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.d.ts +0 -115
  206. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.d.ts +0 -77
  207. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.js +0 -365
  208. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +0 -216
  209. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +0 -104
  210. package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +0 -4
  211. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +0 -1589
  212. package/vscode/src/vs/workbench/common/activity.js +0 -3
  213. package/vscode/src/vs/workbench/common/dialogs.js +0 -31
  214. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibility.contribution.js +0 -13
  215. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +0 -312
  216. package/vscode/src/vs/workbench/contrib/accessibility/browser/unfocusedViewDimmingContribution.js +0 -63
  217. package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCueDebuggerContribution.js +0 -45
  218. package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCueLineFeatureContribution.js +0 -170
  219. package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCues.contribution.js +0 -181
  220. package/vscode/src/vs/workbench/contrib/audioCues/browser/commands.js +0 -49
  221. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +0 -262
  222. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +0 -339
  223. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +0 -119
  224. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +0 -4
  225. package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.css.js +0 -4
  226. package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.js +0 -35
  227. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css.js +0 -4
  228. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +0 -345
  229. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline.js +0 -362
  230. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.css.js +0 -4
  231. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +0 -255
  232. package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css.js +0 -4
  233. package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +0 -249
  234. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +0 -14
  235. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +0 -137
  236. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +0 -212
  237. package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +0 -4
  238. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +0 -72
  239. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +0 -61
  240. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +0 -106
  241. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +0 -198
  242. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +0 -783
  243. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +0 -397
  244. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +0 -1296
  245. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +0 -176
  246. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +0 -958
  247. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +0 -496
  248. package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +0 -345
  249. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +0 -297
  250. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +0 -398
  251. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +0 -825
  252. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +0 -619
  253. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +0 -58
  254. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +0 -525
  255. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +0 -679
  256. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +0 -354
  257. package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +0 -204
  258. package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +0 -80
  259. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +0 -141
  260. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +0 -1172
  261. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +0 -1142
  262. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +0 -104
  263. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +0 -66
  264. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +0 -273
  265. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +0 -312
  266. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +0 -166
  267. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +0 -661
  268. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +0 -103
  269. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +0 -229
  270. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +0 -629
  271. package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +0 -4
  272. package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackEditorContribution.css.js +0 -4
  273. package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +0 -4
  274. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +0 -4
  275. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +0 -4
  276. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +0 -4
  277. package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +0 -4
  278. package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +0 -4
  279. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +0 -693
  280. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +0 -951
  281. package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +0 -46
  282. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +0 -334
  283. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +0 -96
  284. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +0 -573
  285. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +0 -413
  286. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +0 -100
  287. package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +0 -19
  288. package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +0 -15
  289. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +0 -98
  290. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +0 -57
  291. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +0 -1480
  292. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +0 -344
  293. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +0 -121
  294. package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +0 -173
  295. package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +0 -34
  296. package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +0 -115
  297. package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +0 -258
  298. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +0 -25
  299. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +0 -81
  300. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +0 -281
  301. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +0 -2414
  302. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +0 -4
  303. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +0 -16
  304. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +0 -5
  305. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +0 -73
  306. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +0 -36
  307. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +0 -325
  308. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +0 -230
  309. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +0 -97
  310. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +0 -352
  311. package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +0 -426
  312. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +0 -508
  313. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +0 -615
  314. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution2.js +0 -94
  315. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +0 -144
  316. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +0 -53
  317. package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +0 -134
  318. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +0 -353
  319. package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +0 -4
  320. package/vscode/src/vs/workbench/contrib/markers/browser/markers.contribution.js +0 -586
  321. package/vscode/src/vs/workbench/contrib/markers/browser/markersFilterOptions.js +0 -75
  322. package/vscode/src/vs/workbench/contrib/markers/browser/markersModel.js +0 -200
  323. package/vscode/src/vs/workbench/contrib/markers/browser/markersTable.js +0 -455
  324. package/vscode/src/vs/workbench/contrib/markers/browser/markersTreeViewer.js +0 -670
  325. package/vscode/src/vs/workbench/contrib/markers/browser/markersView.js +0 -873
  326. package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.css.js +0 -4
  327. package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.js +0 -132
  328. package/vscode/src/vs/workbench/contrib/markers/browser/media/markers.css.js +0 -4
  329. package/vscode/src/vs/workbench/contrib/markers/browser/messages.js +0 -170
  330. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +0 -70
  331. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css.js +0 -4
  332. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +0 -158
  333. package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +0 -3
  334. package/vscode/src/vs/workbench/contrib/outline/browser/outline.contribution.js +0 -261
  335. package/vscode/src/vs/workbench/contrib/outline/browser/outline.js +0 -10
  336. package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.css.js +0 -4
  337. package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.js +0 -290
  338. package/vscode/src/vs/workbench/contrib/outline/browser/outlineViewState.js +0 -66
  339. package/vscode/src/vs/workbench/contrib/output/common/outputLinkComputer.js +0 -129
  340. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +0 -272
  341. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditor.js +0 -1102
  342. package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindings.css.js +0 -4
  343. package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindingsEditor.css.js +0 -4
  344. package/vscode/src/vs/workbench/contrib/preferences/browser/media/preferences.css.js +0 -4
  345. package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css.js +0 -4
  346. package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsWidgets.css.js +0 -4
  347. package/vscode/src/vs/workbench/contrib/preferences/browser/preferences.contribution.js +0 -1213
  348. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesActions.js +0 -94
  349. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesEditor.js +0 -47
  350. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +0 -37
  351. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesRenderers.js +0 -747
  352. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesSearch.js +0 -349
  353. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +0 -468
  354. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditor2.js +0 -1477
  355. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditorSettingIndicators.js +0 -504
  356. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +0 -296
  357. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsSearchMenu.js +0 -79
  358. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTree.js +0 -2041
  359. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +0 -771
  360. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsWidgets.js +0 -1004
  361. package/vscode/src/vs/workbench/contrib/preferences/browser/tocTree.js +0 -196
  362. package/vscode/src/vs/workbench/contrib/preferences/common/preferencesContribution.js +0 -151
  363. package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +0 -67
  364. package/vscode/src/vs/workbench/contrib/remote/browser/media/tunnelView.css.js +0 -4
  365. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +0 -207
  366. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +0 -27
  367. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +0 -1666
  368. package/vscode/src/vs/workbench/contrib/remote/common/remote.contribution.js +0 -481
  369. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +0 -759
  370. package/vscode/src/vs/workbench/contrib/search/browser/media/anythingQuickAccess.css.js +0 -4
  371. package/vscode/src/vs/workbench/contrib/search/browser/media/searchview.css.js +0 -4
  372. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearchContributions.js +0 -7
  373. package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +0 -220
  374. package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +0 -232
  375. package/vscode/src/vs/workbench/contrib/search/browser/replaceContributions.js +0 -7
  376. package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +0 -224
  377. package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +0 -513
  378. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +0 -46
  379. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +0 -204
  380. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +0 -354
  381. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +0 -459
  382. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +0 -365
  383. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +0 -35
  384. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +0 -23
  385. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +0 -308
  386. package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +0 -41
  387. package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +0 -39
  388. package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +0 -58
  389. package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +0 -383
  390. package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +0 -1916
  391. package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +0 -636
  392. package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +0 -220
  393. package/vscode/src/vs/workbench/contrib/search/common/cacheState.js +0 -85
  394. package/vscode/src/vs/workbench/contrib/search/common/constants.js +0 -66
  395. package/vscode/src/vs/workbench/contrib/searchEditor/browser/constants.js +0 -11
  396. package/vscode/src/vs/workbench/contrib/searchEditor/browser/media/searchEditor.css.js +0 -4
  397. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +0 -477
  398. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +0 -700
  399. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +0 -187
  400. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +0 -298
  401. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +0 -135
  402. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +0 -268
  403. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +0 -20
  404. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/configureSnippets.js +0 -264
  405. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +0 -87
  406. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/insertSnippet.js +0 -126
  407. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/surroundWithSnippet.js +0 -56
  408. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCodeActionProvider.js +0 -136
  409. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetPicker.js +0 -83
  410. package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.contribution.js +0 -113
  411. package/vscode/src/vs/workbench/contrib/terminal/browser/baseTerminalBackend.js +0 -101
  412. package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +0 -54
  413. package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +0 -119
  414. package/vscode/src/vs/workbench/contrib/terminal/browser/media/scrollbar.css.js +0 -4
  415. package/vscode/src/vs/workbench/contrib/terminal/browser/media/terminal.css.js +0 -4
  416. package/vscode/src/vs/workbench/contrib/terminal/browser/media/widgets.css.js +0 -4
  417. package/vscode/src/vs/workbench/contrib/terminal/browser/media/xterm.css.js +0 -4
  418. package/vscode/src/vs/workbench/contrib/terminal/browser/remotePty.js +0 -175
  419. package/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.js +0 -311
  420. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.contribution.js +0 -240
  421. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +0 -1964
  422. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalCommands.js +0 -22
  423. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.js +0 -215
  424. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +0 -16
  425. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditor.js +0 -186
  426. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorService.js +0 -239
  427. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEvents.js +0 -47
  428. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +0 -25
  429. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroup.js +0 -482
  430. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroupService.js +0 -367
  431. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +0 -37
  432. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +0 -2101
  433. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstanceService.js +0 -82
  434. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMainContribution.js +0 -82
  435. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +0 -762
  436. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +0 -617
  437. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileQuickpick.js +0 -278
  438. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileResolverService.js +0 -316
  439. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileService.js +0 -218
  440. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +0 -146
  441. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +0 -269
  442. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalService.js +0 -1134
  443. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.js +0 -108
  444. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabbedView.js +0 -420
  445. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabsList.js +0 -676
  446. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTooltip.js +0 -72
  447. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalUri.js +0 -39
  448. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalView.js +0 -598
  449. package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +0 -36
  450. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +0 -469
  451. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +0 -97
  452. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +0 -56
  453. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +0 -416
  454. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +0 -390
  455. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +0 -793
  456. package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariableService.js +0 -96
  457. package/vscode/src/vs/workbench/contrib/terminal/common/history.js +0 -356
  458. package/vscode/src/vs/workbench/contrib/terminal/common/remote/remoteTerminalChannel.js +0 -253
  459. package/vscode/src/vs/workbench/contrib/terminal/common/terminalConfiguration.js +0 -1016
  460. package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +0 -272
  461. package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +0 -93
  462. package/vscode/src/vs/workbench/contrib/terminal/electron-sandbox/terminalProfileResolverService.js +0 -42
  463. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/bufferContentTracker.js +0 -110
  464. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminal.accessibility.contribution.js +0 -232
  465. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibilityHelp.js +0 -138
  466. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleBuffer.js +0 -226
  467. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleWidget.js +0 -142
  468. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/textAreaSyncAddon.js +0 -98
  469. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkProviderService.js +0 -26
  470. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixService.js +0 -155
  471. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +0 -4
  472. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +0 -247
  473. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +0 -334
  474. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +0 -117
  475. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +0 -288
  476. package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +0 -94
  477. package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +0 -86
  478. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +0 -640
  479. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +0 -63
  480. package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +0 -57
  481. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +0 -120
  482. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +0 -119
  483. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +0 -61
  484. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +0 -232
  485. package/vscode/src/vs/workbench/contrib/workspace/browser/media/workspaceTrustEditor.css.js +0 -4
  486. package/vscode/src/vs/workbench/contrib/workspace/browser/workspace.contribution.js +0 -842
  487. package/vscode/src/vs/workbench/contrib/workspace/browser/workspaceTrustEditor.js +0 -1047
  488. package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +0 -14
  489. package/vscode/src/vs/workbench/services/activity/browser/activityService.js +0 -94
  490. package/vscode/src/vs/workbench/services/configuration/browser/configuration.js +0 -878
  491. package/vscode/src/vs/workbench/services/configuration/browser/configurationService.js +0 -1170
  492. package/vscode/src/vs/workbench/services/configuration/common/configurationCache.js +0 -80
  493. package/vscode/src/vs/workbench/services/configuration/common/configurationEditing.js +0 -589
  494. package/vscode/src/vs/workbench/services/configuration/common/configurationModels.js +0 -119
  495. package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +0 -303
  496. package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +0 -26
  497. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +0 -174
  498. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +0 -10
  499. package/vscode/src/vs/workbench/services/dialogs/browser/abstractFileDialogService.js +0 -320
  500. package/vscode/src/vs/workbench/services/dialogs/browser/simpleFileDialog.js +0 -989
  501. package/vscode/src/vs/workbench/services/dialogs/common/dialogService.js +0 -66
  502. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +0 -622
  503. package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.js +0 -4
  504. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +0 -2
  505. package/vscode/src/vs/workbench/services/history/browser/historyService.js +0 -1454
  506. package/vscode/src/vs/workbench/services/hover/browser/hoverService.js +0 -162
  507. package/vscode/src/vs/workbench/services/hover/browser/hoverWidget.js +0 -523
  508. package/vscode/src/vs/workbench/services/hover/browser/media/hover.css.js +0 -4
  509. package/vscode/src/vs/workbench/services/label/common/labelService.js +0 -412
  510. package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionSimpleWorker.js +0 -173
  511. package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionWorkerServiceImpl.js +0 -259
  512. package/vscode/src/vs/workbench/services/lifecycle/browser/lifecycleService.js +0 -121
  513. package/vscode/src/vs/workbench/services/localization/common/locale.js +0 -3
  514. package/vscode/src/vs/workbench/services/notification/common/notificationService.js +0 -188
  515. package/vscode/src/vs/workbench/services/outline/browser/outlineService.js +0 -35
  516. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +0 -37
  517. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +0 -556
  518. package/vscode/src/vs/workbench/services/preferences/browser/preferencesService.js +0 -547
  519. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +0 -39
  520. package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +0 -1039
  521. package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +0 -393
  522. package/vscode/src/vs/workbench/services/remote/browser/remoteAgentService.js +0 -71
  523. package/vscode/src/vs/workbench/services/remote/common/abstractRemoteAgentService.js +0 -177
  524. package/vscode/src/vs/workbench/services/remote/common/remoteAgentEnvironmentChannel.js +0 -51
  525. package/vscode/src/vs/workbench/services/remote/common/remoteFileSystemProviderClient.js +0 -38
  526. package/vscode/src/vs/workbench/services/search/common/queryBuilder.d.ts +0 -35
  527. package/vscode/src/vs/workbench/services/search/common/searchService.js +0 -370
  528. package/vscode/src/vs/workbench/services/storage/browser/storageService.d.ts +0 -40
  529. package/vscode/src/vs/workbench/services/storage/browser/storageService.js +0 -280
  530. package/vscode/src/vs/workbench/services/suggest/browser/media/suggest.css.js +0 -4
  531. package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.js +0 -10
  532. package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.js +0 -98
  533. package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +0 -399
  534. package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +0 -83
  535. package/vscode/src/vs/workbench/services/textMate/browser/arrayOperation.js +0 -62
  536. package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/textMateWorkerTokenizerController.js +0 -157
  537. package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/threadedBackgroundTokenizerFactory.js +0 -200
  538. package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/worker/textMateTokenizationWorker.worker.js +0 -87
  539. package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/worker/textMateWorkerTokenizer.js +0 -140
  540. package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeature.d.ts +0 -11
  541. package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js +0 -459
  542. package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/textMateTokenizationSupport.js +0 -72
  543. package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/tokenizationSupportWithLineLimit.js +0 -36
  544. package/vscode/src/vs/workbench/services/textMate/common/TMGrammarFactory.js +0 -118
  545. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +0 -93
  546. package/vscode/src/vs/workbench/services/textMate/common/TMScopeRegistry.js +0 -24
  547. package/vscode/src/vs/workbench/services/textmodelResolver/common/textModelResolverService.js +0 -187
  548. package/vscode/src/vs/workbench/services/themes/browser/fileIconThemeData.js +0 -353
  549. package/vscode/src/vs/workbench/services/themes/browser/productIconThemeData.js +0 -290
  550. package/vscode/src/vs/workbench/services/themes/browser/workbenchThemeService.js +0 -742
  551. package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +0 -864
  552. package/vscode/src/vs/workbench/services/themes/common/colorThemeSchema.js +0 -265
  553. package/vscode/src/vs/workbench/services/themes/common/fileIconThemeSchema.js +0 -303
  554. package/vscode/src/vs/workbench/services/themes/common/plistParser.js +0 -439
  555. package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +0 -94
  556. package/vscode/src/vs/workbench/services/themes/common/textMateScopeMatcher.js +0 -120
  557. package/vscode/src/vs/workbench/services/themes/common/themeCompatibility.js +0 -66
  558. package/vscode/src/vs/workbench/services/themes/common/themeConfiguration.js +0 -372
  559. package/vscode/src/vs/workbench/services/themes/common/themeExtensionPoints.js +0 -254
  560. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +0 -689
  561. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +0 -612
  562. package/vscode/src/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js +0 -322
  563. package/vscode/src/vs/workbench/services/workspaces/browser/workspaceTrustEditorInput.js +0 -27
  564. package/vscode/src/vs/workbench/services/workspaces/browser/workspacesService.js +0 -151
  565. package/workers/languageDetection.worker.js +0 -8
  566. package/workers/outputLinkComputer.worker.js +0 -3
  567. package/workers/textmate.worker.js +0 -3
@@ -1,1454 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { localize } from 'monaco-editor/esm/vs/nls.js';
3
- import { URI } from 'monaco-editor/esm/vs/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 { FILES_EXCLUDE_CONFIG, FileChangesEvent, FileOperationEvent, IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
7
- import { IWorkspaceContextService } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
8
- import { Disposable, DisposableStore, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
9
- import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
10
- import { Emitter, Event } from 'monaco-editor/esm/vs/base/common/event.js';
11
- import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
12
- import { IEditorGroupsService } from '../../editor/common/editorGroupsService.js';
13
- import { getExcludes, SEARCH_EXCLUDE_CONFIG } from '../../search/common/search.js';
14
- import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
15
- import { IWorkbenchLayoutService } from '../../layout/browser/layoutService.js';
16
- import { RawContextKey, IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
17
- import { coalesce, remove } from 'monaco-editor/esm/vs/base/common/arrays.js';
18
- import { EventHelper, addDisposableListener, EventType } from 'monaco-editor/esm/vs/base/browser/dom.js';
19
- import { IWorkspacesService } from '../../../../platform/workspaces/common/workspaces.js';
20
- import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
21
- import { onUnexpectedError } from 'monaco-editor/esm/vs/base/common/errors.js';
22
- import { IdleValue } from 'monaco-editor/esm/vs/base/common/async.js';
23
- import { ResourceGlobMatcher } from '../../../common/resources.js';
24
- import { IPathService } from '../../path/common/pathService.js';
25
- import { IUriIdentityService } from 'monaco-editor/esm/vs/platform/uriIdentity/common/uriIdentity.js';
26
- import { ILifecycleService } from '../../lifecycle/common/lifecycle.js';
27
- import { LogLevel, ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
28
- var HistoryService_1, EditorNavigationStack_1;
29
- let HistoryService = class HistoryService extends Disposable {
30
- static { HistoryService_1 = this; }
31
- static { this.MOUSE_NAVIGATION_SETTING = 'workbench.editor.mouseBackForwardToNavigate'; }
32
- static { this.NAVIGATION_SCOPE_SETTING = 'workbench.editor.navigationScope'; }
33
- constructor(editorService, editorGroupService, contextService, storageService, configurationService, fileService, workspacesService, instantiationService, layoutService, contextKeyService) {
34
- super();
35
- this.editorService = editorService;
36
- this.editorGroupService = editorGroupService;
37
- this.contextService = contextService;
38
- this.storageService = storageService;
39
- this.configurationService = configurationService;
40
- this.fileService = fileService;
41
- this.workspacesService = workspacesService;
42
- this.instantiationService = instantiationService;
43
- this.layoutService = layoutService;
44
- this.contextKeyService = contextKeyService;
45
- this.activeEditorListeners = this._register(( (new DisposableStore())));
46
- this.lastActiveEditor = undefined;
47
- this.editorHelper = this.instantiationService.createInstance(EditorHelper);
48
- this.canNavigateBackContextKey = (( (new RawContextKey('canNavigateBack', false, (localize(
49
- 'canNavigateBack',
50
- "Whether it is possible to navigate back in editor history"
51
- )))))).bindTo(this.contextKeyService);
52
- this.canNavigateForwardContextKey = (( (new RawContextKey('canNavigateForward', false, (localize(
53
- 'canNavigateForward',
54
- "Whether it is possible to navigate forward in editor history"
55
- )))))).bindTo(this.contextKeyService);
56
- this.canNavigateBackInNavigationsContextKey = (( (new RawContextKey('canNavigateBackInNavigationLocations', false, (localize(
57
- 'canNavigateBackInNavigationLocations',
58
- "Whether it is possible to navigate back in editor navigation locations history"
59
- )))))).bindTo(this.contextKeyService);
60
- this.canNavigateForwardInNavigationsContextKey = (( (new RawContextKey('canNavigateForwardInNavigationLocations', false, (localize(
61
- 'canNavigateForwardInNavigationLocations',
62
- "Whether it is possible to navigate forward in editor navigation locations history"
63
- )))))).bindTo(this.contextKeyService);
64
- this.canNavigateToLastNavigationLocationContextKey = (( (new RawContextKey('canNavigateToLastNavigationLocation', false, (localize(
65
- 'canNavigateToLastNavigationLocation',
66
- "Whether it is possible to navigate to the last editor navigation location"
67
- )))))).bindTo(this.contextKeyService);
68
- this.canNavigateBackInEditsContextKey = (( (new RawContextKey('canNavigateBackInEditLocations', false, (localize(
69
- 'canNavigateBackInEditLocations',
70
- "Whether it is possible to navigate back in editor edit locations history"
71
- )))))).bindTo(this.contextKeyService);
72
- this.canNavigateForwardInEditsContextKey = (( (new RawContextKey('canNavigateForwardInEditLocations', false, (localize(
73
- 'canNavigateForwardInEditLocations',
74
- "Whether it is possible to navigate forward in editor edit locations history"
75
- )))))).bindTo(this.contextKeyService);
76
- this.canNavigateToLastEditLocationContextKey = (( (new RawContextKey('canNavigateToLastEditLocation', false, (localize(
77
- 'canNavigateToLastEditLocation',
78
- "Whether it is possible to navigate to the last editor edit location"
79
- )))))).bindTo(this.contextKeyService);
80
- this.canReopenClosedEditorContextKey = (( (new RawContextKey('canReopenClosedEditor', false, (localize(
81
- 'canReopenClosedEditor',
82
- "Whether it is possible to reopen the last closed editor"
83
- )))))).bindTo(this.contextKeyService);
84
- this._onDidChangeEditorNavigationStack = this._register(( (new Emitter())));
85
- this.onDidChangeEditorNavigationStack = this._onDidChangeEditorNavigationStack.event;
86
- this.defaultScopedEditorNavigationStack = undefined;
87
- this.editorGroupScopedNavigationStacks = ( (new Map()));
88
- this.editorScopedNavigationStacks = ( (new Map()));
89
- this.editorNavigationScope = 0 ;
90
- this.recentlyUsedEditorsStack = undefined;
91
- this.recentlyUsedEditorsStackIndex = 0;
92
- this.recentlyUsedEditorsInGroupStack = undefined;
93
- this.recentlyUsedEditorsInGroupStackIndex = 0;
94
- this.navigatingInRecentlyUsedEditorsStack = false;
95
- this.navigatingInRecentlyUsedEditorsInGroupStack = false;
96
- this.recentlyClosedEditors = [];
97
- this.ignoreEditorCloseEvent = false;
98
- this.history = undefined;
99
- this.editorHistoryListeners = ( (new Map()));
100
- this.resourceExcludeMatcher = this._register(( (new IdleValue(() => {
101
- 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)));
102
- this._register(matcher.onExpressionChange(() => this.removeExcludedFromHistory()));
103
- return matcher;
104
- }))));
105
- this.registerListeners();
106
- if (this.editorService.activeEditorPane) {
107
- this.onDidActiveEditorChange();
108
- }
109
- }
110
- registerListeners() {
111
- this.registerMouseNavigationListener();
112
- this._register(this.editorService.onDidActiveEditorChange(() => this.onDidActiveEditorChange()));
113
- this._register(this.editorService.onDidOpenEditorFail(event => this.remove(event.editor)));
114
- this._register(this.editorService.onDidCloseEditor(event => this.onDidCloseEditor(event)));
115
- this._register(this.editorService.onDidMostRecentlyActiveEditorsChange(() => this.handleEditorEventInRecentEditorsStack()));
116
- this._register(this.editorGroupService.onDidRemoveGroup(e => this.onDidRemoveGroup(e)));
117
- this._register(this.fileService.onDidFilesChange(event => this.onDidFilesChange(event)));
118
- this._register(this.fileService.onDidRunOperation(event => this.onDidFilesChange(event)));
119
- this._register(this.storageService.onWillSaveState(() => this.saveState()));
120
- this.registerEditorNavigationScopeChangeListener();
121
- this._register(this.onDidChangeEditorNavigationStack(() => this.updateContextKeys()));
122
- this._register(this.editorGroupService.onDidChangeActiveGroup(() => this.updateContextKeys()));
123
- }
124
- onDidCloseEditor(e) {
125
- this.handleEditorCloseEventInHistory(e);
126
- this.handleEditorCloseEventInReopen(e);
127
- }
128
- registerMouseNavigationListener() {
129
- const mouseBackForwardSupportListener = this._register(( (new DisposableStore())));
130
- const handleMouseBackForwardSupport = () => {
131
- mouseBackForwardSupportListener.clear();
132
- if (this.configurationService.getValue(HistoryService_1.MOUSE_NAVIGATION_SETTING)) {
133
- mouseBackForwardSupportListener.add(addDisposableListener(this.layoutService.container, EventType.MOUSE_DOWN, e => this.onMouseDownOrUp(e, true)));
134
- mouseBackForwardSupportListener.add(addDisposableListener(this.layoutService.container, EventType.MOUSE_UP, e => this.onMouseDownOrUp(e, false)));
135
- }
136
- };
137
- this._register(this.configurationService.onDidChangeConfiguration(event => {
138
- if (event.affectsConfiguration(HistoryService_1.MOUSE_NAVIGATION_SETTING)) {
139
- handleMouseBackForwardSupport();
140
- }
141
- }));
142
- handleMouseBackForwardSupport();
143
- }
144
- onMouseDownOrUp(event, isMouseDown) {
145
- switch (event.button) {
146
- case 3:
147
- EventHelper.stop(event);
148
- if (isMouseDown) {
149
- this.goBack();
150
- }
151
- break;
152
- case 4:
153
- EventHelper.stop(event);
154
- if (isMouseDown) {
155
- this.goForward();
156
- }
157
- break;
158
- }
159
- }
160
- onDidRemoveGroup(group) {
161
- this.handleEditorGroupRemoveInNavigationStacks(group);
162
- }
163
- onDidActiveEditorChange() {
164
- const activeEditorGroup = this.editorGroupService.activeGroup;
165
- const activeEditorPane = activeEditorGroup.activeEditorPane;
166
- if (this.lastActiveEditor && this.editorHelper.matchesEditorIdentifier(this.lastActiveEditor, activeEditorPane)) {
167
- return;
168
- }
169
- this.lastActiveEditor = activeEditorPane?.input && activeEditorPane.group ? { editor: activeEditorPane.input, groupId: activeEditorPane.group.id } : undefined;
170
- this.activeEditorListeners.clear();
171
- this.handleActiveEditorChange(activeEditorGroup, activeEditorPane);
172
- if (isEditorPaneWithSelection(activeEditorPane)) {
173
- this.activeEditorListeners.add(activeEditorPane.onDidChangeSelection(e => this.handleActiveEditorSelectionChangeEvent(activeEditorGroup, activeEditorPane, e)));
174
- }
175
- this.updateContextKeys();
176
- }
177
- onDidFilesChange(event) {
178
- if (event instanceof FileChangesEvent) {
179
- if (event.gotDeleted()) {
180
- this.remove(event);
181
- }
182
- }
183
- else {
184
- if (event.isOperation(1 )) {
185
- this.remove(event);
186
- }
187
- else if (event.isOperation(2 ) && event.target.isFile) {
188
- this.move(event);
189
- }
190
- }
191
- }
192
- handleActiveEditorChange(group, editorPane) {
193
- this.handleActiveEditorChangeInHistory(editorPane);
194
- this.handleActiveEditorChangeInNavigationStacks(group, editorPane);
195
- }
196
- handleActiveEditorSelectionChangeEvent(group, editorPane, event) {
197
- this.handleActiveEditorSelectionChangeInNavigationStacks(group, editorPane, event);
198
- }
199
- move(event) {
200
- this.moveInHistory(event);
201
- this.moveInEditorNavigationStacks(event);
202
- }
203
- remove(arg1) {
204
- this.removeFromHistory(arg1);
205
- this.removeFromEditorNavigationStacks(arg1);
206
- this.removeFromRecentlyClosedEditors(arg1);
207
- this.removeFromRecentlyOpened(arg1);
208
- }
209
- removeFromRecentlyOpened(arg1) {
210
- let resource = undefined;
211
- if (isEditorInput(arg1)) {
212
- resource = EditorResourceAccessor.getOriginalUri(arg1);
213
- }
214
- else if (arg1 instanceof FileChangesEvent) ;
215
- else {
216
- resource = arg1.resource;
217
- }
218
- if (resource) {
219
- this.workspacesService.removeRecentlyOpened([resource]);
220
- }
221
- }
222
- clear() {
223
- this.clearRecentlyOpened();
224
- this.clearEditorNavigationStacks();
225
- this.recentlyClosedEditors = [];
226
- this.updateContextKeys();
227
- }
228
- updateContextKeys() {
229
- this.contextKeyService.bufferChangeEvents(() => {
230
- const activeStack = this.getStack();
231
- this.canNavigateBackContextKey.set(activeStack.canGoBack(0 ));
232
- this.canNavigateForwardContextKey.set(activeStack.canGoForward(0 ));
233
- this.canNavigateBackInNavigationsContextKey.set(activeStack.canGoBack(2 ));
234
- this.canNavigateForwardInNavigationsContextKey.set(activeStack.canGoForward(2 ));
235
- this.canNavigateToLastNavigationLocationContextKey.set(activeStack.canGoLast(2 ));
236
- this.canNavigateBackInEditsContextKey.set(activeStack.canGoBack(1 ));
237
- this.canNavigateForwardInEditsContextKey.set(activeStack.canGoForward(1 ));
238
- this.canNavigateToLastEditLocationContextKey.set(activeStack.canGoLast(1 ));
239
- this.canReopenClosedEditorContextKey.set(this.recentlyClosedEditors.length > 0);
240
- });
241
- }
242
- registerEditorNavigationScopeChangeListener() {
243
- const handleEditorNavigationScopeChange = () => {
244
- this.disposeEditorNavigationStacks();
245
- const configuredScope = this.configurationService.getValue(HistoryService_1.NAVIGATION_SCOPE_SETTING);
246
- if (configuredScope === 'editorGroup') {
247
- this.editorNavigationScope = 1 ;
248
- }
249
- else if (configuredScope === 'editor') {
250
- this.editorNavigationScope = 2 ;
251
- }
252
- else {
253
- this.editorNavigationScope = 0 ;
254
- }
255
- };
256
- this._register(this.configurationService.onDidChangeConfiguration(event => {
257
- if (event.affectsConfiguration(HistoryService_1.NAVIGATION_SCOPE_SETTING)) {
258
- handleEditorNavigationScopeChange();
259
- }
260
- }));
261
- handleEditorNavigationScopeChange();
262
- }
263
- getStack(group = this.editorGroupService.activeGroup, editor = group.activeEditor) {
264
- switch (this.editorNavigationScope) {
265
- case 2 : {
266
- if (!editor) {
267
- return (
268
- (new NoOpEditorNavigationStacks())
269
- );
270
- }
271
- let stacksForGroup = this.editorScopedNavigationStacks.get(group.id);
272
- if (!stacksForGroup) {
273
- stacksForGroup = ( (new Map()));
274
- this.editorScopedNavigationStacks.set(group.id, stacksForGroup);
275
- }
276
- let stack = stacksForGroup.get(editor)?.stack;
277
- if (!stack) {
278
- const disposable = ( (new DisposableStore()));
279
- stack = disposable.add(this.instantiationService.createInstance(EditorNavigationStacks, 2 ));
280
- disposable.add(stack.onDidChange(() => this._onDidChangeEditorNavigationStack.fire()));
281
- stacksForGroup.set(editor, { stack, disposable });
282
- }
283
- return stack;
284
- }
285
- case 1 : {
286
- let stack = this.editorGroupScopedNavigationStacks.get(group.id)?.stack;
287
- if (!stack) {
288
- const disposable = ( (new DisposableStore()));
289
- stack = disposable.add(this.instantiationService.createInstance(EditorNavigationStacks, 1 ));
290
- disposable.add(stack.onDidChange(() => this._onDidChangeEditorNavigationStack.fire()));
291
- this.editorGroupScopedNavigationStacks.set(group.id, { stack, disposable });
292
- }
293
- return stack;
294
- }
295
- case 0 : {
296
- if (!this.defaultScopedEditorNavigationStack) {
297
- this.defaultScopedEditorNavigationStack = this._register(this.instantiationService.createInstance(EditorNavigationStacks, 0 ));
298
- this._register(this.defaultScopedEditorNavigationStack.onDidChange(() => this._onDidChangeEditorNavigationStack.fire()));
299
- }
300
- return this.defaultScopedEditorNavigationStack;
301
- }
302
- }
303
- }
304
- goForward(filter) {
305
- return this.getStack().goForward(filter);
306
- }
307
- goBack(filter) {
308
- return this.getStack().goBack(filter);
309
- }
310
- goPrevious(filter) {
311
- return this.getStack().goPrevious(filter);
312
- }
313
- goLast(filter) {
314
- return this.getStack().goLast(filter);
315
- }
316
- handleActiveEditorChangeInNavigationStacks(group, editorPane) {
317
- this.getStack(group, editorPane?.input).handleActiveEditorChange(editorPane);
318
- }
319
- handleActiveEditorSelectionChangeInNavigationStacks(group, editorPane, event) {
320
- this.getStack(group, editorPane.input).handleActiveEditorSelectionChange(editorPane, event);
321
- }
322
- handleEditorCloseEventInHistory(e) {
323
- const editors = this.editorScopedNavigationStacks.get(e.groupId);
324
- if (editors) {
325
- const editorStack = editors.get(e.editor);
326
- if (editorStack) {
327
- editorStack.disposable.dispose();
328
- editors.delete(e.editor);
329
- }
330
- if (editors.size === 0) {
331
- this.editorScopedNavigationStacks.delete(e.groupId);
332
- }
333
- }
334
- }
335
- handleEditorGroupRemoveInNavigationStacks(group) {
336
- this.defaultScopedEditorNavigationStack?.remove(group.id);
337
- const editorGroupStack = this.editorGroupScopedNavigationStacks.get(group.id);
338
- if (editorGroupStack) {
339
- editorGroupStack.disposable.dispose();
340
- this.editorGroupScopedNavigationStacks.delete(group.id);
341
- }
342
- }
343
- clearEditorNavigationStacks() {
344
- this.withEachEditorNavigationStack(stack => stack.clear());
345
- }
346
- removeFromEditorNavigationStacks(arg1) {
347
- this.withEachEditorNavigationStack(stack => stack.remove(arg1));
348
- }
349
- moveInEditorNavigationStacks(event) {
350
- this.withEachEditorNavigationStack(stack => stack.move(event));
351
- }
352
- withEachEditorNavigationStack(fn) {
353
- if (this.defaultScopedEditorNavigationStack) {
354
- fn(this.defaultScopedEditorNavigationStack);
355
- }
356
- for (const [, entry] of this.editorGroupScopedNavigationStacks) {
357
- fn(entry.stack);
358
- }
359
- for (const [, entries] of this.editorScopedNavigationStacks) {
360
- for (const [, entry] of entries) {
361
- fn(entry.stack);
362
- }
363
- }
364
- }
365
- disposeEditorNavigationStacks() {
366
- this.defaultScopedEditorNavigationStack?.dispose();
367
- this.defaultScopedEditorNavigationStack = undefined;
368
- for (const [, stack] of this.editorGroupScopedNavigationStacks) {
369
- stack.disposable.dispose();
370
- }
371
- this.editorGroupScopedNavigationStacks.clear();
372
- for (const [, stacks] of this.editorScopedNavigationStacks) {
373
- for (const [, stack] of stacks) {
374
- stack.disposable.dispose();
375
- }
376
- }
377
- this.editorScopedNavigationStacks.clear();
378
- }
379
- openNextRecentlyUsedEditor(groupId) {
380
- const [stack, index] = this.ensureRecentlyUsedStack(index => index - 1, groupId);
381
- return this.doNavigateInRecentlyUsedEditorsStack(stack[index], groupId);
382
- }
383
- openPreviouslyUsedEditor(groupId) {
384
- const [stack, index] = this.ensureRecentlyUsedStack(index => index + 1, groupId);
385
- return this.doNavigateInRecentlyUsedEditorsStack(stack[index], groupId);
386
- }
387
- async doNavigateInRecentlyUsedEditorsStack(editorIdentifier, groupId) {
388
- if (editorIdentifier) {
389
- const acrossGroups = typeof groupId !== 'number' || !this.editorGroupService.getGroup(groupId);
390
- if (acrossGroups) {
391
- this.navigatingInRecentlyUsedEditorsStack = true;
392
- }
393
- else {
394
- this.navigatingInRecentlyUsedEditorsInGroupStack = true;
395
- }
396
- const group = this.editorGroupService.getGroup(editorIdentifier.groupId) ?? this.editorGroupService.activeGroup;
397
- try {
398
- await group.openEditor(editorIdentifier.editor);
399
- }
400
- finally {
401
- if (acrossGroups) {
402
- this.navigatingInRecentlyUsedEditorsStack = false;
403
- }
404
- else {
405
- this.navigatingInRecentlyUsedEditorsInGroupStack = false;
406
- }
407
- }
408
- }
409
- }
410
- ensureRecentlyUsedStack(indexModifier, groupId) {
411
- let editors;
412
- let index;
413
- const group = typeof groupId === 'number' ? this.editorGroupService.getGroup(groupId) : undefined;
414
- if (!group) {
415
- editors = this.recentlyUsedEditorsStack || this.editorService.getEditors(0 );
416
- index = this.recentlyUsedEditorsStackIndex;
417
- }
418
- else {
419
- editors = this.recentlyUsedEditorsInGroupStack || ( (group.getEditors(0 ).map(editor => ({ groupId: group.id, editor }))));
420
- index = this.recentlyUsedEditorsInGroupStackIndex;
421
- }
422
- let newIndex = indexModifier(index);
423
- if (newIndex < 0) {
424
- newIndex = 0;
425
- }
426
- else if (newIndex > editors.length - 1) {
427
- newIndex = editors.length - 1;
428
- }
429
- if (!group) {
430
- this.recentlyUsedEditorsStack = editors;
431
- this.recentlyUsedEditorsStackIndex = newIndex;
432
- }
433
- else {
434
- this.recentlyUsedEditorsInGroupStack = editors;
435
- this.recentlyUsedEditorsInGroupStackIndex = newIndex;
436
- }
437
- return [editors, newIndex];
438
- }
439
- handleEditorEventInRecentEditorsStack() {
440
- if (!this.navigatingInRecentlyUsedEditorsStack) {
441
- this.recentlyUsedEditorsStack = undefined;
442
- this.recentlyUsedEditorsStackIndex = 0;
443
- }
444
- if (!this.navigatingInRecentlyUsedEditorsInGroupStack) {
445
- this.recentlyUsedEditorsInGroupStack = undefined;
446
- this.recentlyUsedEditorsInGroupStackIndex = 0;
447
- }
448
- }
449
- static { this.MAX_RECENTLY_CLOSED_EDITORS = 20; }
450
- handleEditorCloseEventInReopen(event) {
451
- if (this.ignoreEditorCloseEvent) {
452
- return;
453
- }
454
- const { editor, context } = event;
455
- if (context === EditorCloseContext.REPLACE || context === EditorCloseContext.MOVE) {
456
- return;
457
- }
458
- const untypedEditor = editor.toUntyped();
459
- if (!untypedEditor) {
460
- return;
461
- }
462
- const associatedResources = [];
463
- const editorResource = EditorResourceAccessor.getOriginalUri(editor, { supportSideBySide: SideBySideEditor.BOTH });
464
- if (URI.isUri(editorResource)) {
465
- associatedResources.push(editorResource);
466
- }
467
- else if (editorResource) {
468
- associatedResources.push(...coalesce([editorResource.primary, editorResource.secondary]));
469
- }
470
- this.removeFromRecentlyClosedEditors(editor);
471
- this.recentlyClosedEditors.push({
472
- editorId: editor.editorId,
473
- editor: untypedEditor,
474
- resource: EditorResourceAccessor.getOriginalUri(editor),
475
- associatedResources,
476
- index: event.index,
477
- sticky: event.sticky
478
- });
479
- if (this.recentlyClosedEditors.length > HistoryService_1.MAX_RECENTLY_CLOSED_EDITORS) {
480
- this.recentlyClosedEditors.shift();
481
- }
482
- this.canReopenClosedEditorContextKey.set(true);
483
- }
484
- async reopenLastClosedEditor() {
485
- const lastClosedEditor = this.recentlyClosedEditors.pop();
486
- let reopenClosedEditorPromise = undefined;
487
- if (lastClosedEditor) {
488
- reopenClosedEditorPromise = this.doReopenLastClosedEditor(lastClosedEditor);
489
- }
490
- this.canReopenClosedEditorContextKey.set(this.recentlyClosedEditors.length > 0);
491
- return reopenClosedEditorPromise;
492
- }
493
- async doReopenLastClosedEditor(lastClosedEditor) {
494
- const options = { pinned: true, sticky: lastClosedEditor.sticky, index: lastClosedEditor.index, ignoreError: true };
495
- if ((lastClosedEditor.sticky && !this.editorGroupService.activeGroup.isSticky(lastClosedEditor.index)) ||
496
- (!lastClosedEditor.sticky && this.editorGroupService.activeGroup.isSticky(lastClosedEditor.index))) {
497
- options.index = undefined;
498
- }
499
- let editorPane = undefined;
500
- if (!this.editorGroupService.activeGroup.contains(lastClosedEditor.editor)) {
501
- this.ignoreEditorCloseEvent = true;
502
- try {
503
- editorPane = await this.editorService.openEditor({
504
- ...lastClosedEditor.editor,
505
- options: {
506
- ...lastClosedEditor.editor.options,
507
- ...options
508
- }
509
- });
510
- }
511
- finally {
512
- this.ignoreEditorCloseEvent = false;
513
- }
514
- }
515
- if (!editorPane) {
516
- remove(this.recentlyClosedEditors, lastClosedEditor);
517
- this.reopenLastClosedEditor();
518
- }
519
- }
520
- removeFromRecentlyClosedEditors(arg1) {
521
- this.recentlyClosedEditors = this.recentlyClosedEditors.filter(recentlyClosedEditor => {
522
- if (isEditorInput(arg1) && recentlyClosedEditor.editorId !== arg1.editorId) {
523
- return true;
524
- }
525
- if (recentlyClosedEditor.resource && this.editorHelper.matchesFile(recentlyClosedEditor.resource, arg1)) {
526
- return false;
527
- }
528
- if (( (recentlyClosedEditor.associatedResources.some(
529
- associatedResource => this.editorHelper.matchesFile(associatedResource, arg1)
530
- )))) {
531
- return false;
532
- }
533
- return true;
534
- });
535
- this.canReopenClosedEditorContextKey.set(this.recentlyClosedEditors.length > 0);
536
- }
537
- static { this.MAX_HISTORY_ITEMS = 200; }
538
- static { this.HISTORY_STORAGE_KEY = 'history.entries'; }
539
- handleActiveEditorChangeInHistory(editorPane) {
540
- const editor = editorPane?.input;
541
- if (!editor || editor.isDisposed() || !this.includeInHistory(editor)) {
542
- return;
543
- }
544
- this.removeFromHistory(editor);
545
- this.addToHistory(editor);
546
- }
547
- addToHistory(editor, insertFirst = true) {
548
- this.ensureHistoryLoaded(this.history);
549
- const historyInput = this.editorHelper.preferResourceEditorInput(editor);
550
- if (!historyInput) {
551
- return;
552
- }
553
- if (insertFirst) {
554
- this.history.unshift(historyInput);
555
- }
556
- else {
557
- this.history.push(historyInput);
558
- }
559
- if (this.history.length > HistoryService_1.MAX_HISTORY_ITEMS) {
560
- this.editorHelper.clearOnEditorDispose(this.history.pop(), this.editorHistoryListeners);
561
- }
562
- if (isEditorInput(historyInput)) {
563
- this.editorHelper.onEditorDispose(historyInput, () => this.updateHistoryOnEditorDispose(historyInput), this.editorHistoryListeners);
564
- }
565
- }
566
- updateHistoryOnEditorDispose(editor) {
567
- if (!isSideBySideEditorInput(editor)) {
568
- this.removeFromHistory(editor);
569
- }
570
- else {
571
- const resourceInputs = [];
572
- const sideInputs = editor.primary.matches(editor.secondary) ? [editor.primary] : [editor.primary, editor.secondary];
573
- for (const sideInput of sideInputs) {
574
- const candidateResourceInput = this.editorHelper.preferResourceEditorInput(sideInput);
575
- if (isResourceEditorInput(candidateResourceInput)) {
576
- resourceInputs.push(candidateResourceInput);
577
- }
578
- }
579
- this.replaceInHistory(editor, ...resourceInputs);
580
- }
581
- }
582
- includeInHistory(editor) {
583
- if (isEditorInput(editor)) {
584
- return true;
585
- }
586
- return !this.resourceExcludeMatcher.value.matches(editor.resource);
587
- }
588
- removeExcludedFromHistory() {
589
- this.ensureHistoryLoaded(this.history);
590
- this.history = this.history.filter(entry => {
591
- const include = this.includeInHistory(entry);
592
- if (!include) {
593
- this.editorHelper.clearOnEditorDispose(entry, this.editorHistoryListeners);
594
- }
595
- return include;
596
- });
597
- }
598
- moveInHistory(event) {
599
- if (event.isOperation(2 )) {
600
- const removed = this.removeFromHistory(event);
601
- if (removed) {
602
- this.addToHistory({ resource: event.target.resource });
603
- }
604
- }
605
- }
606
- removeFromHistory(arg1) {
607
- let removed = false;
608
- this.ensureHistoryLoaded(this.history);
609
- this.history = this.history.filter(entry => {
610
- const matches = this.editorHelper.matchesEditor(arg1, entry);
611
- if (matches) {
612
- this.editorHelper.clearOnEditorDispose(arg1, this.editorHistoryListeners);
613
- removed = true;
614
- }
615
- return !matches;
616
- });
617
- return removed;
618
- }
619
- replaceInHistory(editor, ...replacements) {
620
- this.ensureHistoryLoaded(this.history);
621
- let replaced = false;
622
- const newHistory = [];
623
- for (const entry of this.history) {
624
- if (this.editorHelper.matchesEditor(editor, entry)) {
625
- this.editorHelper.clearOnEditorDispose(editor, this.editorHistoryListeners);
626
- if (!replaced) {
627
- newHistory.push(...replacements);
628
- replaced = true;
629
- }
630
- }
631
- else if (!( (replacements.some(replacement => this.editorHelper.matchesEditor(replacement, entry))))) {
632
- newHistory.push(entry);
633
- }
634
- }
635
- if (!replaced) {
636
- newHistory.push(...replacements);
637
- }
638
- this.history = newHistory;
639
- }
640
- clearRecentlyOpened() {
641
- this.history = [];
642
- for (const [, disposable] of this.editorHistoryListeners) {
643
- dispose(disposable);
644
- }
645
- this.editorHistoryListeners.clear();
646
- }
647
- getHistory() {
648
- this.ensureHistoryLoaded(this.history);
649
- return this.history;
650
- }
651
- ensureHistoryLoaded(history) {
652
- if (!this.history) {
653
- this.history = [];
654
- if (this.editorGroupService.isReady) {
655
- this.loadHistory();
656
- }
657
- else {
658
- (async () => {
659
- await this.editorGroupService.whenReady;
660
- this.loadHistory();
661
- })();
662
- }
663
- }
664
- }
665
- loadHistory() {
666
- this.history = [];
667
- const storedEditorHistory = this.loadHistoryFromStorage();
668
- const openedEditorsLru = [...this.editorService.getEditors(0 )].reverse();
669
- const handledEditors = ( (new Set()));
670
- for (const { editor } of openedEditorsLru) {
671
- if (!this.includeInHistory(editor)) {
672
- continue;
673
- }
674
- this.addToHistory(editor);
675
- if (editor.resource) {
676
- handledEditors.add(`${( ( editor.resource.toString()))}/${editor.editorId}`);
677
- }
678
- }
679
- for (const editor of storedEditorHistory) {
680
- if (!( (handledEditors.has(`${( ( editor.resource.toString()))}/${editor.options?.override}`)))) {
681
- this.addToHistory(editor, false );
682
- }
683
- }
684
- }
685
- loadHistoryFromStorage() {
686
- const entries = [];
687
- const entriesRaw = this.storageService.get(HistoryService_1.HISTORY_STORAGE_KEY, 1 );
688
- if (entriesRaw) {
689
- try {
690
- const entriesParsed = JSON.parse(entriesRaw);
691
- for (const entryParsed of entriesParsed) {
692
- if (!entryParsed.editor || !entryParsed.editor.resource) {
693
- continue;
694
- }
695
- try {
696
- entries.push({
697
- ...entryParsed.editor,
698
- resource: typeof entryParsed.editor.resource === 'string' ?
699
- (
700
- (URI.parse(entryParsed.editor.resource))) :
701
- ( (URI.from(entryParsed.editor.resource)))
702
- });
703
- }
704
- catch (error) {
705
- onUnexpectedError(error);
706
- }
707
- }
708
- }
709
- catch (error) {
710
- onUnexpectedError(error);
711
- }
712
- }
713
- return entries;
714
- }
715
- saveState() {
716
- if (!this.history) {
717
- return;
718
- }
719
- const entries = [];
720
- for (const editor of this.history) {
721
- if (isEditorInput(editor) || !isResourceEditorInput(editor)) {
722
- continue;
723
- }
724
- entries.push({
725
- editor: {
726
- ...editor,
727
- resource: ( (editor.resource.toString()))
728
- }
729
- });
730
- }
731
- this.storageService.store(HistoryService_1.HISTORY_STORAGE_KEY, JSON.stringify(entries), 1 , 1 );
732
- }
733
- getLastActiveWorkspaceRoot(schemeFilter) {
734
- const folders = this.contextService.getWorkspace().folders;
735
- if (folders.length === 0) {
736
- return undefined;
737
- }
738
- if (folders.length === 1) {
739
- const resource = folders[0].uri;
740
- if (!schemeFilter || resource.scheme === schemeFilter) {
741
- return resource;
742
- }
743
- return undefined;
744
- }
745
- for (const input of this.getHistory()) {
746
- if (isEditorInput(input)) {
747
- continue;
748
- }
749
- if (schemeFilter && input.resource.scheme !== schemeFilter) {
750
- continue;
751
- }
752
- const resourceWorkspace = this.contextService.getWorkspaceFolder(input.resource);
753
- if (resourceWorkspace) {
754
- return resourceWorkspace.uri;
755
- }
756
- }
757
- for (const folder of folders) {
758
- const resource = folder.uri;
759
- if (!schemeFilter || resource.scheme === schemeFilter) {
760
- return resource;
761
- }
762
- }
763
- return undefined;
764
- }
765
- getLastActiveFile(filterByScheme) {
766
- for (const input of this.getHistory()) {
767
- let resource;
768
- if (isEditorInput(input)) {
769
- resource = EditorResourceAccessor.getOriginalUri(input, { filterByScheme });
770
- }
771
- else {
772
- resource = input.resource;
773
- }
774
- if (resource?.scheme === filterByScheme) {
775
- return resource;
776
- }
777
- }
778
- return undefined;
779
- }
780
- };
781
- HistoryService = HistoryService_1 = ( (__decorate([
782
- ( (__param(0, IEditorService))),
783
- ( (__param(1, IEditorGroupsService))),
784
- ( (__param(2, IWorkspaceContextService))),
785
- ( (__param(3, IStorageService))),
786
- ( (__param(4, IConfigurationService))),
787
- ( (__param(5, IFileService))),
788
- ( (__param(6, IWorkspacesService))),
789
- ( (__param(7, IInstantiationService))),
790
- ( (__param(8, IWorkbenchLayoutService))),
791
- ( (__param(9, IContextKeyService)))
792
- ], HistoryService)));
793
- class EditorSelectionState {
794
- constructor(editorIdentifier, selection, reason) {
795
- this.editorIdentifier = editorIdentifier;
796
- this.selection = selection;
797
- this.reason = reason;
798
- }
799
- justifiesNewNavigationEntry(other) {
800
- if (this.editorIdentifier.groupId !== other.editorIdentifier.groupId) {
801
- return true;
802
- }
803
- if (!this.editorIdentifier.editor.matches(other.editorIdentifier.editor)) {
804
- return true;
805
- }
806
- if (!this.selection || !other.selection) {
807
- return true;
808
- }
809
- const result = this.selection.compare(other.selection);
810
- if (result === 2 && ((other.reason === 4 || other.reason === 5) )) {
811
- return true;
812
- }
813
- return result === 3 ;
814
- }
815
- }
816
- let EditorNavigationStacks = class EditorNavigationStacks extends Disposable {
817
- constructor(scope, instantiationService) {
818
- super();
819
- this.scope = scope;
820
- this.instantiationService = instantiationService;
821
- this.selectionsStack = this._register(this.instantiationService.createInstance(EditorNavigationStack, 0 , this.scope));
822
- this.editsStack = this._register(this.instantiationService.createInstance(EditorNavigationStack, 1 , this.scope));
823
- this.navigationsStack = this._register(this.instantiationService.createInstance(EditorNavigationStack, 2 , this.scope));
824
- this.stacks = [
825
- this.selectionsStack,
826
- this.editsStack,
827
- this.navigationsStack
828
- ];
829
- this.onDidChange = Event.any(this.selectionsStack.onDidChange, this.editsStack.onDidChange, this.navigationsStack.onDidChange);
830
- }
831
- canGoForward(filter) {
832
- return this.getStack(filter).canGoForward();
833
- }
834
- goForward(filter) {
835
- return this.getStack(filter).goForward();
836
- }
837
- canGoBack(filter) {
838
- return this.getStack(filter).canGoBack();
839
- }
840
- goBack(filter) {
841
- return this.getStack(filter).goBack();
842
- }
843
- goPrevious(filter) {
844
- return this.getStack(filter).goPrevious();
845
- }
846
- canGoLast(filter) {
847
- return this.getStack(filter).canGoLast();
848
- }
849
- goLast(filter) {
850
- return this.getStack(filter).goLast();
851
- }
852
- getStack(filter = 0 ) {
853
- switch (filter) {
854
- case 0 : return this.selectionsStack;
855
- case 1 : return this.editsStack;
856
- case 2 : return this.navigationsStack;
857
- }
858
- }
859
- handleActiveEditorChange(editorPane) {
860
- this.selectionsStack.notifyNavigation(editorPane);
861
- }
862
- handleActiveEditorSelectionChange(editorPane, event) {
863
- const previous = this.selectionsStack.current;
864
- this.selectionsStack.notifyNavigation(editorPane, event);
865
- if (event.reason === 3 ) {
866
- this.editsStack.notifyNavigation(editorPane, event);
867
- }
868
- else if (((event.reason === 4 || event.reason === 5) ) &&
869
- !this.selectionsStack.isNavigating()) {
870
- if (event.reason === 5 && !this.navigationsStack.isNavigating()) {
871
- if (previous) {
872
- this.navigationsStack.addOrReplace(previous.groupId, previous.editor, previous.selection);
873
- }
874
- }
875
- this.navigationsStack.notifyNavigation(editorPane, event);
876
- }
877
- }
878
- clear() {
879
- for (const stack of this.stacks) {
880
- stack.clear();
881
- }
882
- }
883
- remove(arg1) {
884
- for (const stack of this.stacks) {
885
- stack.remove(arg1);
886
- }
887
- }
888
- move(event) {
889
- for (const stack of this.stacks) {
890
- stack.move(event);
891
- }
892
- }
893
- };
894
- EditorNavigationStacks = ( (__decorate([
895
- ( (__param(1, IInstantiationService)))
896
- ], EditorNavigationStacks)));
897
- class NoOpEditorNavigationStacks {
898
- constructor() {
899
- this.onDidChange = Event.None;
900
- }
901
- canGoForward() { return false; }
902
- async goForward() { }
903
- canGoBack() { return false; }
904
- async goBack() { }
905
- async goPrevious() { }
906
- canGoLast() { return false; }
907
- async goLast() { }
908
- handleActiveEditorChange() { }
909
- handleActiveEditorSelectionChange() { }
910
- clear() { }
911
- remove() { }
912
- move() { }
913
- dispose() { }
914
- }
915
- let EditorNavigationStack = class EditorNavigationStack extends Disposable {
916
- static { EditorNavigationStack_1 = this; }
917
- static { this.MAX_STACK_SIZE = 50; }
918
- get current() {
919
- return this.stack[this.index];
920
- }
921
- set current(entry) {
922
- if (entry) {
923
- this.stack[this.index] = entry;
924
- }
925
- }
926
- constructor(filter, scope, instantiationService, editorService, editorGroupService, logService) {
927
- super();
928
- this.filter = filter;
929
- this.scope = scope;
930
- this.instantiationService = instantiationService;
931
- this.editorService = editorService;
932
- this.editorGroupService = editorGroupService;
933
- this.logService = logService;
934
- this._onDidChange = this._register(( (new Emitter())));
935
- this.onDidChange = this._onDidChange.event;
936
- this.mapEditorToDisposable = ( (new Map()));
937
- this.mapGroupToDisposable = ( (new Map()));
938
- this.editorHelper = this.instantiationService.createInstance(EditorHelper);
939
- this.stack = [];
940
- this.index = -1;
941
- this.previousIndex = -1;
942
- this.navigating = false;
943
- this.currentSelectionState = undefined;
944
- this.registerListeners();
945
- }
946
- registerListeners() {
947
- this._register(this.onDidChange(() => this.traceStack()));
948
- this._register(this.logService.onDidChangeLogLevel(() => this.traceStack()));
949
- }
950
- traceStack() {
951
- if (this.logService.getLevel() !== LogLevel.Trace) {
952
- return;
953
- }
954
- const entryLabels = [];
955
- for (const entry of this.stack) {
956
- if (typeof entry.selection?.log === 'function') {
957
- entryLabels.push(`- group: ${entry.groupId}, editor: ${entry.editor.resource?.toString()}, selection: ${entry.selection.log()}`);
958
- }
959
- else {
960
- entryLabels.push(`- group: ${entry.groupId}, editor: ${entry.editor.resource?.toString()}, selection: <none>`);
961
- }
962
- }
963
- if (entryLabels.length === 0) {
964
- this.trace(`index: ${this.index}, navigating: ${this.isNavigating()}: <empty>`);
965
- }
966
- else {
967
- this.trace(`index: ${this.index}, navigating: ${this.isNavigating()}
968
- ${entryLabels.join('\n')}
969
- `);
970
- }
971
- }
972
- trace(msg, editor = null, event) {
973
- if (this.logService.getLevel() !== LogLevel.Trace) {
974
- return;
975
- }
976
- let filterLabel;
977
- switch (this.filter) {
978
- case 0 :
979
- filterLabel = 'global';
980
- break;
981
- case 1 :
982
- filterLabel = 'edits';
983
- break;
984
- case 2 :
985
- filterLabel = 'navigation';
986
- break;
987
- }
988
- let scopeLabel;
989
- switch (this.scope) {
990
- case 0 :
991
- scopeLabel = 'default';
992
- break;
993
- case 1 :
994
- scopeLabel = 'editorGroup';
995
- break;
996
- case 2 :
997
- scopeLabel = 'editor';
998
- break;
999
- }
1000
- if (editor !== null) {
1001
- this.logService.trace(`[History stack ${filterLabel}-${scopeLabel}]: ${msg} (editor: ${editor?.resource?.toString()}, event: ${this.traceEvent(event)})`);
1002
- }
1003
- else {
1004
- this.logService.trace(`[History stack ${filterLabel}-${scopeLabel}]: ${msg}`);
1005
- }
1006
- }
1007
- traceEvent(event) {
1008
- if (!event) {
1009
- return '<none>';
1010
- }
1011
- switch (event.reason) {
1012
- case 3 : return 'edit';
1013
- case 4 : return 'navigation';
1014
- case 5 : return 'jump';
1015
- case 1 : return 'programmatic';
1016
- case 2 : return 'user';
1017
- }
1018
- }
1019
- registerGroupListeners(groupId) {
1020
- if (!( (this.mapGroupToDisposable.has(groupId)))) {
1021
- const group = this.editorGroupService.getGroup(groupId);
1022
- if (group) {
1023
- this.mapGroupToDisposable.set(groupId, group.onWillMoveEditor(e => this.onWillMoveEditor(e)));
1024
- }
1025
- }
1026
- }
1027
- onWillMoveEditor(e) {
1028
- this.trace('onWillMoveEditor()', e.editor);
1029
- if (this.scope === 1 ) {
1030
- return;
1031
- }
1032
- for (const entry of this.stack) {
1033
- if (entry.groupId !== e.groupId) {
1034
- continue;
1035
- }
1036
- if (!this.editorHelper.matchesEditor(e.editor, entry.editor)) {
1037
- continue;
1038
- }
1039
- entry.groupId = e.target;
1040
- }
1041
- }
1042
- notifyNavigation(editorPane, event) {
1043
- this.trace('notifyNavigation()', editorPane?.input, event);
1044
- const isSelectionAwareEditorPane = isEditorPaneWithSelection(editorPane);
1045
- const hasValidEditor = editorPane?.group && editorPane.input && !editorPane.input.isDisposed();
1046
- if (this.navigating) {
1047
- this.trace(`notifyNavigation() ignoring (navigating)`, editorPane?.input, event);
1048
- if (isSelectionAwareEditorPane && hasValidEditor) {
1049
- this.trace('notifyNavigation() updating current selection state', editorPane?.input, event);
1050
- this.currentSelectionState = ( (new EditorSelectionState(
1051
- { groupId: editorPane.group.id, editor: editorPane.input },
1052
- editorPane.getSelection(),
1053
- event?.reason
1054
- )));
1055
- }
1056
- else {
1057
- this.trace('notifyNavigation() dropping current selection state', editorPane?.input, event);
1058
- this.currentSelectionState = undefined;
1059
- }
1060
- }
1061
- else {
1062
- this.trace(`notifyNavigation() not ignoring`, editorPane?.input, event);
1063
- if (isSelectionAwareEditorPane && hasValidEditor) {
1064
- this.onSelectionAwareEditorNavigation(editorPane.group.id, editorPane.input, editorPane.getSelection(), event);
1065
- }
1066
- else {
1067
- this.currentSelectionState = undefined;
1068
- if (hasValidEditor) {
1069
- this.onNonSelectionAwareEditorNavigation(editorPane.group.id, editorPane.input);
1070
- }
1071
- }
1072
- }
1073
- }
1074
- onSelectionAwareEditorNavigation(groupId, editor, selection, event) {
1075
- if (this.current?.groupId === groupId && !selection && this.editorHelper.matchesEditor(this.current.editor, editor)) {
1076
- return;
1077
- }
1078
- this.trace('onSelectionAwareEditorNavigation()', editor, event);
1079
- const stateCandidate = ( (new EditorSelectionState({ groupId, editor }, selection, event?.reason)));
1080
- if (!this.currentSelectionState || this.currentSelectionState.justifiesNewNavigationEntry(stateCandidate)) {
1081
- this.doAdd(groupId, editor, stateCandidate.selection);
1082
- }
1083
- else {
1084
- this.doReplace(groupId, editor, stateCandidate.selection);
1085
- }
1086
- this.currentSelectionState = stateCandidate;
1087
- }
1088
- onNonSelectionAwareEditorNavigation(groupId, editor) {
1089
- if (this.current?.groupId === groupId && this.editorHelper.matchesEditor(this.current.editor, editor)) {
1090
- return;
1091
- }
1092
- this.trace('onNonSelectionAwareEditorNavigation()', editor);
1093
- this.doAdd(groupId, editor);
1094
- }
1095
- doAdd(groupId, editor, selection) {
1096
- if (!this.navigating) {
1097
- this.addOrReplace(groupId, editor, selection);
1098
- }
1099
- }
1100
- doReplace(groupId, editor, selection) {
1101
- if (!this.navigating) {
1102
- this.addOrReplace(groupId, editor, selection, true );
1103
- }
1104
- }
1105
- addOrReplace(groupId, editorCandidate, selection, forceReplace) {
1106
- this.registerGroupListeners(groupId);
1107
- let replace = false;
1108
- if (this.current) {
1109
- if (forceReplace) {
1110
- replace = true;
1111
- }
1112
- else if (this.shouldReplaceStackEntry(this.current, { groupId, editor: editorCandidate, selection })) {
1113
- replace = true;
1114
- }
1115
- }
1116
- const editor = this.editorHelper.preferResourceEditorInput(editorCandidate);
1117
- if (!editor) {
1118
- return;
1119
- }
1120
- if (replace) {
1121
- this.trace('replace()', editor);
1122
- }
1123
- else {
1124
- this.trace('add()', editor);
1125
- }
1126
- const newStackEntry = { groupId, editor, selection };
1127
- const removedEntries = [];
1128
- if (replace) {
1129
- if (this.current) {
1130
- removedEntries.push(this.current);
1131
- }
1132
- this.current = newStackEntry;
1133
- }
1134
- else {
1135
- if (this.stack.length > this.index + 1) {
1136
- for (let i = this.index + 1; i < this.stack.length; i++) {
1137
- removedEntries.push(this.stack[i]);
1138
- }
1139
- this.stack = this.stack.slice(0, this.index + 1);
1140
- }
1141
- this.stack.splice(this.index + 1, 0, newStackEntry);
1142
- if (this.stack.length > EditorNavigationStack_1.MAX_STACK_SIZE) {
1143
- removedEntries.push(this.stack.shift());
1144
- if (this.previousIndex >= 0) {
1145
- this.previousIndex--;
1146
- }
1147
- }
1148
- else {
1149
- this.setIndex(this.index + 1, true );
1150
- }
1151
- }
1152
- for (const removedEntry of removedEntries) {
1153
- this.editorHelper.clearOnEditorDispose(removedEntry.editor, this.mapEditorToDisposable);
1154
- }
1155
- if (isEditorInput(editor)) {
1156
- this.editorHelper.onEditorDispose(editor, () => this.remove(editor), this.mapEditorToDisposable);
1157
- }
1158
- this._onDidChange.fire();
1159
- }
1160
- shouldReplaceStackEntry(entry, candidate) {
1161
- if (entry.groupId !== candidate.groupId) {
1162
- return false;
1163
- }
1164
- if (!this.editorHelper.matchesEditor(entry.editor, candidate.editor)) {
1165
- return false;
1166
- }
1167
- if (!entry.selection) {
1168
- return true;
1169
- }
1170
- if (!candidate.selection) {
1171
- return false;
1172
- }
1173
- return entry.selection.compare(candidate.selection) === 1 ;
1174
- }
1175
- move(event) {
1176
- if (event.isOperation(2 )) {
1177
- for (const entry of this.stack) {
1178
- if (this.editorHelper.matchesEditor(event, entry.editor)) {
1179
- entry.editor = { resource: event.target.resource };
1180
- }
1181
- }
1182
- }
1183
- }
1184
- remove(arg1) {
1185
- this.stack = this.stack.filter(entry => {
1186
- const matches = typeof arg1 === 'number' ? entry.groupId === arg1 : this.editorHelper.matchesEditor(arg1, entry.editor);
1187
- if (matches) {
1188
- this.editorHelper.clearOnEditorDispose(entry.editor, this.mapEditorToDisposable);
1189
- }
1190
- return !matches;
1191
- });
1192
- this.flatten();
1193
- this.index = this.stack.length - 1;
1194
- this.previousIndex = -1;
1195
- if (typeof arg1 === 'number') {
1196
- this.mapGroupToDisposable.get(arg1)?.dispose();
1197
- this.mapGroupToDisposable.delete(arg1);
1198
- }
1199
- this._onDidChange.fire();
1200
- }
1201
- flatten() {
1202
- const flattenedStack = [];
1203
- let previousEntry = undefined;
1204
- for (const entry of this.stack) {
1205
- if (previousEntry && this.shouldReplaceStackEntry(entry, previousEntry)) {
1206
- continue;
1207
- }
1208
- previousEntry = entry;
1209
- flattenedStack.push(entry);
1210
- }
1211
- this.stack = flattenedStack;
1212
- }
1213
- clear() {
1214
- this.index = -1;
1215
- this.previousIndex = -1;
1216
- this.stack.splice(0);
1217
- for (const [, disposable] of this.mapEditorToDisposable) {
1218
- dispose(disposable);
1219
- }
1220
- this.mapEditorToDisposable.clear();
1221
- for (const [, disposable] of this.mapGroupToDisposable) {
1222
- dispose(disposable);
1223
- }
1224
- this.mapGroupToDisposable.clear();
1225
- }
1226
- dispose() {
1227
- super.dispose();
1228
- this.clear();
1229
- }
1230
- canGoForward() {
1231
- return this.stack.length > this.index + 1;
1232
- }
1233
- async goForward() {
1234
- const navigated = await this.maybeGoCurrent();
1235
- if (navigated) {
1236
- return;
1237
- }
1238
- if (!this.canGoForward()) {
1239
- return;
1240
- }
1241
- this.setIndex(this.index + 1);
1242
- return this.navigate();
1243
- }
1244
- canGoBack() {
1245
- return this.index > 0;
1246
- }
1247
- async goBack() {
1248
- const navigated = await this.maybeGoCurrent();
1249
- if (navigated) {
1250
- return;
1251
- }
1252
- if (!this.canGoBack()) {
1253
- return;
1254
- }
1255
- this.setIndex(this.index - 1);
1256
- return this.navigate();
1257
- }
1258
- async goPrevious() {
1259
- const navigated = await this.maybeGoCurrent();
1260
- if (navigated) {
1261
- return;
1262
- }
1263
- if (this.previousIndex === -1) {
1264
- return this.goBack();
1265
- }
1266
- this.setIndex(this.previousIndex);
1267
- return this.navigate();
1268
- }
1269
- canGoLast() {
1270
- return this.stack.length > 0;
1271
- }
1272
- async goLast() {
1273
- if (!this.canGoLast()) {
1274
- return;
1275
- }
1276
- this.setIndex(this.stack.length - 1);
1277
- return this.navigate();
1278
- }
1279
- async maybeGoCurrent() {
1280
- if (this.filter === 0 ) {
1281
- return false;
1282
- }
1283
- if (this.isCurrentSelectionActive()) {
1284
- return false;
1285
- }
1286
- await this.navigate();
1287
- return true;
1288
- }
1289
- isCurrentSelectionActive() {
1290
- if (!this.current?.selection) {
1291
- return false;
1292
- }
1293
- const pane = this.editorService.activeEditorPane;
1294
- if (!isEditorPaneWithSelection(pane)) {
1295
- return false;
1296
- }
1297
- if (pane.group?.id !== this.current.groupId) {
1298
- return false;
1299
- }
1300
- if (!pane.input || !this.editorHelper.matchesEditor(pane.input, this.current.editor)) {
1301
- return false;
1302
- }
1303
- const paneSelection = pane.getSelection();
1304
- if (!paneSelection) {
1305
- return false;
1306
- }
1307
- return paneSelection.compare(this.current.selection) === 1 ;
1308
- }
1309
- setIndex(newIndex, skipEvent) {
1310
- this.previousIndex = this.index;
1311
- this.index = newIndex;
1312
- if (!skipEvent) {
1313
- this._onDidChange.fire();
1314
- }
1315
- }
1316
- async navigate() {
1317
- this.navigating = true;
1318
- try {
1319
- if (this.current) {
1320
- await this.doNavigate(this.current);
1321
- }
1322
- }
1323
- finally {
1324
- this.navigating = false;
1325
- }
1326
- }
1327
- doNavigate(location) {
1328
- let options = Object.create(null);
1329
- if (location.selection) {
1330
- options = location.selection.restore(options);
1331
- }
1332
- if (isEditorInput(location.editor)) {
1333
- return this.editorService.openEditor(location.editor, options, location.groupId);
1334
- }
1335
- return this.editorService.openEditor({
1336
- ...location.editor,
1337
- options: {
1338
- ...location.editor.options,
1339
- ...options
1340
- }
1341
- }, location.groupId);
1342
- }
1343
- isNavigating() {
1344
- return this.navigating;
1345
- }
1346
- };
1347
- EditorNavigationStack = EditorNavigationStack_1 = ( (__decorate([
1348
- ( (__param(2, IInstantiationService))),
1349
- ( (__param(3, IEditorService))),
1350
- ( (__param(4, IEditorGroupsService))),
1351
- ( (__param(5, ILogService)))
1352
- ], EditorNavigationStack)));
1353
- let EditorHelper = class EditorHelper {
1354
- constructor(uriIdentityService, lifecycleService, fileService, pathService) {
1355
- this.uriIdentityService = uriIdentityService;
1356
- this.lifecycleService = lifecycleService;
1357
- this.fileService = fileService;
1358
- this.pathService = pathService;
1359
- }
1360
- preferResourceEditorInput(editor) {
1361
- const resource = EditorResourceAccessor.getOriginalUri(editor);
1362
- const hasValidResourceEditorInputScheme = resource?.scheme === Schemas.file ||
1363
- resource?.scheme === Schemas.vscodeRemote ||
1364
- resource?.scheme === Schemas.vscodeUserData ||
1365
- resource?.scheme === this.pathService.defaultUriScheme;
1366
- if (hasValidResourceEditorInputScheme) {
1367
- if (isEditorInput(editor)) {
1368
- const untypedInput = editor.toUntyped();
1369
- if (isResourceEditorInput(untypedInput)) {
1370
- return untypedInput;
1371
- }
1372
- }
1373
- return editor;
1374
- }
1375
- else {
1376
- return isEditorInput(editor) ? editor : undefined;
1377
- }
1378
- }
1379
- matchesEditor(arg1, inputB) {
1380
- if (arg1 instanceof FileChangesEvent || arg1 instanceof FileOperationEvent) {
1381
- if (isEditorInput(inputB)) {
1382
- return false;
1383
- }
1384
- if (arg1 instanceof FileChangesEvent) {
1385
- return arg1.contains(inputB.resource, 2 );
1386
- }
1387
- return this.matchesFile(inputB.resource, arg1);
1388
- }
1389
- if (isEditorInput(arg1)) {
1390
- if (isEditorInput(inputB)) {
1391
- return arg1.matches(inputB);
1392
- }
1393
- return this.matchesFile(inputB.resource, arg1);
1394
- }
1395
- if (isEditorInput(inputB)) {
1396
- return this.matchesFile(arg1.resource, inputB);
1397
- }
1398
- return arg1 && inputB && this.uriIdentityService.extUri.isEqual(arg1.resource, inputB.resource);
1399
- }
1400
- matchesFile(resource, arg2) {
1401
- if (arg2 instanceof FileChangesEvent) {
1402
- return arg2.contains(resource, 2 );
1403
- }
1404
- if (arg2 instanceof FileOperationEvent) {
1405
- return this.uriIdentityService.extUri.isEqualOrParent(resource, arg2.resource);
1406
- }
1407
- if (isEditorInput(arg2)) {
1408
- const inputResource = arg2.resource;
1409
- if (!inputResource) {
1410
- return false;
1411
- }
1412
- if (this.lifecycleService.phase >= 3 && !this.fileService.hasProvider(inputResource)) {
1413
- return false;
1414
- }
1415
- return this.uriIdentityService.extUri.isEqual(inputResource, resource);
1416
- }
1417
- return this.uriIdentityService.extUri.isEqual(arg2?.resource, resource);
1418
- }
1419
- matchesEditorIdentifier(identifier, editorPane) {
1420
- if (!editorPane?.group) {
1421
- return false;
1422
- }
1423
- if (identifier.groupId !== editorPane.group.id) {
1424
- return false;
1425
- }
1426
- return editorPane.input ? identifier.editor.matches(editorPane.input) : false;
1427
- }
1428
- onEditorDispose(editor, listener, mapEditorToDispose) {
1429
- const toDispose = Event.once(editor.onWillDispose)(() => listener());
1430
- let disposables = mapEditorToDispose.get(editor);
1431
- if (!disposables) {
1432
- disposables = ( (new DisposableStore()));
1433
- mapEditorToDispose.set(editor, disposables);
1434
- }
1435
- disposables.add(toDispose);
1436
- }
1437
- clearOnEditorDispose(editor, mapEditorToDispose) {
1438
- if (!isEditorInput(editor)) {
1439
- return;
1440
- }
1441
- const disposables = mapEditorToDispose.get(editor);
1442
- if (disposables) {
1443
- dispose(disposables);
1444
- mapEditorToDispose.delete(editor);
1445
- }
1446
- }
1447
- };
1448
- EditorHelper = ( (__decorate([
1449
- ( (__param(0, IUriIdentityService))),
1450
- ( (__param(1, ILifecycleService))),
1451
- ( (__param(2, IFileService))),
1452
- ( (__param(3, IPathService)))
1453
- ], EditorHelper)));
1454
- export { EditorNavigationStack, HistoryService };