@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,13 +0,0 @@
1
- import { Disposable } from "../../../../../../base/common/lifecycle.js";
2
- import { ICellViewModel, INotebookEditorDelegate } from "../../notebookBrowser.js";
3
- import { INotebookExecutionStateService } from "../../../common/notebookExecutionStateService.service.js";
4
- export declare class CollapsedCodeCellExecutionIcon extends Disposable {
5
- private readonly _cell;
6
- private readonly _element;
7
- private _executionStateService;
8
- private _visible;
9
- constructor(_notebookEditor: INotebookEditorDelegate, _cell: ICellViewModel, _element: HTMLElement, _executionStateService: INotebookExecutionStateService);
10
- setVisibility(visible: boolean): void;
11
- private _update;
12
- private _getItemForState;
13
- }
@@ -1,79 +0,0 @@
1
-
2
- import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
3
- import { reset } from '../../../../../../base/browser/dom.js';
4
- import { renderLabelWithIcons } from '../../../../../../base/browser/ui/iconLabel/iconLabels.js';
5
- import { Disposable } from '../../../../../../base/common/lifecycle.js';
6
- import { localize } from '../../../../../../nls.js';
7
- import { ThemeIcon } from '../../../../../../base/common/themables.js';
8
- import { successStateIcon, errorStateIcon, pendingStateIcon, executingStateIcon } from '../../notebookIcons.js';
9
- import { NotebookCellExecutionState } from '../../../common/notebookCommon.js';
10
- import { NotebookExecutionType } from '../../../common/notebookExecutionStateService.js';
11
- import { INotebookExecutionStateService } from '../../../common/notebookExecutionStateService.service.js';
12
-
13
- let CollapsedCodeCellExecutionIcon = class CollapsedCodeCellExecutionIcon extends Disposable {
14
- constructor(_notebookEditor, _cell, _element, _executionStateService) {
15
- super();
16
- this._cell = _cell;
17
- this._element = _element;
18
- this._executionStateService = _executionStateService;
19
- this._visible = false;
20
- this._update();
21
- this._register(this._executionStateService.onDidChangeExecution(e => {
22
- if (e.type === NotebookExecutionType.cell && e.affectsCell(this._cell.uri)) {
23
- this._update();
24
- }
25
- }));
26
- this._register(this._cell.model.onDidChangeInternalMetadata(() => this._update()));
27
- }
28
- setVisibility(visible) {
29
- this._visible = visible;
30
- this._update();
31
- }
32
- _update() {
33
- if (!this._visible) {
34
- return;
35
- }
36
- const runState = this._executionStateService.getCellExecution(this._cell.uri);
37
- const item = this._getItemForState(runState, this._cell.model.internalMetadata);
38
- if (item) {
39
- this._element.style.display = "";
40
- reset(this._element, ...renderLabelWithIcons(item.text));
41
- this._element.title = item.tooltip ?? "";
42
- } else {
43
- this._element.style.display = "none";
44
- reset(this._element);
45
- }
46
- }
47
- _getItemForState(runState, internalMetadata) {
48
- const state = runState?.state;
49
- const {
50
- lastRunSuccess
51
- } = internalMetadata;
52
- if (!state && lastRunSuccess) {
53
- return {
54
- text: `$(${successStateIcon.id})`,
55
- tooltip: ( localize(14831, "Success"))
56
- };
57
- } else if (!state && lastRunSuccess === false) {
58
- return {
59
- text: `$(${errorStateIcon.id})`,
60
- tooltip: ( localize(14832, "Failure"))
61
- };
62
- } else if (state === NotebookCellExecutionState.Pending || state === NotebookCellExecutionState.Unconfirmed) {
63
- return {
64
- text: `$(${pendingStateIcon.id})`,
65
- tooltip: ( localize(14833, "Pending"))
66
- };
67
- } else if (state === NotebookCellExecutionState.Executing) {
68
- const icon = ThemeIcon.modify(executingStateIcon, "spin");
69
- return {
70
- text: `$(${icon.id})`,
71
- tooltip: ( localize(14834, "Executing"))
72
- };
73
- }
74
- return;
75
- }
76
- };
77
- CollapsedCodeCellExecutionIcon = ( __decorate([( __param(3, INotebookExecutionStateService))], CollapsedCodeCellExecutionIcon));
78
-
79
- export { CollapsedCodeCellExecutionIcon };
@@ -1,30 +0,0 @@
1
- import { IAction } from "../../../../../../base/common/actions.js";
2
- import { IMenu, MenuId } from "../../../../../../platform/actions/common/actions.js";
3
- import { IMenuService } from "../../../../../../platform/actions/common/actions.service.js";
4
- import { IScopedContextKeyService } from "../../../../../../platform/contextkey/common/contextkey.js";
5
- import { IContextKeyService } from "../../../../../../platform/contextkey/common/contextkey.service.js";
6
- import { IContextMenuService } from "../../../../../../platform/contextview/browser/contextView.service.js";
7
- import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js";
8
- import { IKeybindingService } from "../../../../../../platform/keybinding/common/keybinding.service.js";
9
- import { ICellViewModel, INotebookEditorDelegate } from "../../notebookBrowser.js";
10
- import { CellContentPart } from "../cellPart.js";
11
- export declare class RunToolbar extends CellContentPart {
12
- readonly notebookEditor: INotebookEditorDelegate;
13
- readonly contextKeyService: IContextKeyService;
14
- readonly cellContainer: HTMLElement;
15
- readonly runButtonContainer: HTMLElement;
16
- private readonly keybindingService;
17
- private readonly contextMenuService;
18
- private readonly instantiationService;
19
- private toolbar;
20
- private primaryMenu;
21
- private secondaryMenu;
22
- constructor(notebookEditor: INotebookEditorDelegate, contextKeyService: IContextKeyService, cellContainer: HTMLElement, runButtonContainer: HTMLElement, primaryMenuId: MenuId, secondaryMenuId: MenuId, menuService: IMenuService, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, instantiationService: IInstantiationService);
23
- didRenderCell(element: ICellViewModel): void;
24
- getCellToolbarActions(menu: IMenu): {
25
- primary: IAction[];
26
- secondary: IAction[];
27
- };
28
- private createRunCellToolbar;
29
- }
30
- export declare function getCodeCellExecutionContextKeyService(contextKeyService: IContextKeyService): IScopedContextKeyService;
@@ -1,126 +0,0 @@
1
-
2
- import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
3
- import { ToolBar } from '../../../../../../base/browser/ui/toolbar/toolbar.js';
4
- import { Action } from '../../../../../../base/common/actions.js';
5
- import { DisposableStore } from '../../../../../../base/common/lifecycle.js';
6
- import { MarshalledId } from '../../../../../../base/common/marshallingIds.js';
7
- import { EditorContextKeys } from '../../../../../../editor/common/editorContextKeys.js';
8
- import { localize } from '../../../../../../nls.js';
9
- import { DropdownWithPrimaryActionViewItem } from '../../../../../../platform/actions/browser/dropdownWithPrimaryActionViewItem.js';
10
- import { getActionBarActions } from '../../../../../../platform/actions/browser/menuEntryActionViewItem.js';
11
- import { MenuItemAction } from '../../../../../../platform/actions/common/actions.js';
12
- import { IMenuService } from '../../../../../../platform/actions/common/actions.service.js';
13
- import { InputFocusedContext } from '../../../../../../platform/contextkey/common/contextkeys.js';
14
- import { IContextMenuService } from '../../../../../../platform/contextview/browser/contextView.service.js';
15
- import { IInstantiationService } from '../../../../../../platform/instantiation/common/instantiation.js';
16
- import { IKeybindingService } from '../../../../../../platform/keybinding/common/keybinding.service.js';
17
- import { CellContentPart } from '../cellPart.js';
18
- import { registerCellToolbarStickyScroll } from './cellToolbarStickyScroll.js';
19
- import { NOTEBOOK_CELL_EXECUTION_STATE, NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_CELL_TYPE } from '../../../common/notebookContextKeys.js';
20
- import { createElement } from '../../../../../../base/browser/dom.js';
21
-
22
- let RunToolbar = class RunToolbar extends CellContentPart {
23
- constructor(
24
- notebookEditor,
25
- contextKeyService,
26
- cellContainer,
27
- runButtonContainer,
28
- primaryMenuId,
29
- secondaryMenuId,
30
- menuService,
31
- keybindingService,
32
- contextMenuService,
33
- instantiationService
34
- ) {
35
- super();
36
- this.notebookEditor = notebookEditor;
37
- this.contextKeyService = contextKeyService;
38
- this.cellContainer = cellContainer;
39
- this.runButtonContainer = runButtonContainer;
40
- this.keybindingService = keybindingService;
41
- this.contextMenuService = contextMenuService;
42
- this.instantiationService = instantiationService;
43
- this.primaryMenu = this._register(menuService.createMenu(primaryMenuId, contextKeyService));
44
- this.secondaryMenu = this._register(menuService.createMenu(secondaryMenuId, contextKeyService));
45
- this.createRunCellToolbar(runButtonContainer, cellContainer, contextKeyService);
46
- const updateActions = () => {
47
- const actions = this.getCellToolbarActions(this.primaryMenu);
48
- const primary = actions.primary[0];
49
- this.toolbar.setActions(primary ? [primary] : []);
50
- };
51
- updateActions();
52
- this._register(this.primaryMenu.onDidChange(updateActions));
53
- this._register(this.secondaryMenu.onDidChange(updateActions));
54
- this._register(this.notebookEditor.notebookOptions.onDidChangeOptions(updateActions));
55
- }
56
- didRenderCell(element) {
57
- this.cellDisposables.add(
58
- registerCellToolbarStickyScroll(this.notebookEditor, element, this.runButtonContainer)
59
- );
60
- if (this.notebookEditor.hasModel()) {
61
- const context = {
62
- ui: true,
63
- cell: element,
64
- notebookEditor: this.notebookEditor,
65
- $mid: MarshalledId.NotebookCellActionContext
66
- };
67
- this.toolbar.context = context;
68
- }
69
- }
70
- getCellToolbarActions(menu) {
71
- return getActionBarActions(menu.getActions({
72
- shouldForwardArgs: true
73
- }), g => /^inline/.test(g));
74
- }
75
- createRunCellToolbar(container, cellContainer, contextKeyService) {
76
- const actionViewItemDisposables = this._register(( new DisposableStore()));
77
- const dropdownAction = this._register(( new Action("notebook.moreRunActions", ( localize(14835, "More...")), "codicon-chevron-down", true)));
78
- const keybindingProvider = action => this.keybindingService.lookupKeybinding(action.id, executionContextKeyService);
79
- const executionContextKeyService = this._register(getCodeCellExecutionContextKeyService(contextKeyService));
80
- this.toolbar = this._register(( new ToolBar(container, this.contextMenuService, {
81
- getKeyBinding: keybindingProvider,
82
- actionViewItemProvider: (_action, _options) => {
83
- actionViewItemDisposables.clear();
84
- const primary = this.getCellToolbarActions(this.primaryMenu).primary[0];
85
- if (!(primary instanceof MenuItemAction)) {
86
- return undefined;
87
- }
88
- const secondary = this.getCellToolbarActions(this.secondaryMenu).secondary;
89
- if (!secondary.length) {
90
- return undefined;
91
- }
92
- const item = this.instantiationService.createInstance(
93
- DropdownWithPrimaryActionViewItem,
94
- primary,
95
- dropdownAction,
96
- secondary,
97
- "notebook-cell-run-toolbar",
98
- {
99
- ..._options,
100
- getKeyBinding: keybindingProvider
101
- }
102
- );
103
- actionViewItemDisposables.add(item.onDidChangeDropdownVisibility(visible => {
104
- cellContainer.classList.toggle("cell-run-toolbar-dropdown-active", visible);
105
- }));
106
- return item;
107
- },
108
- renderDropdownAsChildElement: true
109
- })));
110
- }
111
- };
112
- RunToolbar = ( __decorate([( __param(6, IMenuService)), ( __param(7, IKeybindingService)), ( __param(8, IContextMenuService)), ( __param(9, IInstantiationService))], RunToolbar));
113
- function getCodeCellExecutionContextKeyService(contextKeyService) {
114
- const executionContextKeyService = contextKeyService.createScoped(createElement("div"));
115
- InputFocusedContext.bindTo(executionContextKeyService).set(true);
116
- EditorContextKeys.editorTextFocus.bindTo(executionContextKeyService).set(true);
117
- EditorContextKeys.focus.bindTo(executionContextKeyService).set(true);
118
- EditorContextKeys.textInputFocus.bindTo(executionContextKeyService).set(true);
119
- NOTEBOOK_CELL_EXECUTION_STATE.bindTo(executionContextKeyService).set("idle");
120
- NOTEBOOK_CELL_LIST_FOCUSED.bindTo(executionContextKeyService).set(true);
121
- NOTEBOOK_EDITOR_FOCUSED.bindTo(executionContextKeyService).set(true);
122
- NOTEBOOK_CELL_TYPE.bindTo(executionContextKeyService).set("code");
123
- return executionContextKeyService;
124
- }
125
-
126
- export { RunToolbar, getCodeCellExecutionContextKeyService };
@@ -1,6 +0,0 @@
1
- import { INotebookEditor } from "../../notebookBrowser.js";
2
- import { CellContentPart } from "../cellPart.js";
3
- export declare class CollapsedCellInput extends CellContentPart {
4
- private readonly notebookEditor;
5
- constructor(notebookEditor: INotebookEditor, cellInputCollapsedContainer: HTMLElement);
6
- }
@@ -1,32 +0,0 @@
1
-
2
- import { addDisposableListener, EventType } from '../../../../../../base/browser/dom.js';
3
- import { CellContentPart } from '../cellPart.js';
4
-
5
- class CollapsedCellInput extends CellContentPart {
6
- constructor(notebookEditor, cellInputCollapsedContainer) {
7
- super();
8
- this.notebookEditor = notebookEditor;
9
- this._register(addDisposableListener(cellInputCollapsedContainer, EventType.DBLCLICK, e => {
10
- if (!this.currentCell || !this.notebookEditor.hasModel()) {
11
- return;
12
- }
13
- if (this.currentCell.isInputCollapsed) {
14
- this.currentCell.isInputCollapsed = false;
15
- }
16
- else {
17
- this.currentCell.isOutputCollapsed = false;
18
- }
19
- }));
20
- this._register(addDisposableListener(cellInputCollapsedContainer, EventType.CLICK, e => {
21
- if (!this.currentCell || !this.notebookEditor.hasModel()) {
22
- return;
23
- }
24
- const element = e.target;
25
- if (element && element.classList && element.classList.contains('expandInputIcon')) {
26
- this.currentCell.isInputCollapsed = false;
27
- }
28
- }));
29
- }
30
- }
31
-
32
- export { CollapsedCellInput };
@@ -1,8 +0,0 @@
1
- import { IKeybindingService } from "../../../../../../platform/keybinding/common/keybinding.service.js";
2
- import { INotebookEditor } from "../../notebookBrowser.js";
3
- import { CellContentPart } from "../cellPart.js";
4
- export declare class CollapsedCellOutput extends CellContentPart {
5
- private readonly notebookEditor;
6
- constructor(notebookEditor: INotebookEditor, cellOutputCollapseContainer: HTMLElement, keybindingService: IKeybindingService);
7
- private expand;
8
- }
@@ -1,50 +0,0 @@
1
-
2
- import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
3
- import { $ as $$1, append, hide, addDisposableListener, EventType } from '../../../../../../base/browser/dom.js';
4
- import { Codicon } from '../../../../../../base/common/codicons.js';
5
- import { ThemeIcon } from '../../../../../../base/common/themables.js';
6
- import { localize } from '../../../../../../nls.js';
7
- import { IKeybindingService } from '../../../../../../platform/keybinding/common/keybinding.service.js';
8
- import { EXPAND_CELL_OUTPUT_COMMAND_ID } from '../../notebookBrowser.js';
9
- import { CellContentPart } from '../cellPart.js';
10
-
11
- const $ = $$1;
12
- let CollapsedCellOutput = class CollapsedCellOutput extends CellContentPart {
13
- constructor(notebookEditor, cellOutputCollapseContainer, keybindingService) {
14
- super();
15
- this.notebookEditor = notebookEditor;
16
- const placeholder = append(cellOutputCollapseContainer, $("span.expandOutputPlaceholder"));
17
- placeholder.textContent = ( localize(14836, "Outputs are collapsed"));
18
- const expandIcon = append(cellOutputCollapseContainer, $("span.expandOutputIcon"));
19
- expandIcon.classList.add(...ThemeIcon.asClassNameArray(Codicon.more));
20
- const keybinding = keybindingService.lookupKeybinding(EXPAND_CELL_OUTPUT_COMMAND_ID);
21
- if (keybinding) {
22
- placeholder.title = ( localize(14837, "Double-click to expand cell output ({0})", keybinding.getLabel()));
23
- cellOutputCollapseContainer.title = ( localize(14838, "Expand Cell Output (${0})", keybinding.getLabel()));
24
- }
25
- hide(cellOutputCollapseContainer);
26
- this._register(
27
- addDisposableListener(expandIcon, EventType.CLICK, () => this.expand())
28
- );
29
- this._register(
30
- addDisposableListener(cellOutputCollapseContainer, EventType.DBLCLICK, () => this.expand())
31
- );
32
- }
33
- expand() {
34
- if (!this.currentCell) {
35
- return;
36
- }
37
- if (!this.currentCell) {
38
- return;
39
- }
40
- const textModel = this.notebookEditor.textModel;
41
- const index = textModel.cells.indexOf(this.currentCell.model);
42
- if (index < 0) {
43
- return;
44
- }
45
- this.currentCell.isOutputCollapsed = !this.currentCell.isOutputCollapsed;
46
- }
47
- };
48
- CollapsedCellOutput = ( __decorate([( __param(2, IKeybindingService))], CollapsedCellOutput));
49
-
50
- export { CollapsedCellOutput };
@@ -1,18 +0,0 @@
1
- import { INotebookEditor } from "../../notebookBrowser.js";
2
- import { CellContentPart } from "../cellPart.js";
3
- import { MarkupCellViewModel } from "../../viewModel/markupCellViewModel.js";
4
- import { INotebookExecutionStateService } from "../../../common/notebookExecutionStateService.service.js";
5
- export declare class FoldedCellHint extends CellContentPart {
6
- private readonly _notebookEditor;
7
- private readonly _container;
8
- private readonly _notebookExecutionStateService;
9
- private readonly _runButtonListener;
10
- private readonly _cellExecutionListener;
11
- constructor(_notebookEditor: INotebookEditor, _container: HTMLElement, _notebookExecutionStateService: INotebookExecutionStateService);
12
- didRenderCell(element: MarkupCellViewModel): void;
13
- private update;
14
- private getHiddenCellsLabel;
15
- private getHiddenCellHintButton;
16
- private getRunFoldedSectionButton;
17
- updateInternalLayoutNow(element: MarkupCellViewModel): void;
18
- }
@@ -1,119 +0,0 @@
1
-
2
- import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
3
- import { hide, reset, show, $, addDisposableListener, EventType } from '../../../../../../base/browser/dom.js';
4
- import { Codicon } from '../../../../../../base/common/codicons.js';
5
- import { ThemeIcon } from '../../../../../../base/common/themables.js';
6
- import { localize } from '../../../../../../nls.js';
7
- import { FoldingController } from '../../controller/foldingController.js';
8
- import { CellEditState, CellFoldingState } from '../../notebookBrowser.js';
9
- import { CellContentPart } from '../cellPart.js';
10
- import { executingStateIcon } from '../../notebookIcons.js';
11
- import { INotebookExecutionStateService } from '../../../common/notebookExecutionStateService.service.js';
12
- import { CellKind, NotebookCellExecutionState } from '../../../common/notebookCommon.js';
13
- import { MutableDisposable } from '../../../../../../base/common/lifecycle.js';
14
-
15
- let FoldedCellHint = class FoldedCellHint extends CellContentPart {
16
- constructor(_notebookEditor, _container, _notebookExecutionStateService) {
17
- super();
18
- this._notebookEditor = _notebookEditor;
19
- this._container = _container;
20
- this._notebookExecutionStateService = _notebookExecutionStateService;
21
- this._runButtonListener = this._register(( new MutableDisposable()));
22
- this._cellExecutionListener = this._register(( new MutableDisposable()));
23
- }
24
- didRenderCell(element) {
25
- this.update(element);
26
- }
27
- update(element) {
28
- if (!this._notebookEditor.hasModel()) {
29
- this._cellExecutionListener.clear();
30
- this._runButtonListener.clear();
31
- return;
32
- }
33
- if (element.isInputCollapsed || element.getEditState() === CellEditState.Editing) {
34
- this._cellExecutionListener.clear();
35
- this._runButtonListener.clear();
36
- hide(this._container);
37
- } else if (element.foldingState === CellFoldingState.Collapsed) {
38
- const idx = this._notebookEditor.getViewModel().getCellIndex(element);
39
- const length = this._notebookEditor.getViewModel().getFoldedLength(idx);
40
- const runSectionButton = this.getRunFoldedSectionButton({
41
- start: idx,
42
- end: idx + length + 1
43
- });
44
- if (!runSectionButton) {
45
- reset(
46
- this._container,
47
- this.getHiddenCellsLabel(length),
48
- this.getHiddenCellHintButton(element)
49
- );
50
- } else {
51
- reset(
52
- this._container,
53
- runSectionButton,
54
- this.getHiddenCellsLabel(length),
55
- this.getHiddenCellHintButton(element)
56
- );
57
- }
58
- show(this._container);
59
- const foldHintTop = element.layoutInfo.previewHeight;
60
- this._container.style.top = `${foldHintTop}px`;
61
- } else {
62
- this._cellExecutionListener.clear();
63
- this._runButtonListener.clear();
64
- hide(this._container);
65
- }
66
- }
67
- getHiddenCellsLabel(num) {
68
- const label = num === 1 ? ( localize(14839, "1 cell hidden")) : ( localize(14840, "{0} cells hidden", num));
69
- return $("span.notebook-folded-hint-label", undefined, label);
70
- }
71
- getHiddenCellHintButton(element) {
72
- const expandIcon = $("span.cell-expand-part-button");
73
- expandIcon.classList.add(...ThemeIcon.asClassNameArray(Codicon.more));
74
- this._register(addDisposableListener(expandIcon, EventType.CLICK, () => {
75
- const controller = this._notebookEditor.getContribution(FoldingController.id);
76
- const idx = this._notebookEditor.getCellIndex(element);
77
- if (typeof idx === "number") {
78
- controller.setFoldingStateDown(idx, CellFoldingState.Expanded, 1);
79
- }
80
- }));
81
- return expandIcon;
82
- }
83
- getRunFoldedSectionButton(range) {
84
- const runAllContainer = $("span.folded-cell-run-section-button");
85
- const cells = this._notebookEditor.getCellsInRange(range);
86
- const hasCodeCells = ( cells.some(cell => cell.cellKind === CellKind.Code));
87
- if (!hasCodeCells) {
88
- return undefined;
89
- }
90
- const isRunning = ( cells.some(cell => {
91
- const cellExecution = this._notebookExecutionStateService.getCellExecution(cell.uri);
92
- return cellExecution && cellExecution.state === NotebookCellExecutionState.Executing;
93
- }));
94
- const runAllIcon = isRunning ? ThemeIcon.modify(executingStateIcon, "spin") : Codicon.play;
95
- runAllContainer.classList.add(...ThemeIcon.asClassNameArray(runAllIcon));
96
- this._runButtonListener.value = addDisposableListener(runAllContainer, EventType.CLICK, () => {
97
- this._notebookEditor.executeNotebookCells(cells);
98
- });
99
- this._cellExecutionListener.value = this._notebookExecutionStateService.onDidChangeExecution(() => {
100
- const isRunning = ( cells.some(cell => {
101
- const cellExecution = this._notebookExecutionStateService.getCellExecution(cell.uri);
102
- return cellExecution && cellExecution.state === NotebookCellExecutionState.Executing;
103
- }));
104
- const runAllIcon = isRunning ? ThemeIcon.modify(executingStateIcon, "spin") : Codicon.play;
105
- runAllContainer.className = "";
106
- runAllContainer.classList.add(
107
- "folded-cell-run-section-button",
108
- ...ThemeIcon.asClassNameArray(runAllIcon)
109
- );
110
- });
111
- return runAllContainer;
112
- }
113
- updateInternalLayoutNow(element) {
114
- this.update(element);
115
- }
116
- };
117
- FoldedCellHint = ( __decorate([( __param(2, INotebookExecutionStateService))], FoldedCellHint));
118
-
119
- export { FoldedCellHint };
@@ -1,57 +0,0 @@
1
- import { Disposable } from "../../../../../../base/common/lifecycle.js";
2
- import { ICodeEditor } from "../../../../../../editor/browser/editorBrowser.js";
3
- import { IEditorOptions } from "../../../../../../editor/common/config/editorOptions.js";
4
- import { ILanguageService } from "../../../../../../editor/common/languages/language.service.js";
5
- import { IAccessibilityService } from "../../../../../../platform/accessibility/common/accessibility.service.js";
6
- import { IConfigurationService } from "../../../../../../platform/configuration/common/configuration.service.js";
7
- import { IContextKeyService } from "../../../../../../platform/contextkey/common/contextkey.service.js";
8
- import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js";
9
- import { IKeybindingService } from "../../../../../../platform/keybinding/common/keybinding.service.js";
10
- import { IActiveNotebookEditorDelegate, ICellViewModel } from "../../notebookBrowser.js";
11
- import { MarkdownCellRenderTemplate } from "../notebookRenderingCommon.js";
12
- import { MarkupCellViewModel } from "../../viewModel/markupCellViewModel.js";
13
- export declare class MarkupCell extends Disposable {
14
- private readonly notebookEditor;
15
- private readonly viewCell;
16
- private readonly templateData;
17
- private readonly renderedEditors;
18
- private readonly accessibilityService;
19
- private readonly contextKeyService;
20
- private readonly instantiationService;
21
- private readonly languageService;
22
- private configurationService;
23
- private keybindingService;
24
- private editor;
25
- private markdownAccessibilityContainer;
26
- private editorPart;
27
- private readonly localDisposables;
28
- private readonly focusSwitchDisposable;
29
- private readonly editorDisposables;
30
- private foldingState;
31
- private cellEditorOptions;
32
- private editorOptions;
33
- private _isDisposed;
34
- constructor(notebookEditor: IActiveNotebookEditorDelegate, viewCell: MarkupCellViewModel, templateData: MarkdownCellRenderTemplate, renderedEditors: Map<ICellViewModel, ICodeEditor | undefined>, accessibilityService: IAccessibilityService, contextKeyService: IContextKeyService, instantiationService: IInstantiationService, languageService: ILanguageService, configurationService: IConfigurationService, keybindingService: IKeybindingService);
35
- layoutCellParts(): void;
36
- private constructDOM;
37
- private registerListeners;
38
- private updateMarkupCellOptions;
39
- private updateCollapsedState;
40
- private updateForHover;
41
- private updateForFocusModeChange;
42
- dispose(): void;
43
- private updateFoldingIconShowClass;
44
- private viewUpdate;
45
- private viewUpdateCollapsed;
46
- private getRichText;
47
- private viewUpdateEditing;
48
- private viewUpdatePreview;
49
- private focusEditorIfNeeded;
50
- private layoutEditor;
51
- private onCellEditorWidthChange;
52
- relayoutCell(): void;
53
- updateEditorOptions(newValue: IEditorOptions): void;
54
- private layoutFoldingIndicator;
55
- private bindEditorListeners;
56
- private onCellEditorHeightChange;
57
- }