@codingame/monaco-vscode-api 20.5.0 → 21.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 (648) hide show
  1. package/missing-services.js +136 -50
  2. package/package.json +8 -8
  3. package/services.d.ts +8 -4
  4. package/services.js +8 -4
  5. package/vscode/product.json.js +1 -1
  6. package/vscode/src/vs/base/browser/dom.js +3 -3
  7. package/vscode/src/vs/base/browser/domSanitize.d.ts +23 -11
  8. package/vscode/src/vs/base/browser/domSanitize.js +86 -7
  9. package/vscode/src/vs/base/browser/domStylesheets.js +2 -2
  10. package/vscode/src/vs/base/browser/event.d.ts +1 -1
  11. package/vscode/src/vs/base/browser/markdownRenderer.d.ts +8 -4
  12. package/vscode/src/vs/base/browser/markdownRenderer.js +72 -126
  13. package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.d.ts +10 -10
  14. package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +5 -2
  15. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.css +2 -2
  16. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.d.ts +4 -4
  17. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +32 -7
  18. package/vscode/src/vs/base/browser/ui/button/button.d.ts +2 -2
  19. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  20. package/vscode/src/vs/base/browser/ui/contextview/contextview.js +4 -2
  21. package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.d.ts +1 -1
  22. package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
  23. package/vscode/src/vs/base/browser/ui/findinput/findInput.d.ts +7 -7
  24. package/vscode/src/vs/base/browser/ui/findinput/findInput.js +7 -7
  25. package/vscode/src/vs/base/browser/ui/findinput/replaceInput.d.ts +6 -6
  26. package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +6 -6
  27. package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css +5 -0
  28. package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -1
  29. package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +4 -4
  30. package/vscode/src/vs/base/browser/ui/inputbox/inputBox.d.ts +2 -2
  31. package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +2 -2
  32. package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +3 -3
  33. package/vscode/src/vs/base/browser/ui/list/listWidget.js +3 -3
  34. package/vscode/src/vs/base/browser/ui/menu/menu.d.ts +1 -0
  35. package/vscode/src/vs/base/browser/ui/menu/menu.js +21 -16
  36. package/vscode/src/vs/base/browser/ui/resizable/resizable.d.ts +2 -2
  37. package/vscode/src/vs/base/browser/ui/resizable/resizable.js +2 -2
  38. package/vscode/src/vs/base/browser/ui/sash/sash.d.ts +4 -4
  39. package/vscode/src/vs/base/browser/ui/sash/sash.js +16 -22
  40. package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.d.ts +2 -2
  41. package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +2 -2
  42. package/vscode/src/vs/base/browser/ui/selectBox/selectBox.css +2 -1
  43. package/vscode/src/vs/base/browser/ui/selectBox/selectBox.d.ts +4 -4
  44. package/vscode/src/vs/base/browser/ui/selectBox/selectBox.js +3 -3
  45. package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.d.ts +2 -2
  46. package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +12 -12
  47. package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +2 -2
  48. package/vscode/src/vs/base/browser/ui/toggle/toggle.js +2 -2
  49. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +1 -1
  50. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +1 -1
  51. package/vscode/src/vs/base/common/actions.d.ts +3 -3
  52. package/vscode/src/vs/base/common/actions.js +3 -3
  53. package/vscode/src/vs/base/common/async.d.ts +18 -7
  54. package/vscode/src/vs/base/common/async.js +71 -14
  55. package/vscode/src/vs/base/common/codicons.d.ts +3 -0
  56. package/vscode/src/vs/base/common/codiconsLibrary.d.ts +3 -0
  57. package/vscode/src/vs/base/common/codiconsLibrary.js +3 -0
  58. package/vscode/src/vs/base/common/defaultAccount.d.ts +23 -0
  59. package/vscode/src/vs/base/common/event.d.ts +0 -5
  60. package/vscode/src/vs/base/common/event.js +0 -12
  61. package/vscode/src/vs/base/common/hotReloadHelpers.js +2 -33
  62. package/vscode/src/vs/base/common/htmlContent.d.ts +1 -1
  63. package/vscode/src/vs/base/common/htmlContent.js +2 -2
  64. package/vscode/src/vs/base/common/lazy.d.ts +1 -1
  65. package/vscode/src/vs/base/common/lazy.js +14 -4
  66. package/vscode/src/vs/base/common/lifecycle.d.ts +7 -11
  67. package/vscode/src/vs/base/common/lifecycle.js +19 -2
  68. package/vscode/src/vs/base/common/marshallingIds.d.ts +5 -4
  69. package/vscode/src/vs/base/common/marshallingIds.js +5 -4
  70. package/vscode/src/vs/base/common/mime.d.ts +4 -0
  71. package/vscode/src/vs/base/common/mime.js +4 -1
  72. package/vscode/src/vs/base/common/network.d.ts +5 -0
  73. package/vscode/src/vs/base/common/network.js +2 -0
  74. package/vscode/src/vs/base/common/oauth.d.ts +18 -2
  75. package/vscode/src/vs/base/common/oauth.js +114 -19
  76. package/vscode/src/vs/base/common/observableInternal/debugLocation.d.ts +20 -0
  77. package/vscode/src/vs/base/common/observableInternal/debugLocation.js +63 -0
  78. package/vscode/src/vs/base/common/observableInternal/experimental/reducer.js +2 -1
  79. package/vscode/src/vs/base/common/observableInternal/index.d.ts +2 -1
  80. package/vscode/src/vs/base/common/observableInternal/index.js +2 -1
  81. package/vscode/src/vs/base/common/observableInternal/logging/debugger/devToolsLogger.d.ts +3 -2
  82. package/vscode/src/vs/base/common/observableInternal/logging/debugger/devToolsLogger.js +15 -33
  83. package/vscode/src/vs/base/common/observableInternal/logging/debugger/utils.d.ts +0 -7
  84. package/vscode/src/vs/base/common/observableInternal/logging/debugger/utils.js +1 -42
  85. package/vscode/src/vs/base/common/observableInternal/logging/logging.d.ts +3 -2
  86. package/vscode/src/vs/base/common/observableInternal/logging/logging.js +4 -4
  87. package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.d.ts +2 -1
  88. package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.js +6 -5
  89. package/vscode/src/vs/base/common/observableInternal/observables/derived.d.ts +4 -3
  90. package/vscode/src/vs/base/common/observableInternal/observables/derived.js +12 -11
  91. package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.d.ts +3 -2
  92. package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.js +4 -4
  93. package/vscode/src/vs/base/common/observableInternal/observables/lazyObservableValue.d.ts +2 -1
  94. package/vscode/src/vs/base/common/observableInternal/observables/lazyObservableValue.js +2 -2
  95. package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.d.ts +4 -3
  96. package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.js +10 -8
  97. package/vscode/src/vs/base/common/observableInternal/observables/observableSignal.js +6 -5
  98. package/vscode/src/vs/base/common/observableInternal/observables/observableSignalFromEvent.d.ts +2 -1
  99. package/vscode/src/vs/base/common/observableInternal/observables/observableSignalFromEvent.js +5 -4
  100. package/vscode/src/vs/base/common/observableInternal/observables/observableValue.d.ts +3 -2
  101. package/vscode/src/vs/base/common/observableInternal/observables/observableValue.js +7 -6
  102. package/vscode/src/vs/base/common/observableInternal/observables/observableValueOpts.d.ts +2 -1
  103. package/vscode/src/vs/base/common/observableInternal/observables/observableValueOpts.js +4 -3
  104. package/vscode/src/vs/base/common/observableInternal/reactions/autorun.d.ts +11 -3
  105. package/vscode/src/vs/base/common/observableInternal/reactions/autorun.js +27 -7
  106. package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.d.ts +2 -1
  107. package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.js +2 -2
  108. package/vscode/src/vs/base/common/observableInternal/utils/utilsCancellation.js +1 -0
  109. package/vscode/src/vs/base/common/policy.d.ts +29 -0
  110. package/vscode/src/vs/base/common/product.d.ts +15 -1
  111. package/vscode/src/vs/base/common/strings.d.ts +0 -6
  112. package/vscode/src/vs/base/common/strings.js +1 -8
  113. package/vscode/src/vs/base/common/types.js +1 -4
  114. package/vscode/src/vs/base/common/uuid.d.ts +2 -0
  115. package/vscode/src/vs/base/common/uuid.js +4 -1
  116. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +1 -0
  117. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +9 -2
  118. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContextUtils.d.ts +2 -1
  119. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContextUtils.js +10 -3
  120. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +1 -0
  121. package/vscode/src/vs/editor/browser/controller/mouseHandler.js +2 -3
  122. package/vscode/src/vs/editor/browser/editorDom.d.ts +1 -0
  123. package/vscode/src/vs/editor/browser/editorDom.js +7 -4
  124. package/vscode/src/vs/editor/browser/observableCodeEditor.d.ts +2 -2
  125. package/vscode/src/vs/editor/browser/observableCodeEditor.js +3 -2
  126. package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -4
  127. package/vscode/src/vs/editor/browser/services/inlineCompletionsService.d.ts +3 -0
  128. package/vscode/src/vs/editor/browser/services/inlineCompletionsService.js +14 -1
  129. package/vscode/src/vs/editor/browser/services/inlineCompletionsService.service.d.ts +4 -0
  130. package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.css +1 -0
  131. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +12 -7
  132. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +8 -8
  133. package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -1
  134. package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +3 -1
  135. package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.d.ts +2 -2
  136. package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +31 -44
  137. package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +10 -10
  138. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +6 -4
  139. package/vscode/src/vs/editor/common/config/editorOptions.js +302 -275
  140. package/vscode/src/vs/editor/common/core/2d/rect.js +5 -2
  141. package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
  142. package/vscode/src/vs/editor/common/core/edits/lineEdit.d.ts +2 -2
  143. package/vscode/src/vs/editor/common/core/edits/lineEdit.js +1 -1
  144. package/vscode/src/vs/editor/common/core/edits/stringEdit.d.ts +1 -1
  145. package/vscode/src/vs/editor/common/core/edits/stringEdit.js +9 -3
  146. package/vscode/src/vs/editor/common/core/edits/textEdit.d.ts +2 -2
  147. package/vscode/src/vs/editor/common/core/text/textLength.d.ts +3 -0
  148. package/vscode/src/vs/editor/common/core/text/textLength.js +6 -0
  149. package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
  150. package/vscode/src/vs/editor/common/languageFeatureRegistry.d.ts +1 -1
  151. package/vscode/src/vs/editor/common/languageFeatureRegistry.js +1 -1
  152. package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
  153. package/vscode/src/vs/editor/common/languages.d.ts +19 -1
  154. package/vscode/src/vs/editor/common/languages.js +77 -57
  155. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/beforeEditPositionMapper.d.ts +1 -1
  156. package/vscode/src/vs/editor/common/model/editStack.js +1 -1
  157. package/vscode/src/vs/editor/common/model/mirrorTextModel.d.ts +19 -1
  158. package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.d.ts +1 -1
  159. package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.js +1 -1
  160. package/vscode/src/vs/editor/common/model/textModel.d.ts +4 -4
  161. package/vscode/src/vs/editor/common/model/textModel.js +4 -4
  162. package/vscode/src/vs/editor/common/model/textModelStringEdit.d.ts +1 -1
  163. package/vscode/src/vs/editor/common/model/textModelTokens.d.ts +1 -1
  164. package/vscode/src/vs/editor/common/model.d.ts +2 -1
  165. package/vscode/src/vs/editor/common/services/editorWebWorker.d.ts +7 -1
  166. package/vscode/src/vs/editor/common/services/editorWebWorker.js +13 -10
  167. package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +4 -0
  168. package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +6 -1
  169. package/vscode/src/vs/editor/common/standaloneStrings.js +47 -47
  170. package/vscode/src/vs/editor/common/textModelEditSource.d.ts +48 -2
  171. package/vscode/src/vs/editor/common/textModelEditSource.js +54 -1
  172. package/vscode/src/vs/editor/common/textModelEvents.d.ts +1 -18
  173. package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +6 -1
  174. package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
  175. package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
  176. package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
  177. package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
  178. package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
  179. package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +28 -17
  180. package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
  181. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
  182. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
  183. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
  184. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
  185. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
  186. package/vscode/src/vs/editor/contrib/codelens/browser/codelens.d.ts +2 -2
  187. package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +3 -2
  188. package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.d.ts +5 -5
  189. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +1 -1
  190. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
  191. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
  192. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.d.ts +2 -2
  193. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +3 -3
  194. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
  195. package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
  196. package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
  197. package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
  198. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
  199. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
  200. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
  201. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
  202. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
  203. package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
  204. package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
  205. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +26 -26
  206. package/vscode/src/vs/editor/contrib/folding/browser/folding.d.ts +1 -1
  207. package/vscode/src/vs/editor/contrib/folding/browser/folding.js +21 -21
  208. package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
  209. package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
  210. package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
  211. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
  212. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
  213. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
  214. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  215. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
  216. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
  217. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
  218. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
  219. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
  220. package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
  221. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverComputer.d.ts +2 -2
  222. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverComputer.js +4 -4
  223. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
  224. package/vscode/src/vs/editor/contrib/hover/browser/getHover.js +2 -2
  225. package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
  226. package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
  227. package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
  228. package/vscode/src/vs/editor/contrib/hover/browser/hoverOperation.d.ts +2 -2
  229. package/vscode/src/vs/editor/contrib/hover/browser/hoverOperation.js +2 -2
  230. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +12 -12
  231. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +9 -5
  232. package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  233. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
  234. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +1 -1
  235. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.d.ts +2 -2
  236. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +11 -11
  237. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +19 -19
  238. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
  239. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +56 -8
  240. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
  241. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
  242. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +7 -0
  243. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +76 -18
  244. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +1 -1
  245. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +7 -3
  246. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +6 -4
  247. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +9 -7
  248. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +18 -4
  249. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +31 -9
  250. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.d.ts +1 -0
  251. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.js +4 -2
  252. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/typingSpeed.d.ts +0 -1
  253. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/typingSpeed.js +6 -10
  254. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.d.ts +5 -5
  255. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.js +11 -15
  256. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +8 -8
  257. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +3 -3
  258. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
  259. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +36 -7
  260. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.d.ts +1 -0
  261. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.d.ts +1 -0
  262. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +17 -5
  263. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.js +4 -4
  264. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +3 -3
  265. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.d.ts +1 -0
  266. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +10 -3
  267. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +7 -7
  268. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.d.ts +1 -0
  269. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +15 -8
  270. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
  271. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.d.ts +1 -1
  272. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +49 -13
  273. package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
  274. package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  275. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
  276. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +8 -3
  277. package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
  278. package/vscode/src/vs/editor/contrib/message/browser/messageController.d.ts +0 -1
  279. package/vscode/src/vs/editor/contrib/message/browser/messageController.js +11 -14
  280. package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
  281. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  282. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
  283. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +18 -18
  284. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  285. package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
  286. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
  287. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +10 -10
  288. package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
  289. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
  290. package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  291. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  292. package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
  293. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.d.ts +2 -1
  294. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +26 -15
  295. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
  296. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
  297. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
  298. package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
  299. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  300. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  301. package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  302. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
  303. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
  304. package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  305. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  306. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
  307. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
  308. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +4 -0
  309. package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
  310. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
  311. package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
  312. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +4 -4
  313. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
  314. package/vscode/src/vs/platform/actions/browser/floatingMenu.d.ts +1 -1
  315. package/vscode/src/vs/platform/actions/browser/floatingMenu.js +1 -1
  316. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.d.ts +11 -11
  317. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
  318. package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +1 -6
  319. package/vscode/src/vs/platform/actions/browser/toolbar.js +3 -6
  320. package/vscode/src/vs/platform/actions/common/actions.d.ts +2 -1
  321. package/vscode/src/vs/platform/actions/common/actions.js +2 -1
  322. package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
  323. package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
  324. package/vscode/src/vs/platform/assignment/common/assignment.d.ts +70 -0
  325. package/vscode/src/vs/platform/configuration/common/configurationModels.js +11 -8
  326. package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +1 -1
  327. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
  328. package/vscode/src/vs/platform/configuration/common/configurations.js +2 -3
  329. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.d.ts +1 -1
  330. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +2 -2
  331. package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
  332. package/vscode/src/vs/platform/contextkey/common/contextkeys.d.ts +1 -0
  333. package/vscode/src/vs/platform/contextkey/common/contextkeys.js +11 -10
  334. package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
  335. package/vscode/src/vs/platform/dataChannel/common/dataChannel.d.ts +14 -0
  336. package/vscode/src/vs/platform/dataChannel/common/dataChannel.js +15 -0
  337. package/vscode/src/vs/{workbench/services → platform}/dataChannel/common/dataChannel.service.d.ts +2 -2
  338. package/vscode/src/vs/{workbench/services → platform}/dataChannel/common/dataChannel.service.js +1 -1
  339. package/vscode/src/vs/platform/debug/common/extensionHostDebug.d.ts +1 -1
  340. package/vscode/src/vs/platform/debug/common/extensionHostDebug.service.d.ts +1 -0
  341. package/vscode/src/vs/platform/diagnostics/common/diagnostics.d.ts +1 -1
  342. package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
  343. package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
  344. package/vscode/src/vs/platform/environment/common/argv.d.ts +0 -1
  345. package/vscode/src/vs/platform/environment/common/environment.service.d.ts +1 -0
  346. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +2 -0
  347. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +21 -19
  348. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
  349. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
  350. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
  351. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +11 -0
  352. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +12 -1
  353. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
  354. package/vscode/src/vs/platform/files/common/files.js +6 -6
  355. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  356. package/vscode/src/vs/platform/instantiation/common/instantiation.d.ts +1 -0
  357. package/vscode/src/vs/platform/instantiation/common/instantiationService.js +7 -0
  358. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
  359. package/vscode/src/vs/platform/list/browser/listService.js +27 -27
  360. package/vscode/src/vs/platform/log/common/log.d.ts +1 -1
  361. package/vscode/src/vs/platform/log/common/log.js +7 -7
  362. package/vscode/src/vs/platform/markers/common/markerService.js +2 -2
  363. package/vscode/src/vs/platform/markers/common/markers.js +6 -6
  364. package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.d.ts +18 -0
  365. package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.js +28 -0
  366. package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.service.d.ts +10 -0
  367. package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.service.js +6 -0
  368. package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +8 -4
  369. package/vscode/src/vs/platform/notification/common/notification.js +3 -3
  370. package/vscode/src/vs/platform/observable/common/platformObservableUtils.d.ts +4 -4
  371. package/vscode/src/vs/platform/observable/common/platformObservableUtils.js +15 -20
  372. package/vscode/src/vs/platform/observable/common/wrapInHotClass.js +2 -28
  373. package/vscode/src/vs/platform/observable/common/wrapInReloadableClass.js +3 -42
  374. package/vscode/src/vs/platform/policy/common/policy.d.ts +3 -3
  375. package/vscode/src/vs/platform/policy/common/policy.service.d.ts +1 -1
  376. package/vscode/src/vs/platform/product/common/product.js +3 -3
  377. package/vscode/src/vs/platform/progress/common/progress.d.ts +0 -12
  378. package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +13 -12
  379. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
  380. package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
  381. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +10 -7
  382. package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +1 -2
  383. package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +2 -1
  384. package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  385. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputDelegate.d.ts +1 -1
  386. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputDelegate.js +2 -2
  387. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTree.d.ts +0 -1
  388. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +2 -2
  389. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.d.ts +0 -1
  390. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.js +5 -17
  391. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeFilter.d.ts +0 -1
  392. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeFilter.js +3 -6
  393. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.d.ts +1 -2
  394. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +5 -30
  395. package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.d.ts +0 -3
  396. package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +2 -6
  397. package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +53 -26
  398. package/vscode/src/vs/platform/request/common/request.d.ts +2 -0
  399. package/vscode/src/vs/platform/request/common/request.js +25 -19
  400. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +2 -1
  401. package/vscode/src/vs/platform/terminal/common/terminal.d.ts +5 -0
  402. package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
  403. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
  404. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
  405. package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -95
  406. package/vscode/src/vs/platform/theme/common/colors/inputColors.js +47 -47
  407. package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
  408. package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
  409. package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
  410. package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
  411. package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
  412. package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
  413. package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
  414. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  415. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
  416. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
  417. package/vscode/src/vs/platform/window/common/window.d.ts +6 -2
  418. package/vscode/src/vs/platform/window/common/window.js +3 -2
  419. package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
  420. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +37 -9
  421. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +53 -26
  422. package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +7 -1
  423. package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +6 -4
  424. package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +67 -13
  425. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -3
  426. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +23 -30
  427. package/vscode/src/vs/workbench/api/common/extHostChatSessions.d.ts +12 -4
  428. package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +73 -12
  429. package/vscode/src/vs/workbench/api/common/extHostCommands.js +6 -1
  430. package/vscode/src/vs/workbench/api/common/extHostComments.js +2 -1
  431. package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
  432. package/vscode/src/vs/workbench/api/common/extHostDebugService.js +3 -1
  433. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +3 -2
  434. package/vscode/src/vs/workbench/api/common/extHostDocumentData.d.ts +7 -4
  435. package/vscode/src/vs/workbench/api/common/extHostDocumentData.js +27 -6
  436. package/vscode/src/vs/workbench/api/common/extHostDocumentSaveParticipant.js +2 -1
  437. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
  438. package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +2 -1
  439. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +8 -1
  440. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +39 -14
  441. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.d.ts +5 -5
  442. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +52 -84
  443. package/vscode/src/vs/workbench/api/common/extHostLanguages.js +2 -1
  444. package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
  445. package/vscode/src/vs/workbench/api/common/extHostMcp.js +36 -33
  446. package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +5 -2
  447. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +69 -53
  448. package/vscode/src/vs/workbench/api/common/extHostNotebookDocument.js +4 -2
  449. package/vscode/src/vs/workbench/api/common/extHostNotebookDocumentSaveParticipant.js +2 -1
  450. package/vscode/src/vs/workbench/api/common/extHostNotebookEditor.js +2 -1
  451. package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +2 -1
  452. package/vscode/src/vs/workbench/api/common/extHostSCM.js +14 -12
  453. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
  454. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
  455. package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +1 -1
  456. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +6 -4
  457. package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +5 -1
  458. package/vscode/src/vs/workbench/api/common/extHostTimeline.js +2 -1
  459. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +3 -2
  460. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
  461. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +16 -8
  462. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +93 -20
  463. package/vscode/src/vs/workbench/api/common/extHostTypes/codeActionKind.d.ts +19 -0
  464. package/vscode/src/vs/workbench/api/common/extHostTypes/codeActionKind.js +37 -0
  465. package/vscode/src/vs/workbench/api/common/extHostTypes/diagnostic.d.ts +31 -0
  466. package/vscode/src/vs/workbench/api/common/extHostTypes/diagnostic.js +91 -0
  467. package/vscode/src/vs/workbench/api/common/extHostTypes/es5ClassCompat.d.ts +7 -0
  468. package/vscode/src/vs/workbench/api/common/extHostTypes/es5ClassCompat.js +27 -0
  469. package/vscode/src/vs/workbench/api/common/extHostTypes/location.d.ts +11 -0
  470. package/vscode/src/vs/workbench/api/common/extHostTypes/location.js +44 -0
  471. package/vscode/src/vs/workbench/api/common/extHostTypes/markdownString.d.ts +20 -0
  472. package/vscode/src/vs/workbench/api/common/extHostTypes/markdownString.js +65 -0
  473. package/vscode/src/vs/workbench/api/common/extHostTypes/notebooks.d.ts +84 -0
  474. package/vscode/src/vs/workbench/api/common/extHostTypes/notebooks.js +229 -0
  475. package/vscode/src/vs/workbench/api/common/extHostTypes/position.d.ts +29 -0
  476. package/vscode/src/vs/workbench/api/common/extHostTypes/position.js +169 -0
  477. package/vscode/src/vs/workbench/api/common/extHostTypes/range.d.ts +26 -0
  478. package/vscode/src/vs/workbench/api/common/extHostTypes/range.js +137 -0
  479. package/vscode/src/vs/workbench/api/common/extHostTypes/selection.d.ts +20 -0
  480. package/vscode/src/vs/workbench/api/common/extHostTypes/selection.js +76 -0
  481. package/vscode/src/vs/workbench/api/common/extHostTypes/snippetString.d.ts +12 -0
  482. package/vscode/src/vs/workbench/api/common/extHostTypes/snippetString.js +84 -0
  483. package/vscode/src/vs/workbench/api/common/extHostTypes/snippetTextEdit.d.ts +13 -0
  484. package/vscode/src/vs/workbench/api/common/extHostTypes/snippetTextEdit.js +28 -0
  485. package/vscode/src/vs/workbench/api/common/extHostTypes/symbolInformation.d.ts +45 -0
  486. package/vscode/src/vs/workbench/api/common/extHostTypes/symbolInformation.js +75 -0
  487. package/vscode/src/vs/workbench/api/common/extHostTypes/textEdit.d.ts +24 -0
  488. package/vscode/src/vs/workbench/api/common/extHostTypes/textEdit.js +82 -0
  489. package/vscode/src/vs/workbench/api/common/extHostTypes/workspaceEdit.d.ts +99 -0
  490. package/vscode/src/vs/workbench/api/common/extHostTypes/workspaceEdit.js +146 -0
  491. package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +86 -420
  492. package/vscode/src/vs/workbench/api/common/extHostTypes.js +65 -1186
  493. package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
  494. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +3 -2
  495. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
  496. package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
  497. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
  498. package/vscode/src/vs/workbench/browser/contextkeys.d.ts +1 -0
  499. package/vscode/src/vs/workbench/browser/contextkeys.js +13 -9
  500. package/vscode/src/vs/workbench/browser/parts/editor/editor.js +7 -0
  501. package/vscode/src/vs/workbench/common/configuration.js +9 -9
  502. package/vscode/src/vs/workbench/common/contextkeys.d.ts +1 -0
  503. package/vscode/src/vs/workbench/common/contextkeys.js +74 -73
  504. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
  505. package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
  506. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
  507. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
  508. package/vscode/src/vs/workbench/common/editor.d.ts +2 -0
  509. package/vscode/src/vs/workbench/common/editor.js +4 -4
  510. package/vscode/src/vs/workbench/common/theme.js +160 -160
  511. package/vscode/src/vs/workbench/common/views.js +4 -4
  512. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +157 -157
  513. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
  514. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +5 -5
  515. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +2 -3
  516. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +13 -7
  517. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +64 -56
  518. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +18 -1
  519. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +3 -4
  520. package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.d.ts +3 -0
  521. package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.d.ts +8 -0
  522. package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.service.d.ts +8 -0
  523. package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.service.js +6 -0
  524. package/vscode/src/vs/workbench/contrib/chat/common/chatModes.service.d.ts +13 -0
  525. package/vscode/src/vs/workbench/contrib/chat/common/chatModes.service.js +6 -0
  526. package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +71 -15
  527. package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +10 -1
  528. package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +2 -1
  529. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +49 -22
  530. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.js +10 -0
  531. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +24 -9
  532. package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.service.d.ts +3 -2
  533. package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.d.ts +2 -1
  534. package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +13 -8
  535. package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.service.d.ts +2 -3
  536. package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +14 -1
  537. package/vscode/src/vs/workbench/contrib/chat/common/constants.js +18 -1
  538. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +25 -7
  539. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +15 -8
  540. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +4 -3
  541. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +36 -18
  542. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +46 -36
  543. package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +1 -1
  544. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +1 -1
  545. package/vscode/src/vs/workbench/contrib/chat/common/tools/confirmationTool.d.ts +14 -0
  546. package/vscode/src/vs/workbench/contrib/chat/common/tools/confirmationTool.js +76 -0
  547. package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +2 -2
  548. package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.d.ts +10 -1
  549. package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.js +205 -107
  550. package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.d.ts +3 -1
  551. package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.js +14 -8
  552. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
  553. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
  554. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
  555. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
  556. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
  557. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
  558. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  559. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
  560. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  561. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
  562. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
  563. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  564. package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +1 -0
  565. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
  566. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
  567. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
  568. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.d.ts +16 -0
  569. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.service.d.ts +8 -0
  570. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.service.js +6 -0
  571. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
  572. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +1 -1
  573. package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +4 -7
  574. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  575. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
  576. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
  577. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
  578. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  579. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
  580. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  581. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  582. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +10 -7
  583. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +12 -6
  584. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +2 -1
  585. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +1 -5
  586. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +1 -4
  587. package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +1 -1
  588. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  589. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  590. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  591. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
  592. package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
  593. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
  594. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.d.ts +7 -2
  595. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
  596. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +3 -1
  597. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +10 -3
  598. package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.d.ts +1 -1
  599. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.d.ts +1 -1
  600. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.service.d.ts +1 -1
  601. package/vscode/src/vs/workbench/contrib/testing/common/constants.d.ts +2 -0
  602. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +13 -11
  603. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
  604. package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.d.ts +2 -21
  605. package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +34 -6
  606. package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.service.d.ts +1 -1
  607. package/vscode/src/vs/workbench/services/activity/common/activity.service.d.ts +1 -1
  608. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.service.d.ts +1 -1
  609. package/vscode/src/vs/workbench/services/authentication/browser/authenticationUsageService.service.d.ts +1 -1
  610. package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +48 -1
  611. package/vscode/src/vs/workbench/services/authentication/common/authentication.js +7 -1
  612. package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +7 -6
  613. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
  614. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
  615. package/vscode/src/vs/workbench/services/environment/common/environmentService.service.d.ts +0 -1
  616. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +94 -86
  617. package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +1 -1
  618. package/vscode/src/vs/workbench/services/inlineCompletions/common/inlineCompletionsUnification.service.d.ts +8 -0
  619. package/vscode/src/vs/workbench/services/inlineCompletions/common/inlineCompletionsUnification.service.js +6 -0
  620. package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
  621. package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
  622. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
  623. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
  624. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
  625. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +4 -0
  626. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
  627. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
  628. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
  629. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +1 -1
  630. package/vscode-dts/vscode.d.ts +218 -2
  631. package/vscode-dts/vscode.proposed.authenticationChallenges.d.ts +161 -0
  632. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +47 -1
  633. package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +3 -1
  634. package/vscode-dts/vscode.proposed.chatProvider.d.ts +28 -108
  635. package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +101 -12
  636. package/vscode-dts/vscode.proposed.contribSecondarySidebar.d.ts +6 -0
  637. package/vscode-dts/vscode.proposed.d.ts +3 -0
  638. package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +0 -5
  639. package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +31 -0
  640. package/vscode-dts/vscode.proposed.languageModelDataPart.d.ts +2 -2
  641. package/vscode-dts/vscode.proposed.languageModelThinkingPart.d.ts +49 -0
  642. package/vscode-dts/vscode.proposed.languageModelToolResultAudience.d.ts +16 -5
  643. package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +7 -0
  644. package/vscode/src/vs/base/browser/dompurify/dompurify.d.ts +0 -114
  645. package/vscode/src/vs/base/common/hotReload.js +0 -80
  646. package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.d.ts +0 -6
  647. package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.js +0 -6
  648. package/vscode/src/vs/workbench/services/dataChannel/common/dataChannel.d.ts +0 -7
