@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
@@ -9,7 +9,6 @@ import { EditOperation } from '../../../../editor/common/core/editOperation.js';
9
9
  import { Range } from '../../../../editor/common/core/range.js';
10
10
  import { Selection } from '../../../../editor/common/core/selection.js';
11
11
  import { ITextModelService } from '../../../../editor/common/services/resolverService.js';
12
- import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
13
12
  import { ContextKeyExpr } from '../../../../platform/contextkey/common/contextkey.js';
14
13
  import { IFileService } from '../../../../platform/files/common/files.js';
15
14
  import { createDecorator } from '../../../../platform/instantiation/common/instantiation.js';
@@ -17,12 +16,11 @@ import { ITextFileService } from '../../textfile/common/textfiles.js';
17
16
  import { IUserDataProfileService } from '../../userDataProfile/common/userDataProfile.js';
18
17
  const IKeybindingEditingService = ( createDecorator('keybindingEditingService'));
19
18
  let KeybindingsEditingService = class KeybindingsEditingService extends Disposable {
20
- constructor(textModelResolverService, textFileService, fileService, configurationService, userDataProfileService) {
19
+ constructor(textModelResolverService, textFileService, fileService, userDataProfileService) {
21
20
  super();
22
21
  this.textModelResolverService = textModelResolverService;
23
22
  this.textFileService = textFileService;
24
23
  this.fileService = fileService;
25
- this.configurationService = configurationService;
26
24
  this.userDataProfileService = userDataProfileService;
27
25
  this.queue = ( new Queue());
28
26
  }
@@ -59,29 +57,35 @@ let KeybindingsEditingService = class KeybindingsEditingService extends Disposab
59
57
  reference.dispose();
60
58
  }
61
59
  }
62
- doRemoveKeybinding(keybindingItem) {
63
- return this.resolveAndValidate()
64
- .then(reference => {
65
- const model = reference.object.textEditorModel;
66
- if (keybindingItem.isDefault) {
67
- this.removeDefaultKeybinding(keybindingItem, model);
68
- }
69
- else {
70
- this.removeUserKeybinding(keybindingItem, model);
71
- }
72
- return this.save().finally(() => reference.dispose());
73
- });
60
+ async doRemoveKeybinding(keybindingItem) {
61
+ const reference = await this.resolveAndValidate();
62
+ const model = reference.object.textEditorModel;
63
+ if (keybindingItem.isDefault) {
64
+ this.removeDefaultKeybinding(keybindingItem, model);
65
+ }
66
+ else {
67
+ this.removeUserKeybinding(keybindingItem, model);
68
+ }
69
+ try {
70
+ return await this.save();
71
+ }
72
+ finally {
73
+ reference.dispose();
74
+ }
74
75
  }
75
- doResetKeybinding(keybindingItem) {
76
- return this.resolveAndValidate()
77
- .then(reference => {
78
- const model = reference.object.textEditorModel;
79
- if (!keybindingItem.isDefault) {
80
- this.removeUserKeybinding(keybindingItem, model);
81
- this.removeUnassignedDefaultKeybinding(keybindingItem, model);
82
- }
83
- return this.save().finally(() => reference.dispose());
84
- });
76
+ async doResetKeybinding(keybindingItem) {
77
+ const reference = await this.resolveAndValidate();
78
+ const model = reference.object.textEditorModel;
79
+ if (!keybindingItem.isDefault) {
80
+ this.removeUserKeybinding(keybindingItem, model);
81
+ this.removeUnassignedDefaultKeybinding(keybindingItem, model);
82
+ }
83
+ try {
84
+ return await this.save();
85
+ }
86
+ finally {
87
+ reference.dispose();
88
+ }
85
89
  }
86
90
  save() {
87
91
  return this.textFileService.save(this.userDataProfileService.currentProfile.keybindingsResource);
@@ -204,76 +208,60 @@ let KeybindingsEditingService = class KeybindingsEditingService extends Disposab
204
208
  startPosition.column
205
209
  ))], [editOperation], () => []);
206
210
  }
