@codingame/monaco-vscode-api 3.2.3 → 4.0.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 (772) hide show
  1. package/api.js +4 -7
  2. package/debugProtocol.d.ts +14 -39
  3. package/extensions.d.ts +7 -1
  4. package/missing-services.js +116 -32
  5. package/monaco.d.ts +1 -1
  6. package/monaco.js +11 -1
  7. package/override/vs/platform/dialogs/common/dialogs.js +1 -0
  8. package/package.json +8 -8
  9. package/service-override/tools/editor.js +82 -3
  10. package/service-override/tools/views.d.ts +2 -1
  11. package/service-override/tools/views.js +5 -1
  12. package/services.js +4 -3
  13. package/vscode/src/vs/base/browser/dom.js +1 -7
  14. package/vscode/src/vs/base/browser/fonts.js +3 -0
  15. package/vscode/src/vs/base/browser/keyboardEvent.js +1 -1
  16. package/vscode/src/vs/base/browser/markdownRenderer.js +4 -4
  17. package/vscode/src/vs/base/browser/touch.js +13 -2
  18. package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.d.ts +1 -1
  19. package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +5 -6
  20. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.d.ts +1 -1
  21. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +2 -2
  22. package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.d.ts +1 -0
  23. package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.js +4 -2
  24. package/vscode/src/vs/base/browser/ui/button/button.js +16 -9
  25. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
  26. package/vscode/src/vs/base/browser/ui/contextview/contextview.d.ts +1 -0
  27. package/vscode/src/vs/base/browser/ui/contextview/contextview.js +1 -1
  28. package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +4 -4
  29. package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +3 -3
  30. package/vscode/src/vs/base/browser/ui/findinput/findInput.js +5 -0
  31. package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +4 -0
  32. package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +3 -1
  33. package/vscode/src/vs/base/browser/ui/grid/gridview.js +1 -0
  34. package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.js +14 -3
  35. package/vscode/src/vs/base/browser/ui/{iconLabel/iconHoverDelegate.d.ts → hover/hoverDelegate.d.ts} +3 -6
  36. package/vscode/src/vs/base/browser/ui/hover/{hoverDelegate.js → hoverDelegateFactory.js} +5 -5
  37. package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +1 -1
  38. package/vscode/src/vs/base/browser/ui/{iconLabel/iconLabelHover.d.ts → hover/updatableHoverWidget.d.ts} +6 -1
  39. package/vscode/src/vs/base/browser/ui/{iconLabel/iconLabelHover.js → hover/updatableHoverWidget.js} +27 -7
  40. package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +10 -9
  41. package/vscode/src/vs/base/browser/ui/iconLabel/simpleIconLabel.js +11 -1
  42. package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +19 -1
  43. package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +8 -7
  44. package/vscode/src/vs/base/browser/ui/list/listView.js +4 -1
  45. package/vscode/src/vs/base/browser/ui/list/listWidget.js +27 -10
  46. package/vscode/src/vs/base/browser/ui/menu/menu.js +15 -9
  47. package/vscode/src/vs/base/browser/ui/menu/menubar.js +15 -8
  48. package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +18 -2
  49. package/vscode/src/vs/base/browser/ui/selectBox/selectBox.js +1 -0
  50. package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +14 -7
  51. package/vscode/src/vs/base/browser/ui/table/tableWidget.js +6 -4
  52. package/vscode/src/vs/base/browser/ui/toggle/toggle.js +7 -6
  53. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +2 -2
  54. package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +55 -10
  55. package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +4 -1
  56. package/vscode/src/vs/base/browser/window.d.ts +5 -0
  57. package/vscode/src/vs/base/browser/window.js +1 -2
  58. package/vscode/src/vs/base/common/arrays.js +20 -1
  59. package/vscode/src/vs/base/common/cache.js +3 -2
  60. package/vscode/src/vs/base/common/codicons.d.ts +62 -38
  61. package/vscode/src/vs/base/common/codicons.js +19 -571
  62. package/vscode/src/vs/base/common/codiconsLibrary.js +570 -0
  63. package/vscode/src/vs/base/common/codiconsUtil.js +17 -0
  64. package/vscode/src/vs/base/common/event.js +4 -1
  65. package/vscode/src/vs/base/common/glob.js +1 -0
  66. package/vscode/src/vs/base/common/hierarchicalKind.d.ts +13 -0
  67. package/vscode/src/vs/base/common/hierarchicalKind.js +21 -0
  68. package/vscode/src/vs/base/common/labels.js +2 -2
  69. package/vscode/src/vs/base/common/network.js +14 -5
  70. package/vscode/src/vs/base/common/observableInternal/promise.js +1 -0
  71. package/vscode/src/vs/base/common/observableInternal/utils.js +35 -14
  72. package/vscode/src/vs/base/common/platform.js +1 -1
  73. package/vscode/src/vs/base/common/product.d.ts +7 -1
  74. package/vscode/src/vs/base/common/severity.js +2 -1
  75. package/vscode/src/vs/base/common/strings.js +16 -4
  76. package/vscode/src/vs/base/parts/ipc/common/ipc.js +4 -0
  77. package/vscode/src/vs/editor/browser/controller/mouseHandler.js +5 -5
  78. package/vscode/src/vs/editor/browser/controller/mouseTarget.js +55 -43
  79. package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +5 -5
  80. package/vscode/src/vs/editor/browser/coreCommands.js +13 -13
  81. package/vscode/src/vs/editor/browser/editorDom.js +11 -1
  82. package/vscode/src/vs/editor/browser/editorExtensions.js +1 -1
  83. package/vscode/src/vs/editor/browser/services/editorWorkerService.js +10 -2
  84. package/vscode/src/vs/editor/browser/services/hoverService/hoverService.d.ts +31 -0
  85. package/vscode/src/vs/editor/browser/services/{hoverService.js → hoverService/hoverService.js} +38 -27
  86. package/vscode/src/vs/editor/browser/{widget/hoverWidget → services/hoverService}/hoverWidget.js +13 -14
  87. package/vscode/src/vs/editor/browser/view/viewLayer.js +4 -4
  88. package/vscode/src/vs/editor/browser/view/viewOverlays.js +12 -23
  89. package/vscode/src/vs/editor/browser/view.js +5 -5
  90. package/vscode/src/vs/editor/browser/viewParts/blockDecorations/blockDecorations.js +1 -1
  91. package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +3 -3
  92. package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.css.js +1 -1
  93. package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +4 -6
  94. package/vscode/src/vs/editor/browser/viewParts/decorations/decorations.css.js +1 -1
  95. package/vscode/src/vs/editor/browser/viewParts/decorations/decorations.js +8 -14
  96. package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +2 -2
  97. package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +2 -2
  98. package/vscode/src/vs/editor/browser/viewParts/indentGuides/indentGuides.css.js +1 -1
  99. package/vscode/src/vs/editor/browser/viewParts/indentGuides/indentGuides.js +3 -6
  100. package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.css.js +1 -1
  101. package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +5 -1
  102. package/vscode/src/vs/editor/browser/viewParts/lines/viewLine.js +4 -4
  103. package/vscode/src/vs/editor/browser/viewParts/lines/viewLines.css.js +1 -1
  104. package/vscode/src/vs/editor/browser/viewParts/lines/viewLines.js +5 -5
  105. package/vscode/src/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +2 -2
  106. package/vscode/src/vs/editor/browser/viewParts/margin/margin.js +2 -2
  107. package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +142 -27
  108. package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +2 -2
  109. package/vscode/src/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js +34 -16
  110. package/vscode/src/vs/editor/browser/viewParts/overviewRuler/overviewRuler.js +3 -3
  111. package/vscode/src/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.js +1 -1
  112. package/vscode/src/vs/editor/browser/viewParts/selections/selections.js +23 -20
  113. package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.js +25 -3
  114. package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.js +21 -13
  115. package/vscode/src/vs/editor/browser/viewParts/viewZones/viewZones.js +2 -2
  116. package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +2 -2
  117. package/vscode/src/vs/editor/browser/widget/{codeEditorContributions.js → codeEditor/codeEditorContributions.js} +3 -3
  118. package/vscode/src/vs/editor/browser/widget/{codeEditorWidget.js → codeEditor/codeEditorWidget.js} +81 -70
  119. package/vscode/src/vs/editor/browser/widget/codeEditor/editor.css.js +4 -0
  120. package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js +44 -0
  121. package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +281 -0
  122. package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +7 -5
  123. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js +4 -1
  124. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +15 -9
  125. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorSash.js +2 -0
  126. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +9 -8
  127. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +1 -1
  128. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +33 -246
  129. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +22 -7
  130. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +5 -5
  131. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +71 -41
  132. package/vscode/src/vs/editor/browser/widget/diffEditor/embeddedDiffEditorWidget.js +36 -0
  133. package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +227 -0
  134. package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +22 -19
  135. package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +5 -4
  136. package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +15 -4
  137. package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +13 -5
  138. package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +11 -1
  139. package/vscode/src/vs/editor/browser/widget/diffEditor/style.css.js +1 -1
  140. package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +104 -0
  141. package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +8 -15
  142. package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/colors.js +14 -4
  143. package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/diffEditorItemTemplate.js +6 -5
  144. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/model.js +14 -0
  145. package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/multiDiffEditorViewModel.js +5 -2
  146. package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/multiDiffEditorWidget.js +5 -3
  147. package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/multiDiffEditorWidgetImpl.js +9 -10
  148. package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/style.css.js +1 -1
  149. package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/utils.js +2 -1
  150. package/vscode/src/vs/editor/common/commands/trimTrailingWhitespaceCommand.js +14 -3
  151. package/vscode/src/vs/editor/common/config/diffEditor.js +1 -0
  152. package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +10 -1
  153. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +23 -0
  154. package/vscode/src/vs/editor/common/config/editorOptions.js +115 -33
  155. package/vscode/src/vs/editor/common/core/editorColorRegistry.js +32 -2
  156. package/vscode/src/vs/editor/common/core/lineRange.d.ts +1 -0
  157. package/vscode/src/vs/editor/common/core/lineRange.js +12 -0
  158. package/vscode/src/vs/editor/common/core/positionToOffset.js +43 -0
  159. package/vscode/src/vs/editor/common/core/textEdit.js +169 -0
  160. package/vscode/src/vs/editor/common/core/textLength.js +110 -0
  161. package/vscode/src/vs/editor/common/core/wordCharacterClassifier.d.ts +14 -2
  162. package/vscode/src/vs/editor/common/core/wordCharacterClassifier.js +66 -10
  163. package/vscode/src/vs/editor/common/core/wordHelper.js +1 -0
  164. package/vscode/src/vs/editor/common/cursor/cursor.js +17 -4
  165. package/vscode/src/vs/editor/common/cursor/cursorTypeOperations.js +1 -1
  166. package/vscode/src/vs/editor/common/cursor/cursorWordOperations.js +22 -3
  167. package/vscode/src/vs/editor/common/cursorCommon.js +7 -5
  168. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +7 -4
  169. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js +1 -1
  170. package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +2 -0
  171. package/vscode/src/vs/editor/common/diff/rangeMapping.js +10 -0
  172. package/vscode/src/vs/editor/common/editorContextKeys.js +25 -0
  173. package/vscode/src/vs/editor/common/languages.d.ts +43 -11
  174. package/vscode/src/vs/editor/common/languages.js +15 -1
  175. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.js +1 -1
  176. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length.js +3 -58
  177. package/vscode/src/vs/editor/common/model/textModel.js +2 -0
  178. package/vscode/src/vs/editor/common/model/textModelSearch.js +1 -1
  179. package/vscode/src/vs/editor/common/model/textModelText.js +17 -0
  180. package/vscode/src/vs/editor/common/model/textModelTokens.js +4 -0
  181. package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +10 -0
  182. package/vscode/src/vs/editor/common/model.d.ts +17 -2
  183. package/vscode/src/vs/editor/common/model.js +1 -6
  184. package/vscode/src/vs/editor/common/services/editorSimpleWorker.js +8 -0
  185. package/vscode/src/vs/editor/common/services/editorWorker.d.ts +2 -0
  186. package/vscode/src/vs/editor/common/services/findSectionHeaders.d.ts +28 -0
  187. package/vscode/src/vs/editor/common/services/findSectionHeaders.js +71 -0
  188. package/vscode/src/vs/editor/common/services/markerDecorationsService.js +15 -5
  189. package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +32 -20
  190. package/vscode/src/vs/editor/common/viewLayout/linesLayout.js +2 -1
  191. package/vscode/src/vs/editor/common/viewLayout/viewLayout.js +5 -5
  192. package/vscode/src/vs/editor/common/viewLayout/viewLinesViewportData.js +1 -0
  193. package/vscode/src/vs/editor/common/viewModel/modelLineProjection.js +1 -1
  194. package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +2 -2
  195. package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +10 -7
  196. package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +11 -1
  197. package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +6 -5
  198. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +5 -4
  199. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +25 -3
  200. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionKeybindingResolver.js +3 -2
  201. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +3 -2
  202. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +13 -2
  203. package/vscode/src/vs/editor/contrib/codeAction/common/types.js +18 -33
  204. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorContributions.js +1 -1
  205. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +3 -3
  206. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +1 -1
  207. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +11 -1
  208. package/vscode/src/vs/editor/contrib/comment/browser/comment.js +1 -1
  209. package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.js +9 -9
  210. package/vscode/src/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js +5 -3
  211. package/vscode/src/vs/editor/contrib/documentSymbols/browser/outlineModel.js +1 -1
  212. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +40 -20
  213. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +83 -47
  214. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +40 -31
  215. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +16 -1
  216. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +8 -8
  217. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/edit.js +5 -3
  218. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +7 -6
  219. package/vscode/src/vs/editor/contrib/find/browser/findDecorations.js +14 -4
  220. package/vscode/src/vs/editor/contrib/find/browser/findModel.js +6 -6
  221. package/vscode/src/vs/editor/contrib/find/browser/findOptionsWidget.js +16 -1
  222. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +23 -3
  223. package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +12 -3
  224. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +11 -1
  225. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +3 -3
  226. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +5 -3
  227. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +1 -1
  228. package/vscode/src/vs/editor/contrib/hover/browser/hover.js +12 -2
  229. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +3 -91
  230. package/vscode/src/vs/editor/contrib/indentation/common/indentation.js +92 -0
  231. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +14 -4
  232. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +4 -0
  233. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostText.js +18 -19
  234. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostTextWidget.js +5 -4
  235. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +4 -2
  236. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys.js +4 -1
  237. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +6 -5
  238. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +5 -4
  239. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +28 -19
  240. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsSource.js +7 -4
  241. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/provideInlineCompletions.js +1 -1
  242. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/singleTextEdit.js +64 -72
  243. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/suggestWidgetInlineCompletionProvider.js +11 -5
  244. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +5 -85
  245. package/vscode/src/vs/editor/contrib/inlineEdit/browser/commands.js +2 -2
  246. package/vscode/src/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.js +6 -4
  247. package/vscode/src/vs/editor/contrib/inlineEdit/browser/hoverParticipant.js +4 -1
  248. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +28 -17
  249. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +5 -4
  250. package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  251. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +53 -6
  252. package/vscode/src/vs/editor/contrib/linesOperations/browser/moveLinesCommand.js +1 -1
  253. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +11 -1
  254. package/vscode/src/vs/editor/contrib/links/browser/links.js +2 -2
  255. package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +7 -7
  256. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +11 -1
  257. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +12 -2
  258. package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +1 -1
  259. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +27 -33
  260. package/vscode/src/vs/editor/contrib/rename/browser/{renameInputField.js → renameWidget.js} +282 -194
  261. package/vscode/src/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js +154 -0
  262. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +60 -61
  263. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +23 -14
  264. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +1 -1
  265. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +12 -2
  266. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +11 -1
  267. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +1 -1
  268. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +16 -6
  269. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +2 -2
  270. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +12 -12
  271. package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.js +2 -2
  272. package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +1 -1
  273. package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +2 -2
  274. package/vscode/src/vs/editor/standalone/browser/standaloneLayoutService.js +1 -1
  275. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +12 -12
  276. package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +11 -1
  277. package/vscode/src/vs/editor/standalone/common/themes.js +11 -1
  278. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +16 -9
  279. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +42 -18
  280. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +16 -5
  281. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +11 -1
  282. package/vscode/src/vs/platform/actions/browser/buttonbar.js +13 -5
  283. package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +3 -1
  284. package/vscode/src/vs/platform/actions/browser/floatingMenu.js +11 -1
  285. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +11 -1
  286. package/vscode/src/vs/platform/actions/common/actions.d.ts +7 -0
  287. package/vscode/src/vs/platform/actions/common/actions.js +7 -0
  288. package/vscode/src/vs/platform/contextview/browser/contextView.d.ts +1 -0
  289. package/vscode/src/vs/platform/contextview/browser/contextViewService.js +12 -15
  290. package/vscode/src/vs/platform/dialogs/common/dialogs.js +4 -2
  291. package/vscode/src/vs/platform/editor/common/editor.d.ts +12 -0
  292. package/vscode/src/vs/platform/environment/common/environmentService.js +6 -0
  293. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +19 -7
  294. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +7 -1
  295. package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +333 -0
  296. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +901 -0
  297. package/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.js +3 -4
  298. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +16 -16
  299. package/vscode/src/vs/platform/extensions/common/extensions.js +5 -1
  300. package/vscode/src/vs/platform/files/common/files.d.ts +1 -11
  301. package/vscode/src/vs/platform/files/common/files.js +2 -0
  302. package/vscode/src/vs/platform/files/common/watcher.js +2 -0
  303. package/vscode/src/vs/platform/hover/browser/hover.d.ts +1 -1
  304. package/vscode/src/vs/platform/hover/browser/hover.js +21 -6
  305. package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.js +1 -0
  306. package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +5 -0
  307. package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +8 -6
  308. package/vscode/src/vs/platform/log/browser/log.js +1 -0
  309. package/vscode/src/vs/platform/log/common/log.js +13 -1
  310. package/vscode/src/vs/platform/markers/common/markerService.js +1 -1
  311. package/vscode/src/vs/platform/markers/common/markers.js +9 -9
  312. package/vscode/src/vs/platform/opener/browser/link.js +16 -4
  313. package/vscode/src/vs/platform/policy/common/policy.js +2 -0
  314. package/vscode/src/vs/platform/product/common/product.js +2 -1
  315. package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css.js +1 -1
  316. package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +36 -33
  317. package/vscode/src/vs/platform/quickinput/browser/quickAccess.js +5 -0
  318. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +38 -9
  319. package/vscode/src/vs/platform/quickinput/browser/quickInputBox.js +7 -4
  320. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +22 -12
  321. package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +13 -5
  322. package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1348 -0
  323. package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  324. package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +14 -0
  325. package/vscode/src/vs/platform/remote/common/remoteAgentConnection.js +2 -2
  326. package/vscode/src/vs/platform/remote/common/remoteHosts.js +1 -4
  327. package/vscode/src/vs/platform/secrets/common/secrets.js +5 -0
  328. package/vscode/src/vs/platform/severityIcon/browser/severityIcon.js +5 -5
  329. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +2 -0
  330. package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +1 -1
  331. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +3 -9
  332. package/vscode/src/vs/platform/terminal/common/terminal.d.ts +6 -1
  333. package/vscode/src/vs/platform/terminal/common/terminal.js +1 -0
  334. package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +4 -1
  335. package/vscode/src/vs/platform/theme/browser/defaultStyles.js +11 -1
  336. package/vscode/src/vs/platform/theme/common/colorUtils.js +187 -0
  337. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +89 -0
  338. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +46 -0
  339. package/vscode/src/vs/platform/theme/common/colors/editorColors.js +469 -0
  340. package/vscode/src/vs/platform/theme/common/colors/inputColors.js +196 -0
  341. package/vscode/src/vs/platform/theme/common/colors/listColors.js +166 -0
  342. package/vscode/src/vs/platform/theme/common/colors/menuColors.js +41 -0
  343. package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +61 -0
  344. package/vscode/src/vs/platform/theme/common/colors/miscColors.js +45 -0
  345. package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +51 -0
  346. package/vscode/src/vs/platform/theme/common/colors/searchColors.js +19 -0
  347. package/vscode/src/vs/platform/theme/common/iconRegistry.js +2 -1
  348. package/vscode/src/vs/platform/theme/common/themeService.d.ts +1 -1
  349. package/vscode/src/vs/platform/tunnel/common/tunnel.js +2 -0
  350. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +2 -2
  351. package/vscode/src/vs/platform/update/common/update.js +1 -1
  352. package/vscode/src/vs/platform/uriIdentity/common/uriIdentityService.js +1 -0
  353. package/vscode/src/vs/platform/userDataProfile/common/userDataProfileIpc.js +2 -0
  354. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +69 -32
  355. package/vscode/src/vs/workbench/api/common/extHost.common.services.js +6 -0
  356. package/vscode/src/vs/workbench/api/common/extHost.protocol.js +3 -1
  357. package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +12 -5
  358. package/vscode/src/vs/workbench/api/common/extHostChat.js +0 -8
  359. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +58 -88
  360. package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +8 -4
  361. package/vscode/src/vs/workbench/api/common/extHostComments.js +49 -13
  362. package/vscode/src/vs/workbench/api/common/extHostDebugService.js +16 -17
  363. package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +3 -1
  364. package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.js +1 -1
  365. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +17 -4
  366. package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +1 -1
  367. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +57 -40
  368. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +305 -0
  369. package/vscode/src/vs/workbench/api/common/extHostLanguages.js +2 -2
  370. package/vscode/src/vs/workbench/api/common/extHostNotebookDocument.js +1 -1
  371. package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +26 -6
  372. package/vscode/src/vs/workbench/api/common/extHostQuickOpen.js +9 -9
  373. package/vscode/src/vs/workbench/api/common/extHostSCM.js +1 -1
  374. package/vscode/src/vs/workbench/api/common/extHostSearch.js +34 -3
  375. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +1 -1
  376. package/vscode/src/vs/workbench/api/common/extHostTask.js +1 -0
  377. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +32 -18
  378. package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +214 -0
  379. package/vscode/src/vs/workbench/api/common/extHostTesting.js +85 -98
  380. package/vscode/src/vs/workbench/api/common/extHostTimeline.js +1 -0
  381. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +5 -2
  382. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +119 -70
  383. package/vscode/src/vs/workbench/api/common/extHostTypes.js +90 -28
  384. package/vscode/src/vs/workbench/browser/actions/developerActions.js +4 -4
  385. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +2 -2
  386. package/vscode/src/vs/workbench/browser/actions/windowActions.js +3 -3
  387. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +3 -3
  388. package/vscode/src/vs/workbench/browser/codeeditor.js +1 -1
  389. package/vscode/src/vs/workbench/browser/composite.d.ts +3 -5
  390. package/vscode/src/vs/workbench/browser/composite.js +2 -10
  391. package/vscode/src/vs/workbench/browser/editor.js +2 -2
  392. package/vscode/src/vs/workbench/browser/labels.js +2 -1
  393. package/vscode/src/vs/workbench/browser/media/part.css.js +1 -1
  394. package/vscode/src/vs/workbench/browser/media/style.css.js +1 -1
  395. package/vscode/src/vs/workbench/browser/part.d.ts +25 -3
  396. package/vscode/src/vs/workbench/browser/part.js +84 -9
  397. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +67 -10
  398. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +2 -2
  399. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +92 -14
  400. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +1 -1
  401. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +5 -4
  402. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +13 -3
  403. package/vscode/src/vs/workbench/browser/parts/compositePart.js +13 -5
  404. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +12 -0
  405. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +10 -10
  406. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +3 -3
  407. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +8 -7
  408. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +16 -8
  409. package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +217 -0
  410. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +14 -16
  411. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +2 -2
  412. package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +8 -7
  413. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +4 -202
  414. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +1 -1
  415. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +11 -1
  416. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +92 -23
  417. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +15 -3
  418. package/vscode/src/vs/workbench/browser/parts/editor/editorPane.d.ts +7 -8
  419. package/vscode/src/vs/workbench/browser/parts/editor/editorPane.js +7 -6
  420. package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +12 -32
  421. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +11 -1
  422. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +1 -0
  423. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +27 -28
  424. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +19 -20
  425. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +12 -2
  426. package/vscode/src/vs/workbench/browser/parts/editor/editorWithViewState.js +14 -17
  427. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +11 -1
  428. package/vscode/src/vs/workbench/browser/parts/editor/multiRowEditorTabsControl.js +12 -12
  429. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +16 -16
  430. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +3 -3
  431. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +17 -17
  432. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +36 -13
  433. package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +22 -22
  434. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +29 -21
  435. package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +1 -1
  436. package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +1 -1
  437. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +13 -2
  438. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +11 -1
  439. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +16 -16
  440. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +1 -0
  441. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +122 -33
  442. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +14 -3
  443. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +15 -2
  444. package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +1 -1
  445. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +37 -0
  446. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +36 -18
  447. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +7 -4
  448. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +6 -4
  449. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +2 -3
  450. package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +1 -1
  451. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +3 -3
  452. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +13 -3
  453. package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +6 -0
  454. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +28 -11
  455. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +19 -15
  456. package/vscode/src/vs/workbench/browser/quickaccess.js +42 -15
  457. package/vscode/src/vs/workbench/browser/style.js +52 -3
  458. package/vscode/src/vs/workbench/browser/web.api.d.ts +6 -0
  459. package/vscode/src/vs/workbench/browser/window.js +28 -20
  460. package/vscode/src/vs/workbench/browser/workbench.contribution.js +83 -9
  461. package/vscode/src/vs/workbench/common/component.js +0 -1
  462. package/vscode/src/vs/workbench/common/contextkeys.js +4 -4
  463. package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +59 -5
  464. package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +10 -0
  465. package/vscode/src/vs/workbench/common/editor/editorInput.js +3 -0
  466. package/vscode/src/vs/workbench/common/editor/filteredEditorGroupModel.js +1 -0
  467. package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +3 -1
  468. package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +7 -3
  469. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +3 -3
  470. package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +2 -1
  471. package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +9 -6
  472. package/vscode/src/vs/workbench/common/editor.d.ts +33 -13
  473. package/vscode/src/vs/workbench/common/editor.js +6 -7
  474. package/vscode/src/vs/workbench/common/theme.js +45 -5
  475. package/vscode/src/vs/workbench/common/views.d.ts +1 -0
  476. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +59 -184
  477. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +1 -0
  478. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +140 -13
  479. package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +1 -1
  480. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignal.contribution.js +1 -0
  481. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalDebuggerContribution.js +4 -2
  482. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalLineFeatureContribution.js +35 -36
  483. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/commands.js +1 -1
  484. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +1 -1
  485. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +4 -5
  486. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +21 -12
  487. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +70 -32
  488. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +4 -1
  489. package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +4 -1
  490. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +118 -0
  491. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +11 -6
  492. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +154 -61
  493. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +186 -224
  494. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +6 -75
  495. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +158 -49
  496. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +84 -175
  497. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +38 -5
  498. package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
  499. package/vscode/src/vs/workbench/contrib/chat/common/annotations.js +105 -0
  500. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +137 -43
  501. package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +44 -0
  502. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +17 -1
  503. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +82 -34
  504. package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +17 -3
  505. package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +20 -22
  506. package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +68 -9
  507. package/vscode/src/vs/workbench/contrib/chat/common/codeBlockModelCollection.js +115 -0
  508. package/vscode/src/vs/workbench/contrib/chat/common/{chatProvider.js → languageModels.js} +9 -9
  509. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +5 -4
  510. package/vscode/src/vs/workbench/contrib/codeActions/browser/documentationContribution.js +2 -1
  511. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +5 -5
  512. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +33 -7
  513. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +11 -1
  514. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +3 -3
  515. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +9 -6
  516. package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +13 -3
  517. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +1 -1
  518. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +2 -2
  519. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +1 -1
  520. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +1 -1
  521. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +6 -6
  522. package/vscode/src/vs/workbench/contrib/codeEditor/{browser → common}/languageConfigurationExtensionPoint.js +79 -74
  523. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +11 -1
  524. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +11 -1
  525. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +25 -18
  526. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +14 -2
  527. package/vscode/src/vs/workbench/contrib/comments/browser/commentService.js +80 -52
  528. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +12 -2
  529. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +33 -13
  530. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +129 -57
  531. package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +15 -15
  532. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +145 -20
  533. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +61 -95
  534. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +2 -2
  535. package/vscode/src/vs/workbench/contrib/comments/browser/media/panel.css.js +1 -1
  536. package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +2 -2
  537. package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +4 -3
  538. package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +18 -11
  539. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +6 -0
  540. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +62 -4
  541. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +6 -4
  542. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +34 -5
  543. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +48 -29
  544. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +216 -23
  545. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +11 -1
  546. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -2
  547. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +6 -1
  548. package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +23 -5
  549. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +24 -1
  550. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.d.ts +15 -1
  551. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +30 -6
  552. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +2 -2
  553. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +106 -37
  554. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +1 -1
  555. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +1 -0
  556. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +8 -11
  557. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +5 -3
  558. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +23 -24
  559. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +17 -12
  560. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +3 -3
  561. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +9 -9
  562. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.save.js +1 -1
  563. package/vscode/src/vs/workbench/contrib/files/browser/files.configuration.contribution.js +10 -0
  564. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +11 -1
  565. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +11 -1
  566. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +1 -3
  567. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +1 -1
  568. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +15 -6
  569. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +4 -8
  570. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +674 -0
  571. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatContentWidget.js +154 -0
  572. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +316 -344
  573. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatFileCreationWidget.js +223 -0
  574. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +8 -25
  575. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +427 -0
  576. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +45 -160
  577. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +358 -702
  578. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +165 -0
  579. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css.js +4 -0
  580. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatContentWidget.css.js +4 -0
  581. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +1 -1
  582. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +16 -27
  583. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +19 -4
  584. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +9 -9
  585. package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +1 -1
  586. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +2 -2
  587. package/vscode/src/vs/workbench/contrib/logs/common/defaultLogLevels.js +17 -2
  588. package/vscode/src/vs/workbench/contrib/logs/common/logsActions.js +236 -0
  589. package/vscode/src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.js +2 -2
  590. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +9 -4
  591. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +8 -6
  592. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +8 -0
  593. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +5 -5
  594. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.js +5 -5
  595. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +2 -0
  596. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +4 -2
  597. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +11 -1
  598. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +5 -3
  599. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +5 -3
  600. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +6 -4
  601. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +5 -4
  602. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +7 -5
  603. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +6 -4
  604. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +2 -2
  605. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +23 -19
  606. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +4 -1
  607. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +5 -3
  608. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +9 -0
  609. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +303 -0
  610. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +655 -0
  611. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnostics.js +101 -0
  612. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +56 -1
  613. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +11 -1
  614. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +11 -4
  615. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +29 -0
  616. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +888 -0
  617. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +2 -1
  618. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +1 -1
  619. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebook.css.js +1 -1
  620. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFolding.css.js +1 -1
  621. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookOutline.css.js +1 -1
  622. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookToolbar.css.js +1 -1
  623. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +88 -0
  624. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +60 -46
  625. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +42 -52
  626. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +18 -7
  627. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +1 -1
  628. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.js +28 -1
  629. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +2 -2
  630. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +11 -7
  631. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +2 -1
  632. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +48 -4
  633. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +1 -1
  634. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +3 -1
  635. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +13 -2
  636. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +57 -10
  637. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +11 -4
  638. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +161 -15
  639. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +4 -2
  640. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +21 -2
  641. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.js +1 -1
  642. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +5 -0
  643. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +14 -4
  644. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js +14 -8
  645. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +3 -0
  646. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +25 -64
  647. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +27 -22
  648. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +1 -1
  649. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +4 -4
  650. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +2 -2
  651. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +8 -1
  652. package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +3 -1
  653. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +7 -14
  654. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +4 -4
  655. package/vscode/src/vs/workbench/contrib/outline/browser/outline.js +10 -0
  656. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +16 -4
  657. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +17 -4
  658. package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +11 -1
  659. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +26 -8
  660. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +16 -6
  661. package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +11 -1
  662. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +18 -8
  663. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService.js +235 -0
  664. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +182 -69
  665. package/vscode/src/vs/workbench/contrib/search/common/constants.js +2 -0
  666. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +203 -1
  667. package/vscode/src/vs/workbench/contrib/tags/browser/workspaceTagsService.js +3 -0
  668. package/vscode/src/vs/workbench/contrib/tags/common/workspaceTags.js +2 -0
  669. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +11 -3
  670. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +2 -2
  671. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +58 -8
  672. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +3 -1
  673. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +1 -0
  674. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +12 -1
  675. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +11 -1
  676. package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +53 -57
  677. package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.js +11 -26
  678. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +6 -3
  679. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +12 -12
  680. package/vscode/src/vs/workbench/contrib/testing/common/testingContextKeys.js +8 -0
  681. package/vscode/src/vs/workbench/contrib/timeline/common/timeline.js +2 -0
  682. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +1 -1
  683. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +30 -7
  684. package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +12 -2
  685. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +50 -41
  686. package/vscode/src/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.js +4 -5
  687. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +20 -22
  688. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput.js +4 -1
  689. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -0
  690. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +3 -3
  691. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +1 -1
  692. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +2 -0
  693. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +6 -0
  694. package/vscode/src/vs/workbench/services/authentication/browser/authenticationAccessService.js +69 -0
  695. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +69 -811
  696. package/vscode/src/vs/workbench/services/authentication/browser/authenticationUsageService.js +50 -0
  697. package/vscode/src/vs/workbench/services/authentication/common/authentication.js +2 -1
  698. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +50 -25
  699. package/vscode/src/vs/workbench/services/banner/browser/bannerService.d.ts +1 -1
  700. package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.js +1 -0
  701. package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +1 -0
  702. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +21 -17
  703. package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.d.ts +12 -0
  704. package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.js +144 -0
  705. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +10 -6
  706. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +3 -3
  707. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +16 -4
  708. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +12 -1
  709. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +46 -121
  710. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +5 -2
  711. package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +6 -3
  712. package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +9 -1
  713. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +4 -4
  714. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.d.ts +2 -1
  715. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +8 -1
  716. package/vscode/src/vs/workbench/services/history/browser/historyService.js +44 -36
  717. package/vscode/src/vs/workbench/services/history/common/history.d.ts +0 -5
  718. package/vscode/src/vs/workbench/services/language/common/languageService.js +4 -3
  719. package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +2 -1
  720. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +2 -1
  721. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycleService.js +8 -6
  722. package/vscode/src/vs/workbench/services/output/common/output.js +4 -1
  723. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +2 -2
  724. package/vscode/src/vs/workbench/services/search/common/search.js +1 -0
  725. package/vscode/src/vs/workbench/services/search/common/textSearchManager.js +15 -5
  726. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +6 -1
  727. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +1 -1
  728. package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +1 -1
  729. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +11 -1
  730. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +5 -3
  731. package/vscode/src/vs/workbench/services/userActivity/common/userActivityService.js +1 -1
  732. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +1 -0
  733. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +7 -7
  734. package/vscode-dts/vscode.proposed.aiTextSearchProvider.d.ts +261 -0
  735. package/vscode-dts/vscode.proposed.authLearnMore.d.ts +16 -0
  736. package/vscode-dts/vscode.proposed.chatParticipant.d.ts +49 -78
  737. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +13 -16
  738. package/vscode-dts/vscode.proposed.chatProvider.d.ts +1 -1
  739. package/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts +32 -0
  740. package/vscode-dts/vscode.proposed.commentingRangeHint.d.ts +16 -0
  741. package/vscode-dts/vscode.proposed.contribCommentsViewThreadMenus.d.ts +6 -0
  742. package/vscode-dts/vscode.proposed.contribDiffEditorGutterToolBarMenus.d.ts +6 -0
  743. package/vscode-dts/vscode.proposed.debugFocus.d.ts +15 -23
  744. package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +10 -0
  745. package/vscode-dts/vscode.proposed.documentPaste.d.ts +115 -30
  746. package/vscode-dts/vscode.proposed.dropMetadata.d.ts +19 -14
  747. package/vscode-dts/vscode.proposed.fileComments.d.ts +2 -4
  748. package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +18 -0
  749. package/vscode-dts/vscode.proposed.interactive.d.ts +0 -16
  750. package/vscode-dts/vscode.proposed.languageModels.d.ts +115 -53
  751. package/vscode-dts/vscode.proposed.notebookCellExecution.d.ts +44 -0
  752. package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +3 -0
  753. package/vscode-dts/vscode.proposed.tabInputMultiDiff.d.ts +22 -0
  754. package/vscode-dts/vscode.proposed.terminalExecuteCommandEvent.d.ts +2 -0
  755. package/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts +207 -0
  756. package/vscode/src/vs/editor/browser/services/hoverService.d.ts +0 -30
  757. package/vscode/src/vs/editor/browser/widget/embeddedCodeEditorWidget.js +0 -74
  758. package/vscode/src/vs/editor/browser/widget/media/editor.css.js +0 -4
  759. package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +0 -881
  760. package/vscode/src/vs/platform/theme/common/colorRegistry.js +0 -1316
  761. package/vscode/src/vs/workbench/api/common/extHostChatProvider.js +0 -253
  762. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.css.js +0 -4
  763. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.js +0 -74
  764. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.css.js +0 -4
  765. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatLivePreviewWidget.js +0 -424
  766. package/vscode-dts/vscode.proposed.testCoverage.d.ts +0 -222
  767. /package/vscode/src/vs/base/browser/ui/hover/{hover.css.js → hoverWidget.css.js} +0 -0
  768. /package/vscode/src/vs/editor/browser/{widget/hoverWidget → services/hoverService}/hover.css.js +0 -0
  769. /package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/objectPool.js +0 -0
  770. /package/vscode/src/vs/editor/contrib/indentation/{browser → common}/indentUtils.js +0 -0
  771. /package/vscode/src/vs/editor/contrib/rename/browser/{renameInputField.css.js → renameWidget.css.js} +0 -0
  772. /package/vscode/src/vs/platform/theme/common/{colorRegistry.d.ts → colorUtils.d.ts} +0 -0
