@codingame/monaco-vscode-api 21.6.0 → 22.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 (446) hide show
  1. package/missing-services.js +68 -78
  2. package/package.json +8 -8
  3. package/services.d.ts +4 -4
  4. package/services.js +5 -4
  5. package/vscode/product.json.js +1 -1
  6. package/vscode/src/vs/base/browser/dom.js +6 -3
  7. package/vscode/src/vs/base/browser/domSanitize.d.ts +8 -0
  8. package/vscode/src/vs/base/browser/domSanitize.js +49 -27
  9. package/vscode/src/vs/base/browser/domStylesheets.js +5 -1
  10. package/vscode/src/vs/base/browser/markdownRenderer.js +7 -5
  11. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  12. package/vscode/src/vs/base/browser/ui/contextview/contextview.js +2 -2
  13. package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +1 -1
  14. package/vscode/src/vs/base/browser/ui/menu/menu.js +1 -0
  15. package/vscode/src/vs/base/browser/ui/progressbar/progressbar.d.ts +1 -1
  16. package/vscode/src/vs/base/common/async.js +6 -0
  17. package/vscode/src/vs/base/common/cancellation.d.ts +21 -0
  18. package/vscode/src/vs/base/common/cancellation.js +42 -1
  19. package/vscode/src/vs/base/common/codicons.d.ts +3 -0
  20. package/vscode/src/vs/base/common/codiconsLibrary.d.ts +3 -0
  21. package/vscode/src/vs/base/common/codiconsLibrary.js +3 -0
  22. package/vscode/src/vs/base/common/decorators/cancelPreviousCalls.d.ts +84 -0
  23. package/vscode/src/vs/base/common/decorators.d.ts +1 -1
  24. package/vscode/src/vs/base/common/htmlContent.d.ts +2 -0
  25. package/vscode/src/vs/base/common/htmlContent.js +9 -6
  26. package/vscode/src/vs/base/common/lifecycle.js +21 -7
  27. package/vscode/src/vs/base/common/numbers.d.ts +0 -45
  28. package/vscode/src/vs/base/common/oauth.d.ts +33 -0
  29. package/vscode/src/vs/base/common/oauth.js +79 -3
  30. package/vscode/src/vs/base/common/observableInternal/base.d.ts +4 -0
  31. package/vscode/src/vs/base/common/observableInternal/index.js +3 -0
  32. package/vscode/src/vs/base/common/observableInternal/logging/debugGetDependencyGraph.d.ts +4 -0
  33. package/vscode/src/vs/base/common/observableInternal/logging/debugGetDependencyGraph.js +98 -0
  34. package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.d.ts +4 -0
  35. package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.js +8 -1
  36. package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.d.ts +1 -0
  37. package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.js +10 -0
  38. package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.d.ts +4 -0
  39. package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.js +3 -0
  40. package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.d.ts +1 -0
  41. package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.js +9 -0
  42. package/vscode/src/vs/base/common/product.d.ts +7 -1
  43. package/vscode/src/vs/base/common/strings.d.ts +0 -1
  44. package/vscode/src/vs/base/common/strings.js +9 -4
  45. package/vscode/src/vs/base/common/uriIpc.js +24 -1
  46. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentRich.js +26 -16
  47. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentSimple.js +3 -3
  48. package/vscode/src/vs/editor/browser/services/hoverService/hover.css +1 -1
  49. package/vscode/src/vs/editor/browser/widget/diffEditor/commands.d.ts +3 -1
  50. package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -1
  51. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +8 -8
  52. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +4 -4
  53. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.d.ts +1 -0
  54. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +26 -1
  55. package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
  56. package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +1 -1
  57. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +93 -85
  58. package/vscode/src/vs/editor/common/config/editorOptions.js +386 -351
  59. package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
  60. package/vscode/src/vs/editor/common/core/ranges/lineRange.d.ts +3 -3
  61. package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
  62. package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
  63. package/vscode/src/vs/editor/common/languages.d.ts +5 -1
  64. package/vscode/src/vs/editor/common/languages.js +56 -56
  65. package/vscode/src/vs/editor/common/model/editStack.js +1 -1
  66. package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +86 -85
  67. package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +86 -85
  68. package/vscode/src/vs/editor/common/standaloneStrings.js +47 -47
  69. package/vscode/src/vs/editor/common/textModelEditSource.d.ts +1 -0
  70. package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
  71. package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +9 -7
  72. package/vscode/src/vs/editor/common/viewModel/screenReaderSimpleModel.d.ts +1 -0
  73. package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
  74. package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
  75. package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
  76. package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
  77. package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
  78. package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
  79. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
  80. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
  81. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
  82. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
  83. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
  84. package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
  85. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
  86. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
  87. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
  88. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
  89. package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
  90. package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
  91. package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
  92. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
  93. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
  94. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
  95. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
  96. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
  97. package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
  98. package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
  99. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +26 -26
  100. package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.contribution.d.ts +1 -0
  101. package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.contribution.js +8 -0
  102. package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.css +44 -0
  103. package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.d.ts +10 -0
  104. package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.js +81 -0
  105. package/vscode/src/vs/editor/contrib/folding/browser/folding.js +21 -20
  106. package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
  107. package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
  108. package/vscode/src/vs/editor/contrib/format/browser/format.js +3 -0
  109. package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
  110. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
  111. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
  112. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
  113. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.d.ts +4 -1
  114. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js +20 -11
  115. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  116. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
  117. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
  118. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
  119. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
  120. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
  121. package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
  122. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +2 -1
  123. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
  124. package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
  125. package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
  126. package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
  127. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
  128. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
  129. package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  130. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
  131. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHints.js +2 -7
  132. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
  133. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +19 -19
  134. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
  135. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +18 -13
  136. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
  137. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
  138. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +3 -1
  139. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +14 -6
  140. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +7 -1
  141. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +154 -5
  142. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +1 -0
  143. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +3 -0
  144. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +7 -3
  145. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +18 -3
  146. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/telemetry.d.ts +45 -0
  147. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/telemetry.js +7 -0
  148. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +16 -15
  149. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +5 -2
  150. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
  151. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +2 -2
  152. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +24 -21
  153. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css +13 -4
  154. package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
  155. package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  156. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.d.ts +2 -1
  157. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +36 -35
  158. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
  159. package/vscode/src/vs/editor/contrib/links/browser/links.js +11 -11
  160. package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
  161. package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScrollController.js +3 -3
  162. package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
  163. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  164. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
  165. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +18 -18
  166. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  167. package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
  168. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
  169. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
  170. package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
  171. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.d.ts +3 -0
  172. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +13 -4
  173. package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  174. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  175. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +12 -19
  176. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +10 -1
  177. package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
  178. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
  179. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -18
  180. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
  181. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
  182. package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
  183. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  184. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  185. package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  186. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
  187. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +26 -26
  188. package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  189. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  190. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
  191. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
  192. package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +1 -1
  193. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +0 -1
  194. package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +1 -0
  195. package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
  196. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
  197. package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
  198. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +9 -6
  199. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +13 -14
  200. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
  201. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
  202. package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +1 -1
  203. package/vscode/src/vs/platform/actions/browser/toolbar.js +5 -5
  204. package/vscode/src/vs/platform/actions/common/actions.d.ts +2 -0
  205. package/vscode/src/vs/platform/actions/common/actions.js +2 -0
  206. package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
  207. package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
  208. package/vscode/src/vs/platform/assignment/common/assignment.d.ts +6 -1
  209. package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +2 -2
  210. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
  211. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.d.ts +2 -0
  212. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +32 -3
  213. package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
  214. package/vscode/src/vs/platform/contextkey/common/contextkeys.d.ts +0 -1
  215. package/vscode/src/vs/platform/contextkey/common/contextkeys.js +10 -11
  216. package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
  217. package/vscode/src/vs/platform/dataChannel/browser/forwardingTelemetryService.d.ts +32 -0
  218. package/vscode/src/vs/platform/dataChannel/browser/forwardingTelemetryService.js +86 -0
  219. package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
  220. package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
  221. package/vscode/src/vs/platform/environment/common/argv.d.ts +1 -0
  222. package/vscode/src/vs/platform/environment/common/environment.service.d.ts +0 -1
  223. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +19 -19
  224. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
  225. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
  226. package/vscode/src/vs/platform/extensionManagement/common/implicitActivationEvents.d.ts +1 -3
  227. package/vscode/src/vs/platform/extensionManagement/common/implicitActivationEvents.js +1 -1
  228. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
  229. package/vscode/src/vs/platform/extensions/common/extensions.d.ts +2 -1
  230. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +4 -3
  231. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +4 -3
  232. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
  233. package/vscode/src/vs/platform/files/common/files.js +6 -6
  234. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  235. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
  236. package/vscode/src/vs/platform/list/browser/listService.js +27 -27
  237. package/vscode/src/vs/platform/log/common/log.js +6 -6
  238. package/vscode/src/vs/platform/markers/common/markerService.js +2 -2
  239. package/vscode/src/vs/platform/markers/common/markers.js +6 -6
  240. package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.d.ts +10 -2
  241. package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.js +10 -2
  242. package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +3 -3
  243. package/vscode/src/vs/platform/notification/common/notification.js +3 -3
  244. package/vscode/src/vs/platform/product/common/product.js +3 -3
  245. package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +1 -0
  246. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +23 -15
  247. package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +47 -13
  248. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +10 -61
  249. package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +1 -1
  250. package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  251. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
  252. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.d.ts +6 -0
  253. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.js +10 -0
  254. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +10 -5
  255. package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +4 -1
  256. package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +10 -1
  257. package/vscode/src/vs/platform/request/common/request.js +34 -18
  258. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
  259. package/vscode/src/vs/platform/terminal/common/terminal.d.ts +2 -3
  260. package/vscode/src/vs/platform/terminal/common/terminal.js +6 -7
  261. package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
  262. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
  263. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
  264. package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -95
  265. package/vscode/src/vs/platform/theme/common/colors/inputColors.js +47 -47
  266. package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
  267. package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
  268. package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
  269. package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
  270. package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
  271. package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
  272. package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
  273. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  274. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
  275. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
  276. package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
  277. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +11 -10
  278. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +25 -24
  279. package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +4 -4
  280. package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +10 -18
  281. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +5 -0
  282. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +16 -4
  283. package/vscode/src/vs/workbench/api/common/extHostChatSessions.d.ts +1 -3
  284. package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +9 -5
  285. package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
  286. package/vscode/src/vs/workbench/api/common/extHostDebugService.js +0 -3
  287. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
  288. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
  289. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
  290. package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +9 -4
  291. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +7 -2
  292. package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
  293. package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +97 -9
  294. package/vscode/src/vs/workbench/api/common/extHostMcp.js +66 -62
  295. package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +1 -1
  296. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
  297. package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +2 -0
  298. package/vscode/src/vs/workbench/api/common/extHostSCM.js +22 -0
  299. package/vscode/src/vs/workbench/api/common/extHostSecrets.d.ts +0 -1
  300. package/vscode/src/vs/workbench/api/common/extHostSecrets.js +0 -3
  301. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
  302. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
  303. package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +2 -2
  304. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +8 -8
  305. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +53 -3
  306. package/vscode/src/vs/workbench/api/common/extHostTunnelService.d.ts +2 -0
  307. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +5 -2
  308. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +6 -2
  309. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +60 -9
  310. package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +18 -14
  311. package/vscode/src/vs/workbench/api/common/extHostTypes.js +7 -7
  312. package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
  313. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
  314. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
  315. package/vscode/src/vs/workbench/browser/actions/developerActions.js +262 -31
  316. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
  317. package/vscode/src/vs/workbench/browser/contextkeys.d.ts +5 -7
  318. package/vscode/src/vs/workbench/browser/contextkeys.js +15 -43
  319. package/vscode/src/vs/workbench/common/configuration.js +9 -9
  320. package/vscode/src/vs/workbench/common/contextkeys.js +73 -73
  321. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
  322. package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
  323. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
  324. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
  325. package/vscode/src/vs/workbench/common/editor.js +4 -4
  326. package/vscode/src/vs/workbench/common/theme.js +167 -167
  327. package/vscode/src/vs/workbench/common/views.js +4 -4
  328. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +3 -2
  329. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +175 -158
  330. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
  331. package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +2 -1
  332. package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service.d.ts +1 -1
  333. package/vscode/src/vs/workbench/contrib/chat/browser/chatContextPickService.service.d.ts +1 -1
  334. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.d.ts +1 -0
  335. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +15 -9
  336. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +7 -0
  337. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +61 -66
  338. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +2 -1
  339. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
  340. package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.service.d.ts +1 -2
  341. package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +24 -8
  342. package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +8 -1
  343. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +6 -2
  344. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +0 -2
  345. package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.d.ts +28 -3
  346. package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +35 -6
  347. package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +16 -6
  348. package/vscode/src/vs/workbench/contrib/chat/common/constants.js +11 -8
  349. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +9 -2
  350. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +4 -4
  351. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +10 -3
  352. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +8 -4
  353. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +50 -42
  354. package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +1 -1
  355. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +23 -8
  356. package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.d.ts +4 -3
  357. package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.js +29 -29
  358. package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.js +4 -3
  359. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
  360. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
  361. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
  362. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
  363. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
  364. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +7 -6
  365. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  366. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
  367. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  368. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
  369. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
  370. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  371. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
  372. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
  373. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
  374. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
  375. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
  376. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.d.ts +3 -1
  377. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
  378. package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +4 -4
  379. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  380. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
  381. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
  382. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
  383. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  384. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
  385. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  386. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  387. package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryTypes.d.ts +6 -1
  388. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +33 -0
  389. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +16 -5
  390. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +2 -2
  391. package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.d.ts +217 -60
  392. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
  393. package/vscode/src/vs/workbench/contrib/scm/common/history.d.ts +2 -0
  394. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  395. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  396. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  397. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
  398. package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
  399. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +7 -7
  400. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.d.ts +1 -1
  401. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +16 -3
  402. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +18 -6
  403. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +42 -8
  404. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.js +2 -1
  405. package/vscode/src/vs/workbench/contrib/testing/common/constants.d.ts +1 -0
  406. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +12 -11
  407. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
  408. package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +2 -2
  409. package/vscode/src/vs/workbench/services/activity/common/activity.service.d.ts +1 -1
  410. package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +4 -4
  411. package/vscode/src/vs/workbench/services/authentication/common/authentication.js +2 -2
  412. package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +6 -6
  413. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.d.ts +286 -0
  414. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +861 -0
  415. package/vscode/src/vs/workbench/{contrib → services}/chat/common/chatEntitlementService.service.d.ts +8 -2
  416. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
  417. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
  418. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +87 -87
  419. package/vscode/src/vs/workbench/services/language/common/languageService.js +30 -30
  420. package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
  421. package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +1 -1
  422. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
  423. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
  424. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
  425. package/vscode/src/vs/workbench/services/textfile/common/encoding.js +1 -1
  426. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
  427. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
  428. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
  429. package/vscode-dts/vscode.d.ts +92 -47
  430. package/vscode-dts/vscode.proposed.authenticationChallenges.d.ts +7 -80
  431. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +14 -1
  432. package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +12 -0
  433. package/vscode-dts/vscode.proposed.chatProvider.d.ts +19 -0
  434. package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +19 -11
  435. package/vscode-dts/vscode.proposed.d.ts +1 -1
  436. package/vscode-dts/{vscode.proposed.secretStorageKeys.d.ts → vscode.proposed.devDeviceId.d.ts} +3 -4
  437. package/vscode-dts/vscode.proposed.languageModelCapabilities.d.ts +5 -0
  438. package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +2 -0
  439. package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +70 -16
  440. package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.d.ts +0 -8
  441. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/frontMatterCodec/tokens/index.d.ts +0 -5
  442. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/simpleCodec/tokens/tokens.d.ts +0 -20
  443. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +0 -55
  444. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +0 -91
  445. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +0 -125
  446. /package/vscode/src/vs/workbench/{contrib → services}/chat/common/chatEntitlementService.service.js +0 -0