207
- resolveModelReference() {
208
- return this.fileService.exists(this.userDataProfileService.currentProfile.keybindingsResource)
209
- .then(exists => {
210
- const EOL = this.configurationService.getValue('files', { overrideIdentifier: 'json' })['eol'];
211
- const result = exists ? Promise.resolve(null) : this.textFileService.write(this.userDataProfileService.currentProfile.keybindingsResource, this.getEmptyContent(EOL), { encoding: 'utf8' });
212
- return result.then(() => this.textModelResolverService.createModelReference(this.userDataProfileService.currentProfile.keybindingsResource));
213
- });
211
+ async resolveModelReference() {
212
+ const exists = await this.fileService.exists(this.userDataProfileService.currentProfile.keybindingsResource);
213
+ if (!exists) {
214
+ await this.textFileService.write(this.userDataProfileService.currentProfile.keybindingsResource, this.getEmptyContent(), { encoding: 'utf8' });
215
+ }
216
+ return this.textModelResolverService.createModelReference(this.userDataProfileService.currentProfile.keybindingsResource);
214
217
  }
215
- resolveAndValidate() {
218
+ async resolveAndValidate() {
216
219
  if (this.textFileService.isDirty(this.userDataProfileService.currentProfile.keybindingsResource)) {
217
- return Promise.reject(( new Error(( localizeWithPath(
218
- 'vs/workbench/services/keybinding/common/keybindingEditing',
219
- 'errorKeybindingsFileDirty',
220
- "Unable to write because the keybindings configuration file has unsaved changes. Please save it first and then try again."
221
- )))));
220
+ throw new Error(localizeWithPath('vs/workbench/services/keybinding/common/keybindingEditing', 'errorKeybindingsFileDirty', "Unable to write because the keybindings configuration file has unsaved changes. Please save it first and then try again."));
222
221
  }
223
- return this.resolveModelReference()
224
- .then(reference => {
225
- const model = reference.object.textEditorModel;
226
- const EOL = model.getEOL();
227
- if (model.getValue()) {
228
- const parsed = this.parse(model);
229
- if (parsed.parseErrors.length) {
222
+ const reference = await this.resolveModelReference();
223
+ const model = reference.object.textEditorModel;
224
+ const EOL = model.getEOL();
225
+ if (model.getValue()) {
226
+ const parsed = this.parse(model);
227
+ if (parsed.parseErrors.length) {
228
+ reference.dispose();
229
+ throw new Error(localizeWithPath('vs/workbench/services/keybinding/common/keybindingEditing', 'parseErrors', "Unable to write to the keybindings configuration file. Please open it to correct errors/warnings in the file and try again."));
230
+ }
231
+ if (parsed.result) {
232
+ if (!Array.isArray(parsed.result)) {
230
233
  reference.dispose();
231
- return Promise.reject(( new Error(( localizeWithPath(
232
- 'vs/workbench/services/keybinding/common/keybindingEditing',
233
- 'parseErrors',
234
- "Unable to write to the keybindings configuration file. Please open it to correct errors/warnings in the file and try again."
235
- )))));
236
- }
237
- if (parsed.result) {
238
- if (!Array.isArray(parsed.result)) {
239
- reference.dispose();
240
- return Promise.reject(( new Error(( localizeWithPath(
241
- 'vs/workbench/services/keybinding/common/keybindingEditing',
242
- 'errorInvalidConfiguration',
243
- "Unable to write to the keybindings configuration file. It has an object which is not of type Array. Please open the file to clean up and try again."
244
- )))));
245
- }
246
- }
247
- else {
248
- const content = EOL + '[]';
249
- this.applyEditsToBuffer({ content, length: content.length, offset: model.getValue().length }, model);
234
+ throw new Error(localizeWithPath('vs/workbench/services/keybinding/common/keybindingEditing', 'errorInvalidConfiguration', "Unable to write to the keybindings configuration file. It has an object which is not of type Array. Please open the file to clean up and try again."));
250
235
  }
251
236
  }
252
237
  else {
253
- const content = this.getEmptyContent(EOL);
254
- this.applyEditsToBuffer({ content, length: content.length, offset: 0 }, model);
238
+ const content = EOL + '[]';
239
+ this.applyEditsToBuffer({ content, length: content.length, offset: model.getValue().length }, model);
255
240
  }
256
- return reference;
257
- });
241
+ }
242
+ else {
243
+ const content = this.getEmptyContent();
244
+ this.applyEditsToBuffer({ content, length: content.length, offset: 0 }, model);
245
+ }
246
+ return reference;
258
247
  }
259
248
  parse(model) {
260
249
  const parseErrors = [];
261
250
  const result = parse(model.getValue(), parseErrors, { allowTrailingComma: true, allowEmptyContent: true });
262
251
  return { result, parseErrors };
263
252
  }
264
- getEmptyContent(EOL) {
253
+ getEmptyContent() {
265
254
  return '// ' + ( localizeWithPath(
266
255
  'vs/workbench/services/keybinding/common/keybindingEditing',
267
256
  'emptyKeybindingsHeader',
268
257
  "Place your key bindings in this file to override the defaults"
269
- )) + EOL + '[]';
258
+ )) + '\n[\n]';
270
259
  }
271
260
  };
272
261
  KeybindingsEditingService = ( __decorate([
273
262
  ( __param(0, ITextModelService)),
274
263
  ( __param(1, ITextFileService)),
275
264
  ( __param(2, IFileService)),
276
- ( __param(3, IConfigurationService)),
277
- ( __param(4, IUserDataProfileService))
265
+ ( __param(3, IUserDataProfileService))
278
266
  ], KeybindingsEditingService));
279
267
  export { IKeybindingEditingService, KeybindingsEditingService };
@@ -31,10 +31,6 @@ interface IWorkbenchLayoutService extends ILayoutService {
31
31
  * Emits when the zen mode is enabled or disabled.
32
32
  */
33
33
  readonly onDidChangeZenMode: Event<boolean>;
34
- /**
35
- * Emits when fullscreen is enabled or disabled.
36
- */
37
- readonly onDidChangeFullscreen: Event<boolean>;
38
34
  /**
39
35
  * Emits when the target window is maximized or unmaximized.
40
36
  */
@@ -0,0 +1,56 @@
1
+ import { encodeBase64, VSBuffer, decodeBase64 } from '../../../../base/common/buffer.js';
2
+ import { ResourceMap } from '../../../../base/common/map.js';
3
+ import { Schemas } from '../../../../base/common/network.js';
4
+ import { createDecorator } from '../../../../platform/instantiation/common/instantiation.js';
5
+ const INotebookDocumentService = ( createDecorator('notebookDocumentService'));
6
+ const _lengths = ['W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f'];
7
+ const _padRegexp = ( new RegExp(`^[${_lengths.join('')}]+`));
8
+ const _radix = 7;
9
+ function parse(cell) {
10
+ if (cell.scheme !== Schemas.vscodeNotebookCell) {
11
+ return undefined;
12
+ }
13
+ const idx = cell.fragment.indexOf('s');
14
+ if (idx < 0) {
15
+ return undefined;
16
+ }
17
+ const handle = parseInt(cell.fragment.substring(0, idx).replace(_padRegexp, ''), _radix);
18
+ const _scheme = ( decodeBase64(cell.fragment.substring(idx + 1)).toString());
19
+ if (isNaN(handle)) {
20
+ return undefined;
21
+ }
22
+ return {
23
+ handle,
24
+ notebook: cell.with({ scheme: _scheme, fragment: null })
25
+ };
26
+ }
27
+ function generate(notebook, handle) {
28
+ const s = ( handle.toString(_radix));
29
+ const p = s.length < _lengths.length ? _lengths[s.length - 1] : 'z';
30
+ const fragment = `${p}${s}s${encodeBase64(VSBuffer.fromString(notebook.scheme), true, true)}`;
31
+ return notebook.with({ scheme: Schemas.vscodeNotebookCell, fragment });
32
+ }
33
+ class NotebookDocumentWorkbenchService {
34
+ constructor() {
35
+ this._documents = ( new ResourceMap());
36
+ }
37
+ getNotebook(uri) {
38
+ if (uri.scheme === Schemas.vscodeNotebookCell) {
39
+ const cellUri = parse(uri);
40
+ if (cellUri) {
41
+ const document = this._documents.get(cellUri.notebook);
42
+ if (document) {
43
+ return document;
44
+ }
45
+ }
46
+ }
47
+ return this._documents.get(uri);
48
+ }
49
+ addNotebookDocument(document) {
50
+ this._documents.set(document.uri, document);
51
+ }
52
+ removeNotebookDocument(document) {
53
+ this._documents.delete(document.uri);
54
+ }
55
+ }
56
+ export { INotebookDocumentService, NotebookDocumentWorkbenchService, generate, parse };
@@ -9,7 +9,7 @@ const LOG_MIME = 'text/x-code-log-output';
9
9
  const LOG_MODE_ID = 'log';
10
10
  const OUTPUT_VIEW_ID = 'workbench.panel.output';
11
11
  const CONTEXT_IN_OUTPUT = ( new RawContextKey('inOutput', false));
12
- const CONTEXT_ACTIVE_LOG_OUTPUT = ( new RawContextKey('activeLogOutput', false));
12
+ const CONTEXT_ACTIVE_FILE_OUTPUT = ( new RawContextKey('activeLogOutput', false));
13
13
  const CONTEXT_OUTPUT_SCROLL_LOCK = ( new RawContextKey(`outputView.scrollLock`, false));
14
14
  const IOutputService = ( createDecorator('outputService'));
15
15
  var OutputChannelUpdateMode;
@@ -50,4 +50,4 @@ class OutputChannelRegistry {
50
50
  }
51
51
  Registry.add(Extensions.OutputChannels, ( new OutputChannelRegistry()));
52
52
  const ACTIVE_OUTPUT_CHANNEL_CONTEXT = ( new RawContextKey('activeOutputChannel', ''));
53
- export { ACTIVE_OUTPUT_CHANNEL_CONTEXT, CONTEXT_ACTIVE_LOG_OUTPUT, CONTEXT_IN_OUTPUT, CONTEXT_OUTPUT_SCROLL_LOCK, Extensions, IOutputService, LOG_MIME, LOG_MODE_ID, OUTPUT_MIME, OUTPUT_MODE_ID, OUTPUT_SCHEME, OUTPUT_VIEW_ID, OutputChannelUpdateMode };
53
+ export { ACTIVE_OUTPUT_CHANNEL_CONTEXT, CONTEXT_ACTIVE_FILE_OUTPUT, CONTEXT_IN_OUTPUT, CONTEXT_OUTPUT_SCROLL_LOCK, Extensions, IOutputService, LOG_MIME, LOG_MODE_ID, OUTPUT_MIME, OUTPUT_MODE_ID, OUTPUT_SCHEME, OUTPUT_VIEW_ID, OutputChannelUpdateMode };
@@ -1,10 +1,17 @@
1
1
  import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import { Codicon } from '../../../../base/common/codicons.js';
2
3
  import { OS } from '../../../../base/common/platform.js';
3
4
  import { localizeWithPath } from '../../../../nls.js';
4
5
  import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
6
+ import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
5
7
  import { EditorInput } from '../../../common/editor/editorInput.js';
6
8
  import { KeybindingsEditorModel } from './keybindingsEditorModel.js';
7
9
  var KeybindingsEditorInput_1;
10
+ const KeybindingsEditorIcon = registerIcon('keybindings-editor-label-icon', Codicon.keyboard, ( localizeWithPath(
11
+ 'vs/workbench/services/preferences/browser/keybindingsEditorInput',
12
+ 'keybindingsEditorLabelIcon',
13
+ 'Icon of the keybindings editor label.'
14
+ )));
8
15
  let KeybindingsEditorInput = class KeybindingsEditorInput extends EditorInput {
9
16
  static { KeybindingsEditorInput_1 = this; }
10
17
  static { this.ID = 'workbench.input.keybindings'; }
@@ -24,6 +31,9 @@ let KeybindingsEditorInput = class KeybindingsEditorInput extends EditorInput {
24
31
  "Keyboard Shortcuts"
25
32
  ));
26
33
  }
34
+ getIcon() {
35
+ return KeybindingsEditorIcon;
36
+ }
27
37
  async resolve() {
28
38
  return this.keybindingsModel;
29
39
  }
@@ -1,10 +1,17 @@
1
1
  import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import { Codicon } from '../../../../base/common/codicons.js';
2
3
  import { Schemas } from '../../../../base/common/network.js';
3
4
  import { URI } from '../../../../base/common/uri.js';
4
5
  import { localizeWithPath } from '../../../../nls.js';
6
+ import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
5
7
  import { EditorInput } from '../../../common/editor/editorInput.js';
6
8
  import { IPreferencesService } from './preferences.js';
7
9
  var SettingsEditor2Input_1;
10
+ const SettingsEditorIcon = registerIcon('settings-editor-label-icon', Codicon.settings, ( localizeWithPath(
11
+ 'vs/workbench/services/preferences/common/preferencesEditorInput',
12
+ 'settingsEditorLabelIcon',
13
+ 'Icon of the settings editor label.'
14
+ )));
8
15
  let SettingsEditor2Input = class SettingsEditor2Input extends EditorInput {
9
16
  static { SettingsEditor2Input_1 = this; }
10
17
  static { this.ID = 'workbench.input.settings2'; }
@@ -29,6 +36,9 @@ let SettingsEditor2Input = class SettingsEditor2Input extends EditorInput {
29
36
  "Settings"
30
37
  ));
31
38
  }
39
+ getIcon() {
40
+ return SettingsEditorIcon;
41
+ }
32
42
  async resolve() {
33
43
  return this._settingsModel;
34
44
  }
@@ -12,6 +12,7 @@ const TUNNEL_VIEW_ID = '~remote.forwardedPorts';
12
12
  const TUNNEL_VIEW_CONTAINER_ID = '~remote.forwardedPortsContainer';
13
13
  const PORT_AUTO_FORWARD_SETTING = 'remote.autoForwardPorts';
14
14
  const PORT_AUTO_SOURCE_SETTING = 'remote.autoForwardPortsSource';
15
+ const PORT_AUTO_FALLBACK_SETTING = 'remote.autoForwardPortsFallback';
15
16
  const PORT_AUTO_SOURCE_SETTING_PROCESS = 'process';
16
17
  const PORT_AUTO_SOURCE_SETTING_OUTPUT = 'output';
17
18
  const PORT_AUTO_SOURCE_SETTING_HYBRID = 'hybrid';
@@ -206,4 +207,4 @@ RemoteExplorerService = ( __decorate([
206
207
  ( __param(1, ITunnelService)),
207
208
  ( __param(2, IInstantiationService))
208
209
  ], RemoteExplorerService));
209
- export { IRemoteExplorerService, PORT_AUTO_FORWARD_SETTING, PORT_AUTO_SOURCE_SETTING, PORT_AUTO_SOURCE_SETTING_HYBRID, PORT_AUTO_SOURCE_SETTING_OUTPUT, PORT_AUTO_SOURCE_SETTING_PROCESS, REMOTE_EXPLORER_TYPE_KEY, RemoteExplorerService, TUNNEL_VIEW_CONTAINER_ID, TUNNEL_VIEW_ID, TunnelEditId, TunnelType };
210
+ export { IRemoteExplorerService, PORT_AUTO_FALLBACK_SETTING, PORT_AUTO_FORWARD_SETTING, PORT_AUTO_SOURCE_SETTING, PORT_AUTO_SOURCE_SETTING_HYBRID, PORT_AUTO_SOURCE_SETTING_OUTPUT, PORT_AUTO_SOURCE_SETTING_PROCESS, REMOTE_EXPLORER_TYPE_KEY, RemoteExplorerService, TUNNEL_VIEW_CONTAINER_ID, TUNNEL_VIEW_ID, TunnelEditId, TunnelType };
@@ -87,8 +87,8 @@ let TextFileEditorModel = class TextFileEditorModel extends BaseTextEditorModel
87
87
  }