@@ -2,7 +2,7 @@ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.e
2
2
  import './media/editorplaceholder.css.js';
3
3
  import { localizeWithPath } from '../../../../nls.js';
4
4
  import { truncate, truncateMiddle } from '../../../../base/common/strings.js';
5
- import Severity from '../../../../base/common/severity.js';
5
+ import Severity$1 from '../../../../base/common/severity.js';
6
6
  import { isEditorOpenError } from '../../../common/editor.js';
7
7
  import { EditorPane } from './editorPane.js';
8
8
  import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.js';
@@ -27,8 +27,8 @@ var EditorPlaceholder_1, WorkspaceTrustRequiredPlaceholderEditor_1, ErrorPlaceho
27
27
  let EditorPlaceholder = class EditorPlaceholder extends EditorPane {
28
28
  static { EditorPlaceholder_1 = this; }
29
29
  static { this.PLACEHOLDER_LABEL_MAX_LENGTH = 1024; }
30
- constructor(id, telemetryService, themeService, storageService) {
31
- super(id, telemetryService, themeService, storageService);
30
+ constructor(id, group, telemetryService, themeService, storageService) {
31
+ super(id, group, telemetryService, themeService, storageService);
32
32
  this.inputDisposable = this._register(( new MutableDisposable()));
33
33
  }
34
34
  createEditor(parent) {
@@ -56,7 +56,7 @@ let EditorPlaceholder = class EditorPlaceholder extends EditorPane {
56
56
  const { icon, label, actions } = await this.getContents(input, options, disposables);
57
57
  const truncatedLabel = truncate(label, EditorPlaceholder_1.PLACEHOLDER_LABEL_MAX_LENGTH);
58
58
  const iconContainer = container.appendChild($('.editor-placeholder-icon-container'));
59
- const iconWidget = ( new SimpleIconLabel(iconContainer));
59
+ const iconWidget = disposables.add(( new SimpleIconLabel(iconContainer)));
60
60
  iconWidget.text = icon;
61
61
  const labelContainer = container.appendChild($('.editor-placeholder-label-container'));
62
62
  const labelWidget = document.createElement('span');
@@ -106,9 +106,9 @@ let EditorPlaceholder = class EditorPlaceholder extends EditorPane {
106
106
  }
107
107
  };
108
108
  EditorPlaceholder = EditorPlaceholder_1 = ( __decorate([
109
- ( __param(1, ITelemetryService)),
110
- ( __param(2, IThemeService)),
111
- ( __param(3, IStorageService))
109
+ ( __param(2, ITelemetryService)),
110
+ ( __param(3, IThemeService)),
111
+ ( __param(4, IStorageService))
112
112
  ], EditorPlaceholder));
113
113
  let WorkspaceTrustRequiredPlaceholderEditor = class WorkspaceTrustRequiredPlaceholderEditor extends EditorPlaceholder {
114
114
  static { WorkspaceTrustRequiredPlaceholderEditor_1 = this; }
@@ -119,8 +119,8 @@ let WorkspaceTrustRequiredPlaceholderEditor = class WorkspaceTrustRequiredPlaceh
119
119
  "Workspace Trust Required"
120
120
  )); }
121
121
  static { this.DESCRIPTOR = EditorPaneDescriptor.create(WorkspaceTrustRequiredPlaceholderEditor_1, WorkspaceTrustRequiredPlaceholderEditor_1.ID, WorkspaceTrustRequiredPlaceholderEditor_1.LABEL); }
122
- constructor(telemetryService, themeService, commandService, workspaceService, storageService) {
123
- super(WorkspaceTrustRequiredPlaceholderEditor_1.ID, telemetryService, themeService, storageService);
122
+ constructor(group, telemetryService, themeService, commandService, workspaceService, storageService) {
123
+ super(WorkspaceTrustRequiredPlaceholderEditor_1.ID, group, telemetryService, themeService, storageService);
124
124
  this.commandService = commandService;
125
125
  this.workspaceService = workspaceService;
126
126
  }
@@ -155,11 +155,11 @@ let WorkspaceTrustRequiredPlaceholderEditor = class WorkspaceTrustRequiredPlaceh
155
155
  }
156
156
  };
