@codingame/monaco-vscode-api 2.0.3 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (511) hide show
  1. package/api.js +15 -12
  2. package/extensions.d.ts +4 -7
  3. package/external/@xterm/xterm/typings/xterm.d.ts +22 -0
  4. package/missing-services.js +62 -6
  5. package/package.json +8 -8
  6. package/service-override/tools/editor.js +14 -0
  7. package/services.d.ts +3 -2
  8. package/services.js +6 -4
  9. package/vscode/src/vs/base/browser/browser.js +45 -30
  10. package/vscode/src/vs/base/browser/canIUse.js +1 -1
  11. package/vscode/src/vs/base/browser/defaultWorkerFactory.js +12 -5
  12. package/vscode/src/vs/base/browser/dom.js +104 -14
  13. package/vscode/src/vs/base/browser/indexedDB.js +3 -3
  14. package/vscode/src/vs/base/browser/markdownRenderer.js +29 -1
  15. package/vscode/src/vs/base/browser/mouseEvent.js +17 -3
  16. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +3 -3
  17. package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.css.js +4 -0
  18. package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.d.ts +1 -1
  19. package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.js +287 -0
  20. package/vscode/src/vs/base/browser/ui/button/button.js +9 -0
  21. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
  22. package/vscode/src/vs/base/browser/ui/dialog/dialog.js +1 -1
  23. package/vscode/src/vs/base/browser/ui/iconLabel/iconLabelHover.js +16 -5
  24. package/vscode/src/vs/base/browser/ui/list/listView.js +31 -11
  25. package/vscode/src/vs/base/browser/ui/list/listWidget.js +35 -21
  26. package/vscode/src/vs/base/browser/ui/menu/menu.js +10 -1
  27. package/vscode/src/vs/base/browser/ui/menu/menubar.js +8 -4
  28. package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +6 -5
  29. package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +469 -95
  30. package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +22 -7
  31. package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +0 -5
  32. package/vscode/src/vs/base/browser/ui/tree/media/tree.css.js +1 -1
  33. package/vscode/src/vs/base/browser/ui/tree/objectTree.js +70 -4
  34. package/vscode/src/vs/base/common/assert.js +6 -1
  35. package/vscode/src/vs/base/common/async.js +31 -6
  36. package/vscode/src/vs/base/common/codicons.js +5 -0
  37. package/vscode/src/vs/base/common/event.d.ts +0 -5
  38. package/vscode/src/vs/base/common/event.js +0 -15
  39. package/vscode/src/vs/base/common/filters.d.ts +1 -18
  40. package/vscode/src/vs/base/common/htmlContent.js +12 -6
  41. package/vscode/src/vs/base/common/iterator.js +8 -0
  42. package/vscode/src/vs/base/common/labels.js +2 -1
  43. package/vscode/src/vs/base/common/map.js +20 -1
  44. package/vscode/src/vs/base/common/observableInternal/base.d.ts +4 -0
  45. package/vscode/src/vs/base/common/observableInternal/base.js +16 -8
  46. package/vscode/src/vs/base/common/observableInternal/derived.js +4 -6
  47. package/vscode/src/vs/base/common/observableInternal/utils.js +60 -5
  48. package/vscode/src/vs/base/common/platform.js +20 -20
  49. package/vscode/src/vs/base/common/prefixTree.js +4 -3
  50. package/vscode/src/vs/base/common/product.d.ts +5 -2
  51. package/vscode/src/vs/base/common/strings.js +23 -7
  52. package/vscode/src/vs/base/common/themables.js +4 -1
  53. package/vscode/src/vs/base/common/uri.js +11 -1
  54. package/vscode/src/vs/base/common/worker/simpleWorker.js +1 -1
  55. package/vscode/src/vs/editor/browser/config/migrateOptions.js +5 -0
  56. package/vscode/src/vs/editor/browser/controller/mouseHandler.js +1 -0
  57. package/vscode/src/vs/editor/browser/controller/mouseTarget.js +14 -8
  58. package/vscode/src/vs/editor/browser/controller/pointerHandler.js +18 -11
  59. package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +1 -1
  60. package/vscode/src/vs/editor/browser/controller/textAreaInput.js +3 -3
  61. package/vscode/src/vs/{workbench/services/hover/browser → editor/browser/services}/hoverService.d.ts +7 -6
  62. package/vscode/src/vs/editor/browser/services/hoverService.js +195 -0
  63. package/vscode/src/vs/editor/browser/view.js +29 -39
  64. package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +41 -19
  65. package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +1 -1
  66. package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +30 -23
  67. package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +23 -8
  68. package/vscode/src/vs/editor/browser/viewParts/lines/viewLines.js +1 -1
  69. package/vscode/src/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +8 -1
  70. package/vscode/src/vs/editor/browser/viewParts/marginDecorations/marginDecorations.js +7 -1
  71. package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +1 -1
  72. package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +30 -3
  73. package/vscode/src/vs/editor/browser/widget/codeEditorWidget.js +39 -15
  74. package/vscode/src/vs/editor/browser/widget/diffEditor/{accessibleDiffViewer.css.js → components/accessibleDiffViewer.css.js} +1 -1
  75. package/vscode/src/vs/editor/browser/widget/diffEditor/{accessibleDiffViewer.js → components/accessibleDiffViewer.js} +43 -43
  76. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js +89 -0
  77. package/vscode/src/vs/editor/browser/widget/diffEditor/{diffEditorEditors.js → components/diffEditorEditors.js} +14 -14
  78. package/vscode/src/vs/editor/browser/widget/diffEditor/{diffEditorSash.js → components/diffEditorSash.js} +5 -5
  79. package/vscode/src/vs/editor/browser/widget/diffEditor/{lineAlignment.js → components/diffEditorViewZones/diffEditorViewZones.js} +38 -28
  80. package/vscode/src/vs/editor/browser/widget/diffEditor/{inlineDiffDeletedCodeMargin.js → components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js} +14 -14
  81. package/vscode/src/vs/editor/browser/widget/diffEditor/{renderLines.js → components/diffEditorViewZones/renderLines.js} +7 -7
  82. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +29 -38
  83. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +150 -38
  84. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +17 -16
  85. package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +104 -6
  86. package/vscode/src/vs/editor/browser/widget/diffEditor/{hideUnchangedRegionsFeature.js → features/hideUnchangedRegionsFeature.js} +51 -78
  87. package/vscode/src/vs/editor/browser/widget/diffEditor/{movedBlocksLines.js → features/movedBlocksLinesFeature.js} +23 -23
  88. package/vscode/src/vs/editor/browser/widget/diffEditor/{overviewRulerPart.js → features/overviewRulerFeature.js} +28 -28
  89. package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +145 -0
  90. package/vscode/src/vs/editor/browser/widget/diffEditor/{decorations.js → registrations.contribution.js} +18 -2
  91. package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +10 -2
  92. package/vscode/src/vs/editor/browser/widget/hoverWidget/hover.css.js +4 -0
  93. package/vscode/src/vs/editor/browser/widget/hoverWidget/hoverWidget.js +527 -0
  94. package/vscode/src/vs/editor/{contrib → browser/widget}/markdownRenderer/browser/markdownRenderer.js +11 -11
  95. package/vscode/src/vs/editor/{contrib → browser/widget}/markdownRenderer/browser/renderedMarkdown.css.js +1 -1
  96. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +11 -10
  97. package/vscode/src/vs/editor/common/config/editorOptions.js +46 -42
  98. package/vscode/src/vs/editor/common/core/editorColorRegistry.js +3 -3
  99. package/vscode/src/vs/editor/common/core/offsetRange.d.ts +2 -0
  100. package/vscode/src/vs/editor/common/core/offsetRange.js +8 -0
  101. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js +9 -0
  102. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js +50 -47
  103. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js +4 -1
  104. package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +2 -1
  105. package/vscode/src/vs/editor/common/diff/rangeMapping.js +13 -2
  106. package/vscode/src/vs/editor/common/languages.d.ts +10 -2
  107. package/vscode/src/vs/editor/common/model/textModel.js +19 -13
  108. package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +1 -1
  109. package/vscode/src/vs/editor/common/model.d.ts +19 -1
  110. package/vscode/src/vs/editor/common/model.js +2 -1
  111. package/vscode/src/vs/editor/common/services/editorSimpleWorker.js +2 -1
  112. package/vscode/src/vs/editor/common/services/getIconClasses.js +4 -1
  113. package/vscode/src/vs/editor/common/services/semanticTokensProviderStyling.js +3 -3
  114. package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +9 -8
  115. package/vscode/src/vs/editor/common/standaloneStrings.js +18 -18
  116. package/vscode/src/vs/editor/common/viewEvents.js +2 -0
  117. package/vscode/src/vs/editor/common/viewModel/glyphLanesModel.js +55 -0
  118. package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +4 -1
  119. package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +5 -1
  120. package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -0
  121. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +46 -20
  122. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +1 -1
  123. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +38 -11
  124. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +56 -101
  125. package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.js +3 -2
  126. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorContributions.js +2 -2
  127. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +10 -29
  128. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +4 -4
  129. package/vscode/src/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js +51 -0
  130. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +19 -1
  131. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +38 -10
  132. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +29 -1
  133. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/edit.js +10 -3
  134. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +3 -17
  135. package/vscode/src/vs/editor/contrib/find/browser/findController.js +3 -35
  136. package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +26 -6
  137. package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +6 -6
  138. package/vscode/src/vs/editor/contrib/format/browser/format.js +9 -9
  139. package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +5 -5
  140. package/vscode/src/vs/editor/contrib/gotoError/browser/media/gotoErrorWidget.css.js +1 -1
  141. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +2 -2
  142. package/vscode/src/vs/editor/contrib/hover/browser/contentHover.js +85 -76
  143. package/vscode/src/vs/editor/contrib/hover/browser/hover.js +120 -90
  144. package/vscode/src/vs/editor/contrib/hover/browser/marginHover.js +18 -6
  145. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +1 -1
  146. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +2 -2
  147. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHints.js +4 -2
  148. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +56 -38
  149. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +1 -1
  150. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +12 -0
  151. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +4 -0
  152. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +2 -2
  153. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +50 -53
  154. package/vscode/src/vs/editor/contrib/message/browser/messageController.js +5 -2
  155. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +1 -1
  156. package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +5 -1
  157. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css.js +1 -1
  158. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +4 -4
  159. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +8 -5
  160. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +58 -46
  161. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +34 -7
  162. package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +30 -38
  163. package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.js +2 -2
  164. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +11 -3
  165. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +18 -7
  166. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +8 -10
  167. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
  168. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +7 -6
  169. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -0
  170. package/vscode/src/vs/editor/editor.api.d.ts +82 -11
  171. package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +8 -3
  172. package/vscode/src/vs/editor/standalone/browser/standaloneLayoutService.js +4 -3
  173. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +22 -11
  174. package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +1 -1
  175. package/vscode/src/vs/nls.d.ts +6 -0
  176. package/vscode/src/vs/platform/accessibility/browser/accessibilityService.js +4 -1
  177. package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +2 -16
  178. package/vscode/src/vs/platform/accessibility/common/accessibility.js +1 -2
  179. package/vscode/src/vs/platform/action/common/actionCommonCategories.d.ts +7 -20
  180. package/vscode/src/vs/platform/action/common/actionCommonCategories.js +8 -8
  181. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +0 -1
  182. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css.js +1 -1
  183. package/vscode/src/vs/platform/actions/browser/buttonbar.js +2 -0
  184. package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +5 -0
  185. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.css.js +1 -1
  186. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +2 -2
  187. package/vscode/src/vs/platform/actions/common/actions.d.ts +9 -1
  188. package/vscode/src/vs/platform/actions/common/actions.js +12 -1
  189. package/vscode/src/vs/platform/audioCues/browser/audioCueService.d.ts +11 -1
  190. package/vscode/src/vs/platform/audioCues/browser/audioCueService.js +174 -28
  191. package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +38 -5
  192. package/vscode/src/vs/platform/configuration/common/configuration.d.ts +0 -1
  193. package/vscode/src/vs/platform/environment/common/environmentService.js +1 -1
  194. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +5 -1
  195. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +24 -5
  196. package/vscode/src/vs/platform/extensions/common/extensions.d.ts +6 -1
  197. package/vscode/src/vs/{workbench/services → platform}/hover/browser/hover.d.ts +6 -8
  198. package/vscode/src/vs/platform/hover/browser/hover.js +3 -0
  199. package/vscode/src/vs/platform/instantiation/common/instantiationService.js +14 -4
  200. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +11 -4
  201. package/vscode/src/vs/platform/keybinding/common/keybinding.d.ts +7 -0
  202. package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +6 -0
  203. package/vscode/src/vs/platform/list/browser/listService.js +7 -5
  204. package/vscode/src/vs/platform/log/common/bufferLog.js +1 -0
  205. package/vscode/src/vs/platform/log/common/log.d.ts +0 -1
  206. package/vscode/src/vs/platform/log/common/log.js +1 -2
  207. package/vscode/src/vs/platform/notification/common/notification.d.ts +36 -19
  208. package/vscode/src/vs/platform/notification/common/notification.js +9 -3
  209. package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +4 -1
  210. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +50 -48
  211. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +3 -5
  212. package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +49 -66
  213. package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +11 -3
  214. package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +16 -2
  215. package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +230 -26
  216. package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.d.ts +1 -0
  217. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -0
  218. package/vscode/src/vs/platform/theme/browser/defaultStyles.js +5 -3
  219. package/vscode/src/vs/platform/theme/common/colorRegistry.js +28 -9
  220. package/vscode/src/vs/platform/tunnel/common/tunnel.d.ts +2 -0
  221. package/vscode/src/vs/platform/window/common/window.js +14 -8
  222. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +97 -78
  223. package/vscode/src/vs/workbench/api/common/extHost.protocol.js +1 -1
  224. package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +1 -22
  225. package/vscode/src/vs/workbench/api/common/extHostChat.js +0 -6
  226. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +31 -36
  227. package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +1 -1
  228. package/vscode/src/vs/workbench/api/common/extHostComments.js +6 -1
  229. package/vscode/src/vs/workbench/api/common/extHostConsoleForwarder.js +1 -0
  230. package/vscode/src/vs/workbench/api/common/extHostDebugService.js +130 -6
  231. package/vscode/src/vs/workbench/api/common/extHostDocumentContentProviders.js +28 -15
  232. package/vscode/src/vs/workbench/api/common/extHostDocuments.js +4 -5
  233. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +5 -1
  234. package/vscode/src/vs/workbench/api/common/extHostFileSystem.js +1 -2
  235. package/vscode/src/vs/workbench/api/common/extHostFileSystemConsumer.js +2 -2
  236. package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +35 -33
  237. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +40 -13
  238. package/vscode/src/vs/workbench/api/common/extHostMessageService.js +10 -1
  239. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +11 -7
  240. package/vscode/src/vs/workbench/api/common/extHostNotebookEditors.js +2 -3
  241. package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +29 -4
  242. package/vscode/src/vs/workbench/api/common/extHostProfileContentHandler.js +1 -1
  243. package/vscode/src/vs/workbench/api/common/extHostProgress.js +1 -7
  244. package/vscode/src/vs/workbench/api/common/extHostSCM.js +49 -93
  245. package/vscode/src/vs/workbench/api/common/extHostSpeech.js +21 -0
  246. package/vscode/src/vs/workbench/api/common/extHostTask.js +18 -22
  247. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -0
  248. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +3 -3
  249. package/vscode/src/vs/workbench/api/common/extHostTesting.js +55 -36
  250. package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +5 -2
  251. package/vscode/src/vs/workbench/api/common/extHostTextEditors.js +6 -7
  252. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +6 -3
  253. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +4 -2
  254. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +74 -12
  255. package/vscode/src/vs/workbench/api/common/extHostTypes.js +27 -8
  256. package/vscode/src/vs/workbench/api/worker/extHostConsoleForwarder.js +1 -1
  257. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +172 -103
  258. package/vscode/src/vs/workbench/browser/actions/windowActions.js +13 -17
  259. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +34 -34
  260. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
  261. package/vscode/src/vs/workbench/browser/dnd.js +2 -2
  262. package/vscode/src/vs/workbench/browser/labels.js +34 -4
  263. package/vscode/src/vs/workbench/browser/part.js +2 -2
  264. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +4 -4
  265. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +1 -1
  266. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +801 -0
  267. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +140 -0
  268. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +410 -0
  269. package/vscode/src/vs/workbench/browser/parts/editor/editor.js +1 -2
  270. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +304 -303
  271. package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +101 -47
  272. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +114 -47
  273. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +1313 -0
  274. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +190 -0
  275. package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +344 -0
  276. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +1 -1
  277. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +10 -10
  278. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +27 -42
  279. package/vscode/src/vs/workbench/browser/parts/editor/editorTitleControl.js +152 -0
  280. package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +8 -8
  281. package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css.js +4 -0
  282. package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +4 -0
  283. package/vscode/src/vs/workbench/browser/parts/editor/media/editortitlecontrol.css.js +4 -0
  284. package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css.js +4 -0
  285. package/vscode/src/vs/workbench/browser/parts/editor/media/singleeditortabscontrol.css.js +4 -0
  286. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +1626 -0
  287. package/vscode/src/vs/workbench/browser/parts/editor/multiRowEditorTabsControl.js +150 -0
  288. package/vscode/src/vs/workbench/browser/parts/editor/noEditorTabsControl.js +52 -0
  289. package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.js +260 -0
  290. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
  291. package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +2 -2
  292. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +39 -36
  293. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +68 -28
  294. package/vscode/src/vs/workbench/browser/parts/panel/media/panelpart.css.js +1 -1
  295. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +15 -14
  296. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -17
  297. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +1 -1
  298. package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +1 -1
  299. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -10
  300. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +2 -1
  301. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.d.ts +2 -1
  302. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +18 -17
  303. package/vscode/src/vs/workbench/browser/quickaccess.js +33 -1
  304. package/vscode/src/vs/workbench/browser/web.api.d.ts +6 -0
  305. package/vscode/src/vs/workbench/browser/window.js +92 -9
  306. package/vscode/src/vs/workbench/browser/workbench.contribution.js +114 -65
  307. package/vscode/src/vs/workbench/common/component.d.ts +5 -1
  308. package/vscode/src/vs/workbench/common/component.js +6 -0
  309. package/vscode/src/vs/workbench/common/configuration.js +11 -1
  310. package/vscode/src/vs/workbench/common/contextkeys.js +8 -4
  311. package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +6 -0
  312. package/vscode/src/vs/workbench/common/editor/editorInput.js +3 -0
  313. package/vscode/src/vs/workbench/common/editor/filteredEditorGroupModel.js +107 -0
  314. package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +6 -3
  315. package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +21 -3
  316. package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +2 -1
  317. package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +9 -6
  318. package/vscode/src/vs/workbench/common/editor.d.ts +16 -4
  319. package/vscode/src/vs/workbench/common/editor.js +7 -1
  320. package/vscode/src/vs/workbench/common/memento.js +33 -12
  321. package/vscode/src/vs/workbench/common/notifications.js +30 -7
  322. package/vscode/src/vs/workbench/common/theme.js +61 -1
  323. package/vscode/src/vs/workbench/common/views.d.ts +1 -28
  324. package/vscode/src/vs/workbench/common/views.js +1 -2
  325. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +232 -19
  326. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +9 -9
  327. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +1 -0
  328. package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +19 -31
  329. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +8 -3
  330. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +57 -38
  331. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +4 -4
  332. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +9 -2
  333. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +7 -0
  334. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +31 -20
  335. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +93 -49
  336. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +30 -6
  337. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.js +24 -12
  338. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +9 -5
  339. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +12 -1
  340. package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
  341. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +2 -1
  342. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +21 -43
  343. package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +6 -6
  344. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +4 -4
  345. package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css.js +1 -1
  346. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
  347. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +0 -3
  348. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +1 -1
  349. package/vscode/src/vs/workbench/contrib/comments/browser/{comments.contribution.js → commentsAccessibility.js} +36 -128
  350. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +41 -18
  351. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +202 -0
  352. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +27 -4
  353. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +165 -52
  354. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +48 -31
  355. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +6 -1
  356. package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +1 -1
  357. package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +40 -10
  358. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +28 -1
  359. package/vscode/src/vs/workbench/contrib/debug/common/debugContext.js +14 -0
  360. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +52 -23
  361. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
  362. package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +164 -0
  363. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +10 -0
  364. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +285 -0
  365. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +123 -78
  366. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +10 -0
  367. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +3 -19
  368. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +1 -2
  369. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +8 -9
  370. package/vscode/src/vs/workbench/contrib/files/browser/files.configuration.contribution.js +70 -2
  371. package/vscode/src/vs/workbench/contrib/files/browser/files.d.ts +5 -2
  372. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +2 -2
  373. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +34 -17
  374. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +5 -4
  375. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +48 -14
  376. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +16 -8
  377. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.css.js +1 -1
  378. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +317 -321
  379. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatLivePreviewWidget.js +17 -24
  380. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingService.js +3 -0
  381. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +306 -130
  382. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +3 -0
  383. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +385 -613
  384. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +69 -64
  385. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +71 -3
  386. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +39 -44
  387. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +5 -3
  388. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +1 -1
  389. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +1 -1
  390. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
  391. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
  392. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css.js +1 -1
  393. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookEditorStickyScroll.css.js +1 -1
  394. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +38 -7
  395. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +36 -8
  396. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +32 -12
  397. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.js +24 -14
  398. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +4 -4
  399. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +1 -1
  400. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.js +1 -2
  401. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatActions.js +264 -12
  402. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatController.js +60 -27
  403. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +12 -5
  404. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +2 -2
  405. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +2 -2
  406. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +12 -9
  407. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +6 -3
  408. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +1 -0
  409. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +188 -155
  410. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +4 -4
  411. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +10 -3
  412. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +16 -33
  413. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +9 -7
  414. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +6 -2
  415. package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.js +2 -1
  416. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +29 -14
  417. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +15 -3
  418. package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.js +2 -2
  419. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +22 -6
  420. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +1 -1
  421. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +16 -17
  422. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +78 -50
  423. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +15 -1
  424. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +25 -45
  425. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +12 -4
  426. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcon.js +2 -1
  427. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +33 -36
  428. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +1 -1
  429. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +3 -0
  430. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +5 -8
  431. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +15 -27
  432. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +3 -3
  433. package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +38 -22
  434. package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.js +5 -2
  435. package/vscode/src/vs/workbench/contrib/testing/common/testProfileService.js +60 -40
  436. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
  437. package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.js +15 -11
  438. package/vscode/src/vs/workbench/contrib/testing/common/testService.js +26 -1
  439. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +24 -23
  440. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +1 -1
  441. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +124 -26
  442. package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +68 -0
  443. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +76 -36
  444. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +1 -0
  445. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +1 -0
  446. package/vscode/src/vs/workbench/services/editor/browser/editorService.js +15 -3
  447. package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.js +10 -1
  448. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +51 -43
  449. package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +13 -8
  450. package/vscode/src/vs/workbench/services/editor/common/editorService.js +2 -1
  451. package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +10 -10
  452. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +8 -8
  453. package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +7 -7
  454. package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.js +1 -0
  455. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.d.ts +29 -9
  456. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +160 -63
  457. package/vscode/src/vs/workbench/services/host/browser/host.d.ts +8 -0
  458. package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +60 -72
  459. package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +0 -4
  460. package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.js +56 -0
  461. package/vscode/src/vs/workbench/services/output/common/output.js +2 -2
  462. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +10 -0
  463. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +10 -0
  464. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +2 -1
  465. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +5 -4
  466. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +21 -8
  467. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +4 -0
  468. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +3 -0
  469. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +4 -4
  470. package/vscode/src/vs/workbench/{browser/parts/views → services/views/browser}/viewsService.js +20 -15
  471. package/vscode/src/vs/workbench/services/views/common/viewsService.d.ts +34 -0
  472. package/vscode/src/vs/workbench/services/{hover/browser/hover.js → views/common/viewsService.js} +2 -2
  473. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.d.ts +6 -1
  474. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +5 -2
  475. package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +1 -0
  476. package/vscode-dts/vscode.proposed.chatAgents2.d.ts +112 -47
  477. package/vscode-dts/vscode.proposed.chatAgents2Additions.d.ts +68 -9
  478. package/vscode-dts/{vscode.proposed.scmInputBoxActionButton.d.ts → vscode.proposed.codeActionRanges.d.ts} +8 -10
  479. package/vscode-dts/{vscode.proposed.readonlyMessage.d.ts → vscode.proposed.commentReactor.d.ts} +3 -4
  480. package/vscode-dts/vscode.proposed.contribMultiDiffEditorMenus.d.ts +6 -0
  481. package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemGroupMenu.d.ts +8 -0
  482. package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemMenu.d.ts +8 -0
  483. package/vscode-dts/vscode.proposed.debugVisualization.d.ts +100 -0
  484. package/vscode-dts/vscode.proposed.defaultChatAgent.d.ts +1 -1
  485. package/vscode-dts/vscode.proposed.interactive.d.ts +13 -16
  486. package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +4 -1
  487. package/vscode-dts/vscode.proposed.resolvers.d.ts +4 -0
  488. package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +4 -10
  489. package/vscode-dts/vscode.proposed.scmMultiDiffEditor.d.ts +34 -0
  490. package/vscode-dts/vscode.proposed.speech.d.ts +17 -3
  491. package/vscode-dts/vscode.proposed.testCoverage.d.ts +7 -1
  492. package/vscode-dts/vscode.proposed.tunnelFactory.d.ts +4 -0
  493. package/vscode/src/vs/editor/browser/widget/diffEditor/colors.js +0 -17
  494. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorDecorations.js +0 -231
  495. package/vscode/src/vs/editor/browser/widget/diffEditor/outlineModel.js +0 -299
  496. package/vscode/src/vs/editor/browser/widget/diffEditor/workerBasedDocumentDiffProvider.js +0 -101
  497. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +0 -390
  498. package/vscode/src/vs/workbench/services/editor/common/editorGroupColumn.d.ts +0 -10
  499. package/vscode/src/vs/workbench/services/suggest/browser/media/suggest.css.js +0 -4
  500. package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.d.ts +0 -28
  501. package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.js +0 -10
  502. package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.d.ts +0 -30
  503. package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.js +0 -98
  504. package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.d.ts +0 -10
  505. package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +0 -428
  506. package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +0 -83
  507. package/vscode-dts/vscode.proposed.chatVariables.d.ts +0 -39
  508. package/vscode-dts/vscode.proposed.interactiveUserActions.d.ts +0 -77
  509. package/vscode-dts/vscode.proposed.saveEditor.d.ts +0 -35
  510. package/vscode-dts/vscode.proposed.scmInputBoxValueProvider.d.ts +0 -25
  511. package/vscode-dts/vscode.proposed.testingActiveProfile.d.ts +0 -21
