@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,143 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { localize } from '../../../../nls.js';
3
- import { PickerQuickAccessProvider, TriggerAction } from '../../../../platform/quickinput/browser/pickerQuickAccess.js';
4
- import { matchesFuzzy } from '../../../../base/common/filters.js';
5
- import { ITerminalService, ITerminalEditorService, ITerminalGroupService } from './terminal.service.js';
6
- import { ICommandService } from '../../../../platform/commands/common/commands.service.js';
7
- import { IThemeService } from '../../../../platform/theme/common/themeService.service.js';
8
- import { ThemeIcon } from '../../../../base/common/themables.js';
9
- import { renameTerminalIcon, killTerminalIcon } from './terminalIcons.js';
10
- import { getIconId, getColorClass, getUriClasses } from './terminalIcon.js';
11
- import { terminalStrings } from '../common/terminalStrings.js';
12
- import { TerminalLocation } from '../../../../platform/terminal/common/terminal.js';
13
- import { IEditorService } from '../../../services/editor/common/editorService.service.js';
14
- import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
15
- var TerminalQuickAccessProvider_1;
16
- let terminalPicks = [];
17
- let TerminalQuickAccessProvider = class TerminalQuickAccessProvider extends PickerQuickAccessProvider {
18
- static { TerminalQuickAccessProvider_1 = this; }
19
- static { this.PREFIX = 'term '; }
20
- constructor(_editorService, _terminalService, _terminalEditorService, _terminalGroupService, _commandService, _themeService, _instantiationService) {
21
- super(TerminalQuickAccessProvider_1.PREFIX, { canAcceptInBackground: true });
22
- this._editorService = _editorService;
23
- this._terminalService = _terminalService;
24
- this._terminalEditorService = _terminalEditorService;
25
- this._terminalGroupService = _terminalGroupService;
26
- this._commandService = _commandService;
27
- this._themeService = _themeService;
28
- this._instantiationService = _instantiationService;
29
- }
30
- _getPicks(filter) {
31
- terminalPicks = [];
32
- terminalPicks.push({ type: 'separator', label: 'panel' });
33
- const terminalGroups = this._terminalGroupService.groups;
34
- for (let groupIndex = 0; groupIndex < terminalGroups.length; groupIndex++) {
35
- const terminalGroup = terminalGroups[groupIndex];
36
- for (let terminalIndex = 0; terminalIndex < terminalGroup.terminalInstances.length; terminalIndex++) {
37
- const terminal = terminalGroup.terminalInstances[terminalIndex];
38
- const pick = this._createPick(terminal, terminalIndex, filter, { groupIndex, groupSize: terminalGroup.terminalInstances.length });
39
- if (pick) {
40
- terminalPicks.push(pick);
41
- }
42
- }
43
- }
44
- if (terminalPicks.length > 0) {
45
- terminalPicks.push({ type: 'separator', label: 'editor' });
46
- }
47
- const terminalEditors = this._terminalEditorService.instances;
48
- for (let editorIndex = 0; editorIndex < terminalEditors.length; editorIndex++) {
49
- const term = terminalEditors[editorIndex];
50
- term.target = TerminalLocation.Editor;
51
- const pick = this._createPick(term, editorIndex, filter);
52
- if (pick) {
53
- terminalPicks.push(pick);
54
- }
55
- }
56
- if (terminalPicks.length > 0) {
57
- terminalPicks.push({ type: 'separator' });
58
- }
59
- const createTerminalLabel = ( localize(9145, "Create New Terminal"));
60
- terminalPicks.push({
61
- label: `$(plus) ${createTerminalLabel}`,
62
- ariaLabel: createTerminalLabel,
63
- accept: () => this._commandService.executeCommand("workbench.action.terminal.new" )
64
- });
65
- const createWithProfileLabel = ( localize(9146, "Create New Terminal With Profile..."));
66
- terminalPicks.push({
67
- label: `$(plus) ${createWithProfileLabel}`,
68
- ariaLabel: createWithProfileLabel,
69
- accept: () => this._commandService.executeCommand("workbench.action.terminal.newWithProfile" )
70
- });
71
- return terminalPicks;
72
- }
73
- _createPick(terminal, terminalIndex, filter, groupInfo) {
74
- const iconId = this._instantiationService.invokeFunction(getIconId, terminal);
75
- const index = groupInfo
76
- ? (groupInfo.groupSize > 1
77
- ? `${groupInfo.groupIndex + 1}.${terminalIndex + 1}`
78
- : `${groupInfo.groupIndex + 1}`)
79
- : `${terminalIndex + 1}`;
80
- const label = `$(${iconId}) ${index}: ${terminal.title}`;
81
- const iconClasses = [];
82
- const colorClass = getColorClass(terminal);
83
- if (colorClass) {
84
- iconClasses.push(colorClass);
85
- }
86
- const uriClasses = getUriClasses(terminal, this._themeService.getColorTheme().type);
87
- if (uriClasses) {
88
- iconClasses.push(...uriClasses);
89
- }
90
- const highlights = matchesFuzzy(filter, label, true);
91
- if (highlights) {
92
- return {
93
- label,
94
- description: terminal.description,
95
- highlights: { label: highlights },
96
- buttons: [
97
- {
98
- iconClass: ThemeIcon.asClassName(renameTerminalIcon),
99
- tooltip: ( localize(9147, "Rename Terminal"))
100
- },
101
- {
102
- iconClass: ThemeIcon.asClassName(killTerminalIcon),
103
- tooltip: terminalStrings.kill.value
104
- }
105
- ],
106
- iconClasses,
107
- trigger: buttonIndex => {
108
- switch (buttonIndex) {
109
- case 0:
110
- this._commandService.executeCommand("workbench.action.terminal.rename" , terminal);
111
- return TriggerAction.NO_ACTION;
112
- case 1:
113
- this._terminalService.safeDisposeTerminal(terminal);
114
- return TriggerAction.REMOVE_ITEM;
115
- }
116
- return TriggerAction.NO_ACTION;
117
- },
118
- accept: (keyMod, event) => {
119
- if (terminal.target === TerminalLocation.Editor) {
120
- const existingEditors = this._editorService.findEditors(terminal.resource);
121
- this._terminalEditorService.openEditor(terminal, { viewColumn: existingEditors?.[0].groupId });
122
- this._terminalEditorService.setActiveInstance(terminal);
123
- }
124
- else {
125
- this._terminalGroupService.showPanel(!event.inBackground);
126
- this._terminalGroupService.setActiveInstance(terminal);
127
- }
128
- }
129
- };
130
- }
131
- return undefined;
132
- }
133
- };
134
- TerminalQuickAccessProvider = TerminalQuickAccessProvider_1 = ( (__decorate([
135
- ( (__param(0, IEditorService))),
136
- ( (__param(1, ITerminalService))),
137
- ( (__param(2, ITerminalEditorService))),
138
- ( (__param(3, ITerminalGroupService))),
139
- ( (__param(4, ICommandService))),
140
- ( (__param(5, IThemeService))),
141
- ( (__param(6, IInstantiationService)))
142
- ], TerminalQuickAccessProvider)));
143
- export { TerminalQuickAccessProvider };
@@ -1,61 +0,0 @@
1
- import { __decorate } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { getWindow, runWhenWindowIdle } from '../../../../base/browser/dom.js';
3
- import { debounce } from '../../../../base/common/decorators.js';
4
- import { Disposable, MutableDisposable } from '../../../../base/common/lifecycle.js';
5
- class TerminalResizeDebouncer extends Disposable {
6
- constructor(_isVisible, _getXterm, _resizeBothCallback, _resizeXCallback, _resizeYCallback) {
7
- super();
8
- this._isVisible = _isVisible;
9
- this._getXterm = _getXterm;
10
- this._resizeBothCallback = _resizeBothCallback;
11
- this._resizeXCallback = _resizeXCallback;
12
- this._resizeYCallback = _resizeYCallback;
13
- this._latestX = 0;
14
- this._latestY = 0;
15
- this._resizeXJob = this._register(( new MutableDisposable()));
16
- this._resizeYJob = this._register(( new MutableDisposable()));
17
- }
18
- async resize(cols, rows, immediate) {
19
- this._latestX = cols;
20
- this._latestY = rows;
21
- if (immediate || this._getXterm().raw.buffer.normal.length < 200 ) {
22
- this._resizeXJob.clear();
23
- this._resizeYJob.clear();
24
- this._resizeBothCallback(cols, rows);
25
- return;
26
- }
27
- const win = getWindow(this._getXterm().raw.element);
28
- if (win && !this._isVisible()) {
29
- if (!this._resizeXJob.value) {
30
- this._resizeXJob.value = runWhenWindowIdle(win, async () => {
31
- this._resizeXCallback(this._latestX);
32
- this._resizeXJob.clear();
33
- });
34
- }
35
- if (!this._resizeYJob.value) {
36
- this._resizeYJob.value = runWhenWindowIdle(win, async () => {
37
- this._resizeYCallback(this._latestY);
38
- this._resizeYJob.clear();
39
- });
40
- }
41
- return;
42
- }
43
- this._resizeYCallback(rows);
44
- this._latestX = cols;
45
- this._debounceResizeX(cols);
46
- }
47
- flush() {
48
- if (this._resizeXJob.value || this._resizeYJob.value) {
49
- this._resizeXJob.clear();
50
- this._resizeYJob.clear();
51
- this._resizeBothCallback(this._latestX, this._latestY);
52
- }
53
- }
54
- _debounceResizeX(cols) {
55
- this._resizeXCallback(cols);
56
- }
57
- }
58
- TerminalResizeDebouncer.__decorator = ( __decorate([
59
- debounce(100)
60
- ], TerminalResizeDebouncer.prototype, "_debounceResizeX", null));
61
- export { TerminalResizeDebouncer };
@@ -1,315 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { Toggle } from '../../../../base/browser/ui/toggle/toggle.js';
3
- import { isMacintosh } from '../../../../base/common/platform.js';
4
- import { IModelService } from '../../../../editor/common/services/model.js';
5
- import { ITextModelService } from '../../../../editor/common/services/resolverService.js';
6
- import { localize } from '../../../../nls.js';
7
- import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
8
- import { IQuickInputService } from '../../../../platform/quickinput/common/quickInput.service.js';
9
- import { collapseTildePath } from '../../../../platform/terminal/common/terminalEnvironment.js';
10
- import { asCssVariable } from '../../../../platform/theme/common/colorUtils.js';
11
- import '../../../../platform/theme/common/colors/baseColors.js';
12
- import '../../../../platform/theme/common/colors/chartsColors.js';
13
- import '../../../../platform/theme/common/colors/editorColors.js';
14
- import { inputActiveOptionBorder, inputActiveOptionForeground, inputActiveOptionBackground } from '../../../../platform/theme/common/colors/inputColors.js';
15
- import '../../../../platform/theme/common/colors/listColors.js';
16
- import '../../../../platform/theme/common/colors/menuColors.js';
17
- import '../../../../platform/theme/common/colors/minimapColors.js';
18
- import '../../../../platform/theme/common/colors/miscColors.js';
19
- import '../../../../platform/theme/common/colors/quickpickColors.js';
20
- import '../../../../platform/theme/common/colors/searchColors.js';
21
- import { ThemeIcon } from '../../../../base/common/themables.js';
22
- import { commandHistoryRemoveIcon, commandHistoryOutputIcon, commandHistoryFuzzySearchIcon } from './terminalIcons.js';
23
- import { getCommandHistory, getShellFileHistory, getDirectoryHistory } from '../common/history.js';
24
- import { terminalStrings } from '../common/terminalStrings.js';
25
- import { URI } from '../../../../base/common/uri.js';
26
- import { fromNow } from '../../../../base/common/date.js';
27
- import { IEditorService } from '../../../services/editor/common/editorService.service.js';
28
- import { showWithPinnedItems } from '../../../../platform/quickinput/browser/quickPickPin.js';
29
- import { IStorageService } from '../../../../platform/storage/common/storage.service.js';
30
- import { IAccessibleViewService } from '../../../../platform/accessibility/browser/accessibleView.service.js';
31
- import { Disposable, DisposableStore } from '../../../../base/common/lifecycle.js';
32
- var TerminalOutputProvider_1;
33
- async function showRunRecentQuickPick(accessor, instance, terminalInRunCommandPicker, type, filterMode, value) {
34
- if (!instance.xterm) {
35
- return;
36
- }
37
- const editorService = accessor.get(IEditorService);
38
- const instantiationService = accessor.get(IInstantiationService);
39
- const quickInputService = accessor.get(IQuickInputService);
40
- const storageService = accessor.get(IStorageService);
41
- const accessibleViewService = accessor.get(IAccessibleViewService);
42
- const runRecentStorageKey = `${"terminal.pinnedRecentCommands" }.${instance.shellType}`;
43
- let placeholder;
44
- let items = [];
45
- const commandMap = ( (new Set()));
46
- const removeFromCommandHistoryButton = {
47
- iconClass: ThemeIcon.asClassName(commandHistoryRemoveIcon),
48
- tooltip: ( localize(11149, "Remove from Command History"))
49
- };
50
- const commandOutputButton = {
51
- iconClass: ThemeIcon.asClassName(commandHistoryOutputIcon),
52
- tooltip: ( localize(11150, "View Command Output")),
53
- alwaysVisible: false
54
- };
55
- if (type === 'command') {
56
- placeholder = isMacintosh ? ( localize(11151, 'Select a command to run (hold Option-key to edit the command)')) : ( localize(11152, 'Select a command to run (hold Alt-key to edit the command)'));
57
- const cmdDetection = instance.capabilities.get(2 );
58
- const commands = cmdDetection?.commands;
59
- const executingCommand = cmdDetection?.executingCommand;
60
- if (executingCommand) {
61
- commandMap.add(executingCommand);
62
- }
63
- function formatLabel(label) {
64
- return label
65
- .replace(/\r?\n/g, '\u23CE')
66
- .replace(/\s\s\s+/g, '\u22EF');
67
- }
68
- if (commands && commands.length > 0) {
69
- for (const entry of commands) {
70
- const label = entry.command.trim();
71
- if (label.length === 0 || ( (commandMap.has(label)))) {
72
- continue;
73
- }
74
- let description = collapseTildePath(entry.cwd, instance.userHome, instance.os === 1 ? '\\' : '/');
75
- if (entry.exitCode) {
76
- if (entry.exitCode === -1) {
77
- description += ' failed';
78
- }
79
- else {
80
- description += ` exitCode: ${entry.exitCode}`;
81
- }
82
- }
83
- description = description.trim();
84
- const buttons = [commandOutputButton];
85
- const lastItem = items.length > 0 ? items[items.length - 1] : undefined;
86
- if (lastItem?.type !== 'separator' && lastItem?.label === label) {
87
- lastItem.id = ( (entry.timestamp.toString()));
88
- lastItem.description = description;
89
- continue;
90
- }
91
- items.push({
92
- label: formatLabel(label),
93
- rawLabel: label,
94
- description,
95
- id: ( (entry.timestamp.toString())),
96
- command: entry,
97
- buttons: entry.hasOutput() ? buttons : undefined
98
- });
99
- commandMap.add(label);
100
- }
101
- items = items.reverse();
102
- }
103
- if (executingCommand) {
104
- items.unshift({
105
- label: formatLabel(executingCommand),
106
- rawLabel: executingCommand,
107
- description: cmdDetection.cwd
108
- });
109
- }
110
- if (items.length > 0) {
111
- items.unshift({ type: 'separator', label: terminalStrings.currentSessionCategory });
112
- }
113
- const history = instantiationService.invokeFunction(getCommandHistory);
114
- const previousSessionItems = [];
115
- for (const [label, info] of history.entries) {
116
- if (!( (commandMap.has(label))) && info.shellType === instance.shellType) {
117
- previousSessionItems.unshift({
118
- label: formatLabel(label),
119
- rawLabel: label,
120
- buttons: [removeFromCommandHistoryButton]
121
- });
122
- commandMap.add(label);
123
- }
124
- }
125
- if (previousSessionItems.length > 0) {
126
- items.push({ type: 'separator', label: terminalStrings.previousSessionCategory }, ...previousSessionItems);
127
- }
128
- const shellFileHistory = await instantiationService.invokeFunction(getShellFileHistory, instance.shellType);
129
- const dedupedShellFileItems = [];
130
- for (const label of shellFileHistory) {
131
- if (!( (commandMap.has(label)))) {
132
- dedupedShellFileItems.unshift({
133
- label: formatLabel(label),
134
- rawLabel: label
135
- });
136
- }
137
- }
138
- if (dedupedShellFileItems.length > 0) {
139
- items.push({ type: 'separator', label: ( localize(11153, '{0} history', instance.shellType)) }, ...dedupedShellFileItems);
140
- }
141
- }
142
- else {
143
- placeholder = isMacintosh
144
- ? ( localize(11154, 'Select a directory to go to (hold Option-key to edit the command)'))
145
- : ( localize(11155, 'Select a directory to go to (hold Alt-key to edit the command)'));
146
- const cwds = instance.capabilities.get(0 )?.cwds || [];
147
- if (cwds && cwds.length > 0) {
148
- for (const label of cwds) {
149
- items.push({ label, rawLabel: label });
150
- }
151
- items = items.reverse();
152
- items.unshift({ type: 'separator', label: terminalStrings.currentSessionCategory });
153
- }
154
- const history = instantiationService.invokeFunction(getDirectoryHistory);
155
- const previousSessionItems = [];
156
- for (const [label, info] of history.entries) {
157
- if ((info === null || info.remoteAuthority === instance.remoteAuthority) && !cwds.includes(label)) {
158
- previousSessionItems.unshift({
159
- label,
160
- rawLabel: label,
161
- buttons: [removeFromCommandHistoryButton]
162
- });
163
- }
164
- }
165
- if (previousSessionItems.length > 0) {
166
- items.push({ type: 'separator', label: terminalStrings.previousSessionCategory }, ...previousSessionItems);
167
- }
168
- }
169
- if (items.length === 0) {
170
- return;
171
- }
172
- const disposables = ( (new DisposableStore()));
173
- const fuzzySearchToggle = disposables.add(( (new Toggle({
174
- title: 'Fuzzy search',
175
- icon: commandHistoryFuzzySearchIcon,
176
- isChecked: filterMode === 'fuzzy',
177
- inputActiveOptionBorder: asCssVariable(inputActiveOptionBorder),
178
- inputActiveOptionForeground: asCssVariable(inputActiveOptionForeground),
179
- inputActiveOptionBackground: asCssVariable(inputActiveOptionBackground)
180
- }))));
181
- disposables.add(fuzzySearchToggle.onChange(() => {
182
- instantiationService.invokeFunction(showRunRecentQuickPick, instance, terminalInRunCommandPicker, type, fuzzySearchToggle.checked ? 'fuzzy' : 'contiguous', quickPick.value);
183
- }));
184
- const outputProvider = disposables.add(instantiationService.createInstance(TerminalOutputProvider));
185
- const quickPick = disposables.add(quickInputService.createQuickPick({ useSeparators: true }));
186
- const originalItems = items;
187
- quickPick.items = [...originalItems];
188
- quickPick.sortByLabel = false;
189
- quickPick.placeholder = placeholder;
190
- quickPick.matchOnLabelMode = filterMode || 'contiguous';
191
- quickPick.toggles = [fuzzySearchToggle];
192
- disposables.add(quickPick.onDidTriggerItemButton(async (e) => {
193
- if (e.button === removeFromCommandHistoryButton) {
194
- if (type === 'command') {
195
- instantiationService.invokeFunction(getCommandHistory)?.remove(e.item.label);
196
- }
197
- else {
198
- instantiationService.invokeFunction(getDirectoryHistory)?.remove(e.item.label);
199
- }
200
- }
201
- else if (e.button === commandOutputButton) {
202
- const selectedCommand = e.item.command;
203
- const output = selectedCommand?.getOutput();
204
- if (output && selectedCommand?.command) {
205
- const textContent = await outputProvider.provideTextContent(( (URI.from({
206
- scheme: TerminalOutputProvider.scheme,
207
- path: `${selectedCommand.command}... ${fromNow(selectedCommand.timestamp, true)}`,
208
- fragment: output,
209
- query: `terminal-output-${selectedCommand.timestamp}-${instance.instanceId}`
210
- }))));
211
- if (textContent) {
212
- await editorService.openEditor({
213
- resource: textContent.uri
214
- });
215
- }
216
- }
217
- }
218
- await instantiationService.invokeFunction(showRunRecentQuickPick, instance, terminalInRunCommandPicker, type, filterMode, value);
219
- }));
220
- disposables.add(quickPick.onDidChangeValue(async (value) => {
221
- if (!value) {
222
- await instantiationService.invokeFunction(showRunRecentQuickPick, instance, terminalInRunCommandPicker, type, filterMode, value);
223
- }
224
- }));
225
- let terminalScrollStateSaved = false;
226
- function restoreScrollState() {
227
- terminalScrollStateSaved = false;
228
- instance.xterm?.markTracker.restoreScrollState();
229
- instance.xterm?.markTracker.clear();
230
- }
231
- disposables.add(quickPick.onDidChangeActive(async () => {
232
- const xterm = instance.xterm;
233
- if (!xterm) {
234
- return;
235
- }
236
- const [item] = quickPick.activeItems;
237
- if (!item) {
238
- return;
239
- }
240
- if ('command' in item && item.command && item.command.marker) {
241
- if (!terminalScrollStateSaved) {
242
- xterm.markTracker.saveScrollState();
243
- terminalScrollStateSaved = true;
244
- }
245
- const promptRowCount = item.command.getPromptRowCount();
246
- const commandRowCount = item.command.getCommandRowCount();
247
- xterm.markTracker.revealRange({
248
- start: {
249
- x: 1,
250
- y: item.command.marker.line - (promptRowCount - 1) + 1
251
- },
252
- end: {
253
- x: instance.cols,
254
- y: item.command.marker.line + (commandRowCount - 1) + 1
255
- }
256
- });
257
- }
258
- else {
259
- restoreScrollState();
260
- }
261
- }));
262
- disposables.add(quickPick.onDidAccept(async () => {
263
- const result = quickPick.activeItems[0];
264
- let text;
265
- if (type === 'cwd') {
266
- text = `cd ${await instance.preparePathForShell(result.rawLabel)}`;
267
- }
268
- else {
269
- text = result.rawLabel;
270
- }
271
- quickPick.hide();
272
- instance.runCommand(text, !quickPick.keyMods.alt);
273
- if (quickPick.keyMods.alt) {
274
- instance.focus();
275
- }
276
- restoreScrollState();
277
- }));
278
- disposables.add(quickPick.onDidHide(() => restoreScrollState()));
279
- if (value) {
280
- quickPick.value = value;
281
- }
282
- return (
283
- (new Promise(r => {
284
- terminalInRunCommandPicker.set(true);
285
- disposables.add(showWithPinnedItems(storageService, runRecentStorageKey, quickPick));
286
- disposables.add(quickPick.onDidHide(() => {
287
- terminalInRunCommandPicker.set(false);
288
- accessibleViewService.showLastProvider("terminal" );
289
- r();
290
- disposables.dispose();
291
- }));
292
- }))
293
- );
294
- }
295
- let TerminalOutputProvider = class TerminalOutputProvider extends Disposable {
296
- static { TerminalOutputProvider_1 = this; }
297
- static { this.scheme = 'TERMINAL_OUTPUT'; }
298
- constructor(textModelResolverService, _modelService) {
299
- super();
300
- this._modelService = _modelService;
301
- this._register(textModelResolverService.registerTextModelContentProvider(TerminalOutputProvider_1.scheme, this));
302
- }
303
- async provideTextContent(resource) {
304
- const existing = this._modelService.getModel(resource);
305
- if (existing && !existing.isDisposed()) {
306
- return existing;
307
- }
308
- return this._modelService.createModel(resource.fragment, null, resource, false);
309
- }
310
- };
311
- TerminalOutputProvider = TerminalOutputProvider_1 = ( (__decorate([
312
- ( (__param(0, ITextModelService))),
313
- ( (__param(1, IModelService)))
314
- ], TerminalOutputProvider)));
315
- export { showRunRecentQuickPick };
@@ -1,121 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { Codicon } from '../../../../base/common/codicons.js';
3
- import { Emitter } from '../../../../base/common/event.js';
4
- import { Disposable } from '../../../../base/common/lifecycle.js';
5
- import Severity$1 from '../../../../base/common/severity.js';
6
- import { IConfigurationService } from '../../../../platform/configuration/common/configuration.service.js';
7
- import '../../../../platform/theme/common/colorUtils.js';
8
- import '../../../../platform/theme/common/colors/baseColors.js';
9
- import '../../../../platform/theme/common/colors/chartsColors.js';
10
- import '../../../../platform/theme/common/colors/editorColors.js';
11
- import '../../../../platform/theme/common/colors/inputColors.js';
12
- import { listWarningForeground, listErrorForeground } from '../../../../platform/theme/common/colors/listColors.js';
13
- import '../../../../platform/theme/common/colors/menuColors.js';
14
- import '../../../../platform/theme/common/colors/minimapColors.js';
15
- import '../../../../platform/theme/common/colors/miscColors.js';
16
- import '../../../../platform/theme/common/colors/quickpickColors.js';
17
- import '../../../../platform/theme/common/colors/searchColors.js';
18
- import { spinningLoading } from '../../../../platform/theme/common/iconRegistry.js';
19
- import { ThemeIcon } from '../../../../base/common/themables.js';
20
- import { mainWindow } from '../../../../base/browser/window.js';
21
- let TerminalStatusList = class TerminalStatusList extends Disposable {
22
- get onDidAddStatus() { return this._onDidAddStatus.event; }
23
- get onDidRemoveStatus() { return this._onDidRemoveStatus.event; }
24
- get onDidChangePrimaryStatus() { return this._onDidChangePrimaryStatus.event; }
25
- constructor(_configurationService) {
26
- super();
27
- this._configurationService = _configurationService;
28
- this._statuses = ( new Map());
29
- this._statusTimeouts = ( new Map());
30
- this._onDidAddStatus = this._register(( new Emitter()));
31
- this._onDidRemoveStatus = this._register(( new Emitter()));
32
- this._onDidChangePrimaryStatus = this._register(( new Emitter()));
33
- }
34
- get primary() {
35
- let result;
36
- for (const s of ( this._statuses.values())) {
37
- if (!result || s.severity >= result.severity) {
38
- if (s.icon || !result?.icon) {
39
- result = s;
40
- }
41
- }
42
- }
43
- return result;
44
- }
45
- get statuses() { return Array.from(( this._statuses.values())); }
46
- add(status, duration) {
47
- status = this._applyAnimationSetting(status);
48
- const outTimeout = this._statusTimeouts.get(status.id);
49
- if (outTimeout) {
50
- mainWindow.clearTimeout(outTimeout);
51
- this._statusTimeouts.delete(status.id);
52
- }
53
- if (duration && duration > 0) {
54
- const timeout = mainWindow.setTimeout(() => this.remove(status), duration);
55
- this._statusTimeouts.set(status.id, timeout);
56
- }
57
- const existingStatus = this._statuses.get(status.id);
58
- if (existingStatus && existingStatus !== status) {
59
- this._onDidRemoveStatus.fire(existingStatus);
60
- this._statuses.delete(existingStatus.id);
61
- }
62
- if (!( this._statuses.has(status.id))) {
63
- const oldPrimary = this.primary;
64
- this._statuses.set(status.id, status);
65
- this._onDidAddStatus.fire(status);
66
- const newPrimary = this.primary;
67
- if (oldPrimary !== newPrimary) {
68
- this._onDidChangePrimaryStatus.fire(newPrimary);
69
- }
70
- }
71
- }
72
- remove(statusOrId) {
73
- const status = typeof statusOrId === 'string' ? this._statuses.get(statusOrId) : statusOrId;
74
- if (status && this._statuses.get(status.id)) {
75
- const wasPrimary = this.primary?.id === status.id;
76
- this._statuses.delete(status.id);
77
- this._onDidRemoveStatus.fire(status);
78
- if (wasPrimary) {
79
- this._onDidChangePrimaryStatus.fire(this.primary);
80
- }
81
- }
82
- }
83
- toggle(status, value) {
84
- if (value) {
85
- this.add(status);
86
- }
87
- else {
88
- this.remove(status);
89
- }
90
- }
91
- _applyAnimationSetting(status) {
92
- if (!status.icon || ThemeIcon.getModifier(status.icon) !== 'spin' || this._configurationService.getValue("terminal.integrated.tabs.enableAnimation" )) {
93
- return status;
94
- }
95
- let icon;
96
- if (status.icon.id === spinningLoading.id) {
97
- icon = Codicon.play;
98
- }
99
- else {
100
- icon = ThemeIcon.modify(status.icon, undefined);
101
- }
102
- return {
103
- ...status,
104
- icon
105
- };
106
- }
107
- };
108
- TerminalStatusList = ( __decorate([
109
- ( __param(0, IConfigurationService))
110
- ], TerminalStatusList));
111
- function getColorForSeverity(severity) {
112
- switch (severity) {
113
- case Severity$1.Error:
114
- return listErrorForeground;
115
- case Severity$1.Warning:
116
- return listWarningForeground;
117
- default:
118
- return '';
119
- }
120
- }
121
- export { TerminalStatusList, getColorForSeverity };