@codingame/monaco-vscode-api 10.0.2 → 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 (390) hide show
  1. package/README.md +27 -0
  2. package/missing-services.js +7060 -1573
  3. package/monaco.d.ts +1 -1
  4. package/monaco.js +1 -1
  5. package/package.json +8 -15
  6. package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +1 -1
  7. package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
  8. package/vscode/src/vs/base/browser/ui/splitview/paneview.js +1 -1
  9. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +1 -1
  10. package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +9 -9
  11. package/vscode/src/vs/base/common/date.js +61 -61
  12. package/vscode/src/vs/base/common/errorMessage.js +15 -6
  13. package/vscode/src/vs/base/common/errors.d.ts +3 -1
  14. package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
  15. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +1 -1
  16. package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.js +4 -4
  17. package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
  18. package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +1 -1
  19. package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -1
  20. package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
  21. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
  22. package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
  23. package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +14 -14
  24. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
  25. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
  26. package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
  27. package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +4 -4
  28. package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +2 -2
  29. package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
  30. package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +51 -51
  31. package/vscode/src/vs/editor/common/config/editorOptions.js +368 -368
  32. package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
  33. package/vscode/src/vs/editor/common/model/editStack.js +1 -1
  34. package/vscode/src/vs/editor/common/standaloneStrings.js +32 -32
  35. package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
  36. package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
  37. package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
  38. package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
  39. package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
  40. package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
  41. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +28 -28
  42. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
  43. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
  44. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
  45. package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
  46. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
  47. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
  48. package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
  49. package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
  50. package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
  51. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +3 -3
  52. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +7 -7
  53. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
  54. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +1 -1
  55. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
  56. package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
  57. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +27 -27
  58. package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
  59. package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
  60. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
  61. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
  62. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
  63. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  64. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
  65. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
  66. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
  67. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
  68. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
  69. package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
  70. package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
  71. package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +23 -23
  72. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
  73. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
  74. package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  75. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
  76. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
  77. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +14 -14
  78. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
  79. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
  80. package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  81. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
  82. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
  83. package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
  84. package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
  85. package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
  86. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  87. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
  88. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +17 -17
  89. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  90. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
  91. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
  92. package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
  93. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
  94. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
  95. package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
  96. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
  97. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  98. package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
  99. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
  100. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +16 -16
  101. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
  102. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
  103. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  104. package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  105. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
  106. package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  107. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  108. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
  109. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
  110. package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
  111. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
  112. package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
  113. package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
  114. package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
  115. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  116. package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
  117. package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
  118. package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
  119. package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
  120. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -2
  121. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
  122. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -11
  123. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
  124. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
  125. package/vscode/src/vs/platform/files/common/files.js +6 -6
  126. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
  127. package/vscode/src/vs/platform/list/browser/listService.js +27 -27
  128. package/vscode/src/vs/platform/log/common/log.js +6 -6
  129. package/vscode/src/vs/platform/markers/common/markers.js +3 -3
  130. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +8 -8
  131. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +6 -6
  132. package/vscode/src/vs/platform/request/common/request.js +14 -14
  133. package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
  134. package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
  135. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  136. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
  137. package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
  138. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
  139. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
  140. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
  141. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
  142. package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
  143. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
  144. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
  145. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
  146. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
  147. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
  148. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
  149. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
  150. package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
  151. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +129 -129
  152. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
  153. package/vscode/src/vs/workbench/browser/actions/windowActions.js +25 -25
  154. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
  155. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
  156. package/vscode/src/vs/workbench/browser/editor.js +2 -2
  157. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +41 -41
  158. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +16 -16
  159. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
  160. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
  161. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +15 -15
  162. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +17 -17
  163. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
  164. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
  165. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +9 -9
  166. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
  167. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
  168. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
  169. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +4 -4
  170. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +34 -34
  171. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
  172. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
  173. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
  174. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
  175. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
  176. package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
  177. package/vscode/src/vs/workbench/browser/workbench.contribution.js +217 -217
  178. package/vscode/src/vs/workbench/common/configuration.js +10 -10
  179. package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
  180. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
  181. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
  182. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
  183. package/vscode/src/vs/workbench/common/views.js +4 -4
  184. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
  185. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +17 -18
  186. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.js +5 -0
  187. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +7 -6
  188. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +8 -7
  189. package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +1 -1
  190. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +9 -9
  191. package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +2 -2
  192. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js +8 -8
  193. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCodeCitationContentPart.js +1 -1
  194. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCommandContentPart.js +1 -1
  195. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationContentPart.js +2 -2
  196. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatReferencesContentPart.js +8 -8
  197. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.js +2 -2
  198. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatToolInvocationPart.js +1 -1
  199. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTreeContentPart.js +1 -1
  200. package/vscode/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.js +3 -3
  201. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditingService.js +13 -12
  202. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +2 -2
  203. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +1 -1
  204. package/vscode/src/vs/workbench/contrib/chat/browser/chatImagePaste.js +1 -1
  205. package/vscode/src/vs/workbench/contrib/chat/browser/chatInlineAnchorWidget.js +5 -5
  206. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +12 -12
  207. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +12 -12
  208. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +3 -4
  209. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +15 -15
  210. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +4 -3
  211. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariablesConstant.js +2 -0
  212. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.js +1 -1
  213. package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +6 -6
  214. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +21 -21
  215. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +3 -3
  216. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
  217. package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +10 -10
  218. package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -6
  219. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
  220. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
  221. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
  222. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
  223. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
  224. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
  225. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  226. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
  227. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  228. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
  229. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
  230. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -4
  231. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  232. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -5
  233. package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
  234. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
  235. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +13 -13
  236. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +10 -10
  237. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
  238. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +65 -65
  239. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
  240. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
  241. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +34 -34
  242. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
  243. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
  244. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +63 -63
  245. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
  246. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
  247. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
  248. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +173 -173
  249. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
  250. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
  251. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
  252. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
  253. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
  254. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
  255. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
  256. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  257. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -33
  258. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +52 -52
  259. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
  260. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
  261. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +8 -8
  262. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
  263. package/vscode/src/vs/workbench/contrib/files/common/files.js +14 -14
  264. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
  265. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
  266. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
  267. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  268. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
  269. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +19 -19
  270. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +6 -6
  271. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
  272. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +41 -41
  273. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  274. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  275. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
  276. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +29 -29
  277. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +8 -8
  278. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +2 -2
  279. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
  280. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +6 -6
  281. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +3 -3
  282. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
  283. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +3 -3
  284. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +5 -5
  285. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +2 -2
  286. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
  287. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
  288. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +4 -4
  289. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
  290. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
  291. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
  292. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +3 -3
  293. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +4 -4
  294. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +8 -8
  295. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
  296. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
  297. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +4 -4
  298. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
  299. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
  300. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +15 -15
  301. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
  302. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
  303. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +12 -12
  304. package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
  305. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
  306. package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +13 -13
  307. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +5 -1
  308. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +10 -10
  309. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +1 -1
  310. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +2 -2
  311. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  312. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  313. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  314. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
  315. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
  316. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +5 -5
  317. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +3 -3
  318. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +4 -4
  319. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +7 -7
  320. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +16 -16
  321. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatControllerHolder.js +5 -0
  322. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
  323. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
  324. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
  325. package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
  326. package/vscode/src/vs/workbench/services/activity/common/activity.js +4 -4
  327. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
  328. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +15 -15
  329. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
  330. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
  331. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
  332. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
  333. package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
  334. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
  335. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
  336. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +2 -2
  337. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
  338. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
  339. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
  340. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
  341. package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
  342. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
  343. package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
  344. package/vscode/src/vs/base/common/processes.js +0 -25
  345. package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +0 -41
  346. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.js +0 -345
  347. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +0 -296
  348. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +0 -761
  349. package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +0 -29
  350. package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +0 -22
  351. package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +0 -48
  352. package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +0 -94
  353. package/vscode/src/vs/platform/terminal/common/environmentVariable.js +0 -7
  354. package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.js +0 -196
  355. package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +0 -40
  356. package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +0 -107
  357. package/vscode/src/vs/platform/terminal/common/terminalRecorder.js +0 -67
  358. package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +0 -346
  359. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +0 -167
  360. package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +0 -119
  361. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +0 -1770
  362. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +0 -40
  363. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +0 -25
  364. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIconPicker.js +0 -72
  365. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +0 -16
  366. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +0 -2218
  367. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +0 -628
  368. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +0 -143
  369. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalResizeDebouncer.js +0 -61
  370. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +0 -315
  371. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.js +0 -121
  372. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalUri.js +0 -39
  373. package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +0 -36
  374. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +0 -498
  375. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +0 -123
  376. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +0 -55
  377. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +0 -571
  378. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +0 -732
  379. package/vscode/src/vs/workbench/contrib/terminal/common/history.js +0 -378
  380. package/vscode/src/vs/workbench/contrib/terminal/common/terminalClipboard.js +0 -80
  381. package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +0 -282
  382. package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +0 -36
  383. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/media/terminalChatWidget.css.js +0 -4
  384. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +0 -46
  385. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +0 -303
  386. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +0 -203
  387. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/media/stickyScroll.css.js +0 -4
  388. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollColorRegistry.js +0 -22
  389. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollContribution.js +0 -97
  390. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollOverlay.js +0 -372
