@codingame/monaco-vscode-api 16.1.1 → 17.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (604) hide show
  1. package/missing-services.js +105 -0
  2. package/monaco.d.ts +2 -2
  3. package/package.json +10 -9
  4. package/services.d.ts +4 -4
  5. package/services.js +3 -3
  6. package/vscode/product.json.js +3 -0
  7. package/vscode/src/vs/base/browser/dom.d.ts +1 -0
  8. package/vscode/src/vs/base/browser/dom.js +6 -1
  9. package/vscode/src/vs/base/browser/mouseEvent.d.ts +2 -0
  10. package/vscode/src/vs/base/browser/mouseEvent.js +1 -0
  11. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  12. package/vscode/src/vs/base/browser/ui/dropdown/dropdown.d.ts +2 -3
  13. package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +1 -1
  14. package/vscode/src/vs/base/browser/ui/hover/hover.d.ts +1 -0
  15. package/vscode/src/vs/base/browser/ui/hover/hoverDelegate2.js +6 -1
  16. package/vscode/src/vs/base/browser/ui/list/listPaging.d.ts +2 -1
  17. package/vscode/src/vs/base/browser/ui/severityIcon/media/severityIcon.css +1 -3
  18. package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +5 -1
  19. package/vscode/src/vs/base/browser/ui/toggle/toggle.js +17 -4
  20. package/vscode/src/vs/base/common/arrays.d.ts +1 -0
  21. package/vscode/src/vs/base/common/arrays.js +5 -2
  22. package/vscode/src/vs/base/common/async.js +9 -2
  23. package/vscode/src/vs/base/common/codicons.d.ts +5 -0
  24. package/vscode/src/vs/base/common/codiconsLibrary.d.ts +5 -0
  25. package/vscode/src/vs/base/common/codiconsLibrary.js +5 -0
  26. package/vscode/src/vs/base/common/color.d.ts +1 -0
  27. package/vscode/src/vs/base/common/color.js +10 -0
  28. package/vscode/src/vs/base/common/comparers.d.ts +2 -2
  29. package/vscode/src/vs/base/common/decorators.d.ts +1 -1
  30. package/vscode/src/vs/base/common/glob.d.ts +3 -0
  31. package/vscode/src/vs/base/common/glob.js +10 -1
  32. package/vscode/src/vs/base/common/marshallingIds.d.ts +2 -1
  33. package/vscode/src/vs/base/common/marshallingIds.js +1 -0
  34. package/vscode/src/vs/base/common/observableInternal/autorun.d.ts +6 -8
  35. package/vscode/src/vs/base/common/observableInternal/autorun.js +15 -11
  36. package/vscode/src/vs/base/common/observableInternal/base.d.ts +0 -10
  37. package/vscode/src/vs/base/common/observableInternal/changeTracker.d.ts +23 -0
  38. package/vscode/src/vs/base/common/observableInternal/changeTracker.js +30 -0
  39. package/vscode/src/vs/base/common/observableInternal/derived.d.ts +18 -13
  40. package/vscode/src/vs/base/common/observableInternal/derived.js +47 -18
  41. package/vscode/src/vs/base/common/observableInternal/index.d.ts +6 -5
  42. package/vscode/src/vs/base/common/observableInternal/index.js +2 -2
  43. package/vscode/src/vs/base/common/observableInternal/logging/logging.d.ts +2 -2
  44. package/vscode/src/vs/base/common/observableInternal/promise.d.ts +28 -0
  45. package/vscode/src/vs/base/common/observableInternal/promise.js +65 -0
  46. package/vscode/src/vs/base/common/observableInternal/reducer.d.ts +16 -0
  47. package/vscode/src/vs/base/common/observableInternal/reducer.js +36 -0
  48. package/vscode/src/vs/base/common/observableInternal/utils.d.ts +2 -0
  49. package/vscode/src/vs/base/common/observableInternal/utils.js +19 -11
  50. package/vscode/src/vs/base/common/product.d.ts +5 -0
  51. package/vscode/src/vs/base/common/sseParser.d.ts +26 -0
  52. package/vscode/src/vs/base/common/sseParser.js +134 -0
  53. package/vscode/src/vs/base/common/stopwatch.js +2 -2
  54. package/vscode/src/vs/base/common/strings.d.ts +1 -0
  55. package/vscode/src/vs/base/common/strings.js +8 -19
  56. package/vscode/src/vs/base/common/ternarySearchTree.d.ts +1 -0
  57. package/vscode/src/vs/base/common/ternarySearchTree.js +55 -13
  58. package/vscode/src/vs/editor/browser/config/editorConfiguration.d.ts +1 -0
  59. package/vscode/src/vs/editor/browser/config/editorConfiguration.js +3 -1
  60. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.css +1 -1
  61. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +6 -3
  62. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +86 -54
  63. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.d.ts +0 -1
  64. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +12 -8
  65. package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.d.ts +0 -1
  66. package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +9 -6
  67. package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.js +3 -3
  68. package/vscode/src/vs/editor/browser/controller/mouseTarget.js +2 -2
  69. package/vscode/src/vs/editor/browser/editorBrowser.d.ts +1 -1
  70. package/vscode/src/vs/editor/browser/gpu/objectCollectionBuffer.d.ts +1 -1
  71. package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +2 -0
  72. package/vscode/src/vs/editor/browser/services/hoverService/hover.css +8 -0
  73. package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.d.ts +1 -0
  74. package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +6 -1
  75. package/vscode/src/vs/editor/browser/view/renderingContext.d.ts +1 -0
  76. package/vscode/src/vs/editor/browser/view/renderingContext.js +3 -0
  77. package/vscode/src/vs/editor/browser/view/viewLayer.d.ts +3 -1
  78. package/vscode/src/vs/editor/browser/view/viewLayer.js +13 -6
  79. package/vscode/src/vs/editor/browser/view/viewOverlays.js +4 -1
  80. package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +4 -5
  81. package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +4 -2
  82. package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.d.ts +0 -1
  83. package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.js +6 -6
  84. package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +3 -0
  85. package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.js +2 -2
  86. package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +1 -1
  87. package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +1 -1
  88. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +5 -2
  89. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +15 -1
  90. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +7 -5
  91. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.d.ts +1 -1
  92. package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +10 -8
  93. package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +19 -15
  94. package/vscode/src/vs/editor/common/codecs/frontMatterCodec/tokens/index.d.ts +5 -0
  95. package/vscode/src/vs/editor/common/codecs/simpleCodec/tokens/index.d.ts +20 -0
  96. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +24 -23
  97. package/vscode/src/vs/editor/common/config/editorOptions.js +1 -2
  98. package/vscode/src/vs/editor/common/core/columnRange.d.ts +11 -0
  99. package/vscode/src/vs/editor/common/core/columnRange.js +32 -0
  100. package/vscode/src/vs/editor/common/core/offsetEdit.d.ts +1 -0
  101. package/vscode/src/vs/editor/common/core/offsetEdit.js +10 -0
  102. package/vscode/src/vs/editor/common/core/offsetRange.d.ts +1 -0
  103. package/vscode/src/vs/editor/common/core/offsetRange.js +3 -0
  104. package/vscode/src/vs/editor/common/core/positionToOffset.d.ts +15 -3
  105. package/vscode/src/vs/editor/common/core/positionToOffset.js +45 -11
  106. package/vscode/src/vs/editor/common/core/rangeSingleLine.d.ts +9 -0
  107. package/vscode/src/vs/editor/common/core/rangeSingleLine.js +27 -0
  108. package/vscode/src/vs/editor/common/core/textEdit.d.ts +1 -0
  109. package/vscode/src/vs/editor/common/core/textEdit.js +41 -0
  110. package/vscode/src/vs/editor/common/editorCommon.d.ts +1 -0
  111. package/vscode/src/vs/editor/common/languages/modesRegistry.d.ts +2 -2
  112. package/vscode/src/vs/editor/common/languages/modesRegistry.js +4 -2
  113. package/vscode/src/vs/editor/common/languages.d.ts +22 -1
  114. package/vscode/src/vs/editor/common/languages.js +7 -1
  115. package/vscode/src/vs/editor/common/model/textModel.d.ts +5 -1
  116. package/vscode/src/vs/editor/common/model/textModel.js +80 -18
  117. package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +1 -1
  118. package/vscode/src/vs/editor/common/model.d.ts +2 -1
  119. package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +5 -0
  120. package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +7 -1
  121. package/vscode/src/vs/editor/common/textModelEvents.d.ts +11 -0
  122. package/vscode/src/vs/editor/common/textModelEvents.js +14 -1
  123. package/vscode/src/vs/editor/common/tokens/common.d.ts +7 -0
  124. package/vscode/src/vs/editor/common/tokens/common.js +18 -0
  125. package/vscode/src/vs/editor/common/tokens/contiguousTokensEditing.d.ts +1 -1
  126. package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +1 -0
  127. package/vscode/src/vs/editor/common/tokens/lineTokens.js +3 -0
  128. package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.d.ts +2 -0
  129. package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +20 -0
  130. package/vscode/src/vs/editor/common/tokens/sparseTokensStore.d.ts +2 -1
  131. package/vscode/src/vs/editor/common/tokens/sparseTokensStore.js +9 -4
  132. package/vscode/src/vs/editor/common/tokens/tokenArray.d.ts +1 -0
  133. package/vscode/src/vs/editor/common/tokens/tokenArray.js +4 -0
  134. package/vscode/src/vs/editor/common/tokens/tokenWithTextArray.d.ts +25 -0
  135. package/vscode/src/vs/editor/common/tokens/tokenWithTextArray.js +73 -0
  136. package/vscode/src/vs/editor/common/viewLayout/lineHeights.d.ts +35 -0
  137. package/vscode/src/vs/editor/common/viewLayout/lineHeights.js +339 -0
  138. package/vscode/src/vs/editor/common/viewLayout/linesLayout.d.ts +8 -6
  139. package/vscode/src/vs/editor/common/viewLayout/linesLayout.js +42 -49
  140. package/vscode/src/vs/editor/common/viewLayout/viewLayout.d.ts +6 -3
  141. package/vscode/src/vs/editor/common/viewLayout/viewLayout.js +16 -5
  142. package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +1 -0
  143. package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +44 -7
  144. package/vscode/src/vs/editor/common/viewModel.d.ts +5 -0
  145. package/vscode/src/vs/editor/common/viewModelEventDispatcher.d.ts +11 -3
  146. package/vscode/src/vs/editor/common/viewModelEventDispatcher.js +14 -1
  147. package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +20 -14
  148. package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +3 -1
  149. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +3 -1
  150. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.d.ts +1 -1
  151. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +4 -3
  152. package/vscode/src/vs/editor/contrib/find/browser/findController.d.ts +1 -3
  153. package/vscode/src/vs/editor/contrib/find/browser/findController.js +5 -11
  154. package/vscode/src/vs/editor/contrib/find/browser/findWidget.d.ts +1 -7
  155. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +2 -15
  156. package/vscode/src/vs/editor/contrib/folding/browser/folding.d.ts +1 -1
  157. package/vscode/src/vs/editor/contrib/folding/browser/folding.js +24 -23
  158. package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
  159. package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
  160. package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
  161. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
  162. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
  163. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
  164. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  165. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
  166. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
  167. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
  168. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
  169. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +5 -5
  170. package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
  171. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
  172. package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
  173. package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
  174. package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
  175. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +14 -12
  176. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
  177. package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  178. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +21 -21
  179. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
  180. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.d.ts +0 -4
  181. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +29 -41
  182. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +11 -11
  183. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.d.ts +1 -0
  184. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +11 -6
  185. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
  186. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +6 -6
  187. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +1 -2
  188. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.d.ts +4 -4
  189. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.js +1 -2
  190. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.d.ts +10 -0
  191. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.js +31 -2
  192. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.d.ts +1 -1
  193. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +16 -16
  194. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +156 -202
  195. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +21 -49
  196. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +135 -431
  197. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEdit.d.ts +3 -3
  198. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +98 -0
  199. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +487 -0
  200. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +34 -32
  201. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +141 -132
  202. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.d.ts +1 -1
  203. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.js +2 -2
  204. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.d.ts +26 -0
  205. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.d.ts +2 -7
  206. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +21 -20
  207. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +19 -7
  208. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.js +1 -1
  209. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +17 -9
  210. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.d.ts +5 -13
  211. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +139 -188
  212. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.d.ts +8 -6
  213. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js +9 -3
  214. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.d.ts +4 -4
  215. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +6 -6
  216. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsNewUsers.d.ts +23 -0
  217. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsNewUsers.js +157 -0
  218. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts +2 -0
  219. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +37 -20
  220. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.d.ts +3 -2
  221. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +3 -4
  222. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.d.ts +6 -1
  223. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.js +28 -5
  224. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.d.ts +21 -0
  225. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +215 -0
  226. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.js +0 -1
  227. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +0 -1
  228. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +2 -2
  229. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.d.ts +1 -3
  230. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +3 -4
  231. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +22 -21
  232. package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
  233. package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  234. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
  235. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
  236. package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
  237. package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
  238. package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
  239. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  240. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
  241. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +17 -17
  242. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  243. package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
  244. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +23 -49
  245. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
  246. package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
  247. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
  248. package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  249. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  250. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +8 -0
  251. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +1 -1
  252. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +2 -2
  253. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.d.ts +1 -0
  254. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +24 -14
  255. package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
  256. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
  257. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +19 -18
  258. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
  259. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
  260. package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
  261. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  262. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  263. package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  264. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +5 -10
  265. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
  266. package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  267. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  268. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
  269. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
  270. package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.js +1 -1
  271. package/vscode/src/vs/editor/standalone/browser/standaloneServices.d.ts +2 -2
  272. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +2 -2
  273. package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
  274. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +3 -0
  275. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +23 -14
  276. package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +2 -0
  277. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +17 -3
  278. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +6 -1
  279. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.d.ts +2 -1
  280. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.service.d.ts +2 -1
  281. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
  282. package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
  283. package/vscode/src/vs/platform/actions/common/actions.d.ts +3 -1
  284. package/vscode/src/vs/platform/actions/common/actions.js +2 -0
  285. package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
  286. package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
  287. package/vscode/src/vs/platform/clipboard/browser/clipboardService.d.ts +1 -0
  288. package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +3 -0
  289. package/vscode/src/vs/platform/clipboard/common/clipboardService.service.d.ts +1 -0
  290. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +15 -13
  291. package/vscode/src/vs/platform/configuration/common/configurations.js +1 -1
  292. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  293. package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
  294. package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
  295. package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
  296. package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
  297. package/vscode/src/vs/platform/dnd/browser/dnd.d.ts +5 -0
  298. package/vscode/src/vs/platform/dnd/browser/dnd.js +6 -2
  299. package/vscode/src/vs/platform/editor/common/editor.d.ts +1 -0
  300. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +8 -2
  301. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +94 -4
  302. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +3 -2
  303. package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.d.ts +3 -2
  304. package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +10 -7
  305. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
  306. package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +1 -1
  307. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.d.ts +0 -1
  308. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +10 -11
  309. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
  310. package/vscode/src/vs/platform/extensions/common/extensions.d.ts +1 -0
  311. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +7 -6
  312. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +9 -8
  313. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
  314. package/vscode/src/vs/platform/files/common/files.js +6 -6
  315. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  316. package/vscode/src/vs/platform/jsonschemas/common/jsonContributionRegistry.js +5 -4
  317. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
  318. package/vscode/src/vs/platform/label/common/label.service.d.ts +1 -1
  319. package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
  320. package/vscode/src/vs/platform/list/browser/listService.d.ts +1 -1
  321. package/vscode/src/vs/platform/list/browser/listService.js +27 -27
  322. package/vscode/src/vs/platform/log/common/log.js +6 -6
  323. package/vscode/src/vs/platform/markers/common/markerService.d.ts +2 -7
  324. package/vscode/src/vs/platform/markers/common/markerService.js +5 -5
  325. package/vscode/src/vs/platform/markers/common/markers.d.ts +7 -0
  326. package/vscode/src/vs/platform/markers/common/markers.js +6 -6
  327. package/vscode/src/vs/platform/markers/common/markers.service.d.ts +2 -7
  328. package/vscode/src/vs/platform/native/common/native.d.ts +168 -0
  329. package/vscode/src/vs/platform/notification/common/notification.d.ts +6 -2
  330. package/vscode/src/vs/platform/notification/common/notification.js +3 -2
  331. package/vscode/src/vs/platform/notification/common/notification.service.d.ts +2 -3
  332. package/vscode/src/vs/platform/product/common/product.js +7 -90
  333. package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +4 -19
  334. package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +6 -3
  335. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +33 -10
  336. package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
  337. package/vscode/src/vs/platform/quickinput/browser/quickInputBox.d.ts +2 -0
  338. package/vscode/src/vs/platform/quickinput/browser/quickInputBox.js +6 -0
  339. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +25 -18
  340. package/vscode/src/vs/platform/quickinput/browser/quickInputTree.d.ts +5 -5
  341. package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +58 -43
  342. package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  343. package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +1 -1
  344. package/vscode/src/vs/platform/registry/common/platform.js +9 -1
  345. package/vscode/src/vs/platform/request/common/request.d.ts +1 -1
  346. package/vscode/src/vs/platform/request/common/request.js +18 -18
  347. package/vscode/src/vs/platform/request/common/request.service.d.ts +1 -1
  348. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
  349. package/vscode/src/vs/platform/terminal/common/terminal.d.ts +14 -1
  350. package/vscode/src/vs/platform/terminal/common/terminal.js +14 -1
  351. package/vscode/src/vs/platform/theme/browser/defaultStyles.d.ts +1 -2
  352. package/vscode/src/vs/platform/theme/browser/defaultStyles.js +4 -2
  353. package/vscode/src/vs/platform/theme/common/colorUtils.d.ts +7 -1
  354. package/vscode/src/vs/platform/theme/common/colorUtils.js +12 -4
  355. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
  356. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
  357. package/vscode/src/vs/platform/theme/common/colors/editorColors.js +94 -94
  358. package/vscode/src/vs/platform/theme/common/colors/inputColors.d.ts +2 -0
  359. package/vscode/src/vs/platform/theme/common/colors/inputColors.js +49 -47
  360. package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
  361. package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
  362. package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
  363. package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
  364. package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
  365. package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
  366. package/vscode/src/vs/platform/theme/common/iconRegistry.js +10 -8
  367. package/vscode/src/vs/platform/theme/common/themeService.d.ts +0 -8
  368. package/vscode/src/vs/platform/theme/common/themeService.js +4 -3
  369. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  370. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
  371. package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +1 -1
  372. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
  373. package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +2 -2
  374. package/vscode/src/vs/platform/window/common/window.d.ts +4 -0
  375. package/vscode/src/vs/platform/window/common/window.js +2 -1
  376. package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
  377. package/vscode/src/vs/platform/workspaces/common/workspaces.service.d.ts +2 -2
  378. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +27 -20
  379. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +54 -19
  380. package/vscode/src/vs/workbench/api/common/extHost.protocol.js +2 -0
  381. package/vscode/src/vs/workbench/api/common/extHostAiSettingsSearch.d.ts +14 -0
  382. package/vscode/src/vs/workbench/api/common/extHostAiSettingsSearch.js +38 -0
  383. package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +1 -0
  384. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -1
  385. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +30 -17
  386. package/vscode/src/vs/workbench/api/common/extHostCodeMapper.js +2 -0
  387. package/vscode/src/vs/workbench/api/common/extHostCommands.d.ts +0 -1
  388. package/vscode/src/vs/workbench/api/common/extHostCommands.js +4 -2
  389. package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
  390. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
  391. package/vscode/src/vs/workbench/api/common/extHostExtensionService.d.ts +2 -0
  392. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +15 -4
  393. package/vscode/src/vs/workbench/api/common/extHostLabelService.d.ts +1 -1
  394. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +4 -0
  395. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +31 -6
  396. package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.d.ts +2 -3
  397. package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +60 -14
  398. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.d.ts +1 -1
  399. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +15 -9
  400. package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
  401. package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +4 -3
  402. package/vscode/src/vs/workbench/api/common/extHostMcp.js +279 -82
  403. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
  404. package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +3 -0
  405. package/vscode/src/vs/workbench/api/common/extHostQuickDiff.d.ts +2 -1
  406. package/vscode/src/vs/workbench/api/common/extHostQuickDiff.js +4 -2
  407. package/vscode/src/vs/workbench/api/common/extHostRequireInterceptor.d.ts +1 -1
  408. package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +1 -0
  409. package/vscode/src/vs/workbench/api/common/extHostSCM.js +21 -0
  410. package/vscode/src/vs/workbench/api/common/extHostSearch.js +1 -1
  411. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
  412. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
  413. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
  414. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
  415. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
  416. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +27 -9
  417. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +201 -29
  418. package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +67 -27
  419. package/vscode/src/vs/workbench/api/common/extHostTypes.js +79 -28
  420. package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
  421. package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +7 -4
  422. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +34 -9
  423. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
  424. package/vscode/src/vs/workbench/api/worker/extHostExtensionService.d.ts +1 -0
  425. package/vscode/src/vs/workbench/api/worker/extHostExtensionService.js +3 -0
  426. package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
  427. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
  428. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.d.ts +1 -1
  429. package/vscode/src/vs/workbench/common/configuration.js +10 -16
  430. package/vscode/src/vs/workbench/common/contextkeys.d.ts +3 -0
  431. package/vscode/src/vs/workbench/common/contextkeys.js +73 -71
  432. package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
  433. package/vscode/src/vs/workbench/common/editor.d.ts +13 -9
  434. package/vscode/src/vs/workbench/common/editor.js +4 -4
  435. package/vscode/src/vs/workbench/common/theme.js +160 -160
  436. package/vscode/src/vs/workbench/common/views.js +4 -4
  437. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +164 -147
  438. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
  439. package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +2 -2
  440. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +2 -2
  441. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.d.ts +1 -1
  442. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +15 -14
  443. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.d.ts +245 -0
  444. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +435 -0
  445. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +1 -1
  446. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +6 -9
  447. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +51 -49
  448. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +19 -26
  449. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +16 -23
  450. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +1 -1
  451. package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.d.ts +2 -2
  452. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.d.ts +585 -0
  453. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +1179 -0
  454. package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.d.ts +116 -0
  455. package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +211 -0
  456. package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +19 -6
  457. package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +4 -4
  458. package/vscode/src/vs/workbench/contrib/chat/common/chatTransferService.service.d.ts +3 -1
  459. package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +1 -2
  460. package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.service.d.ts +2 -7
  461. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.d.ts +1 -1
  462. package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +2 -3
  463. package/vscode/src/vs/workbench/contrib/chat/common/constants.js +12 -4
  464. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +33 -5
  465. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +14 -3
  466. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +18 -3
  467. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +6 -6
  468. package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.d.ts +4 -0
  469. package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +6 -0
  470. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +3 -1
  471. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/index.d.ts +3 -0
  472. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +14 -4
  473. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/types.d.ts +28 -1
  474. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/types.service.d.ts +10 -4
  475. package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.d.ts +8 -25
  476. package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +11 -97
  477. package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.d.ts +0 -3
  478. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
  479. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
  480. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
  481. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
  482. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
  483. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.d.ts +1 -1
  484. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
  485. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  486. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
  487. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  488. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
  489. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
  490. package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.d.ts +1 -1
  491. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  492. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
  493. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
  494. package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +1 -1
  495. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +64 -64
  496. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.d.ts +171 -0
  497. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +85 -0
  498. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +2 -3
  499. package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.d.ts +10 -0
  500. package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +127 -0
  501. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  502. package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +3 -3
  503. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
  504. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
  505. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
  506. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  507. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
  508. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +2 -2
  509. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +3 -1
  510. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  511. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  512. package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryTypes.service.d.ts +1 -0
  513. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +19 -8
  514. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +12 -10
  515. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
  516. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +2 -2
  517. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +8 -4
  518. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +16 -1
  519. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.d.ts +1 -1
  520. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.service.d.ts +1 -1
  521. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.d.ts +1 -1
  522. package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +2 -2
  523. package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.service.d.ts +4 -1
  524. package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.d.ts +11 -3
  525. package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.js +77 -16
  526. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  527. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  528. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  529. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
  530. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
  531. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
  532. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +3 -2
  533. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
  534. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
  535. package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +1 -1
  536. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +2 -2
  537. package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +1 -1
  538. package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.service.d.ts +1 -1
  539. package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.d.ts +17 -0
  540. package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.js +10 -0
  541. package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.service.d.ts +13 -0
  542. package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.service.js +6 -0
  543. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverExpression.d.ts +2 -0
  544. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverExpression.js +61 -12
  545. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.d.ts +3 -2
  546. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +25 -29
  547. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +4 -1
  548. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.d.ts +1 -0
  549. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
  550. package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
  551. package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +2 -2
  552. package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.service.d.ts +1 -1
  553. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.service.d.ts +1 -1
  554. package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts +1 -1
  555. package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +3 -2
  556. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +84 -84
  557. package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +4 -1
  558. package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
  559. package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +2 -4
  560. package/vscode/src/vs/workbench/services/localization/common/locale.service.d.ts +1 -1
  561. package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
  562. package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.d.ts +1 -0
  563. package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.js +2 -0
  564. package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
  565. package/vscode/src/vs/workbench/services/output/common/output.js +6 -4
  566. package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +1 -1
  567. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
  568. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
  569. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
  570. package/vscode/src/vs/workbench/services/search/common/search.d.ts +2 -1
  571. package/vscode/src/vs/workbench/services/search/common/searchExtTypes.d.ts +5 -0
  572. package/vscode/src/vs/workbench/services/search/common/searchExtTypes.js +6 -1
  573. package/vscode/src/vs/workbench/services/search/common/textSearchManager.d.ts +2 -2
  574. package/vscode/src/vs/workbench/services/search/common/textSearchManager.js +31 -23
  575. package/vscode/src/vs/workbench/services/textfile/common/encoding.d.ts +64 -0
  576. package/vscode/src/vs/workbench/services/textfile/common/encoding.js +560 -0
  577. package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +165 -0
  578. package/vscode/src/vs/workbench/services/textfile/common/textfiles.js +74 -0
  579. package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.d.ts +12 -2
  580. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
  581. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
  582. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +12 -12
  583. package/vscode/src/vs/workbench/services/workspaces/common/workspaceEditing.service.d.ts +1 -1
  584. package/vscode-dts/vscode.d.ts +204 -9
  585. package/vscode-dts/vscode.proposed.aiSettingsSearch.d.ts +30 -0
  586. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +18 -16
  587. package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +84 -5
  588. package/vscode-dts/vscode.proposed.chatProvider.d.ts +18 -16
  589. package/vscode-dts/vscode.proposed.chatStatusItem.d.ts +1 -1
  590. package/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts +1 -1
  591. package/vscode-dts/vscode.proposed.contribDebugCreateConfiguration.d.ts +1 -1
  592. package/vscode-dts/vscode.proposed.d.ts +2 -2
  593. package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +2 -2
  594. package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +46 -8
  595. package/vscode-dts/vscode.proposed.languageModelDataPart.d.ts +106 -16
  596. package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +2 -0
  597. package/vscode-dts/vscode.proposed.mcpConfigurationProvider.d.ts +115 -21
  598. package/vscode-dts/vscode.proposed.quickDiffProvider.d.ts +7 -3
  599. package/vscode-dts/vscode.proposed.textSearchProvider2.d.ts +23 -1
  600. package/vscode-dts/vscode.proposed.toolProgress.d.ts +25 -0
  601. package/vscode-dts/vscode.proposed.tunnelFactory.d.ts +1 -1
  602. package/workbench.d.ts +1 -1
  603. package/vscode-dts/vscode.proposed.languageModelToolsForAgent.d.ts +0 -8
  604. package/vscode-dts/vscode.proposed.textDocumentEncoding.d.ts +0 -170