@@ -121,7 +121,6 @@ import { IChatStatusItemService } from './vscode/src/vs/workbench/contrib/chat/b
121
121
  import { IChatAgentService, IChatAgentNameService } from './vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.js';
122
122
  import { ICodeMapperService } from './vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.service.js';
123
123
  import { IChatEditingService } from './vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.js';
124
- import { IChatEntitlementService } from './vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.js';
125
124
  import { IChatService } from './vscode/src/vs/workbench/contrib/chat/common/chatService.service.js';
126
125
  import { IChatSessionsService } from './vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.js';
127
126
  import { IChatSlashCommandService } from './vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.service.js';
@@ -180,7 +179,7 @@ import { NoOpWorkspaceTagsService } from './vscode/src/vs/workbench/contrib/tags
180
179
  import { IWorkspaceTagsService } from './vscode/src/vs/workbench/contrib/tags/common/workspaceTags.service.js';
181
180
  import { ITaskService } from './vscode/src/vs/workbench/contrib/tasks/common/taskService.service.js';
182
181
  import { TerminalConnectionState } from './vscode/src/vs/workbench/contrib/terminal/browser/terminal.js';
183
- import { ITerminalService, ITerminalConfigurationService, ITerminalEditorService, ITerminalGroupService, ITerminalInstanceService } from './vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.js';
182
+ import { ITerminalService, ITerminalConfigurationService, ITerminalEditorService, ITerminalGroupService, ITerminalInstanceService, ITerminalEditingService } from './vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.js';
184
183
  import { IEnvironmentVariableService } from './vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.service.js';
