@codingame/monaco-vscode-api 3.2.3 → 4.1.0

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 (1672) hide show
  1. package/README.md +2 -0
  2. package/api.js +4 -7
  3. package/debugProtocol.d.ts +14 -39
  4. package/extensions.d.ts +7 -1
  5. package/l10n.d.ts +5 -2
  6. package/l10n.js +14 -2
  7. package/missing-services.js +121 -38
  8. package/monaco.d.ts +1 -1
  9. package/monaco.js +11 -1
  10. package/override/vs/platform/dialogs/common/dialogs.js +1 -0
  11. package/override/vs/platform/userDataSync/common/extensionsSync.js +4 -0
  12. package/override/vs/platform/userDataSync/common/globalStateSync.js +5 -0
  13. package/package.json +8 -8
  14. package/service-override/tools/editor.js +82 -3
  15. package/service-override/tools/views.d.ts +2 -1
  16. package/service-override/tools/views.js +5 -1
  17. package/services.d.ts +2 -0
  18. package/services.js +6 -3
  19. package/vscode/src/vs/base/browser/dom.js +1 -7
  20. package/vscode/src/vs/base/browser/fonts.js +3 -0
  21. package/vscode/src/vs/base/browser/hash.js +15 -0
  22. package/vscode/src/vs/base/browser/keyboardEvent.js +1 -1
  23. package/vscode/src/vs/base/browser/markdownRenderer.js +4 -4
  24. package/vscode/src/vs/base/browser/touch.js +13 -2
  25. package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.d.ts +1 -1
  26. package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +5 -6
  27. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.d.ts +1 -1
  28. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +2 -2
  29. package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.d.ts +1 -0
  30. package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.js +4 -2
  31. package/vscode/src/vs/base/browser/ui/button/button.js +16 -9
  32. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
  33. package/vscode/src/vs/base/browser/ui/contextview/contextview.d.ts +1 -0
  34. package/vscode/src/vs/base/browser/ui/contextview/contextview.js +1 -1
  35. package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +4 -4
  36. package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +3 -3
  37. package/vscode/src/vs/base/browser/ui/findinput/findInput.js +5 -0
  38. package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +4 -0
  39. package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +3 -1
  40. package/vscode/src/vs/base/browser/ui/grid/gridview.js +1 -0
  41. package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.js +14 -3
  42. package/vscode/src/vs/base/browser/ui/{iconLabel/iconHoverDelegate.d.ts → hover/hoverDelegate.d.ts} +3 -6
  43. package/vscode/src/vs/base/browser/ui/hover/{hoverDelegate.js → hoverDelegateFactory.js} +5 -5
  44. package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +1 -1
  45. package/vscode/src/vs/base/browser/ui/{iconLabel/iconLabelHover.d.ts → hover/updatableHoverWidget.d.ts} +6 -1
  46. package/vscode/src/vs/base/browser/ui/{iconLabel/iconLabelHover.js → hover/updatableHoverWidget.js} +27 -7
  47. package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +10 -9
  48. package/vscode/src/vs/base/browser/ui/iconLabel/simpleIconLabel.js +11 -1
  49. package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.css.js +4 -0
  50. package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.js +246 -0
  51. package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +19 -1
  52. package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +8 -7
  53. package/vscode/src/vs/base/browser/ui/list/listView.js +4 -1
  54. package/vscode/src/vs/base/browser/ui/list/listWidget.js +27 -10
  55. package/vscode/src/vs/base/browser/ui/menu/menu.js +15 -9
  56. package/vscode/src/vs/base/browser/ui/menu/menubar.js +15 -8
  57. package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +18 -2
  58. package/vscode/src/vs/base/browser/ui/selectBox/selectBox.js +1 -0
  59. package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +14 -7
  60. package/vscode/src/vs/base/browser/ui/table/tableWidget.js +6 -4
  61. package/vscode/src/vs/base/browser/ui/toggle/toggle.js +7 -6
  62. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +2 -2
  63. package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +55 -10
  64. package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +4 -1
  65. package/vscode/src/vs/base/browser/window.d.ts +5 -0
  66. package/vscode/src/vs/base/browser/window.js +1 -2
  67. package/vscode/src/vs/base/common/amd.js +101 -0
  68. package/vscode/src/vs/base/common/arrays.js +20 -1
  69. package/vscode/src/vs/base/common/cache.js +3 -2
  70. package/vscode/src/vs/base/common/codicons.d.ts +62 -38
  71. package/vscode/src/vs/base/common/codicons.js +19 -571
  72. package/vscode/src/vs/base/common/codiconsLibrary.js +570 -0
  73. package/vscode/src/vs/base/common/codiconsUtil.js +17 -0
  74. package/vscode/src/vs/base/common/console.js +60 -0
  75. package/vscode/src/vs/base/common/event.js +4 -1
  76. package/vscode/src/vs/base/common/glob.js +1 -0
  77. package/vscode/src/vs/base/common/hierarchicalKind.d.ts +13 -0
  78. package/vscode/src/vs/base/common/hierarchicalKind.js +21 -0
  79. package/vscode/src/vs/base/common/labels.js +2 -2
  80. package/vscode/src/vs/base/common/network.js +14 -5
  81. package/vscode/src/vs/base/common/objects.js +1 -1
  82. package/vscode/src/vs/base/common/observableInternal/promise.js +1 -0
  83. package/vscode/src/vs/base/common/observableInternal/utils.js +35 -14
  84. package/vscode/src/vs/base/common/paging.js +116 -0
  85. package/vscode/src/vs/base/common/parsers.js +43 -0
  86. package/vscode/src/vs/base/common/platform.js +1 -1
  87. package/vscode/src/vs/base/common/processes.js +25 -0
  88. package/vscode/src/vs/base/common/product.d.ts +7 -1
  89. package/vscode/src/vs/base/common/severity.js +2 -1
  90. package/vscode/src/vs/base/common/strings.js +16 -4
  91. package/vscode/src/vs/base/parts/ipc/common/ipc.js +4 -0
  92. package/vscode/src/vs/base/parts/request/browser/request.js +60 -0
  93. package/vscode/src/vs/editor/browser/controller/mouseHandler.js +5 -5
  94. package/vscode/src/vs/editor/browser/controller/mouseTarget.js +55 -43
  95. package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +5 -5
  96. package/vscode/src/vs/editor/browser/coreCommands.js +14 -14
  97. package/vscode/src/vs/editor/browser/editorDom.js +11 -1
  98. package/vscode/src/vs/editor/browser/editorExtensions.js +1 -1
  99. package/vscode/src/vs/editor/browser/services/editorWorkerService.js +10 -2
  100. package/vscode/src/vs/editor/browser/services/hoverService/hoverService.d.ts +31 -0
  101. package/vscode/src/vs/editor/browser/services/{hoverService.js → hoverService/hoverService.js} +38 -27
  102. package/vscode/src/vs/editor/browser/{widget/hoverWidget → services/hoverService}/hoverWidget.js +13 -14
  103. package/vscode/src/vs/editor/browser/view/viewLayer.js +4 -4
  104. package/vscode/src/vs/editor/browser/view/viewOverlays.js +12 -23
  105. package/vscode/src/vs/editor/browser/view.js +5 -5
  106. package/vscode/src/vs/editor/browser/viewParts/blockDecorations/blockDecorations.js +1 -1
  107. package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +3 -3
  108. package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.css.js +1 -1
  109. package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +4 -6
  110. package/vscode/src/vs/editor/browser/viewParts/decorations/decorations.css.js +1 -1
  111. package/vscode/src/vs/editor/browser/viewParts/decorations/decorations.js +8 -14
  112. package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +2 -2
  113. package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +2 -2
  114. package/vscode/src/vs/editor/browser/viewParts/indentGuides/indentGuides.css.js +1 -1
  115. package/vscode/src/vs/editor/browser/viewParts/indentGuides/indentGuides.js +3 -6
  116. package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.css.js +1 -1
  117. package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +5 -1
  118. package/vscode/src/vs/editor/browser/viewParts/lines/viewLine.js +4 -4
  119. package/vscode/src/vs/editor/browser/viewParts/lines/viewLines.css.js +1 -1
  120. package/vscode/src/vs/editor/browser/viewParts/lines/viewLines.js +5 -5
  121. package/vscode/src/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +2 -2
  122. package/vscode/src/vs/editor/browser/viewParts/margin/margin.js +2 -2
  123. package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +142 -27
  124. package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +2 -2
  125. package/vscode/src/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js +34 -16
  126. package/vscode/src/vs/editor/browser/viewParts/overviewRuler/overviewRuler.js +3 -3
  127. package/vscode/src/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.js +1 -1
  128. package/vscode/src/vs/editor/browser/viewParts/selections/selections.js +23 -20
  129. package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.js +25 -3
  130. package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.js +21 -13
  131. package/vscode/src/vs/editor/browser/viewParts/viewZones/viewZones.js +2 -2
  132. package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +2 -2
  133. package/vscode/src/vs/editor/browser/widget/{codeEditorContributions.js → codeEditor/codeEditorContributions.js} +3 -3
  134. package/vscode/src/vs/editor/browser/widget/{codeEditorWidget.js → codeEditor/codeEditorWidget.js} +81 -70
  135. package/vscode/src/vs/editor/browser/widget/codeEditor/editor.css.js +4 -0
  136. package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js +44 -0
  137. package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +281 -0
  138. package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +7 -5
  139. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js +4 -1
  140. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +15 -9
  141. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorSash.js +2 -0
  142. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +9 -8
  143. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +1 -1
  144. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +33 -246
  145. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +22 -7
  146. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +5 -5
  147. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +71 -41
  148. package/vscode/src/vs/editor/browser/widget/diffEditor/embeddedDiffEditorWidget.js +36 -0
  149. package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +227 -0
  150. package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +22 -19
  151. package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +5 -4
  152. package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +15 -4
  153. package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +13 -5
  154. package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +11 -1
  155. package/vscode/src/vs/editor/browser/widget/diffEditor/style.css.js +1 -1
  156. package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +104 -0
  157. package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +8 -15
  158. package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/colors.js +14 -4
  159. package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/diffEditorItemTemplate.js +6 -5
  160. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/model.js +14 -0
  161. package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/multiDiffEditorViewModel.js +5 -2
  162. package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/multiDiffEditorWidget.js +5 -3
  163. package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/multiDiffEditorWidgetImpl.js +9 -10
  164. package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/style.css.js +1 -1
  165. package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/utils.js +2 -1
  166. package/vscode/src/vs/editor/common/commands/trimTrailingWhitespaceCommand.js +14 -3
  167. package/vscode/src/vs/editor/common/config/diffEditor.js +1 -0
  168. package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +10 -1
  169. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +23 -0
  170. package/vscode/src/vs/editor/common/config/editorOptions.js +115 -33
  171. package/vscode/src/vs/editor/common/core/editorColorRegistry.js +32 -2
  172. package/vscode/src/vs/editor/common/core/lineRange.d.ts +1 -0
  173. package/vscode/src/vs/editor/common/core/lineRange.js +12 -0
  174. package/vscode/src/vs/editor/common/core/positionToOffset.js +43 -0
  175. package/vscode/src/vs/editor/common/core/textEdit.js +169 -0
  176. package/vscode/src/vs/editor/common/core/textLength.js +110 -0
  177. package/vscode/src/vs/editor/common/core/wordCharacterClassifier.d.ts +14 -2
  178. package/vscode/src/vs/editor/common/core/wordCharacterClassifier.js +66 -10
  179. package/vscode/src/vs/editor/common/core/wordHelper.js +1 -0
  180. package/vscode/src/vs/editor/common/cursor/cursor.js +17 -4
  181. package/vscode/src/vs/editor/common/cursor/cursorTypeOperations.js +1 -1
  182. package/vscode/src/vs/editor/common/cursor/cursorWordOperations.js +22 -3
  183. package/vscode/src/vs/editor/common/cursorCommon.js +7 -5
  184. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +7 -4
  185. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js +1 -1
  186. package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +2 -0
  187. package/vscode/src/vs/editor/common/diff/rangeMapping.js +10 -0
  188. package/vscode/src/vs/editor/common/editorContextKeys.js +25 -0
  189. package/vscode/src/vs/editor/common/languages.d.ts +43 -11
  190. package/vscode/src/vs/editor/common/languages.js +15 -1
  191. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.js +1 -1
  192. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length.js +3 -58
  193. package/vscode/src/vs/editor/common/model/textModel.js +2 -0
  194. package/vscode/src/vs/editor/common/model/textModelSearch.js +1 -1
  195. package/vscode/src/vs/editor/common/model/textModelText.js +17 -0
  196. package/vscode/src/vs/editor/common/model/textModelTokens.js +4 -0
  197. package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +10 -0
  198. package/vscode/src/vs/editor/common/model.d.ts +17 -2
  199. package/vscode/src/vs/editor/common/model.js +1 -6
  200. package/vscode/src/vs/editor/common/services/editorSimpleWorker.js +8 -0
  201. package/vscode/src/vs/editor/common/services/editorWorker.d.ts +2 -0
  202. package/vscode/src/vs/editor/common/services/findSectionHeaders.d.ts +28 -0
  203. package/vscode/src/vs/editor/common/services/findSectionHeaders.js +71 -0
  204. package/vscode/src/vs/editor/common/services/markerDecorationsService.js +15 -5
  205. package/vscode/src/vs/editor/common/services/modelUndoRedoParticipant.js +56 -0
  206. package/vscode/src/vs/editor/common/services/textResourceConfigurationService.js +116 -0
  207. package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +32 -20
  208. package/vscode/src/vs/editor/common/viewLayout/linesLayout.js +2 -1
  209. package/vscode/src/vs/editor/common/viewLayout/viewLayout.js +5 -5
  210. package/vscode/src/vs/editor/common/viewLayout/viewLinesViewportData.js +1 -0
  211. package/vscode/src/vs/editor/common/viewModel/modelLineProjection.js +1 -1
  212. package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +2 -2
  213. package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +10 -7
  214. package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +11 -1
  215. package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +6 -5
  216. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +5 -4
  217. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +25 -3
  218. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionKeybindingResolver.js +3 -2
  219. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +3 -2
  220. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +13 -2
  221. package/vscode/src/vs/editor/contrib/codeAction/common/types.js +18 -33
  222. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorContributions.js +1 -1
  223. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +3 -3
  224. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +1 -1
  225. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +11 -1
  226. package/vscode/src/vs/editor/contrib/comment/browser/comment.js +1 -1
  227. package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.js +9 -9
  228. package/vscode/src/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js +5 -3
  229. package/vscode/src/vs/editor/contrib/documentSymbols/browser/outlineModel.js +1 -1
  230. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +40 -20
  231. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +83 -47
  232. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +40 -31
  233. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +16 -1
  234. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +8 -8
  235. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/edit.js +5 -3
  236. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +7 -6
  237. package/vscode/src/vs/editor/contrib/find/browser/findDecorations.js +14 -4
  238. package/vscode/src/vs/editor/contrib/find/browser/findModel.js +6 -6
  239. package/vscode/src/vs/editor/contrib/find/browser/findOptionsWidget.js +16 -1
  240. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +23 -3
  241. package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +12 -3
  242. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +11 -1
  243. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +3 -3
  244. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +5 -3
  245. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +1 -1
  246. package/vscode/src/vs/editor/contrib/hover/browser/hover.js +12 -2
  247. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +3 -91
  248. package/vscode/src/vs/editor/contrib/indentation/common/indentation.js +92 -0
  249. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +14 -4
  250. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +4 -0
  251. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostText.js +18 -19
  252. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostTextWidget.js +5 -4
  253. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +4 -2
  254. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys.js +4 -1
  255. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +6 -5
  256. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +5 -4
  257. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +28 -19
  258. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsSource.js +7 -4
  259. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/provideInlineCompletions.js +1 -1
  260. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/singleTextEdit.js +64 -72
  261. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/suggestWidgetInlineCompletionProvider.js +11 -5
  262. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +5 -85
  263. package/vscode/src/vs/editor/contrib/inlineEdit/browser/commands.js +2 -2
  264. package/vscode/src/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.js +6 -4
  265. package/vscode/src/vs/editor/contrib/inlineEdit/browser/hoverParticipant.js +4 -1
  266. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +28 -17
  267. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +5 -4
  268. package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  269. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +53 -6
  270. package/vscode/src/vs/editor/contrib/linesOperations/browser/moveLinesCommand.js +1 -1
  271. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +11 -1
  272. package/vscode/src/vs/editor/contrib/links/browser/links.js +2 -2
  273. package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +7 -7
  274. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +11 -1
  275. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +12 -2
  276. package/vscode/src/vs/editor/contrib/quickAccess/browser/commandsQuickAccess.js +23 -0
  277. package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +1 -1
  278. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +27 -33
  279. package/vscode/src/vs/editor/contrib/rename/browser/{renameInputField.js → renameWidget.js} +282 -194
  280. package/vscode/src/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js +154 -0
  281. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +60 -61
  282. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +23 -14
  283. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +1 -1
  284. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +12 -2
  285. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +11 -1
  286. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +1 -1
  287. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +16 -6
  288. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +2 -2
  289. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +12 -12
  290. package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.js +2 -2
  291. package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +1 -1
  292. package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +2 -2
  293. package/vscode/src/vs/editor/standalone/browser/standaloneLayoutService.js +1 -1
  294. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +12 -12
  295. package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +11 -1
  296. package/vscode/src/vs/editor/standalone/common/themes.js +11 -1
  297. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +16 -9
  298. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +42 -18
  299. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +16 -5
  300. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +11 -1
  301. package/vscode/src/vs/platform/actions/browser/buttonbar.js +13 -5
  302. package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +3 -1
  303. package/vscode/src/vs/platform/actions/browser/floatingMenu.js +11 -1
  304. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +11 -1
  305. package/vscode/src/vs/platform/actions/common/actions.d.ts +7 -0
  306. package/vscode/src/vs/platform/actions/common/actions.js +7 -0
  307. package/vscode/src/vs/platform/contextview/browser/contextView.d.ts +1 -0
  308. package/vscode/src/vs/platform/contextview/browser/contextViewService.js +12 -15
  309. package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +71 -0
  310. package/vscode/src/vs/platform/dialogs/common/dialogs.js +4 -2
  311. package/vscode/src/vs/platform/download/common/downloadIpc.js +16 -0
  312. package/vscode/src/vs/platform/download/common/downloadService.js +31 -0
  313. package/vscode/src/vs/platform/editor/common/editor.d.ts +12 -0
  314. package/vscode/src/vs/platform/environment/common/environmentService.js +6 -0
  315. package/vscode/src/vs/platform/extensionManagement/common/abstractExtensionManagementService.js +748 -0
  316. package/vscode/src/vs/platform/extensionManagement/common/extensionGalleryService.js +852 -0
  317. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +19 -7
  318. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +7 -1
  319. package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +495 -0
  320. package/vscode/src/vs/platform/extensionManagement/common/extensionManagementIpc.js +120 -0
  321. package/vscode/src/vs/platform/extensionManagement/common/extensionTipsService.js +65 -0
  322. package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +333 -0
  323. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +901 -0
  324. package/vscode/src/vs/platform/extensionManagement/common/unsupportedExtensionsMigration.js +56 -0
  325. package/vscode/src/vs/platform/extensionResourceLoader/browser/extensionResourceLoaderService.js +42 -0
  326. package/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.js +3 -4
  327. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +16 -16
  328. package/vscode/src/vs/platform/extensions/common/extensions.js +5 -1
  329. package/vscode/src/vs/platform/externalServices/common/marketplace.js +15 -0
  330. package/vscode/src/vs/platform/externalTerminal/common/externalTerminal.js +3 -0
  331. package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.js +404 -0
  332. package/vscode/src/vs/platform/files/common/fileService.js +986 -0
  333. package/vscode/src/vs/platform/files/common/files.d.ts +1 -11
  334. package/vscode/src/vs/platform/files/common/files.js +2 -0
  335. package/vscode/src/vs/platform/files/common/io.js +75 -0
  336. package/vscode/src/vs/platform/files/common/watcher.js +2 -0
  337. package/vscode/src/vs/platform/hover/browser/hover.d.ts +1 -1
  338. package/vscode/src/vs/platform/hover/browser/hover.js +21 -6
  339. package/vscode/src/vs/platform/issue/common/issueReporterUtil.js +15 -0
  340. package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +48 -0
  341. package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.js +1 -0
  342. package/vscode/src/vs/platform/keyboardLayout/common/keyboardMapper.js +23 -0
  343. package/vscode/src/vs/platform/languagePacks/common/languagePacks.d.ts +18 -0
  344. package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +5 -0
  345. package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +8 -6
  346. package/vscode/src/vs/platform/lifecycle/common/lifecycle.js +25 -0
  347. package/vscode/src/vs/platform/log/browser/log.js +1 -0
  348. package/vscode/src/vs/platform/log/common/fileLog.js +105 -0
  349. package/vscode/src/vs/platform/log/common/log.js +13 -1
  350. package/vscode/src/vs/platform/log/common/logIpc.js +26 -0
  351. package/vscode/src/vs/platform/markers/common/markerService.js +1 -1
  352. package/vscode/src/vs/platform/markers/common/markers.js +9 -9
  353. package/vscode/src/vs/platform/opener/browser/link.js +16 -4
  354. package/vscode/src/vs/platform/policy/common/policy.js +2 -0
  355. package/vscode/src/vs/platform/product/common/product.js +2 -1
  356. package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +355 -0
  357. package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +65 -0
  358. package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css.js +1 -1
  359. package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +36 -33
  360. package/vscode/src/vs/platform/quickinput/browser/quickAccess.js +5 -0
  361. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +38 -9
  362. package/vscode/src/vs/platform/quickinput/browser/quickInputBox.js +7 -4
  363. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +22 -12
  364. package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +13 -5
  365. package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1348 -0
  366. package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  367. package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +14 -0
  368. package/vscode/src/vs/platform/remote/browser/remoteAuthorityResolverService.js +108 -0
  369. package/vscode/src/vs/platform/remote/common/managedSocket.js +96 -0
  370. package/vscode/src/vs/platform/remote/common/remoteAgentConnection.js +2 -2
  371. package/vscode/src/vs/platform/remote/common/remoteHosts.js +1 -4
  372. package/vscode/src/vs/platform/request/browser/requestService.js +28 -0
  373. package/vscode/src/vs/platform/request/common/requestIpc.js +18 -0
  374. package/vscode/src/vs/platform/secrets/common/secrets.js +5 -0
  375. package/vscode/src/vs/platform/severityIcon/browser/severityIcon.js +5 -5
  376. package/vscode/src/vs/platform/telemetry/common/commonProperties.js +11 -0
  377. package/vscode/src/vs/platform/telemetry/common/telemetry.js +2 -1
  378. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +7 -1
  379. package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +1 -1
  380. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +3 -9
  381. package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +22 -0
  382. package/vscode/src/vs/platform/terminal/common/environmentVariable.js +7 -0
  383. package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.js +196 -0
  384. package/vscode/src/vs/platform/terminal/common/terminal.d.ts +6 -1
  385. package/vscode/src/vs/platform/terminal/common/terminal.js +1 -0
  386. package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +4 -1
  387. package/vscode/src/vs/platform/terminal/common/terminalLogService.js +49 -0
  388. package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +518 -0
  389. package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +111 -0
  390. package/vscode/src/vs/platform/terminal/common/terminalRecorder.js +66 -0
  391. package/vscode/src/vs/platform/theme/browser/defaultStyles.js +11 -1
  392. package/vscode/src/vs/platform/theme/common/colorUtils.js +187 -0
  393. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +89 -0
  394. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +46 -0
  395. package/vscode/src/vs/platform/theme/common/colors/editorColors.js +469 -0
  396. package/vscode/src/vs/platform/theme/common/colors/inputColors.js +196 -0
  397. package/vscode/src/vs/platform/theme/common/colors/listColors.js +166 -0
  398. package/vscode/src/vs/platform/theme/common/colors/menuColors.js +41 -0
  399. package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +61 -0
  400. package/vscode/src/vs/platform/theme/common/colors/miscColors.js +45 -0
  401. package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +51 -0
  402. package/vscode/src/vs/platform/theme/common/colors/searchColors.js +19 -0
  403. package/vscode/src/vs/platform/theme/common/iconRegistry.js +2 -1
  404. package/vscode/src/vs/platform/theme/common/themeService.d.ts +1 -1
  405. package/vscode/src/vs/platform/tunnel/common/tunnel.js +2 -0
  406. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +2 -2
  407. package/vscode/src/vs/platform/update/common/update.config.contribution.js +98 -0
  408. package/vscode/src/vs/platform/update/common/update.js +1 -1
  409. package/vscode/src/vs/platform/uriIdentity/common/uriIdentityService.js +1 -0
  410. package/vscode/src/vs/platform/url/common/urlService.js +20 -0
  411. package/vscode/src/vs/platform/userDataProfile/browser/userDataProfile.js +93 -0
  412. package/vscode/src/vs/platform/userDataProfile/common/userDataProfileIpc.js +2 -0
  413. package/vscode/src/vs/platform/userDataProfile/common/userDataProfileStorageService.js +8 -0
  414. package/vscode/src/vs/platform/userDataSync/common/extensionsSync.js +256 -0
  415. package/vscode/src/vs/platform/userDataSync/common/globalStateSync.js +120 -0
  416. package/vscode/src/vs/platform/userDataSync/common/keybindingsMerge.js +275 -0
  417. package/vscode/src/vs/platform/userDataSync/common/keybindingsSync.js +316 -0
  418. package/vscode/src/vs/platform/userDataSync/common/settingsSync.js +314 -0
  419. package/vscode/src/vs/platform/userDataSync/common/snippetsMerge.js +125 -0
  420. package/vscode/src/vs/platform/userDataSync/common/snippetsSync.js +474 -0
  421. package/vscode/src/vs/platform/userDataSync/common/tasksSync.js +242 -0
  422. package/vscode/src/vs/platform/userDataSync/common/userDataAutoSyncService.js +464 -0
  423. package/vscode/src/vs/platform/userDataSync/common/userDataProfilesManifestMerge.js +90 -0
  424. package/vscode/src/vs/platform/userDataSync/common/userDataProfilesManifestSync.js +257 -0
  425. package/vscode/src/vs/platform/userDataSync/common/userDataSyncEnablementService.js +75 -0
  426. package/vscode/src/vs/platform/userDataSync/common/userDataSyncLocalStoreService.js +148 -0
  427. package/vscode/src/vs/platform/userDataSync/common/userDataSyncLog.js +39 -0
  428. package/vscode/src/vs/platform/userDataSync/common/userDataSyncResourceProvider.js +447 -0
  429. package/vscode/src/vs/platform/userDataSync/common/userDataSyncService.js +781 -0
  430. package/vscode/src/vs/workbench/api/browser/extensionHost.contribution.js +103 -0
  431. package/vscode/src/vs/workbench/api/browser/mainThreadAiEmbeddingVector.js +29 -0
  432. package/vscode/src/vs/workbench/api/browser/mainThreadAiRelatedInformation.js +33 -0
  433. package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +252 -0
  434. package/vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.js +66 -0
  435. package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js +102 -0
  436. package/vscode/src/vs/workbench/api/browser/mainThreadChat.js +68 -0
  437. package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +205 -0
  438. package/vscode/src/vs/workbench/api/browser/mainThreadChatVariables.js +39 -0
  439. package/vscode/src/vs/workbench/api/browser/mainThreadClipboard.js +22 -0
  440. package/vscode/src/vs/workbench/api/browser/mainThreadCodeInsets.js +106 -0
  441. package/vscode/src/vs/workbench/api/browser/mainThreadCommands.js +96 -0
  442. package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +558 -0
  443. package/vscode/src/vs/workbench/api/browser/mainThreadConfiguration.js +78 -0
  444. package/vscode/src/vs/workbench/api/browser/mainThreadConsole.js +33 -0
  445. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +577 -0
  446. package/vscode/src/vs/workbench/api/browser/mainThreadDebugService.js +433 -0
  447. package/vscode/src/vs/workbench/api/browser/mainThreadDecorations.js +100 -0
  448. package/vscode/src/vs/workbench/api/browser/mainThreadDiagnostics.js +67 -0
  449. package/vscode/src/vs/workbench/api/browser/mainThreadDialogs.js +66 -0
  450. package/vscode/src/vs/workbench/api/browser/mainThreadDocumentContentProviders.js +77 -0
  451. package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +251 -0
  452. package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +368 -0
  453. package/vscode/src/vs/workbench/api/browser/mainThreadDownloadService.js +20 -0
  454. package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +39 -0
  455. package/vscode/src/vs/workbench/api/browser/mainThreadEditor.js +412 -0
  456. package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +499 -0
  457. package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +225 -0
  458. package/vscode/src/vs/workbench/api/browser/mainThreadErrors.js +22 -0
  459. package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +315 -0
  460. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.js +206 -0
  461. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +367 -0
  462. package/vscode/src/vs/workbench/api/browser/mainThreadInlineChat.js +70 -0
  463. package/vscode/src/vs/workbench/api/browser/mainThreadInteractive.js +26 -0
  464. package/vscode/src/vs/workbench/api/browser/mainThreadIssueReporter.js +48 -0
  465. package/vscode/src/vs/workbench/api/browser/mainThreadLabelService.js +25 -0
  466. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +1014 -0
  467. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +183 -0
  468. package/vscode/src/vs/workbench/api/browser/mainThreadLanguages.js +76 -0
  469. package/vscode/src/vs/workbench/api/browser/mainThreadLocalization.js +33 -0
  470. package/vscode/src/vs/workbench/api/browser/mainThreadLogService.js +76 -0
  471. package/vscode/src/vs/workbench/api/browser/mainThreadManagedSockets.js +91 -0
  472. package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +135 -0
  473. package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +192 -0
  474. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.js +121 -0
  475. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +186 -0
  476. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDto.js +127 -0
  477. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +129 -0
  478. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +372 -0
  479. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.js +23 -0
  480. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +46 -0
  481. package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.js +74 -0
  482. package/vscode/src/vs/workbench/api/browser/mainThreadProfileContentHandlers.js +36 -0
  483. package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +66 -0
  484. package/vscode/src/vs/workbench/api/browser/mainThreadQuickDiff.js +40 -0
  485. package/vscode/src/vs/workbench/api/browser/mainThreadQuickOpen.js +183 -0
  486. package/vscode/src/vs/workbench/api/browser/mainThreadRemoteConnectionData.js +28 -0
  487. package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +491 -0
  488. package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +47 -0
  489. package/vscode/src/vs/workbench/api/browser/mainThreadSearch.js +166 -0
  490. package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.js +68 -0
  491. package/vscode/src/vs/workbench/api/browser/mainThreadShare.js +48 -0
  492. package/vscode/src/vs/workbench/api/browser/mainThreadSpeech.js +97 -0
  493. package/vscode/src/vs/workbench/api/browser/mainThreadStatusBar.js +51 -0
  494. package/vscode/src/vs/workbench/api/browser/mainThreadStorage.js +70 -0
  495. package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +729 -0
  496. package/vscode/src/vs/workbench/api/browser/mainThreadTelemetry.js +51 -0
  497. package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.js +407 -0
  498. package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.js +49 -0
  499. package/vscode/src/vs/workbench/api/browser/mainThreadTesting.js +217 -0
  500. package/vscode/src/vs/workbench/api/browser/mainThreadTheming.js +22 -0
  501. package/vscode/src/vs/workbench/api/browser/mainThreadTimeline.js +53 -0
  502. package/vscode/src/vs/workbench/api/browser/mainThreadTreeViews.js +310 -0
  503. package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +221 -0
  504. package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +108 -0
  505. package/vscode/src/vs/workbench/api/browser/mainThreadUrls.js +59 -0
  506. package/vscode/src/vs/workbench/api/browser/mainThreadWebviewManager.js +27 -0
  507. package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.js +281 -0
  508. package/vscode/src/vs/workbench/api/browser/mainThreadWebviewViews.js +98 -0
  509. package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +133 -0
  510. package/vscode/src/vs/workbench/api/browser/mainThreadWindow.js +55 -0
  511. package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +266 -0
  512. package/vscode/src/vs/workbench/api/common/configurationExtensionPoint.js +594 -0
  513. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +69 -32
  514. package/vscode/src/vs/workbench/api/common/extHost.common.services.js +6 -0
  515. package/vscode/src/vs/workbench/api/common/extHost.protocol.js +3 -1
  516. package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +12 -5
  517. package/vscode/src/vs/workbench/api/common/extHostChat.js +0 -8
  518. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +58 -88
  519. package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +8 -4
  520. package/vscode/src/vs/workbench/api/common/extHostComments.js +49 -13
  521. package/vscode/src/vs/workbench/api/common/extHostDebugService.js +16 -17
  522. package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +3 -1
  523. package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.js +1 -1
  524. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +17 -4
  525. package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +1 -1
  526. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +57 -40
  527. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +305 -0
  528. package/vscode/src/vs/workbench/api/common/extHostLanguages.js +2 -2
  529. package/vscode/src/vs/workbench/api/common/extHostNotebookDocument.js +1 -1
  530. package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +26 -6
  531. package/vscode/src/vs/workbench/api/common/extHostQuickOpen.js +9 -9
  532. package/vscode/src/vs/workbench/api/common/extHostSCM.js +1 -1
  533. package/vscode/src/vs/workbench/api/common/extHostSearch.js +34 -3
  534. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +1 -1
  535. package/vscode/src/vs/workbench/api/common/extHostTask.js +1 -0
  536. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +32 -18
  537. package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +214 -0
  538. package/vscode/src/vs/workbench/api/common/extHostTesting.js +85 -98
  539. package/vscode/src/vs/workbench/api/common/extHostTimeline.js +1 -0
  540. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +5 -2
  541. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +119 -70
  542. package/vscode/src/vs/workbench/api/common/extHostTypes.js +90 -28
  543. package/vscode/src/vs/workbench/api/common/shared/dataTransferCache.js +33 -0
  544. package/vscode/src/vs/workbench/browser/actions/developerActions.js +4 -4
  545. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +2 -2
  546. package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +227 -0
  547. package/vscode/src/vs/workbench/browser/actions/windowActions.js +3 -3
  548. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +3 -3
  549. package/vscode/src/vs/workbench/browser/codeeditor.js +1 -1
  550. package/vscode/src/vs/workbench/browser/composite.d.ts +3 -5
  551. package/vscode/src/vs/workbench/browser/composite.js +2 -10
  552. package/vscode/src/vs/workbench/browser/editor.js +2 -2
  553. package/vscode/src/vs/workbench/browser/labels.js +2 -1
  554. package/vscode/src/vs/workbench/browser/layout.js +2059 -0
  555. package/vscode/src/vs/workbench/browser/media/part.css.js +1 -1
  556. package/vscode/src/vs/workbench/browser/media/style.css.js +1 -1
  557. package/vscode/src/vs/workbench/browser/part.d.ts +25 -3
  558. package/vscode/src/vs/workbench/browser/part.js +84 -9
  559. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +67 -10
  560. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +2 -2
  561. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +92 -14
  562. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +1 -1
  563. package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.js +233 -0
  564. package/vscode/src/vs/workbench/browser/parts/banner/media/bannerpart.css.js +4 -0
  565. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +5 -4
  566. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +13 -3
  567. package/vscode/src/vs/workbench/browser/parts/compositePart.js +13 -5
  568. package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.web.contribution.js +74 -0
  569. package/vscode/src/vs/workbench/browser/parts/dialogs/dialogHandler.js +132 -0
  570. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +12 -0
  571. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +10 -10
  572. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +3 -3
  573. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +8 -7
  574. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +16 -8
  575. package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +217 -0
  576. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +14 -16
  577. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +2 -2
  578. package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +8 -7
  579. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +4 -202
  580. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +1 -1
  581. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +11 -1
  582. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +92 -23
  583. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +15 -3
  584. package/vscode/src/vs/workbench/browser/parts/editor/editorPane.d.ts +7 -8
  585. package/vscode/src/vs/workbench/browser/parts/editor/editorPane.js +7 -6
  586. package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +12 -32
  587. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +11 -1
  588. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +1 -0
  589. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +27 -28
  590. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +19 -20
  591. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +12 -2
  592. package/vscode/src/vs/workbench/browser/parts/editor/editorWithViewState.js +14 -17
  593. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +11 -1
  594. package/vscode/src/vs/workbench/browser/parts/editor/multiRowEditorTabsControl.js +12 -12
  595. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +16 -16
  596. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +3 -3
  597. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +17 -17
  598. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +36 -13
  599. package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +22 -22
  600. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +29 -21
  601. package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +1 -1
  602. package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +1 -1
  603. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +13 -2
  604. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +11 -1
  605. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +16 -16
  606. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +1 -0
  607. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +122 -33
  608. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +14 -3
  609. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +15 -2
  610. package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +1 -1
  611. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +37 -0
  612. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +36 -18
  613. package/vscode/src/vs/workbench/browser/parts/statusbar/media/statusbarpart.css.js +4 -0
  614. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarActions.js +119 -0
  615. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarItem.js +250 -0
  616. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarModel.js +249 -0
  617. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.js +610 -0
  618. package/vscode/src/vs/workbench/browser/parts/titlebar/commandCenterControl.js +220 -0
  619. package/vscode/src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css.js +4 -0
  620. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +7 -4
  621. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +259 -0
  622. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.js +582 -0
  623. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +6 -4
  624. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +2 -3
  625. package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +1 -1
  626. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +3 -3
  627. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +13 -3
  628. package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +6 -0
  629. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +28 -11
  630. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +19 -15
  631. package/vscode/src/vs/workbench/browser/quickaccess.js +42 -15
  632. package/vscode/src/vs/workbench/browser/style.js +52 -3
  633. package/vscode/src/vs/workbench/browser/web.api.d.ts +6 -0
  634. package/vscode/src/vs/workbench/browser/window.js +28 -20
  635. package/vscode/src/vs/workbench/browser/workbench.contribution.js +83 -9
  636. package/vscode/src/vs/workbench/common/component.js +0 -1
  637. package/vscode/src/vs/workbench/common/contextkeys.js +4 -4
  638. package/vscode/src/vs/workbench/common/dialogs.js +36 -0
  639. package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +59 -5
  640. package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +10 -0
  641. package/vscode/src/vs/workbench/common/editor/editorInput.js +3 -0
  642. package/vscode/src/vs/workbench/common/editor/filteredEditorGroupModel.js +1 -0
  643. package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +3 -1
  644. package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +7 -3
  645. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +3 -3
  646. package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +2 -1
  647. package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +9 -6
  648. package/vscode/src/vs/workbench/common/editor.d.ts +33 -13
  649. package/vscode/src/vs/workbench/common/editor.js +10 -7
  650. package/vscode/src/vs/workbench/common/theme.js +45 -5
  651. package/vscode/src/vs/workbench/common/views.d.ts +1 -0
  652. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibility.contribution.js +23 -0
  653. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +59 -184
  654. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +1 -0
  655. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityStatus.js +112 -0
  656. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +140 -13
  657. package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +1 -1
  658. package/vscode/src/vs/workbench/contrib/accessibility/browser/openDiffEditorAnnouncement.js +50 -0
  659. package/vscode/src/vs/workbench/contrib/accessibility/browser/saveAccessibilitySignal.js +18 -0
  660. package/vscode/src/vs/workbench/contrib/accessibility/browser/unfocusedViewDimmingContribution.js +66 -0
  661. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignal.contribution.js +1 -0
  662. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalDebuggerContribution.js +4 -2
  663. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalLineFeatureContribution.js +35 -36
  664. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/commands.js +1 -1
  665. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +358 -0
  666. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkFileEdits.js +362 -0
  667. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.js +265 -0
  668. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/conflicts.js +78 -0
  669. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEdit.contribution.js +364 -0
  670. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEdit.css.js +4 -0
  671. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPane.js +340 -0
  672. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPreview.js +361 -0
  673. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditTree.js +655 -0
  674. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +1 -1
  675. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +4 -5
  676. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +21 -12
  677. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +15 -0
  678. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +113 -0
  679. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +501 -0
  680. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +80 -0
  681. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +70 -32
  682. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +75 -0
  683. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +108 -0
  684. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +169 -0
  685. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +4 -1
  686. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +269 -0
  687. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +316 -0
  688. package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +4 -1
  689. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +118 -0
  690. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +58 -0
  691. package/vscode/src/vs/workbench/contrib/chat/browser/chatContributionServiceImpl.js +421 -0
  692. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +96 -0
  693. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +11 -6
  694. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +154 -61
  695. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +186 -224
  696. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +6 -75
  697. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +283 -0
  698. package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +88 -0
  699. package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +183 -0
  700. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +158 -49
  701. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +84 -175
  702. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +38 -5
  703. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatHistoryVariables.js +25 -0
  704. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +617 -0
  705. package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
  706. package/vscode/src/vs/workbench/contrib/chat/common/annotations.js +105 -0
  707. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +137 -43
  708. package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +44 -0
  709. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +17 -1
  710. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +82 -34
  711. package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +17 -3
  712. package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +20 -22
  713. package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +2 -1
  714. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +598 -0
  715. package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +68 -9
  716. package/vscode/src/vs/workbench/contrib/chat/common/codeBlockModelCollection.js +115 -0
  717. package/vscode/src/vs/workbench/contrib/chat/common/{chatProvider.js → languageModels.js} +9 -9
  718. package/vscode/src/vs/workbench/contrib/chat/common/voiceChat.js +139 -0
  719. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +5 -4
  720. package/vscode/src/vs/workbench/contrib/codeActions/browser/documentationContribution.js +2 -1
  721. package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.css.js +4 -0
  722. package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.js +39 -0
  723. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +5 -5
  724. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +33 -7
  725. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.css.js +4 -0
  726. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +389 -0
  727. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +11 -1
  728. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline.js +370 -0
  729. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.css.js +4 -0
  730. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +290 -0
  731. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +86 -0
  732. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +3 -3
  733. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +9 -6
  734. package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +13 -3
  735. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +1 -1
  736. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +2 -2
  737. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +1 -1
  738. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +1 -1
  739. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +6 -6
  740. package/vscode/src/vs/workbench/contrib/codeEditor/{browser → common}/languageConfigurationExtensionPoint.js +79 -74
  741. package/vscode/src/vs/workbench/contrib/commands/common/commands.contribution.js +145 -0
  742. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +11 -1
  743. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +11 -1
  744. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +25 -18
  745. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +14 -2
  746. package/vscode/src/vs/workbench/contrib/comments/browser/commentService.js +80 -52
  747. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +12 -2
  748. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +33 -13
  749. package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +231 -0
  750. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +129 -57
  751. package/vscode/src/vs/workbench/contrib/comments/browser/commentsEditorContribution.js +282 -0
  752. package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +15 -15
  753. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +145 -20
  754. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +61 -95
  755. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +2 -2
  756. package/vscode/src/vs/workbench/contrib/comments/browser/media/panel.css.js +1 -1
  757. package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +2 -2
  758. package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +4 -3
  759. package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +18 -11
  760. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +6 -0
  761. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +62 -4
  762. package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +74 -0
  763. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +6 -4
  764. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +34 -5
  765. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +48 -29
  766. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +216 -23
  767. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +11 -1
  768. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +1024 -0
  769. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +1003 -0
  770. package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +345 -0
  771. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +335 -0
  772. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +430 -0
  773. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -2
  774. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +1037 -0
  775. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +647 -0
  776. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +62 -0
  777. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +634 -0
  778. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +738 -0
  779. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +406 -0
  780. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +6 -1
  781. package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +204 -0
  782. package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +78 -0
  783. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +167 -0
  784. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +1269 -0
  785. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +1328 -0
  786. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +113 -0
  787. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +75 -0
  788. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +305 -0
  789. package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +29 -0
  790. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +385 -0
  791. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +265 -0
  792. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +815 -0
  793. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +129 -0
  794. package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +140 -0
  795. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +260 -0
  796. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +667 -0
  797. package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +4 -0
  798. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +4 -0
  799. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +4 -0
  800. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +4 -0
  801. package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +4 -0
  802. package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +4 -0
  803. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +707 -0
  804. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +1000 -0
  805. package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +46 -0
  806. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +350 -0
  807. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +127 -0
  808. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +732 -0
  809. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +499 -0
  810. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +160 -0
  811. package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +19 -0
  812. package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +23 -5
  813. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +24 -1
  814. package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +15 -0
  815. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +108 -0
  816. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +60 -0
  817. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.d.ts +15 -1
  818. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +30 -6
  819. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +458 -0
  820. package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +164 -0
  821. package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +34 -0
  822. package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +148 -0
  823. package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +287 -0
  824. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +85 -0
  825. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +2 -2
  826. package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessions.contribution.js +1197 -0
  827. package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsFileSystemProvider.js +55 -0
  828. package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsStorageService.js +455 -0
  829. package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsViews.js +337 -0
  830. package/vscode/src/vs/workbench/contrib/editSessions/common/editSessionsLogService.js +39 -0
  831. package/vscode/src/vs/workbench/contrib/editSessions/common/editSessionsStorageClient.js +4 -0
  832. package/vscode/src/vs/workbench/contrib/editSessions/common/workspaceStateSync.js +140 -0
  833. package/vscode/src/vs/workbench/contrib/emmet/browser/actions/expandAbbreviation.js +41 -0
  834. package/vscode/src/vs/workbench/contrib/emmet/browser/emmetActions.js +88 -0
  835. package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.js +539 -0
  836. package/vscode/src/vs/workbench/contrib/extensions/browser/browserRuntimeExtensionsEditor.js +26 -0
  837. package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.js +76 -0
  838. package/vscode/src/vs/workbench/contrib/extensions/browser/deprecatedExtensionsChecker.js +88 -0
  839. package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.js +58 -0
  840. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +1171 -0
  841. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.js +50 -0
  842. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.js +543 -0
  843. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.js +464 -0
  844. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendations.js +15 -0
  845. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationsService.js +233 -0
  846. package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +2182 -0
  847. package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.web.contribution.js +12 -0
  848. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +106 -37
  849. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.js +44 -0
  850. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +63 -0
  851. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.js +96 -0
  852. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsList.js +219 -0
  853. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.js +119 -0
  854. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.js +293 -0
  855. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +934 -0
  856. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +1349 -0
  857. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +858 -0
  858. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +2349 -0
  859. package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +328 -0
  860. package/vscode/src/vs/workbench/contrib/extensions/browser/keymapRecommendations.js +26 -0
  861. package/vscode/src/vs/workbench/contrib/extensions/browser/languageRecommendations.js +26 -0
  862. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extension.css.js +4 -0
  863. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionEditor.css.js +4 -0
  864. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionsViewlet.css.js +4 -0
  865. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionsWidgets.css.js +4 -0
  866. package/vscode/src/vs/workbench/contrib/extensions/browser/media/runtimeExtensionsEditor.css.js +4 -0
  867. package/vscode/src/vs/workbench/contrib/extensions/browser/remoteRecommendations.js +27 -0
  868. package/vscode/src/vs/workbench/contrib/extensions/browser/unsupportedExtensionsMigrationContribution.js +24 -0
  869. package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.js +36 -0
  870. package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +160 -0
  871. package/vscode/src/vs/workbench/contrib/extensions/common/extensionQuery.js +56 -0
  872. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +1 -1
  873. package/vscode/src/vs/workbench/contrib/extensions/common/reportExtensionIssueAction.js +29 -0
  874. package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.js +49 -0
  875. package/vscode/src/vs/workbench/contrib/externalTerminal/browser/externalTerminal.contribution.js +152 -0
  876. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/contributedOpeners.js +81 -0
  877. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +1 -0
  878. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +8 -11
  879. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +5 -3
  880. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +23 -24
  881. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +17 -12
  882. package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +430 -0
  883. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +3 -3
  884. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +786 -0
  885. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +9 -9
  886. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +510 -0
  887. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.save.js +1 -1
  888. package/vscode/src/vs/workbench/contrib/files/browser/files.configuration.contribution.js +10 -0
  889. package/vscode/src/vs/workbench/contrib/files/browser/files.explorer.contribution.js +460 -0
  890. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +11 -1
  891. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +11 -1
  892. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +1 -3
  893. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +1 -1
  894. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +15 -6
  895. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +4 -8
  896. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +39 -0
  897. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +39 -0
  898. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +674 -0
  899. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatContentWidget.js +154 -0
  900. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +316 -344
  901. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatFileCreationWidget.js +223 -0
  902. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +70 -0
  903. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.js +234 -0
  904. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +8 -25
  905. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +427 -0
  906. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +45 -160
  907. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +358 -702
  908. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +165 -0
  909. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css.js +4 -0
  910. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatContentWidget.css.js +4 -0
  911. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +1 -1
  912. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +16 -27
  913. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChatServiceImpl.js +31 -0
  914. package/vscode/src/vs/workbench/contrib/interactive/browser/interactive.contribution.js +737 -0
  915. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.js +6 -0
  916. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditor.css.js +4 -0
  917. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditor.js +600 -0
  918. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +19 -4
  919. package/vscode/src/vs/workbench/contrib/interactive/browser/media/interactive.css.js +4 -0
  920. package/vscode/src/vs/workbench/contrib/issue/browser/issue.contribution.js +27 -0
  921. package/vscode/src/vs/workbench/contrib/issue/common/issue.contribution.js +102 -0
  922. package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +28 -0
  923. package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +156 -0
  924. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +9 -9
  925. package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +1 -1
  926. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +2 -2
  927. package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistory.contribution.js +4 -0
  928. package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistory.js +35 -0
  929. package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryCommands.js +635 -0
  930. package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryFileSystemProvider.js +87 -0
  931. package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryTimeline.js +136 -0
  932. package/vscode/src/vs/workbench/contrib/logs/common/defaultLogLevels.js +17 -2
  933. package/vscode/src/vs/workbench/contrib/logs/common/logs.contribution.js +225 -0
  934. package/vscode/src/vs/workbench/contrib/logs/common/logsActions.js +242 -0
  935. package/vscode/src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.js +2 -2
  936. package/vscode/src/vs/workbench/contrib/markdown/browser/markdownSettingRenderer.js +307 -0
  937. package/vscode/src/vs/workbench/contrib/markers/browser/markers.contribution.js +759 -0
  938. package/vscode/src/vs/workbench/contrib/markers/browser/markersFileDecorations.js +127 -0
  939. package/vscode/src/vs/workbench/contrib/markers/browser/markersFilterOptions.js +75 -0
  940. package/vscode/src/vs/workbench/contrib/markers/browser/markersModel.js +200 -0
  941. package/vscode/src/vs/workbench/contrib/markers/browser/markersTable.js +475 -0
  942. package/vscode/src/vs/workbench/contrib/markers/browser/markersTreeViewer.js +691 -0
  943. package/vscode/src/vs/workbench/contrib/markers/browser/markersView.js +900 -0
  944. package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.css.js +4 -0
  945. package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.js +132 -0
  946. package/vscode/src/vs/workbench/contrib/markers/browser/media/markers.css.js +4 -0
  947. package/vscode/src/vs/workbench/contrib/markers/browser/messages.js +301 -0
  948. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +9 -4
  949. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +8 -6
  950. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +8 -0
  951. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +5 -5
  952. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.js +5 -5
  953. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +2 -0
  954. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +5 -3
  955. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +11 -1
  956. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +5 -3
  957. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +5 -3
  958. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +6 -4
  959. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +5 -4
  960. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +7 -5
  961. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +6 -4
  962. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +2 -2
  963. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +23 -19
  964. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +4 -1
  965. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +5 -3
  966. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/actions.js +108 -0
  967. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +9 -0
  968. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor.contribution.js +39 -0
  969. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor.js +117 -0
  970. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +303 -0
  971. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +146 -0
  972. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +655 -0
  973. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnostics.js +101 -0
  974. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +107 -0
  975. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +56 -1
  976. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +172 -0
  977. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +542 -0
  978. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +105 -0
  979. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +66 -0
  980. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +163 -0
  981. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +65 -0
  982. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +318 -0
  983. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +70 -0
  984. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +11 -1
  985. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/media/notebookFind.css.js +4 -0
  986. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +167 -0
  987. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +11 -4
  988. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +207 -0
  989. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +82 -0
  990. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +81 -0
  991. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +65 -0
  992. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +100 -0
  993. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +391 -0
  994. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +62 -0
  995. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.js +3 -0
  996. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +95 -0
  997. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +118 -0
  998. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +58 -0
  999. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +148 -0
  1000. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +654 -0
  1001. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +75 -0
  1002. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +515 -0
  1003. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +157 -0
  1004. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +55 -0
  1005. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +93 -0
  1006. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +50 -0
  1007. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +651 -0
  1008. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +29 -0
  1009. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +888 -0
  1010. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +2 -1
  1011. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +719 -0
  1012. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +349 -0
  1013. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +314 -0
  1014. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +1 -1
  1015. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +197 -0
  1016. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +46 -0
  1017. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +1295 -0
  1018. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +282 -0
  1019. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +561 -0
  1020. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +113 -0
  1021. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +37 -0
  1022. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css.js +4 -0
  1023. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +312 -0
  1024. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +909 -0
  1025. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +11 -0
  1026. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +393 -0
  1027. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +183 -0
  1028. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebook.css.js +1 -1
  1029. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFolding.css.js +1 -1
  1030. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookOutline.css.js +1 -1
  1031. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookToolbar.css.js +1 -1
  1032. package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +1185 -0
  1033. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibility.js +157 -0
  1034. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +88 -0
  1035. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +60 -46
  1036. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +42 -52
  1037. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +449 -0
  1038. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +190 -0
  1039. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +104 -0
  1040. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +508 -0
  1041. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +128 -0
  1042. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +339 -0
  1043. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +109 -0
  1044. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +26 -0
  1045. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +63 -0
  1046. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +639 -0
  1047. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +198 -0
  1048. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +18 -7
  1049. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +1 -1
  1050. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.js +28 -1
  1051. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +2 -2
  1052. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +11 -7
  1053. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +2 -1
  1054. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +48 -4
  1055. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +1 -1
  1056. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +3 -1
  1057. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +13 -2
  1058. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +57 -10
  1059. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +11 -4
  1060. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +161 -15
  1061. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +4 -2
  1062. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +21 -2
  1063. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.js +1 -1
  1064. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +5 -0
  1065. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +14 -4
  1066. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js +14 -8
  1067. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +3 -0
  1068. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +25 -64
  1069. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +27 -22
  1070. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +1 -1
  1071. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +4 -4
  1072. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +2 -2
  1073. package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +89 -0
  1074. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +1000 -0
  1075. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +8 -1
  1076. package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +3 -1
  1077. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +101 -0
  1078. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +7 -14
  1079. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +4 -4
  1080. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +201 -0
  1081. package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +78 -0
  1082. package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.js +96 -0
  1083. package/vscode/src/vs/workbench/contrib/outline/browser/outline.contribution.js +367 -0
  1084. package/vscode/src/vs/workbench/contrib/outline/browser/outline.js +10 -0
  1085. package/vscode/src/vs/workbench/contrib/outline/browser/outlineActions.js +172 -0
  1086. package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.css.js +4 -0
  1087. package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.js +316 -0
  1088. package/vscode/src/vs/workbench/contrib/outline/browser/outlineViewState.js +66 -0
  1089. package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +613 -0
  1090. package/vscode/src/vs/workbench/contrib/output/browser/output.css.js +4 -0
  1091. package/vscode/src/vs/workbench/contrib/output/browser/outputLinkProvider.js +76 -0
  1092. package/vscode/src/vs/workbench/contrib/output/browser/outputServices.js +200 -0
  1093. package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +224 -0
  1094. package/vscode/src/vs/workbench/contrib/performance/browser/inputLatencyContrib.js +43 -0
  1095. package/vscode/src/vs/workbench/contrib/performance/browser/performance.contribution.js +116 -0
  1096. package/vscode/src/vs/workbench/contrib/performance/browser/performance.web.contribution.js +5 -0
  1097. package/vscode/src/vs/workbench/contrib/performance/browser/perfviewEditor.js +340 -0
  1098. package/vscode/src/vs/workbench/contrib/performance/browser/startupTimings.js +114 -0
  1099. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +16 -4
  1100. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditor.js +1237 -0
  1101. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.js +248 -0
  1102. package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindingsEditor.css.js +4 -0
  1103. package/vscode/src/vs/workbench/contrib/preferences/browser/media/preferences.css.js +4 -0
  1104. package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css.js +4 -0
  1105. package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsWidgets.css.js +4 -0
  1106. package/vscode/src/vs/workbench/contrib/preferences/browser/preferences.contribution.js +1374 -0
  1107. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesActions.js +104 -0
  1108. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesEditor.js +47 -0
  1109. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesRenderers.js +784 -0
  1110. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesSearch.js +461 -0
  1111. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +17 -4
  1112. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditor2.js +1578 -0
  1113. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditorSettingIndicators.js +624 -0
  1114. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsSearchMenu.js +135 -0
  1115. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTree.js +2122 -0
  1116. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsWidgets.js +1158 -0
  1117. package/vscode/src/vs/workbench/contrib/preferences/browser/tocTree.js +217 -0
  1118. package/vscode/src/vs/workbench/contrib/preferences/common/preferencesContribution.js +160 -0
  1119. package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +11 -1
  1120. package/vscode/src/vs/workbench/contrib/preferences/common/smartSnippetInserter.js +124 -0
  1121. package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +293 -0
  1122. package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +167 -0
  1123. package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +264 -0
  1124. package/vscode/src/vs/workbench/contrib/relauncher/browser/relauncher.contribution.js +206 -0
  1125. package/vscode/src/vs/workbench/contrib/remote/browser/explorerViewItems.js +133 -0
  1126. package/vscode/src/vs/workbench/contrib/remote/browser/media/remoteViewlet.css.js +4 -0
  1127. package/vscode/src/vs/workbench/contrib/remote/browser/remote.contribution.js +18 -0
  1128. package/vscode/src/vs/workbench/contrib/remote/browser/remote.js +829 -0
  1129. package/vscode/src/vs/workbench/contrib/remote/browser/remoteConnectionHealth.js +164 -0
  1130. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +26 -8
  1131. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIndicator.js +800 -0
  1132. package/vscode/src/vs/workbench/contrib/remote/browser/remoteStartEntry.contribution.js +5 -0
  1133. package/vscode/src/vs/workbench/contrib/remote/browser/remoteStartEntry.js +95 -0
  1134. package/vscode/src/vs/workbench/contrib/remote/browser/showCandidate.js +33 -0
  1135. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelFactory.js +108 -0
  1136. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +16 -6
  1137. package/vscode/src/vs/workbench/contrib/remote/common/remote.contribution.js +513 -0
  1138. package/vscode/src/vs/workbench/contrib/scm/browser/activity.js +306 -0
  1139. package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +11 -1
  1140. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +18 -8
  1141. package/vscode/src/vs/workbench/contrib/scm/browser/media/scm.css.js +4 -0
  1142. package/vscode/src/vs/workbench/contrib/scm/browser/menus.js +278 -0
  1143. package/vscode/src/vs/workbench/contrib/scm/browser/scm.contribution.js +701 -0
  1144. package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.js +172 -0
  1145. package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoryRenderer.js +134 -0
  1146. package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.js +3365 -0
  1147. package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPaneContainer.js +52 -0
  1148. package/vscode/src/vs/workbench/contrib/scm/browser/scmViewService.js +303 -0
  1149. package/vscode/src/vs/workbench/contrib/scm/browser/util.js +119 -0
  1150. package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.js +74 -0
  1151. package/vscode/src/vs/workbench/contrib/scm/common/scmService.js +310 -0
  1152. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +794 -0
  1153. package/vscode/src/vs/workbench/contrib/search/browser/media/anythingQuickAccess.css.js +4 -0
  1154. package/vscode/src/vs/workbench/contrib/search/browser/media/searchview.css.js +4 -0
  1155. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService.js +235 -0
  1156. package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +232 -0
  1157. package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +339 -0
  1158. package/vscode/src/vs/workbench/contrib/search/browser/replaceContributions.js +7 -0
  1159. package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +230 -0
  1160. package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +646 -0
  1161. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +207 -0
  1162. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +510 -0
  1163. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +372 -0
  1164. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +42 -0
  1165. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +43 -0
  1166. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +322 -0
  1167. package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +101 -0
  1168. package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +104 -0
  1169. package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +64 -0
  1170. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +182 -69
  1171. package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +435 -0
  1172. package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +2175 -0
  1173. package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +672 -0
  1174. package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +232 -0
  1175. package/vscode/src/vs/workbench/contrib/search/common/cacheState.js +85 -0
  1176. package/vscode/src/vs/workbench/contrib/search/common/constants.js +2 -0
  1177. package/vscode/src/vs/workbench/contrib/searchEditor/browser/media/searchEditor.css.js +4 -0
  1178. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +585 -0
  1179. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +758 -0
  1180. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +187 -0
  1181. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +318 -0
  1182. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +136 -0
  1183. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +291 -0
  1184. package/vscode/src/vs/workbench/contrib/share/browser/share.contribution.js +167 -0
  1185. package/vscode/src/vs/workbench/contrib/share/browser/share.css.js +4 -0
  1186. package/vscode/src/vs/workbench/contrib/share/browser/shareService.js +70 -0
  1187. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/configureSnippets.js +331 -0
  1188. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/insertSnippet.js +127 -0
  1189. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/surroundWithSnippet.js +57 -0
  1190. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCodeActionProvider.js +154 -0
  1191. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetPicker.js +111 -0
  1192. package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.contribution.js +141 -0
  1193. package/vscode/src/vs/workbench/contrib/speech/browser/speechService.js +271 -0
  1194. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +203 -1
  1195. package/vscode/src/vs/workbench/contrib/surveys/browser/ces.contribution.js +137 -0
  1196. package/vscode/src/vs/workbench/contrib/surveys/browser/languageSurveys.contribution.js +50 -0
  1197. package/vscode/src/vs/workbench/contrib/surveys/browser/nps.contribution.js +92 -0
  1198. package/vscode/src/vs/workbench/contrib/tags/browser/workspaceTagsService.js +3 -0
  1199. package/vscode/src/vs/workbench/contrib/tags/common/workspaceTags.js +2 -0
  1200. package/vscode/src/vs/workbench/contrib/tasks/browser/abstractTaskService.js +3857 -0
  1201. package/vscode/src/vs/workbench/contrib/tasks/browser/runAutomaticTasks.js +183 -0
  1202. package/vscode/src/vs/workbench/contrib/tasks/browser/task.contribution.js +682 -0
  1203. package/vscode/src/vs/workbench/contrib/tasks/browser/taskQuickPick.js +450 -0
  1204. package/vscode/src/vs/workbench/contrib/tasks/browser/taskService.js +36 -0
  1205. package/vscode/src/vs/workbench/contrib/tasks/browser/taskTerminalStatus.js +189 -0
  1206. package/vscode/src/vs/workbench/contrib/tasks/browser/tasksQuickAccess.js +119 -0
  1207. package/vscode/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.js +1711 -0
  1208. package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchemaCommon.js +437 -0
  1209. package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v1.js +123 -0
  1210. package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v2.js +899 -0
  1211. package/vscode/src/vs/workbench/contrib/tasks/common/problemCollectors.js +463 -0
  1212. package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.js +1794 -0
  1213. package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +1579 -0
  1214. package/vscode/src/vs/workbench/contrib/tasks/common/taskSystem.js +14 -0
  1215. package/vscode/src/vs/workbench/contrib/tasks/common/taskTemplates.js +143 -0
  1216. package/vscode/src/vs/workbench/contrib/terminal/browser/baseTerminalBackend.js +114 -0
  1217. package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +133 -0
  1218. package/vscode/src/vs/workbench/contrib/terminal/browser/media/scrollbar.css.js +4 -0
  1219. package/vscode/src/vs/workbench/contrib/terminal/browser/media/terminal.css.js +4 -0
  1220. package/vscode/src/vs/workbench/contrib/terminal/browser/media/terminalVoice.css.js +4 -0
  1221. package/vscode/src/vs/workbench/contrib/terminal/browser/media/widgets.css.js +4 -0
  1222. package/vscode/src/vs/workbench/contrib/terminal/browser/media/xterm.css.js +4 -0
  1223. package/vscode/src/vs/workbench/contrib/terminal/browser/remotePty.js +91 -0
  1224. package/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.js +312 -0
  1225. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.contribution.js +267 -0
  1226. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +11 -3
  1227. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.web.contribution.js +11 -0
  1228. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +2070 -0
  1229. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalCommands.js +22 -0
  1230. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.js +221 -0
  1231. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +40 -0
  1232. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditor.js +193 -0
  1233. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +2 -2
  1234. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorSerializer.js +40 -0
  1235. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorService.js +239 -0
  1236. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEscapeSequences.js +12 -0
  1237. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEvents.js +47 -0
  1238. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroup.js +501 -0
  1239. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroupService.js +368 -0
  1240. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +2180 -0
  1241. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstanceService.js +81 -0
  1242. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMainContribution.js +94 -0
  1243. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +840 -0
  1244. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +619 -0
  1245. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileQuickpick.js +312 -0
  1246. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileResolverService.js +285 -0
  1247. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileService.js +225 -0
  1248. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +155 -0
  1249. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +335 -0
  1250. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalService.js +1156 -0
  1251. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.js +121 -0
  1252. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabbedView.js +439 -0
  1253. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabsList.js +690 -0
  1254. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTooltip.js +84 -0
  1255. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalUri.js +39 -0
  1256. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalView.js +628 -0
  1257. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalVoice.js +199 -0
  1258. package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/terminalHoverWidget.js +91 -0
  1259. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +56 -0
  1260. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +58 -8
  1261. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +3 -1
  1262. package/vscode/src/vs/workbench/contrib/terminal/common/basePty.js +91 -0
  1263. package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariableService.js +96 -0
  1264. package/vscode/src/vs/workbench/contrib/terminal/common/history.js +375 -0
  1265. package/vscode/src/vs/workbench/contrib/terminal/common/remote/remoteTerminalChannel.js +253 -0
  1266. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +1 -0
  1267. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +12 -1
  1268. package/vscode/src/vs/workbench/contrib/terminal/common/terminalClipboard.js +98 -0
  1269. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +11 -1
  1270. package/vscode/src/vs/workbench/contrib/terminal/common/terminalConfiguration.js +1351 -0
  1271. package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +282 -0
  1272. package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +145 -0
  1273. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/bufferContentTracker.js +112 -0
  1274. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminal.accessibility.contribution.js +389 -0
  1275. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibilityHelp.js +190 -0
  1276. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleBufferProvider.js +102 -0
  1277. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/textAreaSyncAddon.js +106 -0
  1278. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/media/terminalChatWidget.css.js +4 -0
  1279. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminal.chat.contribution.js +9 -0
  1280. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +84 -0
  1281. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +125 -0
  1282. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibleView.js +31 -0
  1283. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +344 -0
  1284. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +335 -0
  1285. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +154 -0
  1286. package/vscode/src/vs/workbench/contrib/terminalContrib/developer/browser/media/developer.css.js +4 -0
  1287. package/vscode/src/vs/workbench/contrib/terminalContrib/developer/browser/terminal.developer.contribution.js +237 -0
  1288. package/vscode/src/vs/workbench/contrib/terminalContrib/environmentChanges/browser/terminal.environmentChanges.contribution.js +114 -0
  1289. package/vscode/src/vs/workbench/contrib/terminalContrib/find/browser/terminal.find.contribution.js +264 -0
  1290. package/vscode/src/vs/workbench/contrib/terminalContrib/find/browser/terminalFindWidget.js +165 -0
  1291. package/vscode/src/vs/workbench/contrib/terminalContrib/find/browser/textInputContextMenu.js +61 -0
  1292. package/vscode/src/vs/workbench/contrib/terminalContrib/highlight/browser/terminal.highlight.contribution.js +36 -0
  1293. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminal.links.contribution.js +132 -0
  1294. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalExternalLinkDetector.js +38 -0
  1295. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLink.js +120 -0
  1296. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkDetectorAdapter.js +108 -0
  1297. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkHelpers.js +175 -0
  1298. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkManager.js +394 -0
  1299. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkOpeners.js +240 -0
  1300. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkParsing.js +206 -0
  1301. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkQuickpick.js +264 -0
  1302. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkResolver.js +141 -0
  1303. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLocalLinkDetector.js +220 -0
  1304. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalMultiLineLinkDetector.js +182 -0
  1305. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalUriLinkDetector.js +119 -0
  1306. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalWordLinkDetector.js +94 -0
  1307. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/media/terminalQuickFix.css.js +4 -0
  1308. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFixAddon.js +451 -0
  1309. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminal.quickFix.contribution.js +61 -0
  1310. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixBuiltinActions.js +323 -0
  1311. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixService.js +168 -0
  1312. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/media/stickyScroll.css.js +4 -0
  1313. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminal.stickyScroll.contribution.js +5 -0
  1314. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollColorRegistry.js +35 -0
  1315. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollContribution.js +91 -0
  1316. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollOverlay.js +379 -0
  1317. package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminal.suggest.contribution.js +181 -0
  1318. package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalSuggestAddon.js +406 -0
  1319. package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/browser/terminal.typeAhead.contribution.js +54 -0
  1320. package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/browser/terminalTypeAheadAddon.js +1047 -0
  1321. package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/browser/terminal.zoom.contribution.js +130 -0
  1322. package/vscode/src/vs/workbench/contrib/testing/browser/codeCoverageDecorations.js +589 -0
  1323. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/display.js +2 -0
  1324. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/index.js +81 -0
  1325. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/listProjection.js +184 -0
  1326. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/testItemContextOverlay.js +16 -0
  1327. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/testingObjectTree.js +44 -0
  1328. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/testingViewState.js +15 -0
  1329. package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/treeProjection.js +222 -0
  1330. package/vscode/src/vs/workbench/contrib/testing/browser/icons.js +182 -0
  1331. package/vscode/src/vs/workbench/contrib/testing/browser/media/testMessageColorizer.css.js +4 -0
  1332. package/vscode/src/vs/workbench/contrib/testing/browser/media/testing.css.js +4 -0
  1333. package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageBars.js +238 -0
  1334. package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageView.js +562 -0
  1335. package/vscode/src/vs/workbench/contrib/testing/browser/testExplorerActions.js +1671 -0
  1336. package/vscode/src/vs/workbench/contrib/testing/browser/testMessageColorizer.js +71 -0
  1337. package/vscode/src/vs/workbench/contrib/testing/browser/testing.contribution.js +224 -0
  1338. package/vscode/src/vs/workbench/contrib/testing/browser/testingConfigurationUi.js +119 -0
  1339. package/vscode/src/vs/workbench/contrib/testing/browser/testingDecorations.js +968 -0
  1340. package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerFilter.js +234 -0
  1341. package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerView.js +1239 -0
  1342. package/vscode/src/vs/workbench/contrib/testing/browser/testingOutputPeek.css.js +4 -0
  1343. package/vscode/src/vs/workbench/contrib/testing/browser/testingOutputPeek.js +2108 -0
  1344. package/vscode/src/vs/workbench/contrib/testing/browser/testingProgressUiService.js +140 -0
  1345. package/vscode/src/vs/workbench/contrib/testing/browser/testingViewPaneContainer.js +45 -0
  1346. package/vscode/src/vs/workbench/contrib/testing/browser/theme.js +335 -0
  1347. package/vscode/src/vs/workbench/contrib/testing/common/configuration.js +274 -0
  1348. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +57 -0
  1349. package/vscode/src/vs/workbench/contrib/testing/common/mainThreadTestCollection.js +127 -0
  1350. package/vscode/src/vs/workbench/contrib/testing/common/observableUtils.js +19 -0
  1351. package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +53 -57
  1352. package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.js +11 -26
  1353. package/vscode/src/vs/workbench/contrib/testing/common/testExclusions.js +46 -0
  1354. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +6 -3
  1355. package/vscode/src/vs/workbench/contrib/testing/common/testServiceImpl.js +294 -0
  1356. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +12 -12
  1357. package/vscode/src/vs/workbench/contrib/testing/common/testingContentProvider.js +123 -0
  1358. package/vscode/src/vs/workbench/contrib/testing/common/testingContextKeys.js +8 -0
  1359. package/vscode/src/vs/workbench/contrib/testing/common/testingUri.js +65 -0
  1360. package/vscode/src/vs/workbench/contrib/themes/browser/themes.contribution.js +955 -0
  1361. package/vscode/src/vs/workbench/contrib/timeline/browser/media/timelinePane.css.js +4 -0
  1362. package/vscode/src/vs/workbench/contrib/timeline/browser/timeline.contribution.js +118 -0
  1363. package/vscode/src/vs/workbench/contrib/timeline/browser/timelinePane.js +1161 -0
  1364. package/vscode/src/vs/workbench/contrib/timeline/common/timeline.js +2 -0
  1365. package/vscode/src/vs/workbench/contrib/timeline/common/timelineService.js +106 -0
  1366. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +1 -1
  1367. package/vscode/src/vs/workbench/contrib/update/browser/media/releasenoteseditor.css.js +4 -0
  1368. package/vscode/src/vs/workbench/contrib/update/browser/releaseNotesEditor.js +411 -0
  1369. package/vscode/src/vs/workbench/contrib/update/browser/update.contribution.js +252 -0
  1370. package/vscode/src/vs/workbench/contrib/update/browser/update.js +676 -0
  1371. package/vscode/src/vs/workbench/contrib/url/browser/externalUriResolver.js +26 -0
  1372. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +198 -0
  1373. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainsFileSystemProvider.js +135 -0
  1374. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainsValidator.js +203 -0
  1375. package/vscode/src/vs/workbench/contrib/url/browser/url.contribution.js +66 -0
  1376. package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSync.contribution.js +110 -0
  1377. package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSync.js +1466 -0
  1378. package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSyncConflictsView.js +223 -0
  1379. package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSyncTrigger.js +59 -0
  1380. package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSyncViews.js +858 -0
  1381. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +30 -7
  1382. package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +12 -2
  1383. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +50 -41
  1384. package/vscode/src/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.js +4 -5
  1385. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +20 -22
  1386. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput.js +4 -1
  1387. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -0
  1388. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +3 -3
  1389. package/vscode/src/vs/workbench/contrib/welcomeBanner/browser/welcomeBanner.contribution.js +45 -0
  1390. package/vscode/src/vs/workbench/contrib/welcomeDialog/browser/media/welcomeWidget.css.js +4 -0
  1391. package/vscode/src/vs/workbench/contrib/welcomeDialog/browser/welcomeDialog.contribution.js +102 -0
  1392. package/vscode/src/vs/workbench/contrib/welcomeDialog/browser/welcomeWidget.js +187 -0
  1393. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +380 -0
  1394. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +1526 -0
  1395. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +47 -0
  1396. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedDetailsRenderer.js +261 -0
  1397. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +14 -0
  1398. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +51 -0
  1399. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedList.js +95 -0
  1400. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +1 -1
  1401. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css.js +4 -0
  1402. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +216 -0
  1403. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +2 -0
  1404. package/vscode/src/vs/workbench/contrib/welcomeViews/common/newFile.contribution.js +237 -0
  1405. package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcome.contribution.js +18 -0
  1406. package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcomeContribution.js +73 -0
  1407. package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcomeExtensionPoint.js +97 -0
  1408. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +61 -0
  1409. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/media/walkThroughPart.css.js +4 -0
  1410. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +38 -0
  1411. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughActions.js +57 -0
  1412. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.js +113 -0
  1413. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +429 -0
  1414. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughContentProvider.js +74 -0
  1415. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +18 -0
  1416. package/vscode/src/vs/workbench/contrib/workspace/browser/media/workspaceTrustEditor.css.js +4 -0
  1417. package/vscode/src/vs/workbench/contrib/workspace/browser/workspace.contribution.js +976 -0
  1418. package/vscode/src/vs/workbench/contrib/workspace/browser/workspaceTrustEditor.js +1243 -0
  1419. package/vscode/src/vs/workbench/contrib/workspaces/browser/workspaces.contribution.js +132 -0
  1420. package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +1595 -0
  1421. package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformationService.js +82 -0
  1422. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +6 -0
  1423. package/vscode/src/vs/workbench/services/authentication/browser/authenticationAccessService.js +69 -0
  1424. package/vscode/src/vs/workbench/services/authentication/browser/authenticationExtensionsService.js +369 -0
  1425. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +69 -811
  1426. package/vscode/src/vs/workbench/services/authentication/browser/authenticationUsageService.js +50 -0
  1427. package/vscode/src/vs/workbench/services/authentication/common/authentication.js +2 -1
  1428. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +50 -25
  1429. package/vscode/src/vs/workbench/services/banner/browser/bannerService.d.ts +1 -1
  1430. package/vscode/src/vs/workbench/services/commands/common/commandService.js +77 -0
  1431. package/vscode/src/vs/workbench/services/configuration/browser/configuration.js +850 -0
  1432. package/vscode/src/vs/workbench/services/configuration/browser/configurationService.js +1199 -0
  1433. package/vscode/src/vs/workbench/services/configuration/common/configurationEditing.js +666 -0
  1434. package/vscode/src/vs/workbench/services/configuration/common/configurationModels.js +119 -0
  1435. package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +120 -0
  1436. package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +309 -0
  1437. package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +27 -0
  1438. package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +330 -0
  1439. package/vscode/src/vs/workbench/services/dialogs/browser/abstractFileDialogService.js +377 -0
  1440. package/vscode/src/vs/workbench/services/dialogs/browser/simpleFileDialog.js +1037 -0
  1441. package/vscode/src/vs/workbench/services/dialogs/common/dialogService.js +70 -0
  1442. package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.js +1 -0
  1443. package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +1 -0
  1444. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +21 -17
  1445. package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.d.ts +12 -0
  1446. package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.js +144 -0
  1447. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +10 -6
  1448. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +3 -3
  1449. package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionEnablementService.js +638 -0
  1450. package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionsProfileScannerService.js +22 -0
  1451. package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js +892 -0
  1452. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeaturesManagemetService.js +232 -0
  1453. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +16 -4
  1454. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +12 -1
  1455. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagementChannelClient.js +107 -0
  1456. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagementServerService.js +61 -0
  1457. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagementService.js +1043 -0
  1458. package/vscode/src/vs/workbench/services/extensionManagement/common/remoteExtensionManagementService.js +56 -0
  1459. package/vscode/src/vs/workbench/services/extensionManagement/common/webExtensionManagementService.js +279 -0
  1460. package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionIgnoredRecommendationsService.js +82 -0
  1461. package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +283 -0
  1462. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +46 -121
  1463. package/vscode/src/vs/workbench/services/extensions/browser/extensionsScannerService.js +31 -0
  1464. package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +274 -0
  1465. package/vscode/src/vs/workbench/services/extensions/browser/webWorkerFileSystemProvider.js +50 -0
  1466. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +5 -2
  1467. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +1147 -0
  1468. package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.js +40 -0
  1469. package/vscode/src/vs/workbench/services/extensions/common/extensionDevOptions.js +23 -0
  1470. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +510 -0
  1471. package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.js +272 -0
  1472. package/vscode/src/vs/workbench/services/extensions/common/extensionStorageMigration.js +56 -0
  1473. package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +6 -3
  1474. package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +9 -1
  1475. package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +78 -0
  1476. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +4 -4
  1477. package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.js +62 -0
  1478. package/vscode/src/vs/workbench/services/extensions/common/lazyCreateExtensionHostManager.js +159 -0
  1479. package/vscode/src/vs/workbench/services/extensions/common/remoteConsoleUtil.js +47 -0
  1480. package/vscode/src/vs/workbench/services/extensions/common/remoteExtensionHost.js +220 -0
  1481. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.d.ts +2 -1
  1482. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +8 -1
  1483. package/vscode/src/vs/workbench/services/history/browser/historyService.js +44 -36
  1484. package/vscode/src/vs/workbench/services/history/common/history.d.ts +0 -5
  1485. package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +428 -0
  1486. package/vscode/src/vs/workbench/services/issue/browser/issueService.js +97 -0
  1487. package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +945 -0
  1488. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +500 -0
  1489. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/_.contribution.js +13 -0
  1490. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/cz.win.js +162 -0
  1491. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de-swiss.win.js +162 -0
  1492. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de.darwin.js +125 -0
  1493. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de.linux.js +180 -0
  1494. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de.win.js +162 -0
  1495. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/dk.win.js +162 -0
  1496. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/dvorak.darwin.js +125 -0
  1497. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-belgian.win.js +162 -0
  1498. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-ext.darwin.js +125 -0
  1499. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-in.win.js +162 -0
  1500. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-intl.darwin.js +125 -0
  1501. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-intl.win.js +162 -0
  1502. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-uk.darwin.js +125 -0
  1503. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-uk.win.js +162 -0
  1504. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en.darwin.js +133 -0
  1505. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en.linux.js +182 -0
  1506. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en.win.js +167 -0
  1507. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es-latin.win.js +162 -0
  1508. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es.darwin.js +125 -0
  1509. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es.linux.js +180 -0
  1510. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es.win.js +162 -0
  1511. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.darwin.js +125 -0
  1512. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.linux.js +180 -0
  1513. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.win.js +162 -0
  1514. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/hu.win.js +162 -0
  1515. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/it.darwin.js +125 -0
  1516. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/it.win.js +162 -0
  1517. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/jp-roman.darwin.js +125 -0
  1518. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/jp.darwin.js +125 -0
  1519. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ko.darwin.js +125 -0
  1520. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.darwin.js +17 -0
  1521. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.linux.js +6 -0
  1522. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.win.js +23 -0
  1523. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/no.win.js +162 -0
  1524. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pl.darwin.js +125 -0
  1525. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pl.win.js +162 -0
  1526. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pt-br.win.js +162 -0
  1527. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pt.darwin.js +125 -0
  1528. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pt.win.js +162 -0
  1529. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.darwin.js +125 -0
  1530. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.linux.js +180 -0
  1531. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.win.js +162 -0
  1532. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/sv.win.js +164 -0
  1533. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/thai.win.js +162 -0
  1534. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/tr.win.js +162 -0
  1535. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/zh-hans.darwin.js +125 -0
  1536. package/vscode/src/vs/workbench/services/keybinding/common/keybindingIO.js +72 -0
  1537. package/vscode/src/vs/workbench/services/keybinding/common/keymapInfo.js +108 -0
  1538. package/vscode/src/vs/workbench/services/keybinding/common/macLinuxKeyboardMapper.js +886 -0
  1539. package/vscode/src/vs/workbench/services/keybinding/common/windowsKeyboardMapper.js +350 -0
  1540. package/vscode/src/vs/workbench/services/label/common/labelService.js +435 -0
  1541. package/vscode/src/vs/workbench/services/language/common/languageService.js +4 -3
  1542. package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionWorkerServiceImpl.js +259 -0
  1543. package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +2 -1
  1544. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +2 -1
  1545. package/vscode/src/vs/workbench/services/lifecycle/browser/lifecycleService.js +135 -0
  1546. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycleService.js +8 -6
  1547. package/vscode/src/vs/workbench/services/localization/common/locale.d.ts +11 -0
  1548. package/vscode/src/vs/workbench/services/notification/common/notificationService.js +251 -0
  1549. package/vscode/src/vs/workbench/services/output/common/output.js +4 -1
  1550. package/vscode/src/vs/workbench/services/preferences/browser/preferencesService.js +551 -0
  1551. package/vscode/src/vs/workbench/services/quickinput/browser/quickInputService.js +37 -0
  1552. package/vscode/src/vs/workbench/services/remote/browser/browserRemoteResourceHandler.js +47 -0
  1553. package/vscode/src/vs/workbench/services/remote/browser/remoteAgentService.js +76 -0
  1554. package/vscode/src/vs/workbench/services/remote/common/abstractRemoteAgentService.js +177 -0
  1555. package/vscode/src/vs/workbench/services/remote/common/remoteAgentEnvironmentChannel.js +52 -0
  1556. package/vscode/src/vs/workbench/services/remote/common/remoteExtensionsScanner.js +71 -0
  1557. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +2 -2
  1558. package/vscode/src/vs/workbench/services/request/browser/requestService.js +48 -0
  1559. package/vscode/src/vs/workbench/services/search/common/search.js +1 -0
  1560. package/vscode/src/vs/workbench/services/search/common/searchService.js +414 -0
  1561. package/vscode/src/vs/workbench/services/search/common/textSearchManager.js +15 -5
  1562. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +6 -1
  1563. package/vscode/src/vs/workbench/services/storage/browser/storageService.js +290 -0
  1564. package/vscode/src/vs/workbench/services/suggest/browser/media/suggest.css.js +4 -0
  1565. package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.js +9 -0
  1566. package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.js +97 -0
  1567. package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +428 -0
  1568. package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +83 -0
  1569. package/vscode/src/vs/workbench/services/textMate/browser/arrayOperation.js +62 -0
  1570. package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/textMateWorkerTokenizerController.js +160 -0
  1571. package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/threadedBackgroundTokenizerFactory.js +200 -0
  1572. package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js +482 -0
  1573. package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/textMateTokenizationSupport.js +72 -0
  1574. package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/tokenizationSupportWithLineLimit.js +39 -0
  1575. package/vscode/src/vs/workbench/services/textMate/common/TMGrammarFactory.js +118 -0
  1576. package/vscode/src/vs/workbench/services/textMate/common/TMScopeRegistry.js +15 -0
  1577. package/vscode/src/vs/workbench/services/textfile/browser/browserTextFileService.js +57 -0
  1578. package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +652 -0
  1579. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +1 -1
  1580. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +402 -0
  1581. package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +62 -0
  1582. package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +1 -1
  1583. package/vscode/src/vs/workbench/services/textmodelResolver/common/textModelResolverService.js +191 -0
  1584. package/vscode/src/vs/workbench/services/textresourceProperties/common/textResourcePropertiesService.js +44 -0
  1585. package/vscode/src/vs/workbench/services/themes/browser/fileIconThemeData.js +372 -0
  1586. package/vscode/src/vs/workbench/services/themes/browser/productIconThemeData.js +305 -0
  1587. package/vscode/src/vs/workbench/services/themes/browser/workbenchThemeService.js +768 -0
  1588. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +11 -1
  1589. package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +886 -0
  1590. package/vscode/src/vs/workbench/services/themes/common/colorThemeSchema.js +309 -0
  1591. package/vscode/src/vs/workbench/services/themes/common/fileIconThemeSchema.js +432 -0
  1592. package/vscode/src/vs/workbench/services/themes/common/plistParser.js +439 -0
  1593. package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +114 -0
  1594. package/vscode/src/vs/workbench/services/themes/common/textMateScopeMatcher.js +120 -0
  1595. package/vscode/src/vs/workbench/services/themes/common/themeCompatibility.js +76 -0
  1596. package/vscode/src/vs/workbench/services/themes/common/themeConfiguration.js +469 -0
  1597. package/vscode/src/vs/workbench/services/themes/common/themeExtensionPoints.js +340 -0
  1598. package/vscode/src/vs/workbench/services/tunnel/browser/tunnelService.js +34 -0
  1599. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +5 -3
  1600. package/vscode/src/vs/workbench/services/url/browser/urlService.js +48 -0
  1601. package/vscode/src/vs/workbench/services/userActivity/common/userActivityService.js +1 -1
  1602. package/vscode/src/vs/workbench/services/userDataProfile/browser/extensionsResource.js +340 -0
  1603. package/vscode/src/vs/workbench/services/userDataProfile/browser/globalStateResource.js +145 -0
  1604. package/vscode/src/vs/workbench/services/userDataProfile/browser/iconSelectBox.js +96 -0
  1605. package/vscode/src/vs/workbench/services/userDataProfile/browser/keybindingsResource.js +117 -0
  1606. package/vscode/src/vs/workbench/services/userDataProfile/browser/media/userDataProfileView.css.js +4 -0
  1607. package/vscode/src/vs/workbench/services/userDataProfile/browser/settingsResource.js +138 -0
  1608. package/vscode/src/vs/workbench/services/userDataProfile/browser/snippetsResource.js +153 -0
  1609. package/vscode/src/vs/workbench/services/userDataProfile/browser/tasksResource.js +116 -0
  1610. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.js +1752 -0
  1611. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileInit.js +148 -0
  1612. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.js +188 -0
  1613. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +7 -1
  1614. package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncInit.js +445 -0
  1615. package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncWorkbenchService.js +786 -0
  1616. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSyncUtil.js +46 -0
  1617. package/vscode/src/vs/workbench/services/workingCopy/browser/workingCopyBackupService.js +23 -0
  1618. package/vscode/src/vs/workbench/services/workingCopy/browser/workingCopyBackupTracker.js +43 -0
  1619. package/vscode/src/vs/workbench/services/workingCopy/browser/workingCopyHistoryService.js +28 -0
  1620. package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +87 -0
  1621. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +384 -0
  1622. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +7 -7
  1623. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +406 -0
  1624. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +142 -0
  1625. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +127 -0
  1626. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +452 -0
  1627. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupTracker.js +253 -0
  1628. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyHistoryService.js +616 -0
  1629. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyHistoryTracker.js +162 -0
  1630. package/vscode/src/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js +335 -0
  1631. package/vscode/src/vs/workbench/services/workspaces/browser/workspaceTrustEditorInput.js +41 -0
  1632. package/vscode/src/vs/workbench/services/workspaces/browser/workspacesService.js +151 -0
  1633. package/vscode/src/vs/workbench/services/workspaces/common/editSessionIdentityService.js +60 -0
  1634. package/vscode-dts/vscode.proposed.aiTextSearchProvider.d.ts +261 -0
  1635. package/vscode-dts/vscode.proposed.authLearnMore.d.ts +16 -0
  1636. package/vscode-dts/vscode.proposed.chatParticipant.d.ts +49 -78
  1637. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +13 -16
  1638. package/vscode-dts/vscode.proposed.chatProvider.d.ts +1 -1
  1639. package/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts +32 -0
  1640. package/vscode-dts/vscode.proposed.commentingRangeHint.d.ts +16 -0
  1641. package/vscode-dts/vscode.proposed.contribCommentsViewThreadMenus.d.ts +6 -0
  1642. package/vscode-dts/vscode.proposed.contribDiffEditorGutterToolBarMenus.d.ts +6 -0
  1643. package/vscode-dts/vscode.proposed.debugFocus.d.ts +15 -23
  1644. package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +10 -0
  1645. package/vscode-dts/vscode.proposed.documentPaste.d.ts +115 -30
  1646. package/vscode-dts/vscode.proposed.dropMetadata.d.ts +19 -14
  1647. package/vscode-dts/vscode.proposed.fileComments.d.ts +2 -4
  1648. package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +18 -0
  1649. package/vscode-dts/vscode.proposed.interactive.d.ts +0 -16
  1650. package/vscode-dts/vscode.proposed.languageModels.d.ts +115 -53
  1651. package/vscode-dts/vscode.proposed.notebookCellExecution.d.ts +44 -0
  1652. package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +3 -0
  1653. package/vscode-dts/vscode.proposed.tabInputMultiDiff.d.ts +22 -0
  1654. package/vscode-dts/vscode.proposed.terminalExecuteCommandEvent.d.ts +2 -0
  1655. package/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts +207 -0
  1656. package/vscode/src/vs/editor/browser/services/hoverService.d.ts +0 -30
  1657. package/vscode/src/vs/editor/browser/widget/embeddedCodeEditorWidget.js +0 -74
  1658. package/vscode/src/vs/editor/browser/widget/media/editor.css.js +0 -4
  1659. package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +0 -881
  1660. package/vscode/src/vs/platform/theme/common/colorRegistry.js +0 -1316
  1661. package/vscode/src/vs/workbench/api/common/extHostChatProvider.js +0 -253
  1662. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.css.js +0 -4
  1663. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.js +0 -74
  1664. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.css.js +0 -4
  1665. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatLivePreviewWidget.js +0 -424
  1666. package/vscode-dts/vscode.proposed.testCoverage.d.ts +0 -222
  1667. /package/vscode/src/vs/base/browser/ui/hover/{hover.css.js → hoverWidget.css.js} +0 -0
  1668. /package/vscode/src/vs/editor/browser/{widget/hoverWidget → services/hoverService}/hover.css.js +0 -0
  1669. /package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/objectPool.js +0 -0
  1670. /package/vscode/src/vs/editor/contrib/indentation/{browser → common}/indentUtils.js +0 -0
  1671. /package/vscode/src/vs/editor/contrib/rename/browser/{renameInputField.css.js → renameWidget.css.js} +0 -0
  1672. /package/vscode/src/vs/platform/theme/common/{colorRegistry.d.ts → colorUtils.d.ts} +0 -0
