@codingame/monaco-vscode-api 6.0.3 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (447) hide show
  1. package/README.md +150 -117
  2. package/api.js +1 -1
  3. package/debugProtocol.d.ts +10 -1
  4. package/extensions.d.ts +2 -0
  5. package/missing-services.js +21 -2
  6. package/package.json +9 -9
  7. package/service-override/extensions.d.ts +1 -2
  8. package/services.js +4 -2
  9. package/vscode/src/vs/base/browser/dnd.js +1 -1
  10. package/vscode/src/vs/base/browser/dom.js +116 -5
  11. package/vscode/src/vs/base/browser/domObservable.js +16 -0
  12. package/vscode/src/vs/base/browser/markdownRenderer.js +5 -3
  13. package/vscode/src/vs/base/browser/trustedTypes.js +1 -2
  14. package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +1 -1
  15. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +1 -1
  16. package/vscode/src/vs/base/browser/ui/button/button.js +2 -2
  17. package/vscode/src/vs/base/browser/ui/contextview/contextview.js +1 -4
  18. package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +1 -1
  19. package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
  20. package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.js +1 -1
  21. package/vscode/src/vs/base/browser/ui/hover/hover.d.ts +32 -16
  22. package/vscode/src/vs/base/browser/ui/hover/hoverDelegate.d.ts +2 -2
  23. package/vscode/src/vs/base/browser/ui/hover/hoverDelegate2.js +2 -2
  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 +2 -0
  26. package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +1 -1
  27. package/vscode/src/vs/base/browser/ui/iconLabel/simpleIconLabel.js +1 -1
  28. package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +1 -1
  29. package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +1 -1
  30. package/vscode/src/vs/base/browser/ui/list/listView.js +3 -5
  31. package/vscode/src/vs/base/browser/ui/list/rowCache.js +1 -8
  32. package/vscode/src/vs/base/browser/ui/sash/sash.js +1 -1
  33. package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +7 -11
  34. package/vscode/src/vs/base/browser/ui/splitview/paneview.js +1 -1
  35. package/vscode/src/vs/base/browser/ui/splitview/splitview.js +1 -1
  36. package/vscode/src/vs/base/browser/ui/table/tableWidget.js +1 -1
  37. package/vscode/src/vs/base/browser/ui/toggle/toggle.js +1 -1
  38. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +8 -1
  39. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +2 -3
  40. package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +1 -1
  41. package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +0 -3
  42. package/vscode/src/vs/base/common/assert.js +1 -1
  43. package/vscode/src/vs/base/common/collections.js +49 -1
  44. package/vscode/src/vs/base/common/equals.js +55 -5
  45. package/vscode/src/vs/base/common/errors.js +14 -1
  46. package/vscode/src/vs/base/common/event.js +2 -1
  47. package/vscode/src/vs/base/common/history.js +7 -4
  48. package/vscode/src/vs/base/common/iterator.js +9 -1
  49. package/vscode/src/vs/base/common/map.d.ts +41 -0
  50. package/vscode/src/vs/base/common/numbers.js +18 -1
  51. package/vscode/src/vs/base/common/observableInternal/api.js +11 -0
  52. package/vscode/src/vs/base/common/observableInternal/autorun.js +18 -1
  53. package/vscode/src/vs/base/common/observableInternal/base.d.ts +8 -1
  54. package/vscode/src/vs/base/common/observableInternal/base.js +2 -5
  55. package/vscode/src/vs/base/common/observableInternal/derived.js +13 -3
  56. package/vscode/src/vs/base/common/observableInternal/lazyObservableValue.js +109 -0
  57. package/vscode/src/vs/base/common/observableInternal/promise.js +3 -0
  58. package/vscode/src/vs/base/common/observableInternal/utils.d.ts +7 -0
  59. package/vscode/src/vs/base/common/observableInternal/utils.js +64 -12
  60. package/vscode/src/vs/base/common/prefixTree.d.ts +52 -0
  61. package/vscode/src/vs/base/common/product.d.ts +1 -0
  62. package/vscode/src/vs/base/parts/ipc/common/ipc.js +1 -1
  63. package/vscode/src/vs/editor/browser/config/charWidthReader.js +1 -1
  64. package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +1 -1
  65. package/vscode/src/vs/editor/browser/coreCommands.js +2 -1
  66. package/vscode/src/vs/editor/browser/observableCodeEditor.js +230 -0
  67. package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +1 -1
  68. package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +26 -26
  69. package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +2 -2
  70. package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.js +1 -1
  71. package/vscode/src/vs/editor/browser/view/viewLayer.js +4 -12
  72. package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +1 -1
  73. package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +1 -1
  74. package/vscode/src/vs/editor/browser/viewParts/viewZones/viewZones.js +2 -2
  75. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +15 -4
  76. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +8 -8
  77. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +4 -4
  78. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +1 -1
  79. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +1 -1
  80. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +14 -2
  81. package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
  82. package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +2 -2
  83. package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +2 -2
  84. package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +3 -3
  85. package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +2 -2
  86. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +1 -1
  87. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
  88. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +5 -0
  89. package/vscode/src/vs/editor/common/config/editorOptions.js +83 -65
  90. package/vscode/src/vs/editor/common/core/editorColorRegistry.js +43 -43
  91. package/vscode/src/vs/editor/common/cursor/cursor.js +3 -2
  92. package/vscode/src/vs/editor/common/cursor/cursorTypeEditOperations.js +911 -0
  93. package/vscode/src/vs/editor/common/cursor/cursorTypeOperations.js +36 -799
  94. package/vscode/src/vs/editor/common/cursor/cursorWordOperations.js +6 -5
  95. package/vscode/src/vs/editor/common/languageFeatureRegistry.d.ts +1 -0
  96. package/vscode/src/vs/editor/common/languageFeatureRegistry.js +3 -0
  97. package/vscode/src/vs/editor/common/languages/autoIndent.js +23 -1
  98. package/vscode/src/vs/editor/common/languages.d.ts +20 -3
  99. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.js +6 -6
  100. package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js +19 -0
  101. package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.js +3 -0
  102. package/vscode/src/vs/editor/common/model/textModel.js +6 -2
  103. package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +5 -5
  104. package/vscode/src/vs/editor/common/model.d.ts +4 -0
  105. package/vscode/src/vs/editor/common/services/getIconClasses.js +1 -1
  106. package/vscode/src/vs/editor/common/services/semanticTokensProviderStyling.js +2 -15
  107. package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +63 -62
  108. package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +11 -8
  109. package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +1 -1
  110. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +2 -17
  111. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.css.js +1 -1
  112. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +18 -5
  113. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +55 -27
  114. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +7 -4
  115. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerWidget.js +9 -9
  116. package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +1 -1
  117. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +103 -47
  118. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -2
  119. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +18 -10
  120. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +2 -4
  121. package/vscode/src/vs/editor/contrib/folding/browser/folding.css.js +1 -1
  122. package/vscode/src/vs/editor/contrib/folding/browser/folding.js +33 -13
  123. package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +12 -7
  124. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +1 -1
  125. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +2 -2
  126. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +161 -185
  127. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +321 -0
  128. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverStatusBar.js +4 -1
  129. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverTypes.js +6 -21
  130. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.js +39 -40
  131. package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +55 -46
  132. package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +12 -2
  133. package/vscode/src/vs/editor/contrib/hover/browser/hoverController.js +15 -9
  134. package/vscode/src/vs/editor/contrib/hover/browser/hoverTypes.js +11 -1
  135. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +141 -93
  136. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +24 -7
  137. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +36 -1
  138. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +5 -3
  139. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostTextWidget.js +1 -1
  140. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +25 -12
  141. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +88 -118
  142. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +1 -1
  143. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +34 -33
  144. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsSource.js +2 -2
  145. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/provideInlineCompletions.js +11 -4
  146. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/suggestWidgetInlineCompletionProvider.js +10 -19
  147. package/vscode/src/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.js +1 -1
  148. package/vscode/src/vs/editor/contrib/inlineEdit/browser/hoverParticipant.js +45 -27
  149. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +4 -4
  150. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +1 -1
  151. package/vscode/src/vs/editor/contrib/inlineEdits/browser/commands.js +126 -0
  152. package/vscode/src/vs/editor/contrib/inlineEdits/browser/consts.js +9 -0
  153. package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEdits.contribution.js +9 -0
  154. package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEditsController.js +82 -0
  155. package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEditsModel.js +240 -0
  156. package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEditsWidget.css.js +4 -0
  157. package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEditsWidget.js +322 -0
  158. package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgress.js +8 -4
  159. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +3 -2
  160. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +1 -1
  161. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +2 -2
  162. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +60 -0
  163. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.css.js +4 -0
  164. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +1 -1
  165. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css.js +1 -1
  166. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +38 -20
  167. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +3 -0
  168. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +9 -9
  169. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetStatus.js +10 -32
  170. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +23 -138
  171. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +3 -0
  172. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +5 -5
  173. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +13 -12
  174. package/vscode/src/vs/editor/contrib/wordPartOperations/browser/wordPartOperations.js +3 -3
  175. package/vscode/src/vs/platform/accessibility/browser/accessibilityService.js +21 -0
  176. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +5 -6
  177. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +1 -1
  178. package/vscode/src/vs/platform/actions/browser/buttonbar.js +27 -6
  179. package/vscode/src/vs/platform/actions/browser/floatingMenu.js +1 -1
  180. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.css.js +1 -1
  181. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +33 -3
  182. package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -1
  183. package/vscode/src/vs/platform/actions/common/actions.d.ts +3 -0
  184. package/vscode/src/vs/platform/actions/common/actions.js +3 -0
  185. package/vscode/src/vs/platform/actions/common/menuService.js +3 -2
  186. package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +1 -1
  187. package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +7 -5
  188. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +109 -13
  189. package/vscode/src/vs/platform/diagnostics/common/diagnostics.d.ts +2 -0
  190. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +12 -6
  191. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -0
  192. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +3 -3
  193. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +20 -10
  194. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +46 -8
  195. package/vscode/src/vs/platform/extensions/common/extensions.d.ts +1 -1
  196. package/vscode/src/vs/platform/extensions/common/extensions.js +12 -3
  197. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +368 -0
  198. package/vscode/src/vs/platform/files/common/watcher.js +21 -24
  199. package/vscode/src/vs/platform/list/browser/listService.js +2 -1
  200. package/vscode/src/vs/platform/observable/common/platformObservableUtils.js +2 -2
  201. package/vscode/src/vs/platform/opener/browser/link.js +1 -1
  202. package/vscode/src/vs/platform/product/common/product.js +1 -1
  203. package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
  204. package/vscode/src/vs/platform/remote/common/remoteExtensionsScanner.service.d.ts +0 -2
  205. package/vscode/src/vs/platform/request/common/request.js +18 -8
  206. package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +2 -6
  207. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.d.ts +8 -1
  208. package/vscode/src/vs/platform/theme/common/colorUtils.d.ts +1 -1
  209. package/vscode/src/vs/platform/theme/common/colorUtils.js +25 -5
  210. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +1 -1
  211. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +6 -6
  212. package/vscode/src/vs/platform/theme/common/colors/editorColors.js +35 -35
  213. package/vscode/src/vs/platform/theme/common/colors/inputColors.js +9 -9
  214. package/vscode/src/vs/platform/theme/common/colors/listColors.js +11 -11
  215. package/vscode/src/vs/platform/theme/common/colors/menuColors.js +4 -4
  216. package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +5 -5
  217. package/vscode/src/vs/platform/theme/common/colors/miscColors.js +1 -1
  218. package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +5 -5
  219. package/vscode/src/vs/platform/tunnel/common/tunnel.js +4 -1
  220. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +75 -19
  221. package/vscode/src/vs/platform/window/common/window.d.ts +2 -2
  222. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +32 -25
  223. package/vscode/src/vs/workbench/api/common/extHost.common.services.js +2 -0
  224. package/vscode/src/vs/workbench/api/common/extHost.protocol.js +2 -0
  225. package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +5 -11
  226. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +5 -15
  227. package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +2 -5
  228. package/vscode/src/vs/workbench/api/common/extHostComments.js +9 -3
  229. package/vscode/src/vs/workbench/api/common/extHostDebugService.js +32 -22
  230. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +3 -3
  231. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +109 -40
  232. package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +46 -0
  233. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +84 -35
  234. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
  235. package/vscode/src/vs/workbench/api/common/extHostSCM.js +50 -41
  236. package/vscode/src/vs/workbench/api/common/extHostSearch.js +2 -2
  237. package/vscode/src/vs/workbench/api/common/extHostSecrets.js +11 -8
  238. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +7 -6
  239. package/vscode/src/vs/workbench/api/common/extHostTesting.js +63 -70
  240. package/vscode/src/vs/workbench/api/common/extHostTextEditors.js +5 -3
  241. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +75 -16
  242. package/vscode/src/vs/workbench/api/common/extHostTypes.js +29 -4
  243. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
  244. package/vscode/src/vs/workbench/browser/actions/developerActions.js +1 -1
  245. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +127 -107
  246. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +2 -2
  247. package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +1 -1
  248. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +33 -21
  249. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
  250. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +5 -5
  251. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +1 -1
  252. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +2 -2
  253. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +2 -2
  254. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +23 -6
  255. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +3 -1
  256. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +3 -3
  257. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +1 -1
  258. package/vscode/src/vs/workbench/browser/web.api.js +8 -0
  259. package/vscode/src/vs/workbench/browser/workbench.contribution.js +199 -194
  260. package/vscode/src/vs/workbench/common/configuration.js +1 -1
  261. package/vscode/src/vs/workbench/common/contributions.js +8 -1
  262. package/vscode/src/vs/workbench/common/editor.js +5 -1
  263. package/vscode/src/vs/workbench/common/theme.js +79 -454
  264. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +221 -239
  265. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +17 -15
  266. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +1 -0
  267. package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +4 -0
  268. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCollections.js +27 -0
  269. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCommandContentPart.js +35 -0
  270. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationContentPart.js +51 -0
  271. package/vscode/src/vs/workbench/contrib/chat/browser/{chatConfirmationWidget.js → chatContentParts/chatConfirmationWidget.js} +9 -9
  272. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownContentPart.js +131 -0
  273. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatProgressContentPart.js +37 -0
  274. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatReferencesContentPart.js +263 -0
  275. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTaskContentPart.js +37 -0
  276. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.js +160 -0
  277. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTreeContentPart.js +171 -0
  278. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatWarningContentPart.js +34 -0
  279. package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatContentParts/media}/chatConfirmationWidget.css.js +1 -1
  280. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +91 -44
  281. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +292 -1019
  282. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +2 -2
  283. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownRenderer.js +1 -1
  284. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +22 -7
  285. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css.js +1 -1
  286. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +61 -54
  287. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +23 -16
  288. package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
  289. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatAgentHover.css.js +1 -1
  290. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +8 -0
  291. package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +1 -1
  292. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +3 -3
  293. package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.js +5 -4
  294. package/vscode/src/vs/workbench/contrib/chat/common/codeBlockModelCollection.js +16 -0
  295. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.js +3 -0
  296. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +2 -2
  297. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +43 -16
  298. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +1 -1
  299. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +1 -3
  300. package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +1 -1
  301. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +7 -5
  302. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +7 -7
  303. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +3 -3
  304. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +3 -3
  305. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +2 -2
  306. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +1 -1
  307. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +2 -1
  308. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +2 -1
  309. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +1 -1
  310. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +8 -5
  311. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +1 -1
  312. package/vscode/src/vs/workbench/contrib/comments/browser/media/panel.css.js +1 -1
  313. package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +1 -1
  314. package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +1 -1
  315. package/vscode/src/vs/workbench/contrib/contextmenu/browser/contextmenu.contribution.js +5 -5
  316. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +14 -7
  317. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +4 -4
  318. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +8 -7
  319. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +19 -16
  320. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +13 -12
  321. package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +19 -2
  322. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +9 -4
  323. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +10 -5
  324. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +4 -4
  325. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +235 -173
  326. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +1 -1
  327. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +2 -1
  328. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +17 -5
  329. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +62 -44
  330. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
  331. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +2 -2
  332. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +114 -107
  333. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatContentWidget.js +33 -25
  334. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +71 -101
  335. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +38 -43
  336. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +11 -33
  337. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +3 -4
  338. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +49 -86
  339. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +60 -71
  340. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css.js +1 -1
  341. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatContentWidget.css.js +1 -1
  342. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +116 -113
  343. package/vscode/src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.js +6 -10
  344. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +2 -2
  345. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +1 -0
  346. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +2 -2
  347. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +12 -23
  348. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +0 -2
  349. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +7 -9
  350. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +88 -61
  351. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +1 -3
  352. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +39 -3
  353. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +2 -1
  354. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +12 -11
  355. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css.js +1 -1
  356. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +1 -1
  357. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.js +3 -2
  358. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +40 -105
  359. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +27 -26
  360. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +14 -5
  361. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +1 -1
  362. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +43 -46
  363. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.js +1 -1
  364. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +4 -4
  365. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +12 -9
  366. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +19 -14
  367. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
  368. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +9 -6
  369. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +1 -1
  370. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +5 -3
  371. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +3 -3
  372. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +1 -1
  373. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +16 -6
  374. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +8 -8
  375. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSourceFactory.service.js +3 -0
  376. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +11 -12
  377. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +12 -13
  378. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +1 -1
  379. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +5 -3
  380. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +9 -2
  381. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +37 -36
  382. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +18 -8
  383. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +1 -1
  384. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +14 -5
  385. package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +17 -22
  386. package/vscode/src/vs/workbench/contrib/remote/browser/media/tunnelView.css.js +1 -1
  387. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +7 -10
  388. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +7 -27
  389. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +3 -4
  390. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService.js +2 -2
  391. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +4 -0
  392. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +3 -3
  393. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +3 -0
  394. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +0 -1
  395. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +13 -37
  396. package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.d.ts +88 -0
  397. package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +48 -31
  398. package/vscode/src/vs/workbench/contrib/testing/common/testId.d.ts +115 -0
  399. package/vscode/src/vs/workbench/contrib/testing/common/testResult.d.ts +226 -0
  400. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.d.ts +319 -0
  401. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +2 -3
  402. package/vscode/src/vs/workbench/contrib/testing/common/testingStates.d.ts +10 -0
  403. package/vscode/src/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.js +21 -2
  404. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewIconManager.js +7 -8
  405. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
  406. package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +10 -5
  407. package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.js +54 -21
  408. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +1 -0
  409. package/vscode/src/vs/workbench/services/extensions/browser/extensionService.d.ts +1 -2
  410. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +2 -4
  411. package/vscode/src/vs/workbench/services/extensions/common/extensions.js +5 -3
  412. package/vscode/src/vs/workbench/services/extensions/common/extensions.service.d.ts +3 -1
  413. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +59 -41
  414. package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.js +1 -1
  415. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +3 -2
  416. package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +1 -0
  417. package/vscode/src/vs/workbench/services/language/common/languageService.js +7 -0
  418. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +1 -1
  419. package/vscode/src/vs/workbench/services/preferences/common/preferences.d.ts +2 -2
  420. package/vscode/src/vs/workbench/services/search/common/search.js +2 -1
  421. package/vscode/src/vs/workbench/services/search/common/textSearchManager.js +2 -2
  422. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +2 -2
  423. package/vscode/src/vs/workbench/services/textfile/common/encoding.js +69 -26
  424. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +23 -4
  425. package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +5 -1
  426. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
  427. package/vscode/src/vs/workbench/services/views/browser/viewsService.js +12 -5
  428. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +38 -19
  429. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +2 -1
  430. package/vscode-dts/vscode.proposed.aiTextSearchProvider.d.ts +0 -196
  431. package/vscode-dts/vscode.proposed.attributableCoverage.d.ts +28 -10
  432. package/vscode-dts/vscode.proposed.authGetSessions.d.ts +30 -22
  433. package/vscode-dts/vscode.proposed.chatProvider.d.ts +17 -8
  434. package/vscode-dts/vscode.proposed.chatVariableResolver.d.ts +0 -9
  435. package/vscode-dts/vscode.proposed.commentReveal.d.ts +32 -0
  436. package/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts +10 -0
  437. package/vscode-dts/vscode.proposed.createFileSystemWatcher.d.ts +1 -1
  438. package/vscode-dts/vscode.proposed.fileComments.d.ts +12 -53
  439. package/vscode-dts/vscode.proposed.fileSearchProvider.d.ts +6 -0
  440. package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +6 -0
  441. package/vscode-dts/vscode.proposed.lmTools.d.ts +91 -0
  442. package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +1 -1
  443. package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +10 -6
  444. package/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts +38 -13
  445. package/vscode/src/vs/editor/browser/observableUtilities.js +0 -58
  446. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProviderFactory.service.js +0 -3
  447. package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +0 -122