185
184
  import { ITerminalProfileService, ITerminalProfileResolverService } from './vscode/src/vs/workbench/contrib/terminal/common/terminal.service.js';
186
185
  import { ITerminalContributionService } from './vscode/src/vs/workbench/contrib/terminal/common/terminalExtensionPoints.service.js';
@@ -220,6 +219,7 @@ import { IDynamicAuthenticationProviderStorageService } from './vscode/src/vs/wo
220
219
  import { IAuxiliaryWindowService } from './vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.service.js';
221
220
  import { IBannerService } from './vscode/src/vs/workbench/services/banner/browser/bannerService.service.js';
222
221
  import { IBrowserElementsService } from './vscode/src/vs/workbench/services/browserElements/browser/browserElementsService.service.js';
222
+ import { IChatEntitlementService } from './vscode/src/vs/workbench/services/chat/common/chatEntitlementService.service.js';
223
223
  import { IJSONEditingService } from './vscode/src/vs/workbench/services/configuration/common/jsonEditing.service.js';
224
224
  import { IConfigurationResolverService } from './vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.service.js';
225
225
  import { IDecorationsService } from './vscode/src/vs/workbench/services/decorations/common/decorations.service.js';
@@ -294,11 +294,13 @@ import { IImageResizeService } from './vscode/src/vs/platform/imageResize/common
294
294
  import { McpGalleryManifestStatus } from './vscode/src/vs/platform/mcp/common/mcpGalleryManifest.js';
295
295
  import { IMcpGalleryManifestService } from './vscode/src/vs/platform/mcp/common/mcpGalleryManifest.service.js';
296
296
  import { IChatLayoutService } from './vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.service.js';
297
+ import { IChatModeService } from './vscode/src/vs/workbench/contrib/chat/common/chatModes.service.js';
297
298
  import { IAiEditTelemetryService } from './vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.service.js';
299
+ import { LazyCollectionState } from './vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js';
300
+ import { ChatEntitlement } from './vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js';
298
301
  import { IInlineCompletionsUnificationService } from './vscode/src/vs/workbench/services/inlineCompletions/common/inlineCompletionsUnification.service.js';
299
302
  import { getBuiltInExtensionTranslationsUris, getExtensionIdProvidingCurrentLocale } from './l10n.js';
300
303
  import { unsupported } from './tools.js';
301
- import { IChatModeService } from './vscode/src/vs/workbench/contrib/chat/common/chatModes.service.js';
302
304
  import { constObservable } from './vscode/src/vs/base/common/observableInternal/observables/constObservable.js';
303
305
 