@@ -1,6 +1,6 @@
1
1
 
2
- import { URI } from '../../../../base/common/uri.js';
3
2
  import { Schemas } from '../../../../base/common/network.js';
3
+ import { URI } from '../../../../base/common/uri.js';
4
4
  import { stringifyPromptElementJSON } from './tools/promptTsxTypes.js';
5
5
 
6
6
  var ToolDataSource;
@@ -18,7 +18,10 @@ function isToolInvocationContext(obj) {
18
18
  return typeof obj === 'object' && typeof obj.sessionId === 'string';
19
19
  }
20
20
  function isToolResultInputOutputDetails(obj) {
21
- return typeof obj === 'object' && typeof obj?.input === 'string' && typeof obj?.output === 'string';
21
+ return typeof obj === 'object' && typeof obj?.input === 'string' && (typeof obj?.output === 'string' || Array.isArray(obj?.output));
22
+ }
23
+ function toolResultHasBuffers(result) {
24
+ return ( result.content.some(part => part.kind === 'data'));
22
25
  }
23
26
  function stringifyPromptTsxPart(part) {
24
27
  return stringifyPromptElementJSON(part.value);
@@ -29,5 +32,13 @@ function createToolInputUri(toolOrId) {
29
32
  }
30
33
  return ( URI.from({ scheme: Schemas.inMemory, path: `/lm/tool/${toolOrId}/tool_input.json` }));
31
34
  }
