@codingame/monaco-vscode-api 4.5.2 → 5.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 (434) hide show
  1. package/api.js +1 -1
  2. package/extensions.d.ts +2 -3
  3. package/lifecycle.js +6 -0
  4. package/localExtensionHost.d.ts +4 -1
  5. package/missing-services.js +41 -25
  6. package/package.json +8 -8
  7. package/service-override/tools/editor.js +31 -8
  8. package/service-override/tools/views.d.ts +1 -1
  9. package/service-override/tools/views.js +2 -3
  10. package/service-override/views.d.ts +0 -1
  11. package/services.d.ts +3 -3
  12. package/services.js +3 -3
  13. package/vscode/src/vs/base/browser/markdownRenderer.js +9 -3
  14. package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +2 -2
  15. package/vscode/src/vs/base/browser/ui/button/button.js +3 -3
  16. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
  17. package/vscode/src/vs/base/browser/ui/contextview/contextview.js +1 -1
  18. package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +2 -2
  19. package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +2 -2
  20. package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.js +2 -2
  21. package/vscode/src/vs/{platform/hover/browser → base/browser/ui/hover}/hover.d.ts +64 -4
  22. package/vscode/src/vs/base/browser/ui/hover/hoverDelegate.d.ts +1 -1
  23. package/vscode/src/vs/base/browser/ui/hover/hoverDelegate2.js +13 -0
  24. package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css.js +1 -1
  25. package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +30 -14
  26. package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +15 -2
  27. package/vscode/src/vs/base/browser/ui/iconLabel/simpleIconLabel.js +2 -2
  28. package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.css.js +4 -0
  29. package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.js +239 -0
  30. package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +2 -2
  31. package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +2 -2
  32. package/vscode/src/vs/base/browser/ui/list/listView.js +5 -3
  33. package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +33 -0
  34. package/vscode/src/vs/base/browser/ui/list/listWidget.js +4 -1
  35. package/vscode/src/vs/base/browser/ui/menu/menu.js +1 -0
  36. package/vscode/src/vs/base/browser/ui/menu/menubar.css.js +1 -1
  37. package/vscode/src/vs/base/browser/ui/progressbar/progressAccessibilitySignal.js +13 -0
  38. package/vscode/src/vs/base/browser/ui/progressbar/progressbar.js +7 -1
  39. package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +2 -2
  40. package/vscode/src/vs/base/browser/ui/table/tableWidget.js +2 -2
  41. package/vscode/src/vs/base/browser/ui/toggle/toggle.js +8 -2
  42. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +1 -1
  43. package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +11 -4
  44. package/vscode/src/vs/base/browser/ui/tree/media/tree.css.js +1 -1
  45. package/vscode/src/vs/base/browser/ui/tree/objectTree.js +6 -4
  46. package/vscode/src/vs/base/common/arraysFind.js +7 -7
  47. package/vscode/src/vs/base/common/async.js +8 -3
  48. package/vscode/src/vs/base/common/cache.js +29 -10
  49. package/vscode/src/vs/base/common/cancellation.js +6 -1
  50. package/vscode/src/vs/base/common/codicons.d.ts +3 -0
  51. package/vscode/src/vs/base/common/codiconsLibrary.js +3 -0
  52. package/vscode/src/vs/base/common/controlFlow.js +48 -0
  53. package/vscode/src/vs/base/common/equals.js +44 -0
  54. package/vscode/src/vs/base/common/event.d.ts +11 -1
  55. package/vscode/src/vs/base/common/event.js +26 -1
  56. package/vscode/src/vs/base/common/jsonEdit.js +1 -1
  57. package/vscode/src/vs/base/common/lifecycle.js +1 -1
  58. package/vscode/src/vs/base/common/map.js +53 -4
  59. package/vscode/src/vs/base/common/network.js +2 -0
  60. package/vscode/src/vs/base/common/objects.js +3 -0
  61. package/vscode/src/vs/base/common/observableInternal/autorun.js +1 -10
  62. package/vscode/src/vs/base/common/observableInternal/base.js +22 -10
  63. package/vscode/src/vs/base/common/observableInternal/derived.js +8 -8
  64. package/vscode/src/vs/base/common/observableInternal/promise.js +19 -1
  65. package/vscode/src/vs/base/common/observableInternal/utils.js +30 -52
  66. package/vscode/src/vs/base/common/product.d.ts +1 -0
  67. package/vscode/src/vs/base/common/strings.js +1 -1
  68. package/vscode/src/vs/base/common/types.d.ts +5 -1
  69. package/vscode/src/vs/editor/browser/config/editorConfiguration.js +3 -2
  70. package/vscode/src/vs/editor/browser/observableUtilities.js +58 -0
  71. package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +121 -2
  72. package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +80 -0
  73. package/vscode/src/vs/editor/browser/stableEditorScroll.js +37 -1
  74. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +10 -3
  75. package/vscode/src/vs/editor/browser/widget/codeEditor/editor.css.js +1 -1
  76. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js +1 -0
  77. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +7 -5
  78. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorSash.js +1 -0
  79. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +1 -0
  80. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +3 -0
  81. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +3 -10
  82. package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +8 -0
  83. package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +6 -6
  84. package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +1 -0
  85. package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +2 -2
  86. package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -0
  87. package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +1 -0
  88. package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +1 -0
  89. package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +1 -0
  90. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +3 -2
  91. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.js +17 -8
  92. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidget.js +1 -0
  93. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +27 -19
  94. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/style.css.js +1 -1
  95. package/vscode/src/vs/editor/common/core/editorColorRegistry.js +4 -4
  96. package/vscode/src/vs/editor/common/core/lineRange.d.ts +12 -0
  97. package/vscode/src/vs/editor/common/core/lineRange.js +28 -0
  98. package/vscode/src/vs/editor/common/core/textEdit.d.ts +21 -0
  99. package/vscode/src/vs/editor/common/core/textEdit.js +13 -1
  100. package/vscode/src/vs/editor/common/core/textLength.d.ts +29 -0
  101. package/vscode/src/vs/editor/common/core/textLength.js +6 -0
  102. package/vscode/src/vs/editor/common/cursor/cursorCollection.js +3 -3
  103. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +11 -1
  104. package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +11 -0
  105. package/vscode/src/vs/editor/common/diff/rangeMapping.js +34 -3
  106. package/vscode/src/vs/editor/common/languages.d.ts +50 -10
  107. package/vscode/src/vs/editor/common/languages.js +11 -1
  108. package/vscode/src/vs/editor/common/services/languageFeatureDebounce.js +1 -1
  109. package/vscode/src/vs/editor/common/services/languageFeatures.d.ts +2 -2
  110. package/vscode/src/vs/editor/common/services/languageFeaturesService.js +1 -1
  111. package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +11 -1
  112. package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +3 -0
  113. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +22 -6
  114. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +5 -0
  115. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +1 -0
  116. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorContributions.js +1 -1
  117. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js +20 -3
  118. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerWidget.js +1 -1
  119. package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +2 -2
  120. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +4 -4
  121. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +2 -2
  122. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +7 -0
  123. package/vscode/src/vs/editor/contrib/find/browser/findController.js +11 -6
  124. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +10 -10
  125. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverComputer.js +74 -0
  126. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +332 -0
  127. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverStatusBar.js +34 -0
  128. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverTypes.js +39 -0
  129. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.js +355 -0
  130. package/vscode/src/vs/editor/contrib/hover/browser/getHover.js +11 -14
  131. package/vscode/src/vs/editor/contrib/hover/browser/hover.css.js +1 -1
  132. package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +13 -0
  133. package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +354 -0
  134. package/vscode/src/vs/editor/contrib/hover/browser/hoverContribution.js +42 -0
  135. package/vscode/src/vs/editor/contrib/hover/browser/hoverController.js +320 -0
  136. package/vscode/src/vs/editor/contrib/hover/browser/marginHoverComputer.js +48 -0
  137. package/vscode/src/vs/editor/contrib/hover/browser/{marginHover.js → marginHoverWidget.js} +14 -48
  138. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +250 -41
  139. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +1 -0
  140. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +44 -20
  141. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +11 -7
  142. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +1 -0
  143. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostTextWidget.js +1 -0
  144. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +2 -3
  145. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys.js +1 -0
  146. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +26 -13
  147. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +5 -11
  148. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +24 -22
  149. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsSource.js +39 -70
  150. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/suggestWidgetInlineCompletionProvider.js +3 -3
  151. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +1 -0
  152. package/vscode/src/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.js +1 -0
  153. package/vscode/src/vs/editor/contrib/inlineEdit/browser/hoverParticipant.js +1 -0
  154. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +4 -2
  155. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +5 -3
  156. package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgressWidget.css.js +1 -1
  157. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +18 -6
  158. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.css.js +1 -1
  159. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +165 -40
  160. package/vscode/src/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js +5 -0
  161. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +3 -3
  162. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +15 -8
  163. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +13 -6
  164. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +0 -2
  165. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +9 -2
  166. package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +23 -18
  167. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +33 -11
  168. package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +1 -9
  169. package/vscode/src/vs/platform/accessibility/common/accessibility.js +2 -1
  170. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +15 -9
  171. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +133 -132
  172. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service.d.ts +12 -5
  173. package/vscode/src/vs/platform/accessibilitySignal/browser/progressAccessibilitySignalScheduler.js +25 -0
  174. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +4 -4
  175. package/vscode/src/vs/platform/actions/browser/buttonbar.js +10 -7
  176. package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +1 -1
  177. package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +4 -1
  178. package/vscode/src/vs/platform/actions/browser/toolbar.js +53 -36
  179. package/vscode/src/vs/platform/actions/common/actions.d.ts +3 -1
  180. package/vscode/src/vs/platform/actions/common/actions.js +14 -4
  181. package/vscode/src/vs/platform/actions/common/menuService.js +30 -8
  182. package/vscode/src/vs/platform/configuration/common/configuration.js +4 -0
  183. package/vscode/src/vs/platform/configuration/common/configurationModels.js +43 -32
  184. package/vscode/src/vs/platform/configuration/common/configurations.js +12 -10
  185. package/vscode/src/vs/platform/contextview/browser/contextView.d.ts +4 -1
  186. package/vscode/src/vs/platform/contextview/browser/contextView.service.d.ts +2 -3
  187. package/vscode/src/vs/platform/contextview/browser/contextViewService.js +10 -8
  188. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +0 -1
  189. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +1 -0
  190. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +1 -0
  191. package/vscode/src/vs/platform/extensions/common/extensions.d.ts +5 -0
  192. package/vscode/src/vs/platform/files/common/files.d.ts +14 -1
  193. package/vscode/src/vs/platform/hover/browser/hover.service.d.ts +2 -31
  194. package/vscode/src/vs/platform/instantiation/common/instantiation.d.ts +9 -0
  195. package/vscode/src/vs/platform/instantiation/common/instantiationService.js +42 -8
  196. package/vscode/src/vs/platform/log/common/log.js +3 -1
  197. package/vscode/src/vs/platform/markers/common/markerService.js +7 -3
  198. package/vscode/src/vs/platform/opener/browser/link.js +6 -4
  199. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +2 -2
  200. package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +15 -7
  201. package/vscode/src/vs/platform/telemetry/common/gdprTypings.d.ts +0 -1
  202. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -0
  203. package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +5 -0
  204. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.d.ts +30 -0
  205. package/vscode/src/vs/platform/theme/browser/defaultStyles.js +6 -0
  206. package/vscode/src/vs/platform/theme/browser/iconsStyleSheet.js +13 -11
  207. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
  208. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +28 -28
  209. package/vscode/src/vs/workbench/api/common/extHost.protocol.js +2 -6
  210. package/vscode/src/vs/workbench/api/common/extHostBulkEdits.js +2 -1
  211. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +104 -96
  212. package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +4 -4
  213. package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +9 -3
  214. package/vscode/src/vs/workbench/api/common/extHostDebugService.js +3 -3
  215. package/vscode/src/vs/workbench/api/common/extHostDocumentSaveParticipant.js +2 -1
  216. package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +1 -1
  217. package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +19 -1
  218. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +87 -17
  219. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +39 -2
  220. package/vscode/src/vs/workbench/api/common/extHostNotebookDocumentSaveParticipant.js +2 -1
  221. package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +52 -36
  222. package/vscode/src/vs/workbench/api/common/extHostTesting.js +10 -28
  223. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +6 -1
  224. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +132 -136
  225. package/vscode/src/vs/workbench/api/common/extHostTypes.js +72 -18
  226. package/vscode/src/vs/workbench/api/common/extHostWindow.js +3 -5
  227. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +86 -76
  228. package/vscode/src/vs/workbench/browser/actions/media/actions.css.js +1 -1
  229. package/vscode/src/vs/workbench/browser/actions/widgetNavigationCommands.js +30 -6
  230. package/vscode/src/vs/workbench/browser/labels.js +4 -1
  231. package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +3 -1
  232. package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +19 -7
  233. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +16 -3
  234. package/vscode/src/vs/workbench/browser/parts/editor/media/editorquickaccess.css.js +1 -1
  235. package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css.js +1 -1
  236. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +14 -33
  237. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +33 -13
  238. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +7 -5
  239. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +4 -3
  240. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +2 -1
  241. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +3 -1
  242. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +3 -3
  243. package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +1 -1
  244. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +182 -63
  245. package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +14 -3
  246. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +61 -34
  247. package/vscode/src/vs/workbench/browser/workbench.contribution.js +16 -10
  248. package/vscode/src/vs/workbench/common/theme.js +144 -98
  249. package/vscode/src/vs/workbench/common/views.d.ts +2 -0
  250. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +190 -138
  251. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +876 -0
  252. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +59 -7
  253. package/vscode/src/vs/workbench/contrib/accessibility/browser/{accessibilityContributions.js → accessibleViewContributions.js} +160 -6
  254. package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +3 -3
  255. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +66 -150
  256. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +75 -12
  257. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +21 -22
  258. package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +6 -1
  259. package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +101 -0
  260. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +6 -5
  261. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +30 -23
  262. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +201 -47
  263. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +42 -5
  264. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +13 -28
  265. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css.js +1 -1
  266. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +366 -6
  267. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +35 -2
  268. package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
  269. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatAgentHover.css.js +4 -0
  270. package/vscode/src/vs/workbench/contrib/chat/common/annotations.js +4 -9
  271. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +95 -5
  272. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.js +2 -1
  273. package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +1 -1
  274. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +11 -6
  275. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +94 -79
  276. package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +0 -13
  277. package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.js +2 -0
  278. package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +7 -9
  279. package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.service.js +3 -0
  280. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +1 -1
  281. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +1 -0
  282. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +4 -4
  283. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +30 -26
  284. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +30 -29
  285. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +4 -4
  286. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +5 -4
  287. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +3 -3
  288. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +13 -13
  289. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +26 -16
  290. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +107 -26
  291. package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +1 -1
  292. package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +23 -2
  293. package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +2 -3
  294. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +39 -11
  295. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +53 -33
  296. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +967 -0
  297. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +101 -0
  298. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +4 -1
  299. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +82 -0
  300. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +10 -9
  301. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +79 -45
  302. package/vscode/src/vs/workbench/contrib/files/browser/{fileCommands.save.js → fileCommands._save.js} +4 -4
  303. package/vscode/src/vs/workbench/contrib/files/browser/{files.configuration.contribution.js → files.contribution._configuration.js} +1 -1
  304. package/vscode/src/vs/workbench/contrib/files/browser/{files.editorPane.contribution.js → files.contribution._editorPane.js} +18 -18
  305. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +5 -3
  306. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +19 -14
  307. package/vscode/src/vs/workbench/contrib/files/browser/views/media/openeditors.css.js +1 -1
  308. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +8 -8
  309. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +15 -2
  310. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +29 -112
  311. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatContentWidget.js +10 -7
  312. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +99 -91
  313. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +9 -31
  314. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +345 -104
  315. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +62 -69
  316. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +63 -46
  317. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +18 -10
  318. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css.js +1 -1
  319. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatContentWidget.css.js +1 -1
  320. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +1 -31
  321. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +7 -3
  322. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +5 -1
  323. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -0
  324. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +1 -0
  325. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +1 -0
  326. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +4 -4
  327. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +2 -48
  328. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +28 -23
  329. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +5 -9
  330. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +112 -0
  331. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +18 -10
  332. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +4 -4
  333. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +7 -2
  334. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +4 -5
  335. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +8 -3
  336. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +1 -0
  337. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +36 -4
  338. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +9 -6
  339. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +17 -5
  340. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +6 -4
  341. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +5 -5
  342. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +3 -3
  343. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +5 -4
  344. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +2 -0
  345. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
  346. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.js +2 -3
  347. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +22 -1
  348. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +34 -6
  349. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +15 -0
  350. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +6 -4
  351. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProviderFactory.service.js +3 -0
  352. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +17 -14
  353. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +2 -1
  354. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +52 -16
  355. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +3 -1
  356. package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +2 -2
  357. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +25 -12
  358. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +6 -4
  359. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +0 -2
  360. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +6 -4
  361. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +24 -2
  362. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +38 -8
  363. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +0 -1
  364. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +1 -0
  365. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +7 -14
  366. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +24 -6
  367. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.js +2 -1
  368. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +8 -9
  369. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +2 -20
  370. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +3 -1
  371. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +2 -2
  372. package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +1 -0
  373. package/vscode/src/vs/workbench/contrib/testing/common/testItemCollection.js +10 -0
  374. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +15 -3
  375. package/vscode/src/vs/workbench/services/accessibility/common/accessibleViewInformationService.service.d.ts +9 -0
  376. package/vscode/src/vs/workbench/services/accessibility/common/accessibleViewInformationService.service.js +3 -0
  377. package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.js +30 -16
  378. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +15 -4
  379. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.d.ts +20 -1
  380. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +0 -1
  381. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +4 -1
  382. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManagers.d.ts +4 -1
  383. package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocation.d.ts +1 -1
  384. package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +8 -2
  385. package/vscode/src/vs/workbench/services/extensions/common/extensions.js +2 -1
  386. package/vscode/src/vs/workbench/services/extensions/common/extensions.service.d.ts +4 -1
  387. package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +3 -3
  388. package/vscode/src/vs/workbench/services/language/common/languageService.js +23 -18
  389. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +6 -4
  390. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +50 -9
  391. package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.js +1 -0
  392. package/vscode/src/vs/workbench/services/userDataProfile/browser/iconSelectBox.js +97 -0
  393. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopy.d.ts +7 -2
  394. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +2 -2
  395. package/vscode-dts/vscode.proposed.chatParticipant.d.ts +23 -45
  396. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +65 -91
  397. package/vscode-dts/vscode.proposed.chatProvider.d.ts +9 -0
  398. package/vscode-dts/vscode.proposed.chatTab.d.ts +1 -5
  399. package/vscode-dts/vscode.proposed.contribAccessibilityHelpContent.d.ts +15 -0
  400. package/vscode-dts/vscode.proposed.debugFocus.d.ts +4 -4
  401. package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +2 -2
  402. package/vscode-dts/vscode.proposed.documentPaste.d.ts +144 -43
  403. package/vscode-dts/vscode.proposed.editorHoverVerbosityLevel.d.ts +76 -0
  404. package/vscode-dts/vscode.proposed.interactive.d.ts +1 -17
  405. package/vscode-dts/vscode.proposed.languageModels.d.ts +56 -11
  406. package/vscode-dts/vscode.proposed.newSymbolNamesProvider.d.ts +12 -1
  407. package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +4 -4
  408. package/vscode-dts/vscode.proposed.speech.d.ts +2 -1
  409. package/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts +144 -38
  410. package/vscode-dts/vscode.proposed.testPreserveFocus.d.ts +28 -0
  411. package/vscode/src/vs/base/browser/ui/hover/updatableHoverWidget.d.ts +0 -21
  412. package/vscode/src/vs/base/browser/ui/hover/updatableHoverWidget.js +0 -214
  413. package/vscode/src/vs/editor/browser/services/hoverService/hoverService.d.ts +0 -32
  414. package/vscode/src/vs/editor/contrib/hover/browser/contentHover.js +0 -838
  415. package/vscode/src/vs/editor/contrib/hover/browser/hover.js +0 -621
  416. package/vscode/src/vs/platform/accessibility/common/accessibility.service.d.ts +0 -19
  417. package/vscode/src/vs/workbench/api/common/extHostChat.js +0 -54
  418. package/vscode/src/vs/workbench/api/common/extHostIssueReporter.js +0 -70
  419. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignal.contribution.js +0 -237
  420. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalDebuggerContribution.js +0 -49
  421. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalLineFeatureContribution.js +0 -178
  422. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/commands.js +0 -141
  423. package/vscode/src/vs/workbench/contrib/chat/common/chatContributionService.service.js +0 -3
  424. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatFileCreationWidget.js +0 -212
  425. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.js +0 -95
  426. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +0 -110
  427. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js +0 -224
  428. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +0 -48
  429. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEvents.js +0 -47
  430. package/vscode-dts/vscode.proposed.dropMetadata.d.ts +0 -65
  431. package/vscode-dts/vscode.proposed.handleIssueUri.d.ts +0 -57
  432. package/vscode-dts/vscode.proposed.windowActivity.d.ts +0 -17
  433. /package/vscode/src/vs/workbench/browser/parts/editor/{editor.autosave.contribution.js → editor.contribution._autosave.js} +0 -0
  434. /package/vscode/src/vs/workbench/contrib/files/browser/{files.fileEditorFactory.contribution.js → files.contribution._fileEditorFactory.js} +0 -0
