@codingame/monaco-vscode-api 37.1.0 → 37.2.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 (313) hide show
  1. package/missing-services.js +6 -26
  2. package/package.json +8 -8
  3. package/services.d.ts +1 -1
  4. package/services.js +3 -3
  5. package/tools.d.ts +4 -0
  6. package/tools.js +24 -1
  7. package/vscode/src/vs/platform/product/common/product.js +1 -1
  8. package/vscode/src/vs/platform/webWorker/browser/webWorkerServiceImpl.js +2 -2
  9. package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.d.ts +63 -0
  10. package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +305 -0
  11. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +2 -2
  12. package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +1 -2
  13. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +1 -1
  14. package/vscode/src/vs/workbench/browser/media/code-icon.svg +1 -0
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.d.ts +1 -0
  16. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.js +2 -1
  17. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.d.ts +2 -2
  18. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.service.d.ts +1 -1
  19. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsBanner.d.ts +30 -0
  20. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsBanner.js +39 -0
  21. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service.d.ts +1 -1
  22. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.service.d.ts +1 -1
  23. package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +1 -1
  24. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.service.d.ts +1 -1
  25. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.d.ts +1 -1
  26. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariables.service.d.ts +1 -1
  27. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.service.d.ts +1 -1
  28. package/vscode/src/vs/workbench/contrib/chat/common/chatImageBuffer.d.ts +1 -0
  29. package/vscode/src/vs/workbench/contrib/chat/common/chatImageBuffer.js +29 -0
  30. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.d.ts +2 -2
  31. package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.service.d.ts +1 -1
  32. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.d.ts +1 -1
  33. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.service.d.ts +2 -2
  34. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.service.d.ts +1 -1
  35. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.d.ts +1 -1
  36. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service.d.ts +1 -1
  37. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service.d.ts +2 -2
  38. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginSource.d.ts +1 -1
  39. package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatParserTypes.d.ts +1 -1
  40. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolIds.d.ts +3 -0
  41. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolIds.js +7 -0
  42. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.d.ts +3 -3
  43. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +1 -1
  44. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +1 -1
  45. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.d.ts +1 -1
  46. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.d.ts +1 -1
  47. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.service.d.ts +1 -1
  48. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.d.ts +1 -1
  49. package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +1 -1
  50. package/vscode/src/vs/workbench/contrib/search/browser/AISearch/aiSearchModel.d.ts +1 -1
  51. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchModel.d.ts +1 -1
  52. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchModelBase.d.ts +1 -1
  53. package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/folderMatch.d.ts +1 -1
  54. package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/searchTreeCommon.d.ts +1 -1
  55. package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +4 -3
  56. package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcomeInput.d.ts +34 -0
  57. package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcomeInput.js +72 -0
  58. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.d.ts +44 -0
  59. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +96 -0
  60. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css +1148 -0
  61. package/vscode/src/vs/workbench/contrib/welcomeOnboarding/common/onboardingTypes.d.ts +81 -0
  62. package/vscode/src/vs/workbench/contrib/welcomeOnboarding/common/onboardingTypes.js +97 -0
  63. package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.d.ts +32 -0
  64. package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.js +45 -0
  65. package/vscode/src/vs/platform/agentHost/common/agentHostEnablementService.d.ts +0 -7
  66. package/vscode/src/vs/platform/agentHost/common/agentHostEnablementService.js +0 -92
  67. package/vscode/src/vs/platform/layout/browser/zIndexRegistry.d.ts +0 -12
  68. package/vscode/src/vs/platform/layout/browser/zIndexRegistry.js +0 -64
  69. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.d.ts +0 -262
  70. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.js +0 -865
  71. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatDynamicVariables.d.ts +0 -57
  72. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatDynamicVariables.js +0 -311
  73. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.d.ts +0 -15
  74. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +0 -80
  75. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.d.ts +0 -2
  76. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.js +0 -57
  77. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +0 -231
  78. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +0 -1850
  79. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.d.ts +0 -109
  80. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +0 -85
  81. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.d.ts +0 -140
  82. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.js +0 -186
  83. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatDynamicVariablesConstant.d.ts +0 -1
  84. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatDynamicVariablesConstant.js +0 -5
  85. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariables.d.ts +0 -46
  86. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariables.js +0 -17
  87. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +0 -253
  88. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +0 -20
  89. package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.d.ts +0 -34
  90. package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +0 -194
  91. package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.d.ts +0 -87
  92. package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.js +0 -69
  93. package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.d.ts +0 -300
  94. package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.js +0 -272
  95. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.d.ts +0 -25
  96. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.js +0 -178
  97. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +0 -78
  98. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +0 -51
  99. package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.d.ts +0 -67
  100. package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.js +0 -195
  101. package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.d.ts +0 -67
  102. package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +0 -294
  103. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +0 -212
  104. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +0 -955
  105. package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.d.ts +0 -31
  106. package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.js +0 -122
  107. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +0 -65
  108. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +0 -697
  109. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.d.ts +0 -150
  110. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.js +0 -142
  111. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +0 -50
  112. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +0 -77
  113. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +0 -77
  114. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +0 -120
  115. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +0 -10
  116. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +0 -23
  117. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/extensionPromptFileService.d.ts +0 -92
  118. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/extensionPromptFileService.js +0 -335
  119. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +0 -235
  120. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +0 -1673
  121. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +0 -202
  122. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +0 -872
  123. package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.d.ts +0 -35
  124. package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.js +0 -289
  125. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.d.ts +0 -72
  126. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.js +0 -600
  127. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.d.ts +0 -36
  128. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.js +0 -239
  129. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/editFileTool.d.ts +0 -22
  130. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/editFileTool.js +0 -143
  131. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.d.ts +0 -24
  132. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +0 -298
  133. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.d.ts +0 -25
  134. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.js +0 -177
  135. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.d.ts +0 -73
  136. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +0 -577
  137. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.d.ts +0 -11
  138. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.js +0 -90
  139. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.d.ts +0 -16
  140. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.js +0 -130
  141. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/taskCompleteTool.d.ts +0 -12
  142. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/taskCompleteTool.js +0 -53
  143. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolHelpers.d.ts +0 -5
  144. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolHelpers.js +0 -12
  145. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.d.ts +0 -10
  146. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.js +0 -92
  147. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +0 -38
  148. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +0 -518
  149. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.d.ts +0 -6
  150. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.js +0 -231
  151. package/vscode/src/vs/workbench/contrib/chat/common/tools/terminalToolIds.d.ts +0 -20
  152. package/vscode/src/vs/workbench/contrib/chat/common/tools/terminalToolIds.js +0 -17
  153. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.d.ts +0 -6
  154. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +0 -283
  155. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.d.ts +0 -91
  156. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +0 -340
  157. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.d.ts +0 -17
  158. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +0 -272
  159. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebook.css +0 -686
  160. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css +0 -348
  161. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellEditorHint.css +0 -8
  162. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellInsertToolbar.css +0 -92
  163. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellOutput.css +0 -119
  164. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellStatusBar.css +0 -79
  165. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellTitleToolbar.css +0 -61
  166. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookChatEditController.css +0 -55
  167. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookChatEditorOverlay.css +0 -63
  168. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookDnd.css +0 -79
  169. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookEditorStickyScroll.css +0 -63
  170. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFocusIndicator.css +0 -92
  171. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFolding.css +0 -79
  172. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookKernelActionViewItem.css +0 -24
  173. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookOutline.css +0 -61
  174. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookToolbar.css +0 -102
  175. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.d.ts +0 -27
  176. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +0 -131
  177. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookCellLayoutManager.d.ts +0 -18
  178. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookCellLayoutManager.js +0 -92
  179. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.d.ts +0 -105
  180. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +0 -673
  181. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorExtensions.d.ts +0 -9
  182. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorExtensions.js +0 -37
  183. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.d.ts +0 -354
  184. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +0 -2926
  185. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.d.ts +0 -29
  186. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +0 -36
  187. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookLogger.d.ts +0 -1
  188. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookLogger.js +0 -19
  189. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.d.ts +0 -200
  190. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +0 -591
  191. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookViewEvents.d.ts +0 -56
  192. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookViewEvents.js +0 -30
  193. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.d.ts +0 -99
  194. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.js +0 -131
  195. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.d.ts +0 -30
  196. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +0 -115
  197. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.d.ts +0 -28
  198. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +0 -158
  199. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.d.ts +0 -40
  200. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.js +0 -183
  201. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDecorations.d.ts +0 -10
  202. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDecorations.js +0 -66
  203. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.d.ts +0 -52
  204. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.js +0 -429
  205. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDragRenderer.d.ts +0 -6
  206. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDragRenderer.js +0 -108
  207. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.d.ts +0 -36
  208. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +0 -221
  209. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.d.ts +0 -17
  210. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.js +0 -142
  211. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocus.d.ts +0 -5
  212. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocus.js +0 -23
  213. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocusIndicator.d.ts +0 -18
  214. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocusIndicator.js +0 -104
  215. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.d.ts +0 -92
  216. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +0 -762
  217. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.d.ts +0 -15
  218. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.js +0 -58
  219. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.d.ts +0 -36
  220. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +0 -357
  221. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.d.ts +0 -6
  222. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.js +0 -32
  223. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.d.ts +0 -47
  224. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +0 -260
  225. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellWidgets.d.ts +0 -9
  226. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellWidgets.js +0 -10
  227. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatPart.d.ts +0 -10
  228. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatPart.js +0 -24
  229. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.d.ts +0 -182
  230. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +0 -796
  231. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.d.ts +0 -13
  232. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +0 -79
  233. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.d.ts +0 -30
  234. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +0 -126
  235. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellInput.d.ts +0 -6
  236. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellInput.js +0 -32
  237. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.d.ts +0 -8
  238. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +0 -50
  239. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.d.ts +0 -18
  240. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +0 -119
  241. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.d.ts +0 -57
  242. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +0 -443
  243. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.d.ts +0 -20
  244. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.js +0 -56
  245. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellEditorPool.d.ts +0 -24
  246. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellEditorPool.js +0 -121
  247. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.d.ts +0 -152
  248. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +0 -1288
  249. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.d.ts +0 -59
  250. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +0 -287
  251. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookRenderingCommon.d.ts +0 -117
  252. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookRenderingCommon.js +0 -6
  253. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.d.ts +0 -222
  254. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +0 -1840
  255. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.d.ts +0 -63
  256. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +0 -449
  257. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewMessages.d.ts +0 -432
  258. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.d.ts +0 -18
  259. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +0 -2546
  260. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewThemeMapping.d.ts +0 -8
  261. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewThemeMapping.js +0 -105
  262. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.d.ts +0 -137
  263. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +0 -646
  264. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.d.ts +0 -21
  265. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +0 -101
  266. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputTextHelper.d.ts +0 -13
  267. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputTextHelper.js +0 -111
  268. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel.d.ts +0 -30
  269. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel.js +0 -65
  270. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellSelectionCollection.d.ts +0 -13
  271. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellSelectionCollection.js +0 -49
  272. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.d.ts +0 -89
  273. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +0 -472
  274. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher.d.ts +0 -11
  275. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher.js +0 -34
  276. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.d.ts +0 -33
  277. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.js +0 -275
  278. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.d.ts +0 -69
  279. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +0 -269
  280. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.d.ts +0 -125
  281. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +0 -958
  282. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/viewContext.d.ts +0 -9
  283. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/viewContext.js +0 -11
  284. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookCellOverlays.d.ts +0 -20
  285. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookCellOverlays.js +0 -101
  286. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.d.ts +0 -65
  287. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +0 -458
  288. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.d.ts +0 -80
  289. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +0 -708
  290. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.d.ts +0 -37
  291. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.js +0 -193
  292. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookHorizontalTracker.d.ts +0 -7
  293. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookHorizontalTracker.js +0 -62
  294. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.d.ts +0 -108
  295. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +0 -717
  296. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.d.ts +0 -23
  297. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +0 -183
  298. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.d.ts +0 -11
  299. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.js +0 -134
  300. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.d.ts +0 -20
  301. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +0 -135
  302. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.d.ts +0 -27
  303. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +0 -213
  304. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel.d.ts +0 -27
  305. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel.js +0 -104
  306. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.d.ts +0 -115
  307. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +0 -480
  308. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.d.ts +0 -87
  309. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +0 -352
  310. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.d.ts +0 -81
  311. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.js +0 -9
  312. package/vscode/src/vs/workbench/contrib/notebook/common/notebookPerformance.d.ts +0 -10
  313. package/vscode/src/vs/workbench/contrib/notebook/common/notebookPerformance.js +0 -19