157
157
  WorkspaceTrustRequiredPlaceholderEditor = WorkspaceTrustRequiredPlaceholderEditor_1 = ( __decorate([
158
- ( __param(0, ITelemetryService)),
159
- ( __param(1, IThemeService)),
160
- ( __param(2, ICommandService)),
161
- ( __param(3, IWorkspaceContextService)),
162
- ( __param(4, IStorageService))
158
+ ( __param(1, ITelemetryService)),
159
+ ( __param(2, IThemeService)),
160
+ ( __param(3, ICommandService)),
161
+ ( __param(4, IWorkspaceContextService)),
162
+ ( __param(5, IStorageService))
163
163
  ], WorkspaceTrustRequiredPlaceholderEditor));
164
164
  let ErrorPlaceholderEditor = class ErrorPlaceholderEditor extends EditorPlaceholder {
165
165
  static { ErrorPlaceholderEditor_1 = this; }
@@ -170,14 +170,13 @@ let ErrorPlaceholderEditor = class ErrorPlaceholderEditor extends EditorPlacehol
170
170
  "Error Editor"
171
171
  )); }
172
172
  static { this.DESCRIPTOR = EditorPaneDescriptor.create(ErrorPlaceholderEditor_1, ErrorPlaceholderEditor_1.ID, ErrorPlaceholderEditor_1.LABEL); }