@@ -0,0 +1,2180 @@
1
+ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import { isFirefox } from '../../../../base/browser/browser.js';
3
+ import { BrowserFeatures } from '../../../../base/browser/canIUse.js';
4
+ import { DataTransfers } from '../../../../base/browser/dnd.js';
5
+ import { isAncestorOfActiveElement, getWindow, Dimension, addDisposableListener, DragAndDropObserver, getActiveWindow, disposableWindowInterval } from '../../../../base/browser/dom.js';
6
+ import { StandardKeyboardEvent } from '../../../../base/browser/keyboardEvent.js';
7
+ import { DomScrollableElement } from '../../../../base/browser/ui/scrollbar/scrollableElement.js';
8
+ import { AutoOpenBarrier, Promises, disposableTimeout, timeout } from '../../../../base/common/async.js';
9
+ import { Codicon, getAllCodicons } from '../../../../base/common/codicons.js';
10
+ import { debounce } from '../../../../base/common/decorators.js';
11
+ import { onUnexpectedError, ErrorNoTelemetry } from '../../../../base/common/errors.js';
12
+ import { Emitter } from '../../../../base/common/event.js';
13
+ import { template } from '../../../../base/common/labels.js';
14
+ import { Disposable, MutableDisposable, toDisposable, dispose, DisposableStore } from '../../../../base/common/lifecycle.js';
15
+ import { Schemas } from '../../../../base/common/network.js';
16
+ import { win32, basename, resolve } from '../../../../base/common/path.js';
17
+ import { OS, isMacintosh, isWindows } from '../../../../base/common/platform.js';
18
+ import { URI } from '../../../../base/common/uri.js';
19
+ import { TabFocus } from '../../../../editor/browser/config/tabFocus.js';
20
+ import { localizeWithPath } from '../../../../nls.js';
21
+ import { IAccessibilityService } from '../../../../platform/accessibility/common/accessibility.js';
22
+ import { AccessibilitySignal, IAccessibilitySignalService } from '../../../../platform/accessibilitySignal/browser/accessibilitySignalService.js';
23
+ import { IClipboardService } from '../../../../platform/clipboard/common/clipboardService.js';
24
+ import { ICommandService } from '../../../../platform/commands/common/commands.js';
25
+ import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
26
+ import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
27
+ import { containsDragType, CodeDataTransfers } from '../../../../platform/dnd/browser/dnd.js';
28
+ import { IFileService } from '../../../../platform/files/common/files.js';
29
+ import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
30
+ import { ServiceCollection } from '../../../../platform/instantiation/common/serviceCollection.js';
31
+ import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.js';
32
+ import { Severity, INotificationService } from '../../../../platform/notification/common/notification.js';
33
+ import { IOpenerService } from '../../../../platform/opener/common/opener.js';
34
+ import { IProductService } from '../../../../platform/product/common/productService.js';
35
+ import { IQuickInputService } from '../../../../platform/quickinput/common/quickInput.js';
36
+ import { IStorageService } from '../../../../platform/storage/common/storage.js';
37
+ import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.js';
38
+ import { TerminalCapabilityStoreMultiplexer } from '../../../../platform/terminal/common/capabilities/terminalCapabilityStore.js';
39
+ import { deserializeEnvironmentVariableCollections } from '../../../../platform/terminal/common/environmentVariableShared.js';
40
+ import { TitleEventSource, TerminalExitReason, TerminalLocation, ITerminalLogService } from '../../../../platform/terminal/common/terminal.js';
41
+ import { formatMessageForTerminal } from '../../../../platform/terminal/common/terminalStrings.js';
42
+ import '../../../../platform/theme/common/colorUtils.js';
43
+ import '../../../../platform/theme/common/colors/baseColors.js';
44
+ import '../../../../platform/theme/common/colors/chartsColors.js';
45
+ import { editorBackground } from '../../../../platform/theme/common/colors/editorColors.js';
46
+ import '../../../../platform/theme/common/colors/inputColors.js';
47
+ import '../../../../platform/theme/common/colors/listColors.js';
48
+ import '../../../../platform/theme/common/colors/menuColors.js';
49
+ import '../../../../platform/theme/common/colors/minimapColors.js';
50
+ import '../../../../platform/theme/common/colors/miscColors.js';
51
+ import '../../../../platform/theme/common/colors/quickpickColors.js';
52
+ import '../../../../platform/theme/common/colors/searchColors.js';
53
+ import { getIconRegistry } from '../../../../platform/theme/common/iconRegistry.js';
54
+ import { IThemeService } from '../../../../platform/theme/common/themeService.js';
55
+ import { IWorkspaceContextService } from '../../../../platform/workspace/common/workspace.js';
56
+ import { IWorkspaceTrustRequestService } from '../../../../platform/workspace/common/workspaceTrust.js';
57
+ import { PANEL_BACKGROUND, SIDE_BAR_BACKGROUND } from '../../../common/theme.js';
58
+ import { IViewDescriptorService } from '../../../common/views.js';
59
+ import { IViewsService } from '../../../services/views/common/viewsService.js';
60
+ import { TerminalLaunchHelpAction } from './terminalActions.js';
61
+ import { TerminalEditorInput } from './terminalEditorInput.js';
62
+ import { TerminalExtensionsRegistry } from './terminalExtensions.js';
63
+ import { getStandardColors, createColorStyleElement, getColorClass } from './terminalIcon.js';
64
+ import { TerminalProcessManager } from './terminalProcessManager.js';
65
+ import { showRunRecentQuickPick } from './terminalRunRecentQuickPick.js';
66
+ import { TerminalStatusList } from './terminalStatusList.js';
67
+ import { getTerminalUri, getTerminalResourcesFromDragEvent } from './terminalUri.js';
68
+ import { TerminalWidgetManager } from './widgets/widgetManager.js';
69
+ import { LineDataEventAddon } from './xterm/lineDataEventAddon.js';
70
+ import { getXtermScaledDimensions, XtermTerminal } from './xterm/xtermTerminal.js';
71
+ import { getDirectoryHistory, getCommandHistory } from '../common/history.js';
72
+ import { TERMINAL_VIEW_ID, TERMINAL_CREATION_COMMANDS, DEFAULT_COMMANDS_TO_SKIP_SHELL, ITerminalProfileResolverService } from '../common/terminal.js';
73
+ import { TERMINAL_BACKGROUND_COLOR } from '../common/terminalColorRegistry.js';
74
+ import { TerminalContextKeys } from '../common/terminalContextKey.js';
75
+ import { preparePathForShell, getWorkspaceForTerminal } from '../common/terminalEnvironment.js';
76
+ import { IEditorService } from '../../../services/editor/common/editorService.js';
77
+ import { IWorkbenchEnvironmentService } from '../../../services/environment/common/environmentService.js';
78
+ import { IHistoryService } from '../../../services/history/common/history.js';
79
+ import { IWorkbenchLayoutService } from '../../../services/layout/browser/layoutService.js';
80
+ import { IPathService } from '../../../services/path/common/pathService.js';
81
+ import { IPreferencesService } from '../../../services/preferences/common/preferences.js';
82
+ import { terminalStrings } from '../common/terminalStrings.js';
83
+ import { shouldPasteTerminalText } from '../common/terminalClipboard.js';
84
+ var TerminalInstance_1;
85
+ let xtermConstructor;
86
+ const shellIntegrationSupportedShellTypes = [
87
+ "bash" ,
88
+ "zsh" ,
89
+ "pwsh" ,
90
+ "python" ,
91
+ "pwsh"
92
+ ];
93
+ let TerminalInstance = class TerminalInstance extends Disposable {
94
+ static { TerminalInstance_1 = this; }
95
+ static { this._instanceIdCounter = 1; }
96
+ get domElement() { return this._wrapperElement; }
97
+ get usedShellIntegrationInjection() { return this._usedShellIntegrationInjection; }
98
+ get store() {
99
+ return this._store;
100
+ }
101
+ get extEnvironmentVariableCollection() { return this._processManager.extEnvironmentVariableCollection; }
102
+ get waitOnExit() { return this._shellLaunchConfig.attachPersistentProcess?.waitOnExit || this._shellLaunchConfig.waitOnExit; }
103
+ set waitOnExit(value) {
104
+ this._shellLaunchConfig.waitOnExit = value;
105
+ }
106
+ get target() { return this._target; }
107
+ set target(value) {
108
+ this._target = value;
109
+ this._onDidChangeTarget.fire(value);
110
+ }
111
+ get instanceId() { return this._instanceId; }
112
+ get resource() { return this._resource; }
113
+ get cols() {
114
+ if (this._fixedCols !== undefined) {
115
+ return this._fixedCols;
116
+ }
117
+ if (this._dimensionsOverride && this._dimensionsOverride.cols) {
118
+ if (this._dimensionsOverride.forceExactSize) {
119
+ return this._dimensionsOverride.cols;
120
+ }
121
+ return Math.min(Math.max(this._dimensionsOverride.cols, 2), this._cols);
122
+ }
123
+ return this._cols;
124
+ }
125
+ get rows() {
126
+ if (this._fixedRows !== undefined) {
127
+ return this._fixedRows;
128
+ }
129
+ if (this._dimensionsOverride && this._dimensionsOverride.rows) {
130
+ if (this._dimensionsOverride.forceExactSize) {
131
+ return this._dimensionsOverride.rows;
132
+ }
133
+ return Math.min(Math.max(this._dimensionsOverride.rows, 2), this._rows);
134
+ }
135
+ return this._rows;
136
+ }
137
+ get isDisposed() { return this._store.isDisposed; }
138
+ get fixedCols() { return this._fixedCols; }
139
+ get fixedRows() { return this._fixedRows; }
140
+ get maxCols() { return this._cols; }
141
+ get maxRows() { return this._rows; }
142
+ get processId() { return this._processManager.shellProcessId; }
143
+ get processReady() { return this._processManager.ptyProcessReady; }
144
+ get hasChildProcesses() { return this.shellLaunchConfig.attachPersistentProcess?.hasChildProcesses || this._processManager.hasChildProcesses; }
145
+ get reconnectionProperties() { return this.shellLaunchConfig.attachPersistentProcess?.reconnectionProperties || this.shellLaunchConfig.reconnectionProperties; }
146
+ get areLinksReady() { return this._areLinksReady; }
147
+ get initialDataEvents() { return this._initialDataEvents; }
148
+ get exitCode() { return this._exitCode; }
149
+ get exitReason() { return this._exitReason; }
150
+ get hadFocusOnExit() { return this._hadFocusOnExit; }
151
+ get isTitleSetByProcess() { return !!this._messageTitleDisposable.value; }
152
+ get shellLaunchConfig() { return this._shellLaunchConfig; }
153
+ get shellType() { return this._shellType; }
154
+ get os() { return this._processManager.os; }
155
+ get isRemote() { return this._processManager.remoteAuthority !== undefined; }
156
+ get remoteAuthority() { return this._processManager.remoteAuthority; }
157
+ get hasFocus() { return isAncestorOfActiveElement(this._wrapperElement); }
158
+ get title() { return this._title; }
159
+ get titleSource() { return this._titleSource; }
160
+ get icon() { return this._getIcon(); }
161
+ get color() { return this._getColor(); }
162
+ get processName() { return this._processName; }
163
+ get sequence() { return this._sequence; }
164
+ get staticTitle() { return this._staticTitle; }
165
+ get workspaceFolder() { return this._workspaceFolder; }
166
+ get cwd() { return this._cwd; }
167
+ get initialCwd() { return this._initialCwd; }
168
+ get description() {
169
+ if (this._description) {
170
+ return this._description;
171
+ }
172
+ const type = this.shellLaunchConfig.attachPersistentProcess?.type || this.shellLaunchConfig.type;
173
+ switch (type) {
174
+ case 'Task': return terminalStrings.typeTask;
175
+ case 'Local': return terminalStrings.typeLocal;
176
+ default: return undefined;
177
+ }
178
+ }
179
+ get userHome() { return this._userHome; }
180
+ get shellIntegrationNonce() { return this._processManager.shellIntegrationNonce; }
181
+ get injectedArgs() { return this._injectedArgs; }
182
+ constructor(_terminalShellTypeContextKey, _terminalInRunCommandPicker, _configHelper, _shellLaunchConfig, _contextKeyService, instantiationService, _terminalProfileResolverService, _pathService, _keybindingService, _notificationService, _preferencesService, _viewsService, _clipboardService, _themeService, _configurationService, _logService, _storageService, _accessibilityService, _productService, _quickInputService, workbenchEnvironmentService, _workspaceContextService, _editorService, _workspaceTrustRequestService, _historyService, _telemetryService, _openerService, _commandService, _accessibilitySignalService, _viewDescriptorService) {
183
+ super();
184
+ this._terminalShellTypeContextKey = _terminalShellTypeContextKey;
185
+ this._terminalInRunCommandPicker = _terminalInRunCommandPicker;
186
+ this._configHelper = _configHelper;
187
+ this._shellLaunchConfig = _shellLaunchConfig;
188
+ this._contextKeyService = _contextKeyService;
189
+ this._terminalProfileResolverService = _terminalProfileResolverService;
190
+ this._pathService = _pathService;
191
+ this._keybindingService = _keybindingService;
192
+ this._notificationService = _notificationService;
193
+ this._preferencesService = _preferencesService;
194
+ this._viewsService = _viewsService;
195
+ this._clipboardService = _clipboardService;
196
+ this._themeService = _themeService;
197
+ this._configurationService = _configurationService;
198
+ this._logService = _logService;
199
+ this._storageService = _storageService;
200
+ this._accessibilityService = _accessibilityService;
201
+ this._productService = _productService;
202
+ this._quickInputService = _quickInputService;
203
+ this._workspaceContextService = _workspaceContextService;
204
+ this._editorService = _editorService;
205
+ this._workspaceTrustRequestService = _workspaceTrustRequestService;
206
+ this._historyService = _historyService;
207
+ this._telemetryService = _telemetryService;
208
+ this._openerService = _openerService;
209
+ this._commandService = _commandService;
210
+ this._accessibilitySignalService = _accessibilitySignalService;
211
+ this._viewDescriptorService = _viewDescriptorService;
212
+ this._contributions = ( new Map());
213
+ this._latestXtermWriteData = 0;
214
+ this._latestXtermParseData = 0;
215
+ this._title = '';
216
+ this._titleSource = TitleEventSource.Process;
217
+ this._cols = 0;
218
+ this._rows = 0;
219
+ this._cwd = undefined;
220
+ this._initialCwd = undefined;
221
+ this._injectedArgs = undefined;
222
+ this._layoutSettingsChanged = true;
223
+ this._areLinksReady = false;
224
+ this._initialDataEvents = [];
225
+ this._messageTitleDisposable = this._register(( new MutableDisposable()));
226
+ this._dndObserver = this._register(( new MutableDisposable()));
227
+ this._processName = '';
228
+ this._usedShellIntegrationInjection = false;
229
+ this.capabilities = ( new TerminalCapabilityStoreMultiplexer());
230
+ this.disableLayout = false;
231
+ this._onExit = ( new Emitter());
232
+ this.onExit = this._onExit.event;
233
+ this._onDisposed = this._register(( new Emitter()));
234
+ this.onDisposed = this._onDisposed.event;
235
+ this._onProcessIdReady = this._register(( new Emitter()));
236
+ this.onProcessIdReady = this._onProcessIdReady.event;
237
+ this._onProcessReplayComplete = this._register(( new Emitter()));
238
+ this.onProcessReplayComplete = this._onProcessReplayComplete.event;
239
+ this._onTitleChanged = this._register(( new Emitter()));
240
+ this.onTitleChanged = this._onTitleChanged.event;
241
+ this._onIconChanged = this._register(( new Emitter()));
242
+ this.onIconChanged = this._onIconChanged.event;
243
+ this._onData = this._register(( new Emitter()));
244
+ this.onData = this._onData.event;
245
+ this._onBinary = this._register(( new Emitter()));
246
+ this.onBinary = this._onBinary.event;
247
+ this._onLineData = this._register(( new Emitter({
248
+ onDidAddFirstListener: () => this._onLineDataSetup()
249
+ })));
250
+ this.onLineData = this._onLineData.event;
251
+ this._onRequestExtHostProcess = this._register(( new Emitter()));
252
+ this.onRequestExtHostProcess = this._onRequestExtHostProcess.event;
253
+ this._onDimensionsChanged = this._register(( new Emitter()));
254
+ this.onDimensionsChanged = this._onDimensionsChanged.event;
255
+ this._onMaximumDimensionsChanged = this._register(( new Emitter()));
256
+ this.onMaximumDimensionsChanged = this._onMaximumDimensionsChanged.event;
257
+ this._onDidFocus = this._register(( new Emitter()));
258
+ this.onDidFocus = this._onDidFocus.event;
259
+ this._onDidRequestFocus = this._register(( new Emitter()));
260
+ this.onDidRequestFocus = this._onDidRequestFocus.event;
261
+ this._onDidBlur = this._register(( new Emitter()));
262
+ this.onDidBlur = this._onDidBlur.event;
263
+ this._onDidInputData = this._register(( new Emitter()));
264
+ this.onDidInputData = this._onDidInputData.event;
265
+ this._onDidChangeSelection = this._register(( new Emitter()));
266
+ this.onDidChangeSelection = this._onDidChangeSelection.event;
267
+ this._onRequestAddInstanceToGroup = this._register(( new Emitter()));
268
+ this.onRequestAddInstanceToGroup = this._onRequestAddInstanceToGroup.event;
269
+ this._onDidChangeHasChildProcesses = this._register(( new Emitter()));
270
+ this.onDidChangeHasChildProcesses = this._onDidChangeHasChildProcesses.event;
271
+ this._onDidExecuteText = this._register(( new Emitter()));
272
+ this.onDidExecuteText = this._onDidExecuteText.event;
273
+ this._onDidChangeTarget = this._register(( new Emitter()));
274
+ this.onDidChangeTarget = this._onDidChangeTarget.event;
275
+ this._onDidSendText = this._register(( new Emitter()));
276
+ this.onDidSendText = this._onDidSendText.event;
277
+ this._overrideCopySelection = undefined;
278
+ this._wrapperElement = document.createElement('div');
279
+ this._wrapperElement.classList.add('terminal-wrapper');
280
+ this._widgetManager = this._register(instantiationService.createInstance(TerminalWidgetManager));
281
+ this._skipTerminalCommands = [];
282
+ this._isExiting = false;
283
+ this._hadFocusOnExit = false;
284
+ this._isVisible = false;
285
+ this._instanceId = TerminalInstance_1._instanceIdCounter++;
286
+ this._hasHadInput = false;
287
+ this._fixedRows = _shellLaunchConfig.attachPersistentProcess?.fixedDimensions?.rows;
288
+ this._fixedCols = _shellLaunchConfig.attachPersistentProcess?.fixedDimensions?.cols;
289
+ this._resource = getTerminalUri(this._workspaceContextService.getWorkspace().id, this.instanceId, this.title);
290
+ if (this._shellLaunchConfig.attachPersistentProcess?.hideFromUser) {
291
+ this._shellLaunchConfig.hideFromUser = this._shellLaunchConfig.attachPersistentProcess.hideFromUser;
292
+ }
293
+ if (this._shellLaunchConfig.attachPersistentProcess?.isFeatureTerminal) {
294
+ this._shellLaunchConfig.isFeatureTerminal = this._shellLaunchConfig.attachPersistentProcess.isFeatureTerminal;
295
+ }
296
+ if (this._shellLaunchConfig.attachPersistentProcess?.type) {
297
+ this._shellLaunchConfig.type = this._shellLaunchConfig.attachPersistentProcess.type;
298
+ }
299
+ if (this.shellLaunchConfig.cwd) {
300
+ const cwdUri = typeof this._shellLaunchConfig.cwd === 'string' ? ( URI.from({
301
+ scheme: Schemas.file,
302
+ path: this._shellLaunchConfig.cwd
303
+ })) : this._shellLaunchConfig.cwd;
304
+ if (cwdUri) {
305
+ this._workspaceFolder = this._workspaceContextService.getWorkspaceFolder(cwdUri) ?? undefined;
306
+ }
307
+ }
308
+ if (!this._workspaceFolder) {
309
+ const activeWorkspaceRootUri = this._historyService.getLastActiveWorkspaceRoot();
310
+ this._workspaceFolder = activeWorkspaceRootUri ? this._workspaceContextService.getWorkspaceFolder(activeWorkspaceRootUri) ?? undefined : undefined;
311
+ }
312
+ const scopedContextKeyService = this._register(_contextKeyService.createScoped(this._wrapperElement));
313
+ this._scopedContextKeyService = scopedContextKeyService;
314
+ this._scopedInstantiationService = instantiationService.createChild(( new ServiceCollection([IContextKeyService, scopedContextKeyService])));
315
+ this._terminalFocusContextKey = TerminalContextKeys.focus.bindTo(scopedContextKeyService);
316
+ this._terminalHasFixedWidth = TerminalContextKeys.terminalHasFixedWidth.bindTo(scopedContextKeyService);
317
+ this._terminalHasTextContextKey = TerminalContextKeys.textSelected.bindTo(scopedContextKeyService);
318
+ this._terminalAltBufferActiveContextKey = TerminalContextKeys.altBufferActive.bindTo(scopedContextKeyService);
319
+ this._terminalShellIntegrationEnabledContextKey = TerminalContextKeys.terminalShellIntegrationEnabled.bindTo(scopedContextKeyService);
320
+ this._logService.trace(`terminalInstance#ctor (instanceId: ${this.instanceId})`, this._shellLaunchConfig);
321
+ this._register(this.capabilities.onDidAddCapabilityType(e => {
322
+ this._logService.debug('terminalInstance added capability', e);
323
+ if (e === 0 ) {
324
+ this.capabilities.get(0 )?.onDidChangeCwd(e => {
325
+ this._cwd = e;
326
+ this._setTitle(this.title, TitleEventSource.Config);
327
+ this._scopedInstantiationService.invokeFunction(getDirectoryHistory)?.add(e, { remoteAuthority: this.remoteAuthority });
328
+ });
329
+ }
330
+ else if (e === 2 ) {
331
+ const commandCapability = this.capabilities.get(2 );
332
+ commandCapability?.onCommandFinished(e => {
333
+ if (e.command.trim().length > 0) {
334
+ this._scopedInstantiationService.invokeFunction(getCommandHistory)?.add(e.command, { shellType: this._shellType });
335
+ }
336
+ });
337
+ }
338
+ }));
339
+ this._register(this.capabilities.onDidRemoveCapabilityType(e => this._logService.debug('terminalInstance removed capability', e)));
340
+ if (!this.shellLaunchConfig.executable && !workbenchEnvironmentService.remoteAuthority) {
341
+ this._terminalProfileResolverService.resolveIcon(this._shellLaunchConfig, OS);
342
+ }
343
+ this._icon = _shellLaunchConfig.attachPersistentProcess?.icon || _shellLaunchConfig.icon;
344
+ if (this.shellLaunchConfig.customPtyImplementation) {
345
+ this._setTitle(this._shellLaunchConfig.name, TitleEventSource.Api);
346
+ }
347
+ this.statusList = this._scopedInstantiationService.createInstance(TerminalStatusList);
348
+ this._initDimensions();
349
+ this._processManager = this._createProcessManager();
350
+ this._containerReadyBarrier = ( new AutoOpenBarrier(100 ));
351
+ this._attachBarrier = ( new AutoOpenBarrier(1000));
352
+ this._xtermReadyPromise = this._createXterm();
353
+ this._xtermReadyPromise.then(async () => {
354
+ await this._containerReadyBarrier.wait();
355
+ if (!this.shellLaunchConfig.customPtyImplementation && this._configHelper.config.shellIntegration?.enabled && !this.shellLaunchConfig.executable) {
356
+ const os = await this._processManager.getBackendOS();
357
+ const defaultProfile = (await this._terminalProfileResolverService.getDefaultProfile({ remoteAuthority: this.remoteAuthority, os }));
358
+ this.shellLaunchConfig.executable = defaultProfile.path;
359
+ this.shellLaunchConfig.args = defaultProfile.args;
360
+ if (this.shellLaunchConfig.isExtensionOwnedTerminal) {
361
+ this.shellLaunchConfig.icon ??= defaultProfile.icon;
362
+ this.shellLaunchConfig.color ??= defaultProfile.color;
363
+ }
364
+ else {
365
+ this.shellLaunchConfig.icon = defaultProfile.icon;
366
+ this.shellLaunchConfig.color = defaultProfile.color;
367
+ }
368
+ }
369
+ await this._createProcess();
370
+ if (this.shellLaunchConfig.attachPersistentProcess) {
371
+ this._cwd = this.shellLaunchConfig.attachPersistentProcess.cwd;
372
+ this._setTitle(this.shellLaunchConfig.attachPersistentProcess.title, this.shellLaunchConfig.attachPersistentProcess.titleSource);
373
+ this.setShellType(this.shellType);
374
+ }
375
+ if (this._fixedCols) {
376
+ await this._addScrollbar();
377
+ }
378
+ }).catch((err) => {
379
+ if (!this.isDisposed) {
380
+ throw err;
381
+ }
382
+ });
383
+ this._register(this._configurationService.onDidChangeConfiguration(async (e) => {
384
+ if (e.affectsConfiguration("accessibility.verbosity.terminal" )) {
385
+ this._setAriaLabel(this.xterm?.raw, this._instanceId, this.title);
386
+ }
387
+ if (e.affectsConfiguration('terminal.integrated')) {
388
+ this.updateConfig();
389
+ this.setVisible(this._isVisible);
390
+ }
391
+ const layoutSettings = [
392
+ "terminal.integrated.fontSize" ,
393
+ "terminal.integrated.fontFamily" ,
394
+ "terminal.integrated.fontWeight" ,
395
+ "terminal.integrated.fontWeightBold" ,
396
+ "terminal.integrated.letterSpacing" ,
397
+ "terminal.integrated.lineHeight" ,
398
+ 'editor.fontFamily'
399
+ ];
400
+ if (( layoutSettings.some(id => e.affectsConfiguration(id)))) {
401
+ this._layoutSettingsChanged = true;
402
+ await this._resize();
403
+ }
404
+ if (e.affectsConfiguration("terminal.integrated.unicodeVersion" )) {
405
+ this._updateUnicodeVersion();
406
+ }
407
+ if (e.affectsConfiguration('editor.accessibilitySupport')) {
408
+ this.updateAccessibilitySupport();
409
+ }
410
+ if (e.affectsConfiguration("terminal.integrated.tabs.title" ) ||
411
+ e.affectsConfiguration("terminal.integrated.tabs.separator" ) ||
412
+ e.affectsConfiguration("terminal.integrated.tabs.description" )) {
413
+ this._labelComputer?.refreshLabel(this);
414
+ }
415
+ }));
416
+ this._register(this._workspaceContextService.onDidChangeWorkspaceFolders(() => this._labelComputer?.refreshLabel(this)));
417
+ let initialDataEventsTimeout = getWindow(this._container).setTimeout(() => {
418
+ initialDataEventsTimeout = undefined;
419
+ this._initialDataEvents = undefined;
420
+ }, 10000);
421
+ this._register(toDisposable(() => {
422
+ if (initialDataEventsTimeout) {
423
+ getWindow(this._container).clearTimeout(initialDataEventsTimeout);
424
+ }
425
+ }));
426
+ const contributionDescs = TerminalExtensionsRegistry.getTerminalContributions();
427
+ for (const desc of contributionDescs) {
428
+ if (( this._contributions.has(desc.id))) {
429
+ onUnexpectedError(( new Error(`Cannot have two terminal contributions with the same id ${desc.id}`)));
430
+ continue;
431
+ }
432
+ let contribution;
433
+ try {
434
+ contribution = this._scopedInstantiationService.createInstance(desc.ctor, this, this._processManager, this._widgetManager);
435
+ this._contributions.set(desc.id, contribution);
436
+ }
437
+ catch (err) {
438
+ onUnexpectedError(err);
439
+ }
440
+ this._xtermReadyPromise.then(xterm => {
441
+ contribution.xtermReady?.(xterm);
442
+ });
443
+ this.onDisposed(() => {
444
+ contribution.dispose();
445
+ this._contributions.delete(desc.id);
446
+ if ('instance' in contribution) {
447
+ delete contribution.instance;
448
+ }
449
+ if ('_instance' in contribution) {
450
+ delete contribution._instance;
451
+ }
452
+ });
453
+ }
454
+ }
455
+ getContribution(id) {
456
+ return this._contributions.get(id);
457
+ }
458
+ _getIcon() {
459
+ if (!this._icon) {
460
+ this._icon = this._processManager.processState >= 2
461
+ ? getIconRegistry().getIcon(this._configurationService.getValue("terminal.integrated.tabs.defaultIcon" ))
462
+ : undefined;
463
+ }
464
+ return this._icon;
465
+ }
466
+ _getColor() {
467
+ if (this.shellLaunchConfig.color) {
468
+ return this.shellLaunchConfig.color;
469
+ }
470
+ if (this.shellLaunchConfig?.attachPersistentProcess?.color) {
471
+ return this.shellLaunchConfig.attachPersistentProcess.color;
472
+ }
473
+ if (this._processManager.processState >= 2 ) {
474
+ return undefined;
475
+ }
476
+ return undefined;
477
+ }
478
+ _initDimensions() {
479
+ if (!this._container) {
480
+ this._cols = 80 ;
481
+ this._rows = 30 ;
482
+ return;
483
+ }
484
+ const computedStyle = getWindow(this._container).getComputedStyle(this._container);
485
+ const width = parseInt(computedStyle.width);
486
+ const height = parseInt(computedStyle.height);
487
+ this._evaluateColsAndRows(width, height);
488
+ }
489
+ _evaluateColsAndRows(width, height) {
490
+ if (!width || !height) {
491
+ this._setLastKnownColsAndRows();
492
+ return null;
493
+ }
494
+ const dimension = this._getDimension(width, height);
495
+ if (!dimension) {
496
+ this._setLastKnownColsAndRows();
497
+ return null;
498
+ }
499
+ const font = this.xterm ? this.xterm.getFont() : this._configHelper.getFont(getWindow(this.domElement));
500
+ const newRC = getXtermScaledDimensions(getWindow(this.domElement), font, dimension.width, dimension.height);
501
+ if (!newRC) {
502
+ this._setLastKnownColsAndRows();
503
+ return null;
504
+ }
505
+ if (this._cols !== newRC.cols || this._rows !== newRC.rows) {
506
+ this._cols = newRC.cols;
507
+ this._rows = newRC.rows;
508
+ this._fireMaximumDimensionsChanged();
509
+ }
510
+ return dimension.width;
511
+ }
512
+ _setLastKnownColsAndRows() {
513
+ if (TerminalInstance_1._lastKnownGridDimensions) {
514
+ this._cols = TerminalInstance_1._lastKnownGridDimensions.cols;
515
+ this._rows = TerminalInstance_1._lastKnownGridDimensions.rows;
516
+ }
517
+ }
518
+ _fireMaximumDimensionsChanged() {
519
+ this._onMaximumDimensionsChanged.fire();
520
+ }
521
+ _getDimension(width, height) {
522
+ const font = this.xterm ? this.xterm.getFont() : this._configHelper.getFont(getWindow(this.domElement));
523
+ if (!font || !font.charWidth || !font.charHeight) {
524
+ return undefined;
525
+ }
526
+ if (!this.xterm?.raw.element) {
527
+ return undefined;
528
+ }
529
+ const computedStyle = getWindow(this.xterm.raw.element).getComputedStyle(this.xterm.raw.element);
530
+ const horizontalPadding = parseInt(computedStyle.paddingLeft) + parseInt(computedStyle.paddingRight);
531
+ const verticalPadding = parseInt(computedStyle.paddingTop) + parseInt(computedStyle.paddingBottom);
532
+ TerminalInstance_1._lastKnownCanvasDimensions = new Dimension(Math.min(4096 , width - horizontalPadding), height + (this._hasScrollBar && !this._horizontalScrollbar ? -5 : 0) - 2 - verticalPadding);
533
+ return TerminalInstance_1._lastKnownCanvasDimensions;
534
+ }
535
+ get persistentProcessId() { return this._processManager.persistentProcessId; }
536
+ get shouldPersist() { return this._processManager.shouldPersist && !this.shellLaunchConfig.isTransient && (!this.reconnectionProperties || this._configurationService.getValue('task.reconnection') === true); }
537
+ static getXtermConstructor(keybindingService, contextKeyService) {
538
+ const keybinding = keybindingService.lookupKeybinding("workbench.action.terminal.focusAccessibleBuffer" , contextKeyService);
539
+ if (xtermConstructor) {
540
+ return xtermConstructor;
541
+ }
542
+ xtermConstructor = Promises.withAsyncBody(async (resolve) => {
543
+ const Terminal = (await import('@xterm/xterm').then(module => module.default ?? module)).Terminal;
544
+ Terminal.strings.promptLabel = ( localizeWithPath(
545
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
546
+ 'terminal.integrated.a11yPromptLabel',
547
+ 'Terminal input'
548
+ ));
549
+ Terminal.strings.tooMuchOutput = keybinding ? ( localizeWithPath(
550
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
551
+ 'terminal.integrated.useAccessibleBuffer',
552
+ 'Use the accessible buffer {0} to manually review output',
553
+ keybinding.getLabel()
554
+ )) : ( localizeWithPath(
555
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
556
+ 'terminal.integrated.useAccessibleBufferNoKb',
557
+ 'Use the Terminal: Focus Accessible Buffer command to manually review output'
558
+ ));
559
+ resolve(Terminal);
560
+ });
561
+ return xtermConstructor;
562
+ }
563
+ async _createXterm() {
564
+ const Terminal = await TerminalInstance_1.getXtermConstructor(this._keybindingService, this._contextKeyService);
565
+ if (this.isDisposed) {
566
+ throw new ErrorNoTelemetry('Terminal disposed of during xterm.js creation');
567
+ }
568
+ const disableShellIntegrationReporting = (this.shellLaunchConfig.executable === undefined || this.shellType === undefined) || !shellIntegrationSupportedShellTypes.includes(this.shellType);
569
+ const xterm = this._scopedInstantiationService.createInstance(XtermTerminal, Terminal, this._configHelper, this._cols, this._rows, this._scopedInstantiationService.createInstance(TerminalInstanceColorProvider, this), this.capabilities, this._processManager.shellIntegrationNonce, disableShellIntegrationReporting);
570
+ this.xterm = xterm;
571
+ this.updateAccessibilitySupport();
572
+ this.xterm.onDidRequestRunCommand(e => {
573
+ if (e.copyAsHtml) {
574
+ this.copySelection(true, e.command);
575
+ }
576
+ else {
577
+ this.sendText(e.command.command, e.noNewLine ? false : true);
578
+ }
579
+ });
580
+ this.xterm.onDidRequestFocus(() => this.focus());
581
+ this.xterm.onDidRequestSendText(e => this.sendText(e, false));
582
+ const initialTextWrittenPromise = this._shellLaunchConfig.initialText ? ( new Promise(r => this._writeInitialText(xterm, r))) : undefined;
583
+ const lineDataEventAddon = this._register(( new LineDataEventAddon(initialTextWrittenPromise)));
584
+ lineDataEventAddon.onLineData(e => this._onLineData.fire(e));
585
+ this._lineDataEventAddon = lineDataEventAddon;
586
+ disposableTimeout(() => {
587
+ this._register(xterm.raw.onBell(() => {
588
+ if (this._configurationService.getValue("terminal.integrated.enableBell" ) || this._configurationService.getValue("terminal.integrated.enableVisualBell" )) {
589
+ this.statusList.add({
590
+ id: "bell" ,
591
+ severity: Severity.Warning,
592
+ icon: Codicon.bell,
593
+ tooltip: ( localizeWithPath(
594
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
595
+ 'bellStatus',
596
+ "Bell"
597
+ ))
598
+ }, this._configHelper.config.bellDuration);
599
+ }
600
+ this._accessibilitySignalService.playSignal(AccessibilitySignal.terminalBell);
601
+ }));
602
+ }, 1000, this._store);
603
+ this._register(xterm.raw.onSelectionChange(async () => this._onSelectionChange()));
604
+ this._register(xterm.raw.buffer.onBufferChange(() => this._refreshAltBufferContextKey()));
605
+ this._processManager.onProcessData(e => this._onProcessData(e));
606
+ this._register(xterm.raw.onData(async (data) => {
607
+ await this._processManager.write(data);
608
+ this._onDidInputData.fire(this);
609
+ }));
610
+ this._register(xterm.raw.onBinary(data => this._processManager.processBinary(data)));
611
+ this._processManager.onProcessReady(async (processTraits) => {
612
+ if (this._processManager.os) {
613
+ lineDataEventAddon.setOperatingSystem(this._processManager.os);
614
+ }
615
+ xterm.raw.options.windowsPty = processTraits.windowsPty;
616
+ });
617
+ this._processManager.onRestoreCommands(e => this.xterm?.shellIntegration.deserialize(e));
618
+ this._register(this._viewDescriptorService.onDidChangeLocation(({ views }) => {
619
+ if (( views.some(v => v.id === TERMINAL_VIEW_ID))) {
620
+ xterm.refresh();
621
+ }
622
+ }));
623
+ if (!( this.capabilities.has(0 ))) {
624
+ let onKeyListener = xterm.raw.onKey(e => {
625
+ const event = ( new StandardKeyboardEvent(e.domEvent));
626
+ if (event.equals(3 )) {
627
+ this._updateProcessCwd();
628
+ }
629
+ });
630
+ this._register(this.capabilities.onDidAddCapabilityType(e => {
631
+ if (e === 0 ) {
632
+ onKeyListener?.dispose();
633
+ onKeyListener = undefined;
634
+ }
635
+ }));
636
+ }
637
+ this._pathService.userHome().then(userHome => {
638
+ this._userHome = userHome.fsPath;
639
+ });
640
+ if (this._isVisible) {
641
+ this._open();
642
+ }
643
+ return xterm;
644
+ }
645
+ async _onLineDataSetup() {
646
+ const xterm = this.xterm || (await this._xtermReadyPromise);
647
+ xterm.raw.loadAddon(this._lineDataEventAddon);
648
+ }
649
+ async runCommand(commandLine, shouldExecute) {
650
+ let commandDetection = this.capabilities.get(2 );
651
+ if (!commandDetection && ((this._processManager.processState === 1 || this._processManager.processState === 2) )) {
652
+ const store = ( new DisposableStore());
653
+ await Promise.race([
654
+ ( new Promise(r => {
655
+ store.add(this.capabilities.onDidAddCapabilityType(e => {
656
+ if (e === 2 ) {
657
+ commandDetection = this.capabilities.get(2 );
658
+ r();
659
+ }
660
+ }));
661
+ })),
662
+ timeout(2000),
663
+ ]);
664
+ store.dispose();
665
+ }
666
+ if (commandDetection?.hasInput !== false) {
667
+ await this.sendText('\x03', false);
668
+ await timeout(100);
669
+ }
670
+ await this.sendText(commandLine, shouldExecute, !shouldExecute);
671
+ }
672
+ async runRecent(type, filterMode, value) {
673
+ return this._scopedInstantiationService.invokeFunction(showRunRecentQuickPick, this, this._terminalInRunCommandPicker, type, filterMode, value);
674
+ }
675
+ detachFromElement() {
676
+ this._wrapperElement.remove();
677
+ this._container = undefined;
678
+ }
679
+ attachToElement(container) {
680
+ if (this._container === container) {
681
+ return;
682
+ }
683
+ this._attachBarrier.open();
684
+ this._container = container;
685
+ this._container.appendChild(this._wrapperElement);
686
+ if (this.xterm?.raw.element) {
687
+ this.xterm.raw.open(this.xterm.raw.element);
688
+ }
689
+ this.xterm?.refresh();
690
+ setTimeout(() => this._initDragAndDrop(container));
691
+ }
692
+ _open() {
693
+ if (!this.xterm || this.xterm.raw.element) {
694
+ return;
695
+ }
696
+ if (!this._container || !this._container.isConnected) {
697
+ throw new Error('A container element needs to be set with `attachToElement` and be part of the DOM before calling `_open`');
698
+ }
699
+ const xtermElement = document.createElement('div');
700
+ this._wrapperElement.appendChild(xtermElement);
701
+ this._container.appendChild(this._wrapperElement);
702
+ const xterm = this.xterm;
703
+ this._wrapperElement.xterm = xterm.raw;
704
+ const screenElement = xterm.attachToElement(xtermElement);
705
+ for (const contribution of ( this._contributions.values())) {
706
+ if (!this.xterm) {
707
+ this._xtermReadyPromise.then(xterm => contribution.xtermOpen?.(xterm));
708
+ }
709
+ else {
710
+ contribution.xtermOpen?.(this.xterm);
711
+ }
712
+ }
713
+ this._register(xterm.shellIntegration.onDidChangeStatus(() => {
714
+ if (this.hasFocus) {
715
+ this._setShellIntegrationContextKey();
716
+ }
717
+ else {
718
+ this._terminalShellIntegrationEnabledContextKey.reset();
719
+ }
720
+ }));
721
+ if (!xterm.raw.element || !xterm.raw.textarea) {
722
+ throw new Error('xterm elements not set after open');
723
+ }
724
+ this._setAriaLabel(xterm.raw, this._instanceId, this._title);
725
+ xterm.raw.attachCustomKeyEventHandler((event) => {
726
+ if (this._isExiting) {
727
+ return false;
728
+ }
729
+ const standardKeyboardEvent = ( new StandardKeyboardEvent(event));
730
+ const resolveResult = this._keybindingService.softDispatch(standardKeyboardEvent, standardKeyboardEvent.target);
731
+ const isValidChord = resolveResult.kind === 1 && this._configHelper.config.allowChords && event.key !== 'Escape';
732
+ if (this._keybindingService.inChordMode || isValidChord) {
733
+ event.preventDefault();
734
+ return false;
735
+ }
736
+ const SHOW_TERMINAL_CONFIG_PROMPT_KEY = 'terminal.integrated.showTerminalConfigPrompt';
737
+ const EXCLUDED_KEYS = ['RightArrow', 'LeftArrow', 'UpArrow', 'DownArrow', 'Space', 'Meta', 'Control', 'Shift', 'Alt', '', 'Delete', 'Backspace', 'Tab'];
738
+ if (this._storageService.getBoolean(SHOW_TERMINAL_CONFIG_PROMPT_KEY, -1 , true) &&
739
+ !EXCLUDED_KEYS.includes(event.key) &&
740
+ !event.ctrlKey &&
741
+ !event.shiftKey &&
742
+ !event.altKey) {
743
+ this._hasHadInput = true;
744
+ }
745
+ if (resolveResult.kind === 2 && resolveResult.commandId && ( this._skipTerminalCommands.some(k => k === resolveResult.commandId)) && !this._configHelper.config.sendKeybindingsToShell) {
746
+ if (this._storageService.getBoolean(SHOW_TERMINAL_CONFIG_PROMPT_KEY, -1 , true) &&
747
+ this._hasHadInput &&
748
+ !TERMINAL_CREATION_COMMANDS.includes(resolveResult.commandId)) {
749
+ this._notificationService.prompt(Severity.Info, ( localizeWithPath(
750
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
751
+ 'keybindingHandling',
752
+ "Some keybindings don't go to the terminal by default and are handled by {0} instead.",
753
+ this._productService.nameLong
754
+ )), [
755
+ {
756
+ label: ( localizeWithPath(
757
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
758
+ 'configureTerminalSettings',
759
+ "Configure Terminal Settings"
760
+ )),
761
+ run: () => {
762
+ this._preferencesService.openSettings({ jsonEditor: false, query: `@id:${"terminal.integrated.commandsToSkipShell" },${"terminal.integrated.sendKeybindingsToShell" },${"terminal.integrated.allowChords" }` });
763
+ }
764
+ }
765
+ ]);
766
+ this._storageService.store(SHOW_TERMINAL_CONFIG_PROMPT_KEY, false, -1 , 0 );
767
+ }
768
+ event.preventDefault();
769
+ return false;
770
+ }
771
+ if (this._configHelper.config.allowMnemonics && !isMacintosh && event.altKey) {
772
+ return false;
773
+ }
774
+ if (TabFocus.getTabFocusMode() && event.key === 'Tab') {
775
+ return false;
776
+ }
777
+ if (event.key === 'Tab' && event.shiftKey) {
778
+ event.preventDefault();
779
+ return true;
780
+ }
781
+ if (isWindows && event.altKey && event.key === 'F4' && !event.ctrlKey) {
782
+ return false;
783
+ }
784
+ if (!BrowserFeatures.clipboard.readText && event.key === 'v' && event.ctrlKey) {
785
+ return false;
786
+ }
787
+ return true;
788
+ });
789
+ this._register(addDisposableListener(xterm.raw.element, 'mousedown', () => {
790
+ }));
791
+ this._register(addDisposableListener(xterm.raw.element, 'touchstart', () => {
792
+ xterm.raw.focus();
793
+ }));
794
+ this._register(addDisposableListener(xterm.raw.element, 'keyup', () => {
795
+ setTimeout(() => this._refreshSelectionContextKey(), 0);
796
+ }));
797
+ this._register(addDisposableListener(xterm.raw.textarea, 'focus', () => this._setFocus(true)));
798
+ this._register(addDisposableListener(xterm.raw.textarea, 'blur', () => this._setFocus(false)));
799
+ this._register(addDisposableListener(xterm.raw.textarea, 'focusout', () => this._setFocus(false)));
800
+ this._initDragAndDrop(this._container);
801
+ this._widgetManager.attachToElement(screenElement);
802
+ if (this._lastLayoutDimensions) {
803
+ this.layout(this._lastLayoutDimensions);
804
+ }
805
+ this.updateConfig();
806
+ if (xterm.raw.options.disableStdin) {
807
+ this._attachPressAnyKeyToCloseListener(xterm.raw);
808
+ }
809
+ }
810
+ _setFocus(focused) {
811
+ if (focused) {
812
+ this._terminalFocusContextKey.set(true);
813
+ this._setShellIntegrationContextKey();
814
+ this._onDidFocus.fire(this);
815
+ }
816
+ else {
817
+ this.resetFocusContextKey();
818
+ this._onDidBlur.fire(this);
819
+ this._refreshSelectionContextKey();
820
+ }
821
+ }
822
+ _setShellIntegrationContextKey() {
823
+ if (this.xterm) {
824
+ this._terminalShellIntegrationEnabledContextKey.set(this.xterm.shellIntegration.status === 2 );
825
+ }
826
+ }
827
+ resetFocusContextKey() {
828
+ this._terminalFocusContextKey.reset();
829
+ this._terminalShellIntegrationEnabledContextKey.reset();
830
+ }
831
+ _initDragAndDrop(container) {
832
+ const dndController = this._register(this._scopedInstantiationService.createInstance(TerminalInstanceDragAndDropController, container));
833
+ dndController.onDropTerminal(e => this._onRequestAddInstanceToGroup.fire(e));
834
+ dndController.onDropFile(async (path) => {
835
+ this.focus();
836
+ await this.sendPath(path, false);
837
+ });
838
+ this._dndObserver.value = new DragAndDropObserver(container, dndController);
839
+ }
840
+ hasSelection() {
841
+ return this.xterm ? this.xterm.raw.hasSelection() : false;
842
+ }
843
+ async copySelection(asHtml, command) {
844
+ const xterm = await this._xtermReadyPromise;
845
+ await xterm.copySelection(asHtml, command);
846
+ }
847
+ get selection() {
848
+ return this.xterm && this.hasSelection() ? this.xterm.raw.getSelection() : undefined;
849
+ }
850
+ clearSelection() {
851
+ this.xterm?.raw.clearSelection();
852
+ }
853
+ _refreshAltBufferContextKey() {
854
+ this._terminalAltBufferActiveContextKey.set(!!(this.xterm && this.xterm.raw.buffer.active === this.xterm.raw.buffer.alternate));
855
+ }
856
+ dispose(reason) {
857
+ if (this.isDisposed) {
858
+ return;
859
+ }
860
+ this._logService.trace(`terminalInstance#dispose (instanceId: ${this.instanceId})`);
861
+ dispose(this._widgetManager);
862
+ if (this.xterm?.raw.element) {
863
+ this._hadFocusOnExit = this.hasFocus;
864
+ }
865
+ if (this._wrapperElement.xterm) {
866
+ this._wrapperElement.xterm = undefined;
867
+ }
868
+ if (this._horizontalScrollbar) {
869
+ this._horizontalScrollbar.dispose();
870
+ this._horizontalScrollbar = undefined;
871
+ }
872
+ try {
873
+ this.xterm?.dispose();
874
+ }
875
+ catch (err) {
876
+ this._logService.error('Exception occurred during xterm disposal', err);
877
+ }
878
+ if (isFirefox) {
879
+ this.resetFocusContextKey();
880
+ this._terminalHasTextContextKey.reset();
881
+ this._onDidBlur.fire(this);
882
+ }
883
+ if (this._pressAnyKeyToCloseListener) {
884
+ this._pressAnyKeyToCloseListener.dispose();
885
+ this._pressAnyKeyToCloseListener = undefined;
886
+ }
887
+ if (this._exitReason === undefined) {
888
+ this._exitReason = reason ?? TerminalExitReason.Unknown;
889
+ }
890
+ this._processManager.dispose();
891
+ this._onProcessExit(undefined);
892
+ this._onDisposed.fire(this);
893
+ super.dispose();
894
+ }
895
+ async detachProcessAndDispose(reason) {
896
+ await this._processManager.detachFromProcess(reason === TerminalExitReason.User);
897
+ this.dispose(reason);
898
+ }
899
+ focus(force) {
900
+ this._refreshAltBufferContextKey();
901
+ if (!this.xterm) {
902
+ return;
903
+ }
904
+ if (force || !getActiveWindow().getSelection()?.toString()) {
905
+ this.xterm.raw.focus();
906
+ this._onDidRequestFocus.fire();
907
+ }
908
+ }
909
+ async focusWhenReady(force) {
910
+ await this._xtermReadyPromise;
911
+ await this._attachBarrier.wait();
912
+ this.focus(force);
913
+ }
914
+ async paste() {
915
+ await this._paste(await this._clipboardService.readText());
916
+ }
917
+ async pasteSelection() {
918
+ await this._paste(await this._clipboardService.readText('selection'));
919
+ }
920
+ async _paste(value) {
921
+ if (!this.xterm) {
922
+ return;
923
+ }
924
+ let currentText = value;
925
+ const shouldPasteText = await this._scopedInstantiationService.invokeFunction(shouldPasteTerminalText, currentText, this.xterm?.raw.modes.bracketedPasteMode);
926
+ if (!shouldPasteText) {
927
+ return;
928
+ }
929
+ if (typeof shouldPasteText === 'object') {
930
+ currentText = shouldPasteText.modifiedText;
931
+ }
932
+ this.focus();
933
+ this.xterm.raw.paste(currentText);
934
+ }
935
+ async sendText(text, shouldExecute, bracketedPasteMode) {
936
+ if (bracketedPasteMode && this.xterm?.raw.modes.bracketedPasteMode) {
937
+ text = `\x1b[200~${text}\x1b[201~`;
938
+ }
939
+ text = text.replace(/\r?\n/g, '\r');
940
+ if (shouldExecute && !text.endsWith('\r')) {
941
+ text += '\r';
942
+ }
943
+ await this._processManager.write(text);
944
+ this._onDidInputData.fire(this);
945
+ this._onDidSendText.fire(text);
946
+ this.xterm?.scrollToBottom();
947
+ if (shouldExecute) {
948
+ this._onDidExecuteText.fire();
949
+ }
950
+ }
951
+ async sendPath(originalPath, shouldExecute) {
952
+ return this.sendText(await this.preparePathForShell(originalPath), shouldExecute);
953
+ }
954
+ async preparePathForShell(originalPath) {
955
+ await this.processReady;
956
+ return preparePathForShell(originalPath, this.shellLaunchConfig.executable, this.title, this.shellType, this._processManager.backend, this._processManager.os);
957
+ }
958
+ setVisible(visible) {
959
+ this._isVisible = visible;
960
+ this._wrapperElement.classList.toggle('active', visible);
961
+ if (visible && this.xterm) {
962
+ this._open();
963
+ this._resize();
964
+ setTimeout(() => this.xterm.forceRefresh(), 0);
965
+ }
966
+ }
967
+ scrollDownLine() {
968
+ this.xterm?.scrollDownLine();
969
+ }
970
+ scrollDownPage() {
971
+ this.xterm?.scrollDownPage();
972
+ }
973
+ scrollToBottom() {
974
+ this.xterm?.scrollToBottom();
975
+ }
976
+ scrollUpLine() {
977
+ this.xterm?.scrollUpLine();
978
+ }
979
+ scrollUpPage() {
980
+ this.xterm?.scrollUpPage();
981
+ }
982
+ scrollToTop() {
983
+ this.xterm?.scrollToTop();
984
+ }
985
+ clearBuffer() {
986
+ this._processManager.clearBuffer();
987
+ this.xterm?.clearBuffer();
988
+ }
989
+ _refreshSelectionContextKey() {
990
+ const isActive = !!this._viewsService.getActiveViewWithId(TERMINAL_VIEW_ID);
991
+ let isEditorActive = false;
992
+ const editor = this._editorService.activeEditor;
993
+ if (editor) {
994
+ isEditorActive = editor instanceof TerminalEditorInput;
995
+ }
996
+ this._terminalHasTextContextKey.set((isActive || isEditorActive) && this.hasSelection());
997
+ }
998
+ _createProcessManager() {
999
+ let deserializedCollections;
1000
+ if (this.shellLaunchConfig.attachPersistentProcess?.environmentVariableCollections) {
1001
+ deserializedCollections = deserializeEnvironmentVariableCollections(this.shellLaunchConfig.attachPersistentProcess.environmentVariableCollections);
1002
+ }
1003
+ const processManager = this._scopedInstantiationService.createInstance(TerminalProcessManager, this._instanceId, this._configHelper, this.shellLaunchConfig?.cwd, deserializedCollections, this.shellLaunchConfig.attachPersistentProcess?.shellIntegrationNonce);
1004
+ this.capabilities.add(processManager.capabilities);
1005
+ processManager.onProcessReady(async (e) => {
1006
+ this._onProcessIdReady.fire(this);
1007
+ this._initialCwd = await this.getInitialCwd();
1008
+ if (!this._labelComputer) {
1009
+ this._labelComputer = this._register(this._scopedInstantiationService.createInstance(TerminalLabelComputer, this._configHelper));
1010
+ this._register(this._labelComputer.onDidChangeLabel(e => {
1011
+ const wasChanged = this._title !== e.title || this._description !== e.description;
1012
+ if (wasChanged) {
1013
+ this._title = e.title;
1014
+ this._description = e.description;
1015
+ this._onTitleChanged.fire(this);
1016
+ }
1017
+ }));
1018
+ }
1019
+ if (this._shellLaunchConfig.name) {
1020
+ this._setTitle(this._shellLaunchConfig.name, TitleEventSource.Api);
1021
+ }
1022
+ else {
1023
+ setTimeout(() => {
1024
+ this._xtermReadyPromise.then(xterm => {
1025
+ this._messageTitleDisposable.value = xterm.raw.onTitleChange(e => this._onTitleChange(e));
1026
+ });
1027
+ });
1028
+ this._setTitle(this._shellLaunchConfig.executable, TitleEventSource.Process);
1029
+ }
1030
+ });
1031
+ processManager.onProcessExit(exitCode => this._onProcessExit(exitCode));
1032
+ processManager.onDidChangeProperty(({ type, value }) => {
1033
+ switch (type) {
1034
+ case "cwd" :
1035
+ this._cwd = value;
1036
+ this._labelComputer?.refreshLabel(this);
1037
+ break;
1038
+ case "initialCwd" :
1039
+ this._initialCwd = value;
1040
+ this._cwd = this._initialCwd;
1041
+ this._setTitle(this.title, TitleEventSource.Config);
1042
+ this._icon = this._shellLaunchConfig.attachPersistentProcess?.icon || this._shellLaunchConfig.icon;
1043
+ this._onIconChanged.fire({ instance: this, userInitiated: false });
1044
+ break;
1045
+ case "title" :
1046
+ this._setTitle(value ?? '', TitleEventSource.Process);
1047
+ break;
1048
+ case "overrideDimensions" :
1049
+ this.setOverrideDimensions(value, true);
1050
+ break;
1051
+ case "resolvedShellLaunchConfig" :
1052
+ this._setResolvedShellLaunchConfig(value);
1053
+ break;
1054
+ case "shellType" :
1055
+ this.setShellType(value);
1056
+ break;
1057
+ case "hasChildProcesses" :
1058
+ this._onDidChangeHasChildProcesses.fire(value);
1059
+ break;
1060
+ case "usedShellIntegrationInjection" :
1061
+ this._usedShellIntegrationInjection = true;
1062
+ break;
1063
+ }
1064
+ });
1065
+ processManager.onProcessData(ev => {
1066
+ this._initialDataEvents?.push(ev.data);
1067
+ this._onData.fire(ev.data);
1068
+ });
1069
+ processManager.onProcessReplayComplete(() => this._onProcessReplayComplete.fire());
1070
+ processManager.onEnvironmentVariableInfoChanged(e => this._onEnvironmentVariableInfoChanged(e));
1071
+ processManager.onPtyDisconnect(() => {
1072
+ if (this.xterm) {
1073
+ this.xterm.raw.options.disableStdin = true;
1074
+ }
1075
+ this.statusList.add({
1076
+ id: "disconnected" ,
1077
+ severity: Severity.Error,
1078
+ icon: Codicon.debugDisconnect,
1079
+ tooltip: ( localizeWithPath(
1080
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
1081
+ 'disconnectStatus',
1082
+ "Lost connection to process"
1083
+ ))
1084
+ });
1085
+ });
1086
+ processManager.onPtyReconnect(() => {
1087
+ if (this.xterm) {
1088
+ this.xterm.raw.options.disableStdin = false;
1089
+ }
1090
+ this.statusList.remove("disconnected" );
1091
+ });
1092
+ return processManager;
1093
+ }
1094
+ async _createProcess() {
1095
+ if (this.isDisposed) {
1096
+ return;
1097
+ }
1098
+ const activeWorkspaceRootUri = this._historyService.getLastActiveWorkspaceRoot(Schemas.file);
1099
+ if (activeWorkspaceRootUri) {
1100
+ const trusted = await this._trust();
1101
+ if (!trusted) {
1102
+ this._onProcessExit({ message: ( localizeWithPath(
1103
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
1104
+ 'workspaceNotTrustedCreateTerminal',
1105
+ "Cannot launch a terminal process in an untrusted workspace"
1106
+ )) });
1107
+ }
1108
+ }
1109
+ else if (this._cwd && this._userHome && this._cwd !== this._userHome) {
1110
+ this._onProcessExit({
1111
+ message: ( localizeWithPath(
1112
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
1113
+ 'workspaceNotTrustedCreateTerminalCwd',
1114
+ "Cannot launch a terminal process in an untrusted workspace with cwd {0} and userHome {1}",
1115
+ this._cwd,
1116
+ this._userHome
1117
+ ))
1118
+ });
1119
+ }
1120
+ if (this._container && this._cols === 0 && this._rows === 0) {
1121
+ this._initDimensions();
1122
+ this.xterm?.raw.resize(this._cols || 80 , this._rows || 30 );
1123
+ }
1124
+ const originalIcon = this.shellLaunchConfig.icon;
1125
+ await this._processManager.createProcess(this._shellLaunchConfig, this._cols || 80 , this._rows || 30 ).then(result => {
1126
+ if (result) {
1127
+ if ('message' in result) {
1128
+ this._onProcessExit(result);
1129
+ }
1130
+ else if ('injectedArgs' in result) {
1131
+ this._injectedArgs = result.injectedArgs;
1132
+ }
1133
+ }
1134
+ });
1135
+ if (this.xterm?.shellIntegration) {
1136
+ this.capabilities.add(this.xterm.shellIntegration.capabilities);
1137
+ }
1138
+ if (originalIcon !== this.shellLaunchConfig.icon || this.shellLaunchConfig.color) {
1139
+ this._icon = this._shellLaunchConfig.attachPersistentProcess?.icon || this._shellLaunchConfig.icon;
1140
+ this._onIconChanged.fire({ instance: this, userInitiated: false });
1141
+ }
1142
+ }
1143
+ registerMarker(offset) {
1144
+ return this.xterm?.raw.registerMarker(offset);
1145
+ }
1146
+ addBufferMarker(properties) {
1147
+ this.capabilities.get(4 )?.addMark(properties);
1148
+ }
1149
+ scrollToMark(startMarkId, endMarkId, highlight) {
1150
+ this.xterm?.markTracker.scrollToClosestMarker(startMarkId, endMarkId, highlight);
1151
+ }
1152
+ async freePortKillProcess(port, command) {
1153
+ await this._processManager?.freePortKillProcess(port);
1154
+ this.runCommand(command, false);
1155
+ }
1156
+ _onProcessData(ev) {
1157
+ if (ev.trackCommit) {
1158
+ ev.writePromise = ( new Promise(r => this._writeProcessData(ev, r)));
1159
+ }
1160
+ else {
1161
+ this._writeProcessData(ev);
1162
+ }
1163
+ }
1164
+ _writeProcessData(ev, cb) {
1165
+ const messageId = ++this._latestXtermWriteData;
1166
+ this.xterm?.raw.write(ev.data, () => {
1167
+ this._latestXtermParseData = messageId;
1168
+ this._processManager.acknowledgeDataEvent(ev.data.length);
1169
+ cb?.();
1170
+ });
1171
+ }
1172
+ async _onProcessExit(exitCodeOrError) {
1173
+ if (this._isExiting) {
1174
+ return;
1175
+ }
1176
+ const parsedExitResult = parseExitResult(exitCodeOrError, this.shellLaunchConfig, this._processManager.processState, this._initialCwd);
1177
+ if (this._usedShellIntegrationInjection && this._processManager.processState === 4 && parsedExitResult?.code !== 0) {
1178
+ this._relaunchWithShellIntegrationDisabled(parsedExitResult?.message);
1179
+ this._onExit.fire(exitCodeOrError);
1180
+ return;
1181
+ }
1182
+ this._isExiting = true;
1183
+ await this._flushXtermData();
1184
+ this._exitCode = parsedExitResult?.code;
1185
+ const exitMessage = parsedExitResult?.message;
1186
+ this._logService.debug('Terminal process exit', 'instanceId', this.instanceId, 'code', this._exitCode, 'processState', this._processManager.processState);
1187
+ const waitOnExit = this.waitOnExit;
1188
+ if (waitOnExit && this._processManager.processState !== 5 ) {
1189
+ this._xtermReadyPromise.then(xterm => {
1190
+ if (exitMessage) {
1191
+ xterm.raw.write(formatMessageForTerminal(exitMessage));
1192
+ }
1193
+ switch (typeof waitOnExit) {
1194
+ case 'string':
1195
+ xterm.raw.write(formatMessageForTerminal(waitOnExit, { excludeLeadingNewLine: true }));
1196
+ break;
1197
+ case 'function':
1198
+ if (this.exitCode !== undefined) {
1199
+ xterm.raw.write(formatMessageForTerminal(waitOnExit(this.exitCode), { excludeLeadingNewLine: true }));
1200
+ }
1201
+ break;
1202
+ }
1203
+ xterm.raw.options.disableStdin = true;
1204
+ if (xterm.raw.textarea) {
1205
+ this._attachPressAnyKeyToCloseListener(xterm.raw);
1206
+ }
1207
+ });
1208
+ }
1209
+ else {
1210
+ this.dispose(TerminalExitReason.Process);
1211
+ if (exitMessage) {
1212
+ const failedDuringLaunch = this._processManager.processState === 4 ;
1213
+ if (failedDuringLaunch || this._configHelper.config.showExitAlert) {
1214
+ this._notificationService.notify({
1215
+ message: exitMessage,
1216
+ severity: Severity.Error,
1217
+ actions: { primary: [this._scopedInstantiationService.createInstance(TerminalLaunchHelpAction)] }
1218
+ });
1219
+ }
1220
+ else {
1221
+ this._logService.warn(exitMessage);
1222
+ }
1223
+ }
1224
+ }
1225
+ this._onExit.fire(exitCodeOrError);
1226
+ if (this.isDisposed) {
1227
+ this._onExit.dispose();
1228
+ }
1229
+ }
1230
+ _relaunchWithShellIntegrationDisabled(exitMessage) {
1231
+ this._shellLaunchConfig.ignoreShellIntegration = true;
1232
+ this.relaunch();
1233
+ this.statusList.add({
1234
+ id: "shell-integration-attention-needed" ,
1235
+ severity: Severity.Warning,
1236
+ icon: Codicon.warning,
1237
+ tooltip: (`${exitMessage} ` ?? '') + ( localizeWithPath(
1238
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
1239
+ 'launchFailed.exitCodeOnlyShellIntegration',
1240
+ 'Disabling shell integration in user settings might help.'
1241
+ )),
1242
+ hoverActions: [{
1243
+ commandId: "workbench.action.terminal.learnMore" ,
1244
+ label: ( localizeWithPath(
1245
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
1246
+ 'shellIntegration.learnMore',
1247
+ "Learn more about shell integration"
1248
+ )),
1249
+ run: () => {
1250
+ this._openerService.open('https://code.visualstudio.com/docs/editor/integrated-terminal#_shell-integration');
1251
+ }
1252
+ }, {
1253
+ commandId: 'workbench.action.openSettings',
1254
+ label: ( localizeWithPath(
1255
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
1256
+ 'shellIntegration.openSettings',
1257
+ "Open user settings"
1258
+ )),
1259
+ run: () => {
1260
+ this._commandService.executeCommand('workbench.action.openSettings', 'terminal.integrated.shellIntegration.enabled');
1261
+ }
1262
+ }]
1263
+ });
1264
+ this._telemetryService.publicLog2('terminal/shellIntegrationFailureProcessExit');
1265
+ }
1266
+ _flushXtermData() {
1267
+ if (this._latestXtermWriteData === this._latestXtermParseData) {
1268
+ return Promise.resolve();
1269
+ }
1270
+ let retries = 0;
1271
+ return ( new Promise(r => {
1272
+ const interval = disposableWindowInterval(getActiveWindow().window, () => {
1273
+ if (this._latestXtermWriteData === this._latestXtermParseData || ++retries === 5) {
1274
+ interval.dispose();
1275
+ r();
1276
+ }
1277
+ }, 20);
1278
+ }));
1279
+ }
1280
+ _attachPressAnyKeyToCloseListener(xterm) {
1281
+ if (xterm.textarea && !this._pressAnyKeyToCloseListener) {
1282
+ this._pressAnyKeyToCloseListener = addDisposableListener(xterm.textarea, 'keypress', (event) => {
1283
+ if (this._pressAnyKeyToCloseListener) {
1284
+ this._pressAnyKeyToCloseListener.dispose();
1285
+ this._pressAnyKeyToCloseListener = undefined;
1286
+ this.dispose(TerminalExitReason.Process);
1287
+ event.preventDefault();
1288
+ }
1289
+ });
1290
+ }
1291
+ }
1292
+ _writeInitialText(xterm, callback) {
1293
+ if (!this._shellLaunchConfig.initialText) {
1294
+ callback?.();
1295
+ return;
1296
+ }
1297
+ const text = typeof this._shellLaunchConfig.initialText === 'string'
1298
+ ? this._shellLaunchConfig.initialText
1299
+ : this._shellLaunchConfig.initialText?.text;
1300
+ if (typeof this._shellLaunchConfig.initialText === 'string') {
1301
+ xterm.raw.writeln(text, callback);
1302
+ }
1303
+ else {
1304
+ if (this._shellLaunchConfig.initialText.trailingNewLine) {
1305
+ xterm.raw.writeln(text, callback);
1306
+ }
1307
+ else {
1308
+ xterm.raw.write(text, callback);
1309
+ }
1310
+ }
1311
+ }
1312
+ async reuseTerminal(shell, reset = false) {
1313
+ this._pressAnyKeyToCloseListener?.dispose();
1314
+ this._pressAnyKeyToCloseListener = undefined;
1315
+ const xterm = this.xterm;
1316
+ if (xterm) {
1317
+ if (!reset) {
1318
+ await ( new Promise(r => xterm.raw.write('\n\x1b[G', r)));
1319
+ }
1320
+ if (shell.initialText) {
1321
+ this._shellLaunchConfig.initialText = shell.initialText;
1322
+ await ( new Promise(r => this._writeInitialText(xterm, r)));
1323
+ }
1324
+ if (this._isExiting && this._shellLaunchConfig.waitOnExit) {
1325
+ xterm.raw.options.disableStdin = false;
1326
+ this._isExiting = false;
1327
+ }
1328
+ if (reset) {
1329
+ xterm.clearDecorations();
1330
+ }
1331
+ }
1332
+ this.statusList.remove("relaunch-needed" );
1333
+ if (!reset) {
1334
+ shell.initialText = ' ';
1335
+ }
1336
+ this._shellLaunchConfig = shell;
1337
+ await this._processManager.relaunch(this._shellLaunchConfig, this._cols || 80 , this._rows || 30 , reset).then(result => {
1338
+ if (result) {
1339
+ if ('message' in result) {
1340
+ this._onProcessExit(result);
1341
+ }
1342
+ else if ('injectedArgs' in result) {
1343
+ this._injectedArgs = result.injectedArgs;
1344
+ }
1345
+ }
1346
+ });
1347
+ }
1348
+ relaunch() {
1349
+ this.reuseTerminal(this._shellLaunchConfig, true);
1350
+ }
1351
+ _onTitleChange(title) {
1352
+ if (this.isTitleSetByProcess) {
1353
+ this._setTitle(title, TitleEventSource.Sequence);
1354
+ }
1355
+ }
1356
+ async _trust() {
1357
+ return (await this._workspaceTrustRequestService.requestWorkspaceTrust({
1358
+ message: ( localizeWithPath(
1359
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
1360
+ 'terminal.requestTrust',
1361
+ "Creating a terminal process requires executing code"
1362
+ ))
1363
+ })) === true;
1364
+ }
1365
+ async _onSelectionChange() {
1366
+ this._onDidChangeSelection.fire(this);
1367
+ if (this._configurationService.getValue("terminal.integrated.copyOnSelection" )) {
1368
+ if (this._overrideCopySelection === false) {
1369
+ return;
1370
+ }
1371
+ if (this.hasSelection()) {
1372
+ await this.copySelection();
1373
+ }
1374
+ }
1375
+ }
1376
+ overrideCopyOnSelection(value) {
1377
+ if (this._overrideCopySelection !== undefined) {
1378
+ throw new Error('Cannot set a copy on selection override multiple times');
1379
+ }
1380
+ this._overrideCopySelection = value;
1381
+ return toDisposable(() => this._overrideCopySelection = undefined);
1382
+ }
1383
+ async _updateProcessCwd() {
1384
+ if (this.isDisposed || this.shellLaunchConfig.customPtyImplementation) {
1385
+ return;
1386
+ }
1387
+ try {
1388
+ const cwd = await this._refreshProperty("cwd" );
1389
+ if (typeof cwd !== 'string') {
1390
+ throw new Error(`cwd is not a string ${cwd}`);
1391
+ }
1392
+ }
1393
+ catch (e) {
1394
+ if (e instanceof Error && e.message === 'Cannot refresh property when process is not set') {
1395
+ return;
1396
+ }
1397
+ throw e;
1398
+ }
1399
+ }
1400
+ updateConfig() {
1401
+ this._setCommandsToSkipShell(this._configHelper.config.commandsToSkipShell);
1402
+ this._refreshEnvironmentVariableInfoWidgetState(this._processManager.environmentVariableInfo);
1403
+ }
1404
+ async _updateUnicodeVersion() {
1405
+ this._processManager.setUnicodeVersion(this._configHelper.config.unicodeVersion);
1406
+ }
1407
+ updateAccessibilitySupport() {
1408
+ this.xterm.raw.options.screenReaderMode = this._accessibilityService.isScreenReaderOptimized();
1409
+ }
1410
+ _setCommandsToSkipShell(commands) {
1411
+ const excludeCommands = ( commands.filter(command => command[0] === '-').map(command => command.slice(1)));
1412
+ this._skipTerminalCommands = DEFAULT_COMMANDS_TO_SKIP_SHELL.filter(defaultCommand => {
1413
+ return !excludeCommands.includes(defaultCommand);
1414
+ }).concat(commands);
1415
+ }
1416
+ layout(dimension) {
1417
+ this._lastLayoutDimensions = dimension;
1418
+ if (this.disableLayout) {
1419
+ return;
1420
+ }
1421
+ if (dimension.width <= 0 || dimension.height <= 0) {
1422
+ return;
1423
+ }
1424
+ const terminalWidth = this._evaluateColsAndRows(dimension.width, dimension.height);
1425
+ if (!terminalWidth) {
1426
+ return;
1427
+ }
1428
+ this._resize();
1429
+ this._containerReadyBarrier.open();
1430
+ for (const contribution of ( this._contributions.values())) {
1431
+ if (!this.xterm) {
1432
+ this._xtermReadyPromise.then(xterm => contribution.layout?.(xterm, dimension));
1433
+ }
1434
+ else {
1435
+ contribution.layout?.(this.xterm, dimension);
1436
+ }
1437
+ }
1438
+ }
1439
+ async _resize() {
1440
+ this._resizeNow(false);
1441
+ }
1442
+ async _resizeNow(immediate) {
1443
+ let cols = this.cols;
1444
+ let rows = this.rows;
1445
+ if (this.xterm) {
1446
+ if (this._isVisible && this._layoutSettingsChanged) {
1447
+ const font = this.xterm.getFont();
1448
+ const config = this._configHelper.config;
1449
+ this.xterm.raw.options.letterSpacing = font.letterSpacing;
1450
+ this.xterm.raw.options.lineHeight = font.lineHeight;
1451
+ this.xterm.raw.options.fontSize = font.fontSize;
1452
+ this.xterm.raw.options.fontFamily = font.fontFamily;
1453
+ this.xterm.raw.options.fontWeight = config.fontWeight;
1454
+ this.xterm.raw.options.fontWeightBold = config.fontWeightBold;
1455
+ this._initDimensions();
1456
+ cols = this.cols;
1457
+ rows = this.rows;
1458
+ this._layoutSettingsChanged = false;
1459
+ }
1460
+ if (isNaN(cols) || isNaN(rows)) {
1461
+ return;
1462
+ }
1463
+ if (cols !== this.xterm.raw.cols || rows !== this.xterm.raw.rows) {
1464
+ if (this._fixedRows || this._fixedCols) {
1465
+ await this._updateProperty("fixedDimensions" , { cols: this._fixedCols, rows: this._fixedRows });
1466
+ }
1467
+ this._onDimensionsChanged.fire();
1468
+ }
1469
+ this.xterm.raw.resize(cols, rows);
1470
+ TerminalInstance_1._lastKnownGridDimensions = { cols, rows };
1471
+ if (this._isVisible) {
1472
+ this.xterm.forceUnpause();
1473
+ }
1474
+ }
1475
+ if (immediate) {
1476
+ this._processManager.setDimensions(cols, rows, true);
1477
+ }
1478
+ else {
1479
+ await this._processManager.setDimensions(cols, rows);
1480
+ }
1481
+ }
1482
+ setShellType(shellType) {
1483
+ this._shellType = shellType;
1484
+ if (shellType) {
1485
+ this._terminalShellTypeContextKey.set(shellType?.toString());
1486
+ }
1487
+ }
1488
+ _setAriaLabel(xterm, terminalId, title) {
1489
+ const labelParts = [];
1490
+ if (xterm && xterm.textarea) {
1491
+ if (title && title.length > 0) {
1492
+ labelParts.push(( localizeWithPath(
1493
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
1494
+ 'terminalTextBoxAriaLabelNumberAndTitle',
1495
+ "Terminal {0}, {1}",
1496
+ terminalId,
1497
+ title
1498
+ )));
1499
+ }
1500
+ else {
1501
+ labelParts.push(( localizeWithPath(
1502
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
1503
+ 'terminalTextBoxAriaLabel',
1504
+ "Terminal {0}",
1505
+ terminalId
1506
+ )));
1507
+ }
1508
+ const screenReaderOptimized = this._accessibilityService.isScreenReaderOptimized();
1509
+ if (!screenReaderOptimized) {
1510
+ labelParts.push(( localizeWithPath(
1511
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
1512
+ 'terminalScreenReaderMode',
1513
+ "Run the command: Toggle Screen Reader Accessibility Mode for an optimized screen reader experience"
1514
+ )));
1515
+ }
1516
+ const accessibilityHelpKeybinding = this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp" )?.getLabel();
1517
+ if (this._configurationService.getValue("accessibility.verbosity.terminal" ) && accessibilityHelpKeybinding) {
1518
+ labelParts.push(( localizeWithPath(
1519
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
1520
+ 'terminalHelpAriaLabel',
1521
+ "Use {0} for terminal accessibility help",
1522
+ accessibilityHelpKeybinding
1523
+ )));
1524
+ }
1525
+ xterm.textarea.setAttribute('aria-label', labelParts.join('\n'));
1526
+ }
1527
+ }
1528
+ _updateTitleProperties(title, eventSource) {
1529
+ if (!title) {
1530
+ return this._processName;
1531
+ }
1532
+ switch (eventSource) {
1533
+ case TitleEventSource.Process:
1534
+ if (this._processManager.os === 1 ) {
1535
+ title = win32.parse(title).name;
1536
+ }
1537
+ else {
1538
+ const firstSpaceIndex = title.indexOf(' ');
1539
+ if (title.startsWith('/')) {
1540
+ title = basename(title);
1541
+ }
1542
+ else if (firstSpaceIndex > -1) {
1543
+ title = title.substring(0, firstSpaceIndex);
1544
+ }
1545
+ }
1546
+ this._processName = title;
1547
+ break;
1548
+ case TitleEventSource.Api:
1549
+ this._staticTitle = title;
1550
+ this._messageTitleDisposable.value = undefined;
1551
+ break;
1552
+ case TitleEventSource.Sequence:
1553
+ this._sequence = title;
1554
+ if (this._processManager.os === 1 &&
1555
+ title.match(/^[a-zA-Z]:\\.+\.[a-zA-Z]{1,3}/)) {
1556
+ this._sequence = win32.parse(title).name;
1557
+ }
1558
+ break;
1559
+ }
1560
+ this._titleSource = eventSource;
1561
+ return title;
1562
+ }
1563
+ setOverrideDimensions(dimensions, immediate = false) {
1564
+ if (this._dimensionsOverride && this._dimensionsOverride.forceExactSize && !dimensions && this._rows === 0 && this._cols === 0) {
1565
+ this._cols = this._dimensionsOverride.cols;
1566
+ this._rows = this._dimensionsOverride.rows;
1567
+ }
1568
+ this._dimensionsOverride = dimensions;
1569
+ if (immediate) {
1570
+ this._resizeNow(true);
1571
+ }
1572
+ else {
1573
+ this._resize();
1574
+ }
1575
+ }
1576
+ async setFixedDimensions() {
1577
+ const cols = await this._quickInputService.input({
1578
+ title: ( localizeWithPath(
1579
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
1580
+ 'setTerminalDimensionsColumn',
1581
+ "Set Fixed Dimensions: Column"
1582
+ )),
1583
+ placeHolder: 'Enter a number of columns or leave empty for automatic width',
1584
+ validateInput: async (text) => text.length > 0 && !text.match(/^\d+$/) ? { content: 'Enter a number or leave empty size automatically', severity: Severity.Error } : undefined
1585
+ });
1586
+ if (cols === undefined) {
1587
+ return;
1588
+ }
1589
+ this._fixedCols = this._parseFixedDimension(cols);
1590
+ this._labelComputer?.refreshLabel(this);
1591
+ this._terminalHasFixedWidth.set(!!this._fixedCols);
1592
+ const rows = await this._quickInputService.input({
1593
+ title: ( localizeWithPath(
1594
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
1595
+ 'setTerminalDimensionsRow',
1596
+ "Set Fixed Dimensions: Row"
1597
+ )),
1598
+ placeHolder: 'Enter a number of rows or leave empty for automatic height',
1599
+ validateInput: async (text) => text.length > 0 && !text.match(/^\d+$/) ? { content: 'Enter a number or leave empty size automatically', severity: Severity.Error } : undefined
1600
+ });
1601
+ if (rows === undefined) {
1602
+ return;
1603
+ }
1604
+ this._fixedRows = this._parseFixedDimension(rows);
1605
+ this._labelComputer?.refreshLabel(this);
1606
+ await this._refreshScrollbar();
1607
+ this._resize();
1608
+ this.focus();
1609
+ }
1610
+ _parseFixedDimension(value) {
1611
+ if (value === '') {
1612
+ return undefined;
1613
+ }
1614
+ const parsed = parseInt(value);
1615
+ if (parsed <= 0) {
1616
+ throw new Error(`Could not parse dimension "${value}"`);
1617
+ }
1618
+ return parsed;
1619
+ }
1620
+ async toggleSizeToContentWidth() {
1621
+ if (!this.xterm?.raw.buffer.active) {
1622
+ return;
1623
+ }
1624
+ if (this._hasScrollBar) {
1625
+ this._terminalHasFixedWidth.set(false);
1626
+ this._fixedCols = undefined;
1627
+ this._fixedRows = undefined;
1628
+ this._hasScrollBar = false;
1629
+ this._initDimensions();
1630
+ await this._resize();
1631
+ }
1632
+ else {
1633
+ const font = this.xterm ? this.xterm.getFont() : this._configHelper.getFont(getWindow(this.domElement));
1634
+ const maxColsForTexture = Math.floor(4096 / (font.charWidth ?? 20));
1635
+ const proposedCols = Math.max(this.maxCols, Math.min(this.xterm.getLongestViewportWrappedLineLength(), maxColsForTexture));
1636
+ if (proposedCols > this.xterm.raw.cols) {
1637
+ this._fixedCols = proposedCols;
1638
+ }
1639
+ }
1640
+ await this._refreshScrollbar();
1641
+ this._labelComputer?.refreshLabel(this);
1642
+ this.focus();
1643
+ }
1644
+ _refreshScrollbar() {
1645
+ if (this._fixedCols || this._fixedRows) {
1646
+ return this._addScrollbar();
1647
+ }
1648
+ return this._removeScrollbar();
1649
+ }
1650
+ async _addScrollbar() {
1651
+ const charWidth = (this.xterm ? this.xterm.getFont() : this._configHelper.getFont(getWindow(this.domElement))).charWidth;
1652
+ if (!this.xterm?.raw.element || !this._container || !charWidth || !this._fixedCols) {
1653
+ return;
1654
+ }
1655
+ this._wrapperElement.classList.add('fixed-dims');
1656
+ this._hasScrollBar = true;
1657
+ this._initDimensions();
1658
+ this._fixedRows = this._rows - 1;
1659
+ await this._resize();
1660
+ this._terminalHasFixedWidth.set(true);
1661
+ if (!this._horizontalScrollbar) {
1662
+ this._horizontalScrollbar = this._register(( new DomScrollableElement(this._wrapperElement, {
1663
+ vertical: 2 ,
1664
+ horizontal: 1 ,
1665
+ useShadows: false,
1666
+ scrollYToX: false,
1667
+ consumeMouseWheelIfScrollbarIsNeeded: false
1668
+ })));
1669
+ this._container.appendChild(this._horizontalScrollbar.getDomNode());
1670
+ }
1671
+ this._horizontalScrollbar.setScrollDimensions({
1672
+ width: this.xterm.raw.element.clientWidth,
1673
+ scrollWidth: this._fixedCols * charWidth + 40
1674
+ });
1675
+ this._horizontalScrollbar.getDomNode().style.paddingBottom = '16px';
1676
+ if (isWindows) {
1677
+ for (let i = this.xterm.raw.buffer.active.viewportY; i < this.xterm.raw.buffer.active.length; i++) {
1678
+ const line = this.xterm.raw.buffer.active.getLine(i);
1679
+ line._line.isWrapped = false;
1680
+ }
1681
+ }
1682
+ }
1683
+ async _removeScrollbar() {
1684
+ if (!this._container || !this._horizontalScrollbar) {
1685
+ return;
1686
+ }
1687
+ this._horizontalScrollbar.getDomNode().remove();
1688
+ this._horizontalScrollbar.dispose();
1689
+ this._horizontalScrollbar = undefined;
1690
+ this._wrapperElement.remove();
1691
+ this._wrapperElement.classList.remove('fixed-dims');
1692
+ this._container.appendChild(this._wrapperElement);
1693
+ }
1694
+ _setResolvedShellLaunchConfig(shellLaunchConfig) {
1695
+ this._shellLaunchConfig.args = shellLaunchConfig.args;
1696
+ this._shellLaunchConfig.cwd = shellLaunchConfig.cwd;
1697
+ this._shellLaunchConfig.executable = shellLaunchConfig.executable;
1698
+ this._shellLaunchConfig.env = shellLaunchConfig.env;
1699
+ }
1700
+ _onEnvironmentVariableInfoChanged(info) {
1701
+ if (info.requiresAction) {
1702
+ this.xterm?.raw.textarea?.setAttribute('aria-label', ( localizeWithPath(
1703
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
1704
+ 'terminalStaleTextBoxAriaLabel',
1705
+ "Terminal {0} environment is stale, run the 'Show Environment Information' command for more information",
1706
+ this._instanceId
1707
+ )));
1708
+ }
1709
+ this._refreshEnvironmentVariableInfoWidgetState(info);
1710
+ }
1711
+ async _refreshEnvironmentVariableInfoWidgetState(info) {
1712
+ if (!info) {
1713
+ this.statusList.remove("relaunch-needed" );
1714
+ this.statusList.remove("env-var-info-changes-active" );
1715
+ return;
1716
+ }
1717
+ if (
1718
+ info.requiresAction &&
1719
+ this._configHelper.config.environmentChangesRelaunch &&
1720
+ !this._processManager.hasWrittenData &&
1721
+ (!this._shellLaunchConfig.isFeatureTerminal || (this.reconnectionProperties && this._configurationService.getValue('task.reconnection') === true)) &&
1722
+ !this._shellLaunchConfig.customPtyImplementation &&
1723
+ !this._shellLaunchConfig.isExtensionOwnedTerminal &&
1724
+ !this._shellLaunchConfig.attachPersistentProcess &&
1725
+ !((this._processManager.remoteAuthority && this._configHelper.config.windowsEnableConpty && (await this._processManager.getBackendOS()) === 1) )) {
1726
+ this.relaunch();
1727
+ return;
1728
+ }
1729
+ const workspaceFolder = getWorkspaceForTerminal(this.shellLaunchConfig.cwd, this._workspaceContextService, this._historyService);
1730
+ this.statusList.add(info.getStatus({ workspaceFolder }));
1731
+ }
1732
+ async getInitialCwd() {
1733
+ if (!this._initialCwd) {
1734
+ this._initialCwd = this._processManager.initialCwd;
1735
+ }
1736
+ return this._initialCwd;
1737
+ }
1738
+ async getCwd() {
1739
+ if (( this.capabilities.has(0 ))) {
1740
+ return this.capabilities.get(0 ).getCwd();
1741
+ }
1742
+ else if (( this.capabilities.has(1 ))) {
1743
+ return this.capabilities.get(1 ).getCwd();
1744
+ }
1745
+ return this._processManager.initialCwd;
1746
+ }
1747
+ async _refreshProperty(type) {
1748
+ await this.processReady;
1749
+ return this._processManager.refreshProperty(type);
1750
+ }
1751
+ async _updateProperty(type, value) {
1752
+ return this._processManager.updateProperty(type, value);
1753
+ }
1754
+ async rename(title) {
1755
+ this._setTitle(title, TitleEventSource.Api);
1756
+ }
1757
+ _setTitle(title, eventSource) {
1758
+ const reset = !title;
1759
+ title = this._updateTitleProperties(title, eventSource);
1760
+ const titleChanged = title !== this._title;
1761
+ this._title = title;
1762
+ this._labelComputer?.refreshLabel(this, reset);
1763
+ this._setAriaLabel(this.xterm?.raw, this._instanceId, this._title);
1764
+ if (titleChanged) {
1765
+ this._onTitleChanged.fire(this);
1766
+ }
1767
+ }
1768
+ async changeIcon(icon) {
1769
+ if (icon) {
1770
+ this._icon = icon;
1771
+ this._onIconChanged.fire({ instance: this, userInitiated: true });
1772
+ return icon;
1773
+ }
1774
+ const items = [];
1775
+ for (const icon of getAllCodicons()) {
1776
+ items.push({ label: `$(${icon.id})`, description: `${icon.id}`, icon });
1777
+ }
1778
+ const result = await this._quickInputService.pick(items, {
1779
+ matchOnDescription: true,
1780
+ placeHolder: ( localizeWithPath(
1781
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
1782
+ 'changeIcon',
1783
+ 'Select an icon for the terminal'
1784
+ ))
1785
+ });
1786
+ if (result) {
1787
+ this._icon = result.icon;
1788
+ this._onIconChanged.fire({ instance: this, userInitiated: true });
1789
+ return this._icon;
1790
+ }
1791
+ return;
1792
+ }
1793
+ async changeColor(color, skipQuickPick) {
1794
+ if (color) {
1795
+ this.shellLaunchConfig.color = color;
1796
+ this._onIconChanged.fire({ instance: this, userInitiated: true });
1797
+ return color;
1798
+ }
1799
+ else if (skipQuickPick) {
1800
+ this.shellLaunchConfig.color = '';
1801
+ this._onIconChanged.fire({ instance: this, userInitiated: true });
1802
+ return;
1803
+ }
1804
+ const icon = this._getIcon();
1805
+ if (!icon) {
1806
+ return;
1807
+ }
1808
+ const colorTheme = this._themeService.getColorTheme();
1809
+ const standardColors = getStandardColors(colorTheme);
1810
+ const colorStyleDisposable = createColorStyleElement(colorTheme);
1811
+ const items = [];
1812
+ for (const colorKey of standardColors) {
1813
+ const colorClass = getColorClass(colorKey);
1814
+ items.push({
1815
+ label: `$(${Codicon.circleFilled.id}) ${colorKey.replace('terminal.ansi', '')}`, id: colorKey, description: colorKey, iconClasses: [colorClass]
1816
+ });
1817
+ }
1818
+ items.push({ type: 'separator' });
1819
+ const showAllColorsItem = { label: 'Reset to default' };
1820
+ items.push(showAllColorsItem);
1821
+ const quickPick = this._quickInputService.createQuickPick();
1822
+ quickPick.items = items;
1823
+ quickPick.matchOnDescription = true;
1824
+ quickPick.placeholder = ( localizeWithPath(
1825
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
1826
+ 'changeColor',
1827
+ 'Select a color for the terminal'
1828
+ ));
1829
+ quickPick.show();
1830
+ const disposables = [];
1831
+ const result = await ( new Promise(r => {
1832
+ disposables.push(quickPick.onDidHide(() => r(undefined)));
1833
+ disposables.push(quickPick.onDidAccept(() => r(quickPick.selectedItems[0])));
1834
+ }));
1835
+ dispose(disposables);
1836
+ if (result) {
1837
+ this.shellLaunchConfig.color = result.id;
1838
+ this._onIconChanged.fire({ instance: this, userInitiated: true });
1839
+ }
1840
+ quickPick.hide();
1841
+ colorStyleDisposable.dispose();
1842
+ return result?.id;
1843
+ }
1844
+ forceScrollbarVisibility() {
1845
+ this._wrapperElement.classList.add('force-scrollbar');
1846
+ }
1847
+ resetScrollbarVisibility() {
1848
+ this._wrapperElement.classList.remove('force-scrollbar');
1849
+ }
1850
+ setParentContextKeyService(parentContextKeyService) {
1851
+ this._scopedContextKeyService.updateParent(parentContextKeyService);
1852
+ }
1853
+ };
1854
+ TerminalInstance.__decorator = ( __decorate([
1855
+ debounce(50)
1856
+ ], TerminalInstance.prototype, "_fireMaximumDimensionsChanged", null));
1857
+ TerminalInstance.__decorator = ( __decorate([
1858
+ debounce(1000)
1859
+ ], TerminalInstance.prototype, "relaunch", null));
1860
+ TerminalInstance.__decorator = ( __decorate([
1861
+ debounce(2000)
1862
+ ], TerminalInstance.prototype, "_updateProcessCwd", null));
1863
+ TerminalInstance.__decorator = ( __decorate([
1864
+ debounce(50)
1865
+ ], TerminalInstance.prototype, "_resize", null));
1866
+ TerminalInstance = TerminalInstance_1 = ( __decorate([
1867
+ ( __param(4, IContextKeyService)),
1868
+ ( __param(5, IInstantiationService)),
1869
+ ( __param(6, ITerminalProfileResolverService)),
1870
+ ( __param(7, IPathService)),
1871
+ ( __param(8, IKeybindingService)),
1872
+ ( __param(9, INotificationService)),
1873
+ ( __param(10, IPreferencesService)),
1874
+ ( __param(11, IViewsService)),
1875
+ ( __param(12, IClipboardService)),
1876
+ ( __param(13, IThemeService)),
1877
+ ( __param(14, IConfigurationService)),
1878
+ ( __param(15, ITerminalLogService)),
1879
+ ( __param(16, IStorageService)),
1880
+ ( __param(17, IAccessibilityService)),
1881
+ ( __param(18, IProductService)),
1882
+ ( __param(19, IQuickInputService)),
1883
+ ( __param(20, IWorkbenchEnvironmentService)),
1884
+ ( __param(21, IWorkspaceContextService)),
1885
+ ( __param(22, IEditorService)),
1886
+ ( __param(23, IWorkspaceTrustRequestService)),
1887
+ ( __param(24, IHistoryService)),
1888
+ ( __param(25, ITelemetryService)),
1889
+ ( __param(26, IOpenerService)),
1890
+ ( __param(27, ICommandService)),
1891
+ ( __param(28, IAccessibilitySignalService)),
1892
+ ( __param(29, IViewDescriptorService))
1893
+ ], TerminalInstance));
1894
+ let TerminalInstanceDragAndDropController = class TerminalInstanceDragAndDropController extends Disposable {
1895
+ get onDropFile() { return this._onDropFile.event; }
1896
+ get onDropTerminal() { return this._onDropTerminal.event; }
1897
+ constructor(_container, _layoutService, _viewDescriptorService) {
1898
+ super();
1899
+ this._container = _container;
1900
+ this._layoutService = _layoutService;
1901
+ this._viewDescriptorService = _viewDescriptorService;
1902
+ this._onDropFile = this._register(( new Emitter()));
1903
+ this._onDropTerminal = this._register(( new Emitter()));
1904
+ this._register(toDisposable(() => this._clearDropOverlay()));
1905
+ }
1906
+ _clearDropOverlay() {
1907
+ if (this._dropOverlay && this._dropOverlay.parentElement) {
1908
+ this._dropOverlay.parentElement.removeChild(this._dropOverlay);
1909
+ }
1910
+ this._dropOverlay = undefined;
1911
+ }
1912
+ onDragEnter(e) {
1913
+ if (!containsDragType(e, DataTransfers.FILES, DataTransfers.RESOURCES, "Terminals" , CodeDataTransfers.FILES)) {
1914
+ return;
1915
+ }
1916
+ if (!this._dropOverlay) {
1917
+ this._dropOverlay = document.createElement('div');
1918
+ this._dropOverlay.classList.add('terminal-drop-overlay');
1919
+ }
1920
+ if (containsDragType(e, "Terminals" )) {
1921
+ const side = this._getDropSide(e);
1922
+ this._dropOverlay.classList.toggle('drop-before', side === 'before');
1923
+ this._dropOverlay.classList.toggle('drop-after', side === 'after');
1924
+ }
1925
+ if (!this._dropOverlay.parentElement) {
1926
+ this._container.appendChild(this._dropOverlay);
1927
+ }
1928
+ }
1929
+ onDragLeave(e) {
1930
+ this._clearDropOverlay();
1931
+ }
1932
+ onDragEnd(e) {
1933
+ this._clearDropOverlay();
1934
+ }
1935
+ onDragOver(e) {
1936
+ if (!e.dataTransfer || !this._dropOverlay) {
1937
+ return;
1938
+ }
1939
+ if (containsDragType(e, "Terminals" )) {
1940
+ const side = this._getDropSide(e);
1941
+ this._dropOverlay.classList.toggle('drop-before', side === 'before');
1942
+ this._dropOverlay.classList.toggle('drop-after', side === 'after');
1943
+ }
1944
+ this._dropOverlay.style.opacity = '1';
1945
+ }
1946
+ async onDrop(e) {
1947
+ this._clearDropOverlay();
1948
+ if (!e.dataTransfer) {
1949
+ return;
1950
+ }
1951
+ const terminalResources = getTerminalResourcesFromDragEvent(e);
1952
+ if (terminalResources) {
1953
+ for (const uri of terminalResources) {
1954
+ const side = this._getDropSide(e);
1955
+ this._onDropTerminal.fire({ uri, side });
1956
+ }
1957
+ return;
1958
+ }
1959
+ let path;
1960
+ const rawResources = e.dataTransfer.getData(DataTransfers.RESOURCES);
1961
+ if (rawResources) {
1962
+ path = ( URI.parse(JSON.parse(rawResources)[0]));
1963
+ }
1964
+ const rawCodeFiles = e.dataTransfer.getData(CodeDataTransfers.FILES);
1965
+ if (!path && rawCodeFiles) {
1966
+ path = URI.file(JSON.parse(rawCodeFiles)[0]);
1967
+ }
1968
+ if (!path && e.dataTransfer.files.length > 0 && e.dataTransfer.files[0].path ) {
1969
+ path = URI.file(e.dataTransfer.files[0].path);
1970
+ }
1971
+ if (!path) {
1972
+ return;
1973
+ }
1974
+ this._onDropFile.fire(path);
1975
+ }
1976
+ _getDropSide(e) {
1977
+ const target = this._container;
1978
+ if (!target) {
1979
+ return 'after';
1980
+ }
1981
+ const rect = target.getBoundingClientRect();
1982
+ return this._getViewOrientation() === 1
1983
+ ? (e.clientX - rect.left < rect.width / 2 ? 'before' : 'after')
1984
+ : (e.clientY - rect.top < rect.height / 2 ? 'before' : 'after');
1985
+ }
1986
+ _getViewOrientation() {
1987
+ const panelPosition = this._layoutService.getPanelPosition();
1988
+ const terminalLocation = this._viewDescriptorService.getViewLocationById(TERMINAL_VIEW_ID);
1989
+ return terminalLocation === 1 && panelPosition === 2
1990
+ ? 1
1991
+ : 0 ;
1992
+ }
1993
+ };
1994
+ TerminalInstanceDragAndDropController = ( __decorate([
1995
+ ( __param(1, IWorkbenchLayoutService)),
1996
+ ( __param(2, IViewDescriptorService))
1997
+ ], TerminalInstanceDragAndDropController));
1998
+ let TerminalLabelComputer = class TerminalLabelComputer extends Disposable {
1999
+ get title() { return this._title; }
2000
+ get description() { return this._description; }
2001
+ constructor(_configHelper, _fileService, _workspaceContextService) {
2002
+ super();
2003
+ this._configHelper = _configHelper;
2004
+ this._fileService = _fileService;
2005
+ this._workspaceContextService = _workspaceContextService;
2006
+ this._title = '';
2007
+ this._description = '';
2008
+ this._onDidChangeLabel = this._register(( new Emitter()));
2009
+ this.onDidChangeLabel = this._onDidChangeLabel.event;
2010
+ }
2011
+ refreshLabel(instance, reset) {
2012
+ this._title = this.computeLabel(instance, this._configHelper.config.tabs.title, "title" , reset);
2013
+ this._description = this.computeLabel(instance, this._configHelper.config.tabs.description, "description" );
2014
+ if (this._title !== instance.title || this._description !== instance.description || reset) {
2015
+ this._onDidChangeLabel.fire({ title: this._title, description: this._description });
2016
+ }
2017
+ }
2018
+ computeLabel(instance, labelTemplate, labelType, reset) {
2019
+ const type = instance.shellLaunchConfig.attachPersistentProcess?.type || instance.shellLaunchConfig.type;
2020
+ const templateProperties = {
2021
+ cwd: instance.cwd || instance.initialCwd || '',
2022
+ cwdFolder: '',
2023
+ workspaceFolder: instance.workspaceFolder ? basename(instance.workspaceFolder.uri.fsPath) : undefined,
2024
+ local: type === 'Local' ? terminalStrings.typeLocal : undefined,
2025
+ process: instance.processName,
2026
+ sequence: instance.sequence,
2027
+ task: type === 'Task' ? terminalStrings.typeTask : undefined,
2028
+ fixedDimensions: instance.fixedCols
2029
+ ? (instance.fixedRows ? `\u2194${instance.fixedCols} \u2195${instance.fixedRows}` : `\u2194${instance.fixedCols}`)
2030
+ : (instance.fixedRows ? `\u2195${instance.fixedRows}` : ''),
2031
+ separator: { label: this._configHelper.config.tabs.separator }
2032
+ };
2033
+ labelTemplate = labelTemplate.trim();
2034
+ if (!labelTemplate) {
2035
+ return labelType === "title" ? (instance.processName || '') : '';
2036
+ }
2037
+ if (!reset && instance.staticTitle && labelType === "title" ) {
2038
+ return instance.staticTitle.replace(/[\n\r\t]/g, '') || templateProperties.process?.replace(/[\n\r\t]/g, '') || '';
2039
+ }
2040
+ const detection = ( instance.capabilities.has(0 )) || ( instance.capabilities.has(1 ));
2041
+ const folders = this._workspaceContextService.getWorkspace().folders;
2042
+ const multiRootWorkspace = folders.length > 1;
2043
+ if (templateProperties.cwd && detection && ((!instance.shellLaunchConfig.isFeatureTerminal || labelType === "title") )) {
2044
+ const cwdUri = ( URI.from({
2045
+ scheme: instance.workspaceFolder?.uri.scheme || Schemas.file,
2046
+ path: instance.cwd ? resolve(instance.cwd) : undefined
2047
+ }));
2048
+ let showCwd = false;
2049
+ if (multiRootWorkspace) {
2050
+ showCwd = true;
2051
+ }
2052
+ else if (instance.workspaceFolder?.uri) {
2053
+ const caseSensitive = this._fileService.hasCapability(instance.workspaceFolder.uri, 1024 );
2054
+ showCwd = cwdUri.fsPath.localeCompare(instance.workspaceFolder.uri.fsPath, undefined, { sensitivity: caseSensitive ? 'case' : 'base' }) !== 0;
2055
+ }
2056
+ if (showCwd) {
2057
+ templateProperties.cwdFolder = basename(templateProperties.cwd);
2058
+ }
2059
+ }
2060
+ const label = template(labelTemplate, templateProperties).replace(/[\n\r\t]/g, '').trim();
2061
+ return label === '' && labelType === "title" ? (instance.processName || '') : label;
2062
+ }
2063
+ };
2064
+ TerminalLabelComputer = ( __decorate([
2065
+ ( __param(1, IFileService)),
2066
+ ( __param(2, IWorkspaceContextService))
2067
+ ], TerminalLabelComputer));
2068
+ function parseExitResult(exitCodeOrError, shellLaunchConfig, processState, initialCwd) {
2069
+ if (exitCodeOrError === undefined || exitCodeOrError === 0) {
2070
+ return { code: exitCodeOrError, message: undefined };
2071
+ }
2072
+ const code = typeof exitCodeOrError === 'number' ? exitCodeOrError : exitCodeOrError.code;
2073
+ let message = undefined;
2074
+ switch (typeof exitCodeOrError) {
2075
+ case 'number': {
2076
+ let commandLine = undefined;
2077
+ if (shellLaunchConfig.executable) {
2078
+ commandLine = shellLaunchConfig.executable;
2079
+ if (typeof shellLaunchConfig.args === 'string') {
2080
+ commandLine += ` ${shellLaunchConfig.args}`;
2081
+ }
2082
+ else if (shellLaunchConfig.args && shellLaunchConfig.args.length) {
2083
+ commandLine += ( shellLaunchConfig.args.map(a => ` '${a}'`)).join();
2084
+ }
2085
+ }
2086
+ if (processState === 4 ) {
2087
+ if (commandLine) {
2088
+ message = ( localizeWithPath(
2089
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
2090
+ 'launchFailed.exitCodeAndCommandLine',
2091
+ "The terminal process \"{0}\" failed to launch (exit code: {1}).",
2092
+ commandLine,
2093
+ code
2094
+ ));
2095
+ }
2096
+ else {
2097
+ message = ( localizeWithPath(
2098
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
2099
+ 'launchFailed.exitCodeOnly',
2100
+ "The terminal process failed to launch (exit code: {0}).",
2101
+ code
2102
+ ));
2103
+ }
2104
+ }
2105
+ else {
2106
+ if (commandLine) {
2107
+ message = ( localizeWithPath(
2108
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
2109
+ 'terminated.exitCodeAndCommandLine',
2110
+ "The terminal process \"{0}\" terminated with exit code: {1}.",
2111
+ commandLine,
2112
+ code
2113
+ ));
2114
+ }
2115
+ else {
2116
+ message = ( localizeWithPath(
2117
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
2118
+ 'terminated.exitCodeOnly',
2119
+ "The terminal process terminated with exit code: {0}.",
2120
+ code
2121
+ ));
2122
+ }
2123
+ }
2124
+ break;
2125
+ }
2126
+ case 'object': {
2127
+ if (( exitCodeOrError.message.toString()).includes('Could not find pty with id')) {
2128
+ break;
2129
+ }
2130
+ let innerMessage = exitCodeOrError.message;
2131
+ const conptyError = exitCodeOrError.message.match(/.*error code:\s*(\d+).*$/);
2132
+ if (conptyError) {
2133
+ const errorCode = conptyError.length > 1 ? parseInt(conptyError[1]) : undefined;
2134
+ switch (errorCode) {
2135
+ case 5:
2136
+ innerMessage = `Access was denied to the path containing your executable "${shellLaunchConfig.executable}". Manage and change your permissions to get this to work`;
2137
+ break;
2138
+ case 267:
2139
+ innerMessage = `Invalid starting directory "${initialCwd}", review your terminal.integrated.cwd setting`;
2140
+ break;
2141
+ case 1260:
2142
+ innerMessage = `Windows cannot open this program because it has been prevented by a software restriction policy. For more information, open Event Viewer or contact your system Administrator`;
2143
+ break;
2144
+ }
2145
+ }
2146
+ message = ( localizeWithPath(
2147
+ 'vs/workbench/contrib/terminal/browser/terminalInstance',
2148
+ 'launchFailed.errorMessage',
2149
+ "The terminal process failed to launch: {0}.",
2150
+ innerMessage
2151
+ ));
2152
+ break;
2153
+ }
2154
+ }
2155
+ return { code, message };
2156
+ }
2157
+ let TerminalInstanceColorProvider = class TerminalInstanceColorProvider {
2158
+ constructor(_instance, _viewDescriptorService) {
2159
+ this._instance = _instance;
2160
+ this._viewDescriptorService = _viewDescriptorService;
2161
+ }
2162
+ getBackgroundColor(theme) {
2163
+ const terminalBackground = theme.getColor(TERMINAL_BACKGROUND_COLOR);
2164
+ if (terminalBackground) {
2165
+ return terminalBackground;
2166
+ }
2167
+ if (this._instance.target === TerminalLocation.Editor) {
2168
+ return theme.getColor(editorBackground);
2169
+ }
2170
+ const location = this._viewDescriptorService.getViewLocationById(TERMINAL_VIEW_ID);
2171
+ if (location === 1 ) {
2172
+ return theme.getColor(PANEL_BACKGROUND);
2173
+ }
2174
+ return theme.getColor(SIDE_BAR_BACKGROUND);
2175
+ }
2176
+ };
2177
+ TerminalInstanceColorProvider = ( __decorate([
2178
+ ( __param(1, IViewDescriptorService))
2179
+ ], TerminalInstanceColorProvider));
2180
+ export { TerminalInstance, TerminalInstanceColorProvider, TerminalLabelComputer, parseExitResult };