88
88
  registerListeners() {
89
89
  this._register(this.fileService.onDidFilesChange(e => this.onDidFilesChange(e)));
90
- this._register(this.filesConfigurationService.onFilesAssociationChange(() => this.onFilesAssociationChange()));
91
- this._register(this.filesConfigurationService.onReadonlyChange(() => this._onDidChangeReadonly.fire()));
90
+ this._register(this.filesConfigurationService.onDidChangeFilesAssociation(() => this.onDidChangeFilesAssociation()));
91
+ this._register(this.filesConfigurationService.onDidChangeReadonly(() => this._onDidChangeReadonly.fire()));
92
92
  }
93
93
  async onDidFilesChange(e) {
94
94
  let fileEventImpactsModel = false;
@@ -130,7 +130,7 @@ let TextFileEditorModel = class TextFileEditorModel extends BaseTextEditorModel
130
130
  this._onDidChangeOrphaned.fire();
131
131
  }
132
132
  }
133
- onFilesAssociationChange() {
133
+ onDidChangeFilesAssociation() {
134
134
  if (!this.isResolved()) {
135
135
  return;
136
136
  }
@@ -291,7 +291,8 @@ let TextFileEditorModel = class TextFileEditorModel extends BaseTextEditorModel
291
291
  try {
292
292
  const content = await this.textFileService.readStream(this.resource, {
293
293
  acceptTextOnly: !allowBinary,
294
- etag, encoding: this.preferredEncoding,
294
+ etag,
295
+ encoding: this.preferredEncoding,
295
296
  limits: options?.limits
296
297
  });
297
298
  this.setOrphaned(false);
@@ -5,12 +5,13 @@ import { ITextFileService } from '../../textfile/common/textfiles.js';
5
5
  import { ILabelService } from '../../../../platform/label/common/label.js';
6
6
  import { IEditorService } from '../../editor/common/editorService.js';
7
7
  import { IFileService } from '../../../../platform/files/common/files.js';
8
- import { toLocalResource, isEqual } from '../../../../base/common/resources.js';
8
+ import { isEqual, toLocalResource } from '../../../../base/common/resources.js';
9
9
  import { IWorkbenchEnvironmentService } from '../../environment/common/environmentService.js';
10
10
  import { IPathService } from '../../path/common/pathService.js';
11
11
  import { IFilesConfigurationService } from '../../filesConfiguration/common/filesConfigurationService.js';
12
12
  import { ITextModelService } from '../../../../editor/common/services/resolverService.js';
13
- import { dispose } from '../../../../base/common/lifecycle.js';
13
+ import { DisposableStore, dispose } from '../../../../base/common/lifecycle.js';
14
+ import { ITextResourceConfigurationService } from '../../../../editor/common/services/textResourceConfiguration.js';
14
15
  var UntitledTextEditorInput_1;
15
16
  let UntitledTextEditorInput = class UntitledTextEditorInput extends AbstractTextResourceEditorInput {
16
17
  static { UntitledTextEditorInput_1 = this; }
@@ -21,20 +22,29 @@ let UntitledTextEditorInput = class UntitledTextEditorInput extends AbstractText
21
22
  get editorId() {
22
23
  return DEFAULT_EDITOR_ASSOCIATION.id;
23
24
  }
24
- constructor(model, textFileService, labelService, editorService, fileService, environmentService, pathService, filesConfigurationService, textModelService) {
25
- super(model.resource, undefined, editorService, textFileService, labelService, fileService, filesConfigurationService);
25
+ constructor(model, textFileService, labelService, editorService, fileService, environmentService, pathService, filesConfigurationService, textModelService, textResourceConfigurationService) {
26
+ super(model.resource, undefined, editorService, textFileService, labelService, fileService, filesConfigurationService, textResourceConfigurationService);
26
27
  this.model = model;
27
28
  this.environmentService = environmentService;
28
29
  this.pathService = pathService;
29
30
  this.textModelService = textModelService;
30
31
  this.modelResolve = undefined;
32
+ this.modelDisposables = this._register(( new DisposableStore()));
31
33
  this.cachedUntitledTextEditorModelReference = undefined;
32
34
  this.registerModelListeners(model);
35
+ this._register(this.textFileService.untitled.onDidCreate(model => this.onDidCreateUntitledModel(model)));
33
36
  }
34
37
  registerModelListeners(model) {
35
- this._register(model.onDidChangeDirty(() => this._onDidChangeDirty.fire()));
36
- this._register(model.onDidChangeName(() => this._onDidChangeLabel.fire()));
37
- this._register(model.onDidRevert(() => this.dispose()));
38
+ this.modelDisposables.clear();
39
+ this.modelDisposables.add(model.onDidChangeDirty(() => this._onDidChangeDirty.fire()));
40
+ this.modelDisposables.add(model.onDidChangeName(() => this._onDidChangeLabel.fire()));
41
+ this.modelDisposables.add(model.onDidRevert(() => this.dispose()));
42
+ }
43
+ onDidCreateUntitledModel(model) {
44
+ if (isEqual(model.resource, this.model.resource) && model !== this.model) {
45
+ this.model = model;
46
+ this.registerModelListeners(model);
47
+ }
38
48
  }
39
49
  getName() {
40
50
  return this.model.name;
@@ -69,6 +79,8 @@ let UntitledTextEditorInput = class UntitledTextEditorInput extends AbstractText
69
79
  setEncoding(encoding, mode ) {
70
80
  return this.model.setEncoding(encoding);
71
81
  }
82
+ get hasLanguageSetExplicitly() { return this.model.hasLanguageSetExplicitly; }
83
+ get hasAssociatedFilePath() { return this.model.hasAssociatedFilePath; }
72
84
  setLanguageId(languageId, source) {
73
85
  this.model.setLanguageId(languageId, source);
74
86
  }
@@ -136,6 +148,7 @@ UntitledTextEditorInput = UntitledTextEditorInput_1 = ( __decorate([
136
148
  ( __param(5, IWorkbenchEnvironmentService)),
137
149
  ( __param(6, IPathService)),
138
150
  ( __param(7, IFilesConfigurationService)),
139
- ( __param(8, ITextModelService))
151
+ ( __param(8, ITextModelService)),
152
+ ( __param(9, ITextResourceConfigurationService))
140
153
  ], UntitledTextEditorInput));
141
154
  export { UntitledTextEditorInput };
@@ -55,6 +55,10 @@ interface IUntitledTextEditorModelManager {
55
55
  * Events for when untitled text editor labels change.
56
56
  */
57
57
  readonly onDidChangeLabel: Event<IUntitledTextEditorModel>;
58
+ /**
59
+ * Events for when untitled text editor models are created.
60
+ */
61
+ readonly onDidCreate: Event<IUntitledTextEditorModel>;
58
62
  /**
59
63
  * Events for when untitled text editors are about to be disposed.
60
64
  */
@@ -20,6 +20,8 @@ let UntitledTextEditorService = class UntitledTextEditorService extends Disposab
20
20
  this.onDidChangeDirty = this._onDidChangeDirty.event;
21
21
  this._onDidChangeEncoding = this._register(( new Emitter()));
22
22
  this.onDidChangeEncoding = this._onDidChangeEncoding.event;
23
+ this._onDidCreate = this._register(( new Emitter()));
24
+ this.onDidCreate = this._onDidCreate.event;
23
25
  this._onWillDispose = this._register(( new Emitter()));
24
26
  this.onWillDispose = this._onWillDispose.event;
25
27
  this._onDidChangeLabel = this._register(( new Emitter()));
@@ -101,6 +103,7 @@ let UntitledTextEditorService = class UntitledTextEditorService extends Disposab
101
103
  modelListeners.dispose();
102
104
  });
103
105
  this.mapResourceToModel.set(model.resource, model);
106
+ this._onDidCreate.fire(model);
104
107
  if (model.isDirty()) {
105
108
  this._onDidChangeDirty.fire(model);
106
109
  }
@@ -1,4 +1,4 @@
1
- import { localizeWithPath } from '../../../../nls.js';
1
+ import { localizeWithPath, localize2WithPath } from '../../../../nls.js';
2
2
  import { createDecorator } from '../../../../platform/instantiation/common/instantiation.js';
3
3
  import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
4
4
  import { URI } from '../../../../base/common/uri.js';
@@ -20,11 +20,11 @@ const defaultUserDataProfileIcon = registerIcon('defaultProfile-icon', Codicon.s
20
20
  'defaultProfileIcon',
21
21
  'Icon for Default Profile.'
22
22
  )));
23
- const PROFILES_TITLE = { value: ( localizeWithPath(
23
+ const PROFILES_TITLE = ( localize2WithPath(
24
24
  'vs/workbench/services/userDataProfile/common/userDataProfile',
25
25
  'profiles',
26
- "Profiles"
27
- )), original: 'Profiles' };
26
+ 'Profiles'
27
+ ));
28
28
  const PROFILES_CATEGORY = { ...PROFILES_TITLE };
29
29
  const PROFILE_EXTENSION = 'code-profile';
30
30
  const PROFILE_FILTER = [{ name: ( localizeWithPath(
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
2
  import { Disposable, toDisposable, DisposableStore } from '../../../../base/common/lifecycle.js';
3
- import { IViewDescriptorService, IViewsService } from '../../../common/views.js';
3
+ import { IViewDescriptorService } from '../../../common/views.js';
4
4
  import { FocusedViewContext, getVisbileViewContextKey } from '../../../common/contextkeys.js';
5
5
  import { Registry } from '../../../../platform/registry/common/platform.js';
6
6
  import { IStorageService } from '../../../../platform/storage/common/storage.js';
@@ -13,16 +13,17 @@ import { IInstantiationService } from '../../../../platform/instantiation/common
13
13
  import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.js';
14
14
  import { IThemeService } from '../../../../platform/theme/common/themeService.js';
15
15
  import { IContextMenuService } from '../../../../platform/contextview/browser/contextView.js';
16
- import { IExtensionService } from '../../../services/extensions/common/extensions.js';
16
+ import { IExtensionService } from '../../extensions/common/extensions.js';
17
17
  import { IWorkspaceContextService } from '../../../../platform/workspace/common/workspace.js';
18
- import { PaneCompositeDescriptor, Extensions, PaneComposite } from '../../panecomposite.js';
19
- import { IWorkbenchLayoutService } from '../../../services/layout/browser/layoutService.js';
18
+ import { PaneCompositeDescriptor, Extensions, PaneComposite } from '../../../browser/panecomposite.js';
19
+ import { IWorkbenchLayoutService } from '../../layout/browser/layoutService.js';
20
20
  import { URI } from '../../../../base/common/uri.js';
21
21
  import { Categories } from '../../../../platform/action/common/actionCommonCategories.js';
22
- import { IEditorGroupsService } from '../../../services/editor/common/editorGroupsService.js';
23
- import { FilterViewPaneContainer } from './viewsViewlet.js';
24
- import { IPaneCompositePartService } from '../../../services/panecomposite/browser/panecomposite.js';
25
- import { IEditorService } from '../../../services/editor/common/editorService.js';
22
+ import { IEditorGroupsService } from '../../editor/common/editorGroupsService.js';
23
+ import { FilterViewPaneContainer } from '../../../browser/parts/views/viewsViewlet.js';
24
+ import { IPaneCompositePartService } from '../../panecomposite/browser/panecomposite.js';
25
+ import { IEditorService } from '../../editor/common/editorService.js';
26
+ import { IViewsService } from '../common/viewsService.js';
26
27
  let ViewsService = class ViewsService extends Disposable {
27
28
  constructor(viewDescriptorService, paneCompositeService, contextKeyService, layoutService, editorService) {
28
29
  super();
@@ -200,7 +201,11 @@ let ViewsService = class ViewsService extends Disposable {
200
201
  }
201
202
  getFocusedViewName() {
202
203
  const viewId = this.contextKeyService.getContextKeyValue(FocusedViewContext.key) ?? '';
203
- const textEditorFocused = this.editorService.activeTextEditorControl?.hasTextFocus() ? ( localizeWithPath('vs/workbench/browser/parts/views/viewsService', 'editor', "Text Editor")) : undefined;
204
+ const textEditorFocused = this.editorService.activeTextEditorControl?.hasTextFocus() ? ( localizeWithPath(
205
+ 'vs/workbench/services/views/browser/viewsService',
206
+ 'editor',
207
+ "Text Editor"
208
+ )) : undefined;
204
209
  return this.viewDescriptorService.getViewDescriptorById(( viewId.toString()))?.name?.value ?? textEditorFocused ?? '';
205
210
  }
206
211
  async openView(id, focus) {
@@ -302,7 +307,7 @@ let ViewsService = class ViewsService extends Disposable {
302
307
  const originalTitle = typeof title === 'string' ? title : title.original;
303
308
  if (viewContainerLocation === 0 ) {
304
309
  return { value: ( localizeWithPath(
305
- 'vs/workbench/browser/parts/views/viewsService',
310
+ 'vs/workbench/services/views/browser/viewsService',
306
311
  'show view',
307
312
  "Show {0}",
308
313
  localizedTitle
@@ -310,7 +315,7 @@ let ViewsService = class ViewsService extends Disposable {
310
315
  }
311
316
  else {
312
317
  return { value: ( localizeWithPath(
313
- 'vs/workbench/browser/parts/views/viewsService',
318
+ 'vs/workbench/services/views/browser/viewsService',
314
319
  'toggle view',
315
320
  "Toggle {0}",
316
321
  localizedTitle
@@ -383,7 +388,7 @@ let ViewsService = class ViewsService extends Disposable {
383
388
  const originalTitle = typeof title === 'string' ? title : title.original;
384
389
  if (viewContainerLocation === 0 ) {
385
390
  return { value: ( localizeWithPath(
386
- 'vs/workbench/browser/parts/views/viewsService',
391
+ 'vs/workbench/services/views/browser/viewsService',
387
392
  'show view',
388
393
  "Show {0}",
389
394
  localizedTitle
@@ -391,7 +396,7 @@ let ViewsService = class ViewsService extends Disposable {
391
396
  }
392
397
  else {
393
398
  return { value: ( localizeWithPath(
394
- 'vs/workbench/browser/parts/views/viewsService',
399
+ 'vs/workbench/services/views/browser/viewsService',
395
400
  'toggle view',
396
401
  "Toggle {0}",
397
402
  localizedTitle
@@ -447,7 +452,7 @@ let ViewsService = class ViewsService extends Disposable {
447
452
  return registerAction2(class FocusViewAction extends Action2 {
448
453
  constructor() {
449
454
  const title = ( localizeWithPath(
450
- 'vs/workbench/browser/parts/views/viewsService',
455
+ 'vs/workbench/services/views/browser/viewsService',
451
456
  { key: 'focus view', comment: ['{0} indicates the name of the view to be focused.'] },
452
457
  "Focus on {0} View",
453
458
  viewDescriptor.name.value
@@ -502,7 +507,7 @@ let ViewsService = class ViewsService extends Disposable {
502
507
  title: {
503
508
  original: 'Reset Location',
504
509
  value: ( localizeWithPath(
505
- 'vs/workbench/browser/parts/views/viewsService',
510
+ 'vs/workbench/services/views/browser/viewsService',
506
511
  'resetViewLocation',
507
512
  "Reset Location"
508
513
  ))
@@ -0,0 +1,34 @@
1
+ import { ServiceIdentifier } from '../../../../platform/instantiation/common/instantiation.js';
2
+ import { Event } from '../../../../base/common/event.js';
3
+ import { IProgressIndicator } from '../../../../platform/progress/common/progress.js';
4
+ import { IPaneComposite } from '../../../common/panecomposite.js';
5
+ import { ViewContainerLocation, ViewContainer, IViewPaneContainer, IView } from '../../../common/views.js';
6
+
7
+ declare const IViewsService: ServiceIdentifier<IViewsService>;
8
+ interface IViewsService {
9
+ readonly _serviceBrand: undefined;
10
+ readonly onDidChangeViewContainerVisibility: Event<{
11
+ id: string;
12
+ visible: boolean;
13
+ location: ViewContainerLocation;
14
+ }>;
15
+ isViewContainerVisible(id: string): boolean;
16
+ openViewContainer(id: string, focus?: boolean): Promise<IPaneComposite | null>;
17
+ closeViewContainer(id: string): void;
18
+ getVisibleViewContainer(location: ViewContainerLocation): ViewContainer | null;
19
+ getActiveViewPaneContainerWithId(viewContainerId: string): IViewPaneContainer | null;
20
+ getFocusedViewName(): string;
21
+ readonly onDidChangeViewVisibility: Event<{
22
+ id: string;
23
+ visible: boolean;
24
+ }>;
25
+ readonly onDidChangeFocusedView: Event<void>;
26
+ isViewVisible(id: string): boolean;
27
+ openView<T extends IView>(id: string, focus?: boolean): Promise<T | null>;
28
+ closeView(id: string): void;
29
+ getActiveViewWithId<T extends IView>(id: string): T | null;
30
+ getViewWithId<T extends IView>(id: string): T | null;
31
+ getViewProgressIndicator(id: string): IProgressIndicator | undefined;
32
+ }
33
+
34
+ export { IViewsService };