@@ -1,63 +0,0 @@
1
- import { IListElementRenderDetails, IListRenderer, IListVirtualDelegate } from "../../../../../../base/browser/ui/list/list.js";
2
- import { Disposable } from "../../../../../../base/common/lifecycle.js";
3
- import { ICodeEditor } from "../../../../../../editor/browser/editorBrowser.js";
4
- import { IMenuService } from "../../../../../../platform/actions/common/actions.service.js";
5
- import { IConfigurationService } from "../../../../../../platform/configuration/common/configuration.service.js";
6
- import { IScopedContextKeyService } from "../../../../../../platform/contextkey/common/contextkey.js";
7
- import { IContextMenuService } from "../../../../../../platform/contextview/browser/contextView.service.js";
8
- import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js";
9
- import { IKeybindingService } from "../../../../../../platform/keybinding/common/keybinding.service.js";
10
- import { INotificationService } from "../../../../../../platform/notification/common/notification.service.js";
11
- import { ICellViewModel, INotebookEditorDelegate } from "../../notebookBrowser.js";
12
- import { CellDragAndDropController } from "../cellParts/cellDnd.js";
13
- import { CellEditorOptions } from "../cellParts/cellEditorOptions.js";
14
- import { CodeCellRenderTemplate, MarkdownCellRenderTemplate } from "../notebookRenderingCommon.js";
15
- import { CodeCellViewModel } from "../../viewModel/codeCellViewModel.js";
16
- import { MarkupCellViewModel } from "../../viewModel/markupCellViewModel.js";
17
- import { CellViewModel } from "../../viewModel/notebookViewModelImpl.js";
18
- import { INotebookExecutionStateService } from "../../../common/notebookExecutionStateService.service.js";
19
- import { NotebookCellEditorPool } from "../notebookCellEditorPool.js";
20
- export declare class NotebookCellListDelegate extends Disposable implements IListVirtualDelegate<CellViewModel> {
21
- private readonly configurationService;
22
- private readonly lineHeight;
23
- constructor(targetWindow: Window, configurationService: IConfigurationService);
24
- getHeight(element: CellViewModel): number;
25
- getDynamicHeight(element: CellViewModel): number | null;
26
- getTemplateId(element: CellViewModel): string;
27
- }
28
- declare abstract class AbstractCellRenderer extends Disposable {
29
- protected readonly instantiationService: IInstantiationService;
30
- protected readonly notebookEditor: INotebookEditorDelegate;
31
- protected readonly contextMenuService: IContextMenuService;
32
- protected readonly menuService: IMenuService;
33
- protected readonly keybindingService: IKeybindingService;
34
- protected readonly notificationService: INotificationService;
35
- protected readonly contextKeyServiceProvider: (container: HTMLElement) => IScopedContextKeyService;
36
- protected dndController: CellDragAndDropController | undefined;
37
- protected readonly editorOptions: CellEditorOptions;
38
- constructor(instantiationService: IInstantiationService, notebookEditor: INotebookEditorDelegate, contextMenuService: IContextMenuService, menuService: IMenuService, configurationService: IConfigurationService, keybindingService: IKeybindingService, notificationService: INotificationService, contextKeyServiceProvider: (container: HTMLElement) => IScopedContextKeyService, language: string, dndController: CellDragAndDropController | undefined);
39
- dispose(): void;
40
- }
41
- export declare class MarkupCellRenderer extends AbstractCellRenderer implements IListRenderer<MarkupCellViewModel, MarkdownCellRenderTemplate> {
42
- private renderedEditors;
43
- static readonly TEMPLATE_ID = "markdown_cell";
44
- private _notebookExecutionStateService;
45
- constructor(notebookEditor: INotebookEditorDelegate, dndController: CellDragAndDropController, renderedEditors: Map<ICellViewModel, ICodeEditor>, contextKeyServiceProvider: (container: HTMLElement) => IScopedContextKeyService, configurationService: IConfigurationService, instantiationService: IInstantiationService, contextMenuService: IContextMenuService, menuService: IMenuService, keybindingService: IKeybindingService, notificationService: INotificationService, notebookExecutionStateService: INotebookExecutionStateService);
46
- get templateId(): string;
47
- renderTemplate(rootContainer: HTMLElement): MarkdownCellRenderTemplate;
48
- renderElement(element: MarkupCellViewModel, index: number, templateData: MarkdownCellRenderTemplate, details?: IListElementRenderDetails): void;
49
- disposeTemplate(templateData: MarkdownCellRenderTemplate): void;
50
- disposeElement(_element: ICellViewModel, _index: number, templateData: MarkdownCellRenderTemplate): void;
51
- }
52
- export declare class CodeCellRenderer extends AbstractCellRenderer implements IListRenderer<CodeCellViewModel, CodeCellRenderTemplate> {
53
- private renderedEditors;
54
- private editorPool;
55
- static readonly TEMPLATE_ID = "code_cell";
56
- constructor(notebookEditor: INotebookEditorDelegate, renderedEditors: Map<ICellViewModel, ICodeEditor>, editorPool: NotebookCellEditorPool, dndController: CellDragAndDropController, contextKeyServiceProvider: (container: HTMLElement) => IScopedContextKeyService, configurationService: IConfigurationService, contextMenuService: IContextMenuService, menuService: IMenuService, instantiationService: IInstantiationService, keybindingService: IKeybindingService, notificationService: INotificationService);
57
- get templateId(): string;
58
- renderTemplate(rootContainer: HTMLElement): CodeCellRenderTemplate;
59
- renderElement(element: CodeCellViewModel, index: number, templateData: CodeCellRenderTemplate, details?: IListElementRenderDetails): void;
60
- disposeTemplate(templateData: CodeCellRenderTemplate): void;
61
- disposeElement(element: ICellViewModel, index: number, templateData: CodeCellRenderTemplate): void;
62
- }
63
- export {};
@@ -1,449 +0,0 @@
1
-
2
- import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
3
- import { PixelRatio } from '../../../../../../base/browser/pixelRatio.js';
4
- import { $ as $$1, append, getWindow } from '../../../../../../base/browser/dom.js';
5
- import { FastDomNode } from '../../../../../../base/browser/fastDomNode.js';
6
- import { Disposable, DisposableStore } from '../../../../../../base/common/lifecycle.js';
7
- import { CodeEditorWidget } from '../../../../../../editor/browser/widget/codeEditor/codeEditorWidget.js';
8
- import { createBareFontInfoFromRawSettings } from '../../../../../../editor/common/config/fontInfoFromSettings.js';
9
- import { EditorContextKeys } from '../../../../../../editor/common/editorContextKeys.js';
10
- import { PLAINTEXT_LANGUAGE_ID } from '../../../../../../editor/common/languages/modesRegistry.js';
11
- import { localize } from '../../../../../../nls.js';
12
- import { IMenuService } from '../../../../../../platform/actions/common/actions.service.js';
13
- import { IConfigurationService } from '../../../../../../platform/configuration/common/configuration.service.js';
14
- import { IContextKeyService } from '../../../../../../platform/contextkey/common/contextkey.service.js';
15
- import { IContextMenuService } from '../../../../../../platform/contextview/browser/contextView.service.js';
16
- import { IInstantiationService } from '../../../../../../platform/instantiation/common/instantiation.js';
17
- import { ServiceCollection } from '../../../../../../platform/instantiation/common/serviceCollection.js';
18
- import { IKeybindingService } from '../../../../../../platform/keybinding/common/keybinding.service.js';
19
- import { INotificationService } from '../../../../../../platform/notification/common/notification.service.js';
20
- import { CellPartsCollection } from '../cellPart.js';
21
- import { CellChatPart } from '../cellParts/chat/cellChatPart.js';
22
- import { CellComments } from '../cellParts/cellComments.js';
23
- import { CellContextKeyPart } from '../cellParts/cellContextKeys.js';
24
- import { CellDecorations } from '../cellParts/cellDecorations.js';
25
- import { CellDragAndDropPart } from '../cellParts/cellDnd.js';
26
- import { CodeCellDragImageRenderer } from '../cellParts/cellDragRenderer.js';
27
- import { CellEditorOptions } from '../cellParts/cellEditorOptions.js';
28
- import { CellExecutionPart } from '../cellParts/cellExecution.js';
29
- import { CellFocusPart } from '../cellParts/cellFocus.js';
30
- import { CellFocusIndicator } from '../cellParts/cellFocusIndicator.js';
31
- import { CellProgressBar } from '../cellParts/cellProgressBar.js';
32
- import { CellEditorStatusBar } from '../cellParts/cellStatusPart.js';
33
- import { CellTitleToolbarPart, BetweenCellToolbar } from '../cellParts/cellToolbars.js';
34
- import { CodeCell } from '../cellParts/codeCell.js';
35
- import { RunToolbar } from '../cellParts/codeCellRunToolbar.js';
36
- import { CollapsedCellInput } from '../cellParts/collapsedCellInput.js';
37
- import { CollapsedCellOutput } from '../cellParts/collapsedCellOutput.js';
38
- import { FoldedCellHint } from '../cellParts/foldedCellHint.js';
39
- import { MarkupCell } from '../cellParts/markupCell.js';
40
- import { CellKind } from '../../../common/notebookCommon.js';
41
- import { INotebookExecutionStateService } from '../../../common/notebookExecutionStateService.service.js';
42
-
43
- var MarkupCellRenderer_1, CodeCellRenderer_1;
44
- const $ = $$1;
45
- let NotebookCellListDelegate = class NotebookCellListDelegate extends Disposable {
46
- constructor(targetWindow, configurationService) {
47
- super();
48
- this.configurationService = configurationService;
49
- const editorOptions = this.configurationService.getValue("editor");
50
- this.lineHeight = createBareFontInfoFromRawSettings(editorOptions, PixelRatio.getInstance(targetWindow).value).lineHeight;
51
- }
52
- getHeight(element) {
53
- return element.getHeight(this.lineHeight);
54
- }
55
- getDynamicHeight(element) {
56
- return element.getDynamicHeight();
57
- }
58
- getTemplateId(element) {
59
- if (element.cellKind === CellKind.Markup) {
60
- return MarkupCellRenderer.TEMPLATE_ID;
61
- } else {
62
- return CodeCellRenderer.TEMPLATE_ID;
63
- }
64
- }
65
- };
66
- NotebookCellListDelegate = ( __decorate([( __param(1, IConfigurationService))], NotebookCellListDelegate));
67
- class AbstractCellRenderer extends Disposable {
68
- constructor(
69
- instantiationService,
70
- notebookEditor,
71
- contextMenuService,
72
- menuService,
73
- configurationService,
74
- keybindingService,
75
- notificationService,
76
- contextKeyServiceProvider,
77
- language,
78
- dndController
79
- ) {
80
- super();
81
- this.instantiationService = instantiationService;
82
- this.notebookEditor = notebookEditor;
83
- this.contextMenuService = contextMenuService;
84
- this.menuService = menuService;
85
- this.keybindingService = keybindingService;
86
- this.notificationService = notificationService;
87
- this.contextKeyServiceProvider = contextKeyServiceProvider;
88
- this.dndController = dndController;
89
- this.editorOptions = this._register(( new CellEditorOptions(
90
- this.notebookEditor.getBaseCellEditorOptions(language),
91
- this.notebookEditor.notebookOptions,
92
- configurationService
93
- )));
94
- }
95
- dispose() {
96
- super.dispose();
97
- this.dndController = undefined;
98
- }
99
- }
100
- let MarkupCellRenderer = class MarkupCellRenderer extends AbstractCellRenderer {
101
- static {
102
- MarkupCellRenderer_1 = this;
103
- }
104
- static {
105
- this.TEMPLATE_ID = "markdown_cell";
106
- }
107
- constructor(
108
- notebookEditor,
109
- dndController,
110
- renderedEditors,
111
- contextKeyServiceProvider,
112
- configurationService,
113
- instantiationService,
114
- contextMenuService,
115
- menuService,
116
- keybindingService,
117
- notificationService,
118
- notebookExecutionStateService
119
- ) {
120
- super(
121
- instantiationService,
122
- notebookEditor,
123
- contextMenuService,
124
- menuService,
125
- configurationService,
126
- keybindingService,
127
- notificationService,
128
- contextKeyServiceProvider,
129
- "markdown",
130
- dndController
131
- );
132
- this.renderedEditors = renderedEditors;
133
- this._notebookExecutionStateService = notebookExecutionStateService;
134
- }
135
- get templateId() {
136
- return MarkupCellRenderer_1.TEMPLATE_ID;
137
- }
138
- renderTemplate(rootContainer) {
139
- rootContainer.classList.add("markdown-cell-row");
140
- const container = append(rootContainer, $$1(".cell-inner-container"));
141
- const templateDisposables = ( new DisposableStore());
142
- const contextKeyService = templateDisposables.add(this.contextKeyServiceProvider(container));
143
- const decorationContainer = append(rootContainer, $(".cell-decoration"));
144
- const titleToolbarContainer = append(container, $(".cell-title-toolbar"));
145
- const focusIndicatorTop = ( new FastDomNode(append(container, $(".cell-focus-indicator.cell-focus-indicator-top"))));
146
- const focusIndicatorLeft = ( new FastDomNode(append(container, $$1(
147
- ".cell-focus-indicator.cell-focus-indicator-side.cell-focus-indicator-left"
148
- ))));
149
- const foldingIndicator = append(focusIndicatorLeft.domNode, $$1(".notebook-folding-indicator"));
150
- const focusIndicatorRight = ( new FastDomNode(append(container, $$1(
151
- ".cell-focus-indicator.cell-focus-indicator-side.cell-focus-indicator-right"
152
- ))));
153
- const codeInnerContent = append(container, $(".cell.code"));
154
- const editorPart = append(codeInnerContent, $(".cell-editor-part"));
155
- const cellChatPart = append(editorPart, $(".cell-chat-part"));
156
- const cellInputCollapsedContainer = append(codeInnerContent, $(".input-collapse-container"));
157
- cellInputCollapsedContainer.style.display = "none";
158
- const editorContainer = append(editorPart, $(".cell-editor-container"));
159
- editorPart.style.display = "none";
160
- const cellCommentPartContainer = append(container, $(".cell-comment-container"));
161
- const innerContent = append(container, $(".cell.markdown"));
162
- const bottomCellContainer = append(container, $(".cell-bottom-toolbar-container"));
163
- const scopedInstaService = templateDisposables.add(this.instantiationService.createChild(( new ServiceCollection([IContextKeyService, contextKeyService]))));
164
- const rootClassDelegate = {
165
- toggle: (className, force) => container.classList.toggle(className, force)
166
- };
167
- const titleToolbar = templateDisposables.add(scopedInstaService.createInstance(
168
- CellTitleToolbarPart,
169
- titleToolbarContainer,
170
- rootClassDelegate,
171
- this.notebookEditor.creationOptions.menuIds.cellTitleToolbar,
172
- this.notebookEditor.creationOptions.menuIds.cellDeleteToolbar,
173
- this.notebookEditor
174
- ));
175
- const focusIndicatorBottom = ( new FastDomNode(
176
- append(container, $(".cell-focus-indicator.cell-focus-indicator-bottom"))
177
- ));
178
- const cellParts = ( new CellPartsCollection(getWindow(rootContainer), [templateDisposables.add(
179
- scopedInstaService.createInstance(CellChatPart, this.notebookEditor, cellChatPart)
180
- ), templateDisposables.add(
181
- scopedInstaService.createInstance(CellEditorStatusBar, this.notebookEditor, container, editorPart, undefined)
182
- ), templateDisposables.add(( new CellFocusIndicator(
183
- this.notebookEditor,
184
- titleToolbar,
185
- focusIndicatorTop,
186
- focusIndicatorLeft,
187
- focusIndicatorRight,
188
- focusIndicatorBottom
189
- ))), templateDisposables.add(( new FoldedCellHint(
190
- this.notebookEditor,
191
- append(container, $(".notebook-folded-hint")),
192
- this._notebookExecutionStateService
193
- ))), templateDisposables.add(( new CellDecorations(this.notebookEditor, rootContainer, decorationContainer))), templateDisposables.add(
194
- scopedInstaService.createInstance(CellComments, this.notebookEditor, cellCommentPartContainer)
195
- ), templateDisposables.add(( new CollapsedCellInput(this.notebookEditor, cellInputCollapsedContainer))), templateDisposables.add(( new CellFocusPart(container, undefined, this.notebookEditor))), templateDisposables.add(( new CellDragAndDropPart(container))), templateDisposables.add(scopedInstaService.createInstance(CellContextKeyPart, this.notebookEditor))], [titleToolbar, templateDisposables.add(scopedInstaService.createInstance(
196
- BetweenCellToolbar,
197
- this.notebookEditor,
198
- titleToolbarContainer,
199
- bottomCellContainer
200
- ))]));
201
- templateDisposables.add(cellParts);
202
- const templateData = {
203
- rootContainer,
204
- cellInputCollapsedContainer,
205
- instantiationService: scopedInstaService,
206
- container,
207
- cellContainer: innerContent,
208
- editorPart,
209
- editorContainer,
210
- foldingIndicator,
211
- templateDisposables,
212
- elementDisposables: templateDisposables.add(( new DisposableStore())),
213
- cellParts,
214
- toJSON: () => {
215
- return {};
216
- }
217
- };
218
- return templateData;
219
- }
220
- renderElement(element, index, templateData, details) {
221
- if (!this.notebookEditor.hasModel()) {
222
- throw ( new Error("The notebook editor is not attached with view model yet."));
223
- }
224
- templateData.currentRenderedCell = element;
225
- templateData.currentEditor = undefined;
226
- templateData.editorPart.style.display = "none";
227
- templateData.cellContainer.innerText = "";
228
- if (details?.height === undefined) {
229
- return;
230
- }
231
- templateData.elementDisposables.add(templateData.instantiationService.createInstance(
232
- MarkupCell,
233
- this.notebookEditor,
234
- element,
235
- templateData,
236
- this.renderedEditors
237
- ));
238
- }
239
- disposeTemplate(templateData) {
240
- templateData.templateDisposables.dispose();
241
- }
242
- disposeElement(_element, _index, templateData) {
243
- templateData.elementDisposables.clear();
244
- }
245
- };
246
- MarkupCellRenderer = MarkupCellRenderer_1 = ( __decorate([( __param(4, IConfigurationService)), ( __param(5, IInstantiationService)), ( __param(6, IContextMenuService)), ( __param(7, IMenuService)), ( __param(8, IKeybindingService)), ( __param(9, INotificationService)), ( __param(10, INotebookExecutionStateService))], MarkupCellRenderer));
247
- let CodeCellRenderer = class CodeCellRenderer extends AbstractCellRenderer {
248
- static {
249
- CodeCellRenderer_1 = this;
250
- }
251
- static {
252
- this.TEMPLATE_ID = "code_cell";
253
- }
254
- constructor(
255
- notebookEditor,
256
- renderedEditors,
257
- editorPool,
258
- dndController,
259
- contextKeyServiceProvider,
260
- configurationService,
261
- contextMenuService,
262
- menuService,
263
- instantiationService,
264
- keybindingService,
265
- notificationService
266
- ) {
267
- super(
268
- instantiationService,
269
- notebookEditor,
270
- contextMenuService,
271
- menuService,
272
- configurationService,
273
- keybindingService,
274
- notificationService,
275
- contextKeyServiceProvider,
276
- PLAINTEXT_LANGUAGE_ID,
277
- dndController
278
- );
279
- this.renderedEditors = renderedEditors;
280
- this.editorPool = editorPool;
281
- }
282
- get templateId() {
283
- return CodeCellRenderer_1.TEMPLATE_ID;
284
- }
285
- renderTemplate(rootContainer) {
286
- rootContainer.classList.add("code-cell-row");
287
- const container = append(rootContainer, $$1(".cell-inner-container"));
288
- const templateDisposables = ( new DisposableStore());
289
- const contextKeyService = templateDisposables.add(this.contextKeyServiceProvider(container));
290
- const decorationContainer = append(rootContainer, $(".cell-decoration"));
291
- const focusIndicatorTop = ( new FastDomNode(append(container, $(".cell-focus-indicator.cell-focus-indicator-top"))));
292
- const titleToolbarContainer = append(container, $(".cell-title-toolbar"));
293
- const focusIndicatorLeft = ( new FastDomNode(append(container, $$1(
294
- ".cell-focus-indicator.cell-focus-indicator-side.cell-focus-indicator-left"
295
- ))));
296
- const cellChatPart = append(container, $(".cell-chat-part"));
297
- const cellContainer = append(container, $(".cell.code"));
298
- const runButtonContainer = append(cellContainer, $(".run-button-container"));
299
- const cellInputCollapsedContainer = append(cellContainer, $(".input-collapse-container"));
300
- cellInputCollapsedContainer.style.display = "none";
301
- const executionOrderLabel = append(focusIndicatorLeft.domNode, $("div.execution-count-label"));
302
- executionOrderLabel.title = ( localize(14847, "Execution Order"));
303
- const editorPart = append(cellContainer, $(".cell-editor-part"));
304
- const editorContainer = append(editorPart, $(".cell-editor-container"));
305
- const cellCommentPartContainer = append(container, $(".cell-comment-container"));
306
- const editorContextKeyService = templateDisposables.add(this.contextKeyServiceProvider(editorPart));
307
- const editorInstaService = templateDisposables.add(this.instantiationService.createChild(( new ServiceCollection([IContextKeyService, editorContextKeyService]))));
308
- EditorContextKeys.inCompositeEditor.bindTo(editorContextKeyService).set(true);
309
- const editor = editorInstaService.createInstance(CodeEditorWidget, editorContainer, {
310
- ...this.editorOptions.getDefaultValue(),
311
- allowVariableLineHeights: false,
312
- dimension: {
313
- width: 0,
314
- height: 0
315
- },
316
- scrollbar: {
317
- vertical: "hidden",
318
- horizontal: "auto",
319
- handleMouseWheel: false,
320
- useShadows: false
321
- }
322
- }, {
323
- contributions: this.notebookEditor.creationOptions.cellEditorContributions
324
- });
325
- templateDisposables.add(editor);
326
- const outputContainer = ( new FastDomNode(append(container, $(".output"))));
327
- const cellOutputCollapsedContainer = append(outputContainer.domNode, $(".output-collapse-container"));
328
- const outputShowMoreContainer = ( new FastDomNode(append(container, $(".output-show-more-container"))));
329
- const focusIndicatorRight = ( new FastDomNode(append(container, $$1(
330
- ".cell-focus-indicator.cell-focus-indicator-side.cell-focus-indicator-right"
331
- ))));
332
- const focusSinkElement = append(container, $(".cell-editor-focus-sink"));
333
- focusSinkElement.setAttribute("tabindex", "0");
334
- const bottomCellToolbarContainer = append(container, $(".cell-bottom-toolbar-container"));
335
- const focusIndicatorBottom = ( new FastDomNode(
336
- append(container, $(".cell-focus-indicator.cell-focus-indicator-bottom"))
337
- ));
338
- const scopedInstaService = templateDisposables.add(this.instantiationService.createChild(( new ServiceCollection([IContextKeyService, contextKeyService]))));
339
- const rootClassDelegate = {
340
- toggle: (className, force) => container.classList.toggle(className, force)
341
- };
342
- const titleToolbar = templateDisposables.add(scopedInstaService.createInstance(
343
- CellTitleToolbarPart,
344
- titleToolbarContainer,
345
- rootClassDelegate,
346
- this.notebookEditor.creationOptions.menuIds.cellTitleToolbar,
347
- this.notebookEditor.creationOptions.menuIds.cellDeleteToolbar,
348
- this.notebookEditor
349
- ));
350
- const focusIndicatorPart = templateDisposables.add(( new CellFocusIndicator(
351
- this.notebookEditor,
352
- titleToolbar,
353
- focusIndicatorTop,
354
- focusIndicatorLeft,
355
- focusIndicatorRight,
356
- focusIndicatorBottom
357
- )));
358
- const contentParts = [focusIndicatorPart, templateDisposables.add(
359
- scopedInstaService.createInstance(CellChatPart, this.notebookEditor, cellChatPart)
360
- ), templateDisposables.add(
361
- scopedInstaService.createInstance(CellEditorStatusBar, this.notebookEditor, container, editorPart, editor)
362
- ), templateDisposables.add(
363
- scopedInstaService.createInstance(CellProgressBar, editorPart, cellInputCollapsedContainer)
364
- ), templateDisposables.add(( new CellDecorations(this.notebookEditor, rootContainer, decorationContainer))), templateDisposables.add(
365
- scopedInstaService.createInstance(CellComments, this.notebookEditor, cellCommentPartContainer)
366
- ), templateDisposables.add(
367
- scopedInstaService.createInstance(CellExecutionPart, this.notebookEditor, executionOrderLabel)
368
- ), templateDisposables.add(
369
- scopedInstaService.createInstance(CollapsedCellOutput, this.notebookEditor, cellOutputCollapsedContainer)
370
- ), templateDisposables.add(( new CollapsedCellInput(this.notebookEditor, cellInputCollapsedContainer))), templateDisposables.add(( new CellFocusPart(container, focusSinkElement, this.notebookEditor))), templateDisposables.add(( new CellDragAndDropPart(container))), templateDisposables.add(scopedInstaService.createInstance(CellContextKeyPart, this.notebookEditor))];
371
- const {
372
- cellExecutePrimary,
373
- cellExecuteToolbar
374
- } = this.notebookEditor.creationOptions.menuIds;
375
- if (cellExecutePrimary && cellExecuteToolbar) {
376
- contentParts.push(templateDisposables.add(scopedInstaService.createInstance(
377
- RunToolbar,
378
- this.notebookEditor,
379
- contextKeyService,
380
- container,
381
- runButtonContainer,
382
- cellExecutePrimary,
383
- cellExecuteToolbar
384
- )));
385
- }
386
- const cellParts = ( new CellPartsCollection(
387
- getWindow(rootContainer),
388
- contentParts,
389
- [titleToolbar, templateDisposables.add(scopedInstaService.createInstance(
390
- BetweenCellToolbar,
391
- this.notebookEditor,
392
- titleToolbarContainer,
393
- bottomCellToolbarContainer
394
- ))]
395
- ));
396
- templateDisposables.add(cellParts);
397
- const templateData = {
398
- rootContainer,
399
- editorPart,
400
- cellInputCollapsedContainer,
401
- cellOutputCollapsedContainer,
402
- instantiationService: scopedInstaService,
403
- container,
404
- cellContainer,
405
- focusSinkElement,
406
- outputContainer,
407
- outputShowMoreContainer,
408
- editor,
409
- templateDisposables,
410
- elementDisposables: templateDisposables.add(( new DisposableStore())),
411
- cellParts,
412
- toJSON: () => {
413
- return {};
414
- }
415
- };
416
- const dragHandles = [
417
- focusIndicatorLeft.domNode,
418
- focusIndicatorPart.codeFocusIndicator.domNode,
419
- focusIndicatorPart.outputFocusIndicator.domNode
420
- ];
421
- this.dndController?.registerDragHandle(templateData, rootContainer, dragHandles, () => ( new CodeCellDragImageRenderer()).getDragImage(templateData, templateData.editor, "code"));
422
- return templateData;
423
- }
424
- renderElement(element, index, templateData, details) {
425
- if (!this.notebookEditor.hasModel()) {
426
- throw ( new Error("The notebook editor is not attached with view model yet."));
427
- }
428
- templateData.currentRenderedCell = element;
429
- if (details?.height === undefined) {
430
- return;
431
- }
432
- templateData.outputContainer.domNode.innerText = "";
433
- templateData.outputContainer.domNode.appendChild(templateData.cellOutputCollapsedContainer);
434
- templateData.elementDisposables.add(
435
- templateData.instantiationService.createInstance(CodeCell, this.notebookEditor, element, templateData, this.editorPool)
436
- );
437
- this.renderedEditors.set(element, templateData.editor);
438
- }
439
- disposeTemplate(templateData) {
440
- templateData.templateDisposables.dispose();
441
- }
442
- disposeElement(element, index, templateData) {
443
- templateData.elementDisposables.clear();
444
- this.renderedEditors.delete(element);
445
- }
446
- };
447
- CodeCellRenderer = CodeCellRenderer_1 = ( __decorate([( __param(5, IConfigurationService)), ( __param(6, IContextMenuService)), ( __param(7, IMenuService)), ( __param(8, IInstantiationService)), ( __param(9, IKeybindingService)), ( __param(10, INotificationService))], CodeCellRenderer));
448
-
449
- export { CodeCellRenderer, MarkupCellRenderer, NotebookCellListDelegate };