@@ -4,7 +4,7 @@ import { AsyncIterableObject } from '../../../../../base/common/async.js';
4
4
  import { CancellationTokenSource } from '../../../../../base/common/cancellation.js';
5
5
  import { onUnexpectedExternalError } from '../../../../../base/common/errors.js';
6
6
  import { Disposable } from '../../../../../base/common/lifecycle.js';
7
- import { generateUuid } from '../../../../../base/common/uuid.js';
7
+ import { prefixedUuid } from '../../../../../base/common/uuid.js';
8
8
  import { StringReplacement } from '../../../../common/core/edits/stringEdit.js';
9
9
  import { OffsetRange } from '../../../../common/core/ranges/offsetRange.js';
10
10
  import { Range } from '../../../../common/core/range.js';
@@ -21,7 +21,7 @@ import { isDefined } from '../../../../../base/common/types.js';
21
21
  import { inlineCompletionIsVisible } from './inlineSuggestionItem.js';
22
22
 
23
23
  function provideInlineCompletions(providers, position, model, context, requestInfo, languageConfigurationService) {
24
- const requestUuid = 'icr-' + generateUuid();
24
+ const requestUuid = prefixedUuid('icr');
25
25
  const cancellationTokenSource = ( new CancellationTokenSource());
26
26
  let cancelReason = undefined;
27
27
  const contextWithUuid = { ...context, requestUuid: requestUuid };
@@ -58,6 +58,7 @@ function provideInlineCompletions(providers, position, model, context, requestIn
58
58
  }
59
59
  }
