@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,732 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
2
- import { isAncestorOfActiveElement, getActiveWindow, addDisposableListener, getWindow, getDocument, EventType } from '../../../../../base/browser/dom.js';
3
- import { IConfigurationService } from '../../../../../platform/configuration/common/configuration.service.js';
4
- import { Disposable, DisposableStore } from '../../../../../base/common/lifecycle.js';
5
- import { ITerminalLogService } from '../../../../../platform/terminal/common/terminal.service.js';
6
- import { ITerminalConfigurationService } from '../terminal.service.js';
7
- import { LogLevel } from '../../../../../platform/log/common/log.js';
8
- import { INotificationService } from '../../../../../platform/notification/common/notification.service.js';
9
- import { MarkNavigationAddon } from './markNavigationAddon.js';
10
- import { localize } from '../../../../../nls.js';
11
- import { IThemeService } from '../../../../../platform/theme/common/themeService.service.js';
12
- import { PANEL_BACKGROUND } from '../../../../common/theme.js';
13
- import { TERMINAL_BACKGROUND_COLOR, TERMINAL_FIND_MATCH_BACKGROUND_COLOR, TERMINAL_FIND_MATCH_BORDER_COLOR, TERMINAL_OVERVIEW_RULER_CURSOR_FOREGROUND_COLOR, TERMINAL_FIND_MATCH_HIGHLIGHT_BACKGROUND_COLOR, TERMINAL_FIND_MATCH_HIGHLIGHT_BORDER_COLOR, TERMINAL_OVERVIEW_RULER_FIND_MATCH_FOREGROUND_COLOR, TERMINAL_FOREGROUND_COLOR, TERMINAL_CURSOR_FOREGROUND_COLOR, TERMINAL_CURSOR_BACKGROUND_COLOR, TERMINAL_SELECTION_BACKGROUND_COLOR, TERMINAL_INACTIVE_SELECTION_BACKGROUND_COLOR, TERMINAL_SELECTION_FOREGROUND_COLOR, TERMINAL_OVERVIEW_RULER_BORDER_COLOR, ansiColorIdentifiers } from '../../common/terminalColorRegistry.js';
14
- import { ShellIntegrationAddon } from '../../../../../platform/terminal/common/xterm/shellIntegrationAddon.js';
15
- import { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js';
16
- import { DecorationAddon } from './decorationAddon.js';
17
- import { Emitter } from '../../../../../base/common/event.js';
18
- import { ITelemetryService } from '../../../../../platform/telemetry/common/telemetry.service.js';
19
- import { IContextKeyService } from '../../../../../platform/contextkey/common/contextkey.service.js';
20
- import { TerminalContextKeys } from '../../common/terminalContextKey.js';
21
- import { IClipboardService } from '../../../../../platform/clipboard/common/clipboardService.service.js';
22
- import { debounce } from '../../../../../base/common/decorators.js';
23
- import { MouseWheelClassifier } from '../../../../../base/browser/ui/scrollbar/scrollableElement.js';
24
- import { StandardWheelEvent } from '../../../../../base/browser/mouseEvent.js';
25
- import { ILayoutService } from '../../../../../platform/layout/browser/layoutService.service.js';
26
- import { AccessibilitySignal } from '../../../../../platform/accessibilitySignal/browser/accessibilitySignalService.js';
27
- import { IAccessibilitySignalService } from '../../../../../platform/accessibilitySignal/browser/accessibilitySignalService.service.js';
28
- import '../../../../../platform/theme/common/colorUtils.js';
29
- import '../../../../../platform/theme/common/colors/baseColors.js';
30
- import '../../../../../platform/theme/common/colors/chartsColors.js';
31
- import '../../../../../platform/theme/common/colors/editorColors.js';
32
- import '../../../../../platform/theme/common/colors/inputColors.js';
33
- import '../../../../../platform/theme/common/colors/listColors.js';
34
- import '../../../../../platform/theme/common/colors/menuColors.js';
35
- import '../../../../../platform/theme/common/colors/minimapColors.js';
36
- import { scrollbarSliderActiveBackground, scrollbarSliderBackground, scrollbarSliderHoverBackground } from '../../../../../platform/theme/common/colors/miscColors.js';
37
- import '../../../../../platform/theme/common/colors/quickpickColors.js';
38
- import '../../../../../platform/theme/common/colors/searchColors.js';
39
- var XtermTerminal_1;
40
- let ClipboardAddon;
41
- let ImageAddon;
42
- let SearchAddon;
43
- let SerializeAddon;
44
- let Unicode11Addon;
45
- let WebglAddon;
46
- function getFullBufferLineAsString(lineIndex, buffer) {
47
- let line = buffer.getLine(lineIndex);
48
- if (!line) {
49
- return { lineData: undefined, lineIndex };
50
- }
51
- let lineData = line.translateToString(true);
52
- while (lineIndex > 0 && line.isWrapped) {
53
- line = buffer.getLine(--lineIndex);
54
- if (!line) {
55
- break;
56
- }
57
- lineData = line.translateToString(false) + lineData;
58
- }
59
- return { lineData, lineIndex };
60
- }
61
- let XtermTerminal = class XtermTerminal extends Disposable {
62
- static { XtermTerminal_1 = this; }
63
- static { this._suggestedRendererType = undefined; }
64
- static { this._checkedWebglCompatible = false; }
65
- get findResult() { return this._lastFindResult; }
66
- get isStdinDisabled() { return !!this.raw.options.disableStdin; }
67
- get isGpuAccelerated() { return !!this._webglAddon; }
68
- get markTracker() { return this._markNavigationAddon; }
69
- get shellIntegration() { return this._shellIntegrationAddon; }
70
- get textureAtlas() {
71
- const canvas = this._webglAddon?.textureAtlas;
72
- if (!canvas) {
73
- return undefined;
74
- }
75
- return createImageBitmap(canvas);
76
- }
77
- get isFocused() {
78
- if (!this.raw.element) {
79
- return false;
80
- }
81
- return isAncestorOfActiveElement(this.raw.element);
82
- }
83
- constructor(xtermCtor, cols, rows, _xtermColorProvider, _capabilities, shellIntegrationNonce, disableShellIntegrationReporting, _configurationService, _instantiationService, _logService, _notificationService, _themeService, _telemetryService, _terminalConfigurationService, _clipboardService, contextKeyService, _accessibilitySignalService, layoutService) {
84
- super();
85
- this._xtermColorProvider = _xtermColorProvider;
86
- this._capabilities = _capabilities;
87
- this._configurationService = _configurationService;
88
- this._instantiationService = _instantiationService;
89
- this._logService = _logService;
90
- this._notificationService = _notificationService;
91
- this._themeService = _themeService;
92
- this._telemetryService = _telemetryService;
93
- this._terminalConfigurationService = _terminalConfigurationService;
94
- this._clipboardService = _clipboardService;
95
- this._accessibilitySignalService = _accessibilitySignalService;
96
- this._isPhysicalMouseWheel = MouseWheelClassifier.INSTANCE.isPhysicalMouseWheel();
97
- this._attachedDisposables = this._register(( (new DisposableStore())));
98
- this._onDidRequestRunCommand = this._register(( (new Emitter())));
99
- this.onDidRequestRunCommand = this._onDidRequestRunCommand.event;
100
- this._onDidRequestRefreshDimensions = this._register(( (new Emitter())));
101
- this.onDidRequestRefreshDimensions = this._onDidRequestRefreshDimensions.event;
102
- this._onDidChangeFindResults = this._register(( (new Emitter())));
103
- this.onDidChangeFindResults = this._onDidChangeFindResults.event;
104
- this._onDidChangeSelection = this._register(( (new Emitter())));
105
- this.onDidChangeSelection = this._onDidChangeSelection.event;
106
- this._onDidChangeFocus = this._register(( (new Emitter())));
107
- this.onDidChangeFocus = this._onDidChangeFocus.event;
108
- this._onDidDispose = this._register(( (new Emitter())));
109
- this.onDidDispose = this._onDidDispose.event;
110
- const font = this._terminalConfigurationService.getFont(getActiveWindow(), undefined, true);
111
- const config = this._terminalConfigurationService.config;
112
- const editorOptions = this._configurationService.getValue('editor');
113
- this.raw = this._register(( (new xtermCtor({
114
- allowProposedApi: true,
115
- cols,
116
- rows,
117
- documentOverride: layoutService.mainContainer.ownerDocument,
118
- altClickMovesCursor: config.altClickMovesCursor && editorOptions.multiCursorModifier === 'alt',
119
- scrollback: config.scrollback,
120
- theme: this.getXtermTheme(),
121
- drawBoldTextInBrightColors: config.drawBoldTextInBrightColors,
122
- fontFamily: font.fontFamily,
123
- fontWeight: config.fontWeight,
124
- fontWeightBold: config.fontWeightBold,
125
- fontSize: font.fontSize,
126
- letterSpacing: font.letterSpacing,
127
- lineHeight: font.lineHeight,
128
- logLevel: vscodeToXtermLogLevel(this._logService.getLevel()),
129
- logger: this._logService,
130
- minimumContrastRatio: config.minimumContrastRatio,
131
- tabStopWidth: config.tabStopWidth,
132
- cursorBlink: config.cursorBlinking,
133
- cursorStyle: vscodeToXtermCursorStyle(config.cursorStyle),
134
- cursorInactiveStyle: vscodeToXtermCursorStyle(config.cursorStyleInactive),
135
- cursorWidth: config.cursorWidth,
136
- macOptionIsMeta: config.macOptionIsMeta,
137
- macOptionClickForcesSelection: config.macOptionClickForcesSelection,
138
- rightClickSelectsWord: config.rightClickBehavior === 'selectWord',
139
- fastScrollModifier: 'alt',
140
- fastScrollSensitivity: config.fastScrollSensitivity,
141
- scrollSensitivity: config.mouseWheelScrollSensitivity,
142
- wordSeparator: config.wordSeparators,
143
- overviewRuler: {
144
- width: 14,
145
- showTopBorder: true,
146
- },
147
- ignoreBracketedPasteMode: config.ignoreBracketedPasteMode,
148
- rescaleOverlappingGlyphs: config.rescaleOverlappingGlyphs,
149
- windowOptions: {
150
- getWinSizePixels: true,
151
- getCellSizePixels: true,
152
- getWinSizeChars: true,
153
- },
154
- }))));
155
- this._updateSmoothScrolling();
156
- this._core = this.raw._core;
157
- this._register(this._configurationService.onDidChangeConfiguration(async (e) => {
158
- if (e.affectsConfiguration("terminal.integrated.gpuAcceleration" )) {
159
- XtermTerminal_1._suggestedRendererType = undefined;
160
- }
161
- if (e.affectsConfiguration('terminal.integrated') || e.affectsConfiguration('editor.fastScrollSensitivity') || e.affectsConfiguration('editor.mouseWheelScrollSensitivity') || e.affectsConfiguration('editor.multiCursorModifier')) {
162
- this.updateConfig();
163
- }
164
- if (e.affectsConfiguration("terminal.integrated.unicodeVersion" )) {
165
- this._updateUnicodeVersion();
166
- }
167
- if (e.affectsConfiguration("terminal.integrated.shellIntegration.decorationsEnabled" )) {
168
- this._updateTheme();
169
- }
170
- }));
171
- this._register(this._themeService.onDidColorThemeChange(theme => this._updateTheme(theme)));
172
- this._register(this._logService.onDidChangeLogLevel(e => this.raw.options.logLevel = vscodeToXtermLogLevel(e)));
173
- this._register(this.raw.onSelectionChange(() => {
174
- this._onDidChangeSelection.fire();
175
- if (this.isFocused) {
176
- this._anyFocusedTerminalHasSelection.set(this.raw.hasSelection());
177
- }
178
- }));
179
- this._updateUnicodeVersion();
180
- this._markNavigationAddon = this._instantiationService.createInstance(MarkNavigationAddon, _capabilities);
181
- this.raw.loadAddon(this._markNavigationAddon);
182
- this._decorationAddon = this._instantiationService.createInstance(DecorationAddon, this._capabilities);
183
- this._register(this._decorationAddon.onDidRequestRunCommand(e => this._onDidRequestRunCommand.fire(e)));
184
- this.raw.loadAddon(this._decorationAddon);
185
- this._shellIntegrationAddon = ( (new ShellIntegrationAddon(
186
- shellIntegrationNonce,
187
- disableShellIntegrationReporting,
188
- this._telemetryService,
189
- this._logService
190
- )));
191
- this.raw.loadAddon(this._shellIntegrationAddon);
192
- this._getClipboardAddonConstructor().then(ClipboardAddon => {
193
- this._clipboardAddon = this._instantiationService.createInstance(ClipboardAddon, undefined, {
194
- async readText(type) {
195
- return _clipboardService.readText(type === 'p' ? 'selection' : 'clipboard');
196
- },
197
- async writeText(type, text) {
198
- return _clipboardService.writeText(text, type === 'p' ? 'selection' : 'clipboard');
199
- }
200
- });
201
- this.raw.loadAddon(this._clipboardAddon);
202
- });
203
- this._anyTerminalFocusContextKey = TerminalContextKeys.focusInAny.bindTo(contextKeyService);
204
- this._anyFocusedTerminalHasSelection = TerminalContextKeys.textSelectedInFocused.bindTo(contextKeyService);
205
- }
206
- *getBufferReverseIterator() {
207
- for (let i = this.raw.buffer.active.length; i >= 0; i--) {
208
- const { lineData, lineIndex } = getFullBufferLineAsString(i, this.raw.buffer.active);
209
- if (lineData) {
210
- i = lineIndex;
211
- yield lineData;
212
- }
213
- }
214
- }
215
- async getContentsAsHtml() {
216
- if (!this._serializeAddon) {
217
- const Addon = await this._getSerializeAddonConstructor();
218
- this._serializeAddon = ( (new Addon()));
219
- this.raw.loadAddon(this._serializeAddon);
220
- }
221
- return this._serializeAddon.serializeAsHTML();
222
- }
223
- async getSelectionAsHtml(command) {
224
- if (!this._serializeAddon) {
225
- const Addon = await this._getSerializeAddonConstructor();
226
- this._serializeAddon = ( (new Addon()));
227
- this.raw.loadAddon(this._serializeAddon);
228
- }
229
- if (command) {
230
- const length = command.getOutput()?.length;
231
- const row = command.marker?.line;
232
- if (!length || !row) {
233
- throw ( (new Error(`No row ${row} or output length ${length} for command ${command}`)));
234
- }
235
- this.raw.select(0, row + 1, length - Math.floor(length / this.raw.cols));
236
- }
237
- const result = this._serializeAddon.serializeAsHTML({ onlySelection: true });
238
- if (command) {
239
- this.raw.clearSelection();
240
- }
241
- return result;
242
- }
243
- attachToElement(container, partialOptions) {
244
- const options = { enableGpu: true, ...partialOptions };
245
- if (!this._attached) {
246
- this.raw.open(container);
247
- }
248
- if (options.enableGpu) {
249
- if (this._shouldLoadWebgl()) {
250
- this._enableWebglRenderer();
251
- }
252
- }
253
- if (!this.raw.element || !this.raw.textarea) {
254
- throw ( (new Error('xterm elements not set after open')));
255
- }
256
- const ad = this._attachedDisposables;
257
- ad.clear();
258
- ad.add(addDisposableListener(this.raw.textarea, 'focus', () => this._setFocused(true)));
259
- ad.add(addDisposableListener(this.raw.textarea, 'blur', () => this._setFocused(false)));
260
- ad.add(addDisposableListener(this.raw.textarea, 'focusout', () => this._setFocused(false)));
261
- ad.add(addDisposableListener(this.raw.element, EventType.MOUSE_WHEEL, (e) => {
262
- const classifier = MouseWheelClassifier.INSTANCE;
263
- classifier.acceptStandardWheelEvent(( (new StandardWheelEvent(e))));
264
- const value = classifier.isPhysicalMouseWheel();
265
- if (value !== this._isPhysicalMouseWheel) {
266
- this._isPhysicalMouseWheel = value;
267
- this._updateSmoothScrolling();
268
- }
269
- }, { passive: true }));
270
- this._attached = { container, options };
271
- return this._attached?.container.querySelector('.xterm-screen');
272
- }
273
- _setFocused(isFocused) {
274
- this._onDidChangeFocus.fire(isFocused);
275
- this._anyTerminalFocusContextKey.set(isFocused);
276
- this._anyFocusedTerminalHasSelection.set(isFocused && this.raw.hasSelection());
277
- }
278
- write(data, callback) {
279
- this.raw.write(data, callback);
280
- }
281
- resize(columns, rows) {
282
- this.raw.resize(columns, rows);
283
- }
284
- updateConfig() {
285
- const config = this._terminalConfigurationService.config;
286
- this.raw.options.altClickMovesCursor = config.altClickMovesCursor;
287
- this._setCursorBlink(config.cursorBlinking);
288
- this._setCursorStyle(config.cursorStyle);
289
- this._setCursorStyleInactive(config.cursorStyleInactive);
290
- this._setCursorWidth(config.cursorWidth);
291
- this.raw.options.scrollback = config.scrollback;
292
- this.raw.options.drawBoldTextInBrightColors = config.drawBoldTextInBrightColors;
293
- this.raw.options.minimumContrastRatio = config.minimumContrastRatio;
294
- this.raw.options.tabStopWidth = config.tabStopWidth;
295
- this.raw.options.fastScrollSensitivity = config.fastScrollSensitivity;
296
- this.raw.options.scrollSensitivity = config.mouseWheelScrollSensitivity;
297
- this.raw.options.macOptionIsMeta = config.macOptionIsMeta;
298
- const editorOptions = this._configurationService.getValue('editor');
299
- this.raw.options.altClickMovesCursor = config.altClickMovesCursor && editorOptions.multiCursorModifier === 'alt';
300
- this.raw.options.macOptionClickForcesSelection = config.macOptionClickForcesSelection;
301
- this.raw.options.rightClickSelectsWord = config.rightClickBehavior === 'selectWord';
302
- this.raw.options.wordSeparator = config.wordSeparators;
303
- this.raw.options.customGlyphs = config.customGlyphs;
304
- this.raw.options.ignoreBracketedPasteMode = config.ignoreBracketedPasteMode;
305
- this.raw.options.rescaleOverlappingGlyphs = config.rescaleOverlappingGlyphs;
306
- this.raw.options.overviewRuler = {
307
- width: 14,
308
- showTopBorder: true,
309
- };
310
- this._updateSmoothScrolling();
311
- if (this._attached?.options.enableGpu) {
312
- if (this._shouldLoadWebgl()) {
313
- this._enableWebglRenderer();
314
- }
315
- else {
316
- this._disposeOfWebglRenderer();
317
- }
318
- }
319
- }
320
- _updateSmoothScrolling() {
321
- this.raw.options.smoothScrollDuration = this._terminalConfigurationService.config.smoothScrolling && this._isPhysicalMouseWheel ? 125 : 0;
322
- }
323
- _shouldLoadWebgl() {
324
- return (this._terminalConfigurationService.config.gpuAcceleration === 'auto' && XtermTerminal_1._suggestedRendererType === undefined) || this._terminalConfigurationService.config.gpuAcceleration === 'on';
325
- }
326
- forceRedraw() {
327
- this.raw.clearTextureAtlas();
328
- }
329
- clearDecorations() {
330
- this._decorationAddon?.clearDecorations();
331
- }
332
- forceRefresh() {
333
- this._core.viewport?._innerRefresh();
334
- }
335
- async findNext(term, searchOptions) {
336
- this._updateFindColors(searchOptions);
337
- return (await this._getSearchAddon()).findNext(term, searchOptions);
338
- }
339
- async findPrevious(term, searchOptions) {
340
- this._updateFindColors(searchOptions);
341
- return (await this._getSearchAddon()).findPrevious(term, searchOptions);
342
- }
343
- _updateFindColors(searchOptions) {
344
- const theme = this._themeService.getColorTheme();
345
- const terminalBackground = theme.getColor(TERMINAL_BACKGROUND_COLOR) || theme.getColor(PANEL_BACKGROUND);
346
- const findMatchBackground = theme.getColor(TERMINAL_FIND_MATCH_BACKGROUND_COLOR);
347
- const findMatchBorder = theme.getColor(TERMINAL_FIND_MATCH_BORDER_COLOR);
348
- const findMatchOverviewRuler = theme.getColor(TERMINAL_OVERVIEW_RULER_CURSOR_FOREGROUND_COLOR);
349
- const findMatchHighlightBackground = theme.getColor(TERMINAL_FIND_MATCH_HIGHLIGHT_BACKGROUND_COLOR);
350
- const findMatchHighlightBorder = theme.getColor(TERMINAL_FIND_MATCH_HIGHLIGHT_BORDER_COLOR);
351
- const findMatchHighlightOverviewRuler = theme.getColor(TERMINAL_OVERVIEW_RULER_FIND_MATCH_FOREGROUND_COLOR);
352
- searchOptions.decorations = {
353
- activeMatchBackground: findMatchBackground?.toString(),
354
- activeMatchBorder: findMatchBorder?.toString() || 'transparent',
355
- activeMatchColorOverviewRuler: findMatchOverviewRuler?.toString() || 'transparent',
356
- matchBackground: terminalBackground ? findMatchHighlightBackground?.blend(terminalBackground).toString() : undefined,
357
- matchBorder: findMatchHighlightBorder?.toString() || 'transparent',
358
- matchOverviewRuler: findMatchHighlightOverviewRuler?.toString() || 'transparent'
359
- };
360
- }
361
- _getSearchAddon() {
362
- if (!this._searchAddonPromise) {
363
- this._searchAddonPromise = this._getSearchAddonConstructor().then((AddonCtor) => {
364
- this._searchAddon = ( (new AddonCtor({ highlightLimit: 1000 })));
365
- this.raw.loadAddon(this._searchAddon);
366
- this._searchAddon.onDidChangeResults((results) => {
367
- this._lastFindResult = results;
368
- this._onDidChangeFindResults.fire(results);
369
- });
370
- return this._searchAddon;
371
- });
372
- }
373
- return this._searchAddonPromise;
374
- }
375
- clearSearchDecorations() {
376
- this._searchAddon?.clearDecorations();
377
- }
378
- clearActiveSearchDecoration() {
379
- this._searchAddon?.clearActiveDecoration();
380
- }
381
- getFont() {
382
- return this._terminalConfigurationService.getFont(getWindow(this.raw.element), this._core);
383
- }
384
- getLongestViewportWrappedLineLength() {
385
- let maxLineLength = 0;
386
- for (let i = this.raw.buffer.active.length - 1; i >= this.raw.buffer.active.viewportY; i--) {
387
- const lineInfo = this._getWrappedLineCount(i, this.raw.buffer.active);
388
- maxLineLength = Math.max(maxLineLength, ((lineInfo.lineCount * this.raw.cols) - lineInfo.endSpaces) || 0);
389
- i = lineInfo.currentIndex;
390
- }
391
- return maxLineLength;
392
- }
393
- _getWrappedLineCount(index, buffer) {
394
- let line = buffer.getLine(index);
395
- if (!line) {
396
- throw ( (new Error('Could not get line')));
397
- }
398
- let currentIndex = index;
399
- let endSpaces = 0;
400
- for (let i = Math.min(line.length, this.raw.cols) - 1; i >= 0; i--) {
401
- if (!line?.getCell(i)?.getChars()) {
402
- endSpaces++;
403
- }
404
- else {
405
- break;
406
- }
407
- }
408
- while (line?.isWrapped && currentIndex > 0) {
409
- currentIndex--;
410
- line = buffer.getLine(currentIndex);
411
- }
412
- return { lineCount: index - currentIndex + 1, currentIndex, endSpaces };
413
- }
414
- scrollDownLine() {
415
- this.raw.scrollLines(1);
416
- }
417
- scrollDownPage() {
418
- this.raw.scrollPages(1);
419
- }
420
- scrollToBottom() {
421
- this.raw.scrollToBottom();
422
- }
423
- scrollUpLine() {
424
- this.raw.scrollLines(-1);
425
- }
426
- scrollUpPage() {
427
- this.raw.scrollPages(-1);
428
- }
429
- scrollToTop() {
430
- this.raw.scrollToTop();
431
- }
432
- scrollToLine(line, position = 0 ) {
433
- this.markTracker.scrollToLine(line, position);
434
- }
435
- clearBuffer() {
436
- this.raw.clear();
437
- this._capabilities.get(2 )?.handlePromptStart();
438
- this._capabilities.get(2 )?.handleCommandStart();
439
- this._accessibilitySignalService.playSignal(AccessibilitySignal.clear);
440
- }
441
- hasSelection() {
442
- return this.raw.hasSelection();
443
- }
444
- clearSelection() {
445
- this.raw.clearSelection();
446
- }
447
- selectMarkedRange(fromMarkerId, toMarkerId, scrollIntoView = false) {
448
- const detectionCapability = this.shellIntegration.capabilities.get(4 );
449
- if (!detectionCapability) {
450
- return;
451
- }
452
- const start = detectionCapability.getMark(fromMarkerId);
453
- const end = detectionCapability.getMark(toMarkerId);
454
- if (start === undefined || end === undefined) {
455
- return;
456
- }
457
- this.raw.selectLines(start.line, end.line);
458
- if (scrollIntoView) {
459
- this.raw.scrollToLine(start.line);
460
- }
461
- }
462
- selectAll() {
463
- this.raw.focus();
464
- this.raw.selectAll();
465
- }
466
- focus() {
467
- this.raw.focus();
468
- }
469
- async copySelection(asHtml, command) {
470
- if (this.hasSelection() || (asHtml && command)) {
471
- if (asHtml) {
472
- const textAsHtml = await this.getSelectionAsHtml(command);
473
- function listener(e) {
474
- if (!e.clipboardData.types.includes('text/plain')) {
475
- e.clipboardData.setData('text/plain', command?.getOutput() ?? '');
476
- }
477
- e.clipboardData.setData('text/html', textAsHtml);
478
- e.preventDefault();
479
- }
480
- const doc = getDocument(this.raw.element);
481
- doc.addEventListener('copy', listener);
482
- doc.execCommand('copy');
483
- doc.removeEventListener('copy', listener);
484
- }
485
- else {
486
- await this._clipboardService.writeText(this.raw.getSelection());
487
- }
488
- }
489
- else {
490
- this._notificationService.warn(( localize(9050, 'The terminal has no selection to copy')));
491
- }
492
- }
493
- _setCursorBlink(blink) {
494
- if (this.raw.options.cursorBlink !== blink) {
495
- this.raw.options.cursorBlink = blink;
496
- this.raw.refresh(0, this.raw.rows - 1);
497
- }
498
- }
499
- _setCursorStyle(style) {
500
- const mapped = vscodeToXtermCursorStyle(style);
501
- if (this.raw.options.cursorStyle !== mapped) {
502
- this.raw.options.cursorStyle = mapped;
503
- }
504
- }
505
- _setCursorStyleInactive(style) {
506
- const mapped = vscodeToXtermCursorStyle(style);
507
- if (this.raw.options.cursorInactiveStyle !== mapped) {
508
- this.raw.options.cursorInactiveStyle = mapped;
509
- }
510
- }
511
- _setCursorWidth(width) {
512
- if (this.raw.options.cursorWidth !== width) {
513
- this.raw.options.cursorWidth = width;
514
- }
515
- }
516
- async _enableWebglRenderer() {
517
- if (!this.raw.element || this._webglAddon) {
518
- return;
519
- }
520
- if (!XtermTerminal_1._checkedWebglCompatible) {
521
- XtermTerminal_1._checkedWebglCompatible = true;
522
- const checkCanvas = document.createElement('canvas');
523
- const checkGl = checkCanvas.getContext('webgl2');
524
- const debugInfo = checkGl?.getExtension('WEBGL_debug_renderer_info');
525
- if (checkGl && debugInfo) {
526
- const renderer = checkGl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL);
527
- if (renderer.startsWith('ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (Subzero)')) {
528
- this._disableWebglForThisSession();
529
- return;
530
- }
531
- }
532
- }
533
- const Addon = await this._getWebglAddonConstructor();
534
- this._webglAddon = ( (new Addon()));
535
- try {
536
- this.raw.loadAddon(this._webglAddon);
537
- this._logService.trace('Webgl was loaded');
538
- this._webglAddon.onContextLoss(() => {
539
- this._logService.info(`Webgl lost context, disposing of webgl renderer`);
540
- this._disposeOfWebglRenderer();
541
- });
542
- this._refreshImageAddon();
543
- this._onDidRequestRefreshDimensions.fire();
544
- }
545
- catch (e) {
546
- this._logService.warn(`Webgl could not be loaded. Falling back to the DOM renderer`, e);
547
- this._disableWebglForThisSession();
548
- }
549
- }
550
- _disableWebglForThisSession() {
551
- XtermTerminal_1._suggestedRendererType = 'dom';
552
- this._disposeOfWebglRenderer();
553
- }
554
- async _refreshImageAddon() {
555
- if (this._terminalConfigurationService.config.enableImages && this._webglAddon) {
556
- if (!this._imageAddon) {
557
- const AddonCtor = await this._getImageAddonConstructor();
558
- this._imageAddon = ( (new AddonCtor()));
559
- this.raw.loadAddon(this._imageAddon);
560
- }
561
- }
562
- else {
563
- try {
564
- this._imageAddon?.dispose();
565
- }
566
- catch {
567
- }
568
- this._imageAddon = undefined;
569
- }
570
- }
571
- async _getClipboardAddonConstructor() {
572
- if (!ClipboardAddon) {
573
- ClipboardAddon = (await import('@xterm/addon-clipboard').then(module => module.default ?? module)).ClipboardAddon;
574
- }
575
- return ClipboardAddon;
576
- }
577
- async _getImageAddonConstructor() {
578
- if (!ImageAddon) {
579
- ImageAddon = (await import('@xterm/addon-image').then(module => module.default ?? module)).ImageAddon;
580
- }
581
- return ImageAddon;
582
- }
583
- async _getSearchAddonConstructor() {
584
- if (!SearchAddon) {
585
- SearchAddon = (await import('@xterm/addon-search').then(module => module.default ?? module)).SearchAddon;
586
- }
587
- return SearchAddon;
588
- }
589
- async _getUnicode11Constructor() {
590
- if (!Unicode11Addon) {
591
- Unicode11Addon = (await import('@xterm/addon-unicode11').then(module => module.default ?? module)).Unicode11Addon;
592
- }
593
- return Unicode11Addon;
594
- }
595
- async _getWebglAddonConstructor() {
596
- if (!WebglAddon) {
597
- WebglAddon = (await import('@xterm/addon-webgl').then(module => module.default ?? module)).WebglAddon;
598
- }
599
- return WebglAddon;
600
- }
601
- async _getSerializeAddonConstructor() {
602
- if (!SerializeAddon) {
603
- SerializeAddon = (await import('@xterm/addon-serialize').then(module => module.default ?? module)).SerializeAddon;
604
- }
605
- return SerializeAddon;
606
- }
607
- _disposeOfWebglRenderer() {
608
- try {
609
- this._webglAddon?.dispose();
610
- }
611
- catch {
612
- }
613
- this._webglAddon = undefined;
614
- this._refreshImageAddon();
615
- this._onDidRequestRefreshDimensions.fire();
616
- }
617
- getXtermTheme(theme) {
618
- if (!theme) {
619
- theme = this._themeService.getColorTheme();
620
- }
621
- const config = this._terminalConfigurationService.config;
622
- const hideOverviewRuler = ['never', 'gutter'].includes(config.shellIntegration?.decorationsEnabled ?? '');
623
- const foregroundColor = theme.getColor(TERMINAL_FOREGROUND_COLOR);
624
- const backgroundColor = this._xtermColorProvider.getBackgroundColor(theme);
625
- const cursorColor = theme.getColor(TERMINAL_CURSOR_FOREGROUND_COLOR) || foregroundColor;
626
- const cursorAccentColor = theme.getColor(TERMINAL_CURSOR_BACKGROUND_COLOR) || backgroundColor;
627
- const selectionBackgroundColor = theme.getColor(TERMINAL_SELECTION_BACKGROUND_COLOR);
628
- const selectionInactiveBackgroundColor = theme.getColor(TERMINAL_INACTIVE_SELECTION_BACKGROUND_COLOR);
629
- const selectionForegroundColor = theme.getColor(TERMINAL_SELECTION_FOREGROUND_COLOR) || undefined;
630
- return {
631
- background: backgroundColor?.toString(),
632
- foreground: foregroundColor?.toString(),
633
- cursor: cursorColor?.toString(),
634
- cursorAccent: cursorAccentColor?.toString(),
635
- selectionBackground: selectionBackgroundColor?.toString(),
636
- selectionInactiveBackground: selectionInactiveBackgroundColor?.toString(),
637
- selectionForeground: selectionForegroundColor?.toString(),
638
- overviewRulerBorder: hideOverviewRuler ? '#0000' : theme.getColor(TERMINAL_OVERVIEW_RULER_BORDER_COLOR)?.toString(),
639
- scrollbarSliderActiveBackground: theme.getColor(scrollbarSliderActiveBackground)?.toString(),
640
- scrollbarSliderBackground: theme.getColor(scrollbarSliderBackground)?.toString(),
641
- scrollbarSliderHoverBackground: theme.getColor(scrollbarSliderHoverBackground)?.toString(),
642
- black: theme.getColor(ansiColorIdentifiers[0])?.toString(),
643
- red: theme.getColor(ansiColorIdentifiers[1])?.toString(),
644
- green: theme.getColor(ansiColorIdentifiers[2])?.toString(),
645
- yellow: theme.getColor(ansiColorIdentifiers[3])?.toString(),
646
- blue: theme.getColor(ansiColorIdentifiers[4])?.toString(),
647
- magenta: theme.getColor(ansiColorIdentifiers[5])?.toString(),
648
- cyan: theme.getColor(ansiColorIdentifiers[6])?.toString(),
649
- white: theme.getColor(ansiColorIdentifiers[7])?.toString(),
650
- brightBlack: theme.getColor(ansiColorIdentifiers[8])?.toString(),
651
- brightRed: theme.getColor(ansiColorIdentifiers[9])?.toString(),
652
- brightGreen: theme.getColor(ansiColorIdentifiers[10])?.toString(),
653
- brightYellow: theme.getColor(ansiColorIdentifiers[11])?.toString(),
654
- brightBlue: theme.getColor(ansiColorIdentifiers[12])?.toString(),
655
- brightMagenta: theme.getColor(ansiColorIdentifiers[13])?.toString(),
656
- brightCyan: theme.getColor(ansiColorIdentifiers[14])?.toString(),
657
- brightWhite: theme.getColor(ansiColorIdentifiers[15])?.toString()
658
- };
659
- }
660
- _updateTheme(theme) {
661
- this.raw.options.theme = this.getXtermTheme(theme);
662
- }
663
- refresh() {
664
- this._updateTheme();
665
- this._decorationAddon.refreshLayouts();
666
- }
667
- async _updateUnicodeVersion() {
668
- if (!this._unicode11Addon && this._terminalConfigurationService.config.unicodeVersion === '11') {
669
- const Addon = await this._getUnicode11Constructor();
670
- this._unicode11Addon = ( (new Addon()));
671
- this.raw.loadAddon(this._unicode11Addon);
672
- }
673
- if (this.raw.unicode.activeVersion !== this._terminalConfigurationService.config.unicodeVersion) {
674
- this.raw.unicode.activeVersion = this._terminalConfigurationService.config.unicodeVersion;
675
- }
676
- }
677
- _writeText(data) {
678
- this.raw.write(data);
679
- }
680
- dispose() {
681
- this._anyTerminalFocusContextKey.reset();
682
- this._anyFocusedTerminalHasSelection.reset();
683
- this._onDidDispose.fire();
684
- super.dispose();
685
- }
686
- };
687
- XtermTerminal.__decorator = ( (__decorate([
688
- debounce(100)
689
- ], XtermTerminal.prototype, "_refreshImageAddon", null)));
690
- XtermTerminal = XtermTerminal_1 = ( (__decorate([
691
- ( (__param(7, IConfigurationService))),
692
- ( (__param(8, IInstantiationService))),
693
- ( (__param(9, ITerminalLogService))),
694
- ( (__param(10, INotificationService))),
695
- ( (__param(11, IThemeService))),
696
- ( (__param(12, ITelemetryService))),
697
- ( (__param(13, ITerminalConfigurationService))),
698
- ( (__param(14, IClipboardService))),
699
- ( (__param(15, IContextKeyService))),
700
- ( (__param(16, IAccessibilitySignalService))),
701
- ( (__param(17, ILayoutService)))
702
- ], XtermTerminal)));
703
- function getXtermScaledDimensions(w, font, width, height) {
704
- if (!font.charWidth || !font.charHeight) {
705
- return null;
706
- }
707
- const scaledWidthAvailable = width * w.devicePixelRatio;
708
- const scaledCharWidth = font.charWidth * w.devicePixelRatio + font.letterSpacing;
709
- const cols = Math.max(Math.floor(scaledWidthAvailable / scaledCharWidth), 1);
710
- const scaledHeightAvailable = height * w.devicePixelRatio;
711
- const scaledCharHeight = Math.ceil(font.charHeight * w.devicePixelRatio);
712
- const scaledLineHeight = Math.floor(scaledCharHeight * font.lineHeight);
713
- const rows = Math.max(Math.floor(scaledHeightAvailable / scaledLineHeight), 1);
714
- return { rows, cols };
715
- }
716
- function vscodeToXtermLogLevel(logLevel) {
717
- switch (logLevel) {
718
- case LogLevel.Trace: return 'trace';
719
- case LogLevel.Debug: return 'debug';
720
- case LogLevel.Info: return 'info';
721
- case LogLevel.Warning: return 'warn';
722
- case LogLevel.Error: return 'error';
723
- default: return 'off';
724
- }
725
- }
726
- function vscodeToXtermCursorStyle(style) {
727
- if (style === 'line') {
728
- return 'bar';
729
- }
730
- return style;
731
- }
732
- export { XtermTerminal, getXtermScaledDimensions };