@codingame/monaco-vscode-api 10.1.0 → 10.1.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 (306) hide show
  1. package/README.md +27 -0
  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/dropdown/dropdownActionViewItem.js +1 -1
  5. package/vscode/src/vs/base/browser/ui/splitview/paneview.js +1 -1
  6. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +1 -1
  7. package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +9 -9
  8. package/vscode/src/vs/base/common/date.js +61 -61
  9. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +1 -1
  10. package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.js +4 -4
  11. package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +1 -1
  12. package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -1
  13. package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
  14. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
  15. package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
  16. package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +14 -14
  17. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
  18. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
  19. package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
  20. package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +4 -4
  21. package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +2 -2
  22. package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
  23. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
  24. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
  25. package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +51 -51
  26. package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
  27. package/vscode/src/vs/editor/common/model/editStack.js +1 -1
  28. package/vscode/src/vs/editor/common/standaloneStrings.js +32 -32
  29. package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
  30. package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
  31. package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
  32. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +28 -28
  33. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
  34. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
  35. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
  36. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
  37. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +7 -7
  38. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
  39. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
  40. package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
  41. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +27 -27
  42. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
  43. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
  44. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
  45. package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
  46. package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +23 -23
  47. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
  48. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
  49. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
  50. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +14 -14
  51. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
  52. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
  53. package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
  54. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
  55. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +17 -17
  56. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
  57. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
  58. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
  59. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  60. package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
  61. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +16 -16
  62. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  63. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
  64. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  65. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +49 -49
  66. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
  67. package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
  68. package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
  69. package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
  70. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  71. package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
  72. package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
  73. package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
  74. package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
  75. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -2
  76. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
  77. package/vscode/src/vs/platform/list/browser/listService.js +27 -27
  78. package/vscode/src/vs/platform/markers/common/markers.js +3 -3
  79. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +8 -8
  80. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +6 -6
  81. package/vscode/src/vs/platform/request/common/request.js +14 -14
  82. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
  83. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
  84. package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
  85. package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
  86. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  87. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
  88. package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
  89. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +129 -129
  90. package/vscode/src/vs/workbench/browser/actions/windowActions.js +25 -25
  91. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
  92. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
  93. package/vscode/src/vs/workbench/browser/editor.js +2 -2
  94. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +41 -41
  95. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +16 -16
  96. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
  97. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +15 -15
  98. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +17 -17
  99. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
  100. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
  101. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +9 -9
  102. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
  103. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
  104. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
  105. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
  106. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
  107. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
  108. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
  109. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
  110. package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
  111. package/vscode/src/vs/workbench/browser/workbench.contribution.js +217 -217
  112. package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
  113. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
  114. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
  115. package/vscode/src/vs/workbench/common/views.js +4 -4
  116. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
  117. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +17 -18
  118. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.js +5 -0
  119. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +7 -6
  120. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +8 -7
  121. package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +1 -1
  122. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +9 -9
  123. package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +2 -2
  124. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js +8 -8
  125. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCodeCitationContentPart.js +1 -1
  126. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCommandContentPart.js +1 -1
  127. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationContentPart.js +2 -2
  128. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatReferencesContentPart.js +8 -8
  129. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.js +2 -2
  130. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatToolInvocationPart.js +1 -1
  131. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTreeContentPart.js +1 -1
  132. package/vscode/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.js +3 -3
  133. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditingService.js +13 -12
  134. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +2 -2
  135. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +1 -1
  136. package/vscode/src/vs/workbench/contrib/chat/browser/chatImagePaste.js +1 -1
  137. package/vscode/src/vs/workbench/contrib/chat/browser/chatInlineAnchorWidget.js +5 -5
  138. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +12 -12
  139. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +12 -12
  140. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +3 -4
  141. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +15 -15
  142. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +4 -3
  143. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariablesConstant.js +2 -0
  144. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.js +1 -1
  145. package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +6 -6
  146. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +21 -21
  147. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +3 -3
  148. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
  149. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -10
  150. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
  151. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
  152. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
  153. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  154. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -4
  155. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  156. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -5
  157. package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
  158. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
  159. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +13 -13
  160. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +10 -10
  161. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
  162. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +65 -65
  163. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
  164. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
  165. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +34 -34
  166. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
  167. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
  168. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
  169. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
  170. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
  171. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
  172. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +173 -173
  173. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
  174. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
  175. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
  176. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
  177. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
  178. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
  179. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
  180. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  181. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -33
  182. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
  183. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
  184. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +8 -8
  185. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
  186. package/vscode/src/vs/workbench/contrib/files/common/files.js +14 -14
  187. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +19 -19
  188. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +6 -6
  189. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
  190. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +41 -41
  191. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
  192. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +29 -29
  193. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +8 -8
  194. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +2 -2
  195. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
  196. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +6 -6
  197. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +3 -3
  198. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
  199. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +3 -3
  200. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +5 -5
  201. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +2 -2
  202. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
  203. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
  204. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
  205. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
  206. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
  207. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +3 -3
  208. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +4 -4
  209. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +8 -8
  210. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
  211. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
  212. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +4 -4
  213. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
  214. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
  215. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
  216. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +2 -2
  217. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
  218. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
  219. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
  220. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +15 -15
  221. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
  222. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
  223. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +12 -12
  224. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +10 -10
  225. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +50 -50
  226. package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
  227. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
  228. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +5 -1
  229. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +10 -10
  230. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +2 -2
  231. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  232. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  233. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  234. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
  235. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
  236. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +5 -5
  237. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +4 -4
  238. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +7 -7
  239. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +16 -16
  240. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatControllerHolder.js +5 -0
  241. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
  242. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
  243. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
  244. package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
  245. package/vscode/src/vs/workbench/services/activity/common/activity.js +4 -4
  246. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
  247. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
  248. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
  249. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
  250. package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
  251. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
  252. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
  253. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +2 -2
  254. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
  255. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
  256. package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
  257. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
  258. package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
  259. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
  260. package/vscode/src/vs/base/common/processes.js +0 -25
  261. package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +0 -41
  262. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.js +0 -345
  263. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +0 -296
  264. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +0 -761
  265. package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +0 -29
  266. package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +0 -22
  267. package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +0 -48
  268. package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +0 -94
  269. package/vscode/src/vs/platform/terminal/common/environmentVariable.js +0 -7
  270. package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.js +0 -196
  271. package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +0 -40
  272. package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +0 -107
  273. package/vscode/src/vs/platform/terminal/common/terminalRecorder.js +0 -67
  274. package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +0 -346
  275. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +0 -167
  276. package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +0 -119
  277. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +0 -1770
  278. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +0 -40
  279. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +0 -25
  280. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIconPicker.js +0 -72
  281. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +0 -16
  282. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +0 -2218
  283. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +0 -628
  284. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +0 -143
  285. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalResizeDebouncer.js +0 -61
  286. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +0 -315
  287. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.js +0 -121
  288. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalUri.js +0 -39
  289. package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +0 -36
  290. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +0 -498
  291. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +0 -123
  292. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +0 -55
  293. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +0 -571
  294. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +0 -732
  295. package/vscode/src/vs/workbench/contrib/terminal/common/history.js +0 -378
  296. package/vscode/src/vs/workbench/contrib/terminal/common/terminalClipboard.js +0 -80
  297. package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +0 -282
  298. package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +0 -36
  299. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/media/terminalChatWidget.css.js +0 -4
  300. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +0 -46
  301. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +0 -303
  302. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +0 -203
  303. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/media/stickyScroll.css.js +0 -4
  304. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollColorRegistry.js +0 -22
  305. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollContribution.js +0 -97
  306. 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 };