@@ -0,0 +1,190 @@
1
+ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import { localizeWithPath } from '../../../../nls.js';
3
+ import { Disposable, DisposableStore } from '../../../../base/common/lifecycle.js';
4
+ import { isMacintosh, isWeb, OS } from '../../../../base/common/platform.js';
5
+ import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.js';
6
+ import { IWorkspaceContextService } from '../../../../platform/workspace/common/workspace.js';
7
+ import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
8
+ import { h, append, $, clearNode } from '../../../../base/browser/dom.js';
9
+ import { KeybindingLabel } from '../../../../base/browser/ui/keybindingLabel/keybindingLabel.js';
10
+ import { CommandsRegistry } from '../../../../platform/commands/common/commands.js';
11
+ import { IContextKeyService, ContextKeyExpr } from '../../../../platform/contextkey/common/contextkey.js';
12
+ import { defaultKeybindingLabelStyles } from '../../../../platform/theme/browser/defaultStyles.js';
13
+ import { registerColor, transparent, editorForeground } from '../../../../platform/theme/common/colorRegistry.js';
14
+ registerColor('editorWatermark.foreground', { dark: ( transparent(editorForeground, 0.6)), light: ( transparent(editorForeground, 0.68)), hcDark: editorForeground, hcLight: editorForeground }, ( localizeWithPath(
15
+ 'vs/workbench/browser/parts/editor/editorGroupWatermark',
16
+ 'editorLineHighlight',
17
+ 'Foreground color for the labels in the editor watermark.'
18
+ )));
19
+ const showCommands = { text: ( localizeWithPath(
20
+ 'vs/workbench/browser/parts/editor/editorGroupWatermark',
21
+ 'watermark.showCommands',
22
+ "Show All Commands"
23
+ )), id: 'workbench.action.showCommands' };
24
+ const quickAccess = { text: ( localizeWithPath(
25
+ 'vs/workbench/browser/parts/editor/editorGroupWatermark',
26
+ 'watermark.quickAccess',
27
+ "Go to File"
28
+ )), id: 'workbench.action.quickOpen' };
29
+ const openFileNonMacOnly = { text: ( localizeWithPath(
30
+ 'vs/workbench/browser/parts/editor/editorGroupWatermark',
31
+ 'watermark.openFile',
32
+ "Open File"
33
+ )), id: 'workbench.action.files.openFile', mac: false };
34
+ const openFolderNonMacOnly = { text: ( localizeWithPath(
35
+ 'vs/workbench/browser/parts/editor/editorGroupWatermark',
36
+ 'watermark.openFolder',
37
+ "Open Folder"
38
+ )), id: 'workbench.action.files.openFolder', mac: false };
39
+ const openFileOrFolderMacOnly = { text: ( localizeWithPath(
40
+ 'vs/workbench/browser/parts/editor/editorGroupWatermark',
41
+ 'watermark.openFileFolder',
42
+ "Open File or Folder"
43
+ )), id: 'workbench.action.files.openFileFolder', mac: true };
44
+ const openRecent = { text: ( localizeWithPath(
45
+ 'vs/workbench/browser/parts/editor/editorGroupWatermark',
46
+ 'watermark.openRecent',
47
+ "Open Recent"
48
+ )), id: 'workbench.action.openRecent' };
49
+ const newUntitledFileMacOnly = { text: ( localizeWithPath(
50
+ 'vs/workbench/browser/parts/editor/editorGroupWatermark',
51
+ 'watermark.newUntitledFile',
52
+ "New Untitled Text File"
53
+ )), id: 'workbench.action.files.newUntitledFile', mac: true };
54
+ const findInFiles = { text: ( localizeWithPath(
55
+ 'vs/workbench/browser/parts/editor/editorGroupWatermark',
56
+ 'watermark.findInFiles',
57
+ "Find in Files"
58
+ )), id: 'workbench.action.findInFiles' };
59
+ const toggleTerminal = { text: ( localizeWithPath(
60
+ 'vs/workbench/browser/parts/editor/editorGroupWatermark',
61
+ { key: 'watermark.toggleTerminal', comment: ['toggle is a verb here'] },
62
+ "Toggle Terminal"
63
+ )), id: 'workbench.action.terminal.toggleTerminal', when: ( ContextKeyExpr.equals('terminalProcessSupported', true)) };
64
+ const startDebugging = { text: ( localizeWithPath(
65
+ 'vs/workbench/browser/parts/editor/editorGroupWatermark',
66
+ 'watermark.startDebugging',
67
+ "Start Debugging"
68
+ )), id: 'workbench.action.debug.start', when: ( ContextKeyExpr.equals('terminalProcessSupported', true)) };
69
+ const toggleFullscreen = { text: ( localizeWithPath(
70
+ 'vs/workbench/browser/parts/editor/editorGroupWatermark',
71
+ { key: 'watermark.toggleFullscreen', comment: ['toggle is a verb here'] },
72
+ "Toggle Full Screen"
73
+ )), id: 'workbench.action.toggleFullScreen', when: ( ( ContextKeyExpr.equals('terminalProcessSupported', true)).negate()) };
74
+ const showSettings = { text: ( localizeWithPath(
75
+ 'vs/workbench/browser/parts/editor/editorGroupWatermark',
76
+ 'watermark.showSettings',
77
+ "Show Settings"
78
+ )), id: 'workbench.action.openSettings', when: ( ( ContextKeyExpr.equals('terminalProcessSupported', true)).negate()) };
79
+ const noFolderEntries = [
80
+ showCommands,
81
+ openFileNonMacOnly,
82
+ openFolderNonMacOnly,
83
+ openFileOrFolderMacOnly,
84
+ openRecent,
85
+ newUntitledFileMacOnly
86
+ ];
87
+ const folderEntries = [
88
+ showCommands,
89
+ quickAccess,
90
+ findInFiles,
91
+ startDebugging,
92
+ toggleTerminal,
93
+ toggleFullscreen,
94
+ showSettings
95
+ ];
96
+ let EditorGroupWatermark = class EditorGroupWatermark extends Disposable {
97
+ constructor(container, keybindingService, contextService, contextKeyService, configurationService) {
98
+ super();
99
+ this.keybindingService = keybindingService;
100
+ this.contextService = contextService;
101
+ this.contextKeyService = contextKeyService;
102
+ this.configurationService = configurationService;
103
+ this.transientDisposables = this._register(( new DisposableStore()));
104
+ this.enabled = false;
105
+ const elements = h('.editor-group-watermark', [
106
+ h('.letterpress'),
107
+ h('.shortcuts@shortcuts'),
108
+ ]);
109
+ append(container, elements.root);
110
+ this.shortcuts = elements.shortcuts;
111
+ this.registerListeners();
112
+ this.workbenchState = contextService.getWorkbenchState();
113
+ this.render();
114
+ }
115
+ registerListeners() {
116
+ this._register(this.configurationService.onDidChangeConfiguration(e => {
117
+ if (e.affectsConfiguration('workbench.tips.enabled')) {
118
+ this.render();
119
+ }
120
+ }));
121
+ this._register(this.contextService.onDidChangeWorkbenchState(workbenchState => {
122
+ if (this.workbenchState === workbenchState) {
123
+ return;
124
+ }
125
+ this.workbenchState = workbenchState;
126
+ this.render();
127
+ }));
128
+ const allEntriesWhenClauses = ( [...noFolderEntries, ...folderEntries].filter(entry => entry.when !== undefined).map(entry => entry.when));
129
+ const allKeys = ( new Set());
130
+ allEntriesWhenClauses.forEach(when => ( when.keys()).forEach(key => allKeys.add(key)));
131
+ this._register(this.contextKeyService.onDidChangeContext(e => {
132
+ if (e.affectsSome(allKeys)) {
133
+ this.render();
134
+ }
135
+ }));
136
+ }
137
+ render() {
138
+ const enabled = this.configurationService.getValue('workbench.tips.enabled');
139
+ if (enabled === this.enabled) {
140
+ return;
141
+ }
142
+ this.enabled = enabled;
143
+ this.clear();
144
+ if (!enabled) {
145
+ return;
146
+ }
147
+ const box = append(this.shortcuts, $('.watermark-box'));
148
+ const folder = this.workbenchState !== 1 ;
149
+ const selected = (folder ? folderEntries : noFolderEntries)
150
+ .filter(entry => !('when' in entry) || this.contextKeyService.contextMatchesRules(entry.when))
151
+ .filter(entry => !('mac' in entry) || entry.mac === (isMacintosh && !isWeb))
152
+ .filter(entry => !!CommandsRegistry.getCommand(entry.id));
153
+ const update = () => {
154
+ clearNode(box);
155
+ selected.forEach(entry => {
156
+ const keys = this.keybindingService.lookupKeybinding(entry.id);
157
+ if (!keys) {
158
+ return;
159
+ }
160
+ const dl = append(box, $('dl'));
161
+ const dt = append(dl, $('dt'));
162
+ dt.textContent = entry.text;
163
+ const dd = append(dl, $('dd'));
164
+ const keybinding = ( new KeybindingLabel(
165
+ dd,
166
+ OS,
167
+ { renderUnboundKeybindings: true, ...defaultKeybindingLabelStyles }
168
+ ));
169
+ keybinding.set(keys);
170
+ });
171
+ };
172
+ update();
173
+ this.transientDisposables.add(this.keybindingService.onDidUpdateKeybindings(update));
174
+ }
175
+ clear() {
176
+ clearNode(this.shortcuts);
177
+ this.transientDisposables.clear();
178
+ }
179
+ dispose() {
180
+ super.dispose();
181
+ this.clear();
182
+ }
183
+ };
184
+ EditorGroupWatermark = ( __decorate([
185
+ ( __param(1, IKeybindingService)),
186
+ ( __param(2, IWorkspaceContextService)),
187
+ ( __param(3, IContextKeyService)),
188
+ ( __param(4, IConfigurationService))
189
+ ], EditorGroupWatermark));
190
+ export { EditorGroupWatermark };
@@ -0,0 +1,344 @@
1
+ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import { localizeWithPath } from '../../../../nls.js';
3
+ import { toAction } from '../../../../base/common/actions.js';
4
+ import { Emitter } from '../../../../base/common/event.js';
5
+ import Severity from '../../../../base/common/severity.js';
6
+ import { Disposable, DisposableStore } from '../../../../base/common/lifecycle.js';
7
+ import { EditorExtensions, createEditorOpenError, isEditorOpenError } from '../../../common/editor.js';
8
+ import { getWindow, getActiveElement, isAncestor, show, Dimension, hide } from '../../../../base/browser/dom.js';
9
+ import { Registry } from '../../../../platform/registry/common/platform.js';
10
+ import { IWorkbenchLayoutService } from '../../../services/layout/browser/layoutService.js';
11
+ import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
12
+ import { LongRunningOperation, IEditorProgressService } from '../../../../platform/progress/common/progress.js';
13
+ import { DEFAULT_EDITOR_MIN_DIMENSIONS, DEFAULT_EDITOR_MAX_DIMENSIONS } from './editor.js';
14
+ import { assertIsDefined } from '../../../../base/common/types.js';
15
+ import { IWorkspaceTrustManagementService } from '../../../../platform/workspace/common/workspaceTrust.js';
16
+ import { ErrorPlaceholderEditor, WorkspaceTrustRequiredPlaceholderEditor } from './editorPlaceholder.js';
17
+ import { EditorOpenSource } from '../../../../platform/editor/common/editor.js';
18
+ import { isCancellationError } from '../../../../base/common/errors.js';
19
+ import { toErrorMessage } from '../../../../base/common/errorMessage.js';
20
+ import { ILogService } from '../../../../platform/log/common/log.js';
21
+ import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
22
+ import { IHostService } from '../../../services/host/browser/host.js';
23
+ import { mainWindow } from '../../../../base/browser/window.js';
24
+ import { IDialogService } from '../../../../platform/dialogs/common/dialogs.js';
25
+ let EditorPanes = class EditorPanes extends Disposable {
26
+ get minimumWidth() { return this._activeEditorPane?.minimumWidth ?? DEFAULT_EDITOR_MIN_DIMENSIONS.width; }
27
+ get minimumHeight() { return this._activeEditorPane?.minimumHeight ?? DEFAULT_EDITOR_MIN_DIMENSIONS.height; }
28
+ get maximumWidth() { return this._activeEditorPane?.maximumWidth ?? DEFAULT_EDITOR_MAX_DIMENSIONS.width; }
29
+ get maximumHeight() { return this._activeEditorPane?.maximumHeight ?? DEFAULT_EDITOR_MAX_DIMENSIONS.height; }
30
+ get activeEditorPane() { return this._activeEditorPane; }
31
+ constructor(editorGroupParent, editorPanesParent, groupView, layoutService, instantiationService, editorProgressService, workspaceTrustService, logService, dialogService, hostService) {
32
+ super();
33
+ this.editorGroupParent = editorGroupParent;
34
+ this.editorPanesParent = editorPanesParent;
35
+ this.groupView = groupView;
36
+ this.layoutService = layoutService;
37
+ this.instantiationService = instantiationService;
38
+ this.editorProgressService = editorProgressService;
39
+ this.workspaceTrustService = workspaceTrustService;
40
+ this.logService = logService;
41
+ this.dialogService = dialogService;
42
+ this.hostService = hostService;
43
+ this._onDidFocus = this._register(( new Emitter()));
44
+ this.onDidFocus = this._onDidFocus.event;
45
+ this._onDidChangeSizeConstraints = this._register(( new Emitter()));
46
+ this.onDidChangeSizeConstraints = this._onDidChangeSizeConstraints.event;
47
+ this._activeEditorPane = null;
48
+ this.editorPanes = [];
49
+ this.activeEditorPaneDisposables = this._register(( new DisposableStore()));
50
+ this.editorOperation = this._register(( new LongRunningOperation(this.editorProgressService)));
51
+ this.editorPanesRegistry = ( Registry.as(EditorExtensions.EditorPane));
52
+ this.registerListeners();
53
+ }
54
+ registerListeners() {
55
+ this._register(this.workspaceTrustService.onDidChangeTrust(() => this.onDidChangeWorkspaceTrust()));
56
+ }
57
+ onDidChangeWorkspaceTrust() {
58
+ const editor = this._activeEditorPane?.input;
59
+ const options = this._activeEditorPane?.options;
60
+ if (editor?.hasCapability(16 )) {
61
+ this.groupView.openEditor(editor, options);
62
+ }
63
+ }
64
+ async openEditor(editor, options, internalOptions, context = Object.create(null)) {
65
+ try {
66
+ if (getWindow(this.editorGroupParent) !== mainWindow && editor.hasCapability(1024 )) {
67
+ return await this.doShowError(createEditorOpenError(( localizeWithPath(
68
+ 'vs/workbench/browser/parts/editor/editorPanes',
69
+ 'editorUnsupportedInAuxWindow',
70
+ "This type of editor cannot be opened in other windows yet."
71
+ )), [
72
+ toAction({
73
+ id: 'workbench.editor.action.closeEditor', label: ( localizeWithPath(
74
+ 'vs/workbench/browser/parts/editor/editorPanes',
75
+ 'openFolder',
76
+ "Close Editor"
77
+ )), run: async () => {
78
+ return this.groupView.closeEditor(editor);
79
+ }
80
+ })
81
+ ], { forceMessage: true, forceSeverity: Severity.Warning }), editor, options, internalOptions, context);
82
+ }
83
+ else {
84
+ return await this.doOpenEditor(this.getEditorPaneDescriptor(editor), editor, options, internalOptions, context);
85
+ }
86
+ }
87
+ catch (error) {
88
+ if (options?.ignoreError) {
89
+ return { error };
90
+ }
91
+ return this.doShowError(error, editor, options, internalOptions, context);
92
+ }
93
+ }
94
+ async doShowError(error, editor, options, internalOptions, context) {
95
+ this.logService.error(error);
96
+ let errorHandled = false;
97
+ if (options?.source === EditorOpenSource.USER && (!isEditorOpenError(error) || error.allowDialog)) {
98
+ errorHandled = await this.doShowErrorDialog(error, editor);
99
+ }
100
+ if (errorHandled) {
101
+ return { error };
102
+ }
103
+ const editorPlaceholderOptions = { ...options };
104
+ if (!isCancellationError(error)) {
105
+ editorPlaceholderOptions.error = error;
106
+ }
107
+ return {
108
+ ...(await this.doOpenEditor(ErrorPlaceholderEditor.DESCRIPTOR, editor, editorPlaceholderOptions, internalOptions, context)),
109
+ error
110
+ };
111
+ }
112
+ async doShowErrorDialog(error, editor) {
113
+ let severity = Severity.Error;
114
+ let message = undefined;
115
+ let detail = toErrorMessage(error);
116
+ let errorActions = undefined;
117
+ if (isEditorOpenError(error)) {
118
+ errorActions = error.actions;
119
+ severity = error.forceSeverity ?? Severity.Error;
120
+ if (error.forceMessage) {
121
+ message = error.message;
122
+ detail = undefined;
123
+ }
124
+ }
125
+ if (!message) {
126
+ message = ( localizeWithPath(
127
+ 'vs/workbench/browser/parts/editor/editorPanes',
128
+ 'editorOpenErrorDialog',
129
+ "Unable to open '{0}'",
130
+ editor.getName()
131
+ ));
132
+ }
133
+ const buttons = [];
134
+ if (errorActions && errorActions.length > 0) {
135
+ for (const errorAction of errorActions) {
136
+ buttons.push({
137
+ label: errorAction.label,
138
+ run: () => errorAction
139
+ });
140
+ }
141
+ }
142
+ else {
143
+ buttons.push({
144
+ label: ( localizeWithPath(
145
+ 'vs/workbench/browser/parts/editor/editorPanes',
146
+ { key: 'ok', comment: ['&& denotes a mnemonic'] },
147
+ "&&OK"
148
+ )),
149
+ run: () => undefined
150
+ });
151
+ }
152
+ let cancelButton = undefined;
153
+ if (buttons.length === 1) {
154
+ cancelButton = {
155
+ run: () => {
156
+ errorHandled = true;
157
+ return undefined;
158
+ }
159
+ };
160
+ }
161
+ let errorHandled = false;
162
+ const { result } = await this.dialogService.prompt({
163
+ type: severity,
164
+ message,
165
+ detail,
166
+ buttons,
167
+ cancelButton
168
+ });
169
+ if (result) {
170
+ const errorActionResult = result.run();
171
+ if (errorActionResult instanceof Promise) {
172
+ errorActionResult.catch(error => this.dialogService.error(toErrorMessage(error)));
173
+ }
174
+ errorHandled = true;
175
+ }
176
+ return errorHandled;
177
+ }
178
+ async doOpenEditor(descriptor, editor, options, internalOptions, context = Object.create(null)) {
179
+ const pane = this.doShowEditorPane(descriptor);
180
+ const activeElement = getActiveElement();
181
+ const { changed, cancelled } = await this.doSetInput(pane, editor, options, context);
182
+ if (!cancelled) {
183
+ const focus = !options || !options.preserveFocus;
184
+ if (focus && this.shouldRestoreFocus(activeElement)) {
185
+ pane.focus();
186
+ }
187
+ else if (!internalOptions?.preserveWindowOrder) {
188
+ this.hostService.moveTop(getWindow(this.editorGroupParent));
189
+ }
190
+ }
191
+ return { pane, changed, cancelled };
192
+ }
193
+ shouldRestoreFocus(expectedActiveElement) {
194
+ if (!this.layoutService.isRestored()) {
195
+ return true;
196
+ }
197
+ if (!expectedActiveElement) {
198
+ return true;
199
+ }
200
+ const activeElement = getActiveElement();
201
+ if (!activeElement || activeElement === expectedActiveElement.ownerDocument.body) {
202
+ return true;
203
+ }
204
+ const same = expectedActiveElement === activeElement;
205
+ if (same) {
206
+ return true;
207
+ }
208
+ if (activeElement.tagName !== 'INPUT' && activeElement.tagName !== 'TEXTAREA') {
209
+ return true;
210
+ }
211
+ if (isAncestor(activeElement, this.editorGroupParent)) {
212
+ return true;
213
+ }
214
+ return false;
215
+ }
216
+ getEditorPaneDescriptor(editor) {
217
+ if (editor.hasCapability(16 ) && !this.workspaceTrustService.isWorkspaceTrusted()) {
218
+ return WorkspaceTrustRequiredPlaceholderEditor.DESCRIPTOR;
219
+ }
220
+ return assertIsDefined(this.editorPanesRegistry.getEditorPane(editor));
221
+ }
222
+ doShowEditorPane(descriptor) {
223
+ if (this._activeEditorPane && descriptor.describes(this._activeEditorPane)) {
224
+ return this._activeEditorPane;
225
+ }
226
+ this.doHideActiveEditorPane();
227
+ const editorPane = this.doCreateEditorPane(descriptor);
228
+ this.doSetActiveEditorPane(editorPane);
229
+ const container = assertIsDefined(editorPane.getContainer());
230
+ this.editorPanesParent.appendChild(container);
231
+ show(container);
232
+ editorPane.setVisible(true, this.groupView);
233
+ if (this.pagePosition) {
234
+ editorPane.layout(( new Dimension(this.pagePosition.width, this.pagePosition.height)), { top: this.pagePosition.top, left: this.pagePosition.left });
235
+ }
236
+ if (this.boundarySashes) {
237
+ editorPane.setBoundarySashes(this.boundarySashes);
238
+ }
239
+ return editorPane;
240
+ }
241
+ doCreateEditorPane(descriptor) {
242
+ const editorPane = this.doInstantiateEditorPane(descriptor);
243
+ if (!editorPane.getContainer()) {
244
+ const editorPaneContainer = document.createElement('div');
245
+ editorPaneContainer.classList.add('editor-instance');
246
+ editorPane.create(editorPaneContainer);
247
+ }
248
+ return editorPane;
249
+ }
250
+ doInstantiateEditorPane(descriptor) {
251
+ const existingEditorPane = this.editorPanes.find(editorPane => descriptor.describes(editorPane));
252
+ if (existingEditorPane) {
253
+ return existingEditorPane;
254
+ }
255
+ const editorPane = this._register(descriptor.instantiate(this.instantiationService));
256
+ this.editorPanes.push(editorPane);
257
+ return editorPane;
258
+ }
259
+ doSetActiveEditorPane(editorPane) {
260
+ this._activeEditorPane = editorPane;
261
+ this.activeEditorPaneDisposables.clear();
262
+ if (editorPane) {
263
+ this.activeEditorPaneDisposables.add(editorPane.onDidChangeSizeConstraints(e => this._onDidChangeSizeConstraints.fire(e)));
264
+ this.activeEditorPaneDisposables.add(editorPane.onDidFocus(() => this._onDidFocus.fire()));
265
+ }
266
+ this._onDidChangeSizeConstraints.fire(undefined);
267
+ }
268
+ async doSetInput(editorPane, editor, options, context) {
269
+ const inputMatches = editorPane.input?.matches(editor);
270
+ if (inputMatches && !options?.forceReload) {
271
+ editorPane.setOptions(options);
272
+ return { changed: false, cancelled: false };
273
+ }
274
+ const operation = this.editorOperation.start(this.layoutService.isRestored() ? 800 : 3200);
275
+ let cancelled = false;
276
+ try {
277
+ editorPane.clearInput();
278
+ await editorPane.setInput(editor, options, context, operation.token);
279
+ if (!operation.isCurrent()) {
280
+ cancelled = true;
281
+ }
282
+ }
283
+ catch (error) {
284
+ if (!operation.isCurrent()) {
285
+ cancelled = true;
286
+ }
287
+ else {
288
+ throw error;
289
+ }
290
+ }
291
+ finally {
292
+ operation.stop();
293
+ }
294
+ return { changed: !inputMatches, cancelled };
295
+ }
296
+ doHideActiveEditorPane() {
297
+ if (!this._activeEditorPane) {
298
+ return;
299
+ }
300
+ this.editorOperation.stop();
301
+ this.safeRun(() => this._activeEditorPane?.clearInput());
302
+ this.safeRun(() => this._activeEditorPane?.setVisible(false, this.groupView));
303
+ const editorPaneContainer = this._activeEditorPane.getContainer();
304
+ if (editorPaneContainer) {
305
+ this.editorPanesParent.removeChild(editorPaneContainer);
306
+ hide(editorPaneContainer);
307
+ }
308
+ this.doSetActiveEditorPane(null);
309
+ }
310
+ closeEditor(editor) {
311
+ if (this._activeEditorPane?.input && editor.matches(this._activeEditorPane.input)) {
312
+ this.doHideActiveEditorPane();
313
+ }
314
+ }
315
+ setVisible(visible) {
316
+ this.safeRun(() => this._activeEditorPane?.setVisible(visible, this.groupView));
317
+ }
318
+ layout(pagePosition) {
319
+ this.pagePosition = pagePosition;
320
+ this.safeRun(() => this._activeEditorPane?.layout(( new Dimension(pagePosition.width, pagePosition.height)), pagePosition));
321
+ }
322
+ setBoundarySashes(sashes) {
323
+ this.boundarySashes = sashes;
324
+ this.safeRun(() => this._activeEditorPane?.setBoundarySashes(sashes));
325
+ }
326
+ safeRun(fn) {
327
+ try {
328
+ fn();
329
+ }
330
+ catch (error) {
331
+ this.logService.error(error);
332
+ }
333
+ }
334
+ };
335
+ EditorPanes = ( __decorate([
336
+ ( __param(3, IWorkbenchLayoutService)),
337
+ ( __param(4, IInstantiationService)),
338
+ ( __param(5, IEditorProgressService)),
339
+ ( __param(6, IWorkspaceTrustManagementService)),
340
+ ( __param(7, ILogService)),
341
+ ( __param(8, IDialogService)),
342
+ ( __param(9, IHostService))
343
+ ], EditorPanes));
344
+ export { EditorPanes };
@@ -134,7 +134,7 @@ let BaseEditorQuickAccessProvider = class BaseEditorQuickAccessProvider extends
134
134
  )) : nameAndDescription;