173
- constructor(telemetryService, themeService, storageService, fileService, dialogService) {
174
- super(ErrorPlaceholderEditor_1.ID, telemetryService, themeService, storageService);
173
+ constructor(group, telemetryService, themeService, storageService, fileService, dialogService) {
174
+ super(ErrorPlaceholderEditor_1.ID, group, telemetryService, themeService, storageService);
175
175
  this.fileService = fileService;
176
176
  this.dialogService = dialogService;
177
177
  }
178
178
  async getContents(input, options, disposables) {
179
179
  const resource = input.resource;
180
- const group = this.group;
181
180
  const error = options.error;
182
181
  const isFileNotFound = error?.fileOperationResult === 1 ;
183
182
  let label;
@@ -208,10 +207,10 @@ let ErrorPlaceholderEditor = class ErrorPlaceholderEditor extends EditorPlacehol
208
207
  }
209
208
  let icon = '$(error)';
210
209
  if (isEditorOpenError(error)) {
211
- if (error.forceSeverity === Severity.Info) {
210
+ if (error.forceSeverity === Severity$1.Info) {
212
211
  icon = '$(info)';
213
212
  }
214
- else if (error.forceSeverity === Severity.Warning) {
213
+ else if (error.forceSeverity === Severity$1.Warning) {
215
214
  icon = '$(warning)';
216
215
  }
217
216
  }
@@ -229,7 +228,7 @@ let ErrorPlaceholderEditor = class ErrorPlaceholderEditor extends EditorPlacehol
229
228
  };
230
229
  }));