@@ -1,628 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { Emitter, Event } from '../../../../base/common/event.js';
3
- import { Disposable, dispose, toDisposable } from '../../../../base/common/lifecycle.js';
4
- import { Schemas } from '../../../../base/common/network.js';
5
- import { OS, isWindows, isMacintosh } from '../../../../base/common/platform.js';
6
- import { localize } from '../../../../nls.js';
7
- import { formatMessageForTerminal } from '../../../../platform/terminal/common/terminalStrings.js';
8
- import { IConfigurationService } from '../../../../platform/configuration/common/configuration.service.js';
9
- import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
10
- import { IProductService } from '../../../../platform/product/common/productService.service.js';
11
- import { getRemoteAuthority } from '../../../../platform/remote/common/remoteHosts.js';
12
- import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.service.js';
13
- import { NaiveCwdDetectionCapability } from '../../../../platform/terminal/common/capabilities/naiveCwdDetectionCapability.js';
14
- import { TerminalCapabilityStore } from '../../../../platform/terminal/common/capabilities/terminalCapabilityStore.js';
15
- import { ITerminalLogService } from '../../../../platform/terminal/common/terminal.service.js';
16
- import { TerminalRecorder } from '../../../../platform/terminal/common/terminalRecorder.js';
17
- import { IWorkspaceContextService } from '../../../../platform/workspace/common/workspace.service.js';
18
- import { EnvironmentVariableInfoChangesActive, EnvironmentVariableInfoStale } from './environmentVariableInfo.js';
19
- import { ITerminalConfigurationService, ITerminalInstanceService } from './terminal.service.js';
20
- import { IEnvironmentVariableService } from '../common/environmentVariable.service.js';
21
- import { MergedEnvironmentVariableCollection } from '../../../../platform/terminal/common/environmentVariableCollection.js';
22
- import { serializeEnvironmentVariableCollections } from '../../../../platform/terminal/common/environmentVariableShared.js';
23
- import { ITerminalProfileResolverService } from '../common/terminal.service.js';
24
- import { getWorkspaceForTerminal, createVariableResolver, createTerminalEnvironment, getCwd } from '../common/terminalEnvironment.js';
25
- import { IConfigurationResolverService } from '../../../services/configurationResolver/common/configurationResolver.service.js';
26
- import { IWorkbenchEnvironmentService } from '../../../services/environment/common/environmentService.service.js';
27
- import { IHistoryService } from '../../../services/history/common/history.service.js';
28
- import { IPathService } from '../../../services/path/common/pathService.service.js';
29
- import { IRemoteAgentService } from '../../../services/remote/common/remoteAgentService.service.js';
30
- import Severity$1 from '../../../../base/common/severity.js';
31
- import { INotificationService } from '../../../../platform/notification/common/notification.service.js';
32
- import { generateUuid } from '../../../../base/common/uuid.js';
33
- import { runWhenWindowIdle, getActiveWindow } from '../../../../base/browser/dom.js';
34
- import { mainWindow } from '../../../../base/browser/window.js';
35
- import { shouldUseEnvironmentVariableCollection } from '../../../../platform/terminal/common/terminalEnvironment.js';
36
- let TerminalProcessManager = class TerminalProcessManager extends Disposable {
37
- get persistentProcessId() { return this._process?.id; }
38
- get shouldPersist() { return !!this.reconnectionProperties || (this._process ? this._process.shouldPersist : false); }
39
- get hasWrittenData() { return this._hasWrittenData; }
40
- get hasChildProcesses() { return this._hasChildProcesses; }
41
- get reconnectionProperties() { return this._shellLaunchConfig?.attachPersistentProcess?.reconnectionProperties || this._shellLaunchConfig?.reconnectionProperties || undefined; }
42
- get extEnvironmentVariableCollection() { return this._extEnvironmentVariableCollection; }
43
- constructor(_instanceId, cwd, environmentVariableCollections, shellIntegrationNonce, _historyService, _instantiationService, _logService, _workspaceContextService, _configurationResolverService, _workbenchEnvironmentService, _productService, _remoteAgentService, _pathService, _environmentVariableService, _terminalConfigurationService, _terminalProfileResolverService, _configurationService, _terminalInstanceService, _telemetryService, _notificationService) {
44
- super();
45
- this._instanceId = _instanceId;
46
- this._historyService = _historyService;
47
- this._instantiationService = _instantiationService;
48
- this._logService = _logService;
49
- this._workspaceContextService = _workspaceContextService;
50
- this._configurationResolverService = _configurationResolverService;
51
- this._workbenchEnvironmentService = _workbenchEnvironmentService;
52
- this._productService = _productService;
53
- this._remoteAgentService = _remoteAgentService;
54
- this._pathService = _pathService;
55
- this._environmentVariableService = _environmentVariableService;
56
- this._terminalConfigurationService = _terminalConfigurationService;
57
- this._terminalProfileResolverService = _terminalProfileResolverService;
58
- this._configurationService = _configurationService;
59
- this._terminalInstanceService = _terminalInstanceService;
60
- this._telemetryService = _telemetryService;
61
- this._notificationService = _notificationService;
62
- this.processState = 1 ;
63
- this.capabilities = this._register(( (new TerminalCapabilityStore())));
64
- this._isDisposed = false;
65
- this._process = null;
66
- this._processType = 0 ;
67
- this._preLaunchInputQueue = [];
68
- this._hasWrittenData = false;
69
- this._hasChildProcesses = false;
70
- this._ptyListenersAttached = false;
71
- this._isDisconnected = false;
72
- this._dimensions = { cols: 0, rows: 0 };
73
- this._onPtyDisconnect = this._register(( (new Emitter())));
74
- this.onPtyDisconnect = this._onPtyDisconnect.event;
75
- this._onPtyReconnect = this._register(( (new Emitter())));
76
- this.onPtyReconnect = this._onPtyReconnect.event;
77
- this._onProcessReady = this._register(( (new Emitter())));
78
- this.onProcessReady = this._onProcessReady.event;
79
- this._onProcessStateChange = this._register(( (new Emitter())));
80
- this.onProcessStateChange = this._onProcessStateChange.event;
81
- this._onBeforeProcessData = this._register(( (new Emitter())));
82
- this.onBeforeProcessData = this._onBeforeProcessData.event;
83
- this._onProcessData = this._register(( (new Emitter())));
84
- this.onProcessData = this._onProcessData.event;
85
- this._onProcessReplayComplete = this._register(( (new Emitter())));
86
- this.onProcessReplayComplete = this._onProcessReplayComplete.event;
87
- this._onDidChangeProperty = this._register(( (new Emitter())));
88
- this.onDidChangeProperty = this._onDidChangeProperty.event;
89
- this._onEnvironmentVariableInfoChange = this._register(( (new Emitter())));
90
- this.onEnvironmentVariableInfoChanged = this._onEnvironmentVariableInfoChange.event;
91
- this._onProcessExit = this._register(( (new Emitter())));
92
- this.onProcessExit = this._onProcessExit.event;
93
- this._onRestoreCommands = this._register(( (new Emitter())));
94
- this.onRestoreCommands = this._onRestoreCommands.event;
95
- this._cwdWorkspaceFolder = getWorkspaceForTerminal(cwd, this._workspaceContextService, this._historyService);
96
- this.ptyProcessReady = this._createPtyProcessReadyPromise();
97
- this._ackDataBufferer = ( (new AckDataBufferer(e => this._process?.acknowledgeDataEvent(e))));
98
- this._dataFilter = this._register(this._instantiationService.createInstance(SeamlessRelaunchDataFilter));
99
- this._register(this._dataFilter.onProcessData(ev => {
100
- const data = (typeof ev === 'string' ? ev : ev.data);
101
- const beforeProcessDataEvent = { data };
102
- this._onBeforeProcessData.fire(beforeProcessDataEvent);
103
- if (beforeProcessDataEvent.data && beforeProcessDataEvent.data.length > 0) {
104
- if (typeof ev !== 'string') {
105
- ev.data = beforeProcessDataEvent.data;
106
- }
107
- this._onProcessData.fire(typeof ev !== 'string' ? ev : { data: beforeProcessDataEvent.data, trackCommit: false });
108
- }
109
- }));
110
- if (cwd && typeof cwd === 'object') {
111
- this.remoteAuthority = getRemoteAuthority(cwd);
112
- }
113
- else {
114
- this.remoteAuthority = this._workbenchEnvironmentService.remoteAuthority;
115
- }
116
- if (environmentVariableCollections) {
117
- this._extEnvironmentVariableCollection = ( (new MergedEnvironmentVariableCollection(environmentVariableCollections)));
118
- this._register(this._environmentVariableService.onDidChangeCollections(newCollection => this._onEnvironmentVariableCollectionChange(newCollection)));
119
- this.environmentVariableInfo = this._instantiationService.createInstance(EnvironmentVariableInfoChangesActive, this._extEnvironmentVariableCollection);
120
- this._onEnvironmentVariableInfoChange.fire(this.environmentVariableInfo);
121
- }
122
- this.shellIntegrationNonce = shellIntegrationNonce ?? generateUuid();
123
- }
124
- async freePortKillProcess(port) {
125
- try {
126
- if (this._process?.freePortKillProcess) {
127
- await this._process?.freePortKillProcess(port);
128
- }
129
- }
130
- catch (e) {
131
- this._notificationService.notify({ message: ( localize(
132
- 11147,
133
- 'Could not kill process listening on port {0}, command exited with error {1}',
134
- port,
135
- e
136
- )), severity: Severity$1.Warning });
137
- }
138
- }
139
- dispose(immediate = false) {
140
- this._isDisposed = true;
141
- if (this._process) {
142
- this._setProcessState(5 );
143
- this._process.shutdown(immediate);
144
- this._process = null;
145
- }
146
- super.dispose();
147
- }
148
- _createPtyProcessReadyPromise() {
149
- return (
150
- (new Promise(c => {
151
- const listener = Event.once(this.onProcessReady)(() => {
152
- this._logService.debug(`Terminal process ready (shellProcessId: ${this.shellProcessId})`);
153
- this._store.delete(listener);
154
- c(undefined);
155
- });
156
- this._store.add(listener);
157
- }))
158
- );
159
- }
160
- async detachFromProcess(forcePersist) {
161
- await this._process?.detach?.(forcePersist);
162
- this._process = null;
163
- }
164
- async createProcess(shellLaunchConfig, cols, rows, reset = true) {
165
- this._shellLaunchConfig = shellLaunchConfig;
166
- this._dimensions.cols = cols;
167
- this._dimensions.rows = rows;
168
- let newProcess;
169
- if (shellLaunchConfig.customPtyImplementation) {
170
- this._processType = 1 ;
171
- newProcess = shellLaunchConfig.customPtyImplementation(this._instanceId, cols, rows);
172
- }
173
- else {
174
- const backend = await this._terminalInstanceService.getBackend(this.remoteAuthority);
175
- if (!backend) {
176
- throw ( (new Error(
177
- `No terminal backend registered for remote authority '${this.remoteAuthority}'`
178
- )));
179
- }
180
- this.backend = backend;
181
- const variableResolver = createVariableResolver(this._cwdWorkspaceFolder, await this._terminalProfileResolverService.getEnvironment(this.remoteAuthority), this._configurationResolverService);
182
- this.userHome = this._pathService.resolvedUserHome?.fsPath;
183
- this.os = OS;
184
- if (!!this.remoteAuthority) {
185
- const userHomeUri = await this._pathService.userHome();
186
- this.userHome = userHomeUri.path;
187
- const remoteEnv = await this._remoteAgentService.getEnvironment();
188
- if (!remoteEnv) {
189
- throw ( (new Error(
190
- `Failed to get remote environment for remote authority "${this.remoteAuthority}"`
191
- )));
192
- }
193
- this.userHome = remoteEnv.userHome.path;
194
- this.os = remoteEnv.os;
195
- const env = await this._resolveEnvironment(backend, variableResolver, shellLaunchConfig);
196
- const shouldPersist = ((this._configurationService.getValue("task.reconnection" ) && shellLaunchConfig.reconnectionProperties) || !shellLaunchConfig.isFeatureTerminal) && this._terminalConfigurationService.config.enablePersistentSessions && !shellLaunchConfig.isTransient;
197
- if (shellLaunchConfig.attachPersistentProcess) {
198
- const result = await backend.attachToProcess(shellLaunchConfig.attachPersistentProcess.id);
199
- if (result) {
200
- newProcess = result;
201
- }
202
- else {
203
- this._logService.warn(`Attach to process failed for terminal`, shellLaunchConfig.attachPersistentProcess);
204
- shellLaunchConfig.attachPersistentProcess = undefined;
205
- }
206
- }
207
- if (!newProcess) {
208
- await this._terminalProfileResolverService.resolveShellLaunchConfig(shellLaunchConfig, {
209
- remoteAuthority: this.remoteAuthority,
210
- os: this.os
211
- });
212
- const options = {
213
- shellIntegration: {
214
- enabled: this._configurationService.getValue("terminal.integrated.shellIntegration.enabled" ),
215
- suggestEnabled: this._configurationService.getValue("terminal.integrated.suggest.enabled" ),
216
- nonce: this.shellIntegrationNonce
217
- },
218
- windowsEnableConpty: this._terminalConfigurationService.config.windowsEnableConpty,
219
- windowsUseConptyDll: this._terminalConfigurationService.config.experimental?.windowsUseConptyDll ?? false,
220
- environmentVariableCollections: this._extEnvironmentVariableCollection?.collections ? serializeEnvironmentVariableCollections(this._extEnvironmentVariableCollection.collections) : undefined,
221
- workspaceFolder: this._cwdWorkspaceFolder,
222
- };
223
- try {
224
- newProcess = await backend.createProcess(shellLaunchConfig, '',
225
- cols, rows, this._terminalConfigurationService.config.unicodeVersion, env,
226
- options, shouldPersist);
227
- }
228
- catch (e) {
229
- if (e?.message === 'Could not fetch remote environment') {
230
- this._logService.trace(`Could not fetch remote environment, silently failing`);
231
- return undefined;
232
- }
233
- throw e;
234
- }
235
- }
236
- if (!this._isDisposed) {
237
- this._setupPtyHostListeners(backend);
238
- }
239
- }
240
- else {
241
- if (shellLaunchConfig.attachPersistentProcess) {
242
- const result = shellLaunchConfig.attachPersistentProcess.findRevivedId ? await backend.attachToRevivedProcess(shellLaunchConfig.attachPersistentProcess.id) : await backend.attachToProcess(shellLaunchConfig.attachPersistentProcess.id);
243
- if (result) {
244
- newProcess = result;
245
- }
246
- else {
247
- this._logService.warn(`Attach to process failed for terminal`, shellLaunchConfig.attachPersistentProcess);
248
- shellLaunchConfig.attachPersistentProcess = undefined;
249
- }
250
- }
251
- if (!newProcess) {
252
- newProcess = await this._launchLocalProcess(backend, shellLaunchConfig, cols, rows, this.userHome, variableResolver);
253
- }
254
- if (!this._isDisposed) {
255
- this._setupPtyHostListeners(backend);
256
- }
257
- }
258
- }
259
- if (this._isDisposed) {
260
- newProcess.shutdown(false);
261
- return undefined;
262
- }
263
- this._process = newProcess;
264
- this._setProcessState(2 );
265
- if (this.os === 3 || this.os === 2 ) {
266
- this.capabilities.add(1 , ( (new NaiveCwdDetectionCapability(this._process))));
267
- }
268
- this._dataFilter.newProcess(this._process, reset);
269
- if (this._processListeners) {
270
- dispose(this._processListeners);
271
- }
272
- this._processListeners = [
273
- newProcess.onProcessReady((e) => {
274
- this.shellProcessId = e.pid;
275
- this._initialCwd = e.cwd;
276
- this._onDidChangeProperty.fire({ type: "initialCwd" , value: this._initialCwd });
277
- this._onProcessReady.fire(e);
278
- if (this._preLaunchInputQueue.length > 0 && this._process) {
279
- newProcess.input(this._preLaunchInputQueue.join(''));
280
- this._preLaunchInputQueue.length = 0;
281
- }
282
- }),
283
- newProcess.onProcessExit(exitCode => this._onExit(exitCode)),
284
- newProcess.onDidChangeProperty(({ type, value }) => {
285
- switch (type) {
286
- case "hasChildProcesses" :
287
- this._hasChildProcesses = value;
288
- break;
289
- case "failedShellIntegrationActivation" :
290
- this._telemetryService?.publicLog2('terminal/shellIntegrationActivationFailureCustomArgs');
291
- break;
292
- }
293
- this._onDidChangeProperty.fire({ type, value });
294
- })
295
- ];
296
- if (newProcess.onProcessReplayComplete) {
297
- this._processListeners.push(newProcess.onProcessReplayComplete(() => this._onProcessReplayComplete.fire()));
298
- }
299
- if (newProcess.onRestoreCommands) {
300
- this._processListeners.push(newProcess.onRestoreCommands(e => this._onRestoreCommands.fire(e)));
301
- }
302
- setTimeout(() => {
303
- if (this.processState === 2 ) {
304
- this._setProcessState(3 );
305
- }
306
- }, 500 );
307
- const result = await newProcess.start();
308
- if (result) {
309
- return result;
310
- }
311
- runWhenWindowIdle(getActiveWindow(), () => {
312
- this.backend?.getLatency().then(measurements => {
313
- this._logService.info(`Latency measurements for ${this.remoteAuthority ?? 'local'} backend\n${( (measurements.map(e => `${e.label}: ${e.latency.toFixed(2)}ms`))).join('\n')}`);
314
- });
315
- });
316
- return undefined;
317
- }
318
- async relaunch(shellLaunchConfig, cols, rows, reset) {
319
- this.ptyProcessReady = this._createPtyProcessReadyPromise();
320
- this._logService.trace(`Relaunching terminal instance ${this._instanceId}`);
321
- if (this._isDisconnected) {
322
- this._isDisconnected = false;
323
- this._onPtyReconnect.fire();
324
- }
325
- this._hasWrittenData = false;
326
- return this.createProcess(shellLaunchConfig, cols, rows, reset);
327
- }
328
- async _resolveEnvironment(backend, variableResolver, shellLaunchConfig) {
329
- const workspaceFolder = getWorkspaceForTerminal(shellLaunchConfig.cwd, this._workspaceContextService, this._historyService);
330
- const platformKey = isWindows ? 'windows' : (isMacintosh ? 'osx' : 'linux');
331
- const envFromConfigValue = this._configurationService.getValue(`terminal.integrated.env.${platformKey}`);
332
- let baseEnv;
333
- if (shellLaunchConfig.useShellEnvironment) {
334
- baseEnv = await backend.getShellEnvironment();
335
- }
336
- else {
337
- baseEnv = await this._terminalProfileResolverService.getEnvironment(this.remoteAuthority);
338
- }
339
- const env = await createTerminalEnvironment(shellLaunchConfig, envFromConfigValue, variableResolver, this._productService.version, this._terminalConfigurationService.config.detectLocale, baseEnv);
340
- if (!this._isDisposed && shouldUseEnvironmentVariableCollection(shellLaunchConfig)) {
341
- this._extEnvironmentVariableCollection = this._environmentVariableService.mergedCollection;
342
- this._register(this._environmentVariableService.onDidChangeCollections(newCollection => this._onEnvironmentVariableCollectionChange(newCollection)));
343
- await this._extEnvironmentVariableCollection.applyToProcessEnvironment(env, { workspaceFolder }, variableResolver);
344
- if (this._extEnvironmentVariableCollection.getVariableMap({ workspaceFolder }).size) {
345
- this.environmentVariableInfo = this._instantiationService.createInstance(EnvironmentVariableInfoChangesActive, this._extEnvironmentVariableCollection);
346
- this._onEnvironmentVariableInfoChange.fire(this.environmentVariableInfo);
347
- }
348
- }
349
- return env;
350
- }
351
- async _launchLocalProcess(backend, shellLaunchConfig, cols, rows, userHome, variableResolver) {
352
- await this._terminalProfileResolverService.resolveShellLaunchConfig(shellLaunchConfig, {
353
- remoteAuthority: undefined,
354
- os: OS
355
- });
356
- const activeWorkspaceRootUri = this._historyService.getLastActiveWorkspaceRoot(Schemas.file);
357
- const initialCwd = await getCwd(shellLaunchConfig, userHome, variableResolver, activeWorkspaceRootUri, this._terminalConfigurationService.config.cwd, this._logService);
358
- const env = await this._resolveEnvironment(backend, variableResolver, shellLaunchConfig);
359
- const options = {
360
- shellIntegration: {
361
- enabled: this._configurationService.getValue("terminal.integrated.shellIntegration.enabled" ),
362
- suggestEnabled: this._configurationService.getValue("terminal.integrated.suggest.enabled" ),
363
- nonce: this.shellIntegrationNonce
364
- },
365
- windowsEnableConpty: this._terminalConfigurationService.config.windowsEnableConpty,
366
- windowsUseConptyDll: this._terminalConfigurationService.config.experimental?.windowsUseConptyDll ?? false,
367
- environmentVariableCollections: this._extEnvironmentVariableCollection ? serializeEnvironmentVariableCollections(this._extEnvironmentVariableCollection.collections) : undefined,
368
- workspaceFolder: this._cwdWorkspaceFolder,
369
- };
370
- const shouldPersist = ((this._configurationService.getValue("task.reconnection" ) && shellLaunchConfig.reconnectionProperties) || !shellLaunchConfig.isFeatureTerminal) && this._terminalConfigurationService.config.enablePersistentSessions && !shellLaunchConfig.isTransient;
371
- return await backend.createProcess(shellLaunchConfig, initialCwd, cols, rows, this._terminalConfigurationService.config.unicodeVersion, env, options, shouldPersist);
372
- }
373
- _setupPtyHostListeners(backend) {
374
- if (this._ptyListenersAttached) {
375
- return;
376
- }
377
- this._ptyListenersAttached = true;
378
- this._register(backend.onPtyHostUnresponsive(() => {
379
- this._isDisconnected = true;
380
- this._onPtyDisconnect.fire();
381
- }));
382
- this._ptyResponsiveListener = backend.onPtyHostResponsive(() => {
383
- this._isDisconnected = false;
384
- this._onPtyReconnect.fire();
385
- });
386
- this._register(toDisposable(() => this._ptyResponsiveListener?.dispose()));
387
- this._register(backend.onPtyHostRestart(async () => {
388
- if (!this._isDisconnected) {
389
- this._isDisconnected = true;
390
- this._onPtyDisconnect.fire();
391
- }
392
- this._ptyResponsiveListener?.dispose();
393
- this._ptyResponsiveListener = undefined;
394
- if (this._shellLaunchConfig) {
395
- if (this._shellLaunchConfig.isFeatureTerminal && !this.reconnectionProperties) {
396
- this._onExit(-1);
397
- }
398
- else {
399
- const message = ( localize(
400
- 11148,
401
- "Restarting the terminal because the connection to the shell process was lost..."
402
- ));
403
- this._onProcessData.fire({ data: formatMessageForTerminal(message, { loudFormatting: true }), trackCommit: false });
404
- await this.relaunch(this._shellLaunchConfig, this._dimensions.cols, this._dimensions.rows, false);
405
- }
406
- }
407
- }));
408
- }
409
- async getBackendOS() {
410
- let os = OS;
411
- if (!!this.remoteAuthority) {
412
- const remoteEnv = await this._remoteAgentService.getEnvironment();
413
- if (!remoteEnv) {
414
- throw ( (new Error(
415
- `Failed to get remote environment for remote authority "${this.remoteAuthority}"`
416
- )));
417
- }
418
- os = remoteEnv.os;
419
- }
420
- return os;
421
- }
422
- setDimensions(cols, rows, sync) {
423
- if (sync) {
424
- this._resize(cols, rows);
425
- return;
426
- }
427
- return this.ptyProcessReady.then(() => this._resize(cols, rows));
428
- }
429
- async setUnicodeVersion(version) {
430
- return this._process?.setUnicodeVersion(version);
431
- }
432
- _resize(cols, rows) {
433
- if (!this._process) {
434
- return;
435
- }
436
- try {
437
- this._process.resize(cols, rows);
438
- }
439
- catch (error) {
440
- if (error.code !== 'EPIPE' && error.code !== 'ERR_IPC_CHANNEL_CLOSED') {
441
- throw (error);
442
- }
443
- }
444
- this._dimensions.cols = cols;
445
- this._dimensions.rows = rows;
446
- }
447
- async write(data) {
448
- await this.ptyProcessReady;
449
- this._dataFilter.disableSeamlessRelaunch();
450
- this._hasWrittenData = true;
451
- if (this.shellProcessId || this._processType === 1 ) {
452
- if (this._process) {
453
- this._process.input(data);
454
- }
455
- }
456
- else {
457
- this._preLaunchInputQueue.push(data);
458
- }
459
- }
460
- async processBinary(data) {
461
- await this.ptyProcessReady;
462
- this._dataFilter.disableSeamlessRelaunch();
463
- this._hasWrittenData = true;
464
- this._process?.processBinary(data);
465
- }
466
- get initialCwd() {
467
- return this._initialCwd ?? '';
468
- }
469
- async refreshProperty(type) {
470
- if (!this._process) {
471
- throw ( (new Error('Cannot refresh property when process is not set')));
472
- }
473
- return this._process.refreshProperty(type);
474
- }
475
- async updateProperty(type, value) {
476
- return this._process?.updateProperty(type, value);
477
- }
478
- acknowledgeDataEvent(charCount) {
479
- this._ackDataBufferer.ack(charCount);
480
- }
481
- _onExit(exitCode) {
482
- this._process = null;
483
- if (this.processState === 2 ) {
484
- this._setProcessState(4 );
485
- }
486
- if (this.processState === 3 ) {
487
- this._setProcessState(6 );
488
- }
489
- this._onProcessExit.fire(exitCode);
490
- }
491
- _setProcessState(state) {
492
- this.processState = state;
493
- this._onProcessStateChange.fire();
494
- }
495
- _onEnvironmentVariableCollectionChange(newCollection) {
496
- const diff = this._extEnvironmentVariableCollection.diff(newCollection, { workspaceFolder: this._cwdWorkspaceFolder });
497
- if (diff === undefined) {
498
- if (this.environmentVariableInfo instanceof EnvironmentVariableInfoStale) {
499
- this.environmentVariableInfo = this._instantiationService.createInstance(EnvironmentVariableInfoChangesActive, this._extEnvironmentVariableCollection);
500
- this._onEnvironmentVariableInfoChange.fire(this.environmentVariableInfo);
501
- }
502
- return;
503
- }
504
- this.environmentVariableInfo = this._instantiationService.createInstance(EnvironmentVariableInfoStale, diff, this._instanceId, newCollection);
505
- this._onEnvironmentVariableInfoChange.fire(this.environmentVariableInfo);
506
- }
507
- async clearBuffer() {
508
- this._process?.clearBuffer?.();
509
- }
510
- };
511
- TerminalProcessManager = ( (__decorate([
512
- ( (__param(4, IHistoryService))),
513
- ( (__param(5, IInstantiationService))),
514
- ( (__param(6, ITerminalLogService))),
515
- ( (__param(7, IWorkspaceContextService))),
516
- ( (__param(8, IConfigurationResolverService))),
517
- ( (__param(9, IWorkbenchEnvironmentService))),
518
- ( (__param(10, IProductService))),
519
- ( (__param(11, IRemoteAgentService))),
520
- ( (__param(12, IPathService))),
521
- ( (__param(13, IEnvironmentVariableService))),
522
- ( (__param(14, ITerminalConfigurationService))),
523
- ( (__param(15, ITerminalProfileResolverService))),
524
- ( (__param(16, IConfigurationService))),
525
- ( (__param(17, ITerminalInstanceService))),
526
- ( (__param(18, ITelemetryService))),
527
- ( (__param(19, INotificationService)))
528
- ], TerminalProcessManager)));
529
- class AckDataBufferer {
530
- constructor(_callback) {
531
- this._callback = _callback;
532
- this._unsentCharCount = 0;
533
- }
534
- ack(charCount) {
535
- this._unsentCharCount += charCount;
536
- while (this._unsentCharCount > 5000 ) {
537
- this._unsentCharCount -= 5000 ;
538
- this._callback(5000 );
539
- }
540
- }
541
- }
542
- let SeamlessRelaunchDataFilter = class SeamlessRelaunchDataFilter extends Disposable {
543
- get onProcessData() { return this._onProcessData.event; }
544
- constructor(_logService) {
545
- super();
546
- this._logService = _logService;
547
- this._disableSeamlessRelaunch = false;
548
- this._onProcessData = this._register(( (new Emitter())));
549
- }
550
- newProcess(process, reset) {
551
- this._dataListener?.dispose();
552
- this._activeProcess?.shutdown(false);
553
- this._activeProcess = process;
554
- if (!this._firstRecorder || !reset || this._disableSeamlessRelaunch) {
555
- this._firstDisposable?.dispose();
556
- [this._firstRecorder, this._firstDisposable] = this._createRecorder(process);
557
- if (this._disableSeamlessRelaunch && reset) {
558
- this._onProcessData.fire('\x1bc');
559
- }
560
- this._dataListener = process.onProcessData(e => this._onProcessData.fire(e));
561
- this._disableSeamlessRelaunch = false;
562
- return;
563
- }
564
- if (this._secondRecorder) {
565
- this.triggerSwap();
566
- }
567
- this._swapTimeout = mainWindow.setTimeout(() => this.triggerSwap(), 3000 );
568
- this._dataListener?.dispose();
569
- this._firstDisposable?.dispose();
570
- const recorder = this._createRecorder(process);
571
- [this._secondRecorder, this._secondDisposable] = recorder;
572
- }
573
- disableSeamlessRelaunch() {
574
- this._disableSeamlessRelaunch = true;
575
- this._stopRecording();
576
- this.triggerSwap();
577
- }
578
- triggerSwap() {
579
- if (this._swapTimeout) {
580
- mainWindow.clearTimeout(this._swapTimeout);
581
- this._swapTimeout = undefined;
582
- }
583
- if (!this._firstRecorder) {
584
- return;
585
- }
586
- if (!this._secondRecorder) {
587
- this._firstRecorder = undefined;
588
- this._firstDisposable?.dispose();
589
- return;
590
- }
591
- const firstData = this._getDataFromRecorder(this._firstRecorder);
592
- const secondData = this._getDataFromRecorder(this._secondRecorder);
593
- if (firstData === secondData) {
594
- this._logService.trace(`Seamless terminal relaunch - identical content`);
595
- }
596
- else {
597
- this._logService.trace(`Seamless terminal relaunch - resetting content`);
598
- this._onProcessData.fire({ data: `\x1bc${secondData}`, trackCommit: false });
599
- }
600
- this._dataListener?.dispose();
601
- this._dataListener = this._activeProcess.onProcessData(e => this._onProcessData.fire(e));
602
- this._firstRecorder = this._secondRecorder;
603
- this._firstDisposable?.dispose();
604
- this._firstDisposable = this._secondDisposable;
605
- this._secondRecorder = undefined;
606
- }
607
- _stopRecording() {
608
- if (this._swapTimeout) {
609
- return;
610
- }
611
- this._firstRecorder = undefined;
612
- this._firstDisposable?.dispose();
613
- this._secondRecorder = undefined;
614
- this._secondDisposable?.dispose();
615
- }
616
- _createRecorder(process) {
617
- const recorder = ( (new TerminalRecorder(0, 0)));
618
- const disposable = process.onProcessData(e => recorder.handleData(typeof e === 'string' ? e : e.data));
619
- return [recorder, disposable];
620
- }
621
- _getDataFromRecorder(recorder) {
622
- return ( (recorder.generateReplayEventSync().events.filter(e => !!e.data).map(e => e.data))).join('');
623
- }
624
- };
625
- SeamlessRelaunchDataFilter = ( (__decorate([
626
- ( (__param(0, ITerminalLogService)))
627
- ], SeamlessRelaunchDataFilter)));
628
- export { TerminalProcessManager };