@@ -16,8 +16,12 @@ interface AuthenticationSessionsChangeEvent {
16
16
  removed: ReadonlyArray<AuthenticationSession> | undefined;
17
17
  changed: ReadonlyArray<AuthenticationSession> | undefined;
18
18
  }
19
- interface IAuthenticationProviderCreateSessionOptions {
20
- sessionToRecreate?: AuthenticationSession;
19
+ interface IAuthenticationProviderSessionOptions {
20
+ /**
21
+ * The account that is being asked about. If this is passed in, the provider should
22
+ * attempt to return the sessions that are only related to this account.
23
+ */
24
+ account?: AuthenticationSessionAccount;
21
25
  }
22
26
  /**
23
27
  * Represents an authentication provider.
@@ -43,9 +47,10 @@ interface IAuthenticationProvider {
43
47
  /**
44
48
  * Retrieves a list of authentication sessions.
45
49
  * @param scopes - An optional list of scopes. If provided, the sessions returned should match these permissions, otherwise all sessions should be returned.
50
+ * @param options - Additional options for getting sessions.
46
51
  * @returns A promise that resolves to an array of authentication sessions.
47
52
  */
48
- getSessions(scopes?: string[]): Promise<readonly AuthenticationSession[]>;
53
+ getSessions(scopes: string[] | undefined, options: IAuthenticationProviderSessionOptions): Promise<readonly AuthenticationSession[]>;
49
54
  /**
50
55
  * Prompts the user to log in.
51
56
  * If login is successful, the `onDidChangeSessions` event should be fired.
@@ -55,7 +60,7 @@ interface IAuthenticationProvider {
55
60
  * @param options - Additional options for creating the session.
56
61
  * @returns A promise that resolves to an authentication session.
57
62
  */
58
- createSession(scopes: string[], options: IAuthenticationProviderCreateSessionOptions): Promise<AuthenticationSession>;
63
+ createSession(scopes: string[], options: IAuthenticationProviderSessionOptions): Promise<AuthenticationSession>;
59
64
  /**
60
65
  * Removes the session corresponding to the specified session ID.
61
66
  * If the removal is successful, the `onDidChangeSessions` event should be fired.
@@ -65,4 +70,4 @@ interface IAuthenticationProvider {
65
70
  removeSession(sessionId: string): Promise<void>;
66
71
  }
67
72
 
68
- export type { AuthenticationSession, AuthenticationSessionAccount, AuthenticationSessionsChangeEvent, IAuthenticationProvider, IAuthenticationProviderCreateSessionOptions };
73
+ export type { AuthenticationSession, AuthenticationSessionAccount, AuthenticationSessionsChangeEvent, IAuthenticationProvider, IAuthenticationProviderSessionOptions };
@@ -24,12 +24,13 @@ let CustomEditorLabelService = class CustomEditorLabelService extends Disposable
24
24
  this.enabled = true;
25
25
  this.cache = ( new MRUCache(1000));
26
26
  this._templateRegexValidation = /[a-zA-Z0-9]/;
27
- this._parsedTemplateExpression = /\$\{(dirname|filename|extname|dirname\(([-+]?\d+)\))\}/g;
27
+ this._parsedTemplateExpression = /\$\{(dirname|filename|extname|extname\((?<extnameN>[-+]?\d+)\)|dirname\((?<dirnameN>[-+]?\d+)\))\}/g;
28
+ this._filenameCaptureExpression = /(?<filename>^\.*[^.]*)/;
28
29
  this.storeEnablementState();
29
30
  this.storeCustomPatterns();
30
- this.registerListernes();
31
+ this.registerListeners();
31
32
  }
32
- registerListernes() {
33
+ registerListeners() {
33
34
  this._register(this.configurationService.onDidChangeConfiguration(e => {
34
35
  if (e.affectsConfiguration(CustomEditorLabelService_1.SETTING_ID_ENABLED)) {
35
36
  const oldEnablement = this.enabled;
@@ -108,35 +109,67 @@ let CustomEditorLabelService = class CustomEditorLabelService extends Disposable
108
109
  relevantPath = resource.path;
109
110
  }
110
111
  if (pattern.parsedPattern(relevantPath)) {
111
- return this.applyTempate(pattern.template, resource, relevantPath);
112
+ return this.applyTemplate(pattern.template, resource, relevantPath);
112
113
  }
113
114
  }
114
115
  return undefined;
115
116
  }
116
- applyTempate(template, resource, relevantPath) {
117
+ applyTemplate(template, resource, relevantPath) {
117
118
  let parsedPath;
118
- return template.replace(this._parsedTemplateExpression, (match, variable, arg) => {
119
+ return template.replace(this._parsedTemplateExpression, (match, variable, ...args) => {
119
120
  parsedPath = parsedPath ?? parse$1(resource.path);
120
- switch (variable) {
121
- case 'filename':
122
- return parsedPath.name;
123
- case 'extname':
124
- return parsedPath.ext.slice(1);
125
- default: {
126
- const n = variable === 'dirname' ? 0 : parseInt(arg);
127
- const nthDir = this.getNthDirname(dirname$1(relevantPath), n);
128
- if (nthDir) {
129
- return nthDir;
130
- }
121
+ const { dirnameN = '0', extnameN = '0' } = args.pop();
122
+ if (variable === 'filename') {
123
+ const { filename } = this._filenameCaptureExpression.exec(parsedPath.base)?.groups ?? {};
124
+ if (filename) {
125
+ return filename;
126
+ }
127
+ }
128
+ else if (variable === 'extname') {
129
+ const extension = this.getExtnames(parsedPath.base);
130
+ if (extension) {
131
+ return extension;
132
+ }
133
+ }
134
+ else if (variable.startsWith('extname')) {
135
+ const n = parseInt(extnameN);
136
+ const nthExtname = this.getNthExtname(parsedPath.base, n);
137
+ if (nthExtname) {
138
+ return nthExtname;
139
+ }
140
+ }
141
+ else if (variable.startsWith('dirname')) {
142
+ const n = parseInt(dirnameN);
143
+ const nthDir = this.getNthDirname(dirname$1(relevantPath), n);
144
+ if (nthDir) {
145
+ return nthDir;
131
146
  }
132
147
  }
133
148
  return match;
134
149
  });
135
150
  }
151
+ removeLeadingDot(path) {
152
+ let withoutLeadingDot = path;
153
+ while (withoutLeadingDot.startsWith('.')) {
154
+ withoutLeadingDot = withoutLeadingDot.slice(1);
155
+ }
156
+ return withoutLeadingDot;
157
+ }
136
158
  getNthDirname(path, n) {
137
159
  path = path.startsWith('/') ? path.slice(1) : path;
138
160
  const pathFragments = path.split('/');
139
- const length = pathFragments.length;
161
+ return this.getNthFragment(pathFragments, n);
162
+ }
163
+ getExtnames(fullFileName) {
164
+ return this.removeLeadingDot(fullFileName).split('.').slice(1).join('.');
165
+ }
166
+ getNthExtname(fullFileName, n) {
167
+ const extensionNameFragments = this.removeLeadingDot(fullFileName).split('.');
168
+ extensionNameFragments.shift();
169
+ return this.getNthFragment(extensionNameFragments, n);
170
+ }
171
+ getNthFragment(fragments, n) {
172
+ const length = fragments.length;
140
173
  let nth;
141
174
  if (n < 0) {
142
175
  nth = Math.abs(n) - 1;
@@ -144,11 +177,11 @@ let CustomEditorLabelService = class CustomEditorLabelService extends Disposable
144
177
  else {
145
178
  nth = length - n - 1;
146
179
  }
147
- const nthDir = pathFragments[nth];
148
- if (nthDir === undefined || nthDir === '') {
180
+ const nthFragment = fragments[nth];
181
+ if (nthFragment === undefined || nthFragment === '') {
149
182
  return undefined;
150
183
  }
151
- return nthDir;
184
+ return nthFragment;
152
185
  }
153
186
  };
154
187
  CustomEditorLabelService = CustomEditorLabelService_1 = ( __decorate([
@@ -27,6 +27,7 @@ interface IWorkbenchExtensionManagementService extends IProfileAwareExtensionMan
27
27
  installFromLocation(location: URI): Promise<ILocalExtension>;
28
28
  installResourceExtension(extension: IResourceExtension, installOptions: InstallOptions): Promise<ILocalExtension>;
29
29
  updateFromGallery(gallery: IGalleryExtension, extension: ILocalExtension, installOptions?: InstallOptions): Promise<ILocalExtension>;
30
+ updateMetadata(local: ILocalExtension, metadata: Partial<Metadata>): Promise<ILocalExtension>;
30
31
  }
31
32
  declare const IWorkbenchExtensionEnablementService: ServiceIdentifier<IWorkbenchExtensionEnablementService>;
32
33
  interface IWorkbenchExtensionEnablementService {
@@ -1,6 +1,6 @@
1
1
  import { IConfigurationService } from '../../../../platform/configuration/common/configuration.service.js';
2
2
  import { IDialogService } from '../../../../platform/dialogs/common/dialogs.service.js';
3
- import { IExtension, IExtensionDescription } from '../../../../platform/extensions/common/extensions.js';
3
+ import { IExtensionDescription } from '../../../../platform/extensions/common/extensions.js';
4
4
  import { IFileService } from '../../../../platform/files/common/files.service.js';
5
5
  import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
6
6
  import { ILogService } from '../../../../platform/log/common/log.service.js';
@@ -33,7 +33,6 @@ declare class ExtensionService extends AbstractExtensionService implements IExte
33
33
  private readonly _workspaceTrustManagementService;
34
34
  private readonly _remoteExplorerService;
35
35
  constructor(extensionsProposedApi: ExtensionsProposedApi, extensionHostFactory: IExtensionHostFactory, extensionHostKindPicker: IExtensionHostKindPicker, instantiationService: IInstantiationService, notificationService: INotificationService, _browserEnvironmentService: IBrowserWorkbenchEnvironmentService, telemetryService: ITelemetryService, extensionEnablementService: IWorkbenchExtensionEnablementService, fileService: IFileService, productService: IProductService, extensionManagementService: IWorkbenchExtensionManagementService, contextService: IWorkspaceContextService, configurationService: IConfigurationService, extensionManifestPropertiesService: IExtensionManifestPropertiesService, _webExtensionsScannerService: IWebExtensionsScannerService, logService: ILogService, remoteAgentService: IRemoteAgentService, remoteExtensionsScannerService: IRemoteExtensionsScannerService, lifecycleService: ILifecycleService, remoteAuthorityResolverService: IRemoteAuthorityResolverService, _userDataInitializationService: IUserDataInitializationService, _userDataProfileService: IUserDataProfileService, _workspaceTrustManagementService: IWorkspaceTrustManagementService, _remoteExplorerService: IRemoteExplorerService, dialogService: IDialogService);
36
- protected _scanSingleExtension(extension: IExtension): Promise<IExtensionDescription | null>;
37
36
  private _initFetchFileSystem;
38
37
  protected _scanWebExtensions(): Promise<IExtensionDescription[]>;
39
38
  protected _resolveExtensionsDefault(): Promise<ResolvedExtensions>;
@@ -74,11 +74,10 @@ declare abstract class AbstractExtensionService extends Disposable implements IE
74
74
  private readonly _remoteCrashTracker;
75
75
  private _deltaExtensionsQueue;
76
76
  private _inHandleDeltaExtensions;
77
- private _extensionHostManagers;
77
+ private readonly _extensionHostManagers;
78
78
  private _resolveAuthorityAttempt;
79
79
  constructor(_extensionsProposedApi: ExtensionsProposedApi, _extensionHostFactory: IExtensionHostFactory, _extensionHostKindPicker: IExtensionHostKindPicker, _instantiationService: IInstantiationService, _notificationService: INotificationService, _environmentService: IWorkbenchEnvironmentService, _telemetryService: ITelemetryService, _extensionEnablementService: IWorkbenchExtensionEnablementService, _fileService: IFileService, _productService: IProductService, _extensionManagementService: IWorkbenchExtensionManagementService, _contextService: IWorkspaceContextService, _configurationService: IConfigurationService, _extensionManifestPropertiesService: IExtensionManifestPropertiesService, _logService: ILogService, _remoteAgentService: IRemoteAgentService, _remoteExtensionsScannerService: IRemoteExtensionsScannerService, _lifecycleService: ILifecycleService, _remoteAuthorityResolverService: IRemoteAuthorityResolverService, _dialogService: IDialogService);
80
80
  protected _getExtensionHostManagers(kind: ExtensionHostKind): IExtensionHostManager[];
81
- private _getExtensionHostManagerByRunningLocation;
82
81
  protected _handleDeltaExtensions(item: DeltaExtensionsQueueItem): Promise<void>;
83
82
  private _deltaExtensions;
84
83
  private _updateExtensionsOnExtHosts;
@@ -96,7 +95,7 @@ declare abstract class AbstractExtensionService extends Disposable implements IE
96
95
  protected _resolveAuthorityAgain(): Promise<void>;
97
96
  private _resolveAuthorityWithLogging;
98
97
  protected _resolveAuthorityOnExtensionHosts(kind: ExtensionHostKind, remoteAuthority: string): Promise<ResolverResult>;
99
- stopExtensionHosts(reason: string): Promise<boolean>;
98
+ stopExtensionHosts(reason: string, auto?: boolean): Promise<boolean>;
100
99
  protected _doStopExtensionHosts(): void;
101
100
  private _doStopExtensionHostsWithVeto;
102
101
  private _startExtensionHostsIfNecessary;
@@ -142,7 +141,6 @@ declare abstract class AbstractExtensionService extends Disposable implements IE
142
141
  private _onDidActivateExtensionError;
143
142
  private _onExtensionRuntimeError;
144
143
  protected abstract _resolveExtensions(): Promise<ResolvedExtensions>;
145
- protected abstract _scanSingleExtension(extension: IExtension): Promise<IExtensionDescription | null>;
146
144
  protected abstract _onExtensionHostExit(code: number): void;
147
145
  protected abstract _resolveAuthority(remoteAuthority: string): Promise<ResolverResult>;
148
146
  }
@@ -13,7 +13,7 @@ const nullExtensionDescription = ( Object.freeze({
13
13
  isBuiltin: false,
14
14
  targetPlatform: TargetPlatform.UNDEFINED,
15
15
  isUserBuiltin: false,
16
- isUnderDevelopment: false,
16
+ isUnderDevelopment: false
17
17
  }));
18
18
  const webWorkerExtHostConfig = 'extensions.webWorker';
19
19
  class MissingExtensionDependency {
@@ -218,16 +218,18 @@ function toExtension(extensionDescription) {
218
218
  };
219
219
  }
220
220
  function toExtensionDescription(extension, isUnderDevelopment) {
221
+ const id = getExtensionId(extension.manifest.publisher, extension.manifest.name);
221
222
  return {
222
- identifier: ( new ExtensionIdentifier(getExtensionId(extension.manifest.publisher, extension.manifest.name))),
223
+ id,
224
+ identifier: ( new ExtensionIdentifier(id)),
223
225
  isBuiltin: extension.type === ExtensionType.System,
224
226
  isUserBuiltin: extension.type === ExtensionType.User && extension.isBuiltin,
225
227
  isUnderDevelopment: !!isUnderDevelopment,
226
228
  extensionLocation: extension.location,
227
- ...extension.manifest,
228
229
  uuid: extension.identifier.uuid,
229
230
  targetPlatform: extension.targetPlatform,
230
231
  publisherDisplayName: extension.publisherDisplayName,
232
+ ...extension.manifest
231
233
  };
232
234
  }
233
235
  class NullExtensionService {
@@ -115,10 +115,12 @@ interface IExtensionService {
115
115
  * @param reason a human readable reason for stopping the extension hosts. This maybe
116
116
  * can be presented to the user when showing dialogs.
117
117
  *
118
+ * @param auto indicates if the operation was triggered by an automatic action
119
+ *
118
120
  * @returns a promise that resolves to `true` if the extension hosts were stopped, `false`
119
121
  * if the operation was vetoed by listeners of the `onWillStop` event.
120
122
  */
121
- stopExtensionHosts(reason: string): Promise<boolean>;
123
+ stopExtensionHosts(reason: string, auto?: boolean): Promise<boolean>;
122
124
  /**
123
125
  * Starts the extension hosts. If updates are provided, the extension hosts are started with the given updates.
124
126
  */
@@ -5,9 +5,9 @@ import { EXTENSION_IDENTIFIER_PATTERN } from '../../../../platform/extensionMana
5
5
  import { Extensions } from '../../../../platform/jsonschemas/common/jsonContributionRegistry.js';
6
6
  import { Registry } from '../../../../platform/registry/common/platform.js';
7
7
  import { EXTENSION_CATEGORIES, ExtensionIdentifierSet } from '../../../../platform/extensions/common/extensions.js';
8
- import { allApiProposals } from './extensionsApiProposals.js';
9
8
  import { productSchemaId } from '../../../../platform/product/common/productService.js';
10
9
  import { ImplicitActivationEvents } from '../../../../platform/extensionManagement/common/implicitActivationEvents.js';
10
+ import { allApiProposals } from '../../../../platform/extensions/common/extensionsApiProposals.js';
11
11
  const _moduleId = "vs/workbench/services/extensions/common/extensionsRegistry";
12
12
  const schemaRegistry = ( (Registry.as(Extensions.JSONContribution)));
13
13
  class ExtensionMessageCollector {
@@ -220,8 +220,8 @@ const schema = {
220
220
  uniqueItems: true,
221
221
  items: {
222
222
  type: 'string',
223
- enum: ( (Object.keys(allApiProposals))),
224
- markdownEnumDescriptions: ( (Object.values(allApiProposals)))
223
+ enum: ( (( (Object.keys(allApiProposals))).map(proposalName => proposalName))),
224
+ markdownEnumDescriptions: ( (( (Object.values(allApiProposals))).map(value => value.proposal)))
225
225
  }
226
226
  },
227
227
  api: {
@@ -472,10 +472,28 @@ const schema = {
472
472
  )),
473
473
  },
474
474
  {
475
- label: '*',
475
+ label: 'onChatParticipant',
476
+ body: 'onChatParticipant:${1:participantId}',
476
477
  description: ( localizeWithPath(
477
478
  _moduleId,
478
479
  43,
480
+ 'An activation event emitted when the specified chat participant is invoked.'
481
+ )),
482
+ },
483
+ {
484
+ label: 'onLanguageModelTool',
485
+ body: 'onLanguageModelTool:${1:toolName}',
486
+ description: ( localizeWithPath(
487
+ _moduleId,
488
+ 44,
489
+ 'An activation event emitted when the specified language model tool is invoked.'
490
+ )),
491
+ },
492
+ {
493
+ label: '*',
494
+ description: ( localizeWithPath(
495
+ _moduleId,
496
+ 45,
479
497
  'An activation event emitted on VS Code startup. To ensure a great end user experience, please use this activation event in your extension only when no other activation events combination works in your use-case.'
480
498
  )),
481
499
  body: '*'
@@ -487,7 +505,7 @@ const schema = {
487
505
  type: 'array',
488
506
  description: ( localizeWithPath(
489
507
  _moduleId,
490
- 44,
508
+ 46,
491
509
  'Array of badges to display in the sidebar of the Marketplace\'s extension page.'
492
510
  )),
493
511
  items: {
@@ -496,15 +514,15 @@ const schema = {
496
514
  properties: {
497
515
  url: {
498
516
  type: 'string',
499
- description: ( localizeWithPath(_moduleId, 45, 'Badge image URL.'))
517
+ description: ( localizeWithPath(_moduleId, 47, 'Badge image URL.'))
500
518
  },
501
519
  href: {
502
520
  type: 'string',
503
- description: ( localizeWithPath(_moduleId, 46, 'Badge link.'))
521
+ description: ( localizeWithPath(_moduleId, 48, 'Badge link.'))
504
522
  },
505
523
  description: {
506
524
  type: 'string',
507
- description: ( localizeWithPath(_moduleId, 47, 'Badge description.'))
525
+ description: ( localizeWithPath(_moduleId, 49, 'Badge description.'))
508
526
  }
509
527
  }
510
528
  }
@@ -513,7 +531,7 @@ const schema = {
513
531
  type: 'string',
514
532
  description: ( localizeWithPath(
515
533
  _moduleId,
516
- 48,
534
+ 50,
517
535
  "Controls the Markdown rendering engine used in the Marketplace. Either github (default) or standard."
518
536
  )),
519
537
  enum: ['github', 'standard'],
@@ -523,7 +541,7 @@ const schema = {
523
541
  default: 'marketplace',
524
542
  description: ( localizeWithPath(
525
543
  _moduleId,
526
- 49,
544
+ 51,
527
545
  "Controls the Q&A link in the Marketplace. Set to marketplace to enable the default Marketplace Q & A site. Set to a string to provide the URL of a custom Q & A site. Set to false to disable Q & A altogether."
528
546
  )),
529
547
  anyOf: [
@@ -539,7 +557,7 @@ const schema = {
539
557
  extensionDependencies: {
540
558
  description: ( localizeWithPath(
541
559
  _moduleId,
542
- 50,
560
+ 52,
543
561
  'Dependencies to other extensions. The identifier of an extension is always ${publisher}.${name}. For example: vscode.csharp.'
544
562
  )),
545
563
  type: 'array',
@@ -552,7 +570,7 @@ const schema = {
552
570
  extensionPack: {
553
571
  description: ( localizeWithPath(
554
572
  _moduleId,
555
- 51,
573
+ 53,
556
574
  "A set of extensions that can be installed together. The identifier of an extension is always ${publisher}.${name}. For example: vscode.csharp."
557
575
  )),
558
576
  type: 'array',
@@ -565,7 +583,7 @@ const schema = {
565
583
  extensionKind: {
566
584
  description: ( localizeWithPath(
567
585
  _moduleId,
568
- 52,
586
+ 54,
569
587
  "Define the kind of an extension. `ui` extensions are installed and run on the local machine while `workspace` extensions run on the remote."
570
588
  )),
571
589
  type: 'array',
@@ -576,7 +594,7 @@ const schema = {
576
594
  body: ['ui'],
577
595
  description: ( localizeWithPath(
578
596
  _moduleId,
579
- 53,
597
+ 55,
580
598
  "Define an extension which can run only on the local machine when connected to remote window."
581
599
  ))
582
600
  },
@@ -584,7 +602,7 @@ const schema = {
584
602
  body: ['workspace'],
585
603
  description: ( localizeWithPath(
586
604
  _moduleId,
587
- 54,
605
+ 56,
588
606
  "Define an extension which can run only on the remote machine when connected remote window."
589
607
  ))
590
608
  },
@@ -592,7 +610,7 @@ const schema = {
592
610
  body: ['ui', 'workspace'],
593
611
  description: ( localizeWithPath(
594
612
  _moduleId,
595
- 55,
613
+ 57,
596
614
  "Define an extension which can run on either side, with a preference towards running on the local machine."
597
615
  ))
598
616
  },
@@ -600,7 +618,7 @@ const schema = {
600
618
  body: ['workspace', 'ui'],
601
619
  description: ( localizeWithPath(
602
620
  _moduleId,
603
- 56,
621
+ 58,
604
622
  "Define an extension which can run on either side, with a preference towards running on the remote machine."
605
623
  ))
606
624
  },
@@ -608,7 +626,7 @@ const schema = {
608
626
  body: [],
609
627
  description: ( localizeWithPath(
610
628
  _moduleId,
611
- 57,
629
+ 59,
612
630
  "Define an extension which cannot run in a remote context, neither on the local, nor on the remote machine."
613
631
  ))
614
632
  }
@@ -617,7 +635,7 @@ const schema = {
617
635
  capabilities: {
618
636
  description: ( localizeWithPath(
619
637
  _moduleId,
620
- 58,
638
+ 60,
621
639
  "Declare the set of supported capabilities by the extension."
622
640
  )),
623
641
  type: 'object',
@@ -625,7 +643,7 @@ const schema = {
625
643
  virtualWorkspaces: {
626
644
  description: ( localizeWithPath(
627
645
  _moduleId,
628
- 59,
646
+ 61,
629
647
  "Declares whether the extension should be enabled in virtual workspaces. A virtual workspace is a workspace which is not backed by any on-disk resources. When false, this extension will be automatically disabled in virtual workspaces. Default is true."
630
648
  )),
631
649
  type: ['boolean', 'object'],
@@ -638,7 +656,7 @@ const schema = {
638
656
  supported: {
639
657
  markdownDescription: ( localizeWithPath(
640
658
  _moduleId,
641
- 60,
659
+ 62,
642
660
  "Declares the level of support for virtual workspaces by the extension."
643
661
  )),
644
662
  type: ['string', 'boolean'],
@@ -646,22 +664,22 @@ const schema = {
646
664
  enumDescriptions: [
647
665
  ( localizeWithPath(
648
666
  _moduleId,
649
- 61,
667
+ 63,
650
668
  "The extension will be enabled in virtual workspaces with some functionality disabled."
651
669
  )),
652
670
  ( localizeWithPath(
653
671
  _moduleId,
654
- 62,
672
+ 64,
655
673
  "The extension will be enabled in virtual workspaces with all functionality enabled."
656
674
  )),
657
- ( localizeWithPath(_moduleId, 63, "The extension will not be enabled in virtual workspaces.")),
675
+ ( localizeWithPath(_moduleId, 65, "The extension will not be enabled in virtual workspaces.")),
658
676
  ]
659
677
  },
660
678
  description: {
661
679
  type: 'string',
662
680
  markdownDescription: ( localizeWithPath(
663
681
  _moduleId,
664
- 64,
682
+ 66,
665
683
  "A description of how virtual workspaces affects the extensions behavior and why it is needed. This only applies when `supported` is not `true`."
666
684
  )),
667
685
  }
@@ -670,7 +688,7 @@ const schema = {
670
688
  untrustedWorkspaces: {
671
689
  description: ( localizeWithPath(
672
690
  _moduleId,
673
- 65,
691
+ 67,
674
692
  'Declares how the extension should be handled in untrusted workspaces.'
675
693
  )),
676
694
  type: 'object',
@@ -682,7 +700,7 @@ const schema = {
682
700
  supported: {
683
701
  markdownDescription: ( localizeWithPath(
684
702
  _moduleId,
685
- 66,
703
+ 68,
686
704
  "Declares the level of support for untrusted workspaces by the extension."
687
705
  )),
688
706
  type: ['string', 'boolean'],
@@ -690,17 +708,17 @@ const schema = {
690
708
  enumDescriptions: [
691
709
  ( localizeWithPath(
692
710
  _moduleId,
693
- 67,
711
+ 69,
694
712
  "The extension will be enabled in untrusted workspaces with some functionality disabled."
695
713
  )),
696
714
  ( localizeWithPath(
697
715
  _moduleId,
698
- 68,
716
+ 70,
699
717
  "The extension will be enabled in untrusted workspaces with all functionality enabled."
700
718
  )),
701
719
  ( localizeWithPath(
702
720
  _moduleId,
703
- 69,
721
+ 71,
704
722
  "The extension will not be enabled in untrusted workspaces."
705
723
  )),
706
724
  ]
@@ -708,7 +726,7 @@ const schema = {
708
726
  restrictedConfigurations: {
709
727
  description: ( localizeWithPath(
710
728
  _moduleId,
711
- 70,
729
+ 72,
712
730
  "A list of configuration keys contributed by the extension that should not use workspace values in untrusted workspaces."
713
731
  )),
714
732
  type: 'array',
@@ -720,7 +738,7 @@ const schema = {
720
738
  type: 'string',
721
739
  markdownDescription: ( localizeWithPath(
722
740
  _moduleId,
723
- 71,
741
+ 73,
724
742
  "A description of how workspace trust affects the extensions behavior and why it is needed. This only applies when `supported` is not `true`."
725
743
  )),
726
744
  }
@@ -731,7 +749,7 @@ const schema = {
731
749
  sponsor: {
732
750
  description: ( localizeWithPath(
733
751
  _moduleId,
734
- 72,
752
+ 74,
735
753
  "Specify the location from where users can sponsor your extension."
736
754
  )),
737
755
  type: 'object',
@@ -742,7 +760,7 @@ const schema = {
742
760
  'url': {
743
761
  description: ( localizeWithPath(
744
762
  _moduleId,
745
- 73,
763
+ 75,
746
764
  "URL from where users can sponsor your extension. It must be a valid URL with a HTTP or HTTPS protocol. Example value: https://github.com/sponsors/nvaccess"
747
765
  )),
748
766
  type: 'string',
@@ -755,7 +773,7 @@ const schema = {
755
773
  'vscode:prepublish': {
756
774
  description: ( localizeWithPath(
757
775
  _moduleId,
758
- 74,
776
+ 76,
759
777
  'Script executed before the package is published as a VS Code extension.'
760
778
  )),
761
779
  type: 'string'
@@ -763,7 +781,7 @@ const schema = {
763
781
  'vscode:uninstall': {
764
782
  description: ( localizeWithPath(
765
783
  _moduleId,
766
- 75,
784
+ 77,
767
785
  'Uninstall hook for VS Code extension. Script that gets executed when the extension is completely uninstalled from VS Code which is when VS Code is restarted (shutdown and start) after the extension is uninstalled. Only Node scripts are supported.'
768
786
  )),
769
787
  type: 'string'
@@ -772,13 +790,13 @@ const schema = {
772
790
  },
773
791
  icon: {
774
792
  type: 'string',
775
- description: ( localizeWithPath(_moduleId, 76, 'The path to a 128x128 pixel icon.'))
793
+ description: ( localizeWithPath(_moduleId, 78, 'The path to a 128x128 pixel icon.'))
776
794
  },
777
795
  l10n: {
778
796
  type: 'string',
779
797
  description: ( localizeWithPath(
780
798
  _moduleId,
781
- 77,
799
+ 79,
782
800
  'The relative path to a folder containing localization (bundle.l10n.*.json) files. Must be specified if you are using the vscode.l10n API.'
783
801
  ))
784
802
  },
@@ -786,7 +804,7 @@ const schema = {
786
804
  type: 'string',
787
805
  markdownDescription: ( localizeWithPath(
788
806
  _moduleId,
789
- 78,
807
+ 80,
790
808
  'The pricing information for the extension. Can be Free (default) or Trial. For more details visit: https://code.visualstudio.com/api/working-with-extensions/publishing-extension#extension-pricing-label'
791
809
  )),
792
810
  enum: ['Free', 'Trial'],
@@ -826,7 +844,7 @@ schemaRegistry.registerSchema(productSchemaId, {
826
844
  extensionEnabledApiProposals: {
827
845
  description: ( localizeWithPath(
828
846
  _moduleId,
829
- 79,
847
+ 81,
830
848
  "API proposals that the respective extensions can freely use."
831
849
  )),
832
850
  type: 'object',
@@ -838,7 +856,7 @@ schemaRegistry.registerSchema(productSchemaId, {
838
856
  items: {
839
857
  type: 'string',
840
858
  enum: ( (Object.keys(allApiProposals))),
841
- markdownEnumDescriptions: ( (Object.values(allApiProposals)))
859
+ markdownEnumDescriptions: ( (( (Object.values(allApiProposals))).map(value => value.proposal)))
842
860
  }
843
861
  }]
844
862
  }
@@ -109,7 +109,7 @@ class RPCProtocol extends Disposable {
109
109
  this._unacknowledgedCount = 0;
110
110
  this._unresponsiveTime = 0;
111
111
  this._asyncCheckUresponsive = this._register(( new RunOnceScheduler(() => this._checkUnresponsive(), 1000)));
112
- this._protocol.onMessage((msg) => this._receiveOneMessage(msg));
112
+ this._register(this._protocol.onMessage((msg) => this._receiveOneMessage(msg)));
113
113
  }
114
114
  dispose() {
115
115
  this._isDisposed = true;
@@ -59,8 +59,9 @@ let FilesConfigurationService = class FilesConfigurationService extends Disposab
59
59
  configuredReadonly: { value: ( localizeWithPath(
60
60
  _moduleId,
61
61
  2,
62
- "Editor is read-only because the file was set read-only via settings. [Click here](command:{0}) to configure.",
63
- `workbench.action.openSettings?${encodeURIComponent('["files.readonly"]')}`
62
+ "Editor is read-only because the file was set read-only via settings. [Click here](command:{0}) to configure or [toggle for this session](command:{1}).",
63
+ `workbench.action.openSettings?${encodeURIComponent('["files.readonly"]')}`,
64
+ 'workbench.action.files.toggleActiveEditorReadonlyInSession'
64
65
  )), isTrusted: true },
65
66
  fileLocked: { value: ( localizeWithPath(
66
67
  _moduleId,
@@ -97,6 +97,7 @@ interface IHostService {
97
97
  * in progress, attempts to quit the application will not be vetoed with a dialog.
98
98
  */
99
99
  withExpectedShutdown<T>(expectedShutdownTask: () => Promise<T>): Promise<T>;
100
+ getPathForFile(file: File): string | undefined;
100
101
  }
101
102
 
102
103
  export { IHostService };