135
135
  })(),
136
136
  description,
137
- iconClasses: getIconClasses(this.modelService, this.languageService, resource).concat(editor.getLabelExtraClasses()),
137
+ iconClasses: getIconClasses(this.modelService, this.languageService, resource, undefined, editor.getIcon()).concat(editor.getLabelExtraClasses()),
138
138
  italic: !this.editorGroupService.getGroup(groupId)?.isPinned(editor),
139
139
  buttons: (() => {
140
140
  return [
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
2
  import './media/editorstatus.css.js';
3
- import { localizeWithPath } from '../../../../nls.js';
3
+ import { localizeWithPath, localize2WithPath } from '../../../../nls.js';
4
4
  import { runAtThisOrScheduleAtNextAnimationFrame, getWindowById } from '../../../../base/browser/dom.js';
5
5
  import { format, splitLines, compare } from '../../../../base/common/strings.js';
6
6
  import { extname, basename, isEqual } from '../../../../base/common/resources.js';
@@ -986,11 +986,11 @@ class ChangeLanguageAction extends Action2 {
986
986
  constructor() {
987
987
  super({
988
988
  id: ChangeLanguageAction.ID,
989
- title: { value: ( localizeWithPath(
989
+ title: ( localize2WithPath(
990
990
  'vs/workbench/browser/parts/editor/editorStatus',
991
991
  'changeMode',
992
- "Change Language Mode"
993
- )), original: 'Change Language Mode' },
992
+ 'Change Language Mode'
993
+ )),
994
994
  f1: true,
995
995
  keybinding: {
996
996
  weight: 200 ,
@@ -1219,11 +1219,11 @@ class ChangeEOLAction extends Action2 {
1219
1219
  constructor() {
1220
1220
  super({
1221
1221
  id: 'workbench.action.editor.changeEOL',
1222
- title: { value: ( localizeWithPath(
1222
+ title: ( localize2WithPath(
1223
1223
  'vs/workbench/browser/parts/editor/editorStatus',
1224
1224
  'changeEndOfLine',
1225
- "Change End of Line Sequence"
1226
- )), original: 'Change End of Line Sequence' },
1225
+ 'Change End of Line Sequence'
1226
+ )),
1227
1227
  f1: true
1228
1228
  });
1229
1229
  }
@@ -1274,11 +1274,11 @@ class ChangeEncodingAction extends Action2 {
1274
1274
  constructor() {
1275
1275
  super({
1276
1276
  id: 'workbench.action.editor.changeEncoding',
1277
- title: { value: ( localizeWithPath(
1277
+ title: ( localize2WithPath(
1278
1278
  'vs/workbench/browser/parts/editor/editorStatus',
1279
1279
  'changeEncoding',
1280
- "Change File Encoding"
1281
- )), original: 'Change File Encoding' },
1280
+ 'Change File Encoding'
1281
+ )),
1282
1282
  f1: true
1283
1283
  });
1284
1284
  }