@codingame/monaco-vscode-api 29.1.1 → 30.0.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 (471) hide show
  1. package/missing-services.js +39 -16
  2. package/package.json +8 -8
  3. package/services.js +3 -3
  4. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  5. package/vscode/src/vs/base/browser/ui/contextview/contextview.js +5 -5
  6. package/vscode/src/vs/base/browser/ui/dialog/dialog.js +6 -2
  7. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +19 -7
  8. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +81 -15
  9. package/vscode/src/vs/base/common/codicons.d.ts +4 -0
  10. package/vscode/src/vs/base/common/codicons.js +3 -1
  11. package/vscode/src/vs/base/common/glob.js +5 -1
  12. package/vscode/src/vs/base/common/performance.d.ts +4 -0
  13. package/vscode/src/vs/base/common/performance.js +40 -17
  14. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +1 -1
  15. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.d.ts +2 -1
  16. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +4 -0
  17. package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +13 -0
  18. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +106 -74
  19. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +14 -11
  20. package/vscode/src/vs/platform/actions/common/actions.d.ts +3 -0
  21. package/vscode/src/vs/platform/actions/common/actions.js +9 -0
  22. package/vscode/src/vs/platform/browserView/common/browserView.d.ts +34 -7
  23. package/vscode/src/vs/platform/editor/common/editor.d.ts +29 -4
  24. package/vscode/src/vs/platform/environment/common/argv.d.ts +1 -0
  25. package/vscode/src/vs/platform/environment/common/environmentService.d.ts +1 -0
  26. package/vscode/src/vs/platform/extensions/common/extensions.d.ts +1 -0
  27. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +3 -0
  28. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +3 -0
  29. package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.js +2 -2
  30. package/vscode/src/vs/platform/label/common/label.d.ts +6 -0
  31. package/vscode/src/vs/platform/product/common/product.js +3 -3
  32. package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.d.ts +11 -2
  33. package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +6 -0
  34. package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +14 -1
  35. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +6 -2
  36. package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +5 -3
  37. package/vscode/src/vs/platform/quickinput/common/quickInput.js +6 -2
  38. package/vscode/src/vs/platform/sandbox/common/sandboxHelperService.d.ts +4 -0
  39. package/vscode/src/vs/platform/sandbox/common/sandboxHelperService.service.d.ts +6 -0
  40. package/vscode/src/vs/platform/sandbox/common/sandboxHelperService.service.js +6 -0
  41. package/vscode/src/vs/platform/terminal/common/terminal.d.ts +3 -1
  42. package/vscode/src/vs/platform/terminal/common/terminal.js +5 -2
  43. package/vscode/src/vs/platform/theme/common/colorUtils.d.ts +4 -0
  44. package/vscode/src/vs/platform/theme/common/colorUtils.js +9 -0
  45. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +6 -1
  46. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +21 -1
  47. package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +3 -2
  48. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +5 -1
  49. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +57 -4
  50. package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +5 -3
  51. package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +34 -14
  52. package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +2 -1
  53. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +5 -1
  54. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +32 -2
  55. package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +11 -1
  56. package/vscode/src/vs/workbench/api/common/extHostTypes.js +24 -2
  57. package/vscode/src/vs/workbench/browser/parts/editor/media/modalEditorPart.css +35 -5
  58. package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.d.ts +1 -0
  59. package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.js +70 -4
  60. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +8 -1
  61. package/vscode/src/vs/workbench/browser/workbench.contribution.js +156 -167
  62. package/vscode/src/vs/workbench/common/configuration.js +9 -9
  63. package/vscode/src/vs/workbench/common/contextkeys.js +77 -77
  64. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
  65. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
  66. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
  67. package/vscode/src/vs/workbench/common/editor.js +4 -4
  68. package/vscode/src/vs/workbench/common/theme.js +161 -161
  69. package/vscode/src/vs/workbench/common/views.d.ts +0 -6
  70. package/vscode/src/vs/workbench/common/views.js +4 -4
  71. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +154 -154
  72. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
  73. package/vscode/src/vs/workbench/contrib/browserView/common/browserView.d.ts +11 -3
  74. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +65 -64
  75. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.d.ts +6 -6
  76. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +26 -13
  77. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.d.ts +21 -3
  78. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.js +21 -17
  79. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +11 -0
  80. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +8 -3
  81. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatScreenshotContext.js +1 -1
  82. package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +6 -6
  83. package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +1 -1
  84. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +7 -7
  85. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.d.ts +2 -0
  86. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.js +51 -0
  87. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +165 -0
  88. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +1409 -0
  89. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.js +9 -9
  90. package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.d.ts +2 -0
  91. package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.js +87 -83
  92. package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.service.d.ts +8 -0
  93. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.d.ts +12 -2
  94. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.js +5 -3
  95. package/vscode/src/vs/workbench/contrib/chat/common/chatModes.d.ts +4 -4
  96. package/vscode/src/vs/workbench/contrib/chat/common/chatModes.js +13 -12
  97. package/vscode/src/vs/workbench/contrib/chat/common/chatPerf.d.ts +75 -0
  98. package/vscode/src/vs/workbench/contrib/chat/common/chatPerf.js +30 -0
  99. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.d.ts +9 -12
  100. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.js +1 -13
  101. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.service.d.ts +1 -6
  102. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +45 -1
  103. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +17 -4
  104. package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +6 -1
  105. package/vscode/src/vs/workbench/contrib/chat/common/constants.js +5 -0
  106. package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.d.ts +48 -5
  107. package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.js +46 -18
  108. package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.service.d.ts +10 -3
  109. package/vscode/src/vs/workbench/contrib/chat/common/editing/chatEditingService.d.ts +6 -2
  110. package/vscode/src/vs/workbench/contrib/chat/common/editing/chatEditingService.js +2 -2
  111. package/vscode/src/vs/workbench/contrib/chat/common/editing/chatEditingService.service.d.ts +9 -1
  112. package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +3 -3
  113. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +23 -23
  114. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.d.ts +11 -8
  115. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.js +54 -20
  116. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +1 -1
  117. package/vscode/src/vs/workbench/contrib/chat/common/model/chatViewModel.d.ts +3 -5
  118. package/vscode/src/vs/workbench/contrib/chat/common/model/chatViewModel.js +3 -7
  119. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.js +5 -1
  120. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.service.d.ts +6 -0
  121. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.d.ts +18 -0
  122. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service.d.ts +10 -6
  123. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service.d.ts +0 -1
  124. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +4 -1
  125. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +36 -6
  126. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.js +2 -2
  127. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.d.ts +3 -29
  128. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.js +2 -18
  129. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.js +18 -18
  130. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookTypes.js +20 -20
  131. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptFileAttributes.js +78 -88
  132. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.d.ts +0 -1
  133. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.js +1 -2
  134. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.d.ts +17 -0
  135. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.js +16 -1
  136. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +28 -23
  137. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +1 -7
  138. package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.d.ts +1 -0
  139. package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.js +1 -1
  140. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.js +8 -8
  141. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +10 -10
  142. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +3 -3
  143. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.js +6 -6
  144. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.js +2 -2
  145. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.service.d.ts +2 -8
  146. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +22 -22
  147. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.js +3 -3
  148. package/vscode/src/vs/workbench/contrib/chat/common/widget/input/modelPickerWidget.js +1 -1
  149. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +11 -11
  150. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
  151. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
  152. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
  153. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -10
  154. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
  155. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
  156. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.d.ts +8 -1
  157. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +41 -8
  158. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
  159. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  160. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +3 -3
  161. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  162. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
  163. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
  164. package/vscode/src/vs/workbench/contrib/codeEditor/common/languageConfigurationExtensionPoint.js +65 -65
  165. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +7 -7
  166. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +7 -7
  167. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +2 -2
  168. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +3 -3
  169. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +3 -3
  170. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +3 -3
  171. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +3 -3
  172. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +3 -3
  173. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  174. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +7 -7
  175. package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
  176. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
  177. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +14 -14
  178. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +16 -16
  179. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +7 -7
  180. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +12 -12
  181. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
  182. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +1 -1
  183. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
  184. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
  185. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +75 -75
  186. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
  187. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +6 -6
  188. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
  189. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +38 -38
  190. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +2 -2
  191. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +3 -3
  192. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
  193. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
  194. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +4 -4
  195. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +2 -2
  196. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +18 -18
  197. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +5 -5
  198. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +9 -9
  199. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
  200. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
  201. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
  202. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
  203. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
  204. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
  205. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
  206. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
  207. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
  208. package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.js +18 -18
  209. package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.js +1 -1
  210. package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.js +1 -1
  211. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +41 -41
  212. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.js +1 -1
  213. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.js +15 -15
  214. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.js +14 -14
  215. package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +148 -148
  216. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +170 -170
  217. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.js +1 -1
  218. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +1 -1
  219. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.js +5 -5
  220. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +25 -25
  221. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.js +4 -4
  222. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.js +7 -7
  223. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +47 -47
  224. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +5 -5
  225. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +30 -30
  226. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +76 -76
  227. package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +2 -2
  228. package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.js +1 -1
  229. package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +2 -2
  230. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
  231. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
  232. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
  233. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
  234. package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.js +2 -2
  235. package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +3 -3
  236. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -4
  237. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +3 -3
  238. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
  239. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
  240. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
  241. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
  242. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +39 -39
  243. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
  244. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands._save.js +4 -4
  245. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +2 -2
  246. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  247. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +27 -27
  248. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +50 -50
  249. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
  250. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
  251. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +4 -4
  252. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +7 -7
  253. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +17 -17
  254. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
  255. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
  256. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
  257. package/vscode/src/vs/workbench/contrib/files/common/files.js +16 -16
  258. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
  259. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
  260. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
  261. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  262. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
  263. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  264. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  265. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommandsAddConfiguration.js +66 -66
  266. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerActions.js +40 -40
  267. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditor.js +34 -34
  268. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditorInput.js +2 -2
  269. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerIcons.js +5 -5
  270. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerWidgets.js +5 -5
  271. package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfiguration.js +40 -40
  272. package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.js +16 -16
  273. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +4 -4
  274. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +4 -4
  275. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +23 -23
  276. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +2 -2
  277. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +20 -9
  278. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +8 -8
  279. package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnection.contribution.js +8 -8
  280. package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnectionStatus.js +4 -4
  281. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +1 -1
  282. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +3 -3
  283. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
  284. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +17 -17
  285. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +6 -6
  286. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
  287. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
  288. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
  289. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +7 -7
  290. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +27 -27
  291. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +29 -29
  292. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +5 -5
  293. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +7 -7
  294. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
  295. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +4 -4
  296. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
  297. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
  298. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
  299. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
  300. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
  301. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
  302. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +1 -0
  303. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +14 -14
  304. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
  305. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +1 -1
  306. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
  307. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +3 -3
  308. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +13 -13
  309. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +10 -10
  310. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +60 -60
  311. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +3 -3
  312. package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
  313. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +15 -15
  314. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
  315. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +59 -59
  316. package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +11 -11
  317. package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryChatContext.js +6 -6
  318. package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.js +14 -14
  319. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.d.ts +3 -1
  320. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +30 -13
  321. package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +3 -3
  322. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +1 -1
  323. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +12 -12
  324. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +9 -9
  325. package/vscode/src/vs/workbench/contrib/search/browser/searchChatContext.js +5 -5
  326. package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +1 -1
  327. package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
  328. package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +2 -2
  329. package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +14 -14
  330. package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +55 -55
  331. package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +11 -11
  332. package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.d.ts +3 -1
  333. package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +32 -5
  334. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +4 -4
  335. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +5 -5
  336. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  337. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  338. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  339. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
  340. package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
  341. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
  342. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +6 -6
  343. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
  344. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +1 -1
  345. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +3 -3
  346. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +13 -13
  347. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.d.ts +1 -2
  348. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +43 -45
  349. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +15 -15
  350. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +13 -10
  351. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
  352. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +17 -17
  353. package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +26 -26
  354. package/vscode/src/vs/workbench/contrib/terminal/terminalContribExports.d.ts +10 -3
  355. package/vscode/src/vs/workbench/contrib/terminal/terminalContribExports.js +10 -3
  356. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminalAccessibilityConfiguration.js +2 -2
  357. package/vscode/src/vs/workbench/contrib/terminalContrib/autoReplies/common/terminalAutoRepliesConfiguration.js +2 -2
  358. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.d.ts +10 -6
  359. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.js +134 -91
  360. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.service.d.ts +6 -2
  361. package/vscode/src/vs/workbench/contrib/terminalContrib/commandGuide/common/terminalCommandGuideConfiguration.js +1 -1
  362. package/vscode/src/vs/workbench/contrib/terminalContrib/history/common/terminal.history.js +1 -1
  363. package/vscode/src/vs/workbench/contrib/terminalContrib/inlineHint/common/terminalInitialHintConfiguration.js +1 -1
  364. package/vscode/src/vs/workbench/contrib/terminalContrib/notification/common/terminalNotificationConfiguration.js +1 -1
  365. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/common/terminalStickyScrollConfiguration.js +3 -3
  366. package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminalSuggestConfiguration.js +30 -30
  367. package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/common/terminalTypeAheadConfiguration.js +5 -5
  368. package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/common/terminal.zoom.js +2 -2
  369. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
  370. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
  371. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
  372. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
  373. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
  374. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindAccessibilityHelp.js +30 -30
  375. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
  376. package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
  377. package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.js +1 -1
  378. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +11 -11
  379. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
  380. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.d.ts +4 -0
  381. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +27 -16
  382. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.d.ts +1 -0
  383. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +1 -0
  384. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
  385. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
  386. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
  387. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
  388. package/vscode/src/vs/workbench/services/environment/browser/environmentService.d.ts +1 -0
  389. package/vscode/src/vs/workbench/services/environment/browser/environmentService.js +9 -0
  390. package/vscode/src/vs/workbench/services/environment/common/environmentService.service.d.ts +1 -0
  391. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionsIcons.js +3 -3
  392. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
  393. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +10 -10
  394. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +88 -88
  395. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
  396. package/vscode/src/vs/workbench/services/language/common/languageService.js +24 -24
  397. package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
  398. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
  399. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
  400. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +4 -4
  401. package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +2 -2
  402. package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +30 -30
  403. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
  404. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
  405. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
  406. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
  407. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
  408. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +18 -18
  409. package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
  410. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
  411. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +24 -24
  412. package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.d.ts +2 -2
  413. package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.js +8 -4
  414. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
  415. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
  416. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
  417. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +16 -16
  418. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +0 -4
  419. package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +19 -1
  420. package/vscode-dts/vscode.proposed.chatSessionCustomizationProvider.d.ts +168 -0
  421. package/vscode-dts/vscode.proposed.d.ts +1 -0
  422. package/vscode-dts/vscode.proposed.terminalShellEnv.d.ts +1 -1
  423. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.d.ts +0 -26
  424. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +0 -746
  425. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +0 -13
  426. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +0 -300
  427. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.d.ts +0 -8
  428. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +0 -55
  429. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.d.ts +0 -273
  430. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +0 -1963
  431. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.d.ts +0 -50
  432. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +0 -314
  433. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.d.ts +0 -258
  434. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +0 -886
  435. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.d.ts +0 -41
  436. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +0 -118
  437. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.d.ts +0 -17
  438. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +0 -71
  439. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.d.ts +0 -27
  440. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +0 -40
  441. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.d.ts +0 -23
  442. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +0 -313
  443. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.d.ts +0 -51
  444. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.js +0 -265
  445. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.d.ts +0 -24
  446. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.js +0 -185
  447. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.d.ts +0 -28
  448. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +0 -104
  449. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.d.ts +0 -10
  450. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.js +0 -43
  451. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.d.ts +0 -21
  452. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.js +0 -41
  453. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +0 -25
  454. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.js +0 -69
  455. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css +0 -469
  456. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.d.ts +0 -149
  457. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +0 -933
  458. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.d.ts +0 -180
  459. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +0 -32
  460. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.d.ts +0 -102
  461. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +0 -643
  462. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.d.ts +0 -30
  463. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +0 -197
  464. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.d.ts +0 -75
  465. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +0 -539
  466. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.d.ts +0 -13
  467. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +0 -39
  468. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.d.ts +0 -19
  469. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +0 -90
  470. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.d.ts +0 -26
  471. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.js +0 -92
