@codingame/monaco-vscode-api 10.1.0 → 10.1.2

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 (410) hide show
  1. package/README.md +137 -305
  2. package/package.json +8 -15
  3. package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +1 -1
  4. package/vscode/src/vs/base/browser/ui/dialog/dialog.js +6 -6
  5. package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
  6. package/vscode/src/vs/base/browser/ui/findinput/findInput.js +1 -1
  7. package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +3 -3
  8. package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -2
  9. package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +6 -6
  10. package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +9 -9
  11. package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +1 -1
  12. package/vscode/src/vs/base/common/actions.js +1 -1
  13. package/vscode/src/vs/base/common/date.js +61 -61
  14. package/vscode/src/vs/base/common/errorMessage.js +6 -15
  15. package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
  16. package/vscode/src/vs/base/common/keybindingLabels.js +20 -20
  17. package/vscode/src/vs/base/common/worker/simpleWorkerBootstrap.js +23 -0
  18. package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +1 -1
  19. package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
  20. package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +1 -1
  21. package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -1
  22. package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
  23. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
  24. package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
  25. package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +14 -14
  26. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
  27. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
  28. package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
  29. package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +4 -4
  30. package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +2 -2
  31. package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
  32. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
  33. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
  34. package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +51 -51
  35. package/vscode/src/vs/editor/common/config/editorOptions.js +368 -368
  36. package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
  37. package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
  38. package/vscode/src/vs/editor/common/model/editStack.js +1 -1
  39. package/vscode/src/vs/editor/common/services/editorWorkerBootstrap.js +3 -8
  40. package/vscode/src/vs/editor/common/standaloneStrings.js +32 -32
  41. package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
  42. package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
  43. package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
  44. package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
  45. package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
  46. package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
  47. package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
  48. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +28 -28
  49. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
  50. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
  51. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
  52. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
  53. package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
  54. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
  55. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
  56. package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
  57. package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
  58. package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
  59. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +3 -3
  60. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +7 -7
  61. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
  62. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +1 -1
  63. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
  64. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
  65. package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
  66. package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
  67. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +27 -27
  68. package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
  69. package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
  70. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
  71. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
  72. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
  73. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  74. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
  75. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
  76. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
  77. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
  78. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
  79. package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
  80. package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
  81. package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
  82. package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +23 -23
  83. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
  84. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
  85. package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  86. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
  87. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
  88. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +14 -14
  89. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +8 -8
  90. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
  91. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
  92. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
  93. package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  94. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
  95. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
  96. package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
  97. package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
  98. package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
  99. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  100. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
  101. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +17 -17
  102. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  103. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
  104. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
  105. package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
  106. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
  107. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
  108. package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
  109. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
  110. package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  111. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  112. package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
  113. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
  114. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +16 -16
  115. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
  116. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
  117. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  118. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  119. package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  120. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
  121. package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  122. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  123. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
  124. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
  125. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +49 -49
  126. package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
  127. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
  128. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
  129. package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
  130. package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
  131. package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
  132. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  133. package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
  134. package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
  135. package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
  136. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -2
  137. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
  138. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +11 -7
  139. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
  140. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
  141. package/vscode/src/vs/platform/files/common/files.js +6 -6
  142. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  143. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
  144. package/vscode/src/vs/platform/list/browser/listService.js +27 -27
  145. package/vscode/src/vs/platform/log/common/log.js +6 -6
  146. package/vscode/src/vs/platform/markers/common/markers.js +3 -3
  147. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +8 -8
  148. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +6 -6
  149. package/vscode/src/vs/platform/request/common/request.js +14 -14
  150. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
  151. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
  152. package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
  153. package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
  154. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  155. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
  156. package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
  157. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
  158. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
  159. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
  160. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
  161. package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
  162. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
  163. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
  164. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
  165. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
  166. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
  167. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
  168. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
  169. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
  170. package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
  171. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +129 -129
  172. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
  173. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
  174. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
  175. package/vscode/src/vs/workbench/browser/editor.js +2 -2
  176. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
  177. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +3 -3
  178. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +41 -41
  179. package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
  180. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +131 -131
  181. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +16 -16
  182. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
  183. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +61 -61
  184. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
  185. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
  186. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
  187. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +15 -15
  188. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +17 -17
  189. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
  190. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
  191. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +9 -9
  192. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
  193. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
  194. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
  195. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +4 -4
  196. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
  197. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
  198. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
  199. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -7
  200. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
  201. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
  202. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
  203. package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
  204. package/vscode/src/vs/workbench/browser/workbench.contribution.js +217 -220
  205. package/vscode/src/vs/workbench/common/configuration.js +10 -10
  206. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
  207. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
  208. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
  209. package/vscode/src/vs/workbench/common/editor.js +4 -4
  210. package/vscode/src/vs/workbench/common/views.js +4 -4
  211. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
  212. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +17 -18
  213. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.js +5 -0
  214. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +7 -6
  215. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +8 -7
  216. package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +1 -1
  217. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +9 -9
  218. package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +2 -2
  219. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js +8 -8
  220. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCodeCitationContentPart.js +1 -1
  221. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCommandContentPart.js +1 -1
  222. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationContentPart.js +2 -2
  223. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatReferencesContentPart.js +8 -8
  224. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.js +2 -2
  225. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatToolInvocationPart.js +1 -1
  226. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTreeContentPart.js +1 -1
  227. package/vscode/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.js +3 -3
  228. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditingService.js +13 -12
  229. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +2 -2
  230. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +1 -1
  231. package/vscode/src/vs/workbench/contrib/chat/browser/chatImagePaste.js +1 -1
  232. package/vscode/src/vs/workbench/contrib/chat/browser/chatInlineAnchorWidget.js +5 -5
  233. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +12 -12
  234. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +12 -12
  235. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +3 -4
  236. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +15 -15
  237. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +4 -3
  238. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariablesConstant.js +2 -0
  239. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.js +1 -1
  240. package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +6 -6
  241. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +21 -21
  242. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +3 -3
  243. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
  244. package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +10 -10
  245. package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -6
  246. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
  247. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
  248. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -10
  249. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
  250. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
  251. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
  252. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  253. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
  254. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  255. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
  256. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
  257. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  258. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -5
  259. package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
  260. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
  261. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +13 -13
  262. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +10 -10
  263. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
  264. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
  265. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
  266. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +65 -65
  267. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
  268. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
  269. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +34 -34
  270. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
  271. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
  272. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +63 -63
  273. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
  274. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
  275. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
  276. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
  277. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
  278. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +173 -173
  279. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
  280. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
  281. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
  282. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
  283. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
  284. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
  285. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
  286. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
  287. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  288. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +52 -52
  289. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
  290. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
  291. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
  292. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
  293. package/vscode/src/vs/workbench/contrib/files/common/files.js +14 -14
  294. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
  295. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
  296. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
  297. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  298. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
  299. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +19 -19
  300. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +6 -6
  301. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
  302. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +41 -41
  303. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  304. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  305. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
  306. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +1 -1
  307. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +2 -2
  308. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
  309. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +3 -3
  310. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
  311. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +5 -5
  312. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
  313. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +4 -4
  314. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
  315. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
  316. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
  317. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
  318. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
  319. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +2 -2
  320. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
  321. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
  322. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
  323. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +12 -12
  324. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +10 -10
  325. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +50 -50
  326. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
  327. package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +13 -13
  328. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +5 -1
  329. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +10 -10
  330. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +1 -1
  331. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +2 -2
  332. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  333. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  334. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
  335. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
  336. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +5 -5
  337. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatControllerHolder.js +5 -0
  338. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
  339. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
  340. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
  341. package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
  342. package/vscode/src/vs/workbench/services/activity/common/activity.js +4 -4
  343. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
  344. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
  345. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +15 -15
  346. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
  347. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
  348. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
  349. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
  350. package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
  351. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
  352. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
  353. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +2 -2
  354. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
  355. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
  356. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
  357. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
  358. package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
  359. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
  360. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
  361. package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
  362. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
  363. package/workers/editor.worker.js +1 -1
  364. package/vscode/src/vs/base/common/processes.js +0 -25
  365. package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +0 -41
  366. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.js +0 -345
  367. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +0 -296
  368. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +0 -761
  369. package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +0 -29
  370. package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +0 -22
  371. package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +0 -48
  372. package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +0 -94
  373. package/vscode/src/vs/platform/terminal/common/environmentVariable.js +0 -7
  374. package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.js +0 -196
  375. package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +0 -40
  376. package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +0 -107
  377. package/vscode/src/vs/platform/terminal/common/terminalRecorder.js +0 -67
  378. package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +0 -346
  379. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +0 -167
  380. package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +0 -119
  381. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +0 -1770
  382. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +0 -40
  383. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +0 -25
  384. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIconPicker.js +0 -72
  385. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +0 -16
  386. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +0 -2218
  387. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +0 -628
  388. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +0 -143
  389. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalResizeDebouncer.js +0 -61
  390. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +0 -315
  391. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.js +0 -121
  392. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalUri.js +0 -39
  393. package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +0 -36
  394. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +0 -498
  395. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +0 -123
  396. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +0 -55
  397. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +0 -571
  398. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +0 -732
  399. package/vscode/src/vs/workbench/contrib/terminal/common/history.js +0 -378
  400. package/vscode/src/vs/workbench/contrib/terminal/common/terminalClipboard.js +0 -80
  401. package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +0 -282
  402. package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +0 -36
  403. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/media/terminalChatWidget.css.js +0 -4
  404. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +0 -46
  405. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +0 -303
  406. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +0 -203
  407. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/media/stickyScroll.css.js +0 -4
  408. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollColorRegistry.js +0 -22
  409. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollContribution.js +0 -97
  410. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollOverlay.js +0 -372
