@codingame/monaco-vscode-api 29.1.0 → 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,51 +0,0 @@
1
- import { Disposable } from "../../../../../../base/common/lifecycle.js";
2
- import { ILanguageService } from "../../../../../../editor/common/languages/language.service.js";
3
- import { NotebookTextModel } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/contrib/notebook/common/model/notebookTextModel";
4
- import { CellDiffInfo } from "../notebookDiffViewModel.js";
5
- import { INotebookEditor } from "../../notebookBrowser.js";
6
- import { MenuId } from "../../../../../../platform/actions/common/actions.js";
7
- import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js";
8
- import { IActionViewItemProvider } from "../../../../../../base/browser/ui/actionbar/actionbar.js";
9
- export interface INotebookDeletedCellDecorator {
10
- getTop(deletedIndex: number): number | undefined;
11
- }
12
- export declare class NotebookDeletedCellDecorator extends Disposable implements INotebookDeletedCellDecorator {
13
- private readonly _notebookEditor;
14
- private readonly toolbar;
15
- private readonly languageService;
16
- private readonly instantiationService;
17
- private readonly zoneRemover;
18
- private readonly createdViewZones;
19
- private readonly deletedCellInfos;
20
- constructor(_notebookEditor: INotebookEditor, toolbar: {
21
- menuId: MenuId;
22
- className: string;
23
- telemetrySource?: string;
24
- argFactory: (deletedCellIndex: number) => any;
25
- actionViewItemProvider?: IActionViewItemProvider;
26
- } | undefined, languageService: ILanguageService, instantiationService: IInstantiationService);
27
- getTop(deletedIndex: number): number | undefined;
28
- reveal(deletedIndex: number): void;
29
- apply(diffInfo: CellDiffInfo[], original: NotebookTextModel): void;
30
- clear(): void;
31
- private _createWidget;
32
- private _createWidgetImpl;
33
- }
34
- export declare class NotebookDeletedCellWidget extends Disposable {
35
- private readonly _notebookEditor;
36
- private readonly _toolbarOptions;
37
- private readonly code;
38
- private readonly language;
39
- private readonly _originalIndex;
40
- private readonly languageService;
41
- private readonly instantiationService;
42
- private readonly container;
43
- constructor(_notebookEditor: INotebookEditor, _toolbarOptions: {
44
- menuId: MenuId;
45
- className: string;
46
- telemetrySource?: string;
47
- argFactory: (deletedCellIndex: number) => any;
48
- actionViewItemProvider?: IActionViewItemProvider;
49
- } | undefined, code: string, language: string, container: HTMLElement, _originalIndex: number, languageService: ILanguageService, instantiationService: IInstantiationService);
50
- render(): Promise<number>;
51
- }
@@ -1,265 +0,0 @@
1
-
2
- import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
3
- import { createTrustedTypesPolicy } from '../../../../../../base/browser/trustedTypes.js';
4
- import { Disposable, DisposableStore, toDisposable, dispose } from '../../../../../../base/common/lifecycle.js';
5
- import { splitLines } from '../../../../../../base/common/strings.js';
6
- import { EditorOption } from '../../../../../../editor/common/config/editorOptions.js';
7
- import { ILanguageService } from '../../../../../../editor/common/languages/language.service.js';
8
- import { tokenizeToString } from '../../../../../../editor/common/languages/textToHtmlTokenizer.js';
9
- import { DefaultLineHeight } from '../diffElementViewModel.js';
10
- import { NotebookOverviewRulerLane } from '../../notebookBrowser.js';
11
- import { createElement, append, $ } from '../../../../../../base/browser/dom.js';
12
- import { MenuWorkbenchToolBar, HiddenItemStrategy } from '../../../../../../platform/actions/browser/toolbar.js';
13
- import { IInstantiationService } from '../../../../../../platform/instantiation/common/instantiation.js';
14
- import { ServiceCollection } from '../../../../../../platform/instantiation/common/serviceCollection.js';
15
- import { IContextKeyService } from '../../../../../../platform/contextkey/common/contextkey.service.js';
16
- import { overviewRulerDeletedForeground } from '../../../../scm/common/quickDiff.js';
17
-
18
- const ttPolicy = createTrustedTypesPolicy("notebookRenderer", {
19
- createHTML: value => value
20
- });
21
- let NotebookDeletedCellDecorator = class NotebookDeletedCellDecorator extends Disposable {
22
- constructor(_notebookEditor, toolbar, languageService, instantiationService) {
23
- super();
24
- this._notebookEditor = _notebookEditor;
25
- this.toolbar = toolbar;
26
- this.languageService = languageService;
27
- this.instantiationService = instantiationService;
28
- this.zoneRemover = this._register(( new DisposableStore()));
29
- this.createdViewZones = ( new Map());
30
- this.deletedCellInfos = ( new Map());
31
- }
32
- getTop(deletedIndex) {
33
- const info = this.deletedCellInfos.get(deletedIndex);
34
- if (!info) {
35
- return;
36
- }
37
- if (info.previousIndex === -1) {
38
- return 0;
39
- }
40
- const cells = this._notebookEditor.getCellsInRange({
41
- start: info.previousIndex,
42
- end: info.previousIndex + 1
43
- });
44
- if (!cells.length) {
45
- return this._notebookEditor.getLayoutInfo().height + info.offset;
46
- }
47
- const cell = cells[0];
48
- const cellHeight = this._notebookEditor.getHeightOfElement(cell);
49
- const top = this._notebookEditor.getAbsoluteTopOfElement(cell);
50
- return top + cellHeight + info.offset;
51
- }
52
- reveal(deletedIndex) {
53
- const top = this.getTop(deletedIndex);
54
- if (typeof top === "number") {
55
- this._notebookEditor.focusContainer();
56
- this._notebookEditor.revealOffsetInCenterIfOutsideViewport(top);
57
- const info = this.deletedCellInfos.get(deletedIndex);
58
- if (info) {
59
- const prevIndex = info.previousIndex === -1 ? 0 : info.previousIndex;
60
- this._notebookEditor.setFocus({
61
- start: prevIndex,
62
- end: prevIndex
63
- });
64
- this._notebookEditor.setSelections([{
65
- start: prevIndex,
66
- end: prevIndex
67
- }]);
68
- }
69
- }
70
- }
71
- apply(diffInfo, original) {
72
- this.clear();
73
- let currentIndex = -1;
74
- const deletedCellsToRender = {
75
- cells: [],
76
- index: 0
77
- };
78
- diffInfo.forEach(diff => {
79
- if (diff.type === "delete") {
80
- const deletedCell = original.cells[diff.originalCellIndex];
81
- if (deletedCell) {
82
- deletedCellsToRender.cells.push({
83
- cell: deletedCell,
84
- originalIndex: diff.originalCellIndex,
85
- previousIndex: currentIndex
86
- });
87
- deletedCellsToRender.index = currentIndex;
88
- }
89
- } else {
90
- if (deletedCellsToRender.cells.length) {
91
- this._createWidget(deletedCellsToRender.index + 1, deletedCellsToRender.cells);
92
- deletedCellsToRender.cells.length = 0;
93
- }
94
- currentIndex = diff.modifiedCellIndex;
95
- }
96
- });
97
- if (deletedCellsToRender.cells.length) {
98
- this._createWidget(deletedCellsToRender.index + 1, deletedCellsToRender.cells);
99
- }
100
- }
101
- clear() {
102
- this.deletedCellInfos.clear();
103
- this.zoneRemover.clear();
104
- }
105
- _createWidget(index, cells) {
106
- this._createWidgetImpl(index, cells);
107
- }
108
- async _createWidgetImpl(index, cells) {
109
- const rootContainer = createElement("div");
110
- const widgets = [];
111
- const heights = await Promise.all(( cells.map(async cell => {
112
- const widget = ( new NotebookDeletedCellWidget(
113
- this._notebookEditor,
114
- this.toolbar,
115
- cell.cell.getValue(),
116
- cell.cell.language,
117
- rootContainer,
118
- cell.originalIndex,
119
- this.languageService,
120
- this.instantiationService
121
- ));
122
- widgets.push(widget);
123
- const height = await widget.render();
124
- this.deletedCellInfos.set(cell.originalIndex, {
125
- height,
126
- previousIndex: cell.previousIndex,
127
- offset: 0
128
- });
129
- return height;
130
- })));
131
- Array.from(( this.deletedCellInfos.keys())).sort((a, b) => a - b).forEach(originalIndex => {
132
- const previousDeletedCell = this.deletedCellInfos.get(originalIndex - 1);
133
- if (previousDeletedCell) {
134
- const deletedCell = this.deletedCellInfos.get(originalIndex);
135
- if (deletedCell) {
136
- deletedCell.offset = previousDeletedCell.height + previousDeletedCell.offset;
137
- }
138
- }
139
- });
140
- const totalHeight = heights.reduce((prev, curr) => prev + curr, 0);
141
- this._notebookEditor.changeViewZones(accessor => {
142
- const notebookViewZone = {
143
- afterModelPosition: index,
144
- heightInPx: totalHeight + 4,
145
- domNode: rootContainer
146
- };
147
- const id = accessor.addZone(notebookViewZone);
148
- accessor.layoutZone(id);
149
- this.createdViewZones.set(index, id);
150
- const deletedCellOverviewRulereDecorationIds = this._notebookEditor.deltaCellDecorations([], [{
151
- viewZoneId: id,
152
- options: {
153
- overviewRuler: {
154
- color: overviewRulerDeletedForeground,
155
- position: NotebookOverviewRulerLane.Center
156
- }
157
- }
158
- }]);
159
- this.zoneRemover.add(toDisposable(() => {
160
- if (this.createdViewZones.get(index) === id) {
161
- this.createdViewZones.delete(index);
162
- }
163
- if (!this._notebookEditor.isDisposed) {
164
- this._notebookEditor.changeViewZones(accessor => {
165
- accessor.removeZone(id);
166
- dispose(widgets);
167
- });
168
- this._notebookEditor.deltaCellDecorations(deletedCellOverviewRulereDecorationIds, []);
169
- }
170
- }));
171
- });
172
- }
173
- };
174
- NotebookDeletedCellDecorator = ( __decorate([( __param(2, ILanguageService)), ( __param(3, IInstantiationService))], NotebookDeletedCellDecorator));
175
- let NotebookDeletedCellWidget = class NotebookDeletedCellWidget extends Disposable {
176
- constructor(
177
- _notebookEditor,
178
- _toolbarOptions,
179
- code,
180
- language,
181
- container,
182
- _originalIndex,
183
- languageService,
184
- instantiationService
185
- ) {
186
- super();
187
- this._notebookEditor = _notebookEditor;
188
- this._toolbarOptions = _toolbarOptions;
189
- this.code = code;
190
- this.language = language;
191
- this._originalIndex = _originalIndex;
192
- this.languageService = languageService;
193
- this.instantiationService = instantiationService;
194
- this.container = append(container, createElement("div"));
195
- this._register(toDisposable(() => {
196
- container.removeChild(this.container);
197
- }));
198
- }
199
- async render() {
200
- const code = this.code;
201
- const languageId = this.language;
202
- const codeHtml = await tokenizeToString(this.languageService, code, languageId);
203
- const fontInfo = this._notebookEditor.getBaseCellEditorOptions(languageId).value;
204
- const fontFamilyVar = "--notebook-editor-font-family";
205
- const fontSizeVar = "--notebook-editor-font-size";
206
- const fontWeightVar = "--notebook-editor-font-weight";
207
- const editor = ( this._notebookEditor.codeEditors.map(c => c[1])).find(c => c);
208
- const layoutInfo = editor?.getOptions().get(EditorOption.layoutInfo);
209
- const style = `` + `font-family: var(${fontFamilyVar});` + `font-weight: var(${fontWeightVar});` + `font-size: var(${fontSizeVar});` + fontInfo.lineHeight ? `line-height: ${fontInfo.lineHeight}px;` : "" + layoutInfo?.contentLeft ? `margin-left: ${layoutInfo}px;` : "" + `white-space: pre;`;
210
- const rootContainer = this.container;
211
- rootContainer.classList.add("code-cell-row");
212
- if (this._toolbarOptions) {
213
- const toolbar = createElement("div");
214
- toolbar.className = this._toolbarOptions.className;
215
- rootContainer.appendChild(toolbar);
216
- const scopedInstaService = this._register(this.instantiationService.createChild(( new ServiceCollection([IContextKeyService, this._notebookEditor.scopedContextKeyService]))));
217
- const toolbarWidget = scopedInstaService.createInstance(MenuWorkbenchToolBar, toolbar, this._toolbarOptions.menuId, {
218
- telemetrySource: this._toolbarOptions.telemetrySource,
219
- hiddenItemStrategy: HiddenItemStrategy.NoHide,
220
- toolbarOptions: {
221
- primaryGroup: () => true
222
- },
223
- menuOptions: {
224
- renderShortTitle: true,
225
- arg: this._toolbarOptions.argFactory(this._originalIndex)
226
- },
227
- actionViewItemProvider: this._toolbarOptions.actionViewItemProvider
228
- });
229
- this._store.add(toolbarWidget);
230
- toolbar.style.position = "absolute";
231
- toolbar.style.right = "40px";
232
- toolbar.style.zIndex = "10";
233
- toolbar.classList.add("hover");
234
- }
235
- const container = append(rootContainer, $(".cell-inner-container"));
236
- container.style.position = "relative";
237
- const focusIndicatorLeft = append(container, $(
238
- ".cell-focus-indicator.cell-focus-indicator-side.cell-focus-indicator-left"
239
- ));
240
- const cellContainer = append(container, $(".cell.code"));
241
- append(focusIndicatorLeft, $("div.execution-count-label"));
242
- const editorPart = append(cellContainer, $(".cell-editor-part"));
243
- let editorContainer = append(editorPart, $(".cell-editor-container"));
244
- editorContainer = append(editorContainer, $(".code", {
245
- style
246
- }));
247
- if (fontInfo.fontFamily) {
248
- editorContainer.style.setProperty(fontFamilyVar, fontInfo.fontFamily);
249
- }
250
- if (fontInfo.fontSize) {
251
- editorContainer.style.setProperty(fontSizeVar, `${fontInfo.fontSize}px`);
252
- }
253
- if (fontInfo.fontWeight) {
254
- editorContainer.style.setProperty(fontWeightVar, fontInfo.fontWeight);
255
- }
256
- editorContainer.innerHTML = (ttPolicy?.createHTML(codeHtml) || codeHtml);
257
- const lineCount = splitLines(code).length;
258
- const height = (lineCount * (fontInfo.lineHeight || DefaultLineHeight)) + 12 + 12;
259
- const totalHeight = height + 16 + 16;
260
- return totalHeight;
261
- }
262
- };
263
- NotebookDeletedCellWidget = ( __decorate([( __param(6, ILanguageService)), ( __param(7, IInstantiationService))], NotebookDeletedCellWidget));
264
-
265
- export { NotebookDeletedCellDecorator, NotebookDeletedCellWidget };
@@ -1,24 +0,0 @@
1
- import { Disposable } from "../../../../../../base/common/lifecycle.js";
2
- import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js";
3
- import { INotebookEditorWorkerService } from "../../../common/services/notebookWorkerService.service.js";
4
- import { INotebookEditorContribution, INotebookEditor } from "../../notebookBrowser.js";
5
- import { INotebookLoggingService } from "../../../common/notebookLoggingService.service.js";
6
- export declare class NotebookInlineDiffDecorationContribution extends Disposable implements INotebookEditorContribution {
7
- private readonly notebookEditor;
8
- private readonly notebookEditorWorkerService;
9
- private readonly instantiationService;
10
- private readonly logService;
11
- static ID: string;
12
- private previous?;
13
- private insertedCellDecorator;
14
- private deletedCellDecorator;
15
- private readonly cellDecorators;
16
- private cachedNotebookDiff?;
17
- private listeners;
18
- constructor(notebookEditor: INotebookEditor, notebookEditorWorkerService: INotebookEditorWorkerService, instantiationService: IInstantiationService, logService: INotebookLoggingService);
19
- private clear;
20
- dispose(): void;
21
- private initialize;
22
- private _update;
23
- private updateCells;
24
- }
@@ -1,185 +0,0 @@
1
-
2
- import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
3
- import { Event } from '../../../../../../base/common/event.js';
4
- import { Disposable } from '../../../../../../base/common/lifecycle.js';
5
- import '../../../../../../base/common/observableInternal/index.js';
6
- import { IInstantiationService } from '../../../../../../platform/instantiation/common/instantiation.js';
7
- import { INotebookEditorWorkerService } from '../../../common/services/notebookWorkerService.service.js';
8
- import { registerNotebookContribution } from '../../notebookEditorExtensions.js';
9
- import { NotebookCellDiffDecorator } from './notebookCellDiffDecorator.js';
10
- import { NotebookDeletedCellDecorator } from './notebookDeletedCellDecorator.js';
11
- import { NotebookInsertedCellDecorator } from './notebookInsertedCellDecorator.js';
12
- import { INotebookLoggingService } from '../../../common/notebookLoggingService.service.js';
13
- import { computeDiff } from '../../../common/notebookDiff.js';
14
- import '../../../../../../platform/instantiation/common/extensions.js';
15
- import './notebookOriginalModelRefFactory.js';
16
- import './notebookOriginalCellModelFactory.js';
17
- import { autorun } from '../../../../../../base/common/observableInternal/reactions/autorun.js';
18
-
19
- let NotebookInlineDiffDecorationContribution = class NotebookInlineDiffDecorationContribution extends Disposable {
20
- static {
21
- this.ID = "workbench.notebook.inlineDiffDecoration";
22
- }
23
- constructor(
24
- notebookEditor,
25
- notebookEditorWorkerService,
26
- instantiationService,
27
- logService
28
- ) {
29
- super();
30
- this.notebookEditor = notebookEditor;
31
- this.notebookEditorWorkerService = notebookEditorWorkerService;
32
- this.instantiationService = instantiationService;
33
- this.logService = logService;
34
- this.cellDecorators = ( new Map());
35
- this.listeners = [];
36
- this.logService.debug("inlineDiff", "Watching for previous model");
37
- this._register(autorun(reader => {
38
- this.previous = this.notebookEditor.notebookOptions.previousModelToCompare.read(reader);
39
- if (this.previous) {
40
- this.logService.debug("inlineDiff", "Previous model set");
41
- if (this.notebookEditor.hasModel()) {
42
- this.initialize();
43
- } else {
44
- this.logService.debug("inlineDiff", "Waiting for model to attach");
45
- this.listeners.push(
46
- Event.once(this.notebookEditor.onDidAttachViewModel)(() => this.initialize())
47
- );
48
- }
49
- }
50
- }));
51
- }
52
- clear() {
53
- this.listeners.forEach(l => l.dispose());
54
- this.cellDecorators.forEach((v, cell) => {
55
- v.dispose();
56
- this.cellDecorators.delete(cell);
57
- });
58
- this.insertedCellDecorator?.dispose();
59
- this.deletedCellDecorator?.dispose();
60
- this.cachedNotebookDiff = undefined;
61
- this.listeners = [];
62
- this.logService.debug("inlineDiff", "Cleared decorations and listeners");
63
- }
64
- dispose() {
65
- this.logService.debug("inlineDiff", "Disposing");
66
- this.clear();
67
- super.dispose();
68
- }
69
- initialize() {
70
- this.clear();
71
- if (!this.previous) {
72
- return;
73
- }
74
- this.insertedCellDecorator = this.instantiationService.createInstance(NotebookInsertedCellDecorator, this.notebookEditor);
75
- this.deletedCellDecorator = this.instantiationService.createInstance(NotebookDeletedCellDecorator, this.notebookEditor, undefined);
76
- this._update();
77
- const onVisibleChange = Event.debounce(
78
- this.notebookEditor.onDidChangeVisibleRanges,
79
- e => e,
80
- 100,
81
- undefined,
82
- undefined,
83
- undefined,
84
- this._store
85
- );
86
- this.listeners.push(onVisibleChange(() => this._update()));
87
- this.listeners.push(this.notebookEditor.onDidChangeModel(() => this._update()));
88
- if (this.notebookEditor.textModel) {
89
- const onContentChange = Event.debounce(
90
- this.notebookEditor.textModel.onDidChangeContent,
91
- (_, event) => event,
92
- 100,
93
- undefined,
94
- undefined,
95
- undefined,
96
- this._store
97
- );
98
- const onOriginalContentChange = Event.debounce(
99
- this.previous.onDidChangeContent,
100
- (_, event) => event,
101
- 100,
102
- undefined,
103
- undefined,
104
- undefined,
105
- this._store
106
- );
107
- this.listeners.push(onContentChange(() => this._update()));
108
- this.listeners.push(onOriginalContentChange(() => this._update()));
109
- }
110
- this.logService.debug("inlineDiff", "Initialized");
111
- }
112
- async _update() {
113
- const current = this.notebookEditor.getViewModel()?.notebookDocument;
114
- if (!this.previous || !current) {
115
- this.logService.debug("inlineDiff", "Update skipped - no original or current document");
116
- return;
117
- }
118
- if (!this.cachedNotebookDiff || this.cachedNotebookDiff.originalVersion !== this.previous.versionId || this.cachedNotebookDiff.version !== current.versionId) {
119
- let diffInfo = {
120
- cellDiffInfo: []
121
- };
122
- try {
123
- const notebookDiff = await this.notebookEditorWorkerService.computeDiff(this.previous.uri, current.uri);
124
- diffInfo = computeDiff(this.previous, current, notebookDiff);
125
- } catch (e) {
126
- this.logService.error("inlineDiff", "Error computing diff:\n" + e);
127
- return;
128
- }
129
- this.cachedNotebookDiff = {
130
- cellDiffInfo: diffInfo.cellDiffInfo,
131
- originalVersion: this.previous.versionId,
132
- version: current.versionId
133
- };
134
- this.insertedCellDecorator?.apply(diffInfo.cellDiffInfo);
135
- this.deletedCellDecorator?.apply(diffInfo.cellDiffInfo, this.previous);
136
- }
137
- await this.updateCells(this.previous, current, this.cachedNotebookDiff.cellDiffInfo);
138
- }
139
- async updateCells(original, modified, cellDiffs) {
140
- const validDiffDecorators = ( new Set());
141
- cellDiffs.forEach(diff => {
142
- if (diff.type === "modified") {
143
- const modifiedCell = modified.cells[diff.modifiedCellIndex];
144
- const originalCell = original.cells[diff.originalCellIndex];
145
- const editor = this.notebookEditor.codeEditors.find(([vm]) => vm.handle === modifiedCell.handle)?.[1];
146
- if (editor) {
147
- const currentDecorator = this.cellDecorators.get(modifiedCell);
148
- if ((currentDecorator?.modifiedCell !== modifiedCell || currentDecorator?.originalCell !== originalCell)) {
149
- currentDecorator?.dispose();
150
- const decorator = this.instantiationService.createInstance(
151
- NotebookCellDiffDecorator,
152
- this.notebookEditor,
153
- modifiedCell,
154
- originalCell,
155
- editor
156
- );
157
- this.cellDecorators.set(modifiedCell, decorator);
158
- validDiffDecorators.add(decorator);
159
- this._register(editor.onDidDispose(() => {
160
- decorator.dispose();
161
- if (this.cellDecorators.get(modifiedCell) === decorator) {
162
- this.cellDecorators.delete(modifiedCell);
163
- }
164
- }));
165
- } else if (currentDecorator) {
166
- validDiffDecorators.add(currentDecorator);
167
- }
168
- }
169
- }
170
- });
171
- this.cellDecorators.forEach((v, cell) => {
172
- if (!( validDiffDecorators.has(v))) {
173
- v.dispose();
174
- this.cellDecorators.delete(cell);
175
- }
176
- });
177
- }
178
- };
179
- NotebookInlineDiffDecorationContribution = ( __decorate([( __param(1, INotebookEditorWorkerService)), ( __param(2, IInstantiationService)), ( __param(3, INotebookLoggingService))], NotebookInlineDiffDecorationContribution));
180
- registerNotebookContribution(
181
- NotebookInlineDiffDecorationContribution.ID,
182
- NotebookInlineDiffDecorationContribution
183
- );
184
-
185
- export { NotebookInlineDiffDecorationContribution };
@@ -1,28 +0,0 @@
1
- import * as DOM from "../../../../../../base/browser/dom.js";
2
- import { CodeWindow } from "../../../../../../base/browser/window.js";
3
- import { Disposable } from "../../../../../../base/common/lifecycle.js";
4
- import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js";
5
- import { NotebookTextModel } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/contrib/notebook/common/model/notebookTextModel";
6
- import { NotebookDiffEditorInput } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/contrib/notebook/common/notebookDiffEditorInput";
7
- import { INotebookEditorOptions } from "../../notebookBrowser.js";
8
- import { NotebookEditorWidget } from "../../notebookEditorWidget.js";
9
- import { NotebookOptions } from "../../notebookOptions.js";
10
- import { INotebookEditorService } from "../../services/notebookEditorService.service.js";
11
- export declare class NotebookInlineDiffWidget extends Disposable {
12
- private readonly rootElement;
13
- private readonly groupId;
14
- private readonly window;
15
- private readonly options;
16
- private dimension;
17
- private readonly instantiationService;
18
- private readonly widgetService;
19
- private widget;
20
- private position;
21
- get editorWidget(): NotebookEditorWidget | undefined;
22
- constructor(rootElement: HTMLElement, groupId: number, window: CodeWindow, options: NotebookOptions, dimension: DOM.Dimension | undefined, instantiationService: IInstantiationService, widgetService: INotebookEditorService);
23
- show(input: NotebookDiffEditorInput, model: NotebookTextModel | undefined, previousModel: NotebookTextModel | undefined, options: INotebookEditorOptions | undefined): Promise<void>;
24
- hide(): void;
25
- setLayout(dimension: DOM.Dimension, position: DOM.IDomPosition): void;
26
- private createNotebookWidget;
27
- dispose(): void;
28
- }
@@ -1,104 +0,0 @@
1
-
2
- import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
3
- import { setParentFlowTo } from '../../../../../../base/browser/dom.js';
4
- import { Disposable } from '../../../../../../base/common/lifecycle.js';
5
- import { EditorExtensionsRegistry } from '../../../../../../editor/browser/editorExtensions.js';
6
- import { MenuId } from '../../../../../../platform/actions/common/actions.js';
7
- import { IInstantiationService } from '../../../../../../platform/instantiation/common/instantiation.js';
8
- import { NotebookInlineDiffDecorationContribution } from './notebookInlineDiff.js';
9
- import { NotebookEditorExtensionsRegistry } from '../../notebookEditorExtensions.js';
10
- import { INotebookEditorService } from '../../services/notebookEditorService.service.js';
11
-
12
- let NotebookInlineDiffWidget = class NotebookInlineDiffWidget extends Disposable {
13
- get editorWidget() {
14
- return this.widget.value;
15
- }
16
- constructor(
17
- rootElement,
18
- groupId,
19
- window,
20
- options,
21
- dimension,
22
- instantiationService,
23
- widgetService
24
- ) {
25
- super();
26
- this.rootElement = rootElement;
27
- this.groupId = groupId;
28
- this.window = window;
29
- this.options = options;
30
- this.dimension = dimension;
31
- this.instantiationService = instantiationService;
32
- this.widgetService = widgetService;
33
- this.widget = {
34
- value: undefined
35
- };
36
- }
37
- async show(input, model, previousModel, options) {
38
- if (!this.widget.value) {
39
- this.createNotebookWidget(input, this.groupId, this.rootElement);
40
- }
41
- if (this.dimension) {
42
- this.widget.value?.layout(this.dimension, this.rootElement, this.position);
43
- }
44
- if (model) {
45
- await this.widget.value?.setOptions({
46
- ...options
47
- });
48
- this.widget.value?.notebookOptions.previousModelToCompare.set(previousModel, undefined);
49
- await this.widget.value.setModel(model, options?.viewState);
50
- }
51
- }
52
- hide() {
53
- if (this.widget.value) {
54
- this.widget.value.notebookOptions.previousModelToCompare.set(undefined, undefined);
55
- this.widget.value.onWillHide();
56
- }
57
- }
58
- setLayout(dimension, position) {
59
- this.dimension = dimension;
60
- this.position = position;
61
- }
62
- createNotebookWidget(input, groupId, rootElement) {
63
- const contributions = NotebookEditorExtensionsRegistry.getSomeEditorContributions([NotebookInlineDiffDecorationContribution.ID]);
64
- const menuIds = {
65
- notebookToolbar: MenuId.NotebookToolbar,
66
- cellTitleToolbar: MenuId.NotebookCellTitle,
67
- cellDeleteToolbar: MenuId.NotebookCellDelete,
68
- cellInsertToolbar: MenuId.NotebookCellBetween,
69
- cellTopInsertToolbar: MenuId.NotebookCellListTop,
70
- cellExecuteToolbar: MenuId.NotebookCellExecute,
71
- cellExecutePrimary: undefined
72
- };
73
- const skipContributions = [
74
- "editor.contrib.review",
75
- "editor.contrib.floatingClickMenu",
76
- "editor.contrib.dirtydiff",
77
- "editor.contrib.testingOutputPeek",
78
- "editor.contrib.testingDecorations",
79
- "store.contrib.stickyScrollController",
80
- "editor.contrib.findController",
81
- "editor.contrib.emptyTextEditorHint"
82
- ];
83
- const cellEditorContributions = EditorExtensionsRegistry.getEditorContributions().filter(c => skipContributions.indexOf(c.id) === -1);
84
- this.widget = this.instantiationService.invokeFunction(this.widgetService.retrieveWidget, groupId, input, {
85
- contributions,
86
- menuIds,
87
- cellEditorContributions,
88
- options: this.options
89
- }, this.dimension, this.window);
90
- if (this.rootElement && this.widget.value.getDomNode()) {
91
- this.rootElement.setAttribute("aria-flowto", this.widget.value.getDomNode().id || "");
92
- setParentFlowTo(this.widget.value.getDomNode(), this.rootElement);
93
- }
94
- }
95
- dispose() {
96
- super.dispose();
97
- if (this.widget.value) {
98
- this.widget.value.dispose();
99
- }
100
- }
101
- };
102
- NotebookInlineDiffWidget = ( __decorate([( __param(5, IInstantiationService)), ( __param(6, INotebookEditorService))], NotebookInlineDiffWidget));
103
-
104
- export { NotebookInlineDiffWidget };
@@ -1,10 +0,0 @@
1
- import { Disposable } from "../../../../../../base/common/lifecycle.js";
2
- import { CellDiffInfo } from "../notebookDiffViewModel.js";
3
- import { INotebookEditor } from "../../notebookBrowser.js";
4
- export declare class NotebookInsertedCellDecorator extends Disposable {
5
- private readonly notebookEditor;
6
- private readonly decorators;
7
- constructor(notebookEditor: INotebookEditor);
8
- apply(diffInfo: CellDiffInfo[]): void;
9
- clear(): void;
10
- }