@@ -1,643 +0,0 @@
1
-
2
- import { registerCss } from '../../../../../../../../css.js';
3
- import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
4
- import * as notebookDiff from './notebookDiff.css';
5
- import { $, append } from '../../../../../base/browser/dom.js';
6
- import { createStyleSheet } from '../../../../../base/browser/domStylesheets.js';
7
- import { MouseController, isMonacoEditor } from '../../../../../base/browser/ui/list/listWidget.js';
8
- import { DisposableStore } from '../../../../../base/common/lifecycle.js';
9
- import { IConfigurationService } from '../../../../../platform/configuration/common/configuration.service.js';
10
- import { IContextKeyService } from '../../../../../platform/contextkey/common/contextkey.service.js';
11
- import { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js';
12
- import { IKeybindingService } from '../../../../../platform/keybinding/common/keybinding.service.js';
13
- import { WorkbenchList } from '../../../../../platform/list/browser/listService.js';
14
- import { IListService } from '../../../../../platform/list/browser/listService.service.js';
15
- import { IThemeService } from '../../../../../platform/theme/common/themeService.service.js';
16
- import { DIFF_CELL_MARGIN } from './notebookDiffEditorBrowser.js';
17
- import { CollapsedCellOverlayWidget, CellDiffPlaceholderElement, UnchangedCellOverlayWidget, NotebookDocumentMetadataElement, InsertElement, DeletedElement, ModifiedElement, getOptimizedNestedCodeEditorWidgetOptions } from './diffComponents.js';
18
- import { CodeEditorWidget } from '../../../../../editor/browser/widget/codeEditor/codeEditorWidget.js';
19
- import { DiffEditorWidget } from '../../../../../editor/browser/widget/diffEditor/diffEditorWidget.js';
20
- import { MenuItemAction } from '../../../../../platform/actions/common/actions.js';
21
- import { IMenuService } from '../../../../../platform/actions/common/actions.service.js';
22
- import { IContextMenuService } from '../../../../../platform/contextview/browser/contextView.service.js';
23
- import { INotificationService } from '../../../../../platform/notification/common/notification.service.js';
24
- import { CodiconActionViewItem } from '../view/cellParts/cellActionView.js';
25
- import { createBareFontInfoFromRawSettings } from '../../../../../editor/common/config/fontInfoFromSettings.js';
26
- import { PixelRatio } from '../../../../../base/browser/pixelRatio.js';
27
- import { WorkbenchToolBar } from '../../../../../platform/actions/browser/toolbar.js';
28
- import { fixedDiffEditorOptions, fixedEditorOptions } from './diffCellEditorOptions.js';
29
- import { IAccessibilityService } from '../../../../../platform/accessibility/common/accessibility.service.js';
30
- import { localize } from '../../../../../nls.js';
31
- import { EditorExtensionsRegistry } from '../../../../../editor/browser/editorExtensions.js';
32
-
33
- var CellDiffPlaceholderRenderer_1, NotebookDocumentMetadataDiffRenderer_1, CellDiffSingleSideRenderer_1, CellDiffSideBySideRenderer_1;
34
- registerCss(notebookDiff);
35
- let NotebookCellTextDiffListDelegate = class NotebookCellTextDiffListDelegate {
36
- constructor(targetWindow, configurationService) {
37
- this.configurationService = configurationService;
38
- const editorOptions = this.configurationService.getValue("editor");
39
- this.lineHeight = createBareFontInfoFromRawSettings(editorOptions, PixelRatio.getInstance(targetWindow).value).lineHeight;
40
- }
41
- getHeight(element) {
42
- return element.getHeight(this.lineHeight);
43
- }
44
- hasDynamicHeight(element) {
45
- return false;
46
- }
47
- getTemplateId(element) {
48
- switch (element.type) {
49
- case "delete":
50
- case "insert":
51
- return CellDiffSingleSideRenderer.TEMPLATE_ID;
52
- case "modified":
53
- case "unchanged":
54
- return CellDiffSideBySideRenderer.TEMPLATE_ID;
55
- case "placeholder":
56
- return CellDiffPlaceholderRenderer.TEMPLATE_ID;
57
- case "modifiedMetadata":
58
- case "unchangedMetadata":
59
- return NotebookDocumentMetadataDiffRenderer.TEMPLATE_ID;
60
- }
61
- }
62
- };
63
- NotebookCellTextDiffListDelegate = ( __decorate([( __param(1, IConfigurationService))], NotebookCellTextDiffListDelegate));
64
- let CellDiffPlaceholderRenderer = class CellDiffPlaceholderRenderer {
65
- static {
66
- CellDiffPlaceholderRenderer_1 = this;
67
- }
68
- static {
69
- this.TEMPLATE_ID = "cell_diff_placeholder";
70
- }
71
- constructor(notebookEditor, instantiationService) {
72
- this.notebookEditor = notebookEditor;
73
- this.instantiationService = instantiationService;
74
- }
75
- get templateId() {
76
- return CellDiffPlaceholderRenderer_1.TEMPLATE_ID;
77
- }
78
- renderTemplate(container) {
79
- const body = $(".cell-placeholder-body");
80
- append(container, body);
81
- const elementDisposables = ( new DisposableStore());
82
- const marginOverlay = ( new CollapsedCellOverlayWidget(body));
83
- const contents = append(body, $(".contents"));
84
- const placeholder = append(contents, $("span.text", {
85
- title: ( localize(11174, "Double click to show"))
86
- }));
87
- return {
88
- body,
89
- container,
90
- placeholder,
91
- marginOverlay,
92
- elementDisposables
93
- };
94
- }
95
- renderElement(element, index, templateData) {
96
- templateData.body.classList.remove("left", "right", "full");
97
- templateData.elementDisposables.add(
98
- this.instantiationService.createInstance(CellDiffPlaceholderElement, element, templateData)
99
- );
100
- }
101
- disposeTemplate(templateData) {
102
- templateData.container.innerText = "";
103
- }
104
- disposeElement(element, index, templateData) {
105
- templateData.elementDisposables.clear();
106
- }
107
- };
108
- CellDiffPlaceholderRenderer = CellDiffPlaceholderRenderer_1 = ( __decorate([( __param(1, IInstantiationService))], CellDiffPlaceholderRenderer));
109
- let NotebookDocumentMetadataDiffRenderer = class NotebookDocumentMetadataDiffRenderer {
110
- static {
111
- NotebookDocumentMetadataDiffRenderer_1 = this;
112
- }
113
- static {
114
- this.TEMPLATE_ID = "notebook_metadata_diff_side_by_side";
115
- }
116
- constructor(
117
- notebookEditor,
118
- instantiationService,
119
- contextMenuService,
120
- keybindingService,
121
- menuService,
122
- contextKeyService,
123
- notificationService,
124
- themeService,
125
- accessibilityService
126
- ) {
127
- this.notebookEditor = notebookEditor;
128
- this.instantiationService = instantiationService;
129
- this.contextMenuService = contextMenuService;
130
- this.keybindingService = keybindingService;
131
- this.menuService = menuService;
132
- this.contextKeyService = contextKeyService;
133
- this.notificationService = notificationService;
134
- this.themeService = themeService;
135
- this.accessibilityService = accessibilityService;
136
- }
137
- get templateId() {
138
- return NotebookDocumentMetadataDiffRenderer_1.TEMPLATE_ID;
139
- }
140
- renderTemplate(container) {
141
- const body = $(".cell-body");
142
- append(container, body);
143
- const diffEditorContainer = $(".cell-diff-editor-container");
144
- append(body, diffEditorContainer);
145
- const cellHeaderContainer = append(diffEditorContainer, $(".input-header-container"));
146
- const sourceContainer = append(diffEditorContainer, $(".source-container"));
147
- const {
148
- editor,
149
- editorContainer
150
- } = this._buildSourceEditor(sourceContainer);
151
- const inputToolbarContainer = append(sourceContainer, $(".editor-input-toolbar-container"));
152
- const cellToolbarContainer = append(inputToolbarContainer, $("div.property-toolbar"));
153
- const toolbar = this.instantiationService.createInstance(WorkbenchToolBar, cellToolbarContainer, {
154
- actionViewItemProvider: (action, options) => {
155
- if (action instanceof MenuItemAction) {
156
- const item = ( new CodiconActionViewItem(action, {
157
- hoverDelegate: options.hoverDelegate
158
- }, this.keybindingService, this.notificationService, this.contextKeyService, this.themeService, this.contextMenuService, this.accessibilityService));
159
- return item;
160
- }
161
- return undefined;
162
- },
163
- highlightToggledItems: true
164
- });
165
- const borderContainer = append(body, $(".border-container"));
166
- const leftBorder = append(borderContainer, $(".left-border"));
167
- const rightBorder = append(borderContainer, $(".right-border"));
168
- const topBorder = append(borderContainer, $(".top-border"));
169
- const bottomBorder = append(borderContainer, $(".bottom-border"));
170
- const marginOverlay = ( new UnchangedCellOverlayWidget(body));
171
- const elementDisposables = ( new DisposableStore());
172
- return {
173
- body,
174
- container,
175
- diffEditorContainer,
176
- cellHeaderContainer,
177
- sourceEditor: editor,
178
- editorContainer,
179
- inputToolbarContainer,
180
- toolbar,
181
- leftBorder,
182
- rightBorder,
183
- topBorder,
184
- bottomBorder,
185
- marginOverlay,
186
- elementDisposables
187
- };
188
- }
189
- _buildSourceEditor(sourceContainer) {
190
- return buildDiffEditorWidget(this.instantiationService, this.notebookEditor, sourceContainer, {
191
- readOnly: true
192
- });
193
- }
194
- renderElement(element, index, templateData) {
195
- templateData.body.classList.remove("full");
196
- templateData.elementDisposables.add(this.instantiationService.createInstance(
197
- NotebookDocumentMetadataElement,
198
- this.notebookEditor,
199
- element,
200
- templateData
201
- ));
202
- }
203
- disposeTemplate(templateData) {
204
- templateData.container.innerText = "";
205
- templateData.sourceEditor.dispose();
206
- templateData.toolbar?.dispose();
207
- templateData.elementDisposables.dispose();
208
- }
209
- disposeElement(element, index, templateData) {
210
- if (templateData.toolbar) {
211
- templateData.toolbar.context = undefined;
212
- }
213
- templateData.elementDisposables.clear();
214
- }
215
- };
216
- NotebookDocumentMetadataDiffRenderer = NotebookDocumentMetadataDiffRenderer_1 = ( __decorate([( __param(1, IInstantiationService)), ( __param(2, IContextMenuService)), ( __param(3, IKeybindingService)), ( __param(4, IMenuService)), ( __param(5, IContextKeyService)), ( __param(6, INotificationService)), ( __param(7, IThemeService)), ( __param(8, IAccessibilityService))], NotebookDocumentMetadataDiffRenderer));
217
- let CellDiffSingleSideRenderer = class CellDiffSingleSideRenderer {
218
- static {
219
- CellDiffSingleSideRenderer_1 = this;
220
- }
221
- static {
222
- this.TEMPLATE_ID = "cell_diff_single";
223
- }
224
- constructor(notebookEditor, instantiationService) {
225
- this.notebookEditor = notebookEditor;
226
- this.instantiationService = instantiationService;
227
- }
228
- get templateId() {
229
- return CellDiffSingleSideRenderer_1.TEMPLATE_ID;
230
- }
231
- renderTemplate(container) {
232
- const body = $(".cell-body");
233
- append(container, body);
234
- const diffEditorContainer = $(".cell-diff-editor-container");
235
- append(body, diffEditorContainer);
236
- const diagonalFill = append(body, $(".diagonal-fill"));
237
- const cellHeaderContainer = append(diffEditorContainer, $(".input-header-container"));
238
- const sourceContainer = append(diffEditorContainer, $(".source-container"));
239
- const {
240
- editor,
241
- editorContainer
242
- } = this._buildSourceEditor(sourceContainer);
243
- const metadataHeaderContainer = append(diffEditorContainer, $(".metadata-header-container"));
244
- const metadataInfoContainer = append(diffEditorContainer, $(".metadata-info-container"));
245
- const outputHeaderContainer = append(diffEditorContainer, $(".output-header-container"));
246
- const outputInfoContainer = append(diffEditorContainer, $(".output-info-container"));
247
- const borderContainer = append(body, $(".border-container"));
248
- const leftBorder = append(borderContainer, $(".left-border"));
249
- const rightBorder = append(borderContainer, $(".right-border"));
250
- const topBorder = append(borderContainer, $(".top-border"));
251
- const bottomBorder = append(borderContainer, $(".bottom-border"));
252
- return {
253
- body,
254
- container,
255
- editorContainer,
256
- diffEditorContainer,
257
- diagonalFill,
258
- cellHeaderContainer,
259
- sourceEditor: editor,
260
- metadataHeaderContainer,
261
- metadataInfoContainer,
262
- outputHeaderContainer,
263
- outputInfoContainer,
264
- leftBorder,
265
- rightBorder,
266
- topBorder,
267
- bottomBorder,
268
- elementDisposables: ( new DisposableStore())
269
- };
270
- }
271
- _buildSourceEditor(sourceContainer) {
272
- return buildSourceEditor(this.instantiationService, this.notebookEditor, sourceContainer);
273
- }
274
- renderElement(element, index, templateData) {
275
- templateData.body.classList.remove("left", "right", "full");
276
- switch (element.type) {
277
- case "delete":
278
- templateData.elementDisposables.add(
279
- this.instantiationService.createInstance(DeletedElement, this.notebookEditor, element, templateData)
280
- );
281
- return;
282
- case "insert":
283
- templateData.elementDisposables.add(
284
- this.instantiationService.createInstance(InsertElement, this.notebookEditor, element, templateData)
285
- );
286
- return;
287
- }
288
- }
289
- disposeTemplate(templateData) {
290
- templateData.container.innerText = "";
291
- templateData.sourceEditor.dispose();
292
- templateData.elementDisposables.dispose();
293
- }
294
- disposeElement(element, index, templateData) {
295
- templateData.elementDisposables.clear();
296
- }
297
- };
298
- CellDiffSingleSideRenderer = CellDiffSingleSideRenderer_1 = ( __decorate([( __param(1, IInstantiationService))], CellDiffSingleSideRenderer));
299
- let CellDiffSideBySideRenderer = class CellDiffSideBySideRenderer {
300
- static {
301
- CellDiffSideBySideRenderer_1 = this;
302
- }
303
- static {
304
- this.TEMPLATE_ID = "cell_diff_side_by_side";
305
- }
306
- constructor(
307
- notebookEditor,
308
- instantiationService,
309
- contextMenuService,
310
- keybindingService,
311
- menuService,
312
- contextKeyService,
313
- notificationService,
314
- themeService,
315
- accessibilityService
316
- ) {
317
- this.notebookEditor = notebookEditor;
318
- this.instantiationService = instantiationService;
319
- this.contextMenuService = contextMenuService;
320
- this.keybindingService = keybindingService;
321
- this.menuService = menuService;
322
- this.contextKeyService = contextKeyService;
323
- this.notificationService = notificationService;
324
- this.themeService = themeService;
325
- this.accessibilityService = accessibilityService;
326
- }
327
- get templateId() {
328
- return CellDiffSideBySideRenderer_1.TEMPLATE_ID;
329
- }
330
- renderTemplate(container) {
331
- const body = $(".cell-body");
332
- append(container, body);
333
- const diffEditorContainer = $(".cell-diff-editor-container");
334
- append(body, diffEditorContainer);
335
- const cellHeaderContainer = append(diffEditorContainer, $(".input-header-container"));
336
- const sourceContainer = append(diffEditorContainer, $(".source-container"));
337
- const {
338
- editor,
339
- editorContainer
340
- } = this._buildSourceEditor(sourceContainer);
341
- const inputToolbarContainer = append(sourceContainer, $(".editor-input-toolbar-container"));
342
- const cellToolbarContainer = append(inputToolbarContainer, $("div.property-toolbar"));
343
- const toolbar = this.instantiationService.createInstance(WorkbenchToolBar, cellToolbarContainer, {
344
- actionViewItemProvider: (action, options) => {
345
- if (action instanceof MenuItemAction) {
346
- const item = ( new CodiconActionViewItem(action, {
347
- hoverDelegate: options.hoverDelegate
348
- }, this.keybindingService, this.notificationService, this.contextKeyService, this.themeService, this.contextMenuService, this.accessibilityService));
349
- return item;
350
- }
351
- return undefined;
352
- },
353
- highlightToggledItems: true
354
- });
355
- const metadataHeaderContainer = append(diffEditorContainer, $(".metadata-header-container"));
356
- const metadataInfoContainer = append(diffEditorContainer, $(".metadata-info-container"));
357
- const outputHeaderContainer = append(diffEditorContainer, $(".output-header-container"));
358
- const outputInfoContainer = append(diffEditorContainer, $(".output-info-container"));
359
- const borderContainer = append(body, $(".border-container"));
360
- const leftBorder = append(borderContainer, $(".left-border"));
361
- const rightBorder = append(borderContainer, $(".right-border"));
362
- const topBorder = append(borderContainer, $(".top-border"));
363
- const bottomBorder = append(borderContainer, $(".bottom-border"));
364
- const marginOverlay = ( new UnchangedCellOverlayWidget(body));
365
- const elementDisposables = ( new DisposableStore());
366
- return {
367
- body,
368
- container,
369
- diffEditorContainer,
370
- cellHeaderContainer,
371
- sourceEditor: editor,
372
- editorContainer,
373
- inputToolbarContainer,
374
- toolbar,
375
- metadataHeaderContainer,
376
- metadataInfoContainer,
377
- outputHeaderContainer,
378
- outputInfoContainer,
379
- leftBorder,
380
- rightBorder,
381
- topBorder,
382
- bottomBorder,
383
- marginOverlay,
384
- elementDisposables
385
- };
386
- }
387
- _buildSourceEditor(sourceContainer) {
388
- return buildDiffEditorWidget(this.instantiationService, this.notebookEditor, sourceContainer);
389
- }
390
- renderElement(element, index, templateData) {
391
- templateData.body.classList.remove("left", "right", "full");
392
- switch (element.type) {
393
- case "unchanged":
394
- templateData.elementDisposables.add(
395
- this.instantiationService.createInstance(ModifiedElement, this.notebookEditor, element, templateData)
396
- );
397
- return;
398
- case "modified":
399
- templateData.elementDisposables.add(
400
- this.instantiationService.createInstance(ModifiedElement, this.notebookEditor, element, templateData)
401
- );
402
- return;
403
- }
404
- }
405
- disposeTemplate(templateData) {
406
- templateData.container.innerText = "";
407
- templateData.sourceEditor.dispose();
408
- templateData.toolbar?.dispose();
409
- templateData.elementDisposables.dispose();
410
- }
411
- disposeElement(element, index, templateData) {
412
- if (templateData.toolbar) {
413
- templateData.toolbar.context = undefined;
414
- }
415
- templateData.elementDisposables.clear();
416
- }
417
- };
418
- CellDiffSideBySideRenderer = CellDiffSideBySideRenderer_1 = ( __decorate([( __param(1, IInstantiationService)), ( __param(2, IContextMenuService)), ( __param(3, IKeybindingService)), ( __param(4, IMenuService)), ( __param(5, IContextKeyService)), ( __param(6, INotificationService)), ( __param(7, IThemeService)), ( __param(8, IAccessibilityService))], CellDiffSideBySideRenderer));
419
- class NotebookMouseController extends MouseController {
420
- onViewPointer(e) {
421
- if (isMonacoEditor(e.browserEvent.target)) {
422
- const focus = typeof e.index === "undefined" ? [] : [e.index];
423
- this.list.setFocus(focus, e.browserEvent);
424
- } else {
425
- super.onViewPointer(e);
426
- }
427
- }
428
- }
429
- let NotebookTextDiffList = class NotebookTextDiffList extends WorkbenchList {
430
- get rowsContainer() {
431
- return this.view.containerDomNode;
432
- }
433
- constructor(
434
- listUser,
435
- container,
436
- delegate,
437
- renderers,
438
- contextKeyService,
439
- options,
440
- listService,
441
- configurationService,
442
- instantiationService
443
- ) {
444
- super(
445
- listUser,
446
- container,
447
- delegate,
448
- renderers,
449
- options,
450
- contextKeyService,
451
- listService,
452
- configurationService,
453
- instantiationService
454
- );
455
- }
456
- createMouseController(options) {
457
- return ( new NotebookMouseController(this));
458
- }
459
- getCellViewScrollTop(element) {
460
- const index = this.indexOf(element);
461
- return this.view.elementTop(index);
462
- }
463
- getScrollHeight() {
464
- return this.view.scrollHeight;
465
- }
466
- triggerScrollFromMouseWheelEvent(browserEvent) {
467
- this.view.delegateScrollFromMouseWheelEvent(browserEvent);
468
- }
469
- delegateVerticalScrollbarPointerDown(browserEvent) {
470
- this.view.delegateVerticalScrollbarPointerDown(browserEvent);
471
- }
472
- clear() {
473
- super.splice(0, this.length);
474
- }
475
- updateElementHeight2(element, size) {
476
- const viewIndex = this.indexOf(element);
477
- const focused = this.getFocus();
478
- this.view.updateElementHeight(viewIndex, size, focused.length ? focused[0] : null);
479
- }
480
- style(styles) {
481
- const selectorSuffix = this.view.domId;
482
- if (!this.styleElement) {
483
- this.styleElement = createStyleSheet(this.view.domNode);
484
- }
485
- const suffix = selectorSuffix && `.${selectorSuffix}`;
486
- const content = [];
487
- if (styles.listBackground) {
488
- content.push(
489
- `.monaco-list${suffix} > div.monaco-scrollable-element > .monaco-list-rows { background: ${styles.listBackground}; }`
490
- );
491
- }
492
- if (styles.listFocusBackground) {
493
- content.push(
494
- `.monaco-list${suffix}:focus > div.monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.focused { background-color: ${styles.listFocusBackground}; }`
495
- );
496
- content.push(
497
- `.monaco-list${suffix}:focus > div.monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.focused:hover { background-color: ${styles.listFocusBackground}; }`
498
- );
499
- }
500
- if (styles.listFocusForeground) {
501
- content.push(
502
- `.monaco-list${suffix}:focus > div.monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.focused { color: ${styles.listFocusForeground}; }`
503
- );
504
- }
505
- if (styles.listActiveSelectionBackground) {
506
- content.push(
507
- `.monaco-list${suffix}:focus > div.monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.selected { background-color: ${styles.listActiveSelectionBackground}; }`
508
- );
509
- content.push(
510
- `.monaco-list${suffix}:focus > div.monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.selected:hover { background-color: ${styles.listActiveSelectionBackground}; }`
511
- );
512
- }
513
- if (styles.listActiveSelectionForeground) {
514
- content.push(
515
- `.monaco-list${suffix}:focus > div.monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.selected { color: ${styles.listActiveSelectionForeground}; }`
516
- );
517
- }
518
- if (styles.listFocusAndSelectionBackground) {
519
- content.push(`
520
- .monaco-drag-image${suffix},
521
- .monaco-list${suffix}:focus > div.monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.selected.focused { background-color: ${styles.listFocusAndSelectionBackground}; }
522
- `);
523
- }
524
- if (styles.listFocusAndSelectionForeground) {
525
- content.push(`
526
- .monaco-drag-image${suffix},
527
- .monaco-list${suffix}:focus > div.monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.selected.focused { color: ${styles.listFocusAndSelectionForeground}; }
528
- `);
529
- }
530
- if (styles.listInactiveFocusBackground) {
531
- content.push(
532
- `.monaco-list${suffix} > div.monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.focused { background-color: ${styles.listInactiveFocusBackground}; }`
533
- );
534
- content.push(
535
- `.monaco-list${suffix} > div.monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.focused:hover { background-color: ${styles.listInactiveFocusBackground}; }`
536
- );
537
- }
538
- if (styles.listInactiveSelectionBackground) {
539
- content.push(
540
- `.monaco-list${suffix} > div.monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.selected { background-color: ${styles.listInactiveSelectionBackground}; }`
541
- );
542
- content.push(
543
- `.monaco-list${suffix} > div.monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.selected:hover { background-color: ${styles.listInactiveSelectionBackground}; }`
544
- );
545
- }
546
- if (styles.listInactiveSelectionForeground) {
547
- content.push(
548
- `.monaco-list${suffix} > div.monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.selected { color: ${styles.listInactiveSelectionForeground}; }`
549
- );
550
- }
551
- if (styles.listHoverBackground) {
552
- content.push(
553
- `.monaco-list${suffix}:not(.drop-target) > div.monaco-scrollable-element > .monaco-list-rows > .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${styles.listHoverBackground}; }`
554
- );
555
- }
556
- if (styles.listHoverForeground) {
557
- content.push(
558
- `.monaco-list${suffix} > div.monaco-scrollable-element > .monaco-list-rows > .monaco-list-row:hover:not(.selected):not(.focused) { color: ${styles.listHoverForeground}; }`
559
- );
560
- }
561
- if (styles.listSelectionOutline) {
562
- content.push(
563
- `.monaco-list${suffix} > div.monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.selected { outline: 1px dotted ${styles.listSelectionOutline}; outline-offset: -1px; }`
564
- );
565
- }
566
- if (styles.listFocusOutline) {
567
- content.push(`
568
- .monaco-drag-image${suffix},
569
- .monaco-list${suffix}:focus > div.monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.focused { outline: 1px solid ${styles.listFocusOutline}; outline-offset: -1px; }
570
- `);
571
- }
572
- if (styles.listInactiveFocusOutline) {
573
- content.push(
574
- `.monaco-list${suffix} > div.monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.focused { outline: 1px dotted ${styles.listInactiveFocusOutline}; outline-offset: -1px; }`
575
- );
576
- }
577
- if (styles.listHoverOutline) {
578
- content.push(
579
- `.monaco-list${suffix} > div.monaco-scrollable-element > .monaco-list-rows > .monaco-list-row:hover { outline: 1px dashed ${styles.listHoverOutline}; outline-offset: -1px; }`
580
- );
581
- }
582
- if (styles.listDropOverBackground) {
583
- content.push(`
584
- .monaco-list${suffix}.drop-target,
585
- .monaco-list${suffix} > div.monaco-scrollable-element > .monaco-list-rows.drop-target,
586
- .monaco-list${suffix} > div.monaco-scrollable-element > .monaco-list-row.drop-target { background-color: ${styles.listDropOverBackground} !important; color: inherit !important; }
587
- `);
588
- }
589
- const newStyles = content.join("\n");
590
- if (newStyles !== this.styleElement.textContent) {
591
- this.styleElement.textContent = newStyles;
592
- }
593
- }
594
- };
595
- NotebookTextDiffList = ( __decorate([( __param(6, IListService)), ( __param(7, IConfigurationService)), ( __param(8, IInstantiationService))], NotebookTextDiffList));
596
- function buildDiffEditorWidget(instantiationService, notebookEditor, sourceContainer, options = {}) {
597
- const editorContainer = append(sourceContainer, $(".editor-container"));
598
- const editor = instantiationService.createInstance(DiffEditorWidget, editorContainer, {
599
- ...fixedDiffEditorOptions,
600
- overflowWidgetsDomNode: notebookEditor.getOverflowContainerDomNode(),
601
- originalEditable: false,
602
- ignoreTrimWhitespace: false,
603
- automaticLayout: false,
604
- dimension: {
605
- height: 0,
606
- width: 0
607
- },
608
- renderSideBySide: true,
609
- useInlineViewWhenSpaceIsLimited: false,
610
- ...options
611
- }, {
612
- originalEditor: getOptimizedNestedCodeEditorWidgetOptions(),
613
- modifiedEditor: getOptimizedNestedCodeEditorWidgetOptions()
614
- });
615
- return {
616
- editor,
617
- editorContainer
618
- };
619
- }
620
- function buildSourceEditor(instantiationService, notebookEditor, sourceContainer, options = {}) {
621
- const editorContainer = append(sourceContainer, $(".editor-container"));
622
- const skipContributions = ["editor.contrib.emptyTextEditorHint"];
623
- const editor = instantiationService.createInstance(CodeEditorWidget, editorContainer, {
624
- ...fixedEditorOptions,
625
- glyphMargin: false,
626
- dimension: {
627
- width: (notebookEditor.getLayoutInfo().width - 2 * DIFF_CELL_MARGIN) / 2 - 18,
628
- height: 0
629
- },
630
- automaticLayout: false,
631
- overflowWidgetsDomNode: notebookEditor.getOverflowContainerDomNode(),
632
- allowVariableLineHeights: false,
633
- readOnly: true
634
- }, {
635
- contributions: EditorExtensionsRegistry.getEditorContributions().filter(c => skipContributions.indexOf(c.id) === -1)
636
- });
637
- return {
638
- editor,
639
- editorContainer
640
- };
641
- }
642
-
643
- export { CellDiffPlaceholderRenderer, CellDiffSideBySideRenderer, CellDiffSingleSideRenderer, NotebookCellTextDiffListDelegate, NotebookDocumentMetadataDiffRenderer, NotebookMouseController, NotebookTextDiffList };
@@ -1,30 +0,0 @@
1
- import { Themable } from "../../../../../platform/theme/common/themeService.js";
2
- import { IThemeService } from "../../../../../platform/theme/common/themeService.service.js";
3
- import { IDiffElementViewModelBase } from "./diffElementViewModel.js";
4
- import { NotebookDiffEditorEventDispatcher } from "./eventDispatcher.js";
5
- import { INotebookTextDiffEditor } from "./notebookDiffEditorBrowser.js";
6
- export declare class NotebookDiffOverviewRuler extends Themable {
7
- readonly notebookEditor: INotebookTextDiffEditor;
8
- readonly width: number;
9
- private readonly _domNode;
10
- private readonly _overviewViewportDomElement;
11
- private _diffElementViewModels;
12
- private _lanes;
13
- private _insertColor;
14
- private _insertColorHex;
15
- private _removeColor;
16
- private _removeColorHex;
17
- private readonly _disposables;
18
- private _renderAnimationFrame;
19
- constructor(notebookEditor: INotebookTextDiffEditor, width: number, container: HTMLElement, themeService: IThemeService);
20
- private applyColors;
21
- layout(): void;
22
- updateViewModels(elements: readonly IDiffElementViewModelBase[], eventDispatcher: NotebookDiffEditorEventDispatcher | undefined): void;
23
- private _scheduleRender;
24
- private _onRenderScheduled;
25
- private _layoutNow;
26
- private _renderOverviewViewport;
27
- private _computeOverviewViewport;
28
- private _renderCanvas;
29
- dispose(): void;
30
- }