@@ -1,571 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
2
- import { coalesce } from '../../../../../base/common/arrays.js';
3
- import { Disposable, MutableDisposable, dispose, DisposableStore } from '../../../../../base/common/lifecycle.js';
4
- import { timeout } from '../../../../../base/common/async.js';
5
- import { IThemeService } from '../../../../../platform/theme/common/themeService.service.js';
6
- import { TERMINAL_OVERVIEW_RULER_CURSOR_FOREGROUND_COLOR } from '../../common/terminalColorRegistry.js';
7
- import { getWindow } from '../../../../../base/browser/dom.js';
8
- import { IConfigurationService } from '../../../../../platform/configuration/common/configuration.service.js';
9
- var Boundary;
10
- ( (function(Boundary) {
11
- Boundary[Boundary["Top"] = 0] = "Top";
12
- Boundary[Boundary["Bottom"] = 1] = "Bottom";
13
- })(Boundary || (Boundary = {})));
14
- let MarkNavigationAddon = class MarkNavigationAddon extends Disposable {
15
- activate(terminal) {
16
- this._terminal = terminal;
17
- this._register(this._terminal.onData(() => {
18
- this._currentMarker = Boundary.Bottom;
19
- }));
20
- }
21
- constructor(_capabilities, _configurationService, _themeService) {
22
- super();
23
- this._capabilities = _capabilities;
24
- this._configurationService = _configurationService;
25
- this._themeService = _themeService;
26
- this._currentMarker = Boundary.Bottom;
27
- this._selectionStart = null;
28
- this._isDisposable = false;
29
- this._commandGuideDecorations = this._register(( new MutableDisposable()));
30
- }
31
- _getMarkers(skipEmptyCommands) {
32
- const commandCapability = this._capabilities.get(2 );
33
- const partialCommandCapability = this._capabilities.get(3 );
34
- const markCapability = this._capabilities.get(4 );
35
- let markers = [];
36
- if (commandCapability) {
37
- markers = coalesce(( commandCapability.commands.filter(e => skipEmptyCommands ? e.exitCode !== undefined : true).map(e => e.promptStartMarker ?? e.marker)));
38
- if (commandCapability.currentCommand?.promptStartMarker && commandCapability.currentCommand.commandExecutedMarker) {
39
- markers.push(commandCapability.currentCommand?.promptStartMarker);
40
- }
41
- }
42
- else if (partialCommandCapability) {
43
- markers.push(...partialCommandCapability.commands);
44
- }
45
- if (markCapability && !skipEmptyCommands) {
46
- let next = markCapability.markers().next()?.value;
47
- const arr = [];
48
- while (next) {
49
- arr.push(next);
50
- next = markCapability.markers().next()?.value;
51
- }
52
- markers = arr;
53
- }
54
- return markers;
55
- }
56
- _findCommand(marker) {
57
- const commandCapability = this._capabilities.get(2 );
58
- if (commandCapability) {
59
- const command = commandCapability.commands.find(e => e.marker?.line === marker.line || e.promptStartMarker?.line === marker.line);
60
- if (command) {
61
- return command;
62
- }
63
- if (commandCapability.currentCommand) {
64
- return commandCapability.currentCommand;
65
- }
66
- }
67
- return undefined;
68
- }
69
- clear() {
70
- this._currentMarker = Boundary.Bottom;
71
- this._resetNavigationDecorations();
72
- this._selectionStart = null;
73
- }
74
- _resetNavigationDecorations() {
75
- if (this._navigationDecorations) {
76
- dispose(this._navigationDecorations);
77
- }
78
- this._navigationDecorations = [];
79
- }
80
- _isEmptyCommand(marker) {
81
- if (marker === Boundary.Bottom) {
82
- return true;
83
- }
84
- if (marker === Boundary.Top) {
85
- return !( this._getMarkers(true).map(e => e.line)).includes(0);
86
- }
87
- return !this._getMarkers(true).includes(marker);
88
- }
89
- scrollToPreviousMark(scrollPosition = 1 , retainSelection = false, skipEmptyCommands = true) {
90
- if (!this._terminal) {
91
- return;
92
- }
93
- if (!retainSelection) {
94
- this._selectionStart = null;
95
- }
96
- let markerIndex;
97
- const currentLineY = typeof this._currentMarker === 'object'
98
- ? this.getTargetScrollLine(this._currentMarker.line, scrollPosition)
99
- : Math.min(getLine(this._terminal, this._currentMarker), this._terminal.buffer.active.baseY);
100
- const viewportY = this._terminal.buffer.active.viewportY;
101
- if (typeof this._currentMarker === 'object' ? !this._isMarkerInViewport(this._terminal, this._currentMarker) : currentLineY !== viewportY) {
102
- const markersBelowViewport = this._getMarkers(skipEmptyCommands).filter(e => e.line >= viewportY).length;
103
- markerIndex = this._getMarkers(skipEmptyCommands).length - markersBelowViewport - 1;
104
- }
105
- else if (this._currentMarker === Boundary.Bottom) {
106
- markerIndex = this._getMarkers(skipEmptyCommands).length - 1;
107
- }
108
- else if (this._currentMarker === Boundary.Top) {
109
- markerIndex = -1;
110
- }
111
- else if (this._isDisposable) {
112
- markerIndex = this._findPreviousMarker(skipEmptyCommands);
113
- this._currentMarker.dispose();
114
- this._isDisposable = false;
115
- }
116
- else {
117
- if (skipEmptyCommands && this._isEmptyCommand(this._currentMarker)) {
118
- markerIndex = this._findPreviousMarker(true);
119
- }
120
- else {
121
- markerIndex = this._getMarkers(skipEmptyCommands).indexOf(this._currentMarker) - 1;
122
- }
123
- }
124
- if (markerIndex < 0) {
125
- this._currentMarker = Boundary.Top;
126
- this._terminal.scrollToTop();
127
- this._resetNavigationDecorations();
128
- return;
129
- }
130
- this._currentMarker = this._getMarkers(skipEmptyCommands)[markerIndex];
131
- this._scrollToCommand(this._currentMarker, scrollPosition);
132
- }
133
- scrollToNextMark(scrollPosition = 1 , retainSelection = false, skipEmptyCommands = true) {
134
- if (!this._terminal) {
135
- return;
136
- }
137
- if (!retainSelection) {
138
- this._selectionStart = null;
139
- }
140
- let markerIndex;
141
- const currentLineY = typeof this._currentMarker === 'object'
142
- ? this.getTargetScrollLine(this._currentMarker.line, scrollPosition)
143
- : Math.min(getLine(this._terminal, this._currentMarker), this._terminal.buffer.active.baseY);
144
- const viewportY = this._terminal.buffer.active.viewportY;
145
- if (typeof this._currentMarker === 'object' ? !this._isMarkerInViewport(this._terminal, this._currentMarker) : currentLineY !== viewportY) {
146
- const markersAboveViewport = this._getMarkers(skipEmptyCommands).filter(e => e.line <= viewportY).length;
147
- markerIndex = markersAboveViewport;
148
- }
149
- else if (this._currentMarker === Boundary.Bottom) {
150
- markerIndex = this._getMarkers(skipEmptyCommands).length;
151
- }
152
- else if (this._currentMarker === Boundary.Top) {
153
- markerIndex = 0;
154
- }
155
- else if (this._isDisposable) {
156
- markerIndex = this._findNextMarker(skipEmptyCommands);
157
- this._currentMarker.dispose();
158
- this._isDisposable = false;
159
- }
160
- else {
161
- if (skipEmptyCommands && this._isEmptyCommand(this._currentMarker)) {
162
- markerIndex = this._findNextMarker(true);
163
- }
164
- else {
165
- markerIndex = this._getMarkers(skipEmptyCommands).indexOf(this._currentMarker) + 1;
166
- }
167
- }
168
- if (markerIndex >= this._getMarkers(skipEmptyCommands).length) {
169
- this._currentMarker = Boundary.Bottom;
170
- this._terminal.scrollToBottom();
171
- this._resetNavigationDecorations();
172
- return;
173
- }
174
- this._currentMarker = this._getMarkers(skipEmptyCommands)[markerIndex];
175
- this._scrollToCommand(this._currentMarker, scrollPosition);
176
- }
177
- _scrollToCommand(marker, position) {
178
- const command = this._findCommand(marker);
179
- if (command) {
180
- this.revealCommand(command, position);
181
- }
182
- else {
183
- this._scrollToMarker(marker, position);
184
- }
185
- }
186
- _scrollToMarker(start, position, end, options) {
187
- if (!this._terminal) {
188
- return;
189
- }
190
- if (!this._isMarkerInViewport(this._terminal, start) || options?.forceScroll) {
191
- const line = this.getTargetScrollLine(toLineIndex(start), position);
192
- this._terminal.scrollToLine(line);
193
- }
194
- if (!options?.hideDecoration) {
195
- if (options?.bufferRange) {
196
- this._highlightBufferRange(options.bufferRange);
197
- }
198
- else {
199
- this.registerTemporaryDecoration(start, end, true);
200
- }
201
- }
202
- }
203
- _createMarkerForOffset(marker, offset) {
204
- if (offset === 0 && isMarker(marker)) {
205
- return marker;
206
- }
207
- else {
208
- const offsetMarker = this._terminal?.registerMarker(-this._terminal.buffer.active.cursorY + toLineIndex(marker) - this._terminal.buffer.active.baseY + offset);
209
- if (offsetMarker) {
210
- return offsetMarker;
211
- }
212
- else {
213
- throw ( new Error(`Could not register marker with offset ${toLineIndex(marker)}, ${offset}`));
214
- }
215
- }
216
- }
217
- revealCommand(command, position = 1 ) {
218
- const marker = 'getOutput' in command ? command.marker : command.commandStartMarker;
219
- if (!this._terminal || !marker) {
220
- return;
221
- }
222
- const line = toLineIndex(marker);
223
- const promptRowCount = command.getPromptRowCount();
224
- const commandRowCount = command.getCommandRowCount();
225
- this._scrollToMarker(line - (promptRowCount - 1), position, line + (commandRowCount - 1));
226
- }
227
- revealRange(range) {
228
- this._scrollToMarker(range.start.y - 1, 1 , range.end.y - 1, {
229
- bufferRange: range,
230
- forceScroll: !!this._configurationService.getValue("terminal.integrated.stickyScroll.enabled" )
231
- });
232
- }
233
- showCommandGuide(command) {
234
- if (!this._terminal) {
235
- return;
236
- }
237
- if (!command) {
238
- this._commandGuideDecorations.clear();
239
- this._activeCommandGuide = undefined;
240
- return;
241
- }
242
- if (this._activeCommandGuide === command) {
243
- return;
244
- }
245
- if (command.marker) {
246
- this._activeCommandGuide = command;
247
- const store = this._commandGuideDecorations.value = ( new DisposableStore());
248
- if (!command.executedMarker || !command.endMarker) {
249
- return;
250
- }
251
- const startLine = command.marker.line - (command.getPromptRowCount() - 1);
252
- const decorationCount = toLineIndex(command.endMarker) - startLine;
253
- if (decorationCount > 200) {
254
- return;
255
- }
256
- for (let i = 0; i < decorationCount; i++) {
257
- const decoration = this._terminal.registerDecoration({
258
- marker: this._createMarkerForOffset(startLine, i)
259
- });
260
- if (decoration) {
261
- store.add(decoration);
262
- let renderedElement;
263
- store.add(decoration.onRender(element => {
264
- if (!renderedElement) {
265
- renderedElement = element;
266
- element.classList.add('terminal-command-guide');
267
- if (i === 0) {
268
- element.classList.add('top');
269
- }
270
- if (i === decorationCount - 1) {
271
- element.classList.add('bottom');
272
- }
273
- }
274
- if (this._terminal?.element) {
275
- element.style.marginLeft = `-${getWindow(this._terminal.element).getComputedStyle(this._terminal.element).paddingLeft}`;
276
- }
277
- }));
278
- }
279
- }
280
- }
281
- }
282
- saveScrollState() {
283
- this._scrollState = { viewportY: this._terminal?.buffer.active.viewportY ?? 0 };
284
- }
285
- restoreScrollState() {
286
- if (this._scrollState && this._terminal) {
287
- this._terminal.scrollToLine(this._scrollState.viewportY);
288
- this._scrollState = undefined;
289
- }
290
- }
291
- _highlightBufferRange(range) {
292
- if (!this._terminal) {
293
- return;
294
- }
295
- this._resetNavigationDecorations();
296
- const startLine = range.start.y;
297
- const decorationCount = range.end.y - range.start.y + 1;
298
- for (let i = 0; i < decorationCount; i++) {
299
- const decoration = this._terminal.registerDecoration({
300
- marker: this._createMarkerForOffset(startLine - 1, i),
301
- x: range.start.x - 1,
302
- width: (range.end.x - 1) - (range.start.x - 1) + 1,
303
- overviewRulerOptions: undefined
304
- });
305
- if (decoration) {
306
- this._navigationDecorations?.push(decoration);
307
- let renderedElement;
308
- decoration.onRender(element => {
309
- if (!renderedElement) {
310
- renderedElement = element;
311
- element.classList.add('terminal-range-highlight');
312
- }
313
- });
314
- decoration.onDispose(() => { this._navigationDecorations = this._navigationDecorations?.filter(d => d !== decoration); });
315
- }
316
- }
317
- }
318
- registerTemporaryDecoration(marker, endMarker, showOutline) {
319
- if (!this._terminal) {
320
- return;
321
- }
322
- this._resetNavigationDecorations();
323
- const color = this._themeService.getColorTheme().getColor(TERMINAL_OVERVIEW_RULER_CURSOR_FOREGROUND_COLOR);
324
- const startLine = toLineIndex(marker);
325
- const decorationCount = endMarker ? toLineIndex(endMarker) - startLine + 1 : 1;
326
- for (let i = 0; i < decorationCount; i++) {
327
- const decoration = this._terminal.registerDecoration({
328
- marker: this._createMarkerForOffset(marker, i),
329
- width: this._terminal.cols,
330
- overviewRulerOptions: i === 0 ? {
331
- color: color?.toString() || '#a0a0a0cc'
332
- } : undefined
333
- });
334
- if (decoration) {
335
- this._navigationDecorations?.push(decoration);
336
- let renderedElement;
337
- decoration.onRender(element => {
338
- if (!renderedElement) {
339
- renderedElement = element;
340
- element.classList.add('terminal-scroll-highlight');
341
- if (showOutline) {
342
- element.classList.add('terminal-scroll-highlight-outline');
343
- }
344
- if (i === 0) {
345
- element.classList.add('top');
346
- }
347
- if (i === decorationCount - 1) {
348
- element.classList.add('bottom');
349
- }
350
- }
351
- else {
352
- element.classList.add('terminal-scroll-highlight');
353
- }
354
- if (this._terminal?.element) {
355
- element.style.marginLeft = `-${getWindow(this._terminal.element).getComputedStyle(this._terminal.element).paddingLeft}`;
356
- }
357
- });
358
- decoration.onDispose(() => { this._navigationDecorations = this._navigationDecorations?.filter(d => d !== decoration); });
359
- if (showOutline) {
360
- timeout(350).then(() => {
361
- if (renderedElement) {
362
- renderedElement.classList.remove('terminal-scroll-highlight-outline');
363
- }
364
- });
365
- }
366
- }
367
- }
368
- }
369
- scrollToLine(line, position) {
370
- this._terminal?.scrollToLine(this.getTargetScrollLine(line, position));
371
- }
372
- getTargetScrollLine(line, position) {
373
- if (this._terminal && position === 1 ) {
374
- return Math.max(line - Math.floor(this._terminal.rows / 4), 0);
375
- }
376
- return line;
377
- }
378
- _isMarkerInViewport(terminal, marker) {
379
- const viewportY = terminal.buffer.active.viewportY;
380
- const line = toLineIndex(marker);
381
- return line >= viewportY && line < viewportY + terminal.rows;
382
- }
383
- scrollToClosestMarker(startMarkerId, endMarkerId, highlight) {
384
- const detectionCapability = this._capabilities.get(4 );
385
- if (!detectionCapability) {
386
- return;
387
- }
388
- const startMarker = detectionCapability.getMark(startMarkerId);
389
- if (!startMarker) {
390
- return;
391
- }
392
- const endMarker = endMarkerId ? detectionCapability.getMark(endMarkerId) : startMarker;
393
- this._scrollToMarker(startMarker, 0 , endMarker, { hideDecoration: !highlight });
394
- }
395
- selectToPreviousMark() {
396
- if (!this._terminal) {
397
- return;
398
- }
399
- if (this._selectionStart === null) {
400
- this._selectionStart = this._currentMarker;
401
- }
402
- if (( this._capabilities.has(2 ))) {
403
- this.scrollToPreviousMark(1 , true, true);
404
- }
405
- else {
406
- this.scrollToPreviousMark(1 , true, false);
407
- }
408
- selectLines(this._terminal, this._currentMarker, this._selectionStart);
409
- }
410
- selectToNextMark() {
411
- if (!this._terminal) {
412
- return;
413
- }
414
- if (this._selectionStart === null) {
415
- this._selectionStart = this._currentMarker;
416
- }
417
- if (( this._capabilities.has(2 ))) {
418
- this.scrollToNextMark(1 , true, true);
419
- }
420
- else {
421
- this.scrollToNextMark(1 , true, false);
422
- }
423
- selectLines(this._terminal, this._currentMarker, this._selectionStart);
424
- }
425
- selectToPreviousLine() {
426
- if (!this._terminal) {
427
- return;
428
- }
429
- if (this._selectionStart === null) {
430
- this._selectionStart = this._currentMarker;
431
- }
432
- this.scrollToPreviousLine(this._terminal, 1 , true);
433
- selectLines(this._terminal, this._currentMarker, this._selectionStart);
434
- }
435
- selectToNextLine() {
436
- if (!this._terminal) {
437
- return;
438
- }
439
- if (this._selectionStart === null) {
440
- this._selectionStart = this._currentMarker;
441
- }
442
- this.scrollToNextLine(this._terminal, 1 , true);
443
- selectLines(this._terminal, this._currentMarker, this._selectionStart);
444
- }
445
- scrollToPreviousLine(xterm, scrollPosition = 1 , retainSelection = false) {
446
- if (!retainSelection) {
447
- this._selectionStart = null;
448
- }
449
- if (this._currentMarker === Boundary.Top) {
450
- xterm.scrollToTop();
451
- return;
452
- }
453
- if (this._currentMarker === Boundary.Bottom) {
454
- this._currentMarker = this._registerMarkerOrThrow(xterm, this._getOffset(xterm) - 1);
455
- }
456
- else {
457
- const offset = this._getOffset(xterm);
458
- if (this._isDisposable) {
459
- this._currentMarker.dispose();
460
- }
461
- this._currentMarker = this._registerMarkerOrThrow(xterm, offset - 1);
462
- }
463
- this._isDisposable = true;
464
- this._scrollToMarker(this._currentMarker, scrollPosition);
465
- }
466
- scrollToNextLine(xterm, scrollPosition = 1 , retainSelection = false) {
467
- if (!retainSelection) {
468
- this._selectionStart = null;
469
- }
470
- if (this._currentMarker === Boundary.Bottom) {
471
- xterm.scrollToBottom();
472
- return;
473
- }
474
- if (this._currentMarker === Boundary.Top) {
475
- this._currentMarker = this._registerMarkerOrThrow(xterm, this._getOffset(xterm) + 1);
476
- }
477
- else {
478
- const offset = this._getOffset(xterm);
479
- if (this._isDisposable) {
480
- this._currentMarker.dispose();
481
- }
482
- this._currentMarker = this._registerMarkerOrThrow(xterm, offset + 1);
483
- }
484
- this._isDisposable = true;
485
- this._scrollToMarker(this._currentMarker, scrollPosition);
486
- }
487
- _registerMarkerOrThrow(xterm, cursorYOffset) {
488
- const marker = xterm.registerMarker(cursorYOffset);
489
- if (!marker) {
490
- throw ( new Error(`Could not create marker for ${cursorYOffset}`));
491
- }
492
- return marker;
493
- }
494
- _getOffset(xterm) {
495
- if (this._currentMarker === Boundary.Bottom) {
496
- return 0;
497
- }
498
- else if (this._currentMarker === Boundary.Top) {
499
- return 0 - (xterm.buffer.active.baseY + xterm.buffer.active.cursorY);
500
- }
501
- else {
502
- let offset = getLine(xterm, this._currentMarker);
503
- offset -= xterm.buffer.active.baseY + xterm.buffer.active.cursorY;
504
- return offset;
505
- }
506
- }
507
- _findPreviousMarker(skipEmptyCommands = false) {
508
- if (this._currentMarker === Boundary.Top) {
509
- return 0;
510
- }
511
- else if (this._currentMarker === Boundary.Bottom) {
512
- return this._getMarkers(skipEmptyCommands).length - 1;
513
- }
514
- let i;
515
- for (i = this._getMarkers(skipEmptyCommands).length - 1; i >= 0; i--) {
516
- if (this._getMarkers(skipEmptyCommands)[i].line < this._currentMarker.line) {
517
- return i;
518
- }
519
- }
520
- return -1;
521
- }
522
- _findNextMarker(skipEmptyCommands = false) {
523
- if (this._currentMarker === Boundary.Top) {
524
- return 0;
525
- }
526
- else if (this._currentMarker === Boundary.Bottom) {
527
- return this._getMarkers(skipEmptyCommands).length - 1;
528
- }
529
- let i;
530
- for (i = 0; i < this._getMarkers(skipEmptyCommands).length; i++) {
531
- if (this._getMarkers(skipEmptyCommands)[i].line > this._currentMarker.line) {
532
- return i;
533
- }
534
- }
535
- return this._getMarkers(skipEmptyCommands).length;
536
- }
537
- };
538
- MarkNavigationAddon = ( __decorate([
539
- ( __param(1, IConfigurationService)),
540
- ( __param(2, IThemeService))
541
- ], MarkNavigationAddon));
542
- function getLine(xterm, marker) {
543
- if (marker === Boundary.Bottom) {
544
- return xterm.buffer.active.baseY + xterm.rows - 1;
545
- }
546
- if (marker === Boundary.Top) {
547
- return 0;
548
- }
549
- return marker.line;
550
- }
551
- function selectLines(xterm, start, end) {
552
- if (end === null) {
553
- end = Boundary.Bottom;
554
- }
555
- let startLine = getLine(xterm, start);
556
- let endLine = getLine(xterm, end);
557
- if (startLine > endLine) {
558
- const temp = startLine;
559
- startLine = endLine;
560
- endLine = temp;
561
- }
562
- endLine -= 1;
563
- xterm.selectLines(startLine, endLine);
564
- }
565
- function isMarker(value) {
566
- return typeof value !== 'number';
567
- }
568
- function toLineIndex(line) {
569
- return isMarker(line) ? line.line : line;
570
- }
571
- export { MarkNavigationAddon, getLine, selectLines };