60
60
  let result;
61
+ const providerStartTime = Date.now();
61
62
  try {
62
63
  result = await provider.provideInlineCompletions(model, position, contextWithUuid, cancellationTokenSource.token);
63
64
  }
@@ -65,6 +66,7 @@ function provideInlineCompletions(providers, position, model, context, requestIn
65
66
  onUnexpectedExternalError(e);
66
67
  return undefined;
67
68
  }
69
+ const providerEndTime = Date.now();
68
70
  if (!result) {
69
71
  return undefined;
70
72
  }
@@ -78,7 +80,7 @@ function provideInlineCompletions(providers, position, model, context, requestIn
78
80
  return undefined;
79
81
  }
80
82
  for (const item of result.items) {
81
- data.push(toInlineSuggestData(item, list, defaultReplaceRange, model, languageConfigurationService, contextWithUuid, requestInfo));
83
+ data.push(toInlineSuggestData(item, list, defaultReplaceRange, model, languageConfigurationService, contextWithUuid, requestInfo, { startTime: providerStartTime, endTime: providerEndTime }));
82
84
  }
83
85
  return list;
84
86
  }
@@ -112,7 +114,7 @@ function runWhenCancelled(token, callback) {
112
114
  return { dispose: () => listener.dispose() };
113
115
  }
