@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,260 +0,0 @@
1
-
2
- import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
3
- import { isAncestorOfActiveElement } from '../../../../../../base/browser/dom.js';
4
- import { ToolBar } from '../../../../../../base/browser/ui/toolbar/toolbar.js';
5
- import { disposableTimeout } from '../../../../../../base/common/async.js';
6
- import { Emitter } from '../../../../../../base/common/event.js';
7
- import { MarshalledId } from '../../../../../../base/common/marshallingIds.js';
8
- import { MenuEntryActionViewItem, createActionViewItem, getActionBarActions } from '../../../../../../platform/actions/browser/menuEntryActionViewItem.js';
9
- import { MenuItemAction } from '../../../../../../platform/actions/common/actions.js';
10
- import { IMenuService } from '../../../../../../platform/actions/common/actions.service.js';
11
- import { IContextKeyService } from '../../../../../../platform/contextkey/common/contextkey.service.js';
12
- import { IContextMenuService } from '../../../../../../platform/contextview/browser/contextView.service.js';
13
- import { IInstantiationService } from '../../../../../../platform/instantiation/common/instantiation.js';
14
- import { IKeybindingService } from '../../../../../../platform/keybinding/common/keybinding.service.js';
15
- import { CodiconActionViewItem } from './cellActionView.js';
16
- import { CellOverlayPart } from '../cellPart.js';
17
- import { registerCellToolbarStickyScroll } from './cellToolbarStickyScroll.js';
18
- import { WorkbenchToolBar } from '../../../../../../platform/actions/browser/toolbar.js';
19
- import { createInstantHoverDelegate } from '../../../../../../base/browser/ui/hover/hoverDelegateFactory.js';
20
-
21
- let BetweenCellToolbar = class BetweenCellToolbar extends CellOverlayPart {
22
- constructor(
23
- _notebookEditor,
24
- _titleToolbarContainer,
25
- _bottomCellToolbarContainer,
26
- instantiationService,
27
- contextMenuService,
28
- contextKeyService,
29
- menuService
30
- ) {
31
- super();
32
- this._notebookEditor = _notebookEditor;
33
- this._bottomCellToolbarContainer = _bottomCellToolbarContainer;
34
- this.instantiationService = instantiationService;
35
- this.contextMenuService = contextMenuService;
36
- this.contextKeyService = contextKeyService;
37
- this.menuService = menuService;
38
- }
39
- _initialize() {
40
- if (this._betweenCellToolbar) {
41
- return this._betweenCellToolbar;
42
- }
43
- const betweenCellToolbar = this._register(( new ToolBar(this._bottomCellToolbarContainer, this.contextMenuService, {
44
- actionViewItemProvider: (action, options) => {
45
- if (action instanceof MenuItemAction) {
46
- if (this._notebookEditor.notebookOptions.getDisplayOptions().insertToolbarAlignment === "center") {
47
- return this.instantiationService.createInstance(CodiconActionViewItem, action, {
48
- hoverDelegate: options.hoverDelegate
49
- });
50
- } else {
51
- return this.instantiationService.createInstance(MenuEntryActionViewItem, action, {
52
- hoverDelegate: options.hoverDelegate
53
- });
54
- }
55
- }
56
- return undefined;
57
- }
58
- })));
59
- this._betweenCellToolbar = betweenCellToolbar;
60
- const menu = this._register(this.menuService.createMenu(
61
- this._notebookEditor.creationOptions.menuIds.cellInsertToolbar,
62
- this.contextKeyService
63
- ));
64
- const updateActions = () => {
65
- const actions = getCellToolbarActions(menu);
66
- betweenCellToolbar.setActions(actions.primary, actions.secondary);
67
- };
68
- this._register(menu.onDidChange(() => updateActions()));
69
- this._register(this._notebookEditor.notebookOptions.onDidChangeOptions(e => {
70
- if (e.insertToolbarAlignment) {
71
- updateActions();
72
- }
73
- }));
74
- updateActions();
75
- return betweenCellToolbar;
76
- }
77
- didRenderCell(element) {
78
- const betweenCellToolbar = this._initialize();
79
- if (this._notebookEditor.hasModel()) {
80
- betweenCellToolbar.context = {
81
- ui: true,
82
- cell: element,
83
- notebookEditor: this._notebookEditor,
84
- source: "insertToolbar",
85
- $mid: MarshalledId.NotebookCellActionContext
86
- };
87
- }
88
- this.updateInternalLayoutNow(element);
89
- }
90
- updateInternalLayoutNow(element) {
91
- const bottomToolbarOffset = element.layoutInfo.bottomToolbarOffset;
92
- this._bottomCellToolbarContainer.style.transform = `translateY(${bottomToolbarOffset}px)`;
93
- }
94
- };
95
- BetweenCellToolbar = ( __decorate([( __param(3, IInstantiationService)), ( __param(4, IContextMenuService)), ( __param(5, IContextKeyService)), ( __param(6, IMenuService))], BetweenCellToolbar));
96
- let CellTitleToolbarPart = class CellTitleToolbarPart extends CellOverlayPart {
97
- get hasActions() {
98
- if (!this._model) {
99
- return false;
100
- }
101
- return this._model.actions.primary.length + this._model.actions.secondary.length + this._model.deleteActions.primary.length + this._model.deleteActions.secondary.length > 0;
102
- }
103
- constructor(
104
- toolbarContainer,
105
- _rootClassDelegate,
106
- toolbarId,
107
- deleteToolbarId,
108
- _notebookEditor,
109
- contextKeyService,
110
- menuService,
111
- instantiationService
112
- ) {
113
- super();
114
- this.toolbarContainer = toolbarContainer;
115
- this._rootClassDelegate = _rootClassDelegate;
116
- this.toolbarId = toolbarId;
117
- this.deleteToolbarId = deleteToolbarId;
118
- this._notebookEditor = _notebookEditor;
119
- this.contextKeyService = contextKeyService;
120
- this.menuService = menuService;
121
- this.instantiationService = instantiationService;
122
- this._onDidUpdateActions = this._register(( new Emitter()));
123
- this.onDidUpdateActions = this._onDidUpdateActions.event;
124
- }
125
- _initializeModel() {
126
- if (this._model) {
127
- return this._model;
128
- }
129
- const titleMenu = this._register(this.menuService.createMenu(this.toolbarId, this.contextKeyService));
130
- const deleteMenu = this._register(this.menuService.createMenu(this.deleteToolbarId, this.contextKeyService));
131
- const actions = getCellToolbarActions(titleMenu);
132
- const deleteActions = getCellToolbarActions(deleteMenu);
133
- this._model = {
134
- titleMenu,
135
- actions,
136
- deleteMenu,
137
- deleteActions
138
- };
139
- return this._model;
140
- }
141
- _initialize(model, element) {
142
- if (this._view) {
143
- return this._view;
144
- }
145
- const hoverDelegate = this._register(createInstantHoverDelegate());
146
- const toolbar = this._register(
147
- this.instantiationService.createInstance(WorkbenchToolBar, this.toolbarContainer, {
148
- actionViewItemProvider: (action, options) => {
149
- return createActionViewItem(this.instantiationService, action, options);
150
- },
151
- renderDropdownAsChildElement: true,
152
- hoverDelegate
153
- })
154
- );
155
- const deleteToolbar = this._register(this.instantiationService.invokeFunction(
156
- accessor => createDeleteToolbar(accessor, this.toolbarContainer, hoverDelegate, "cell-delete-toolbar")
157
- ));
158
- if (model.deleteActions.primary.length !== 0 || model.deleteActions.secondary.length !== 0) {
159
- deleteToolbar.setActions(model.deleteActions.primary, model.deleteActions.secondary);
160
- }
161
- this.setupChangeListeners(toolbar, model.titleMenu, model.actions);
162
- this.setupChangeListeners(deleteToolbar, model.deleteMenu, model.deleteActions);
163
- this._view = {
164
- toolbar,
165
- deleteToolbar
166
- };
167
- return this._view;
168
- }
169
- prepareRenderCell(element) {
170
- this._initializeModel();
171
- }
172
- didRenderCell(element) {
173
- const model = this._initializeModel();
174
- const view = this._initialize(model, element);
175
- this.cellDisposables.add(
176
- registerCellToolbarStickyScroll(this._notebookEditor, element, this.toolbarContainer, {
177
- extraOffset: 4,
178
- min: -14
179
- })
180
- );
181
- if (this._notebookEditor.hasModel()) {
182
- const toolbarContext = {
183
- ui: true,
184
- cell: element,
185
- notebookEditor: this._notebookEditor,
186
- source: "cellToolbar",
187
- $mid: MarshalledId.NotebookCellActionContext
188
- };
189
- this.updateContext(view, toolbarContext);
190
- }
191
- }
192
- updateContext(view, toolbarContext) {
193
- view.toolbar.context = toolbarContext;
194
- view.deleteToolbar.context = toolbarContext;
195
- }
196
- setupChangeListeners(toolbar, menu, initActions) {
197
- let dropdownIsVisible = false;
198
- let deferredUpdate;
199
- this.updateActions(toolbar, initActions);
200
- this._register(menu.onDidChange(() => {
201
- if (dropdownIsVisible) {
202
- const actions = getCellToolbarActions(menu);
203
- deferredUpdate = () => this.updateActions(toolbar, actions);
204
- return;
205
- }
206
- const actions = getCellToolbarActions(menu);
207
- this.updateActions(toolbar, actions);
208
- }));
209
- this._rootClassDelegate.toggle("cell-toolbar-dropdown-active", false);
210
- this._register(toolbar.onDidChangeDropdownVisibility(visible => {
211
- dropdownIsVisible = visible;
212
- this._rootClassDelegate.toggle("cell-toolbar-dropdown-active", visible);
213
- if (deferredUpdate && !visible) {
214
- disposableTimeout(() => {
215
- deferredUpdate?.();
216
- }, 0, this._store);
217
- deferredUpdate = undefined;
218
- }
219
- }));
220
- }
221
- updateActions(toolbar, actions) {
222
- const hadFocus = isAncestorOfActiveElement(toolbar.getElement());
223
- toolbar.setActions(actions.primary, actions.secondary);
224
- if (hadFocus) {
225
- this._notebookEditor.focus();
226
- }
227
- if (actions.primary.length || actions.secondary.length) {
228
- this._rootClassDelegate.toggle("cell-has-toolbar-actions", true);
229
- this._onDidUpdateActions.fire();
230
- } else {
231
- this._rootClassDelegate.toggle("cell-has-toolbar-actions", false);
232
- this._onDidUpdateActions.fire();
233
- }
234
- }
235
- };
236
- CellTitleToolbarPart = ( __decorate([( __param(5, IContextKeyService)), ( __param(6, IMenuService)), ( __param(7, IInstantiationService))], CellTitleToolbarPart));
237
- function getCellToolbarActions(menu) {
238
- return getActionBarActions(menu.getActions({
239
- shouldForwardArgs: true
240
- }), g => /^inline/.test(g));
241
- }
242
- function createDeleteToolbar(accessor, container, hoverDelegate, elementClass) {
243
- const contextMenuService = accessor.get(IContextMenuService);
244
- const keybindingService = accessor.get(IKeybindingService);
245
- const instantiationService = accessor.get(IInstantiationService);
246
- const toolbar = ( new ToolBar(container, contextMenuService, {
247
- getKeyBinding: action => keybindingService.lookupKeybinding(action.id),
248
- actionViewItemProvider: (action, options) => {
249
- return createActionViewItem(instantiationService, action, options);
250
- },
251
- renderDropdownAsChildElement: true,
252
- hoverDelegate
253
- }));
254
- {
255
- toolbar.getElement().classList.add(elementClass);
256
- }
257
- return toolbar;
258
- }
259
-
260
- export { BetweenCellToolbar, CellTitleToolbarPart };
@@ -1,9 +0,0 @@
1
- export interface IClickTarget {
2
- type: ClickTargetType;
3
- event: MouseEvent;
4
- }
5
- export declare enum ClickTargetType {
6
- Container = 0,
7
- ContributedTextItem = 1,
8
- ContributedCommandItem = 2
9
- }
@@ -1,10 +0,0 @@
1
-
2
-
3
- var ClickTargetType;
4
- (function (ClickTargetType) {
5
- ClickTargetType[ClickTargetType["Container"] = 0] = "Container";
6
- ClickTargetType[ClickTargetType["ContributedTextItem"] = 1] = "ContributedTextItem";
7
- ClickTargetType[ClickTargetType["ContributedCommandItem"] = 2] = "ContributedCommandItem";
8
- })(ClickTargetType || (ClickTargetType = {}));
9
-
10
- export { ClickTargetType };
@@ -1,10 +0,0 @@
1
- import { ICellViewModel, INotebookEditorDelegate } from "../../../notebookBrowser.js";
2
- import { CellContentPart } from "../../cellPart.js";
3
- export declare class CellChatPart extends CellContentPart {
4
- get activeCell(): ICellViewModel | undefined;
5
- constructor(_notebookEditor: INotebookEditorDelegate, _partContainer: HTMLElement);
6
- didRenderCell(element: ICellViewModel): void;
7
- unrenderCell(element: ICellViewModel): void;
8
- updateInternalLayoutNow(element: ICellViewModel): void;
9
- dispose(): void;
10
- }
@@ -1,24 +0,0 @@
1
-
2
- import { CellContentPart } from '../../cellPart.js';
3
-
4
- class CellChatPart extends CellContentPart {
5
- get activeCell() {
6
- return this.currentCell;
7
- }
8
- constructor(_notebookEditor, _partContainer) {
9
- super();
10
- }
11
- didRenderCell(element) {
12
- super.didRenderCell(element);
13
- }
14
- unrenderCell(element) {
15
- super.unrenderCell(element);
16
- }
17
- updateInternalLayoutNow(element) {
18
- }
19
- dispose() {
20
- super.dispose();
21
- }
22
- }
23
-
24
- export { CellChatPart };
@@ -1,182 +0,0 @@
1
- import { Disposable } from "../../../../../../base/common/lifecycle.js";
2
- import { IDimension } from "../../../../../../editor/common/core/2d/dimension.js";
3
- import { ILanguageService } from "../../../../../../editor/common/languages/language.service.js";
4
- import { IConfigurationService } from "../../../../../../platform/configuration/common/configuration.service.js";
5
- import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js";
6
- import { IKeybindingService } from "../../../../../../platform/keybinding/common/keybinding.service.js";
7
- import { INotebookExecutionStateService } from "../../../common/notebookExecutionStateService.service.js";
8
- import { IActiveNotebookEditorDelegate } from "../../notebookBrowser.js";
9
- import { CodeCellViewModel } from "../../viewModel/codeCellViewModel.js";
10
- import { NotebookCellEditorPool } from "../notebookCellEditorPool.js";
11
- import { CodeCellRenderTemplate } from "../notebookRenderingCommon.js";
12
- import { INotebookLoggingService } from "../../../common/notebookLoggingService.service.js";
13
- export declare class CodeCell extends Disposable {
14
- private readonly notebookEditor;
15
- private readonly viewCell;
16
- private readonly templateData;
17
- private readonly editorPool;
18
- private readonly instantiationService;
19
- private readonly keybindingService;
20
- private readonly languageService;
21
- private configurationService;
22
- private _outputContainerRenderer;
23
- private _inputCollapseElement;
24
- private _renderedInputCollapseState;
25
- private _renderedOutputCollapseState;
26
- private _isDisposed;
27
- private readonly cellParts;
28
- private _collapsedExecutionIcon;
29
- private _cellEditorOptions;
30
- private _useNewApproachForEditorLayout;
31
- private _pointerDownInEditor;
32
- private _pointerDraggingInEditor;
33
- private readonly _cellLayout;
34
- private readonly _debug;
35
- constructor(notebookEditor: IActiveNotebookEditorDelegate, viewCell: CodeCellViewModel, templateData: CodeCellRenderTemplate, editorPool: NotebookCellEditorPool, instantiationService: IInstantiationService, keybindingService: IKeybindingService, languageService: ILanguageService, configurationService: IConfigurationService, notebookExecutionStateService: INotebookExecutionStateService, notebookLogService: INotebookLoggingService);
36
- private updateCodeCellOptions;
37
- private _pendingLayout;
38
- private updateForLayout;
39
- private updateForOutputHover;
40
- private updateForOutputFocus;
41
- private calculateInitEditorHeight;
42
- private initializeEditor;
43
- private updateForOutputs;
44
- private updateEditorOptions;
45
- private registerNotebookEditorListeners;
46
- private adjustEditorPosition;
47
- private registerViewCellLayoutChange;
48
- private registerCellEditorEventListeners;
49
- private _reigsterModelListeners;
50
- private registerMouseListener;
51
- private shouldPreserveEditor;
52
- private updateEditorForFocusModeChange;
53
- private updateForCollapseState;
54
- private _collapseInput;
55
- private _attachInputExpandButton;
56
- private _showInput;
57
- private _getRichText;
58
- private _getRichTextFromLineTokens;
59
- private _removeInputCollapsePreview;
60
- private _updateOutputInnerContainer;
61
- private _collapseOutput;
62
- private _showOutput;
63
- private initialViewUpdateExpanded;
64
- private layoutEditor;
65
- private onCellWidthChange;
66
- private onCellEditorHeightChange;
67
- relayoutCell(): void;
68
- dispose(): void;
69
- }
70
- type CellLayoutChangeReason = "nbLayoutChange" | "nbDidScroll" | "viewCellLayoutChange" | "init" | "onDidChangeCursorSelection" | "onDidContentSizeChange" | "onDidResolveTextModel";
71
- export declare class CodeCellLayout {
72
- private readonly _enabled;
73
- private readonly notebookEditor;
74
- private readonly viewCell;
75
- private readonly templateData;
76
- private readonly _logService;
77
- private readonly _initialEditorDimension;
78
- private _editorVisibility?;
79
- get editorVisibility(): "Bottom Clipped" | "Full" | "Full (Small Viewport)" | "Invisible" | "Top Clipped" | undefined;
80
- private _isUpdatingLayout?;
81
- get isUpdatingLayout(): boolean | undefined;
82
- _previousScrollBottom?: number;
83
- _lastChangedEditorScrolltop?: number;
84
- private _initialized;
85
- private _pointerDown;
86
- private _establishedContentHeight?;
87
- constructor(_enabled: boolean, notebookEditor: IActiveNotebookEditorDelegate, viewCell: CodeCellViewModel, templateData: CodeCellRenderTemplate, _logService: {
88
- debug: (output: string) => void;
89
- }, _initialEditorDimension: IDimension);
90
- setPointerDown(isDown: boolean): void;
91
- /**
92
- * Dynamically lays out the code cell's Monaco editor to simulate a "sticky" run/exec area while
93
- * constraining the visible editor height to the notebook viewport. It adjusts two things:
94
- * - The absolute `top` offset of the editor part inside the cell (so the run / execution order
95
- * area remains visible for a limited vertical travel band ~45px).
96
- * - The editor's layout height plus the editor's internal scroll position (`editorScrollTop`) to
97
- * crop content when the cell is partially visible (top or bottom clipped) or when content is
98
- * taller than the viewport.
99
- *
100
- * Additional invariants:
101
- * - Content height stability: once the layout has been initialized, scroll-driven re-layouts can
102
- * observe transient Monaco content heights that reflect the current clipped layout (rather than
103
- * the full input height). To keep the notebook list layout stable (avoiding overlapping cells
104
- * while navigating/scrolling), we store the actual content height in `_establishedContentHeight`
105
- * and reuse it for scroll-driven relayouts. This prevents the editor from shrinking back to its
106
- * initial height after content has been added (e.g., pasting text) or when Monaco reports a
107
- * transient smaller content height while the cell is clipped.
108
- *
109
- * We refresh `_establishedContentHeight` when the editor's content size changes
110
- * (`onDidContentSizeChange`) and also when width/layout changes can affect wrapping-driven height
111
- * (`viewCellLayoutChange`/`nbLayoutChange`).
112
- * - Pointer-drag gating: while the user is holding the mouse button down in the editor (drag
113
- * selection or potential drag selection), we avoid programmatic `editor.setScrollTop(...)` updates
114
- * to prevent selection/scroll feedback loops and "stuck selection" behavior.
115
- *
116
- * ---------------------------------------------------------------------------
117
- * SECTION 1. OVERALL NOTEBOOK VIEW (EACH CELL HAS AN 18px GAP ABOVE IT)
118
- * Legend:
119
- * GAP (between cells & before first cell) ............. 18px
120
- * CELL PADDING (top & bottom inside cell) ............. 6px
121
- * STATUS BAR HEIGHT (typical) ......................... 22px
122
- * LINE HEIGHT (logic clamp) ........................... 21px
123
- * BORDER/OUTLINE HEIGHT (visual conceal adjustment) ... 1px
124
- * EDITOR_HEIGHT (example visible editor) .............. 200px (capped by viewport)
125
- * EDITOR_CONTENT_HEIGHT (example full content) ........ 380px (e.g. 50 lines)
126
- * extraOffset = -(CELL_PADDING + BORDER_HEIGHT) ....... -7
127
- *
128
- * (The list ensures the editor's laid out height never exceeds viewport height.)
129
- *
130
- * ┌────────────────────────────── Notebook Viewport (scrolling container) ────────────────────────────┐
131
- * │ (scrollTop) │
132
- * │ │
133
- * │ 18px GAP (top spacing before first cell) │
134
- * │ ▼ │
135
- * │ ┌──────── Cell A Outer Container ────────────────────────────────────────────────────────────┐ │
136
- * │ │ ▲ 6px top padding │ │
137
- * │ │ │ │ │
138
- * │ │ │ ┌─ Execution Order / Run Column (~45px vertical travel band)─┐ ┌─ Editor Part ───────┐ │ │
139
- * │ │ │ │ (Run button, execution # label) │ │ Visible Lines ... │ │ │
140
- * │ │ │ │ │ │ │ │ │
141
- * │ │ │ │ │ │ EDITOR_HEIGHT=200px │ │ │
142
- * │ │ │ │ │ │ (Content=380px) │ │ │
143
- * │ │ │ └────────────────────────────────────────────────────────────┘ └─────────────────────┘ │ │
144
- * │ │ │ │ │
145
- * │ │ │ ┌─ Status Bar (22px) ─────────────────────────────────────────────────────────────────┐ │ │
146
- * │ │ │ │ language | indent | selection info | kernel/status bits ... │ │ │
147
- * │ │ │ └─────────────────────────────────────────────────────────────────────────────────────┘ │ │
148
- * │ │ │ │ │
149
- * │ │ ▼ 6px bottom padding │ │
150
- * │ └────────────────────────────────────────────────────────────────────────────────────────────┘ │
151
- * │ 18px GAP │
152
- * │ ┌──────── Cell B Outer Container ────────────────────────────────────────────────────────────┐ │
153
- * │ │ (same structure as Cell A) │ │
154
- * │ └────────────────────────────────────────────────────────────────────────────────────────────┘ │
155
- * │ │
156
- * │ (scrollBottom) │
157
- * └───────────────────────────────────────────────────────────────────────────────────────────────────┘
158
- *
159
- * SECTION 2. SINGLE CELL STRUCTURE (VERTICAL LAYERS)
160
- *
161
- * Inter-Cell GAP (18px)
162
- * ┌─────────────────────────────── Cell Wrapper (<li>) ──────────────────────────────┐
163
- * │ ┌──────────────────────────── .cell-inner-container ───────────────────────────┐ │
164
- * │ │ 6px top padding │ │
165
- * │ │ │ │
166
- * │ │ ┌─ Left Gutter (Run / Exec / Focus Border) ─┬──────── Editor Part ─────────┐ │ │
167
- * │ │ │ Sticky vertical travel (~45px allowance) │ (Monaco surface) │ │ │
168
- * │ │ │ │ Visible height 200px │ │ │
169
- * │ │ │ │ Content height 380px │ │ │
170
- * │ │ └─────────────────────────────────────────┴────────────────────────────────┘ │ │
171
- * │ │ │ │
172
- * │ │ ┌─ Status Bar (22px) ──────────────────────────────────────────────────────┐ │ │
173
- * │ │ │ language | indent | selection | kernel | state │ │ │
174
- * │ │ └──────────────────────────────────────────────────────────────────────────┘ │ │
175
- * │ │ 6px bottom padding │ │
176
- * │ └──────────────────────────────────────────────────────────────────────────────┘ │
177
- * │ (Outputs region begins at outputContainerOffset below input area) │
178
- * └──────────────────────────────────────────────────────────────────────────────────┘
179
- */
180
- layoutEditor(reason: CellLayoutChangeReason): void;
181
- }
182
- export {};