@codingame/monaco-vscode-api 10.1.0 → 10.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (410) hide show
  1. package/README.md +137 -305
  2. package/package.json +8 -15
  3. package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +1 -1
  4. package/vscode/src/vs/base/browser/ui/dialog/dialog.js +6 -6
  5. package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
  6. package/vscode/src/vs/base/browser/ui/findinput/findInput.js +1 -1
  7. package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +3 -3
  8. package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -2
  9. package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +6 -6
  10. package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +9 -9
  11. package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +1 -1
  12. package/vscode/src/vs/base/common/actions.js +1 -1
  13. package/vscode/src/vs/base/common/date.js +61 -61
  14. package/vscode/src/vs/base/common/errorMessage.js +6 -15
  15. package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
  16. package/vscode/src/vs/base/common/keybindingLabels.js +20 -20
  17. package/vscode/src/vs/base/common/worker/simpleWorkerBootstrap.js +23 -0
  18. package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +1 -1
  19. package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
  20. package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +1 -1
  21. package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -1
  22. package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
  23. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
  24. package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
  25. package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +14 -14
  26. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
  27. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
  28. package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
  29. package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +4 -4
  30. package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +2 -2
  31. package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
  32. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
  33. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
  34. package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +51 -51
  35. package/vscode/src/vs/editor/common/config/editorOptions.js +368 -368
  36. package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
  37. package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
  38. package/vscode/src/vs/editor/common/model/editStack.js +1 -1
  39. package/vscode/src/vs/editor/common/services/editorWorkerBootstrap.js +3 -8
  40. package/vscode/src/vs/editor/common/standaloneStrings.js +32 -32
  41. package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
  42. package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
  43. package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
  44. package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
  45. package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
  46. package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
  47. package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
  48. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +28 -28
  49. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
  50. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
  51. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
  52. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
  53. package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
  54. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
  55. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
  56. package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
  57. package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
  58. package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
  59. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +3 -3
  60. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +7 -7
  61. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
  62. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +1 -1
  63. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
  64. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
  65. package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
  66. package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
  67. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +27 -27
  68. package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
  69. package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
  70. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
  71. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
  72. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
  73. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  74. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
  75. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
  76. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
  77. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
  78. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
  79. package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
  80. package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
  81. package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
  82. package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +23 -23
  83. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
  84. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
  85. package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  86. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
  87. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
  88. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +14 -14
  89. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +8 -8
  90. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
  91. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
  92. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
  93. package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  94. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
  95. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
  96. package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
  97. package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
  98. package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
  99. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  100. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
  101. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +17 -17
  102. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  103. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
  104. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
  105. package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
  106. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
  107. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
  108. package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
  109. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
  110. package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  111. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  112. package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
  113. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
  114. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +16 -16
  115. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
  116. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
  117. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  118. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  119. package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  120. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
  121. package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  122. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  123. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
  124. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
  125. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +49 -49
  126. package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
  127. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
  128. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
  129. package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
  130. package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
  131. package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
  132. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  133. package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
  134. package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
  135. package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
  136. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -2
  137. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
  138. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +11 -7
  139. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
  140. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
  141. package/vscode/src/vs/platform/files/common/files.js +6 -6
  142. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  143. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
  144. package/vscode/src/vs/platform/list/browser/listService.js +27 -27
  145. package/vscode/src/vs/platform/log/common/log.js +6 -6
  146. package/vscode/src/vs/platform/markers/common/markers.js +3 -3
  147. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +8 -8
  148. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +6 -6
  149. package/vscode/src/vs/platform/request/common/request.js +14 -14
  150. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
  151. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
  152. package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
  153. package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
  154. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  155. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
  156. package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
  157. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
  158. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
  159. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
  160. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
  161. package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
  162. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
  163. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
  164. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
  165. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
  166. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
  167. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
  168. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
  169. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
  170. package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
  171. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +129 -129
  172. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
  173. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
  174. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
  175. package/vscode/src/vs/workbench/browser/editor.js +2 -2
  176. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
  177. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +3 -3
  178. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +41 -41
  179. package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
  180. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +131 -131
  181. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +16 -16
  182. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
  183. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +61 -61
  184. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
  185. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
  186. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
  187. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +15 -15
  188. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +17 -17
  189. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
  190. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
  191. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +9 -9
  192. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
  193. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
  194. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
  195. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +4 -4
  196. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
  197. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
  198. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
  199. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -7
  200. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
  201. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
  202. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
  203. package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
  204. package/vscode/src/vs/workbench/browser/workbench.contribution.js +217 -220
  205. package/vscode/src/vs/workbench/common/configuration.js +10 -10
  206. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
  207. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
  208. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
  209. package/vscode/src/vs/workbench/common/editor.js +4 -4
  210. package/vscode/src/vs/workbench/common/views.js +4 -4
  211. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
  212. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +17 -18
  213. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.js +5 -0
  214. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +7 -6
  215. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +8 -7
  216. package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +1 -1
  217. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +9 -9
  218. package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +2 -2
  219. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js +8 -8
  220. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCodeCitationContentPart.js +1 -1
  221. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCommandContentPart.js +1 -1
  222. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationContentPart.js +2 -2
  223. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatReferencesContentPart.js +8 -8
  224. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.js +2 -2
  225. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatToolInvocationPart.js +1 -1
  226. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTreeContentPart.js +1 -1
  227. package/vscode/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.js +3 -3
  228. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditingService.js +13 -12
  229. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +2 -2
  230. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +1 -1
  231. package/vscode/src/vs/workbench/contrib/chat/browser/chatImagePaste.js +1 -1
  232. package/vscode/src/vs/workbench/contrib/chat/browser/chatInlineAnchorWidget.js +5 -5
  233. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +12 -12
  234. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +12 -12
  235. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +3 -4
  236. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +15 -15
  237. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +4 -3
  238. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariablesConstant.js +2 -0
  239. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.js +1 -1
  240. package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +6 -6
  241. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +21 -21
  242. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +3 -3
  243. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
  244. package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +10 -10
  245. package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -6
  246. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
  247. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
  248. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -10
  249. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
  250. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
  251. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
  252. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  253. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
  254. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  255. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
  256. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
  257. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  258. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -5
  259. package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
  260. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
  261. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +13 -13
  262. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +10 -10
  263. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
  264. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
  265. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
  266. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +65 -65
  267. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
  268. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
  269. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +34 -34
  270. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
  271. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
  272. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +63 -63
  273. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
  274. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
  275. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
  276. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
  277. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
  278. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +173 -173
  279. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
  280. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
  281. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
  282. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
  283. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
  284. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
  285. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
  286. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
  287. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  288. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +52 -52
  289. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
  290. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
  291. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
  292. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
  293. package/vscode/src/vs/workbench/contrib/files/common/files.js +14 -14
  294. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
  295. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
  296. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
  297. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  298. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
  299. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +19 -19
  300. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +6 -6
  301. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
  302. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +41 -41
  303. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  304. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  305. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
  306. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +1 -1
  307. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +2 -2
  308. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
  309. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +3 -3
  310. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
  311. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +5 -5
  312. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
  313. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +4 -4
  314. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
  315. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
  316. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
  317. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
  318. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
  319. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +2 -2
  320. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
  321. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
  322. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
  323. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +12 -12
  324. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +10 -10
  325. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +50 -50
  326. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
  327. package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +13 -13
  328. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +5 -1
  329. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +10 -10
  330. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +1 -1
  331. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +2 -2
  332. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  333. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  334. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
  335. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
  336. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +5 -5
  337. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatControllerHolder.js +5 -0
  338. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
  339. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
  340. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
  341. package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
  342. package/vscode/src/vs/workbench/services/activity/common/activity.js +4 -4
  343. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
  344. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
  345. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +15 -15
  346. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
  347. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
  348. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
  349. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
  350. package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
  351. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
  352. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
  353. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +2 -2
  354. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
  355. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
  356. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
  357. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
  358. package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
  359. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
  360. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
  361. package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
  362. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
  363. package/workers/editor.worker.js +1 -1
  364. package/vscode/src/vs/base/common/processes.js +0 -25
  365. package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +0 -41
  366. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.js +0 -345
  367. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +0 -296
  368. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +0 -761
  369. package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +0 -29
  370. package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +0 -22
  371. package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +0 -48
  372. package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +0 -94
  373. package/vscode/src/vs/platform/terminal/common/environmentVariable.js +0 -7
  374. package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.js +0 -196
  375. package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +0 -40
  376. package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +0 -107
  377. package/vscode/src/vs/platform/terminal/common/terminalRecorder.js +0 -67
  378. package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +0 -346
  379. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +0 -167
  380. package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +0 -119
  381. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +0 -1770
  382. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +0 -40
  383. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +0 -25
  384. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIconPicker.js +0 -72
  385. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +0 -16
  386. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +0 -2218
  387. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +0 -628
  388. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +0 -143
  389. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalResizeDebouncer.js +0 -61
  390. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +0 -315
  391. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.js +0 -121
  392. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalUri.js +0 -39
  393. package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +0 -36
  394. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +0 -498
  395. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +0 -123
  396. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +0 -55
  397. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +0 -571
  398. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +0 -732
  399. package/vscode/src/vs/workbench/contrib/terminal/common/history.js +0 -378
  400. package/vscode/src/vs/workbench/contrib/terminal/common/terminalClipboard.js +0 -80
  401. package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +0 -282
  402. package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +0 -36
  403. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/media/terminalChatWidget.css.js +0 -4
  404. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +0 -46
  405. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +0 -303
  406. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +0 -203
  407. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/media/stickyScroll.css.js +0 -4
  408. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollColorRegistry.js +0 -22
  409. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollContribution.js +0 -97
  410. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollOverlay.js +0 -372
@@ -1,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 };