231
230
  }
232
- else if (group) {
231
+ else {
233
232
  actions = [
234
233
  {
235
234
  label: ( localizeWithPath(
@@ -237,14 +236,14 @@ let ErrorPlaceholderEditor = class ErrorPlaceholderEditor extends EditorPlacehol
237
236
  'retry',
238
237
  "Try Again"
239
238
  )),
240
- run: () => group.openEditor(input, { ...options, source: EditorOpenSource.USER })
239
+ run: () => this.group.openEditor(input, { ...options, source: EditorOpenSource.USER })
241
240
  }
242
241
  ];
243
242
  }
244
- if (group && isFileNotFound && resource && this.fileService.hasProvider(resource)) {
243
+ if (isFileNotFound && resource && this.fileService.hasProvider(resource)) {
245
244
  disposables.add(this.fileService.onDidFilesChange(e => {
246
245
  if (e.contains(resource, 1 , 0 )) {
247
- group.openEditor(input, options);
246
+ this.group.openEditor(input, options);
248
247
  }
249
248
  }));
250
249
  }
@@ -252,10 +251,10 @@ let ErrorPlaceholderEditor = class ErrorPlaceholderEditor extends EditorPlacehol
252
251
  }
253
252
  };
254
253
  ErrorPlaceholderEditor = ErrorPlaceholderEditor_1 = ( __decorate([
255
- ( __param(0, ITelemetryService)),
256
- ( __param(1, IThemeService)),
257
- ( __param(2, IStorageService)),
258
- ( __param(3, IFileService)),
259
- ( __param(4, IDialogService))
254
+ ( __param(1, ITelemetryService)),
255
+ ( __param(2, IThemeService)),
256
+ ( __param(3, IStorageService)),
257
+ ( __param(4, IFileService)),
258
+ ( __param(5, IDialogService))
260
259
  ], ErrorPlaceholderEditor));
261
260
  export { EditorPlaceholder, ErrorPlaceholderEditor, WorkspaceTrustRequiredPlaceholderEditor };
@@ -3,7 +3,7 @@ import './media/editorstatus.css.js';
3
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
- import { isEqual, extname, basename } from '../../../../base/common/resources.js';
6
+ import { extname, basename, isEqual } from '../../../../base/common/resources.js';
7
7
  import { areFunctions, assertIsDefined } from '../../../../base/common/types.js';
8
8
  import { URI } from '../../../../base/common/uri.js';
9
9
  import { Action } from '../../../../base/common/actions.js';
@@ -213,7 +213,6 @@ let TabFocusMode = class TabFocusMode extends Disposable {
213
213
  this.registerListeners();
214
214
  const tabFocusModeConfig = configurationService.getValue('editor.tabFocusMode') === true ? true : false;
215
215
  TabFocus.setTabFocusMode(tabFocusModeConfig);
216
- this._onDidChange.fire(tabFocusModeConfig);
217
216
  }