@@ -1,13 +1,15 @@
1
1
  import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
2
  import { append, $, addDisposableListener } from '../../../../base/browser/dom.js';
3
+ import { getDefaultHoverDelegate } from '../../../../base/browser/ui/hover/hoverDelegateFactory.js';
3
4
  import { MOUSE_CURSOR_TEXT_CSS_CLASS_NAME } from '../../../../base/browser/ui/mouseCursor/mouseCursor.js';
4
5
  import { Disposable, dispose } from '../../../../base/common/lifecycle.js';
6
+ import { Schemas } from '../../../../base/common/network.js';
5
7
  import { URI } from '../../../../base/common/uri.js';
6
8
  import { generateUuid } from '../../../../base/common/uuid.js';
7
- import { ILanguageService } from '../../../../editor/common/languages/language.js';
8
- import { IModelService } from '../../../../editor/common/services/model.js';
9
+ import { ITextModelService } from '../../../../editor/common/services/resolverService.js';
9
10
  import { localizeWithPath } from '../../../../nls.js';
10
11
  import { IConfigurationService } from '../../../../platform/configuration/common/configuration.service.js';
12
+ import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.service.js';
11
13
  import { resolveColorValue } from '../../../../platform/theme/common/colorUtils.js';
12
14
  import '../../../../platform/theme/common/colors/baseColors.js';