114
116
  }
115
- function toInlineSuggestData(inlineCompletion, source, defaultReplaceRange, textModel, languageConfigurationService, context, requestInfo) {
117
+ function toInlineSuggestData(inlineCompletion, source, defaultReplaceRange, textModel, languageConfigurationService, context, requestInfo, providerRequestInfo) {
116
118
  let insertText;
117
119
  let snippetInfo;
118
120
  let range = inlineCompletion.range ? Range.lift(inlineCompletion.range) : defaultReplaceRange;
@@ -164,7 +166,8 @@ function toInlineSuggestData(inlineCompletion, source, defaultReplaceRange, text
164
166
  }
165
167
  const displayLocation = inlineCompletion.displayLocation ? {
166
168
  range: Range.lift(inlineCompletion.displayLocation.range),
167
- label: inlineCompletion.displayLocation.label
169
+ label: inlineCompletion.displayLocation.label,
170
+ kind: inlineCompletion.displayLocation.kind
168
171
  } : undefined;
169
172
  return ( new InlineSuggestData(
170
173
  range,
@@ -176,11 +179,13 @@ function toInlineSuggestData(inlineCompletion, source, defaultReplaceRange, text
176
179
  source,
177
180
  context,
178
181
  inlineCompletion.isInlineEdit ?? false,
179
- requestInfo
182
+ requestInfo,
183
+ providerRequestInfo,
184
+ inlineCompletion.correlationId
180
185
  ));
181
186
  }
182
187
  class InlineSuggestData {
183
- constructor(range, insertText, snippetInfo, displayLocation, additionalTextEdits, sourceInlineCompletion, source, context, isInlineEdit, _requestInfo) {
188
+ constructor(range, insertText, snippetInfo, displayLocation, additionalTextEdits, sourceInlineCompletion, source, context, isInlineEdit, _requestInfo, _providerRequestInfo, _correlationId) {
184
189
  this.range = range;
185
190
  this.insertText = insertText;
186
191
  this.snippetInfo = snippetInfo;
@@ -191,6 +196,8 @@ class InlineSuggestData {
191
196
  this.context = context;
192
197
  this.isInlineEdit = isInlineEdit;
193
198
  this._requestInfo = _requestInfo;
199
+ this._providerRequestInfo = _providerRequestInfo;
200
+ this._correlationId = _correlationId;
194
201
  this._didShow = false;
195
202
  this._timeUntilShown = undefined;
196
203
  this._showStartTime = undefined;
@@ -201,9 +208,11 @@ class InlineSuggestData {
201
208
  this._lastSetEndOfLifeReason = undefined;
202
209
  this._isPreceeded = false;
203
210
  this._partiallyAcceptedCount = 0;
211
+ this._partiallyAcceptedSinceOriginal = { characters: 0, ratio: 0, count: 0 };
204
212
  this._viewData = { editorType: _requestInfo.editorType };
205
213
  }
206
214
  get showInlineEditMenu() { return this.sourceInlineCompletion.showInlineEditMenu ?? false; }
215
+ get partialAccepts() { return this._partiallyAcceptedSinceOriginal; }
207
216
  getSingleTextEdit() {
208
217
  return ( new TextReplacement(this.range, this.insertText));
209
218
  }
@@ -221,8 +230,11 @@ class InlineSuggestData {
221
230
  await commandService.executeCommand(this.sourceInlineCompletion.shownCommand.id, ...(this.sourceInlineCompletion.shownCommand.arguments || []));
222
231
  }
223
232
  }
224
- reportPartialAccept(acceptedCharacters, info) {
233
+ reportPartialAccept(acceptedCharacters, info, partialAcceptance) {
225
234
  this._partiallyAcceptedCount++;
235
+ this._partiallyAcceptedSinceOriginal.characters += partialAcceptance.characters;
236
+ this._partiallyAcceptedSinceOriginal.ratio = Math.min(this._partiallyAcceptedSinceOriginal.ratio + (1 - this._partiallyAcceptedSinceOriginal.ratio) * partialAcceptance.ratio, 1);
237
+ this._partiallyAcceptedSinceOriginal.count += partialAcceptance.count;
226
238
  this.source.provider.handlePartialAccept?.(this.source.inlineSuggestions, this.sourceInlineCompletion, acceptedCharacters, info);
227
239
  }
228
240
  reportEndOfLife(reason) {
@@ -240,12 +252,18 @@ class InlineSuggestData {
240
252
  if (this.source.provider.handleEndOfLifetime) {
241
253
  const summary = {
242
254
  requestUuid: this.context.requestUuid,
255
+ correlationId: this._correlationId,
243
256
  partiallyAccepted: this._partiallyAcceptedCount,
257
+ partiallyAcceptedCountSinceOriginal: this._partiallyAcceptedSinceOriginal.count,
258
+ partiallyAcceptedRatioSinceOriginal: this._partiallyAcceptedSinceOriginal.ratio,
259
+ partiallyAcceptedCharactersSinceOriginal: this._partiallyAcceptedSinceOriginal.characters,
244
260
  shown: this._didShow,
245
261
  shownDuration: this._shownDuration,
246
262
  shownDurationUncollapsed: this._showUncollapsedDuration,
247
263
  preceeded: this._isPreceeded,
248
264
  timeUntilShown: this._timeUntilShown,
265
+ timeUntilProviderRequest: this._providerRequestInfo.startTime - this._requestInfo.startTime,
266
+ timeUntilProviderResponse: this._providerRequestInfo.endTime - this._requestInfo.startTime,
249
267
  editorType: this._viewData.editorType,
250
268
  languageId: this._requestInfo.languageId,
251
269
  requestReason: this._requestInfo.reason,
@@ -266,8 +284,12 @@ class InlineSuggestData {
266
284
  this._viewData.error = message;
267
285
  }
268
286
  }
269
- setIsPreceeded() {
287
+ setIsPreceeded(partialAccepts) {
270
288
  this._isPreceeded = true;
289
+ if (this._partiallyAcceptedSinceOriginal.characters !== 0 || this._partiallyAcceptedSinceOriginal.ratio !== 0 || this._partiallyAcceptedSinceOriginal.count !== 0) {
290
+ console.warn('Expected partiallyAcceptedCountSinceOriginal to be { characters: 0, rate: 0, partialAcceptances: 0 } before setIsPreceeded.');
291
+ }
292
+ this._partiallyAcceptedSinceOriginal = partialAccepts;
271
293
  }
272
294
  setEndOfLifeReason(reason) {
273
295
  this.reportInlineEditHidden();
@@ -31,6 +31,7 @@ export declare class SuggestItemInfo {
31
31
  readonly insertText: string;
32
32
  readonly completionItemKind: CompletionItemKind;
33
33
  readonly isSnippetText: boolean;
34
+ readonly listIncomplete: boolean;
34
35
  static fromSuggestion(suggestController: SuggestController, model: ITextModel, position: Position, item: CompletionItem, toggleMode: boolean): SuggestItemInfo;
35
36
  private constructor();
36
37
  equals(other: SuggestItemInfo): boolean;
@@ -149,14 +149,16 @@ class SuggestItemInfo {
149
149
  Range.fromPositions(position.delta(0, -info.overwriteBefore), position.delta(0, Math.max(info.overwriteAfter, 0))),
150
150
  insertText,
151
151
  item.completion.kind,
152
- isSnippetText
152
+ isSnippetText,
153
+ item.container.incomplete ?? false
153
154
  ));
154
155
  }
155
- constructor(range, insertText, completionItemKind, isSnippetText) {
156
+ constructor(range, insertText, completionItemKind, isSnippetText, listIncomplete) {
156
157
  this.range = range;
157
158
  this.insertText = insertText;
158
159
  this.completionItemKind = completionItemKind;
159
160
  this.isSnippetText = isSnippetText;
161
+ this.listIncomplete = listIncomplete;
160
162
  }
161
163
  equals(other) {
162
164
  return this.range.equalsRange(other.range)
@@ -29,7 +29,6 @@ export declare class TypingInterval extends Disposable {
29
29
  getTypingInterval(): TypingIntervalResult;
30
30
  constructor(_textModel: ITextModel);
31
31
  private _updateTypingSpeed;
32
- private _calculateEffectiveCharacterCount;
33
32
  private _getActualCharacterCount;
34
33
  private _isUserTyping;
35
34
  private _isUserTypingReason;
@@ -27,7 +27,10 @@ class TypingInterval extends Disposable {
27
27
  }
28
28
  _updateTypingSpeed(change) {
29
29
  const now = Date.now();
30
- const characterCount = this._calculateEffectiveCharacterCount(change);
30
+ if (!this._isUserTyping(change)) {
31
+ this._finalizeCurrentSession();
32
+ return;
33
+ }
31
34
  if (this._currentSession && (now - this._lastChangeTime) > TypingInterval.MAX_SESSION_GAP_MS) {
32
35
  this._finalizeCurrentSession();
33
36
  }
@@ -39,17 +42,10 @@ class TypingInterval extends Disposable {
39
42
  };
40
43
  }
41
44
  this._currentSession.endTime = now;
42
- this._currentSession.characterCount += characterCount;
45
+ this._currentSession.characterCount += this._getActualCharacterCount(change);
43
46
  this._lastChangeTime = now;
44
47
  this._cacheInvalidated = true;
45
48
  }
46
- _calculateEffectiveCharacterCount(change) {
47
- const actualCharCount = this._getActualCharacterCount(change);
48
- if (this._isUserTyping(change)) {
49
- return actualCharCount;
50
- }
51
- return actualCharCount > 0 ? 1 : 0;
52
- }
53
49
  _getActualCharacterCount(change) {
54
50
  let totalChars = 0;
55
51
  for (const c of change.changes) {
@@ -59,7 +55,7 @@ class TypingInterval extends Disposable {
59
55
  }
60
56
  _isUserTyping(change) {
61
57
  if (!change.detailedReasons || change.detailedReasons.length === 0) {
62
- return true;
58
+ return false;
63
59
  }
64
60
  for (const reason of change.detailedReasons) {
65
61
  if (this._isUserTypingReason(reason)) {
@@ -1,8 +1,8 @@
1
1
  import { Disposable } from "../../../../base/common/lifecycle.js";
2
2
  import { IObservable } from "../../../../base/common/observable.js";
3
3
  import { URI } from "../../../../base/common/uri.js";
4
- import { ICommandService } from "../../../../platform/commands/common/commands.service.js";
5
4
  import { IContextKeyService } from "../../../../platform/contextkey/common/contextkey.service.js";
5
+ import { IDataChannelService } from "../../../../platform/dataChannel/common/dataChannel.service.js";
6
6
  export interface IRecordableLogEntry {
7
7
  sourceId: string;
8
8
  time: number;
@@ -40,13 +40,13 @@ interface IFetchResult {
40
40
  */
41
41
  export declare function formatRecordableLogEntry<T extends IRecordableLogEntry>(entry: T): string;
42
42
  export declare class StructuredLogger<T extends IRecordableLogEntry> extends Disposable {
43
- private readonly _contextKey;
43
+ private readonly _key;
44
44
  private readonly _contextKeyService;
45
- private readonly _commandService;
45
+ private readonly _dataChannelService;
46
46
  static cast<T extends IRecordableLogEntry>(): typeof StructuredLogger<T>;
47
47
  readonly isEnabled: IObservable<boolean>;
48
- private readonly _contextKeyValue;
49
- constructor(_contextKey: string, _contextKeyService: IContextKeyService, _commandService: ICommandService);
48
+ private readonly _isEnabledContextKeyValue;
49
+ constructor(_key: string, _contextKeyService: IContextKeyService, _dataChannelService: IDataChannelService);
50
50
  log(data: T): boolean;
51
51
  }
52
52
  export {};
@@ -2,41 +2,37 @@
2
2
  import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
3
3
  import { Disposable } from '../../../../base/common/lifecycle.js';
4
4
  import '../../../../base/common/observableInternal/index.js';
5
- import { ICommandService } from '../../../../platform/commands/common/commands.service.js';
6
5
  import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.service.js';
6
+ import { IDataChannelService } from '../../../../platform/dataChannel/common/dataChannel.service.js';
7
7
  import { observableFromEvent } from '../../../../base/common/observableInternal/observables/observableFromEvent.js';
8
8
 
9
9
  function formatRecordableLogEntry(entry) {
10
- return entry.sourceId + ' @@ ' + JSON.stringify({ ...entry, sourceId: undefined });
10
+ return entry.sourceId + ' @@ ' + JSON.stringify({ ...entry, modelUri: entry.modelUri?.toString(), sourceId: undefined });
11
11
  }
12
12
  let StructuredLogger = class StructuredLogger extends Disposable {
13
13
  static cast() {
14
14
  return this;
15
15
  }
16
- constructor(_contextKey, _contextKeyService, _commandService) {
16
+ constructor(_key, _contextKeyService, _dataChannelService) {
17
17
  super();
18
- this._contextKey = _contextKey;
18
+ this._key = _key;
19
19
  this._contextKeyService = _contextKeyService;
20
- this._commandService = _commandService;
21
- this._contextKeyValue = observableContextKey(this._contextKey, this._contextKeyService).recomputeInitiallyAndOnChange(this._store);
22
- this.isEnabled = ( this._contextKeyValue.map(v => v !== undefined));
20
+ this._dataChannelService = _dataChannelService;
21
+ this._isEnabledContextKeyValue = observableContextKey('structuredLogger.enabled:' + this._key, this._contextKeyService).recomputeInitiallyAndOnChange(this._store);
22
+ this.isEnabled = ( this._isEnabledContextKeyValue.map(v => v !== undefined));
23
23
  }
24
24
  log(data) {
25
- const commandId = this._contextKeyValue.get();
26
- if (!commandId) {
25
+ const enabled = this._isEnabledContextKeyValue.get();
26
+ if (!enabled) {
27
27
  return false;
28
28
  }
29
- try {
30
- this._commandService.executeCommand(commandId, data).catch(() => { });
31
- }
32
- catch (e) {
33
- }
29
+ this._dataChannelService.getDataChannel('structuredLogger:' + this._key).sendData(data);
34
30
  return true;
35
31
  }
36
32
  };
37
33
  StructuredLogger = ( __decorate([
38
34
  ( __param(1, IContextKeyService)),
39
- ( __param(2, ICommandService))
35
+ ( __param(2, IDataChannelService))
40
36
  ], StructuredLogger));
41
37
  function observableContextKey(key, contextKeyService) {
42
38
  return observableFromEvent(contextKeyService.onDidChangeContext, () => contextKeyService.getContextKeyValue(key));
@@ -52,7 +52,7 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
52
52
  return {
53
53
  title: options.title,
54
54
  icon: options.icon,
55
- keybinding: typeof options.commandId === 'string' ? this._getKeybinding(options.commandArgs ? undefined : options.commandId) : derived(reader => typeof options.commandId === 'string' ? undefined : this._getKeybinding(options.commandArgs ? undefined : options.commandId.read(reader)).read(reader)),
55
+ keybinding: typeof options.commandId === 'string' ? this._getKeybinding(options.commandArgs ? undefined : options.commandId) : derived(this, reader => typeof options.commandId === 'string' ? undefined : this._getKeybinding(options.commandArgs ? undefined : options.commandId.read(reader)).read(reader)),
56
56
  isActive: ( activeElement.map(v => v === options.id)),
57
57
  onHoverChange: v => activeElement.set(v ? options.id : undefined, undefined),
58
58
  onAction: () => {
@@ -64,13 +64,13 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
64
64
  const title = header(this._model.displayName);
65
65
  const gotoAndAccept = option(createOptionArgs({
66
66
  id: 'gotoAndAccept',
67
- title: `${( localize(1296, "Go To"))} / ${( localize(1297, "Accept"))}`,
67
+ title: `${( localize(1298, "Go To"))} / ${( localize(1299, "Accept"))}`,
68
68
  icon: Codicon.check,
69
69
  commandId: inlineSuggestCommitId
70
70
  }));
71
71
  const reject = option(createOptionArgs({
72
72
  id: 'reject',
73
- title: ( localize(1298, "Reject")),
73
+ title: ( localize(1300, "Reject")),
74
74
  icon: Codicon.close,
75
75
  commandId: hideInlineCompletionId
76
76
  }));
@@ -84,19 +84,19 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
84
84
  const toggleCollapsedMode = ( this._inlineEditsShowCollapsed.map(showCollapsed => showCollapsed ?
85
85
  option(createOptionArgs({
86
86
  id: 'showExpanded',
87
- title: ( localize(1299, "Show Expanded")),
87
+ title: ( localize(1301, "Show Expanded")),
88
88
  icon: Codicon.expandAll,
89
89
  commandId: toggleShowCollapsedId
90
90
  }))
91
91
  : option(createOptionArgs({
92
92
  id: 'showCollapsed',
93
- title: ( localize(1300, "Show Collapsed")),
93
+ title: ( localize(1302, "Show Collapsed")),
94
94
  icon: Codicon.collapseAll,
95
95
  commandId: toggleShowCollapsedId
96
96
  }))));
97
97
  const settings = option(createOptionArgs({
98
98
  id: 'settings',
99
- title: ( localize(1301, "Settings")),
99
+ title: ( localize(1303, "Settings")),
100
100
  icon: Codicon.gear,
101
101
  commandId: 'workbench.action.openSettings',
102
102
  commandArgs: ['@tag:nextEditSuggestions']
@@ -156,7 +156,7 @@ function header(title) {
156
156
  }, [title]);
157
157
  }
158
158
  function option(props) {
159
- return derived((_reader) => n.div({
159
+ return derived({ name: 'inlineEdits.option' }, (_reader) => n.div({
160
160
  class: ['monaco-menu-option', props.isActive?.map(v => v && 'active')],
161
161
  onmouseenter: () => props.onHoverChange?.(true),
162
162
  onmouseleave: () => props.onHoverChange?.(false),
@@ -197,7 +197,7 @@ function option(props) {
197
197
  ]));
198
198
  }
199
199
  function actionBar(actions, options) {
200
- return derived((_reader) => n.div({
200
+ return derived({ name: 'inlineEdits.actionBar' }, (_reader) => n.div({
201
201
  class: ['action-widget-action-bar'],
202
202
  style: {
203
203
  padding: '0 10px',
@@ -80,7 +80,7 @@ let InlineEditsGutterIndicator = class InlineEditsGutterIndicator extends Dispos
80
80
  }
81
81
  }));
82
82
  this._originalRangeObs = mapOutFalsy(this._originalRange);
83
- this._state = derived(reader => {
83
+ this._state = derived(this, reader => {
84
84
  const range = this._originalRangeObs.read(reader);
85
85
  if (!range) {
86
86
  return undefined;
@@ -173,7 +173,7 @@ let InlineEditsGutterIndicator = class InlineEditsGutterIndicator extends Dispos
173
173
  }
174
174
  const layout = this._editorObs.layoutInfo.read(reader);
175
175
  const lineHeight = this._editorObs.observeLineHeightForLine(( s.range.map(r => r.startLineNumber))).read(reader);
176
- const gutterViewPortPadding = 1;
176
+ const gutterViewPortPadding = 2;
177
177
  const gutterWidthWithoutPadding = layout.decorationsLeft + layout.decorationsWidth - layout.glyphMarginLeft - 2 * gutterViewPortPadding;
178
178
  const gutterHeightWithoutPadding = layout.height - 2 * gutterViewPortPadding;
179
179
  const gutterViewPortWithStickyScroll = Rect.fromLeftTopWidthHeight(gutterViewPortPadding, gutterViewPortPadding, gutterWidthWithoutPadding, gutterHeightWithoutPadding);
@@ -188,7 +188,7 @@ let InlineEditsGutterIndicator = class InlineEditsGutterIndicator extends Dispos
188
188
  const iconNoneDocked = ( this._tabAction.map(
189
189
  action => action === InlineEditTabAction.Accept ? Codicon.keyboardTab : Codicon.arrowRight
190
190
  ));
191
- const iconDocked = derived(reader => {
191
+ const iconDocked = derived(this, reader => {
192
192
  if (this._isHoveredOverIconDebounced.read(reader) || this._isHoveredOverInlineEditDebounced.read(reader)) {
193
193
  return Codicon.check;
194
194
  }
@@ -14,7 +14,7 @@ class InlineEditModel {
14
14
  this.inlineEdit = inlineEdit;
15
15
  this.tabAction = tabAction;
16
16
  this.action = this.inlineEdit.inlineCompletion.action;
17
- this.displayName = this.inlineEdit.inlineCompletion.source.provider.displayName ?? ( localize(1302, "Inline Edit"));
17
+ this.displayName = this.inlineEdit.inlineCompletion.source.provider.displayName ?? ( localize(1304, "Inline Edit"));
18
18
  this.extensionCommands = this.inlineEdit.inlineCompletion.source.inlineSuggestions.commands ?? [];
19
19
  this.isInDiffEditor = this._model.isInDiffEditor;
20
20
  this.displayLocation = this.inlineEdit.inlineCompletion.displayLocation;
@@ -29,10 +29,11 @@ import { InlineEditsWordReplacementView } from './inlineEditsViews/inlineEditsWo
29
29
  import { OriginalEditorInlineDiffView } from './inlineEditsViews/originalEditorInlineDiffView.js';
30
30
  import { createReindentEdit, applyEditToModifiedRangeMappings } from './utils/utils.js';
31
31
  import * as view from './view.css';
32
+ import { $ } from '../../../../../../base/browser/dom.js';
32
33
  import { derived, derivedOpts } from '../../../../../../base/common/observableInternal/observables/derived.js';
33
34
  import { observableValue } from '../../../../../../base/common/observableInternal/observables/observableValue.js';
34
35
  import { mapObservableArrayCached } from '../../../../../../base/common/observableInternal/utils/utils.js';
35
- import { autorunWithStore } from '../../../../../../base/common/observableInternal/reactions/autorun.js';
36
+ import { autorunWithStore, autorun } from '../../../../../../base/common/observableInternal/reactions/autorun.js';
36
37
 
37
38
  registerCss(view);
38
39
  let InlineEditsView = class InlineEditsView extends Disposable {
@@ -62,7 +63,7 @@ let InlineEditsView = class InlineEditsView extends Disposable {
62
63
  return undefined;
63
64
  }
64
65
  if (state.kind === InlineCompletionViewKind.SideBySide) {
65
- const indentationAdjustmentEdit = createReindentEdit(newText, inlineEdit.modifiedLineRange);
66
+ const indentationAdjustmentEdit = createReindentEdit(newText, inlineEdit.modifiedLineRange, textModel.getOptions().tabSize);
66
67
  newText = indentationAdjustmentEdit.applyToString(newText);
67
68
  mappings = applyEditToModifiedRangeMappings(mappings, indentationAdjustmentEdit);
68
69
  diff = lineRangeMappingFromRangeMappings(mappings, inlineEdit.originalText, ( new StringText(newText)));
@@ -211,6 +212,30 @@ let InlineEditsView = class InlineEditsView extends Disposable {
211
212
  this._wordReplacementViews.recomputeInitiallyAndOnChange(this._store);
212
213
  this._indicatorCyclicDependencyCircuitBreaker.set(true, undefined);
213
214
  this._register(this._instantiationService.createInstance(InlineEditsOnboardingExperience, this._host, this._model, this._indicator, this._inlineCollapsedView));
215
+ const minEditorScrollHeight = derived(this, reader => {
216
+ return Math.max(...( this._wordReplacementViews.read(reader).map(v => v.minEditorScrollHeight.read(reader))), this._lineReplacementView.minEditorScrollHeight.read(reader), this._customView.minEditorScrollHeight.read(reader));
217
+ }).recomputeInitiallyAndOnChange(this._store);
218
+ const textModel = this._editor.getModel();
219
+ let viewZoneId;
220
+ this._register(autorun(reader => {
221
+ const minScrollHeight = minEditorScrollHeight.read(reader);
222
+ this._editor.changeViewZones(accessor => {
223
+ const scrollHeight = this._editor.getScrollHeight();
224
+ const viewZoneHeight = minScrollHeight - scrollHeight + 1 ;
225
+ if (viewZoneHeight !== 0 && viewZoneId) {
226
+ accessor.removeZone(viewZoneId);
227
+ viewZoneId = undefined;
228
+ }
229
+ if (viewZoneHeight <= 0) {
230
+ return;
231
+ }
232
+ viewZoneId = accessor.addZone({
233
+ afterLineNumber: textModel.getLineCount(),
234
+ heightInPx: viewZoneHeight,
235
+ domNode: $('div.minScrollHeightViewZone'),
236
+ });
237
+ });
238
+ }));
214
239
  this._constructorDone.set(true, undefined);
215
240
  }
216
241
  getCacheId(model) {
@@ -249,11 +274,15 @@ let InlineEditsView = class InlineEditsView extends Disposable {
249
274
  }
250
275
  const allInnerChangesNotTooLong = inner.every(m => TextLength.ofRange(m.originalRange).columnCount < InlineEditsWordReplacementView.MAX_LENGTH && TextLength.ofRange(m.modifiedRange).columnCount < InlineEditsWordReplacementView.MAX_LENGTH);
251
276
  if (allInnerChangesNotTooLong && isSingleInnerEdit && numOriginalLines === 1 && numModifiedLines === 1) {
252
- if (!( inner.some(m => m.originalRange.isEmpty())) ||
253
- !( growEditsUntilWhitespace(( inner.map(m => ( new TextReplacement(m.originalRange, '')))), inlineEdit.originalText).some(
254
- e => e.range.isEmpty() && TextLength.ofRange(e.range).columnCount < InlineEditsWordReplacementView.MAX_LENGTH
255
- ))) {
256
- return InlineCompletionViewKind.WordReplacements;
277
+ const modifiedText = ( inner.map(m => newText.getValueOfRange(m.modifiedRange)));
278
+ const originalText = ( inner.map(m => model.inlineEdit.originalText.getValueOfRange(m.originalRange)));
279
+ if (!( modifiedText.some(v => v.includes('\t'))) && !( originalText.some(v => v.includes('\t')))) {
280
+ if (!( inner.some(m => m.originalRange.isEmpty())) ||
281
+ !( growEditsUntilWhitespace(( inner.map(m => ( new TextReplacement(m.originalRange, '')))), inlineEdit.originalText).some(
282
+ e => e.range.isEmpty() && TextLength.ofRange(e.range).columnCount < InlineEditsWordReplacementView.MAX_LENGTH
283
+ ))) {
284
+ return InlineCompletionViewKind.WordReplacements;
285
+ }
257
286
  }
258
287
  }
259
288
  }
@@ -10,6 +10,7 @@ export declare enum InlineEditTabAction {
10
10
  }
11
11
  export interface IInlineEditsView {
12
12
  isHovered: IObservable<boolean>;
13
+ minEditorScrollHeight?: IObservable<number>;
13
14
  onDidClick: Event<IMouseEvent>;
14
15
  }
15
16
  export interface IInlineEditHost {
@@ -15,6 +15,7 @@ export declare class InlineEditsCustomView extends Disposable implements IInline
15
15
  readonly isHovered: IObservable<boolean>;
16
16
  private readonly _viewRef;
17
17
  private readonly _editorObs;
18
+ readonly minEditorScrollHeight: IObservable<number>;
18
19
  constructor(_editor: ICodeEditor, displayLocation: IObservable<InlineCompletionDisplayLocation | undefined>, tabAction: IObservable<InlineEditTabAction>, themeService: IThemeService, _languageService: ILanguageService);
19
20
  private fitsInsideViewport;
20
21
  private getState;
@@ -22,16 +22,17 @@ import { renderLines, LineSource, RenderOptions } from '../../../../../../browse
22
22
  import { EditorOption } from '../../../../../../common/config/editorOptions.js';
23
23
  import { Rect } from '../../../../../../common/core/2d/rect.js';
24
24
  import { LineRange } from '../../../../../../common/core/ranges/lineRange.js';
25
+ import { InlineCompletionDisplayLocationKind } from '../../../../../../common/languages.js';
25
26
  import { ILanguageService } from '../../../../../../common/languages/language.service.js';
26
27
  import { TokenArray, LineTokens } from '../../../../../../common/tokens/lineTokens.js';
27
28
  import { InlineEditTabAction } from '../inlineEditsViewInterface.js';
28
29
  import { inlineEditIndicatorsuccessfulBackground, inlineEditIndicatorPrimaryBackground, inlineEditIndicatorSecondaryBackground, getEditorBlendedColor } from '../theme.js';
29
30
  import { maxContentWidthInRange, getContentRenderWidth, rectToProps } from '../utils/utils.js';
30
31
  import { observableValue } from '../../../../../../../base/common/observableInternal/observables/observableValue.js';
32
+ import { derived } from '../../../../../../../base/common/observableInternal/observables/derived.js';
31
33
  import { derivedObservableWithCache } from '../../../../../../../base/common/observableInternal/utils/utils.js';
32
34
  import { constObservable } from '../../../../../../../base/common/observableInternal/observables/constObservable.js';
33
35
  import { autorun } from '../../../../../../../base/common/observableInternal/reactions/autorun.js';
34
- import { derived } from '../../../../../../../base/common/observableInternal/observables/derived.js';
35
36
 
36
37
  const MIN_END_OF_LINE_PADDING = 14;
37
38
  const PADDING_VERTICALLY = 0;
@@ -69,6 +70,13 @@ let InlineEditsCustomView = class InlineEditsCustomView extends Disposable {
69
70
  }));
70
71
  const state = ( displayLocation.map(dl => dl ? this.getState(dl) : undefined));
71
72
  const view = ( state.map(s => s ? this.getRendering(s, styles) : undefined));
73
+ this.minEditorScrollHeight = derived(this, reader => {
74
+ const s = state.read(reader);
75
+ if (!s) {
76
+ return 0;
77
+ }
78
+ return s.rect.read(reader).bottom + this._editor.getScrollTop();
79
+ });
72
80
  const overlay = n.div({
73
81
  class: 'inline-edits-custom-view',
74
82
  style: {
@@ -115,7 +123,7 @@ let InlineEditsCustomView = class InlineEditsCustomView extends Disposable {
115
123
  return maxOriginalContent + maxModifiedContent + padding < editorWidth - editorContentLeft - editorVerticalScrollbar - minimapWidth;
116
124
  }
117
125
  getState(displayLocation) {
118
- const contentState = derived((reader) => {
126
+ const contentState = derived(this, (reader) => {
119
127
  const startLineNumber = displayLocation.range.startLineNumber;
120
128
  const endLineNumber = displayLocation.range.endLineNumber;
121
129
  const startColumn = displayLocation.range.startColumn;
@@ -137,7 +145,7 @@ let InlineEditsCustomView = class InlineEditsCustomView extends Disposable {
137
145
  const startLineNumber = displayLocation.range.startLineNumber;
138
146
  const endLineNumber = displayLocation.range.endLineNumber;
139
147
  const fitsInsideViewport = this.fitsInsideViewport(( new LineRange(startLineNumber, endLineNumber + 1)), displayLocation.label, undefined);
140
- const rect = derived((reader) => {
148
+ const rect = derived(this, reader => {
141
149
  const w = this._editorObs.getOption(EditorOption.fontInfo).read(reader).typicalHalfwidthCharacterWidth;
142
150
  const { lineWidth, lineWidthBelow, lineWidthAbove, startContentLeftOffset, endContentLeftOffset } = contentState.read(reader);
143
151
  const contentLeft = this._editorObs.layoutInfoContentLeft.read(reader);
@@ -188,14 +196,15 @@ let InlineEditsCustomView = class InlineEditsCustomView extends Disposable {
188
196
  });
189
197
  return {
190
198
  rect,
191
- label: displayLocation.label
199
+ label: displayLocation.label,
200
+ kind: displayLocation.kind
192
201
  };
193
202
  }
194
203
  getRendering(state, styles) {
195
204
  const line = createElement('div');
196
205
  const t = this._editor.getModel().tokenization.tokenizeLinesAt(1, [state.label])?.[0];
197
206
  let tokens;
198
- if (t) {
207
+ if (t && state.kind === InlineCompletionDisplayLocationKind.Code) {
199
208
  tokens = TokenArray.fromLineTokens(t).toLineTokens(state.label, this._languageService.languageIdCodec);
200
209
  }
201
210
  else {
@@ -221,6 +230,9 @@ let InlineEditsCustomView = class InlineEditsCustomView extends Disposable {
221
230
  justifyContent: 'center',
222
231
  whiteSpace: 'nowrap',
223
232
  },
233
+ onmousedown: e => {
234
+ e.preventDefault();
235
+ },
224
236
  onclick: (e) => { this._onDidClick.fire(( new StandardMouseEvent(getWindow(e), e))); }
225
237
  }, [
226
238
  line
@@ -52,7 +52,7 @@ class InlineEditsDeletionView extends Disposable {
52
52
  return Math.max(maxWidth, lastValue ?? 0);
53
53
  });
54
54
  }).map((v, r) => v.read(r)));
55
- this._maxPrefixTrim = derived(reader => {
55
+ this._maxPrefixTrim = derived(this, reader => {
56
56
  const state = this._uiState.read(reader);
57
57
  if (!state) {
58
58
  return { prefixTrim: 0, prefixLeftOffset: 0 };
@@ -87,7 +87,7 @@ class InlineEditsDeletionView extends Disposable {
87
87
  }).recomputeInitiallyAndOnChange(this._store);
88
88
  this._originalOverlay = n.div({
89
89
  style: { pointerEvents: 'none', }
90
- }, derived(reader => {
90
+ }, derived(this, reader => {
91
91
  const layoutInfoObs = mapOutFalsy(this._editorLayoutInfo).read(reader);
92
92
  if (!layoutInfoObs) {
93
93
  return undefined;
@@ -95,7 +95,7 @@ class InlineEditsDeletionView extends Disposable {
95
95
  const overlayhider = ( layoutInfoObs.map(
96
96
  layoutInfo => Rect.fromLeftTopRightBottom(layoutInfo.contentLeft - BORDER_RADIUS - BORDER_WIDTH, layoutInfo.codeRect.top, layoutInfo.contentLeft, layoutInfo.codeRect.bottom)
97
97
  ));
98
- const overlayRect = derived(reader => {
98
+ const overlayRect = derived(this, reader => {
99
99
  const rect = layoutInfoObs.read(reader).codeRect;
100
100
  const overlayHider = overlayhider.read(reader);
101
101
  return rect.intersectHorizontal(( new OffsetRange(overlayHider.left, Number.MAX_SAFE_INTEGER)));
@@ -162,7 +162,7 @@ class InlineEditsDeletionView extends Disposable {
162
162
  domNode: this._nonOverflowView.element,
163
163
  position: constObservable(null),
164
164
  allowEditorOverflow: false,
165
- minContentWidthInPx: derived(reader => {
165
+ minContentWidthInPx: derived(this, reader => {
166
166
  const info = this._editorLayoutInfo.read(reader);
167
167
  if (info === null) {
168
168
  return 0;
@@ -79,7 +79,7 @@ let InlineEditsInsertionView = class InlineEditsInsertionView extends Disposable
79
79
  }
80
80
  return { topOffset: linesTop * lineHeight, bottomOffset: linesBottom * lineHeight, linesTop, linesBottom };
81
81
  });
82
- this._maxPrefixTrim = derived(reader => {
82
+ this._maxPrefixTrim = derived(this, reader => {
83
83
  const state = this._state.read(reader);
84
84
  if (!state) {
85
85
  return { prefixLeftOffset: 0, prefixTrim: 0 };
@@ -176,7 +176,7 @@ let InlineEditsInsertionView = class InlineEditsInsertionView extends Disposable
176
176
  }).recomputeInitiallyAndOnChange(this._store);
177
177
  this._modifiedOverlay = n.div({
178
178
  style: { pointerEvents: 'none', }
179
- }, derived(reader => {
179
+ }, derived(this, reader => {
180
180
  const overlayLayoutObs = mapOutFalsy(this._overlayLayout).read(reader);
181
181
  if (!overlayLayoutObs) {
182
182
  return undefined;
@@ -249,7 +249,7 @@ let InlineEditsInsertionView = class InlineEditsInsertionView extends Disposable
249
249
  domNode: this._view.element,
250
250
  position: constObservable(null),
251
251
  allowEditorOverflow: false,
252
- minContentWidthInPx: derived(reader => {
252
+ minContentWidthInPx: derived(this, reader => {
253
253
  const info = this._overlayLayout.read(reader);
254
254
  if (info === null) {
255
255
  return 0;