218
217
  registerListeners() {
219
218
  this._register(TabFocus.onDidChangeTabFocus(tabFocusMode => this._onDidChange.fire(tabFocusMode)));
@@ -278,12 +277,12 @@ let EditorStatus = class EditorStatus extends Disposable {
278
277
  this.eolElement = this._register(( new MutableDisposable()));
279
278
  this.languageElement = this._register(( new MutableDisposable()));
280
279
  this.metadataElement = this._register(( new MutableDisposable()));
281
- this.currentProblemStatus = this._register(this.instantiationService.createInstance(ShowCurrentMarkerInStatusbarContribution));
280
+ this.currentMarkerStatus = this._register(this.instantiationService.createInstance(ShowCurrentMarkerInStatusbarContribution));
281
+ this.tabFocusMode = this._register(this.instantiationService.createInstance(TabFocusMode));
282
282
  this.state = ( new State());
283
+ this.toRender = undefined;
283
284
  this.activeEditorListeners = this._register(( new DisposableStore()));
284
285
  this.delayedRender = this._register(( new MutableDisposable()));
285
- this.tabFocusMode = this.instantiationService.createInstance(TabFocusMode);
286
- this.toRender = undefined;
287
286
  this.registerCommands();
288
287
  this.registerListeners();
289
288
  }
@@ -301,7 +300,7 @@ let EditorStatus = class EditorStatus extends Disposable {
301
300
  }));
302
301
  }
303
302
  registerCommands() {
304
- CommandsRegistry.registerCommand({ id: `changeEditorIndentation${this.targetWindowId}`, handler: () => this.showIndentationPicker() });
303
+ this._register(CommandsRegistry.registerCommand({ id: `changeEditorIndentation${this.targetWindowId}`, handler: () => this.showIndentationPicker() }));
305
304
  }