13
15
  import '../../../../platform/theme/common/colors/chartsColors.js';
@@ -24,15 +26,12 @@ import { CommentFormActions } from './commentFormActions.js';
24
26
  import { ICommentService } from './commentService.service.js';
25
27
  import { CommentContextKeys } from '../common/commentContextKeys.js';
26
28
  import { MIN_EDITOR_HEIGHT, SimpleCommentEditor, calculateEditorHeight } from './simpleCommentEditor.js';
27
- import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.service.js';
28
- import { setupCustomHover } from '../../../../base/browser/ui/hover/updatableHoverWidget.js';
29
- import { getDefaultHoverDelegate } from '../../../../base/browser/ui/hover/hoverDelegateFactory.js';
29
+ import { IHoverService } from '../../../../platform/hover/browser/hover.service.js';
30
30
  const _moduleId = "vs/workbench/contrib/comments/browser/commentReply";
31
- const COMMENT_SCHEME = 'comment';
32
31
  let INMEM_MODEL_ID = 0;
33
32
  const COMMENTEDITOR_DECORATION_KEY = 'commenteditordecoration';
34
33
  let CommentReply = class CommentReply extends Disposable {
35
- constructor(owner, container, _parentEditor, _commentThread, _scopedInstatiationService, _contextKeyService, _commentMenus, _commentOptions, _pendingComment, _parentThread, _actionRunDelegate, commentService, languageService, modelService, themeService, configurationService, keybindingService) {
34
+ constructor(owner, container, _parentEditor, _commentThread, _scopedInstatiationService, _contextKeyService, _commentMenus, _commentOptions, _pendingComment, _parentThread, _actionRunDelegate, commentService, themeService, configurationService, keybindingService, hoverService, textModelService) {
36
35
  super();
37
36
  this.owner = owner;
38
37
  this._parentEditor = _parentEditor;
@@ -45,41 +44,46 @@ let CommentReply = class CommentReply extends Disposable {
45
44
  this._parentThread = _parentThread;
46
45
  this._actionRunDelegate = _actionRunDelegate;
47
46
  this.commentService = commentService;
48
- this.languageService = languageService;
49
- this.modelService = modelService;
50
47
  this.themeService = themeService;
51
48
  this.keybindingService = keybindingService;
49
+ this.hoverService = hoverService;
50
+ this.textModelService = textModelService;
52
51
  this._commentThreadDisposables = [];
53
52
  this._editorHeight = MIN_EDITOR_HEIGHT;
54
53
  this.form = append(container, $('.comment-form'));
55
54
  this.commentEditor = this._register(this._scopedInstatiationService.createInstance(SimpleCommentEditor, this.form, SimpleCommentEditor.getEditorOptions(configurationService), _contextKeyService, this._parentThread));
56
55
  this.commentEditorIsEmpty = CommentContextKeys.commentIsEmpty.bindTo(this._contextKeyService);
57
56
  this.commentEditorIsEmpty.set(!this._pendingComment);
57
+ this.initialize();
58
+ }
59
+ async initialize() {
58
60
  const hasExistingComments = this._commentThread.comments && this._commentThread.comments.length > 0;
59
61
  const modeId = generateUuid() + '-' + (hasExistingComments ? this._commentThread.threadId : ++INMEM_MODEL_ID);
60
62
  const params = JSON.stringify({
61
63
  extensionId: this._commentThread.extensionId,
62
64
  commentThreadId: this._commentThread.threadId
63
65
  });
64
- let resource = ( (URI.parse(
65
- `${COMMENT_SCHEME}://${this._commentThread.extensionId}/commentinput-${modeId}.md?${params}`
66
- )));
67
- const commentController = this.commentService.getCommentController(owner);
66
+ let resource = ( (URI.from({
67
+ scheme: Schemas.commentsInput,
68
+ path: `/${this._commentThread.extensionId}/commentinput-${modeId}.md?${params}`
69
+ })));
70
+ const commentController = this.commentService.getCommentController(this.owner);
68
71
  if (commentController) {
69
72
  resource = resource.with({ authority: commentController.id });
70
73
  }
71
- const model = this.modelService.createModel(this._pendingComment || '', this.languageService.createByFilepathOrFirstLine(resource), resource, false);
74
+ const model = await this.textModelService.createModelReference(resource);
75
+ model.object.textEditorModel.setValue(this._pendingComment || '');
72
76
  this._register(model);
73
- this.commentEditor.setModel(model);
77
+ this.commentEditor.setModel(model.object.textEditorModel);
74
78
  this.calculateEditorHeight();
75
- this._register((model.onDidChangeContent(() => {
79
+ this._register(model.object.textEditorModel.onDidChangeContent(() => {
76
80
  this.setCommentEditorDecorations();
77
81
  this.commentEditorIsEmpty?.set(!this.commentEditor.getValue());
78
82
  if (this.calculateEditorHeight()) {
79
83
  this.commentEditor.layout({ height: this._editorHeight, width: this.commentEditor.getLayoutInfo().width });
80
84
  this.commentEditor.render(true);
81
85
  }
82
- })));
86
+ }));
83
87
  this.createTextModelListener(this.commentEditor, this.form);
84
88
  this.setCommentEditorDecorations();
85
89
  if (hasExistingComments) {
@@ -91,9 +95,9 @@ let CommentReply = class CommentReply extends Disposable {
91
95
  this._error = append(this.form, $('.validation-error.hidden'));
92
96
  const formActions = append(this.form, $('.form-actions'));
93
97
  this._formActions = append(formActions, $('.other-actions'));
94
- this.createCommentWidgetFormActions(this._formActions, model);
98
+ this.createCommentWidgetFormActions(this._formActions, model.object.textEditorModel);
95
99
  this._editorActions = append(formActions, $('.editor-actions'));
96
- this.createCommentWidgetEditorActions(this._editorActions, model);
100
+ this.createCommentWidgetEditorActions(this._editorActions, model.object.textEditorModel);
97
101
  }
98
102
  calculateEditorHeight() {
99
103
  const newEditorHeight = calculateEditorHeight(this._parentEditor, this.commentEditor, this._editorHeight);
@@ -134,7 +138,7 @@ let CommentReply = class CommentReply extends Disposable {
134
138
  if (!this._commentThread.comments || !this._commentThread.comments.length) {
135
139
  this.commentEditor.focus();
136
140
  }
137
- else if (this.commentEditor.getModel().getValueLength() > 0) {
141
+ else if ((this.commentEditor.getModel()?.getValueLength() ?? 0) > 0) {
138
142
  this.expandReplyArea();
139
143
  }
140
144
  }
@@ -148,9 +152,6 @@ let CommentReply = class CommentReply extends Disposable {
148
152
  isCommentEditorFocused() {
149
153
  return this.commentEditor.hasWidgetFocus();
150
154
  }
151
- getCommentModel() {
152
- return this.commentEditor.getModel();
153
- }
154
155
  updateCanReply() {
155
156
  if (!this._commentThread.canReply) {
156
157
  this.form.style.display = 'none';
@@ -301,7 +302,7 @@ let CommentReply = class CommentReply extends Disposable {
301
302
  }
302
303
  createReplyButton(commentEditor, commentForm) {
303
304
  this._reviewThreadReplyButton = append(commentForm, $(`button.review-thread-reply-button.${MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`));
304
- this._register(setupCustomHover(getDefaultHoverDelegate('mouse'), this._reviewThreadReplyButton, this._commentOptions?.prompt || ( localizeWithPath(_moduleId, 0, "Reply..."))));
305
+ this._register(this.hoverService.setupUpdatableHover(getDefaultHoverDelegate('mouse'), this._reviewThreadReplyButton, this._commentOptions?.prompt || ( localizeWithPath(_moduleId, 0, "Reply..."))));
305
306
  this._reviewThreadReplyButton.textContent = this._commentOptions?.prompt || ( localizeWithPath(_moduleId, 0, "Reply..."));
306
307
  this._register(addDisposableListener(this._reviewThreadReplyButton, 'click', _ => this.clearAndExpandReplyArea()));
307
308
  this._register(addDisposableListener(this._reviewThreadReplyButton, 'focus', _ => this.clearAndExpandReplyArea()));
@@ -318,10 +319,10 @@ let CommentReply = class CommentReply extends Disposable {
318
319
  };
319
320
  CommentReply = ( (__decorate([
320
321
  ( (__param(11, ICommentService))),
321
- ( (__param(12, ILanguageService))),
322
- ( (__param(13, IModelService))),
323
- ( (__param(14, IThemeService))),
324
- ( (__param(15, IConfigurationService))),
325
- ( (__param(16, IKeybindingService)))
322
+ ( (__param(12, IThemeService))),
323
+ ( (__param(13, IConfigurationService))),
324
+ ( (__param(14, IKeybindingService))),
325
+ ( (__param(15, IHoverService))),
326
+ ( (__param(16, ITextModelService)))
326
327
  ], CommentReply)));
327
328
  export { COMMENTEDITOR_DECORATION_KEY, CommentReply };
@@ -45,7 +45,7 @@ let CommentThreadBody = class CommentThreadBody extends Disposable {
45
45
  focus() {
46
46
  this._commentsElement.focus();
47
47
  }
48
- display() {
48
+ async display() {
49
49
  this._commentsElement = append(this.container, $('div.comments-container'));
50
50
  this._commentsElement.setAttribute('role', 'presentation');
51
51
  this._commentsElement.tabIndex = 0;
@@ -73,7 +73,7 @@ let CommentThreadBody = class CommentThreadBody extends Disposable {
73
73
  this._commentElements.push(newCommentNode);
74
74
  this._commentsElement.appendChild(newCommentNode.domNode);
75
75
  if (comment.mode === CommentMode.Editing) {
76
- newCommentNode.switchToEditMode();
76
+ await newCommentNode.switchToEditMode();
77
77
  }
78
78
  }
79
79
  }
@@ -121,7 +121,7 @@ let CommentThreadBody = class CommentThreadBody extends Disposable {
121
121
  }
122
122
  return;
123
123
  }
124
- updateCommentThread(commentThread, preserveFocus) {
124
+ async updateCommentThread(commentThread, preserveFocus) {
125
125
  const oldCommentsLen = this._commentElements.length;
126
126
  const newCommentsLen = commentThread.comments ? commentThread.comments.length : 0;
127
127
  const commentElementsToDel = [];
@@ -166,7 +166,7 @@ let CommentThreadBody = class CommentThreadBody extends Disposable {
166
166
  lastCommentElement = newElement.domNode;
167
167
  }
168
168
  if (currentComment.mode === CommentMode.Editing) {
169
- newElement.switchToEditMode();
169
+ await newElement.switchToEditMode();
170
170
  newCommentsInEditMode.push(newElement);
171
171
  }
172
172
  }
@@ -66,6 +66,7 @@ let CommentThreadWidget = class CommentThreadWidget extends Disposable {
66
66
  container.appendChild(bodyElement);
67
67
  const tracker = this._register(trackFocus(bodyElement));
68
68
  this._register(registerNavigableContainer({
69
+ name: 'commentThreadWidget',
69
70
  focusNotifiers: [tracker],
70
71
  focusNextWidget: () => {
71
72
  if (!this._commentReply?.isCommentEditorFocused()) {
@@ -156,7 +157,7 @@ let CommentThreadWidget = class CommentThreadWidget extends Disposable {
156
157
  this.updateCurrentThread(hasMouse, hasFocus);
157
158
  }, true));
158
159
  }
159
- updateCommentThread(commentThread) {
160
+ async updateCommentThread(commentThread) {
160
161
  const shouldCollapse = (this._commentThread.collapsibleState === CommentThreadCollapsibleState.Expanded) && (this._commentThreadState === CommentThreadState.Unresolved)
161
162
  && (commentThread.state === CommentThreadState.Resolved);
162
163
  this._commentThreadState = commentThread.state;
@@ -164,7 +165,7 @@ let CommentThreadWidget = class CommentThreadWidget extends Disposable {
164
165
  dispose(this._commentThreadDisposables);
165
166
  this._commentThreadDisposables = [];
166
167
  this._bindCommentThreadListeners();
167
- this._body.updateCommentThread(commentThread, this._commentReply?.isCommentEditorFocused() ?? false);
168
+ await this._body.updateCommentThread(commentThread, this._commentReply?.isCommentEditorFocused() ?? false);
168
169
  this._threadIsEmpty.set(!this._body.length);
169
170
  this._header.updateCommentThread(commentThread);
170
171
  this._commentReply?.updateCommentThread(commentThread);
@@ -178,10 +179,10 @@ let CommentThreadWidget = class CommentThreadWidget extends Disposable {
178
179
  this.collapse();
179
180
  }
180
181
  }
181
- display(lineHeight) {
182
+ async display(lineHeight) {
182
183
  const headHeight = Math.max(23, Math.ceil(lineHeight * 1.2));
183
184
  this._header.updateHeight(headHeight);
184
- this._body.display();
185
+ await this._body.display();
185
186
  if (this._commentThread.canReply) {
186
187
  this._createCommentForm();
187
188
  }
@@ -241,7 +241,7 @@ let ReviewZoneWidget = class ReviewZoneWidget extends ZoneWidget {
241
241
  this._commentThreadDisposables = [];
242
242
  this.bindCommentThreadListeners();
243
243
  }
244
- this._commentThreadWidget.updateCommentThread(commentThread);
244
+ await this._commentThreadWidget.updateCommentThread(commentThread);
245
245
  const lineNumber = this._commentThread.range?.endLineNumber ?? 1;
246
246
  let shouldMoveWidget = false;
247
247
  if (this._commentGlyph) {
@@ -264,12 +264,12 @@ let ReviewZoneWidget = class ReviewZoneWidget extends ZoneWidget {
264
264
  _doLayout(heightInPixel, widthInPixel) {
265
265
  this._commentThreadWidget.layout(widthInPixel);
266
266
  }
267
- display(range) {
267
+ async display(range) {
268
268
  if (range) {
269
269
  this._commentGlyph = ( new CommentGlyphWidget(this.editor, range?.endLineNumber ?? -1));
270
270
  this._commentGlyph.setThreadState(this._commentThread.state);
271
271
  }
272
- this._commentThreadWidget.display(this.editor.getOption(67 ));
272
+ await this._commentThreadWidget.display(this.editor.getOption(67 ));
273
273
  this._disposables.add(this._commentThreadWidget.onDidResize(dimension => {
274
274
  this._refresh(dimension);
275
275
  }));
@@ -487,10 +487,10 @@ let CommentController = class CommentController {
487
487
  }));
488
488
  this.globalToDispose.add(this.commentService.onDidSetDataProvider(_ => this.beginComputeAndHandleEditorChange()));
489
489
  this.globalToDispose.add(this.commentService.onDidUpdateCommentingRanges(_ => this.beginComputeAndHandleEditorChange()));
490
- this.globalToDispose.add(this.commentService.onDidSetResourceCommentInfos(e => {
490
+ this.globalToDispose.add(this.commentService.onDidSetResourceCommentInfos(async (e) => {
491
491
  const editorURI = this.editor && this.editor.hasModel() && this.editor.getModel().uri;
492
492
  if (editorURI && ( (editorURI.toString())) === ( (e.resource.toString()))) {
493
- this.setComments(e.commentInfos.filter(commentInfo => commentInfo !== null));
493
+ await this.setComments(e.commentInfos.filter(commentInfo => commentInfo !== null));
494
494
  }
495
495
  }));
496
496
  this.globalToDispose.add(this.commentService.onDidChangeCommentingEnabled(e => {
@@ -622,8 +622,8 @@ let CommentController = class CommentController {
622
622
  }
623
623
  return Promise.resolve([]);
624
624
  });
625
- return this._computePromise.then(commentInfos => {
626
- this.setComments(coalesce(commentInfos));
625
+ return this._computePromise.then(async (commentInfos) => {
626
+ await this.setComments(coalesce(commentInfos));
627
627
  this._computePromise = null;
628
628
  }, error => console.log(error));
629
629
  }
@@ -878,7 +878,7 @@ let CommentController = class CommentController {
878
878
  const pendingCommentText = (this._pendingNewCommentCache[e.uniqueOwner] && this._pendingNewCommentCache[e.uniqueOwner][thread.threadId])
879
879
  ?? continueOnCommentText;
880
880
  const pendingEdits = this._pendingEditsCache[e.uniqueOwner] && this._pendingEditsCache[e.uniqueOwner][thread.threadId];
881
- this.displayCommentThread(e.uniqueOwner, thread, pendingCommentText, pendingEdits);
881
+ await this.displayCommentThread(e.uniqueOwner, thread, pendingCommentText, pendingEdits);
882
882
  this._commentInfos.filter(info => info.uniqueOwner === e.uniqueOwner)[0].threads.push(thread);
883
883
  this.tryUpdateReservedSpace();
884
884
  }
@@ -970,7 +970,7 @@ let CommentController = class CommentController {
970
970
  }
971
971
  return undefined;
972
972
  }
973
- displayCommentThread(uniqueOwner, thread, pendingComment, pendingEdits) {
973
+ async displayCommentThread(uniqueOwner, thread, pendingComment, pendingEdits) {
974
974
  const editor = this.editor?.getModel();
975
975
  if (!editor) {
976
976
  return;
@@ -983,7 +983,7 @@ let CommentController = class CommentController {
983
983
  continueOnCommentReply = this.commentService.removeContinueOnComment({ uniqueOwner, uri: editor.uri, range: thread.range, isReply: true });
984
984
  }
985
985
  const zoneWidget = this.instantiationService.createInstance(ReviewZoneWidget, this.editor, uniqueOwner, thread, pendingComment ?? continueOnCommentReply?.body, pendingEdits);
986
- zoneWidget.display(thread.range);
986
+ await zoneWidget.display(thread.range);
987
987
  this._commentWidgets.push(zoneWidget);
988
988
  this.openCommentsView(thread);
989
989
  }
@@ -1228,7 +1228,7 @@ let CommentController = class CommentController {
1228
1228
  this.updateEditorLayoutOptions(this.editor, newOptions.extraEditorClassName, newOptions.lineDecorationsWidth);
1229
1229
  }
1230
1230
  }
1231
- setComments(commentInfos) {
1231
+ async setComments(commentInfos) {
1232
1232
  if (!this.editor || !this.commentService.isCommentingEnabled) {
1233
1233
  return;
1234
1234
  }
@@ -1236,14 +1236,14 @@ let CommentController = class CommentController {
1236
1236
  this.tryUpdateReservedSpace();
1237
1237
  this.removeCommentWidgetsAndStoreCache();
1238
1238
  let hasCommentingRanges = false;
1239
- this._commentInfos.forEach(info => {
1239
+ for (const info of this._commentInfos) {
1240
1240
  if (!hasCommentingRanges && (info.commentingRanges.ranges.length > 0 || info.commentingRanges.fileComments)) {
1241
1241
  hasCommentingRanges = true;
1242
1242
  }
1243
1243
  const providerCacheStore = this._pendingNewCommentCache[info.uniqueOwner];
1244
1244
  const providerEditsCacheStore = this._pendingEditsCache[info.uniqueOwner];
1245
1245
  info.threads = info.threads.filter(thread => !thread.isDisposed);
1246
- info.threads.forEach(thread => {
1246
+ for (const thread of info.threads) {
1247
1247
  let pendingComment = undefined;
1248
1248
  if (providerCacheStore) {
1249
1249
  pendingComment = providerCacheStore[thread.threadId];
@@ -1252,12 +1252,12 @@ let CommentController = class CommentController {
1252
1252
  if (providerEditsCacheStore) {
1253
1253
  pendingEdits = providerEditsCacheStore[thread.threadId];
1254
1254
  }
1255
- this.displayCommentThread(info.uniqueOwner, thread, pendingComment, pendingEdits);
1256
- });
1255
+ await this.displayCommentThread(info.uniqueOwner, thread, pendingComment, pendingEdits);
1256
+ }
1257
1257
  for (const thread of info.pendingCommentThreads ?? []) {
1258
1258
  this.resumePendingComment(this.editor.getModel().uri, thread);
1259
1259
  }
1260
- });
1260
+ }
1261
1261
  this._commentingRangeDecorator.update(this.editor, this._commentInfos);
1262
1262
  this._commentThreadRangeDecorator.update(this.editor, this._commentInfos);
1263
1263
  if (hasCommentingRanges) {
@@ -4,7 +4,7 @@ import { localize2WithPath, localizeWithPath } from '../../../../nls.js';
4
4
  import { renderMarkdown } from '../../../../base/browser/markdownRenderer.js';
5
5
  import { DisposableStore } from '../../../../base/common/lifecycle.js';
6
6
  import { IOpenerService } from '../../../../platform/opener/common/opener.service.js';
7
- import { CommentNode, ResourceWithCommentThreads } from '../common/commentModel.js';
7
+ import { ResourceWithCommentThreads, CommentNode } from '../common/commentModel.js';
8
8
  import { IConfigurationService } from '../../../../platform/configuration/common/configuration.service.js';
9
9
  import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.service.js';
10
10
  import { WorkbenchObjectTree } from '../../../../platform/list/browser/listService.js';
@@ -20,15 +20,15 @@ import { FilterOptions } from './commentsFilterOptions.js';
20
20
  import { basename } from '../../../../base/common/resources.js';
21
21
  import { openLinkFromMarkdown } from '../../../../editor/browser/widget/markdownRenderer/browser/markdownRenderer.js';
22
22
  import { CommentsModel } from './commentsModel.js';
23
- import { setupCustomHover } from '../../../../base/browser/ui/hover/updatableHoverWidget.js';
24
23
  import { getDefaultHoverDelegate } from '../../../../base/browser/ui/hover/hoverDelegateFactory.js';
25
24
  import { ActionBar } from '../../../../base/browser/ui/actionbar/actionbar.js';
26
- import { createActionViewItem, createAndFillInContextMenuActions } from '../../../../platform/actions/browser/menuEntryActionViewItem.js';
25
+ import { createAndFillInContextMenuActions, createActionViewItem } from '../../../../platform/actions/browser/menuEntryActionViewItem.js';
27
26
  import { MenuId } from '../../../../platform/actions/common/actions.js';
28
27
  import { IMenuService } from '../../../../platform/actions/common/actions.service.js';
29
28
  import { IContextMenuService } from '../../../../platform/contextview/browser/contextView.service.js';
30
29
  import { ActionViewItem } from '../../../../base/browser/ui/actionbar/actionViewItems.js';
31
30
  import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.service.js';
31
+ import { IHoverService } from '../../../../platform/hover/browser/hover.service.js';
32
32
  const _moduleId = "vs/workbench/contrib/comments/browser/commentsTreeViewer";
33
33
  const COMMENTS_VIEW_ID = 'workbench.panel.comments';
34
34
  const COMMENTS_VIEW_STORAGE_ID = 'Comments';
@@ -121,11 +121,12 @@ CommentsMenus = ( (__decorate([
121
121
  ( (__param(0, IMenuService)))
122
122
  ], CommentsMenus)));
123
123
  let CommentNodeRenderer = class CommentNodeRenderer {
124
- constructor(actionViewItemProvider, menus, openerService, configurationService, themeService) {
124
+ constructor(actionViewItemProvider, menus, openerService, configurationService, hoverService, themeService) {
125
125
  this.actionViewItemProvider = actionViewItemProvider;
126
126
  this.menus = menus;
127
127
  this.openerService = openerService;
128
128
  this.configurationService = configurationService;
129
+ this.hoverService = hoverService;
129
130
  this.themeService = themeService;
130
131
  this.templateId = 'comment-node';
131
132
  }
@@ -136,7 +137,11 @@ let CommentNodeRenderer = class CommentNodeRenderer {
136
137
  const threadMetadata = {
137
138
  icon: append(metadata, $('.icon')),
138
139
  userNames: append(metadata, $('.user')),
139
- timestamp: ( (new TimestampWidget(this.configurationService, append(metadata, $('.timestamp-container'))))),
140
+ timestamp: ( (new TimestampWidget(
141
+ this.configurationService,
142
+ this.hoverService,
143
+ append(metadata, $('.timestamp-container'))
144
+ ))),
140
145
  relevance: append(metadata, $('.relevance')),
141
146
  separator: append(metadata, $('.separator')),
142
147
  commentPreview: append(metadata, $('.text')),
@@ -156,6 +161,7 @@ let CommentNodeRenderer = class CommentNodeRenderer {
156
161
  separator: append(snippetContainer, $('.separator')),
157
162
  timestamp: ( (new TimestampWidget(
158
163
  this.configurationService,
164
+ this.hoverService,
159
165
  append(snippetContainer, $('.timestamp-container'))
160
166
  ))),
161
167
  };
@@ -165,11 +171,14 @@ let CommentNodeRenderer = class CommentNodeRenderer {
165
171
  return { threadMetadata, repliesMetadata, actionBar, disposables };
166
172
  }
167
173
  getCountString(commentCount) {
168
- if (commentCount > 1) {
169
- return ( localizeWithPath(_moduleId, 1, "{0} comments", commentCount));
174
+ if (commentCount > 2) {
175
+ return ( localizeWithPath(_moduleId, 1, "{0} replies", commentCount - 1));
176
+ }
177
+ else if (commentCount === 2) {
178
+ return ( localizeWithPath(_moduleId, 2, "1 reply"));
170
179
  }
171
180
  else {
172
- return ( localizeWithPath(_moduleId, 2, "1 comment"));
181
+ return ( localizeWithPath(_moduleId, 3, "1 comment"));
173
182
  }
174
183
  }
175
184
  getRenderedComment(commentBody, disposables) {
@@ -184,7 +193,7 @@ let CommentNodeRenderer = class CommentNodeRenderer {
184
193
  for (let i = 0; i < images.length; i++) {
185
194
  const image = images[i];
186
195
  const textDescription = $('');
187
- textDescription.textContent = image.alt ? ( localizeWithPath(_moduleId, 3, "Image: {0}", image.alt)) : ( localizeWithPath(_moduleId, 4, "Image"));
196
+ textDescription.textContent = image.alt ? ( localizeWithPath(_moduleId, 4, "Image: {0}", image.alt)) : ( localizeWithPath(_moduleId, 5, "Image"));
188
197
  image.parentNode.replaceChild(textDescription, image);
189
198
  }
190
199
  return renderedComment;
@@ -202,7 +211,7 @@ let CommentNodeRenderer = class CommentNodeRenderer {
202
211
  const commentCount = node.element.replies.length + 1;
203
212
  if (node.element.threadRelevance === CommentThreadApplicability.Outdated) {
204
213
  templateData.threadMetadata.relevance.style.display = '';
205
- templateData.threadMetadata.relevance.innerText = ( localizeWithPath(_moduleId, 5, "Outdated"));
214
+ templateData.threadMetadata.relevance.innerText = ( localizeWithPath(_moduleId, 6, "Outdated"));
206
215
  templateData.threadMetadata.separator.style.display = 'none';
207
216
  }
208
217
  else {
@@ -232,16 +241,16 @@ let CommentNodeRenderer = class CommentNodeRenderer {
232
241
  const renderedComment = this.getRenderedComment(originalComment.comment.body, disposables);
233
242
  templateData.disposables.push(renderedComment);
234
243
  templateData.threadMetadata.commentPreview.appendChild(renderedComment.element.firstElementChild ?? renderedComment.element);
235
- templateData.disposables.push(setupCustomHover(getDefaultHoverDelegate('mouse'), templateData.threadMetadata.commentPreview, renderedComment.element.textContent ?? ''));
244
+ templateData.disposables.push(this.hoverService.setupUpdatableHover(getDefaultHoverDelegate('mouse'), templateData.threadMetadata.commentPreview, renderedComment.element.textContent ?? ''));
236
245
  }
237
246
  if (node.element.range) {
238
247
  if (node.element.range.startLineNumber === node.element.range.endLineNumber) {
239
- templateData.threadMetadata.range.textContent = ( localizeWithPath(_moduleId, 6, "[Ln {0}]", node.element.range.startLineNumber));
248
+ templateData.threadMetadata.range.textContent = ( localizeWithPath(_moduleId, 7, "[Ln {0}]", node.element.range.startLineNumber));
240
249
  }
241
250
  else {
242
251
  templateData.threadMetadata.range.textContent = ( localizeWithPath(
243
252
  _moduleId,
244
- 7,
253
+ 8,
245
254
  "[Ln {0}-{1}]",
246
255
  node.element.range.startLineNumber,
247
256
  node.element.range.endLineNumber
@@ -262,7 +271,7 @@ let CommentNodeRenderer = class CommentNodeRenderer {
262
271
  templateData.repliesMetadata.container.style.display = '';
263
272
  templateData.repliesMetadata.count.textContent = this.getCountString(commentCount);
264
273
  const lastComment = node.element.replies[node.element.replies.length - 1].comment;
265
- templateData.repliesMetadata.lastReplyDetail.textContent = ( localizeWithPath(_moduleId, 8, "Last reply from {0}", lastComment.userName));
274
+ templateData.repliesMetadata.lastReplyDetail.textContent = ( localizeWithPath(_moduleId, 9, "Last reply from {0}", lastComment.userName));
266
275
  templateData.repliesMetadata.timestamp.setTimestamp(lastComment.timestamp ? ( (new Date(lastComment.timestamp))) : undefined);
267
276
  }
268
277
  getCommentThreadWidgetStateColor(state, theme) {
@@ -276,7 +285,8 @@ let CommentNodeRenderer = class CommentNodeRenderer {
276
285
  CommentNodeRenderer = ( (__decorate([
277
286
  ( (__param(2, IOpenerService))),
278
287
  ( (__param(3, IConfigurationService))),
279
- ( (__param(4, IThemeService)))
288
+ ( (__param(4, IHoverService))),
289
+ ( (__param(5, IThemeService)))
280
290
  ], CommentNodeRenderer)));
281
291
  class Filter {
282
292
  constructor(options) {
@@ -430,4 +440,4 @@ CommentsList = ( (__decorate([
430
440
  ( (__param(7, IContextMenuService))),
431
441
  ( (__param(8, IKeybindingService)))
432
442
  ], CommentsList)));
433
- export { COMMENTS_VIEW_ID, COMMENTS_VIEW_STORAGE_ID, COMMENTS_VIEW_TITLE, CommentNodeRenderer, CommentsList, Filter, ResourceWithCommentsRenderer };
443
+ export { COMMENTS_VIEW_ID, COMMENTS_VIEW_STORAGE_ID, COMMENTS_VIEW_TITLE, CommentNodeRenderer, CommentsList, CommentsMenus, Filter, ResourceWithCommentsRenderer };