35
+ function createToolSchemaUri(toolOrId) {
36
+ if (typeof toolOrId !== 'string') {
37
+ toolOrId = toolOrId.id;
38
+ }
39
+ return ( URI.from(
40
+ { scheme: Schemas.vscode, authority: 'schemas', path: `/lm/tool/${toolOrId}` }
41
+ ));
42
+ }
32
43
 
33
- export { ToolDataSource, createToolInputUri, isToolInvocationContext, isToolResultInputOutputDetails, stringifyPromptTsxPart };
44
+ export { ToolDataSource, createToolInputUri, createToolSchemaUri, isToolInvocationContext, isToolResultInputOutputDetails, stringifyPromptTsxPart, toolResultHasBuffers };
@@ -20,6 +20,11 @@ export interface IChatMessageImagePart {
20
20
  type: "image_url";
21
21
  value: IChatImageURLPart;
22
22
  }
23
+ export interface IChatMessageExtraDataPart {
24
+ type: "extra_data";
25
+ kind: string;
26
+ data: any;
27
+ }
23
28
  export interface IChatImageURLPart {
24
29
  mimeType: ChatImageMimeType;
25
30
  data: VSBuffer;
@@ -38,10 +43,10 @@ export declare enum ImageDetailLevel {
38
43
  export interface IChatMessageToolResultPart {
39
44
  type: "tool_result";
40
45
  toolCallId: string;
41
- value: (IChatResponseTextPart | IChatResponsePromptTsxPart)[];
46
+ value: (IChatResponseTextPart | IChatResponsePromptTsxPart | IChatResponseDataPart)[];
42
47
  isError?: boolean;
43
48
  }
44
- export type IChatMessagePart = IChatMessageTextPart | IChatMessageToolResultPart | IChatResponseToolUsePart | IChatMessageImagePart;
49
+ export type IChatMessagePart = IChatMessageTextPart | IChatMessageToolResultPart | IChatResponseToolUsePart | IChatMessageImagePart | IChatMessageExtraDataPart;
45
50
  export interface IChatMessage {
46
51
  readonly name?: string | undefined;
47
52
  readonly role: ChatMessageRole;
@@ -55,13 +60,17 @@ export interface IChatResponsePromptTsxPart {
55
60
  type: "prompt_tsx";
56
61
  value: unknown;
57
62
  }
63
+ export interface IChatResponseDataPart {
64
+ type: "data";
65
+ value: IChatImageURLPart;
66
+ }
58
67
  export interface IChatResponseToolUsePart {
59
68
  type: "tool_use";
60
69
  name: string;
61
70
  toolCallId: string;
62
71
  parameters: any;
63
72
  }
64
- export type IChatResponsePart = IChatResponseTextPart | IChatResponseToolUsePart;
73
+ export type IChatResponsePart = IChatResponseTextPart | IChatResponseToolUsePart | IChatResponseDataPart;
65
74
  export interface IChatResponseFragment {
66
75
  index: number;
67
76
  part: IChatResponsePart;
@@ -72,12 +81,18 @@ export interface ILanguageModelChatMetadata {
72
81
  readonly id: string;
73
82
  readonly vendor: string;
74
83
  readonly version: string;
84
+ readonly description?: string;
85
+ readonly cost?: string;
75
86
  readonly family: string;
76
87
  readonly maxInputTokens: number;
77
88
  readonly maxOutputTokens: number;
78
89
  readonly targetExtensions?: string[];
79
90
  readonly isDefault?: boolean;
80
91
  readonly isUserSelectable?: boolean;
92
+ readonly modelPickerCategory: {
93
+ label: string;
94
+ order: number;
95
+ };
81
96
  readonly auth?: {
82
97
  readonly providerLabel: string;
83
98
  readonly accountLabel?: string;
@@ -37,14 +37,14 @@ const languageModelType = {
37
37
  properties: {
38
38
  vendor: {
39
39
  type: 'string',
40
- description: ( localize(4991, "A globally unique vendor of language models."))
40
+ description: ( localize(5061, "A globally unique vendor of language models."))
41
41
  }
42
42
  }
43
43
  };
44
44
  const languageModelExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
45
45
  extensionPoint: 'languageModels',
46
46
  jsonSchema: {
47
- description: ( localize(4992, "Contribute language models of a specific vendor.")),
47
+ description: ( localize(5062, "Contribute language models of a specific vendor.")),
48
48
  oneOf: [
49
49
  languageModelType,
50
50
  {
@@ -74,24 +74,24 @@ let LanguageModelsService = class LanguageModelsService {
74
74
  this._vendors.clear();
75
75
  for (const extension of extensions) {
76
76
  if (!isProposedApiEnabled(extension.description, 'chatProvider')) {
77
- extension.collector.error(( localize(4993, "This contribution point requires the 'chatProvider' proposal.")));
77
+ extension.collector.error(( localize(5063, "This contribution point requires the 'chatProvider' proposal.")));
78
78
  continue;
79
79
  }
80
80
  for (const item of Iterable.wrap(extension.value)) {
81
81
  if (( this._vendors.has(item.vendor))) {
82
82
  extension.collector.error(( localize(
83
- 4994,
83
+ 5064,
84
84
  "The vendor '{0}' is already registered and cannot be registered twice",
85
85
  item.vendor
86
86
  )));
87
87
  continue;
88
88
  }
89
89
  if (isFalsyOrWhitespace(item.vendor)) {
90
- extension.collector.error(( localize(4995, "The vendor field cannot be empty.")));
90
+ extension.collector.error(( localize(5065, "The vendor field cannot be empty.")));
91
91
  continue;
92
92
  }
93
93
  if (item.vendor.trim() !== item.vendor) {
94
- extension.collector.error(( localize(4996, "The vendor field cannot start or end with whitespace.")));
94
+ extension.collector.error(( localize(5066, "The vendor field cannot start or end with whitespace.")));
95
95
  continue;
96
96
  }
97
97
  this._vendors.add(item.vendor);
@@ -0,0 +1,4 @@
1
+ export declare const DEFAULT_MODEL_PICKER_CATEGORY: {
2
+ label: string;
3
+ order: number;
4
+ };
@@ -0,0 +1,6 @@
1
+
2
+ import { localize } from '../../../../../nls.js';
3
+
4
+ const DEFAULT_MODEL_PICKER_CATEGORY = { label: ( localize(5067, "Other Models")), order: Number.MAX_SAFE_INTEGER };
5
+
6
+ export { DEFAULT_MODEL_PICKER_CATEGORY };
@@ -1,9 +1,11 @@
1
1
  import { URI } from "../../../../../../base/common/uri.js";
2
- import { ResolveError } from "@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/common/promptFileReferenceErrors";
2
+ import { ResolveError } from "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/promptFileReferenceErrors";
3
3
  import { IDisposable } from "../../../../../../base/common/lifecycle.js";
4
4
  import { VSBufferReadableStream } from "../../../../../../base/common/buffer.js";
5
5
  export interface IPromptContentsProvider extends IDisposable {
6
6
  readonly uri: URI;
7
+ readonly languageId: string;
8
+ readonly sourceName: string;
7
9
  start(): this;
8
10
  onContentChanged(callback: (streamOrError: VSBufferReadableStream | ResolveError) => void): IDisposable;
9
11
  onDispose(callback: () => void): this;
@@ -0,0 +1,3 @@
1
+ export { PromptModeMetadata } from "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/mode";
2
+ export { PromptToolsMetadata } from "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/tools";
3
+ export { PromptDescriptionMetadata } from "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/description";
@@ -1,5 +1,6 @@
1
+ import { ChatMode } from "../../constants.js";
1
2
  import { URI } from "../../../../../../base/common/uri.js";
2
- import { ResolveError } from "@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/common/promptFileReferenceErrors";
3
+ import { ResolveError } from "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/promptFileReferenceErrors";
3
4
  import { IDisposable } from "../../../../../../base/common/lifecycle.js";
4
5
  import { IRange, Range } from "../../../../../../editor/common/core/range.js";
5
6
  export interface IResolveError {
@@ -11,6 +12,12 @@ export interface ITopError extends IResolveError {
11
12
  readonly errorsCount: number;
12
13
  readonly localizedMessage: string;
13
14
  }
15
+ export interface IPromptMetadata {
16
+ description?: string;
17
+ tools?: readonly string[];
18
+ mode?: ChatMode;
19
+ applyTo?: string;
20
+ }
14
21
  interface IPromptReferenceBase extends IDisposable {
15
22
  readonly type: string;
16
23
  readonly subtype: string;
@@ -25,9 +32,11 @@ interface IPromptReferenceBase extends IDisposable {
25
32
  readonly errors: readonly ResolveError[];
26
33
  readonly allErrors: readonly IResolveError[];
27
34
  readonly topError: ITopError | undefined;
28
- references: readonly IPromptReference[];
29
- allReferences: readonly IPromptReference[];
30
- allValidReferences: readonly IPromptReference[];
35
+ readonly references: readonly IPromptReference[];
36
+ readonly allReferences: readonly IPromptReference[];
37
+ readonly allValidReferences: readonly IPromptReference[];
38
+ readonly allToolsMetadata: readonly string[] | null;
39
+ readonly metadata: IPromptMetadata;
31
40
  settled(): Promise<this>;
32
41
  allSettled(): Promise<this>;
33
42
  }
@@ -36,3 +45,4 @@ export interface IPromptFileReference extends IPromptReferenceBase {
36
45
  readonly subtype: "prompt" | "markdown";
37
46
  }
38
47
  export type IPromptReference = IPromptFileReference;
48
+ export {};
@@ -1,6 +1,33 @@
1
+ import { TTree } from "@codingame/monaco-vscode-chat-service-override/vscode/vs/workbench/contrib/chat/common/promptSyntax/utils/treeUtils";
2
+ import { ChatMode } from "../../constants.js";
3
+ import { IPromptMetadata } from "../parsers/types.js";
1
4
  import { URI } from "../../../../../../base/common/uri.js";
2
- export type TPromptsType = "local" | "user";
5
+ import { TextModelPromptParser } from "@codingame/monaco-vscode-chat-service-override/vscode/vs/workbench/contrib/chat/common/promptSyntax/parsers/textModelPromptParser";
6
+ export type TPromptsStorage = "local" | "user";
7
+ export type TPromptsType = "instructions" | "prompt";
3
8
  export interface IPromptPath {
4
9
  readonly uri: URI;
10
+ readonly storage: TPromptsStorage;
5
11
  readonly type: TPromptsType;
6
12
  }
13
+ export type TSharedPrompt = Omit<TextModelPromptParser, "dispose">;
14
+ export interface IMetadata {
15
+ readonly uri: URI;
16
+ readonly metadata: IPromptMetadata;
17
+ readonly children?: readonly TTree<IMetadata>[];
18
+ }
19
+ interface ICombinedAgentToolsMetadata {
20
+ readonly tools: readonly string[] | undefined;
21
+ readonly mode: ChatMode.Agent;
22
+ }
23
+ interface ICombinedNonAgentToolsMetadata {
24
+ readonly tools: undefined;
25
+ readonly mode?: ChatMode.Ask | ChatMode.Edit;
26
+ }
27
+ export type TCombinedToolsMetadata = ICombinedAgentToolsMetadata | ICombinedNonAgentToolsMetadata;
28
+ export interface IChatPromptSlashCommand {
29
+ readonly command: string;
30
+ readonly detail: string;
31
+ readonly promptPath?: IPromptPath;
32
+ }
33
+ export {};
@@ -1,13 +1,19 @@
1
1
  import { IDisposable } from "../../../../../../base/common/lifecycle.js";
2
+ import { URI } from "../../../../../../base/common/uri.js";
2
3
  import { ITextModel } from "../../../../../../editor/common/model.js";
3
- import { TextModelPromptParser } from "@codingame/monaco-vscode-chat-service-override/vscode/vs/workbench/contrib/chat/common/promptSyntax/parsers/textModelPromptParser";
4
- import { IPromptPath, TPromptsType } from "./types.js";
4
+ import { TSharedPrompt, TPromptsType, IPromptPath, IChatPromptSlashCommand, IMetadata, TCombinedToolsMetadata } from "./types.js";
5
5
  export declare const IPromptsService: import("../../../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IPromptsService>;
6
6
  export interface IPromptsService extends IDisposable {
7
7
  readonly _serviceBrand: undefined;
8
- getSyntaxParserFor(model: ITextModel): TextModelPromptParser & {
8
+ getSyntaxParserFor(model: ITextModel): TSharedPrompt & {
9
9
  disposed: false;
10
10
  };
11
- listPromptFiles(): Promise<readonly IPromptPath[]>;
11
+ listPromptFiles(type: TPromptsType): Promise<readonly IPromptPath[]>;
12
12
  getSourceFolders(type: TPromptsType): readonly IPromptPath[];
13
+ asPromptSlashCommand(name: string): IChatPromptSlashCommand | undefined;
14
+ resolvePromptSlashCommand(data: IChatPromptSlashCommand): Promise<IPromptPath | undefined>;
15
+ findPromptSlashCommands(): Promise<IChatPromptSlashCommand[]>;
16
+ findInstructionFilesFor(fileUris: readonly URI[]): Promise<readonly URI[]>;
17
+ getAllMetadata(promptUris: readonly URI[]): Promise<readonly IMetadata[]>;
18
+ getCombinedToolsMetadata(promptUris: readonly URI[]): Promise<TCombinedToolsMetadata | null>;
13
19
  }
@@ -1,39 +1,22 @@
1
1
  import { CancellationToken } from "../../../../../base/common/cancellation.js";
2
2
  import { UriComponents } from "../../../../../base/common/uri.js";
3
- import { IWorkspaceContextService } from "../../../../../platform/workspace/common/workspace.service.js";
4
- import { IEditorGroupsService } from "../../../../services/editor/common/editorGroupsService.service.js";
5
- import { ITextFileService } from "../../../../services/textfile/common/textfiles.service.js";
6
3
  import { INotebookService } from "../../../notebook/common/notebookService.service.js";
7
4
  import { ICodeMapperService } from "../chatCodeMapperService.service.js";
8
5
  import { IChatService } from "../chatService.service.js";
9
- import { ILanguageModelIgnoredFilesService } from "../ignoredFiles.service.js";
10
- import { CountTokensCallback, IPreparedToolInvocation, IToolData, IToolImpl, IToolInvocation, IToolResult } from "../languageModelToolsService.js";
11
- import { IToolInputProcessor } from "./tools.js";
6
+ import { CountTokensCallback, IPreparedToolInvocation, IToolData, IToolImpl, IToolInvocation, IToolResult, ToolProgress } from "../languageModelToolsService.js";
12
7
  export declare const ExtensionEditToolId = "vscode_editFile";
13
8
  export declare const InternalEditToolId = "vscode_editFile_internal";
14
9
  export declare const EditToolData: IToolData;
10
+ export interface EditToolParams {
11
+ uri: UriComponents;
12
+ explanation: string;
13
+ code: string;
14
+ }
15
15
  export declare class EditTool implements IToolImpl {
16
16
  private readonly chatService;
17
17
  private readonly codeMapperService;
18
- private readonly workspaceContextService;
19
- private readonly ignoredFilesService;
20
- private readonly textFileService;
21
18
  private readonly notebookService;
22
- private readonly editorGroupsService;
23
- constructor(chatService: IChatService, codeMapperService: ICodeMapperService, workspaceContextService: IWorkspaceContextService, ignoredFilesService: ILanguageModelIgnoredFilesService, textFileService: ITextFileService, notebookService: INotebookService, editorGroupsService: IEditorGroupsService);
24
- invoke(invocation: IToolInvocation, countTokens: CountTokensCallback, token: CancellationToken): Promise<IToolResult>;
19
+ constructor(chatService: IChatService, codeMapperService: ICodeMapperService, notebookService: INotebookService);
20
+ invoke(invocation: IToolInvocation, countTokens: CountTokensCallback, _progress: ToolProgress, token: CancellationToken): Promise<IToolResult>;
25
21
  prepareToolInvocation(parameters: any, token: CancellationToken): Promise<IPreparedToolInvocation | undefined>;
26
22
  }
27
- export interface EditToolParams {
28
- file: UriComponents;
29
- explanation: string;
30
- code: string;
31
- }
32
- export interface EditToolRawParams {
33
- filePath: string;
34
- explanation: string;
35
- code: string;
36
- }
37
- export declare class EditToolInputProcessor implements IToolInputProcessor {
38
- processInput(input: EditToolRawParams): EditToolParams;
39
- }
@@ -2,102 +2,35 @@
2
2
  import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
3
3
  import { MarkdownString } from '../../../../../base/common/htmlContent.js';
4
4
  import '../../../../../base/common/observableInternal/index.js';
5
- import { isEqual } from '../../../../../base/common/resources.js';
6
5
  import { URI } from '../../../../../base/common/uri.js';
7
6
  import { generateUuid } from '../../../../../base/common/uuid.js';
8
- import { localize } from '../../../../../nls.js';
9
- import { IWorkspaceContextService } from '../../../../../platform/workspace/common/workspace.service.js';
10
- import { SaveReason } from '../../../../common/editor.js';
11
- import { GroupsOrder } from '../../../../services/editor/common/editorGroupsService.js';
12
- import { IEditorGroupsService } from '../../../../services/editor/common/editorGroupsService.service.js';
13
- import { ITextFileService } from '../../../../services/textfile/common/textfiles.service.js';
14
7
  import { CellUri } from '../../../notebook/common/notebookCommon.js';
15
8
  import { INotebookService } from '../../../notebook/common/notebookService.service.js';
16
9
  import { ICodeMapperService } from '../chatCodeMapperService.service.js';
17
10
  import { IChatService } from '../chatService.service.js';
18
- import { ILanguageModelIgnoredFilesService } from '../ignoredFiles.service.js';
19
11
  import { autorun } from '../../../../../base/common/observableInternal/autorun.js';
20
12
 
21
- const codeInstructions = `
22
- The user is very smart and can understand how to apply your edits to their files, you just need to provide minimal hints.
23
- Avoid repeating existing code, instead use comments to represent regions of unchanged code. The user prefers that you are as concise as possible. For example:
24
- // ...existing code...
25
- { changed code }
26
- // ...existing code...
27
- { changed code }
28
- // ...existing code...
29
-
30
- Here is an example of how you should use format an edit to an existing Person class:
31
- class Person {
32
- // ...existing code...
33
- age: number;
34
- // ...existing code...
35
- getAge() {
36
- return this.age;
37
- }
38
- }
39
- `;
40
13
  const ExtensionEditToolId = 'vscode_editFile';
41
14
  const InternalEditToolId = 'vscode_editFile_internal';
42
15
  const EditToolData = {
43
16
  id: InternalEditToolId,
44
- displayName: ( localize(5006, "Edit File")),
45
- modelDescription: `Edit a file in the workspace. Use this tool once per file that needs to be modified, even if there are multiple changes for a file. Generate the "explanation" property first. ${codeInstructions}`,
17
+ displayName: '',
18
+ modelDescription: '',
46
19
  source: { type: 'internal' },
47
- inputSchema: {
48
- type: 'object',
49
- properties: {
50
- explanation: {
51
- type: 'string',
52
- description: 'A short explanation of the edit being made. Can be the same as the explanation you showed to the user.',
53
- },
54
- filePath: {
55
- type: 'string',
56
- description: 'An absolute path to the file to edit, or the URI of a untitled, not yet named, file, such as `untitled:Untitled-1.',
57
- },
58
- code: {
59
- type: 'string',
60
- description: 'The code change to apply to the file. ' + codeInstructions
61
- }
62
- },
63
- required: ['explanation', 'filePath', 'code']
64
- }
65
20
  };
66
21
  let EditTool = class EditTool {
67
- constructor(chatService, codeMapperService, workspaceContextService, ignoredFilesService, textFileService, notebookService, editorGroupsService) {
22
+ constructor(chatService, codeMapperService, notebookService) {
68
23
  this.chatService = chatService;
69
24
  this.codeMapperService = codeMapperService;
70
- this.workspaceContextService = workspaceContextService;
71
- this.ignoredFilesService = ignoredFilesService;
72
- this.textFileService = textFileService;
73
25
  this.notebookService = notebookService;
74
- this.editorGroupsService = editorGroupsService;
75
26
  }
76
- async invoke(invocation, countTokens, token) {
27
+ async invoke(invocation, countTokens, _progress, token) {
77
28
  if (!invocation.context) {
78
29
  throw ( new Error('toolInvocationToken is required for this tool'));
79
30
  }
80
31
  const parameters = invocation.parameters;
81
- const fileUri = URI.revive(parameters.file);
32
+ const fileUri = URI.revive(parameters.uri);
82
33
  const uri = CellUri.parse(fileUri)?.notebook || fileUri;
83
- if (!this.workspaceContextService.isInsideWorkspace(uri) && !this.notebookService.getNotebookTextModel(uri)) {
84
- const groupsByLastActive = this.editorGroupsService.getGroups(GroupsOrder.MOST_RECENTLY_ACTIVE);
85
- const uriIsOpenInSomeEditor = ( groupsByLastActive.some((group) => {
86
- return ( group.editors.some((editor) => {
87
- return isEqual(editor.resource, uri);
88
- }));
89
- }));
90
- if (!uriIsOpenInSomeEditor) {
91
- throw ( new Error(
92
- `File ${uri.fsPath} can't be edited because it's not inside the current workspace`
93
- ));
94
- }
95
- }
96
- if (await this.ignoredFilesService.fileIsIgnored(uri, token)) {
97
- throw ( new Error(
98
- `File ${uri.fsPath} can't be edited because it is configured to be ignored by Copilot`
99
- ));
100
- }
101
34
  const model = this.chatService.getSession(invocation.context?.sessionId);
102
35
  const request = model.getRequests().at(-1);
103
36
  if (request.response?.response.getMarkdown().length) {
@@ -117,7 +50,7 @@ let EditTool = class EditTool {
117
50
  });
118
51
  model.acceptResponseProgress(request, {
119
52
  kind: 'markdownContent',
120
- content: ( new MarkdownString(parameters.code + '\n````\n'))
53
+ content: ( new MarkdownString('\n````\n'))
121
54
  });
122
55
  if (this.notebookService.hasSupportedNotebooks(uri) && (this.notebookService.getNotebookTextModel(uri))) {
123
56
  model.acceptResponseProgress(request, {
@@ -140,7 +73,9 @@ let EditTool = class EditTool {
140
73
  const result = await this.codeMapperService.mapCode({
141
74
  codeBlocks: [{ code: parameters.code, resource: uri, markdownBeforeBlock: parameters.explanation }],
142
75
  location: 'tool',
143
- chatRequestId: invocation.chatRequestId
76
+ chatRequestId: invocation.chatRequestId,
77
+ chatRequestModel: invocation.modelId,
78
+ chatSessionId: invocation.context.sessionId,
144
79
  }, {
145
80
  textEdit: (target, edits) => {
146
81
  model.acceptResponseProgress(request, { kind: 'textEdit', uri: target, edits });
@@ -176,10 +111,6 @@ let EditTool = class EditTool {
176
111
  })).finally(() => {
177
112
  dispose.dispose();
178
113
  });
179
- await this.textFileService.save(uri, {
180
- reason: SaveReason.AUTO,
181
- skipSaveParticipants: true,
182
- });
183
114
  return {
184
115
  content: [{ kind: 'text', value: 'The file was edited successfully' }]
185
116
  };
@@ -193,24 +124,7 @@ let EditTool = class EditTool {
193
124
  EditTool = ( __decorate([
194
125
  ( __param(0, IChatService)),
195
126
  ( __param(1, ICodeMapperService)),
196
- ( __param(2, IWorkspaceContextService)),
197
- ( __param(3, ILanguageModelIgnoredFilesService)),
198
- ( __param(4, ITextFileService)),
199
- ( __param(5, INotebookService)),
200
- ( __param(6, IEditorGroupsService))
127
+ ( __param(2, INotebookService))
201
128
  ], EditTool));
202
- class EditToolInputProcessor {
203
- processInput(input) {
204
- if (!input.filePath) {
205
- return input;
206
- }
207
- const filePath = input.filePath;
208
- return {
209
- file: filePath.startsWith('untitled:') ? ( URI.parse(filePath)) : URI.file(filePath),
210
- explanation: input.explanation,
211
- code: input.code,
212
- };
213
- }
214
- }
215
129
 
216
- export { EditTool, EditToolData, EditToolInputProcessor, ExtensionEditToolId, InternalEditToolId };
130
+ export { EditTool, EditToolData, ExtensionEditToolId, InternalEditToolId };
@@ -6,7 +6,4 @@ export declare class BuiltinToolsContribution extends Disposable implements IWor
6
6
  static readonly ID = "chat.builtinTools";
7
7
  constructor(toolsService: ILanguageModelToolsService, instantiationService: IInstantiationService);
8
8
  }
9
- export interface IToolInputProcessor {
10
- processInput(input: any): any;
11
- }
12
9
  export declare const InternalFetchWebPageToolId = "vscode_fetchWebPage_internal";
@@ -18,17 +18,17 @@ const createCodeActionsAutoSave = (description) => {
18
18
  enum: ['always', 'explicit', 'never', true, false],
19
19
  enumDescriptions: [
20
20
  ( localize(
21
- 5025,
21
+ 5111,
22
22
  'Triggers Code Actions on explicit saves and auto saves triggered by window or focus changes.'
23
23
  )),
24
- ( localize(5026, 'Triggers Code Actions only when explicitly saved')),
25
- ( localize(5027, 'Never triggers Code Actions on save')),
24
+ ( localize(5112, 'Triggers Code Actions only when explicitly saved')),
25
+ ( localize(5113, 'Never triggers Code Actions on save')),
26
26
  ( localize(
27
- 5028,
27
+ 5114,
28
28
  'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "explicit".'
29
29
  )),
30
30
  ( localize(
31
- 5029,
31
+ 5115,
32
32
  'Never triggers Code Actions on save. This value will be deprecated in favor of "never".'
33
33
  ))
34
34
  ],
@@ -41,14 +41,14 @@ const createNotebookCodeActionsAutoSave = (description) => {
41
41
  type: ['string', 'boolean'],
42
42
  enum: ['explicit', 'never', true, false],
43
43
  enumDescriptions: [
44
- ( localize(5030, 'Triggers Code Actions only when explicitly saved.')),
45
- ( localize(5031, 'Never triggers Code Actions on save.')),
44
+ ( localize(5116, 'Triggers Code Actions only when explicitly saved.')),
45
+ ( localize(5117, 'Never triggers Code Actions on save.')),
46
46
  ( localize(
47
- 5032,
47
+ 5118,
48
48
  'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "explicit".'
49
49
  )),
50
50
  ( localize(
51
- 5033,
51
+ 5119,
52
52
  'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "never".'
53
53
  ))
54
54
  ],
@@ -70,7 +70,7 @@ const codeActionsOnSaveSchema = {
70
70
  }
71
71
  ],
72
72
  markdownDescription: ( localize(
73
- 5034,
73
+ 5120,
74
74
  'Run Code Actions for the editor on save. Code Actions must be specified and the editor must not be shutting down. When {0} is set to `afterDelay`, Code Actions will only be run when the file is saved explicitly. Example: `"source.organizeImports": "explicit" `',
75
75
  '`#files.autoSave#`'
76
76
  )),
@@ -102,7 +102,7 @@ const notebookCodeActionsOnSaveSchema = {
102
102
  }
103
103
  ],
104
104
  markdownDescription: ( localize(
105
- 5035,
105
+ 5121,
106
106
  'Run a series of Code Actions for a notebook on save. Code Actions must be specified and the editor must not be shutting down. When {0} is set to `afterDelay`, Code Actions will only be run when the file is saved explicitly. Example: `"notebook.source.organizeImports": "explicit"`',
107
107
  '`#files.autoSave#`'
108
108
  )),
@@ -150,12 +150,12 @@ let CodeActionsContribution = class CodeActionsContribution extends Disposable {
150
150
  for (const codeActionKind of allProvidedKinds) {
151
151
  if (CodeActionKind.Source.contains(codeActionKind) && !properties[codeActionKind.value]) {
152
152
  properties[codeActionKind.value] = createCodeActionsAutoSave(( localize(
153
- 5036,
153
+ 5122,
154
154
  "Controls whether '{0}' actions should be run on file save.",
155
155
  codeActionKind.value
156
156
  )));
157
157
  notebookProperties[codeActionKind.value] = createNotebookCodeActionsAutoSave(( localize(
158
- 5036,
158
+ 5122,
159
159
  "Controls whether '{0}' actions should be run on file save.",
160
160
  codeActionKind.value
161
161
  )));
@@ -31,12 +31,12 @@ import { isWindows } from '../../../../../base/common/platform.js';
31
31
  var EditorDictation_1;
32
32
  registerCss(editorDictation);
33
33
  const EDITOR_DICTATION_IN_PROGRESS = ( new RawContextKey('editorDictation.inProgress', false));
34
- const VOICE_CATEGORY = ( localize2(5039, "Voice"));
34
+ const VOICE_CATEGORY = ( localize2(5125, "Voice"));
35
35
  class EditorDictationStartAction extends EditorAction2 {
36
36
  constructor() {
37
37
  super({
38
38
  id: 'workbench.action.editorDictation.start',
39
- title: ( localize2(5040, "Start Dictation in Editor")),
39
+ title: ( localize2(5126, "Start Dictation in Editor")),
40
40
  category: VOICE_CATEGORY,
41
41
  precondition: ( ContextKeyExpr.and(HasSpeechProvider, ( SpeechToTextInProgress.toNegated()), (
42
42
  EditorContextKeys.readOnly.toNegated()))),
@@ -73,7 +73,7 @@ class EditorDictationStopAction extends EditorAction2 {
73
73
  constructor() {
74
74
  super({
75
75
  id: EditorDictationStopAction.ID,
76
- title: ( localize2(5041, "Stop Dictation in Editor")),
76
+ title: ( localize2(5127, "Stop Dictation in Editor")),
77
77
  category: VOICE_CATEGORY,
78
78
  precondition: EDITOR_DICTATION_IN_PROGRESS,
79
79
  f1: true,
@@ -98,7 +98,7 @@ class DictationWidget extends Disposable {
98
98
  const stopActionKeybinding = keybindingService.lookupKeybinding(EditorDictationStopAction.ID)?.getLabel();
99
99
  actionBar.push(toAction({
100
100
  id: EditorDictationStopAction.ID,
101
- label: stopActionKeybinding ? ( localize(5042, "Stop Dictation ({0})", stopActionKeybinding)) : ( localize(5043, "Stop Dictation")),
101
+ label: stopActionKeybinding ? ( localize(5128, "Stop Dictation ({0})", stopActionKeybinding)) : ( localize(5129, "Stop Dictation")),
102
102
  class: ThemeIcon.asClassName(Codicon.micFilled),
103
103
  run: () => EditorDictation.get(editor)?.stop()
104
104
  }), { icon: true, label: false, keybinding: stopActionKeybinding });
@@ -31,19 +31,19 @@ class DiffEditorAccessibilityHelp {
31
31
  return;
32
32
  }
33
33
  const switchSides = ( localize(
34
- 5044,
34
+ 5130,
35
35
  "Run the command Diff Editor: Switch Side{0} to toggle between the original and modified editors.",
36
36
  '<keybinding:diffEditor.switchSide>'
37
37
  ));
38
38
  const diffEditorActiveAnnouncement = ( localize(
39
- 5045,
39
+ 5131,
40
40
  "The setting, accessibility.verbosity.diffEditorActive, controls if a diff editor announcement is made when it becomes the active editor."
41
41
  ));
42
42
  const keys = ['accessibility.signals.diffLineDeleted', 'accessibility.signals.diffLineInserted', 'accessibility.signals.diffLineModified'];
43
43
  const content = [
44
- ( localize(5046, "You are in a diff editor.")),
44
+ ( localize(5132, "You are in a diff editor.")),
45
45
  ( localize(
46
- 5047,
46
+ 5133,
47
47
  "View the next{0} or previous{1} diff in diff review mode, which is optimized for screen readers.",
48
48
  '<keybinding:' + AccessibleDiffViewerNext.id + '>',
49
49
  '<keybinding:' + AccessibleDiffViewerPrev.id + '>'
@@ -51,7 +51,7 @@ class DiffEditorAccessibilityHelp {
51
51
  switchSides,
52
52
  diffEditorActiveAnnouncement,
53
53
  ( localize(
54
- 5048,
54
+ 5134,
55
55
  "To control which accessibility signals should be played, the following settings can be configured: {0}.",
56
56
  keys.join(', ')
57
57
  )),