@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,39 +0,0 @@
1
- import { Schemas } from '../../../../base/common/network.js';
2
- import { URI } from '../../../../base/common/uri.js';
3
- function parseTerminalUri(resource) {
4
- const [, workspaceId, instanceId] = resource.path.split('/');
5
- if (!workspaceId || !Number.parseInt(instanceId)) {
6
- throw ( new Error(`Could not parse terminal uri for resource ${resource}`));
7
- }
8
- return { workspaceId, instanceId: Number.parseInt(instanceId) };
9
- }
10
- function getTerminalUri(workspaceId, instanceId, title) {
11
- return ( URI.from({
12
- scheme: Schemas.vscodeTerminal,
13
- path: `/${workspaceId}/${instanceId}`,
14
- fragment: title || undefined,
15
- }));
16
- }
17
- function getTerminalResourcesFromDragEvent(event) {
18
- const resources = event.dataTransfer?.getData("Terminals" );
19
- if (resources) {
20
- const json = JSON.parse(resources);
21
- const result = [];
22
- for (const entry of json) {
23
- result.push(( URI.parse(entry)));
24
- }
25
- return result.length === 0 ? undefined : result;
26
- }
27
- return undefined;
28
- }
29
- function getInstanceFromResource(instances, resource) {
30
- if (resource) {
31
- for (const instance of instances) {
32
- if (instance.resource.path === resource.path) {
33
- return instance;
34
- }
35
- }
36
- }
37
- return undefined;
38
- }
39
- export { getInstanceFromResource, getTerminalResourcesFromDragEvent, getTerminalUri, parseTerminalUri };
@@ -1,36 +0,0 @@
1
- class TerminalWidgetManager {
2
- constructor() {
3
- this._attached = ( new Map());
4
- }
5
- attachToElement(terminalWrapper) {
6
- if (!this._container) {
7
- this._container = document.createElement('div');
8
- this._container.classList.add('terminal-widget-container');
9
- terminalWrapper.appendChild(this._container);
10
- }
11
- }
12
- dispose() {
13
- if (this._container) {
14
- this._container.remove();
15
- this._container = undefined;
16
- }
17
- }
18
- attachWidget(widget) {
19
- if (!this._container) {
20
- return;
21
- }
22
- this._attached.get(widget.id)?.dispose();
23
- widget.attach(this._container);
24
- this._attached.set(widget.id, widget);
25
- return {
26
- dispose: () => {
27
- const current = this._attached.get(widget.id);
28
- if (current === widget) {
29
- this._attached.delete(widget.id);
30
- widget.dispose();
31
- }
32
- }
33
- };
34
- }
35
- }
36
- export { TerminalWidgetManager };
@@ -1,498 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
2
- import { addDisposableListener, EventType } from '../../../../../base/browser/dom.js';
3
- import { Separator } from '../../../../../base/common/actions.js';
4
- import { Emitter } from '../../../../../base/common/event.js';
5
- import { Disposable, toDisposable, dispose, DisposableStore } from '../../../../../base/common/lifecycle.js';
6
- import { ThemeIcon } from '../../../../../base/common/themables.js';
7
- import { localize } from '../../../../../nls.js';
8
- import { AccessibilitySignal } from '../../../../../platform/accessibilitySignal/browser/accessibilitySignalService.js';
9
- import { IAccessibilitySignalService } from '../../../../../platform/accessibilitySignal/browser/accessibilitySignalService.service.js';
10
- import { IClipboardService } from '../../../../../platform/clipboard/common/clipboardService.service.js';
11
- import { ICommandService } from '../../../../../platform/commands/common/commands.service.js';
12
- import { IConfigurationService } from '../../../../../platform/configuration/common/configuration.service.js';
13
- import { IContextMenuService } from '../../../../../platform/contextview/browser/contextView.service.js';
14
- import { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js';
15
- import '../../../../../platform/notification/common/notification.js';
16
- import { INotificationService } from '../../../../../platform/notification/common/notification.service.js';
17
- import { IOpenerService } from '../../../../../platform/opener/common/opener.service.js';
18
- import { IQuickInputService } from '../../../../../platform/quickinput/common/quickInput.service.js';
19
- import { IThemeService } from '../../../../../platform/theme/common/themeService.service.js';
20
- import { terminalDecorationMark, terminalDecorationIncomplete, terminalDecorationError, terminalDecorationSuccess } from '../terminalIcons.js';
21
- import { TerminalDecorationHoverManager, updateLayout } from './decorationStyles.js';
22
- import { TERMINAL_COMMAND_DECORATION_DEFAULT_BACKGROUND_COLOR, TERMINAL_COMMAND_DECORATION_ERROR_BACKGROUND_COLOR, TERMINAL_COMMAND_DECORATION_SUCCESS_BACKGROUND_COLOR } from '../../common/terminalColorRegistry.js';
23
- import { ILifecycleService } from '../../../../services/lifecycle/common/lifecycle.service.js';
24
- import Severity$1 from '../../../../../base/common/severity.js';
25
- let DecorationAddon = class DecorationAddon extends Disposable {
26
- constructor(_capabilities, _clipboardService, _contextMenuService, _configurationService, _themeService, _openerService, _quickInputService, lifecycleService, _commandService, instantiationService, _accessibilitySignalService, _notificationService) {
27
- super();
28
- this._capabilities = _capabilities;
29
- this._clipboardService = _clipboardService;
30
- this._contextMenuService = _contextMenuService;
31
- this._configurationService = _configurationService;
32
- this._themeService = _themeService;
33
- this._openerService = _openerService;
34
- this._quickInputService = _quickInputService;
35
- this._commandService = _commandService;
36
- this._accessibilitySignalService = _accessibilitySignalService;
37
- this._notificationService = _notificationService;
38
- this._capabilityDisposables = ( (new Map()));
39
- this._decorations = ( (new Map()));
40
- this._onDidRequestRunCommand = this._register(( (new Emitter())));
41
- this.onDidRequestRunCommand = this._onDidRequestRunCommand.event;
42
- this._register(toDisposable(() => this._dispose()));
43
- this._register(this._configurationService.onDidChangeConfiguration(e => {
44
- if (e.affectsConfiguration("terminal.integrated.fontSize" ) || e.affectsConfiguration("terminal.integrated.lineHeight" )) {
45
- this.refreshLayouts();
46
- }
47
- else if (e.affectsConfiguration('workbench.colorCustomizations')) {
48
- this._refreshStyles(true);
49
- }
50
- else if (e.affectsConfiguration("terminal.integrated.shellIntegration.decorationsEnabled" )) {
51
- this._removeCapabilityDisposables(2 );
52
- this._updateDecorationVisibility();
53
- }
54
- }));
55
- this._register(this._themeService.onDidColorThemeChange(() => this._refreshStyles(true)));
56
- this._updateDecorationVisibility();
57
- this._register(this._capabilities.onDidAddCapabilityType(c => this._createCapabilityDisposables(c)));
58
- this._register(this._capabilities.onDidRemoveCapabilityType(c => this._removeCapabilityDisposables(c)));
59
- this._register(lifecycleService.onWillShutdown(() => this._disposeAllDecorations()));
60
- this._terminalDecorationHoverManager = this._register(instantiationService.createInstance(TerminalDecorationHoverManager));
61
- }
62
- _removeCapabilityDisposables(c) {
63
- const disposables = this._capabilityDisposables.get(c);
64
- if (disposables) {
65
- dispose(disposables);
66
- }
67
- this._capabilityDisposables.delete(c);
68
- }
69
- _createCapabilityDisposables(c) {
70
- const store = ( (new DisposableStore()));
71
- const capability = this._capabilities.get(c);
72
- if (!capability || ( (this._capabilityDisposables.has(c)))) {
73
- return;
74
- }
75
- switch (capability.type) {
76
- case 4 :
77
- store.add(capability.onMarkAdded(mark => this.registerMarkDecoration(mark)));
78
- break;
79
- case 2 : {
80
- const disposables = this._getCommandDetectionListeners(capability);
81
- for (const d of disposables) {
82
- store.add(d);
83
- }
84
- break;
85
- }
86
- }
87
- this._capabilityDisposables.set(c, store);
88
- }
89
- registerMarkDecoration(mark) {
90
- if (!this._terminal || (!this._showGutterDecorations && !this._showOverviewRulerDecorations)) {
91
- return undefined;
92
- }
93
- if (mark.hidden) {
94
- return undefined;
95
- }
96
- return this.registerCommandDecoration(undefined, undefined, mark);
97
- }
98
- _updateDecorationVisibility() {
99
- const showDecorations = this._configurationService.getValue("terminal.integrated.shellIntegration.decorationsEnabled" );
100
- this._showGutterDecorations = (showDecorations === 'both' || showDecorations === 'gutter');
101
- this._showOverviewRulerDecorations = (showDecorations === 'both' || showDecorations === 'overviewRuler');
102
- this._disposeAllDecorations();
103
- if (this._showGutterDecorations || this._showOverviewRulerDecorations) {
104
- this._attachToCommandCapability();
105
- this._updateGutterDecorationVisibility();
106
- }
107
- const currentCommand = this._capabilities.get(2 )?.executingCommandObject;
108
- if (currentCommand) {
109
- this.registerCommandDecoration(currentCommand, true);
110
- }
111
- }
112
- _disposeAllDecorations() {
113
- this._placeholderDecoration?.dispose();
114
- for (const value of ( (this._decorations.values()))) {
115
- value.decoration.dispose();
116
- dispose(value.disposables);
117
- }
118
- }
119
- _updateGutterDecorationVisibility() {
120
- const commandDecorationElements = this._terminal?.element?.querySelectorAll("terminal-command-decoration" );
121
- if (commandDecorationElements) {
122
- for (const commandDecorationElement of commandDecorationElements) {
123
- this._updateCommandDecorationVisibility(commandDecorationElement);
124
- }
125
- }
126
- }
127
- _updateCommandDecorationVisibility(commandDecorationElement) {
128
- if (this._showGutterDecorations) {
129
- commandDecorationElement.classList.remove("hide" );
130
- }
131
- else {
132
- commandDecorationElement.classList.add("hide" );
133
- }
134
- }
135
- refreshLayouts() {
136
- updateLayout(this._configurationService, this._placeholderDecoration?.element);
137
- for (const decoration of this._decorations) {
138
- updateLayout(this._configurationService, decoration[1].decoration.element);
139
- }
140
- }
141
- _refreshStyles(refreshOverviewRulerColors) {
142
- if (refreshOverviewRulerColors) {
143
- for (const decoration of ( (this._decorations.values()))) {
144
- const color = this._getDecorationCssColor(decoration)?.toString() ?? '';
145
- if (decoration.decoration.options?.overviewRulerOptions) {
146
- decoration.decoration.options.overviewRulerOptions.color = color;
147
- }
148
- else if (decoration.decoration.options) {
149
- decoration.decoration.options.overviewRulerOptions = { color };
150
- }
151
- }
152
- }
153
- this._updateClasses(this._placeholderDecoration?.element);
154
- for (const decoration of ( (this._decorations.values()))) {
155
- this._updateClasses(decoration.decoration.element, decoration.exitCode, decoration.markProperties);
156
- }
157
- }
158
- _dispose() {
159
- this._terminalDecorationHoverManager.dispose();
160
- for (const disposable of ( (this._capabilityDisposables.values()))) {
161
- dispose(disposable);
162
- }
163
- this.clearDecorations();
164
- }
165
- _clearPlaceholder() {
166
- this._placeholderDecoration?.dispose();
167
- this._placeholderDecoration = undefined;
168
- }
169
- clearDecorations() {
170
- this._placeholderDecoration?.marker.dispose();
171
- this._clearPlaceholder();
172
- this._disposeAllDecorations();
173
- this._decorations.clear();
174
- }
175
- _attachToCommandCapability() {
176
- if (( (this._capabilities.has(2 )))) {
177
- const capability = this._capabilities.get(2 );
178
- const disposables = this._getCommandDetectionListeners(capability);
179
- const store = ( (new DisposableStore()));
180
- for (const d of disposables) {
181
- store.add(d);
182
- }
183
- this._capabilityDisposables.set(2 , store);
184
- }
185
- }
186
- _getCommandDetectionListeners(capability) {
187
- if (( (this._capabilityDisposables.has(2 )))) {
188
- const disposables = this._capabilityDisposables.get(2 );
189
- dispose(disposables);
190
- this._capabilityDisposables.delete(capability.type);
191
- }
192
- const commandDetectionListeners = [];
193
- if (capability.executingCommandObject?.marker) {
194
- this.registerCommandDecoration(capability.executingCommandObject, true);
195
- }
196
- commandDetectionListeners.push(capability.onCommandStarted(command => this.registerCommandDecoration(command, true)));
197
- for (const command of capability.commands) {
198
- this.registerCommandDecoration(command);
199
- }
200
- commandDetectionListeners.push(capability.onCommandFinished(command => {
201
- this.registerCommandDecoration(command);
202
- if (command.exitCode) {
203
- this._accessibilitySignalService.playSignal(AccessibilitySignal.terminalCommandFailed);
204
- }
205
- else {
206
- this._accessibilitySignalService.playSignal(AccessibilitySignal.terminalCommandSucceeded);
207
- }
208
- }));
209
- commandDetectionListeners.push(capability.onCommandInvalidated(commands => {
210
- for (const command of commands) {
211
- const id = command.marker?.id;
212
- if (id) {
213
- const match = this._decorations.get(id);
214
- if (match) {
215
- match.decoration.dispose();
216
- dispose(match.disposables);
217
- }
218
- }
219
- }
220
- }));
221
- commandDetectionListeners.push(capability.onCurrentCommandInvalidated((request) => {
222
- if (request.reason === "noProblemsReported" ) {
223
- const lastDecoration = Array.from(this._decorations.entries())[this._decorations.size - 1];
224
- lastDecoration?.[1].decoration.dispose();
225
- }
226
- else if (request.reason === "windows" ) {
227
- this._clearPlaceholder();
228
- }
229
- }));
230
- return commandDetectionListeners;
231
- }
232
- activate(terminal) {
233
- this._terminal = terminal;
234
- this._attachToCommandCapability();
235
- }
236
- registerCommandDecoration(command, beforeCommandExecution, markProperties) {
237
- if (!this._terminal || (beforeCommandExecution && !command) || (!this._showGutterDecorations && !this._showOverviewRulerDecorations)) {
238
- return undefined;
239
- }
240
- const marker = command?.marker || markProperties?.marker;
241
- if (!marker) {
242
- throw ( (new Error(
243
- `cannot add a decoration for a command ${JSON.stringify(command)} with no marker`
244
- )));
245
- }
246
- this._clearPlaceholder();
247
- const color = this._getDecorationCssColor(command)?.toString() ?? '';
248
- const decoration = this._terminal.registerDecoration({
249
- marker,
250
- overviewRulerOptions: this._showOverviewRulerDecorations ? (beforeCommandExecution
251
- ? { color, position: 'left' }
252
- : { color, position: command?.exitCode ? 'right' : 'left' }) : undefined
253
- });
254
- if (!decoration) {
255
- return undefined;
256
- }
257
- if (beforeCommandExecution) {
258
- this._placeholderDecoration = decoration;
259
- }
260
- decoration.onRender(element => {
261
- if (element.classList.contains(".xterm-decoration-overview-ruler" )) {
262
- return;
263
- }
264
- if (!this._decorations.get(decoration.marker.id)) {
265
- decoration.onDispose(() => this._decorations.delete(decoration.marker.id));
266
- this._decorations.set(decoration.marker.id, {
267
- decoration,
268
- disposables: this._createDisposables(element, command, markProperties),
269
- exitCode: command?.exitCode,
270
- markProperties: command?.markProperties
271
- });
272
- }
273
- if (!element.classList.contains("codicon" ) || command?.marker?.line === 0) {
274
- updateLayout(this._configurationService, element);
275
- this._updateClasses(element, command?.exitCode, command?.markProperties || markProperties);
276
- }
277
- });
278
- return decoration;
279
- }
280
- _createDisposables(element, command, markProperties) {
281
- if (command?.exitCode === undefined && !command?.markProperties) {
282
- return [];
283
- }
284
- else if (command?.markProperties || markProperties) {
285
- return [this._terminalDecorationHoverManager.createHover(element, command || markProperties, markProperties?.hoverMessage)];
286
- }
287
- return [...this._createContextMenu(element, command), this._terminalDecorationHoverManager.createHover(element, command)];
288
- }
289
- _updateClasses(element, exitCode, markProperties) {
290
- if (!element) {
291
- return;
292
- }
293
- for (const classes of element.classList) {
294
- element.classList.remove(classes);
295
- }
296
- element.classList.add("terminal-command-decoration" , "codicon" , "xterm-decoration" );
297
- if (markProperties) {
298
- element.classList.add("default-color" , ...ThemeIcon.asClassNameArray(terminalDecorationMark));
299
- if (!markProperties.hoverMessage) {
300
- element.classList.add("default" );
301
- }
302
- }
303
- else {
304
- this._updateCommandDecorationVisibility(element);
305
- if (exitCode === undefined) {
306
- element.classList.add("default-color" , "default" );
307
- element.classList.add(...ThemeIcon.asClassNameArray(terminalDecorationIncomplete));
308
- }
309
- else if (exitCode) {
310
- element.classList.add("error" );
311
- element.classList.add(...ThemeIcon.asClassNameArray(terminalDecorationError));
312
- }
313
- else {
314
- element.classList.add(...ThemeIcon.asClassNameArray(terminalDecorationSuccess));
315
- }
316
- }
317
- }
318
- _createContextMenu(element, command) {
319
- return [
320
- addDisposableListener(element, EventType.MOUSE_DOWN, async (e) => {
321
- e.stopImmediatePropagation();
322
- }),
323
- addDisposableListener(element, EventType.CLICK, async (e) => {
324
- e.stopImmediatePropagation();
325
- this._terminalDecorationHoverManager.hideHover();
326
- const actions = await this._getCommandActions(command);
327
- this._contextMenuService.showContextMenu({ getAnchor: () => element, getActions: () => actions });
328
- }),
329
- addDisposableListener(element, EventType.CONTEXT_MENU, async (e) => {
330
- e.stopImmediatePropagation();
331
- this._terminalDecorationHoverManager.hideHover();
332
- const actions = this._getContextMenuActions();
333
- this._contextMenuService.showContextMenu({ getAnchor: () => element, getActions: () => actions });
334
- }),
335
- ];
336
- }
337
- _getContextMenuActions() {
338
- const label = ( localize(11132, "Toggle Visibility"));
339
- return [
340
- {
341
- class: undefined, tooltip: label, id: 'terminal.toggleVisibility', label, enabled: true,
342
- run: async () => {
343
- this._showToggleVisibilityQuickPick();
344
- }
345
- }
346
- ];
347
- }
348
- async _getCommandActions(command) {
349
- const actions = [];
350
- if (command.command !== '') {
351
- const labelRun = ( localize(11133, 'Rerun Command'));
352
- actions.push({
353
- class: undefined, tooltip: labelRun, id: 'terminal.rerunCommand', label: labelRun, enabled: true,
354
- run: async () => {
355
- if (command.command === '') {
356
- return;
357
- }
358
- if (!command.isTrusted) {
359
- const shouldRun = await ( (new Promise(r => {
360
- this._notificationService.prompt(Severity$1.Info, ( localize(11134, 'Do you want to run the command: {0}', command.command)), [{
361
- label: ( localize(11135, 'Yes')),
362
- run: () => r(true)
363
- }, {
364
- label: ( localize(11136, 'No')),
365
- run: () => r(false)
366
- }]);
367
- })));
368
- if (!shouldRun) {
369
- return;
370
- }
371
- }
372
- this._onDidRequestRunCommand.fire({ command });
373
- }
374
- });
375
- actions.push(( (new Separator())));
376
- const labelCopy = ( localize(11137, 'Copy Command'));
377
- actions.push({
378
- class: undefined, tooltip: labelCopy, id: 'terminal.copyCommand', label: labelCopy, enabled: true,
379
- run: () => this._clipboardService.writeText(command.command)
380
- });
381
- }
382
- if (command.hasOutput()) {
383
- const labelCopyCommandAndOutput = ( localize(11138, 'Copy Command and Output'));
384
- actions.push({
385
- class: undefined, tooltip: labelCopyCommandAndOutput, id: 'terminal.copyCommandAndOutput', label: labelCopyCommandAndOutput, enabled: true,
386
- run: () => {
387
- const output = command.getOutput();
388
- if (typeof output === 'string') {
389
- this._clipboardService.writeText(`${command.command !== '' ? command.command + '\n' : ''}${output}`);
390
- }
391
- }
392
- });
393
- const labelText = ( localize(11139, 'Copy Output'));
394
- actions.push({
395
- class: undefined, tooltip: labelText, id: 'terminal.copyOutput', label: labelText, enabled: true,
396
- run: () => {
397
- const text = command.getOutput();
398
- if (typeof text === 'string') {
399
- this._clipboardService.writeText(text);
400
- }
401
- }
402
- });
403
- const labelHtml = ( localize(11140, 'Copy Output as HTML'));
404
- actions.push({
405
- class: undefined, tooltip: labelHtml, id: 'terminal.copyOutputAsHtml', label: labelHtml, enabled: true,
406
- run: () => this._onDidRequestRunCommand.fire({ command, copyAsHtml: true })
407
- });
408
- }
409
- if (actions.length > 0) {
410
- actions.push(( (new Separator())));
411
- }
412
- const labelRunRecent = ( localize(11141, "Run Recent Command"));
413
- actions.push({
414
- class: undefined, tooltip: labelRunRecent, id: 'workbench.action.terminal.runRecentCommand', label: labelRunRecent, enabled: true,
415
- run: () => this._commandService.executeCommand('workbench.action.terminal.runRecentCommand')
416
- });
417
- const labelGoToRecent = ( localize(11142, "Go To Recent Directory"));
418
- actions.push({
419
- class: undefined, tooltip: labelRunRecent, id: 'workbench.action.terminal.goToRecentDirectory', label: labelGoToRecent, enabled: true,
420
- run: () => this._commandService.executeCommand('workbench.action.terminal.goToRecentDirectory')
421
- });
422
- actions.push(( (new Separator())));
423
- const labelAbout = ( localize(11143, 'Learn About Shell Integration'));
424
- actions.push({
425
- class: undefined, tooltip: labelAbout, id: 'terminal.learnShellIntegration', label: labelAbout, enabled: true,
426
- run: () => this._openerService.open('https://code.visualstudio.com/docs/terminal/shell-integration')
427
- });
428
- return actions;
429
- }
430
- _showToggleVisibilityQuickPick() {
431
- const quickPick = this._register(this._quickInputService.createQuickPick());
432
- quickPick.hideInput = true;
433
- quickPick.hideCheckAll = true;
434
- quickPick.canSelectMany = true;
435
- quickPick.title = ( localize(11144, 'Toggle visibility'));
436
- const configValue = this._configurationService.getValue("terminal.integrated.shellIntegration.decorationsEnabled" );
437
- const gutterIcon = {
438
- label: ( localize(11145, 'Gutter command decorations')),
439
- picked: configValue !== 'never' && configValue !== 'overviewRuler'
440
- };
441
- const overviewRulerIcon = {
442
- label: ( localize(11146, 'Overview ruler command decorations')),
443
- picked: configValue !== 'never' && configValue !== 'gutter'
444
- };
445
- quickPick.items = [gutterIcon, overviewRulerIcon];
446
- const selectedItems = [];
447
- if (configValue !== 'never') {
448
- if (configValue !== 'gutter') {
449
- selectedItems.push(gutterIcon);
450
- }
451
- if (configValue !== 'overviewRuler') {
452
- selectedItems.push(overviewRulerIcon);
453
- }
454
- }
455
- quickPick.selectedItems = selectedItems;
456
- this._register(quickPick.onDidChangeSelection(async (e) => {
457
- let newValue = 'never';
458
- if (e.includes(gutterIcon)) {
459
- if (e.includes(overviewRulerIcon)) {
460
- newValue = 'both';
461
- }
462
- else {
463
- newValue = 'gutter';
464
- }
465
- }
466
- else if (e.includes(overviewRulerIcon)) {
467
- newValue = 'overviewRuler';
468
- }
469
- await this._configurationService.updateValue("terminal.integrated.shellIntegration.decorationsEnabled" , newValue);
470
- }));
471
- quickPick.ok = false;
472
- quickPick.show();
473
- }
474
- _getDecorationCssColor(decorationOrCommand) {
475
- let colorId;
476
- if (decorationOrCommand?.exitCode === undefined) {
477
- colorId = TERMINAL_COMMAND_DECORATION_DEFAULT_BACKGROUND_COLOR;
478
- }
479
- else {
480
- colorId = decorationOrCommand.exitCode ? TERMINAL_COMMAND_DECORATION_ERROR_BACKGROUND_COLOR : TERMINAL_COMMAND_DECORATION_SUCCESS_BACKGROUND_COLOR;
481
- }
482
- return this._themeService.getColorTheme().getColor(colorId)?.toString();
483
- }
484
- };
485
- DecorationAddon = ( (__decorate([
486
- ( (__param(1, IClipboardService))),
487
- ( (__param(2, IContextMenuService))),
488
- ( (__param(3, IConfigurationService))),
489
- ( (__param(4, IThemeService))),
490
- ( (__param(5, IOpenerService))),
491
- ( (__param(6, IQuickInputService))),
492
- ( (__param(7, ILifecycleService))),
493
- ( (__param(8, ICommandService))),
494
- ( (__param(9, IInstantiationService))),
495
- ( (__param(10, IAccessibilitySignalService))),
496
- ( (__param(11, INotificationService)))
497
- ], DecorationAddon)));
498
- export { DecorationAddon };