304
306
  function Unsupported(target, propertyKey, descriptor) {
@@ -929,9 +931,6 @@ class EmptyEditorGroupsService {
929
931
  this.onDidChangeEditorPartOptions = Event.None;
930
932
  this.enforcePartOptions = unsupported;
931
933
  }
932
- get contentDimension() {
933
- return unsupported();
934
- }
935
934
  get sideGroup() {
936
935
  return unsupported();
937
936
  }
@@ -972,9 +971,6 @@ __decorate([
972
971
  __decorate([
973
972
  Unsupported
974
973
  ], EmptyEditorGroupsService.prototype, "getLayout", void 0);
975
- __decorate([
976
- Unsupported
977
- ], EmptyEditorGroupsService.prototype, "contentDimension", null);
978
974
  __decorate([
979
975
  Unsupported
980
976
  ], EmptyEditorGroupsService.prototype, "sideGroup", null);
@@ -3251,7 +3247,6 @@ class TerminalService {
3251
3247
  this.revealActiveTerminal = unsupported;
3252
3248
  this.isProcessSupportRegistered = false;
3253
3249
  this.connectionState = TerminalConnectionState.Connected;
3254
- this.defaultLocation = TerminalLocation.Panel;
3255
3250
  this.onDidChangeActiveGroup = Event.None;
3256
3251
  this.onDidCreateInstance = Event.None;
3257
3252
  this.onDidChangeInstanceDimensions = Event.None;
@@ -3260,7 +3255,6 @@ class TerminalService {
3260
3255
  this.onDidChangeConnectionState = Event.None;
3261
3256
  this.createTerminal = unsupported;
3262
3257
  this.getInstanceFromId = unsupported;
3263
- this.getInstanceFromIndex = unsupported;
3264
3258
  this.getReconnectedTerminals = () => undefined;
3265
3259
  this.getActiveOrCreateInstance = unsupported;
3266
3260
  this.moveToEditor = unsupported;
@@ -3272,16 +3266,11 @@ class TerminalService {
3272
3266
  this.setContainers = unsupported;
3273
3267
  this.requestStartExtensionTerminal = unsupported;
3274
3268
  this.isAttachedToTerminal = unsupported;
3275
- this.getEditableData = unsupported;
3276
- this.setEditable = unsupported;
3277
- this.isEditable = unsupported;
3278
3269
  this.safeDisposeTerminal = unsupported;
3279
3270
  this.getDefaultInstanceHost = unsupported;
3280
3271
  this.getInstanceHost = unsupported;
3281
3272
  this.resolveLocation = unsupported;
3282
3273
  this.setNativeDelegate = unsupported;
3283
- this.getEditingTerminal = unsupported;
3284
- this.setEditingTerminal = unsupported;
3285
3274
  this.activeInstance = undefined;
3286
3275
  this.onDidDisposeInstance = Event.None;
3287
3276
  this.onDidFocusInstance = Event.None;
@@ -3293,9 +3282,6 @@ class TerminalService {
3293
3282
  this.getInstanceFromResource = unsupported;
3294
3283
  this.createAndFocusTerminal = unsupported;
3295
3284
  }
3296
- get configHelper() {
3297
- return unsupported();
3298
- }
3299
3285
  }
3300
3286
  __decorate([
3301
3287
  Unsupported
@@ -3309,9 +3295,6 @@ __decorate([
3309
3295
  __decorate([
3310
3296
  Unsupported
3311
3297
  ], TerminalService.prototype, "createDetachedTerminal", void 0);
3312
- __decorate([
3313
- Unsupported
3314
- ], TerminalService.prototype, "configHelper", null);
3315
3298
  __decorate([
3316
3299
  Unsupported
3317
3300
  ], TerminalService.prototype, "revealActiveTerminal", void 0);
@@ -3323,7 +3306,7 @@ __decorate([
3323
3306
  ], TerminalService.prototype, "getInstanceFromId", void 0);
3324
3307
  __decorate([
3325
3308
  Unsupported
3326
- ], TerminalService.prototype, "getInstanceFromIndex", void 0);
3309
+ ], TerminalService.prototype, "getReconnectedTerminals", void 0);
3327
3310
  __decorate([
3328
3311
  Unsupported
3329
3312
  ], TerminalService.prototype, "getActiveOrCreateInstance", void 0);
@@ -3351,15 +3334,6 @@ __decorate([
3351
3334
  __decorate([
3352
3335
  Unsupported
3353
3336
  ], TerminalService.prototype, "isAttachedToTerminal", void 0);
3354
- __decorate([
3355
- Unsupported
3356
- ], TerminalService.prototype, "getEditableData", void 0);
3357
- __decorate([
3358
- Unsupported
3359
- ], TerminalService.prototype, "setEditable", void 0);
3360
- __decorate([
3361
- Unsupported
3362
- ], TerminalService.prototype, "isEditable", void 0);
3363
3337
  __decorate([
3364
3338
  Unsupported
3365
3339
  ], TerminalService.prototype, "safeDisposeTerminal", void 0);
@@ -3375,12 +3349,6 @@ __decorate([
3375
3349
  __decorate([
3376
3350
  Unsupported
3377
3351
  ], TerminalService.prototype, "setNativeDelegate", void 0);
3378
- __decorate([
3379
- Unsupported
3380
- ], TerminalService.prototype, "getEditingTerminal", void 0);
3381
- __decorate([
3382
- Unsupported
3383
- ], TerminalService.prototype, "setEditingTerminal", void 0);
3384
3352
  __decorate([
3385
3353
  Unsupported
3386
3354
  ], TerminalService.prototype, "setActiveInstance", void 0);
@@ -3396,6 +3364,7 @@ __decorate([
3396
3364
  registerSingleton(ITerminalService, TerminalService, InstantiationType.Delayed);
3397
3365
  class TerminalConfigurationService {
3398
3366
  constructor() {
3367
+ this.defaultLocation = TerminalLocation.Panel;
3399
3368
  this.onConfigChanged = Event.None;
3400
3369
  this.setPanelContainer = unsupported;
3401
3370
  this.configFontIsMonospace = unsupported;
@@ -4140,6 +4109,8 @@ class ChatService {
4140
4109
  this.requestInProgressObs = constObservable(false);
4141
4110
  this.edits2Enabled = false;
4142
4111
  this.getPersistedSessionTitle = () => undefined;
4112
+ this.editingSessions = [];
4113
+ this.getChatSessionFromInternalId = () => undefined;
4143
4114
  }
4144
4115
  }
4145
4116
  __decorate([
@@ -6818,10 +6789,15 @@ class LanguageModelToolsService {
6818
6789
  this.getToolSetByName = () => undefined;
6819
6790
  this.createToolSet = unsupported;
6820
6791
  this.toolSets = constObservable([]);
6821
- this.toToolEnablementMap = unsupported;
6822
6792
  this.toToolAndToolSetEnablementMap = unsupported;
6823
6793
  this.getToolAutoConfirmation = unsupported;
6824
6794
  this.getToolSet = () => undefined;
6795
+ this.getQualifiedToolNames = () => [];
6796
+ this.getToolByQualifiedName = () => undefined;
6797
+ this.getQualifiedToolName = unsupported;
6798
+ this.getDeprecatedQualifiedToolNames = () => new Map();
6799
+ this.toQualifiedToolNames = () => [];
6800
+ this.toToolReferences = () => [];
6825
6801
  }
6826
6802
  }
6827
6803
  __decorate([
@@ -6839,15 +6815,15 @@ __decorate([
6839
6815
  __decorate([
6840
6816
  Unsupported
6841
6817
  ], LanguageModelToolsService.prototype, "createToolSet", void 0);
6842
- __decorate([
6843
- Unsupported
6844
- ], LanguageModelToolsService.prototype, "toToolEnablementMap", void 0);
6845
6818
  __decorate([
6846
6819
  Unsupported
6847
6820
  ], LanguageModelToolsService.prototype, "toToolAndToolSetEnablementMap", void 0);
6848
6821
  __decorate([
6849
6822
  Unsupported
6850
6823
  ], LanguageModelToolsService.prototype, "getToolAutoConfirmation", void 0);
6824
+ __decorate([
6825
+ Unsupported
6826
+ ], LanguageModelToolsService.prototype, "getQualifiedToolName", void 0);
6851
6827
  registerSingleton(ILanguageModelToolsService, LanguageModelToolsService, InstantiationType.Delayed);
6852
6828
  class IssueFormService {
6853
6829
  constructor() {
@@ -7015,6 +6991,22 @@ __decorate([
7015
6991
  Unsupported
7016
6992
  ], TerminalCompletionService.prototype, "provideCompletions", void 0);
7017
6993
  registerSingleton(ITerminalCompletionService, TerminalCompletionService, InstantiationType.Delayed);
6994
+ class TerminalEditingService {
6995
+ constructor() {
6996
+ this.getEditableData = () => undefined;
6997
+ this.setEditable = unsupported;
6998
+ this.isEditable = () => false;
6999
+ this.getEditingTerminal = () => undefined;
7000
+ this.setEditingTerminal = unsupported;
7001
+ }
7002
+ }
7003
+ __decorate([
7004
+ Unsupported
7005
+ ], TerminalEditingService.prototype, "setEditable", void 0);
7006
+ __decorate([
7007
+ Unsupported
7008
+ ], TerminalEditingService.prototype, "setEditingTerminal", void 0);
7009
+ registerSingleton(ITerminalEditingService, TerminalEditingService, InstantiationType.Delayed);
7018
7010
  class ChatEntitlementsService {
7019
7011
  constructor() {
7020
7012
  this.organisations = undefined;
@@ -7025,6 +7017,11 @@ class ChatEntitlementsService {
7025
7017
  this.onDidChangeQuotaRemaining = Event.None;
7026
7018
  this.onDidChangeSentiment = Event.None;
7027
7019
  this.update = unsupported;
7020
+ this.entitlementObs = constObservable(ChatEntitlement.Unknown);
7021
+ this.sentimentObs = constObservable({});
7022
+ this.onDidChangeAnonymous = Event.None;
7023
+ this.anonymous = false;
7024
+ this.anonymousObs = constObservable(false);
7028
7025
  }
7029
7026
  get entitlement() {
7030
7027
  return unsupported();
@@ -7051,7 +7048,6 @@ __decorate([
7051
7048
  registerSingleton(IChatEntitlementService, ChatEntitlementsService, InstantiationType.Eager);
7052
7049
  class PromptsService {
7053
7050
  constructor() {
7054
- this.getSyntaxParserFor = unsupported;
7055
7051
  this.listPromptFiles = async () => [];
7056
7052
  this.getSourceFolders = () => [];
7057
7053
  this.dispose = () => { };
@@ -7060,66 +7056,60 @@ class PromptsService {
7060
7056
  this.findPromptSlashCommands = async () => [];
7061
7057
  this.onDidChangeCustomChatModes = Event.None;
7062
7058
  this.getCustomChatModes = async () => [];
7063
- this.parse = unsupported;
7064
7059
  this.getPromptFileType = () => undefined;
7060
+ this.getParsedPromptFile = unsupported;
7061
+ this.listPromptFilesForStorage = async () => [];
7062
+ this.getPromptCommandName = unsupported;
7063
+ this.parseNew = unsupported;
7064
+ this.registerContributedFile = () => Disposable.None;
7065
+ this.getPromptLocationLabel = unsupported;
7066
+ this.findAgentMDsInWorkspace = async () => [];
7065
7067
  }
7066
7068
  }
7067
7069
  __decorate([
7068
7070
  Unsupported
7069
- ], PromptsService.prototype, "getSyntaxParserFor", void 0);
7071
+ ], PromptsService.prototype, "getParsedPromptFile", void 0);
7070
7072
  __decorate([
7071
7073
  Unsupported
7072
- ], PromptsService.prototype, "parse", void 0);
7074
+ ], PromptsService.prototype, "getPromptCommandName", void 0);
7075
+ __decorate([
7076
+ Unsupported
7077
+ ], PromptsService.prototype, "parseNew", void 0);
7078
+ __decorate([
7079
+ Unsupported
7080
+ ], PromptsService.prototype, "getPromptLocationLabel", void 0);
7073
7081
  registerSingleton(IPromptsService, PromptsService, InstantiationType.Eager);
7074
7082
  class McpRegistry {
7075
7083
  constructor() {
7076
7084
  this.onDidChangeInputs = Event.None;
7085
+ this.collections = constObservable([]);
7086
+ this.lazyCollectionState = constObservable({
7087
+ collections: [],
7088
+ state: LazyCollectionState.AllKnown
7089
+ });
7090
+ this.delegates = constObservable([]);
7077
7091
  this.discoverCollections = async () => [];
7078
- this.registerCollection = unsupported;
7092
+ this.registerCollection = () => Disposable.None;
7079
7093
  this.clearSavedInputs = unsupported;
7080
7094
  this.editSavedInput = unsupported;
7081
- this.getSavedInputs = unsupported;
7082
- this.resolveConnection = unsupported;
7095
+ this.getSavedInputs = async () => ({});
7096
+ this.resolveConnection = async () => undefined;
7083
7097
  this.registerDelegate = () => {
7084
7098
  return Disposable.None;
7085
7099
  };
7086
7100
  this.setSavedInput = unsupported;
7087
- this.getServerDefinition = unsupported;
7088
- }
7089
- get collections() {
7090
- return unsupported();
7091
- }
7092
- get lazyCollectionState() {
7093
- return unsupported();
7094
- }
7095
- get delegates() {
7096
- return unsupported();
7101
+ this.getServerDefinition = () => constObservable({
7102
+ server: undefined,
7103
+ collection: undefined
7104
+ });
7097
7105
  }
7098
7106
  }
7099
- __decorate([
7100
- Unsupported
7101
- ], McpRegistry.prototype, "collections", null);
7102
- __decorate([
7103
- Unsupported
7104
- ], McpRegistry.prototype, "lazyCollectionState", null);
7105
- __decorate([
7106
- Unsupported
7107
- ], McpRegistry.prototype, "delegates", null);
7108
- __decorate([
7109
- Unsupported
7110
- ], McpRegistry.prototype, "registerCollection", void 0);
7111
7107
  __decorate([
7112
7108
  Unsupported
7113
7109
  ], McpRegistry.prototype, "clearSavedInputs", void 0);
7114
7110
  __decorate([
7115
7111
  Unsupported
7116
7112
  ], McpRegistry.prototype, "editSavedInput", void 0);
7117
- __decorate([
7118
- Unsupported
7119
- ], McpRegistry.prototype, "getSavedInputs", void 0);
7120
- __decorate([
7121
- Unsupported
7122
- ], McpRegistry.prototype, "resolveConnection", void 0);
7123
7113
  __decorate([
7124
7114
  Unsupported
7125
7115
  ], McpRegistry.prototype, "setSavedInput", void 0);
@@ -7263,10 +7253,10 @@ class McpGalleryService {
7263
7253
  this.isEnabled = () => false;
7264
7254
  this.query = unsupported;
7265
7255
  this.getReadme = unsupported;
7266
- this.getMcpServersFromVSCodeGallery = async () => [];
7267
7256
  this.getMcpServersFromGallery = async () => [];
7268
7257
  this.getMcpServer = async () => undefined;
7269
7258
  this.getMcpServerConfiguration = unsupported;
7259
+ this.getMcpServerByName = async () => undefined;
7270
7260
  }
7271
7261
  }
7272
7262
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-api",
3
- "version": "21.6.0",
3
+ "version": "22.0.1",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor",
6
6
  "keywords": [],
@@ -15,13 +15,13 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-base-service-override": "21.6.0",
19
- "@codingame/monaco-vscode-environment-service-override": "21.6.0",
20
- "@codingame/monaco-vscode-extensions-service-override": "21.6.0",
21
- "@codingame/monaco-vscode-files-service-override": "21.6.0",
22
- "@codingame/monaco-vscode-host-service-override": "21.6.0",
23
- "@codingame/monaco-vscode-layout-service-override": "21.6.0",
24
- "@codingame/monaco-vscode-quickaccess-service-override": "21.6.0",
18
+ "@codingame/monaco-vscode-base-service-override": "22.0.1",
19
+ "@codingame/monaco-vscode-environment-service-override": "22.0.1",
20
+ "@codingame/monaco-vscode-extensions-service-override": "22.0.1",
21
+ "@codingame/monaco-vscode-files-service-override": "22.0.1",
22
+ "@codingame/monaco-vscode-host-service-override": "22.0.1",
23
+ "@codingame/monaco-vscode-layout-service-override": "22.0.1",
24
+ "@codingame/monaco-vscode-quickaccess-service-override": "22.0.1",
25
25
  "@vscode/iconv-lite-umd": "0.7.0",
26
26
  "dompurify": "3.2.7",
27
27
  "jschardet": "3.1.4",
package/services.d.ts CHANGED
@@ -97,11 +97,11 @@ export { ILocaleService } from "./vscode/src/vs/workbench/services/localization/
97
97
  export { NoOpNotification, NoOpProgress } from "./vscode/src/vs/platform/notification/common/notification.js";
98
98
  export { NotificationsFilter, NotificationPriority, NeverShowAgainScope } from "./vscode/src/vs/platform/notification/common/notification.js";
99
99
  export type { NotificationMessage, INotificationProperties, INeverShowAgainOptions, INotification, INotificationActions, INotificationProgress, INotificationProgressProperties, INotificationHandle, IPromptChoice, IPromptChoiceWithMenu, IPromptOptions, IStatusMessageOptions } from "./vscode/src/vs/platform/notification/common/notification.js";
100
- export type { IDialogArgs, DialogType, IDialogResult, IConfirmDialogArgs, IInputDialogArgs, IPromptDialogArgs, IBaseDialogOptions, ICheckbox, ICheckboxResult, IConfirmation, IConfirmationResult, IInput, IInputResult, IInputElement, IPrompt, IPromptResult, IPromptBaseButton, IPromptButton, IPromptCancelButton, IPromptResultWithCancel, IPromptWithCustomCancel, IPromptWithDefaultCancel } from "@codingame/monaco-vscode-23b6fb38-5e58-5886-b34b-27abc4f5df02-common/vscode/vs/platform/dialogs/common/dialogs";
101
- export type { IDialogHandler, ICustomDialogOptions, ICustomDialogMarkdown } from "@codingame/monaco-vscode-23b6fb38-5e58-5886-b34b-27abc4f5df02-common/vscode/vs/platform/dialogs/common/dialogs";
100
+ export type { IDialogArgs, DialogType, IDialogResult, IConfirmDialogArgs, IInputDialogArgs, IPromptDialogArgs, IBaseDialogOptions, ICheckbox, ICheckboxResult, IConfirmation, IConfirmationResult, IInput, IInputResult, IInputElement, IPrompt, IPromptResult, IPromptBaseButton, IPromptButton, IPromptCancelButton, IPromptResultWithCancel, IPromptWithCustomCancel, IPromptWithDefaultCancel } from "@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common/vscode/vs/platform/dialogs/common/dialogs";
101
+ export type { IDialogHandler, ICustomDialogOptions, ICustomDialogMarkdown } from "@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common/vscode/vs/platform/dialogs/common/dialogs";
102
102
  export type { IMarkdownString, MarkdownStringTrustedOptions } from "./vscode/src/vs/base/common/htmlContent.js";
103
103
  export { IActivityService } from "./vscode/src/vs/workbench/services/activity/common/activity.service.js";
104
- export type { IBadge } from "@codingame/monaco-vscode-9a5ab9e7-d838-5831-9eb4-e79ea3764dcb-common/vscode/vs/workbench/services/activity/common/activity";
104
+ export type { IBadge } from "@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common/vscode/vs/workbench/services/activity/common/activity";
105
105
  export { IHoverService } from "./vscode/src/vs/platform/hover/browser/hover.service.js";
106
106
  export { IExplorerService } from "./vscode/src/vs/workbench/contrib/files/browser/files.service.js";
107
107
  export { IStatusbarService } from "./vscode/src/vs/workbench/services/statusbar/browser/statusbar.service.js";
@@ -287,7 +287,7 @@ export { IWorkspaceIdentityService } from "./vscode/src/vs/workbench/services/wo
287
287
  export { IChatMarkdownAnchorService } from "./vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.js";
288
288
  export { getBuiltInExtensionTranslationsUris, getExtensionIdProvidingCurrentLocale } from "./l10n.js";
289
289
  export { unsupported } from "./tools.js";
290
- export { IChatEntitlementService } from "./vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.js";
290
+ export { IChatEntitlementService } from "./vscode/src/vs/workbench/services/chat/common/chatEntitlementService.service.js";
291
291
  export { IPromptsService } from "./vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.js";
292
292
  export { ISuggestMemoryService } from "./vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.service.js";
293
293
  export { LanguageConfigurationService } from "./vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js";
package/services.js CHANGED
@@ -88,6 +88,7 @@ import './vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js'
88
88
  import './vscode/src/vs/editor/contrib/wordPartOperations/browser/wordPartOperations.js';
89
89
  import './vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js';
90
90
  import './vscode/src/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js';
91
+ import './vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.contribution.js';
91
92
  import './vscode/src/vs/editor/common/standaloneStrings.js';
92
93
  import './vscode/src/vs/base/browser/ui/codicons/codiconStyles.js';
93
94
  import './vscode/src/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js';
@@ -357,7 +358,7 @@ export { IWorkspaceIdentityService } from './vscode/src/vs/workbench/services/wo
357
358
  export { IChatMarkdownAnchorService } from './vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.js';
358
359
  export { getBuiltInExtensionTranslationsUris, getExtensionIdProvidingCurrentLocale } from './l10n.js';
359
360
  export { unsupported } from './tools.js';
360
- export { IChatEntitlementService } from './vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.js';
361
+ export { IChatEntitlementService } from './vscode/src/vs/workbench/services/chat/common/chatEntitlementService.service.js';
361
362
  export { IPromptsService } from './vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.js';
362
363
  export { ISuggestMemoryService } from './vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.service.js';
363
364
  export { LanguageConfigurationService } from './vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js';
@@ -402,10 +403,10 @@ export { IInlineCompletionsUnificationService } from './vscode/src/vs/workbench/
402
403
  export { IMcpGalleryManifestService } from './vscode/src/vs/platform/mcp/common/mcpGalleryManifest.service.js';
403
404
  export { IDataChannelService } from './vscode/src/vs/platform/dataChannel/common/dataChannel.service.js';
404
405
 
405
- if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.104.2-03fa3823-e9dd-4928-b996-f8f91a2db819") {
406
- throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.104.2-03fa3823-e9dd-4928-b996-f8f91a2db819"}, ${window.monacoVscodeApiBuildId} is already loaded`);
406
+ if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.105.0-1d594809-a20e-4061-aae1-53cfdab8e0ea") {
407
+ throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.105.0-1d594809-a20e-4061-aae1-53cfdab8e0ea"}, ${window.monacoVscodeApiBuildId} is already loaded`);
407
408
  }
408
- window.monacoVscodeApiBuildId = "1.104.2-03fa3823-e9dd-4928-b996-f8f91a2db819";
409
+ window.monacoVscodeApiBuildId = "1.105.0-1d594809-a20e-4061-aae1-53cfdab8e0ea";
409
410
  function registerCommands(options) {
410
411
  function asMenuId(menu) {
411
412
  switch (menu) {
@@ -1,3 +1,3 @@
1
- var productJson = {nameShort:"Code - OSS",nameLong:"Code - OSS",applicationName:"code-oss",dataFolderName:".vscode-oss",win32MutexName:"vscodeoss",licenseName:"MIT",licenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt",serverLicenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt",serverGreeting:[],serverLicense:[],serverLicensePrompt:"",serverApplicationName:"code-server-oss",serverDataFolderName:".vscode-server-oss",tunnelApplicationName:"code-tunnel-oss",win32DirName:"Microsoft Code OSS",win32NameVersion:"Microsoft Code OSS",win32RegValueName:"CodeOSS",win32x64AppId:"{{D77B7E06-80BA-4137-BCF4-654B95CCEBC5}",win32arm64AppId:"{{D1ACE434-89C5-48D1-88D3-E2991DF85475}",win32x64UserAppId:"{{CC6B787D-37A0-49E8-AE24-8559A032BE0C}",win32arm64UserAppId:"{{3AEBF0C8-F733-4AD4-BADE-FDB816D53D7B}",win32AppUserModelId:"Microsoft.CodeOSS",win32ShellNameShort:"C&ode - OSS",win32TunnelServiceMutex:"vscodeoss-tunnelservice",win32TunnelMutex:"vscodeoss-tunnel",darwinBundleIdentifier:"com.visualstudio.code.oss",darwinProfileUUID:"47827DD9-4734-49A0-AF80-7E19B11495CC",darwinProfilePayloadUUID:"CF808BE7-53F3-46C6-A7E2-7EDB98A5E959",linuxIconName:"code-oss",licenseFileName:"LICENSE.txt",reportIssueUrl:"https://github.com/microsoft/vscode/issues/new",nodejsRepository:"https://nodejs.org",urlProtocol:"code-oss",webviewContentExternalBaseUrlTemplate:"https://{{uuid}}.vscode-cdn.net/insider/ef65ac1ba57f57f2a3961bfe94aa20481caca4c6/out/vs/workbench/contrib/webview/browser/pre/",builtInExtensions:[{name:"ms-vscode.js-debug-companion",version:"1.1.3",sha256:"7380a890787452f14b2db7835dfa94de538caf358ebc263f9d46dd68ac52de93",repo:"https://github.com/microsoft/vscode-js-debug-companion",metadata:{id:"99cb0b7f-7354-4278-b8da-6cc79972169d",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}},{name:"ms-vscode.js-debug",version:"1.104.0",sha256:"856db934294bd8b78769dd91c86904c7e35e356bb05b223a9e4d8eb38cb17ae3",repo:"https://github.com/microsoft/vscode-js-debug",metadata:{id:"25629058-ddac-4e17-abba-74678e126c5d",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}},{name:"ms-vscode.vscode-js-profile-table",version:"1.0.10",sha256:"7361748ddf9fd09d8a2ed1f2a2d7376a2cf9aae708692820b799708385c38e08",repo:"https://github.com/microsoft/vscode-js-profile-visualizer",metadata:{id:"7e52b41b-71ad-457b-ab7e-0620f1fc4feb",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}}]};
1
+ var productJson = {nameShort:"Code - OSS",nameLong:"Code - OSS",applicationName:"code-oss",dataFolderName:".vscode-oss",win32MutexName:"vscodeoss",licenseName:"MIT",licenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt",serverLicenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt",serverGreeting:[],serverLicense:[],serverLicensePrompt:"",serverApplicationName:"code-server-oss",serverDataFolderName:".vscode-server-oss",tunnelApplicationName:"code-tunnel-oss",win32DirName:"Microsoft Code OSS",win32NameVersion:"Microsoft Code OSS",win32RegValueName:"CodeOSS",win32x64AppId:"{{D77B7E06-80BA-4137-BCF4-654B95CCEBC5}",win32arm64AppId:"{{D1ACE434-89C5-48D1-88D3-E2991DF85475}",win32x64UserAppId:"{{CC6B787D-37A0-49E8-AE24-8559A032BE0C}",win32arm64UserAppId:"{{3AEBF0C8-F733-4AD4-BADE-FDB816D53D7B}",win32AppUserModelId:"Microsoft.CodeOSS",win32ShellNameShort:"C&ode - OSS",win32TunnelServiceMutex:"vscodeoss-tunnelservice",win32TunnelMutex:"vscodeoss-tunnel",darwinBundleIdentifier:"com.visualstudio.code.oss",darwinProfileUUID:"47827DD9-4734-49A0-AF80-7E19B11495CC",darwinProfilePayloadUUID:"CF808BE7-53F3-46C6-A7E2-7EDB98A5E959",linuxIconName:"code-oss",licenseFileName:"LICENSE.txt",reportIssueUrl:"https://github.com/microsoft/vscode/issues/new",nodejsRepository:"https://nodejs.org",urlProtocol:"code-oss",webviewContentExternalBaseUrlTemplate:"https://{{uuid}}.vscode-cdn.net/insider/ef65ac1ba57f57f2a3961bfe94aa20481caca4c6/out/vs/workbench/contrib/webview/browser/pre/",builtInExtensions:[{name:"ms-vscode.js-debug-companion",version:"1.1.3",sha256:"7380a890787452f14b2db7835dfa94de538caf358ebc263f9d46dd68ac52de93",repo:"https://github.com/microsoft/vscode-js-debug-companion",metadata:{id:"99cb0b7f-7354-4278-b8da-6cc79972169d",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}},{name:"ms-vscode.js-debug",version:"1.105.0",sha256:"0c45b90342e8aafd4ff2963b4006de64208ca58c2fd01fea7a710fe61dcfd12a",repo:"https://github.com/microsoft/vscode-js-debug",metadata:{id:"25629058-ddac-4e17-abba-74678e126c5d",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}},{name:"ms-vscode.vscode-js-profile-table",version:"1.0.10",sha256:"7361748ddf9fd09d8a2ed1f2a2d7376a2cf9aae708692820b799708385c38e08",repo:"https://github.com/microsoft/vscode-js-profile-visualizer",metadata:{id:"7e52b41b-71ad-457b-ab7e-0620f1fc4feb",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}}]};
2
2
 
3
3
  export { productJson as default };
@@ -1011,15 +1011,18 @@ function triggerUpload() {
1011
1011
  setTimeout(() => input.remove());
1012
1012
  }));
1013
1013
  }
1014
+ function sanitizeNotificationText(text) {
1015
+ return text.replace(/`/g, '\'');
1016
+ }
1014
1017
  async function triggerNotification(message, options) {
1015
1018
  const permission = await Notification.requestPermission();
1016
1019
  if (permission !== 'granted') {
1017
1020
  return;
1018
1021
  }
1019
1022
  const disposables = ( new DisposableStore());
1020
- const notification = ( new Notification(message, {
1021
- body: options?.detail,
1022
- requireInteraction: options?.sticky
1023
+ const notification = ( new Notification(sanitizeNotificationText(message), {
1024
+ body: options?.detail ? sanitizeNotificationText(options.detail) : undefined,
1025
+ requireInteraction: options?.sticky,
1023
1026
  }));
1024
1027
  const onClick = new Emitter();
1025
1028
  disposables.add(addDisposableListener(notification, 'click', () => onClick.fire()));
@@ -37,12 +37,20 @@ export interface DomSanitizerConfig {
37
37
  readonly allowedLinkProtocols?: {
38
38
  readonly override?: readonly string[] | "*";
39
39
  };
40
+ /**
41
+ * If set, allows relative paths for links.
42
+ */
43
+ readonly allowRelativeLinkPaths?: boolean;
40
44
  /**
41
45
  * List of allowed protocols for `src` attributes.
42
46
  */
43
47
  readonly allowedMediaProtocols?: {
44
48
  readonly override?: readonly string[] | "*";
45
49
  };
50
+ /**
51
+ * If set, allows relative paths for media (images, videos, etc).
52
+ */
53
+ readonly allowRelativeMediaPaths?: boolean;
46
54
  /**
47
55
  * If set, replaces unsupported tags with their plaintext representation instead of removing them.
48
56
  *
@@ -1,7 +1,6 @@
1
1
 
2
- import { toDisposable, DisposableStore } from '../common/lifecycle.js';
3
2
  import { Schemas } from '../common/network.js';
4
- import { createElement } from './dom.js';
3
+ import { reset } from './dom.js';
5
4
  import dompurify from 'dompurify';
6
5
 
7
6
  const basicMarkupHtmlTags = ( Object.freeze([
@@ -47,6 +46,7 @@ const basicMarkupHtmlTags = ( Object.freeze([
47
46
  'rp',
48
47
  'rt',
49
48
  'ruby',
49
+ 's',
50
50
  'samp',
51
51
  'small',
52
52
  'small',
@@ -92,19 +92,28 @@ const defaultAllowedAttrs = ( Object.freeze([
92
92
  'height',
93
93
  'align',
94
94
  ]));
95
- function addDompurifyHook(hook, cb) {
96
- dompurify.addHook(hook, cb);
97
- return toDisposable(() => dompurify.removeHook(hook));
98
- }
99
- function hookDomPurifyHrefAndSrcSanitizer(allowedLinkProtocols, allowedMediaProtocols) {
100
- const anchor = createElement('a');
101
- function validateLink(value, allowedProtocols) {
102
- if (allowedProtocols === '*') {
95
+ const fakeRelativeUrlProtocol = 'vscode-relative-path';
96
+ function validateLink(value, allowedProtocols) {
97
+ if (allowedProtocols.override === '*') {
98
+ return true;
99
+ }
100
+ try {
101
+ const url = ( new URL(value, fakeRelativeUrlProtocol + '://'));
102
+ if (allowedProtocols.override.includes(url.protocol.replace(/:$/, ''))) {
103
103
  return true;
104
104
  }
105
- anchor.href = value;
106
- return allowedProtocols.includes(anchor.protocol.replace(/:$/, ''));
105
+ if (allowedProtocols.allowRelativePaths
106
+ && url.protocol === fakeRelativeUrlProtocol + ':'
107
+ && !value.trim().toLowerCase().startsWith(fakeRelativeUrlProtocol)) {
108
+ return true;
109
+ }
110
+ return false;
107
111
  }
112
+ catch (e) {
113
+ return false;
114
+ }
115
+ }
116
+ function hookDomPurifyHrefAndSrcSanitizer(allowedLinkProtocols, allowedMediaProtocols) {
108
117
  dompurify.addHook('afterSanitizeAttributes', (node) => {
109
118
  for (const attr of ['href', 'src']) {
110
119
  if (node.hasAttribute(attr)) {
@@ -122,18 +131,16 @@ function hookDomPurifyHrefAndSrcSanitizer(allowedLinkProtocols, allowedMediaProt
122
131
  }
123
132
  }
124
133
  });
125
- return toDisposable(() => dompurify.removeHook('afterSanitizeAttributes'));
126
134
  }
127
135
  const defaultDomPurifyConfig = ( Object.freeze({
128
136
  ALLOWED_TAGS: [...basicMarkupHtmlTags],
129
137
  ALLOWED_ATTR: [...defaultAllowedAttrs],
130
- RETURN_DOM: false,
131
- RETURN_DOM_FRAGMENT: false,
132
- RETURN_TRUSTED_TYPE: true,
133
138
  ALLOW_UNKNOWN_PROTOCOLS: true,
134
139
  }));
135
140
  function sanitizeHtml(untrusted, config) {
136
- const store = ( new DisposableStore());
141
+ return doSanitizeHtml(untrusted, config, 'trusted');
142
+ }
143
+ function doSanitizeHtml(untrusted, config, outputType) {
137
144
  try {
138
145
  const resolvedConfig = { ...defaultDomPurifyConfig };
139
146
  if (config?.allowedTags) {
@@ -173,12 +180,18 @@ function sanitizeHtml(untrusted, config) {
173
180
  }
174
181
  }
175
182
  resolvedConfig.ALLOWED_ATTR = Array.from(allowedAttrNames);
176
- store.add(hookDomPurifyHrefAndSrcSanitizer(config?.allowedLinkProtocols?.override ?? [Schemas.http, Schemas.https], config?.allowedMediaProtocols?.override ?? [Schemas.http, Schemas.https]));
183
+ hookDomPurifyHrefAndSrcSanitizer({
184
+ override: config?.allowedLinkProtocols?.override ?? [Schemas.http, Schemas.https],
185
+ allowRelativePaths: config?.allowRelativeLinkPaths ?? false
186
+ }, {
187
+ override: config?.allowedMediaProtocols?.override ?? [Schemas.http, Schemas.https],
188
+ allowRelativePaths: config?.allowRelativeMediaPaths ?? false
189
+ });
177
190
  if (config?.replaceWithPlaintext) {
178
- store.add(addDompurifyHook('uponSanitizeElement', replaceWithPlainTextHook));
191
+ dompurify.addHook('uponSanitizeElement', replaceWithPlainTextHook);
179
192
  }
180
193
  if (allowedAttrPredicates.size) {
181
- store.add(addDompurifyHook('uponSanitizeAttribute', (node, e) => {
194
+ dompurify.addHook('uponSanitizeAttribute', (node, e) => {
182
195
  const predicate = allowedAttrPredicates.get(e.attrName);
183
196
  if (predicate) {
184
197
  const result = predicate.shouldKeep(node, e);
@@ -193,15 +206,23 @@ function sanitizeHtml(untrusted, config) {
193
206
  else {
194
207
  e.keepAttr = ( allowedAttrNames.has(e.attrName));
195
208
  }
196
- }));
209
+ });
210
+ }
211
+ if (outputType === 'dom') {
212
+ return dompurify.sanitize(untrusted, {
213
+ ...resolvedConfig,
214
+ RETURN_DOM_FRAGMENT: true
215
+ });
216
+ }
217
+ else {
218
+ return dompurify.sanitize(untrusted, {
219
+ ...resolvedConfig,
220
+ RETURN_TRUSTED_TYPE: true
221
+ });
197
222
  }
198
- return dompurify.sanitize(untrusted, {
199
- ...resolvedConfig,
200
- RETURN_TRUSTED_TYPE: true
201
- });
202
223
  }
203
224
  finally {
204
- store.dispose();
225
+ dompurify.removeAllHooks();
205
226
  }
206
227
  }
207
228
  const selfClosingTags = ['area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr'];
@@ -248,7 +269,8 @@ function convertTagToPlaintext(element) {
248
269
  return fragment;
249
270
  }
250
271
  function safeSetInnerHtml(node, untrusted, config) {
251
- node.innerHTML = sanitizeHtml(untrusted, config);
272
+ const fragment = doSanitizeHtml(untrusted, config, 'dom');
273
+ reset(node, fragment);
252
274
  }
253
275
 
254
276
  export { basicMarkupHtmlTags, convertTagToPlaintext, defaultAllowedAttrs, safeSetInnerHtml, sanitizeHtml };