306
305
  async showIndentationPicker() {
307
306
  const activeTextEditorControl = getCodeEditor(this.editorService.activeTextEditorControl);
@@ -623,7 +622,7 @@ let EditorStatus = class EditorStatus extends Disposable {
623
622
  this.onEncodingChange(activeEditorPane, activeCodeEditor);
624
623
  this.onIndentationChange(activeCodeEditor);
625
624
  this.onMetadataChange(activeEditorPane);
626
- this.currentProblemStatus.update(activeCodeEditor);
625
+ this.currentMarkerStatus.update(activeCodeEditor);
627
626
  this.activeEditorListeners.clear();
628
627
  if (activeEditorPane) {
629
628
  this.activeEditorListeners.add(activeEditorPane.onDidChangeControl(() => {
@@ -638,14 +637,14 @@ let EditorStatus = class EditorStatus extends Disposable {
638
637
  }));
639
638
  this.activeEditorListeners.add(Event.defer(activeCodeEditor.onDidChangeCursorPosition)(() => {
640
639
  this.onSelectionChange(activeCodeEditor);
641
- this.currentProblemStatus.update(activeCodeEditor);
640
+ this.currentMarkerStatus.update(activeCodeEditor);
642
641
  }));
643
642
  this.activeEditorListeners.add(activeCodeEditor.onDidChangeModelLanguage(() => {
644
643
  this.onLanguageChange(activeCodeEditor, activeInput);
645
644
  }));
646
645
  this.activeEditorListeners.add(Event.accumulate(activeCodeEditor.onDidChangeModelContent)(e => {
647
646
  this.onEOLChange(activeCodeEditor);
648
- this.currentProblemStatus.update(activeCodeEditor);
647
+ this.currentMarkerStatus.update(activeCodeEditor);
649
648
  const selections = activeCodeEditor.getSelections();
650
649
  if (selections) {
651
650
  for (const inner of e) {
@@ -947,29 +946,29 @@ let ShowCurrentMarkerInStatusbarContribution = class ShowCurrentMarkerInStatusba
947
946
  resource: model.uri,
948
947
  severities: MarkerSeverity.Error | MarkerSeverity.Warning | MarkerSeverity.Info
949
948
  });
950
- this.markers.sort(compareMarker);
949
+ this.markers.sort(this.compareMarker);
951
950
  }
952
951
  else {
953
952
  this.markers = [];
954
953
  }
955
954
  this.updateStatus();
956
955
  }
956
+ compareMarker(a, b) {
957
+ let res = compare(( a.resource.toString()), ( b.resource.toString()));
958
+ if (res === 0) {
959
+ res = MarkerSeverity.compare(a.severity, b.severity);
960
+ }
961
+ if (res === 0) {
962
+ res = Range.compareRangesUsingStarts(a, b);
963
+ }
964
+ return res;
965
+ }
957
966
  };
958
967
  ShowCurrentMarkerInStatusbarContribution = ( __decorate([
959
968
  ( __param(0, IStatusbarService)),
960
969
  ( __param(1, IMarkerService)),
961
970
  ( __param(2, IConfigurationService))
962
971
  ], ShowCurrentMarkerInStatusbarContribution));
963
- function compareMarker(a, b) {
964
- let res = compare(( a.resource.toString()), ( b.resource.toString()));
965
- if (res === 0) {
966
- res = MarkerSeverity.compare(a.severity, b.severity);
967
- }
968
- if (res === 0) {
969
- res = Range.compareRangesUsingStarts(a, b);
970
- }
971
- return res;
972
- }
973
972
  let ShowLanguageExtensionsAction = class ShowLanguageExtensionsAction extends Action {
974
973
  static { ShowLanguageExtensionsAction_1 = this; }
975
974
  static { this.ID = 'workbench.action.showLanguageExtensions'; }
@@ -15,7 +15,17 @@ import { IInstantiationService } from '../../../../platform/instantiation/common
15
15
  import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.js';
16
16
  import { INotificationService } from '../../../../platform/notification/common/notification.js';
17
17
  import { IQuickInputService } from '../../../../platform/quickinput/common/quickInput.js';
18
- import { listActiveSelectionForeground, listActiveSelectionBackground } from '../../../../platform/theme/common/colorRegistry.js';
18
+ import '../../../../platform/theme/common/colorUtils.js';
19
+ import '../../../../platform/theme/common/colors/baseColors.js';
20
+ import '../../../../platform/theme/common/colors/chartsColors.js';
21
+ import '../../../../platform/theme/common/colors/editorColors.js';
22
+ import '../../../../platform/theme/common/colors/inputColors.js';
23
+ import { listActiveSelectionForeground, listActiveSelectionBackground } from '../../../../platform/theme/common/colors/listColors.js';
24
+ import '../../../../platform/theme/common/colors/menuColors.js';
25
+ import '../../../../platform/theme/common/colors/minimapColors.js';
26
+ import '../../../../platform/theme/common/colors/miscColors.js';
27
+ import '../../../../platform/theme/common/colors/quickpickColors.js';
28
+ import '../../../../platform/theme/common/colors/searchColors.js';
19
29
  import { Themable, IThemeService } from '../../../../platform/theme/common/themeService.js';
20
30
  import { DraggedEditorGroupIdentifier, isWindowDraggedOver, fillEditorsDragData } from '../../dnd.js';
21
31
  import { EditorPane } from './editorPane.js';
@@ -32,7 +42,7 @@ import { EDITOR_CORE_NAVIGATION_COMMANDS } from './editorCommands.js';
32
42
  import { isMacintosh } from '../../../../base/common/platform.js';
33
43
  import { IHostService } from '../../../services/host/browser/host.js';
34
44
  import { ServiceCollection } from '../../../../platform/instantiation/common/serviceCollection.js';
35
- import { getDefaultHoverDelegate } from '../../../../base/browser/ui/hover/hoverDelegate.js';
45
+ import { getDefaultHoverDelegate } from '../../../../base/browser/ui/hover/hoverDelegateFactory.js';
36
46
  var EditorTabsControl_1;
37
47
  class EditorCommandsContextActionRunner extends ActionRunner {
38
48
  constructor(context) {
@@ -11,8 +11,8 @@ import { IEditorGroupsService } from '../../../services/editor/common/editorGrou
11
11
  import { IEditorService } from '../../../services/editor/common/editorService.js';
12
12
  import { MutableDisposable } from '../../../../base/common/lifecycle.js';
13
13
  let AbstractEditorWithViewState = class AbstractEditorWithViewState extends EditorPane {
14
- constructor(id, viewStateStorageKey, telemetryService, instantiationService, storageService, textResourceConfigurationService, themeService, editorService, editorGroupService) {
15
- super(id, telemetryService, themeService, storageService);
14
+ constructor(id, group, viewStateStorageKey, telemetryService, instantiationService, storageService, textResourceConfigurationService, themeService, editorService, editorGroupService) {
15
+ super(id, group, telemetryService, themeService, storageService);
16
16
  this.instantiationService = instantiationService;
17
17
  this.textResourceConfigurationService = textResourceConfigurationService;
18
18
  this.editorService = editorService;
@@ -20,9 +20,9 @@ let AbstractEditorWithViewState = class AbstractEditorWithViewState extends Edit
20
20
  this.groupListener = this._register(( new MutableDisposable()));
21
21
  this.viewState = this.getEditorMemento(editorGroupService, textResourceConfigurationService, viewStateStorageKey, 100);
22
22
  }
23
- setEditorVisible(visible, group) {
24
- this.groupListener.value = group?.onWillCloseEditor(e => this.onWillCloseEditor(e));
25
- super.setEditorVisible(visible, group);
23
+ setEditorVisible(visible) {
24
+ this.groupListener.value = this.group.onWillCloseEditor(e => this.onWillCloseEditor(e));
25
+ super.setEditorVisible(visible);
26
26
  }
27
27
  onWillCloseEditor(e) {
28
28
  const editor = e.editor;
@@ -58,7 +58,7 @@ let AbstractEditorWithViewState = class AbstractEditorWithViewState extends Edit
58
58
  }
59
59
  }
60
60
  if ((input.isDisposed() && !this.tracksDisposedEditorViewState()) ||
61
- (!this.shouldRestoreEditorViewState(input) && (!this.group || !this.group.contains(input)))) {
61
+ (!this.shouldRestoreEditorViewState(input) && !this.group.contains(input))) {
62
62
  this.clearEditorViewState(resource, this.group);
63
63
  }
64
64
  else if (!input.isDisposed()) {
@@ -83,9 +83,6 @@ let AbstractEditorWithViewState = class AbstractEditorWithViewState extends Edit
83
83
  return this.computeEditorViewState(resource);
84
84
  }
85
85
  saveEditorViewState(resource) {
86
- if (!this.group) {
87
- return;
88
- }
89
86
  const editorViewState = this.computeEditorViewState(resource);
90
87
  if (!editorViewState) {
91
88
  return;
@@ -93,7 +90,7 @@ let AbstractEditorWithViewState = class AbstractEditorWithViewState extends Edit
93
90
  this.viewState.saveEditorState(this.group, resource, editorViewState);
94
91
  }
95
92
  loadEditorViewState(input, context) {
96
- if (!input || !this.group) {
93
+ if (!input) {
97
94
  return undefined;
98
95
  }
99
96
  if (!this.tracksEditorViewState(input)) {
@@ -128,12 +125,12 @@ let AbstractEditorWithViewState = class AbstractEditorWithViewState extends Edit
128
125
  }
129
126
  };
130
127
  AbstractEditorWithViewState = ( __decorate([
131
- ( __param(2, ITelemetryService)),
132
- ( __param(3, IInstantiationService)),
133
- ( __param(4, IStorageService)),
134
- ( __param(5, ITextResourceConfigurationService)),
135
- ( __param(6, IThemeService)),
136
- ( __param(7, IEditorService)),
137
- ( __param(8, IEditorGroupsService))
128
+ ( __param(3, ITelemetryService)),
129
+ ( __param(4, IInstantiationService)),
130
+ ( __param(5, IStorageService)),
131
+ ( __param(6, ITextResourceConfigurationService)),
132
+ ( __param(7, IThemeService)),
133
+ ( __param(8, IEditorService)),
134
+ ( __param(9, IEditorGroupsService))
138
135
  ], AbstractEditorWithViewState));
139
136
  export { AbstractEditorWithViewState };
@@ -20,7 +20,17 @@ import { ScrollableElement } from '../../../../base/browser/ui/scrollbar/scrolla
20
20
  import { getOrSet } from '../../../../base/common/map.js';
21
21
  import { registerThemingParticipant, IThemeService } from '../../../../platform/theme/common/themeService.js';
22
22
  import { EDITOR_GROUP_HEADER_TABS_BORDER, TAB_BORDER, TAB_ACTIVE_BACKGROUND, TAB_UNFOCUSED_ACTIVE_BACKGROUND, TAB_ACTIVE_BORDER, TAB_UNFOCUSED_ACTIVE_BORDER, TAB_ACTIVE_BORDER_TOP, TAB_UNFOCUSED_ACTIVE_BORDER_TOP, TAB_ACTIVE_FOREGROUND, TAB_UNFOCUSED_ACTIVE_FOREGROUND, TAB_INACTIVE_BACKGROUND, TAB_UNFOCUSED_INACTIVE_BACKGROUND, TAB_INACTIVE_FOREGROUND, TAB_UNFOCUSED_INACTIVE_FOREGROUND, TAB_ACTIVE_MODIFIED_BORDER, TAB_INACTIVE_MODIFIED_BORDER, TAB_UNFOCUSED_ACTIVE_MODIFIED_BORDER, TAB_UNFOCUSED_INACTIVE_MODIFIED_BORDER, TAB_LAST_PINNED_BORDER, TAB_HOVER_BACKGROUND, TAB_UNFOCUSED_HOVER_BACKGROUND, TAB_HOVER_FOREGROUND, TAB_UNFOCUSED_HOVER_FOREGROUND, TAB_HOVER_BORDER, TAB_UNFOCUSED_HOVER_BORDER, EDITOR_GROUP_HEADER_TABS_BACKGROUND, EDITOR_DRAG_AND_DROP_BACKGROUND, WORKBENCH_BACKGROUND } from '../../../common/theme.js';
23
- import { contrastBorder, activeContrastBorder, editorBackground } from '../../../../platform/theme/common/colorRegistry.js';
23
+ import '../../../../platform/theme/common/colorUtils.js';
24
+ import { contrastBorder, activeContrastBorder } from '../../../../platform/theme/common/colors/baseColors.js';
25
+ import '../../../../platform/theme/common/colors/chartsColors.js';
26
+ import { editorBackground } from '../../../../platform/theme/common/colors/editorColors.js';
27
+ import '../../../../platform/theme/common/colors/inputColors.js';
28
+ import '../../../../platform/theme/common/colors/listColors.js';
29
+ import '../../../../platform/theme/common/colors/menuColors.js';
30
+ import '../../../../platform/theme/common/colors/minimapColors.js';
31
+ import '../../../../platform/theme/common/colors/miscColors.js';
32
+ import '../../../../platform/theme/common/colors/quickpickColors.js';
33
+ import '../../../../platform/theme/common/colors/searchColors.js';
24
34
  import { DraggedEditorIdentifier, DraggedEditorGroupIdentifier, isWindowDraggedOver, extractTreeDropData, ResourcesDropHandler } from '../../dnd.js';
25
35
  import { INotificationService } from '../../../../platform/notification/common/notification.js';
26
36
  import { Dimension, addDisposableListener, EventType as EventType$1, DragAndDropObserver, clearNode, scheduleAtNextAnimationFrame, getWindow, isMouseEvent, findParentWithClass, EventHelper } from '../../../../base/browser/dom.js';
@@ -16,17 +16,17 @@ let MultiRowEditorControl = class MultiRowEditorControl extends Disposable {
16
16
  const unstickyModel = this._register(( new UnstickyEditorGroupModel(this.model)));
17
17
  this.stickyEditorTabsControl = this._register(this.instantiationService.createInstance(MultiEditorTabsControl, this.parent, editorPartsView, this.groupsView, this.groupView, stickyModel));
18
18
  this.unstickyEditorTabsControl = this._register(this.instantiationService.createInstance(MultiEditorTabsControl, this.parent, editorPartsView, this.groupsView, this.groupView, unstickyModel));
19
- this.handlePinnedTabsSeparateRowToolbars();
19
+ this.handlePinnedTabsLayoutChange();
20
20
  }
21
- handlePinnedTabsSeparateRowToolbars() {
21
+ handlePinnedTabsLayoutChange() {
22
22
  if (this.groupView.count === 0) {
23
23
  return;
24
24
  }
25
- if (this.groupView.count === this.groupView.stickyCount) {
26
- this.parent.classList.toggle('two-tab-bars', false);
27
- }
28
- else {
29
- this.parent.classList.toggle('two-tab-bars', true);
25
+ const hadTwoTabBars = this.parent.classList.contains('two-tab-bars');
26
+ const hasTwoTabBars = this.groupView.count !== this.groupView.stickyCount && this.groupView.stickyCount > 0;
27
+ this.parent.classList.toggle('two-tab-bars', hasTwoTabBars);
28
+ if (hadTwoTabBars !== hasTwoTabBars) {
29
+ this.groupView.relayout();
30
30
  }
31
31
  }
32
32
  getEditorTabsController(editor) {
@@ -53,7 +53,7 @@ let MultiRowEditorControl = class MultiRowEditorControl extends Disposable {
53
53
  return didChange;
54
54
  }
55
55
  handleOpenedEditors() {
56
- this.handlePinnedTabsSeparateRowToolbars();
56
+ this.handlePinnedTabsLayoutChange();
57
57
  }
58
58
  beforeCloseEditor(editor) {
59
59
  this.getEditorTabsController(editor).beforeCloseEditor(editor);
@@ -71,7 +71,7 @@ let MultiRowEditorControl = class MultiRowEditorControl extends Disposable {
71
71
  this.handleClosedEditors();
72
72
  }
73
73
  handleClosedEditors() {
74
- this.handlePinnedTabsSeparateRowToolbars();
74
+ this.handlePinnedTabsLayoutChange();
75
75
  }
76
76
  moveEditor(editor, fromIndex, targetIndex, stickyStateChange) {
77
77
  if (stickyStateChange) {
@@ -83,7 +83,7 @@ let MultiRowEditorControl = class MultiRowEditorControl extends Disposable {
83
83
  this.stickyEditorTabsControl.closeEditor(editor);
84
84
  this.unstickyEditorTabsControl.openEditor(editor);
85
85
  }
86
- this.handlePinnedTabsSeparateRowToolbars();
86
+ this.handlePinnedTabsLayoutChange();
87
87
  }
88
88
  else {
89
89
  if (this.model.isSticky(editor)) {
@@ -100,12 +100,12 @@ let MultiRowEditorControl = class MultiRowEditorControl extends Disposable {
100
100
  stickEditor(editor) {
101
101
  this.unstickyEditorTabsControl.closeEditor(editor);
102
102
  this.stickyEditorTabsControl.openEditor(editor);
103
- this.handlePinnedTabsSeparateRowToolbars();
103
+ this.handlePinnedTabsLayoutChange();
104
104
  }
105
105
  unstickEditor(editor) {
106
106
  this.stickyEditorTabsControl.closeEditor(editor);
107
107
  this.unstickyEditorTabsControl.openEditor(editor);
108
- this.handlePinnedTabsSeparateRowToolbars();
108
+ this.handlePinnedTabsLayoutChange();
109
109
  }
110
110
  setActive(isActive) {
111
111
  this.stickyEditorTabsControl.setActive(isActive);
@@ -48,8 +48,8 @@ let SideBySideEditor = class SideBySideEditor extends AbstractEditorWithViewStat
48
48
  get maximumWidth() { return this.maximumPrimaryWidth + this.maximumSecondaryWidth; }
49
49
  get minimumHeight() { return this.minimumPrimaryHeight + this.minimumSecondaryHeight; }
50
50
  get maximumHeight() { return this.maximumPrimaryHeight + this.maximumSecondaryHeight; }
51
- constructor(telemetryService, instantiationService, themeService, storageService, configurationService, textResourceConfigurationService, editorService, editorGroupService) {
52
- super(SideBySideEditor_1.ID, SideBySideEditor_1.VIEW_STATE_PREFERENCE_KEY, telemetryService, instantiationService, storageService, textResourceConfigurationService, themeService, editorService, editorGroupService);
51
+ constructor(group, telemetryService, instantiationService, themeService, storageService, configurationService, textResourceConfigurationService, editorService, editorGroupService) {
52
+ super(SideBySideEditor_1.ID, group, SideBySideEditor_1.VIEW_STATE_PREFERENCE_KEY, telemetryService, instantiationService, storageService, textResourceConfigurationService, themeService, editorService, editorGroupService);
53
53
  this.configurationService = configurationService;
54
54
  this.onDidCreateEditors = this._register(( new Emitter()));
55
55
  this._onDidChangeSizeConstraints = this._register(( new Relay()));
@@ -211,9 +211,9 @@ let SideBySideEditor = class SideBySideEditor extends AbstractEditorWithViewStat
211
211
  if (!editorPaneDescriptor) {
212
212
  throw new Error('No editor pane descriptor for editor found');
213
213
  }
214
- const editorPane = editorPaneDescriptor.instantiate(this.instantiationService);
214
+ const editorPane = editorPaneDescriptor.instantiate(this.instantiationService, this.group);
215
215
  editorPane.create(container);
216
- editorPane.setVisible(this.isVisible(), this.group);
216
+ editorPane.setVisible(this.isVisible());
217
217
  if (isEditorPaneWithSelection(editorPane)) {
218
218
  this.editorDisposables.add(editorPane.onDidChangeSelection(e => this._onDidChangeSelection.fire(e)));
219
219
  }
@@ -244,10 +244,10 @@ let SideBySideEditor = class SideBySideEditor extends AbstractEditorWithViewStat
244
244
  }
245
245
  this.getLastFocusedEditorPane()?.setOptions(options);
246
246
  }
247
- setEditorVisible(visible, group) {
248
- this.primaryEditorPane?.setVisible(visible, group);
249
- this.secondaryEditorPane?.setVisible(visible, group);
250
- super.setEditorVisible(visible, group);
247
+ setEditorVisible(visible) {
248
+ this.primaryEditorPane?.setVisible(visible);
249
+ this.secondaryEditorPane?.setVisible(visible);
250
+ super.setEditorVisible(visible);
251
251
  }
252
252
  clearInput() {
253
253
  super.clearInput();
@@ -354,14 +354,14 @@ let SideBySideEditor = class SideBySideEditor extends AbstractEditorWithViewStat
354
354
  }
355
355
  };
356
356
  SideBySideEditor = SideBySideEditor_1 = ( __decorate([
357
- ( __param(0, ITelemetryService)),
358
- ( __param(1, IInstantiationService)),
359
- ( __param(2, IThemeService)),
360
- ( __param(3, IStorageService)),
361
- ( __param(4, IConfigurationService)),
362
- ( __param(5, ITextResourceConfigurationService)),
363
- ( __param(6, IEditorService)),
364
- ( __param(7, IEditorGroupsService))
357
+ ( __param(1, ITelemetryService)),
358
+ ( __param(2, IInstantiationService)),
359
+ ( __param(3, IThemeService)),
360
+ ( __param(4, IStorageService)),
361
+ ( __param(5, IConfigurationService)),
362
+ ( __param(6, ITextResourceConfigurationService)),
363
+ ( __param(7, IEditorService)),
364
+ ( __param(8, IEditorGroupsService))
365
365
  ], SideBySideEditor));
366
366
  class SideBySideAwareEditorPaneSelection {
367
367
  constructor(selection, side) {
@@ -3,7 +3,7 @@ import { assertIsDefined } from '../../../../base/common/types.js';
3
3
  import { applyTextEditorOptions } from '../../../common/editor/editorOptions.js';
4
4
  import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
5
5
  import { isEqual } from '../../../../base/common/resources.js';
6
- import { CodeEditorWidget } from '../../../../editor/browser/widget/codeEditorWidget.js';
6
+ import { CodeEditorWidget } from '../../../../editor/browser/widget/codeEditor/codeEditorWidget.js';
7
7
  import '../../../../../../../override/vs/workbench/browser/parts/editor/textEditor.js';
8
8
  import { AbstractTextEditor } from './textEditor.js';
9
9
  class AbstractTextCodeEditor extends AbstractTextEditor {
@@ -69,8 +69,8 @@ class AbstractTextCodeEditor extends AbstractTextEditor {
69
69
  hasFocus() {
70
70
  return this.editorControl?.hasTextFocus() || super.hasFocus();
71
71
  }
72
- setEditorVisible(visible, group) {
73
- super.setEditorVisible(visible, group);
72
+ setEditorVisible(visible) {
73
+ super.setEditorVisible(visible);
74
74
  if (visible) {
75
75
  this.editorControl?.onVisible();
76
76
  }
@@ -37,8 +37,8 @@ let TextDiffEditor = class TextDiffEditor extends AbstractTextEditor {
37
37
  const modifiedEditor = this.diffEditorControl.getModifiedEditor();
38
38
  return (originalEditor.hasTextFocus() ? originalEditor : modifiedEditor).invokeWithinContext(accessor => accessor.get(IContextKeyService));
39
39
  }
40
- constructor(telemetryService, instantiationService, storageService, configurationService, editorService, themeService, editorGroupService, fileService, preferencesService) {
41
- super(TextDiffEditor_1.ID, telemetryService, instantiationService, storageService, configurationService, themeService, editorService, editorGroupService, fileService);
40
+ constructor(group, telemetryService, instantiationService, storageService, configurationService, editorService, themeService, editorGroupService, fileService, preferencesService) {
41
+ super(TextDiffEditor_1.ID, group, telemetryService, instantiationService, storageService, configurationService, themeService, editorService, editorGroupService, fileService);
42
42
  this.preferencesService = preferencesService;
43
43
  this.diffEditorControl = undefined;
44
44
  this.inputLifecycleStopWatch = undefined;
@@ -111,7 +111,7 @@ let TextDiffEditor = class TextDiffEditor extends AbstractTextEditor {
111
111
  if (this.isFileBinaryError(error)) {
112
112
  return this.openAsBinary(input, options);
113
113
  }
114
- if (error.fileOperationResult === 7 && this.group) {
114
+ if (error.fileOperationResult === 7 ) {
115
115
  let message;
116
116
  if (error instanceof TooLargeFileOperationError) {
117
117
  message = ( localizeWithPath(
@@ -157,14 +157,14 @@ let TextDiffEditor = class TextDiffEditor extends AbstractTextEditor {
157
157
  if (fileEditorFactory.isFileEditor(modified)) {
158
158
  modified.setForceOpenAsBinary();
159
159
  }
160
- (this.group ?? this.editorGroupService.activeGroup).replaceEditors([{
160
+ this.group.replaceEditors([{
161
161
  editor: input,
162
162
  replacement: binaryDiffInput,
163
163
  options: {
164
164
  ...options,
165
165
  activation: EditorActivation.PRESERVE,
166
- pinned: this.group?.isPinned(input),
167
- sticky: this.group?.isSticky(input)
166
+ pinned: this.group.isPinned(input),
167
+ sticky: this.group.isSticky(input)
168
168
  }
169
169
  }]);
170
170
  }
@@ -254,8 +254,8 @@ let TextDiffEditor = class TextDiffEditor extends AbstractTextEditor {
254
254
  hasFocus() {
255
255
  return this.diffEditorControl?.hasTextFocus() || super.hasFocus();
256
256
  }
257
- setEditorVisible(visible, group) {
258
- super.setEditorVisible(visible, group);
257
+ setEditorVisible(visible) {
258
+ super.setEditorVisible(visible);
259
259
  if (visible) {
260
260
  this.diffEditorControl?.onVisible();
261
261
  }
@@ -307,14 +307,14 @@ let TextDiffEditor = class TextDiffEditor extends AbstractTextEditor {
307
307
  }
308
308
  };
309
309
  TextDiffEditor = TextDiffEditor_1 = ( __decorate([
310
- ( __param(0, ITelemetryService)),
311
- ( __param(1, IInstantiationService)),
312
- ( __param(2, IStorageService)),
313
- ( __param(3, ITextResourceConfigurationService)),
314
- ( __param(4, IEditorService)),
315
- ( __param(5, IThemeService)),
316
- ( __param(6, IEditorGroupsService)),
317
- ( __param(7, IFileService)),
318
- ( __param(8, IPreferencesService))
310
+ ( __param(1, ITelemetryService)),
311
+ ( __param(2, IInstantiationService)),
312
+ ( __param(3, IStorageService)),
313
+ ( __param(4, ITextResourceConfigurationService)),
314
+ ( __param(5, IEditorService)),
315
+ ( __param(6, IThemeService)),
316
+ ( __param(7, IEditorGroupsService)),
317
+ ( __param(8, IFileService)),
318
+ ( __param(9, IPreferencesService))
319
319
  ], TextDiffEditor));
320
320
  export { TextDiffEditor };