@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,15 +0,0 @@
1
- import { ICellViewModel } from "../../notebookBrowser.js";
2
- import { CellViewModelStateChangeEvent } from "../../notebookViewEvents.js";
3
- import { CellContentPart } from "../cellPart.js";
4
- import { ICellExecutionStateChangedEvent } from "../../../common/notebookExecutionStateService.js";
5
- import { INotebookExecutionStateService } from "../../../common/notebookExecutionStateService.service.js";
6
- export declare class CellProgressBar extends CellContentPart {
7
- private readonly _notebookExecutionStateService;
8
- private readonly _progressBar;
9
- private readonly _collapsedProgressBar;
10
- constructor(editorContainer: HTMLElement, collapsedInputContainer: HTMLElement, _notebookExecutionStateService: INotebookExecutionStateService);
11
- didRenderCell(element: ICellViewModel): void;
12
- updateForExecutionState(element: ICellViewModel, e: ICellExecutionStateChangedEvent): void;
13
- updateState(element: ICellViewModel, e: CellViewModelStateChangeEvent): void;
14
- private _updateForExecutionState;
15
- }
@@ -1,58 +0,0 @@
1
-
2
- import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
3
- import { ProgressBar } from '../../../../../../base/browser/ui/progressbar/progressbar.js';
4
- import { defaultProgressBarStyles } from '../../../../../../platform/theme/browser/defaultStyles.js';
5
- import { CellContentPart } from '../cellPart.js';
6
- import { NotebookCellExecutionState } from '../../../common/notebookCommon.js';
7
- import { INotebookExecutionStateService } from '../../../common/notebookExecutionStateService.service.js';
8
-
9
- let CellProgressBar = class CellProgressBar extends CellContentPart {
10
- constructor(editorContainer, collapsedInputContainer, _notebookExecutionStateService) {
11
- super();
12
- this._notebookExecutionStateService = _notebookExecutionStateService;
13
- this._progressBar = this._register(( new ProgressBar(editorContainer, defaultProgressBarStyles)));
14
- this._progressBar.hide();
15
- this._collapsedProgressBar = this._register(( new ProgressBar(collapsedInputContainer, defaultProgressBarStyles)));
16
- this._collapsedProgressBar.hide();
17
- }
18
- didRenderCell(element) {
19
- this._updateForExecutionState(element);
20
- }
21
- updateForExecutionState(element, e) {
22
- this._updateForExecutionState(element, e);
23
- }
24
- updateState(element, e) {
25
- if (e.metadataChanged || e.internalMetadataChanged) {
26
- this._updateForExecutionState(element);
27
- }
28
- if (e.inputCollapsedChanged) {
29
- const exeState = this._notebookExecutionStateService.getCellExecution(element.uri);
30
- if (element.isInputCollapsed) {
31
- this._progressBar.hide();
32
- if (exeState?.state === NotebookCellExecutionState.Executing) {
33
- this._updateForExecutionState(element);
34
- }
35
- } else {
36
- this._collapsedProgressBar.hide();
37
- if (exeState?.state === NotebookCellExecutionState.Executing) {
38
- this._updateForExecutionState(element);
39
- }
40
- }
41
- }
42
- }
43
- _updateForExecutionState(element, e) {
44
- const exeState = e?.changed ?? this._notebookExecutionStateService.getCellExecution(element.uri);
45
- const progressBar = element.isInputCollapsed ? this._collapsedProgressBar : this._progressBar;
46
- if (exeState?.state === NotebookCellExecutionState.Executing && (!exeState.didPause || element.isInputCollapsed)) {
47
- showProgressBar(progressBar);
48
- } else {
49
- progressBar.hide();
50
- }
51
- }
52
- };
53
- CellProgressBar = ( __decorate([( __param(2, INotebookExecutionStateService))], CellProgressBar));
54
- function showProgressBar(progressBar) {
55
- progressBar.infinite().show(500);
56
- }
57
-
58
- export { CellProgressBar };
@@ -1,36 +0,0 @@
1
- import { Emitter, Event } from "../../../../../../base/common/event.js";
2
- import { ICodeEditor } from "../../../../../../editor/browser/editorBrowser.js";
3
- import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js";
4
- import { IThemeService } from "../../../../../../platform/theme/common/themeService.service.js";
5
- import { INotebookCellActionContext } from "../../controller/coreActions.js";
6
- import { ICellViewModel, INotebookEditorDelegate } from "../../notebookBrowser.js";
7
- import { CellContentPart } from "../cellPart.js";
8
- import { IClickTarget } from "./cellWidgets.js";
9
- import { IHoverService } from "../../../../../../platform/hover/browser/hover.service.js";
10
- import { IConfigurationService } from "../../../../../../platform/configuration/common/configuration.service.js";
11
- export declare class CellEditorStatusBar extends CellContentPart {
12
- private readonly _notebookEditor;
13
- private readonly _cellContainer;
14
- private readonly _editor;
15
- private readonly _instantiationService;
16
- private readonly _themeService;
17
- readonly statusBarContainer: HTMLElement;
18
- private readonly leftItemsContainer;
19
- private readonly rightItemsContainer;
20
- private readonly itemsDisposable;
21
- private leftItems;
22
- private rightItems;
23
- private width;
24
- private currentContext;
25
- protected readonly _onDidClick: Emitter<IClickTarget>;
26
- readonly onDidClick: Event<IClickTarget>;
27
- private readonly hoverDelegate;
28
- constructor(_notebookEditor: INotebookEditorDelegate, _cellContainer: HTMLElement, editorPart: HTMLElement, _editor: ICodeEditor | undefined, _instantiationService: IInstantiationService, hoverService: IHoverService, configurationService: IConfigurationService, _themeService: IThemeService);
29
- didRenderCell(element: ICellViewModel): void;
30
- updateInternalLayoutNow(element: ICellViewModel): void;
31
- private getMaxItemWidth;
32
- updateContext(context: INotebookCellActionContext): void;
33
- private updateActiveCell;
34
- private updateRenderedItems;
35
- dispose(): void;
36
- }
@@ -1,357 +0,0 @@
1
-
2
- import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
3
- import { $ as $$1, append, addDisposableListener, EventType, isHTMLElement, getActiveElement } from '../../../../../../base/browser/dom.js';
4
- import { StandardKeyboardEvent } from '../../../../../../base/browser/keyboardEvent.js';
5
- import { SimpleIconLabel } from '../../../../../../base/browser/ui/iconLabel/simpleIconLabel.js';
6
- import { toErrorMessage } from '../../../../../../base/common/errorMessage.js';
7
- import { Emitter } from '../../../../../../base/common/event.js';
8
- import { stripIcons } from '../../../../../../base/common/iconLabels.js';
9
- import { KeyCode } from '../../../../../../base/common/keyCodes.js';
10
- import { DisposableStore, dispose, Disposable } from '../../../../../../base/common/lifecycle.js';
11
- import { MarshalledId } from '../../../../../../base/common/marshallingIds.js';
12
- import { isThemeColor } from '../../../../../../editor/common/editorCommon.js';
13
- import { ICommandService } from '../../../../../../platform/commands/common/commands.service.js';
14
- import { IInstantiationService } from '../../../../../../platform/instantiation/common/instantiation.js';
15
- import { INotificationService } from '../../../../../../platform/notification/common/notification.service.js';
16
- import { ITelemetryService } from '../../../../../../platform/telemetry/common/telemetry.service.js';
17
- import { IThemeService } from '../../../../../../platform/theme/common/themeService.service.js';
18
- import { CellFocusMode } from '../../notebookBrowser.js';
19
- import { CellContentPart } from '../cellPart.js';
20
- import { ClickTargetType } from './cellWidgets.js';
21
- import { CodeCellViewModel } from '../../viewModel/codeCellViewModel.js';
22
- import { CellStatusbarAlignment } from '../../../common/notebookCommon.js';
23
- import { IHoverService } from '../../../../../../platform/hover/browser/hover.service.js';
24
- import { IConfigurationService } from '../../../../../../platform/configuration/common/configuration.service.js';
25
- import { HoverPosition } from '../../../../../../base/browser/ui/hover/hoverWidget.js';
26
-
27
- const $ = $$1;
28
- let CellEditorStatusBar = class CellEditorStatusBar extends CellContentPart {
29
- constructor(
30
- _notebookEditor,
31
- _cellContainer,
32
- editorPart,
33
- _editor,
34
- _instantiationService,
35
- hoverService,
36
- configurationService,
37
- _themeService
38
- ) {
39
- super();
40
- this._notebookEditor = _notebookEditor;
41
- this._cellContainer = _cellContainer;
42
- this._editor = _editor;
43
- this._instantiationService = _instantiationService;
44
- this._themeService = _themeService;
45
- this.leftItems = [];
46
- this.rightItems = [];
47
- this.width = 0;
48
- this._onDidClick = this._register(( new Emitter()));
49
- this.onDidClick = this._onDidClick.event;
50
- this.statusBarContainer = append(editorPart, $(".cell-statusbar-container"));
51
- this.statusBarContainer.tabIndex = -1;
52
- const leftItemsContainer = append(this.statusBarContainer, $(".cell-status-left"));
53
- const rightItemsContainer = append(this.statusBarContainer, $(".cell-status-right"));
54
- this.leftItemsContainer = append(
55
- leftItemsContainer,
56
- $(".cell-contributed-items.cell-contributed-items-left")
57
- );
58
- this.rightItemsContainer = append(
59
- rightItemsContainer,
60
- $(".cell-contributed-items.cell-contributed-items-right")
61
- );
62
- this.itemsDisposable = this._register(( new DisposableStore()));
63
- this.hoverDelegate = new (class {
64
- constructor() {
65
- this._lastHoverHideTime = 0;
66
- this.showHover = options => {
67
- options.position = options.position ?? {};
68
- options.position.hoverPosition = HoverPosition.ABOVE;
69
- return hoverService.showInstantHover(options);
70
- };
71
- this.placement = "element";
72
- }
73
- get delay() {
74
- return Date.now() - this._lastHoverHideTime < 200 ?
75
- 0 : configurationService.getValue("workbench.hover.delay");
76
- }
77
- onDidHideHover() {
78
- this._lastHoverHideTime = Date.now();
79
- }
80
- })();
81
- this._register(
82
- this._themeService.onDidColorThemeChange(() => this.currentContext && this.updateContext(this.currentContext))
83
- );
84
- this._register(
85
- addDisposableListener(this.statusBarContainer, EventType.CLICK, e => {
86
- if (e.target === leftItemsContainer || e.target === rightItemsContainer || e.target === this.statusBarContainer) {
87
- this._onDidClick.fire({
88
- type: ClickTargetType.Container,
89
- event: e
90
- });
91
- } else {
92
- const target = e.target;
93
- let itemHasCommand = false;
94
- if (target && isHTMLElement(target)) {
95
- const targetElement = target;
96
- if (targetElement.classList.contains("cell-status-item-has-command")) {
97
- itemHasCommand = true;
98
- } else if (targetElement.parentElement && targetElement.parentElement.classList.contains("cell-status-item-has-command")) {
99
- itemHasCommand = true;
100
- }
101
- }
102
- if (itemHasCommand) {
103
- this._onDidClick.fire({
104
- type: ClickTargetType.ContributedCommandItem,
105
- event: e
106
- });
107
- } else {
108
- this._onDidClick.fire({
109
- type: ClickTargetType.ContributedTextItem,
110
- event: e
111
- });
112
- }
113
- }
114
- })
115
- );
116
- }
117
- didRenderCell(element) {
118
- if (this._notebookEditor.hasModel()) {
119
- const context = {
120
- ui: true,
121
- cell: element,
122
- notebookEditor: this._notebookEditor,
123
- $mid: MarshalledId.NotebookCellActionContext
124
- };
125
- this.updateContext(context);
126
- }
127
- if (this._editor) {
128
- const updateFocusModeForEditorEvent = () => {
129
- if (this._editor && (this._editor.hasWidgetFocus() || (getActiveElement(this.statusBarContainer.ownerDocument) && this.statusBarContainer.contains(getActiveElement(this.statusBarContainer.ownerDocument))))) {
130
- element.focusMode = CellFocusMode.Editor;
131
- } else {
132
- const currentMode = element.focusMode;
133
- if (currentMode === CellFocusMode.ChatInput) {
134
- element.focusMode = CellFocusMode.ChatInput;
135
- } else if (currentMode === CellFocusMode.Output && this._notebookEditor.hasWebviewFocus()) {
136
- element.focusMode = CellFocusMode.Output;
137
- } else {
138
- element.focusMode = CellFocusMode.Container;
139
- }
140
- }
141
- };
142
- this.cellDisposables.add(this._editor.onDidFocusEditorWidget(() => {
143
- updateFocusModeForEditorEvent();
144
- }));
145
- this.cellDisposables.add(this._editor.onDidBlurEditorWidget(() => {
146
- const activeElement = getActiveElement(this.statusBarContainer.ownerDocument);
147
- if (this._notebookEditor.hasEditorFocus() && !(activeElement && this.statusBarContainer.contains(activeElement))) {
148
- updateFocusModeForEditorEvent();
149
- }
150
- }));
151
- this.cellDisposables.add(this.onDidClick(e => {
152
- if (this.currentCell instanceof CodeCellViewModel && e.type !== ClickTargetType.ContributedCommandItem && this._editor) {
153
- const target = this._editor.getTargetAtClientPoint(
154
- e.event.clientX,
155
- e.event.clientY - this._notebookEditor.notebookOptions.computeEditorStatusbarHeight(this.currentCell.internalMetadata, this.currentCell.uri)
156
- );
157
- if (target?.position) {
158
- this._editor.setPosition(target.position);
159
- this._editor.focus();
160
- }
161
- }
162
- }));
163
- }
164
- }
165
- updateInternalLayoutNow(element) {
166
- this._cellContainer.classList.toggle(
167
- "cell-statusbar-hidden",
168
- this._notebookEditor.notebookOptions.computeEditorStatusbarHeight(element.internalMetadata, element.uri) === 0
169
- );
170
- const layoutInfo = element.layoutInfo;
171
- const width = layoutInfo.editorWidth;
172
- if (!width) {
173
- return;
174
- }
175
- this.width = width;
176
- this.statusBarContainer.style.width = `${width}px`;
177
- const maxItemWidth = this.getMaxItemWidth();
178
- this.leftItems.forEach(item => item.maxWidth = maxItemWidth);
179
- this.rightItems.forEach(item => item.maxWidth = maxItemWidth);
180
- }
181
- getMaxItemWidth() {
182
- return this.width / 2;
183
- }
184
- updateContext(context) {
185
- this.currentContext = context;
186
- this.itemsDisposable.clear();
187
- if (!this.currentContext) {
188
- return;
189
- }
190
- this.itemsDisposable.add(this.currentContext.cell.onDidChangeLayout(() => {
191
- if (this.currentContext) {
192
- this.updateInternalLayoutNow(this.currentContext.cell);
193
- }
194
- }));
195
- this.itemsDisposable.add(
196
- this.currentContext.cell.onDidChangeCellStatusBarItems(() => this.updateRenderedItems())
197
- );
198
- this.itemsDisposable.add(
199
- this.currentContext.notebookEditor.onDidChangeActiveCell(() => this.updateActiveCell())
200
- );
201
- this.updateInternalLayoutNow(this.currentContext.cell);
202
- this.updateActiveCell();
203
- this.updateRenderedItems();
204
- }
205
- updateActiveCell() {
206
- const isActiveCell = this.currentContext.notebookEditor.getActiveCell() === this.currentContext?.cell;
207
- this.statusBarContainer.classList.toggle("is-active-cell", isActiveCell);
208
- }
209
- updateRenderedItems() {
210
- const items = this.currentContext.cell.getCellStatusBarItems();
211
- items.sort((itemA, itemB) => {
212
- return (itemB.priority ?? 0) - (itemA.priority ?? 0);
213
- });
214
- const maxItemWidth = this.getMaxItemWidth();
215
- const newLeftItems = items.filter(item => item.alignment === CellStatusbarAlignment.Left);
216
- const newRightItems = items.filter(item => item.alignment === CellStatusbarAlignment.Right).reverse();
217
- const updateItems = (renderedItems, newItems, container) => {
218
- if (renderedItems.length > newItems.length) {
219
- const deleted = renderedItems.splice(newItems.length, renderedItems.length - newItems.length);
220
- for (const deletedItem of deleted) {
221
- deletedItem.container.remove();
222
- deletedItem.dispose();
223
- }
224
- }
225
- newItems.forEach((newLeftItem, i) => {
226
- const existingItem = renderedItems[i];
227
- if (existingItem) {
228
- existingItem.updateItem(newLeftItem, maxItemWidth);
229
- } else {
230
- const item = this._instantiationService.createInstance(
231
- CellStatusBarItem,
232
- this.currentContext,
233
- this.hoverDelegate,
234
- this._editor,
235
- newLeftItem,
236
- maxItemWidth
237
- );
238
- renderedItems.push(item);
239
- container.appendChild(item.container);
240
- }
241
- });
242
- };
243
- updateItems(this.leftItems, newLeftItems, this.leftItemsContainer);
244
- updateItems(this.rightItems, newRightItems, this.rightItemsContainer);
245
- }
246
- dispose() {
247
- super.dispose();
248
- dispose(this.leftItems);
249
- dispose(this.rightItems);
250
- }
251
- };
252
- CellEditorStatusBar = ( __decorate([( __param(4, IInstantiationService)), ( __param(5, IHoverService)), ( __param(6, IConfigurationService)), ( __param(7, IThemeService))], CellEditorStatusBar));
253
- let CellStatusBarItem = class CellStatusBarItem extends Disposable {
254
- set maxWidth(v) {
255
- this.container.style.maxWidth = v + "px";
256
- }
257
- constructor(
258
- _context,
259
- _hoverDelegate,
260
- _editor,
261
- itemModel,
262
- maxWidth,
263
- _telemetryService,
264
- _commandService,
265
- _notificationService,
266
- _themeService,
267
- _hoverService
268
- ) {
269
- super();
270
- this._context = _context;
271
- this._hoverDelegate = _hoverDelegate;
272
- this._editor = _editor;
273
- this._telemetryService = _telemetryService;
274
- this._commandService = _commandService;
275
- this._notificationService = _notificationService;
276
- this._themeService = _themeService;
277
- this._hoverService = _hoverService;
278
- this.container = $(".cell-status-item");
279
- this._itemDisposables = this._register(( new DisposableStore()));
280
- this.updateItem(itemModel, maxWidth);
281
- }
282
- updateItem(item, maxWidth) {
283
- this._itemDisposables.clear();
284
- if (!this._currentItem || this._currentItem.text !== item.text) {
285
- this._itemDisposables.add(( new SimpleIconLabel(this.container))).text = item.text.replace(/\n/g, " ");
286
- }
287
- const resolveColor = color => {
288
- return isThemeColor(color) ? (this._themeService.getColorTheme().getColor(color.id)?.toString() || "") : color;
289
- };
290
- this.container.style.color = item.color ? resolveColor(item.color) : "";
291
- this.container.style.backgroundColor = item.backgroundColor ? resolveColor(item.backgroundColor) : "";
292
- this.container.style.opacity = item.opacity ? item.opacity : "";
293
- this.container.classList.toggle("cell-status-item-show-when-active", !!item.onlyShowWhenActive);
294
- if (typeof maxWidth === "number") {
295
- this.maxWidth = maxWidth;
296
- }
297
- let ariaLabel;
298
- let role;
299
- if (item.accessibilityInformation) {
300
- ariaLabel = item.accessibilityInformation.label;
301
- role = item.accessibilityInformation.role;
302
- } else {
303
- ariaLabel = item.text ? stripIcons(item.text).trim() : "";
304
- }
305
- this.container.setAttribute("aria-label", ariaLabel);
306
- this.container.setAttribute("role", role || "");
307
- if (item.tooltip) {
308
- const hoverContent = typeof item.tooltip === "string" ? item.tooltip : {
309
- markdown: item.tooltip,
310
- markdownNotSupportedFallback: undefined
311
- };
312
- this._itemDisposables.add(
313
- this._hoverService.setupManagedHover(this._hoverDelegate, this.container, hoverContent)
314
- );
315
- }
316
- this.container.classList.toggle("cell-status-item-has-command", !!item.command);
317
- if (item.command) {
318
- this.container.tabIndex = 0;
319
- this._itemDisposables.add(addDisposableListener(this.container, EventType.CLICK, _e => {
320
- this.executeCommand();
321
- }));
322
- this._itemDisposables.add(addDisposableListener(this.container, EventType.KEY_DOWN, e => {
323
- const event = ( new StandardKeyboardEvent(e));
324
- if (event.equals(KeyCode.Space) || event.equals(KeyCode.Enter)) {
325
- this.executeCommand();
326
- }
327
- }));
328
- } else {
329
- this.container.removeAttribute("tabIndex");
330
- }
331
- this._currentItem = item;
332
- }
333
- async executeCommand() {
334
- const command = this._currentItem.command;
335
- if (!command) {
336
- return;
337
- }
338
- const id = typeof command === "string" ? command : command.id;
339
- const args = typeof command === "string" ? [] : command.arguments ?? [];
340
- if (typeof command === "string" || !command.arguments || !Array.isArray(command.arguments) || command.arguments.length === 0) {
341
- args.unshift(this._context);
342
- }
343
- this._telemetryService.publicLog2("workbenchActionExecuted", {
344
- id,
345
- from: "cell status bar"
346
- });
347
- try {
348
- this._editor?.focus();
349
- await this._commandService.executeCommand(id, ...args);
350
- } catch (error) {
351
- this._notificationService.error(toErrorMessage(error));
352
- }
353
- }
354
- };
355
- CellStatusBarItem = ( __decorate([( __param(5, ITelemetryService)), ( __param(6, ICommandService)), ( __param(7, INotificationService)), ( __param(8, IThemeService)), ( __param(9, IHoverService))], CellStatusBarItem));
356
-
357
- export { CellEditorStatusBar };
@@ -1,6 +0,0 @@
1
- import { IDisposable } from "../../../../../../base/common/lifecycle.js";
2
- import { ICellViewModel, INotebookEditor } from "../../notebookBrowser.js";
3
- export declare function registerCellToolbarStickyScroll(notebookEditor: INotebookEditor, cell: ICellViewModel, element: HTMLElement, opts?: {
4
- extraOffset?: number;
5
- min?: number;
6
- }): IDisposable;
@@ -1,32 +0,0 @@
1
-
2
- import { combinedDisposable } from '../../../../../../base/common/lifecycle.js';
3
- import { clamp } from '../../../../../../base/common/numbers.js';
4
-
5
- function registerCellToolbarStickyScroll(notebookEditor, cell, element, opts) {
6
- const extraOffset = opts?.extraOffset ?? 0;
7
- const min = opts?.min ?? 0;
8
- const updateForScroll = () => {
9
- if (notebookEditor.getCellByHandle(cell.handle) !== cell) {
10
- return;
11
- }
12
- if (cell.isInputCollapsed) {
13
- element.style.top = '';
14
- }
15
- else {
16
- const scrollTop = notebookEditor.scrollTop;
17
- const elementTop = notebookEditor.getAbsoluteTopOfElement(cell);
18
- const diff = scrollTop - elementTop + extraOffset;
19
- const maxTop = cell.layoutInfo.editorHeight + cell.layoutInfo.statusBarHeight - 45;
20
- const top = maxTop > 20 ?
21
- clamp(min, diff, maxTop) :
22
- min;
23
- element.style.top = `${top}px`;
24
- }
25
- };
26
- updateForScroll();
27
- const disposables = [];
28
- disposables.push(notebookEditor.onDidScroll(() => updateForScroll()), notebookEditor.onDidChangeLayout(() => updateForScroll()));
29
- return combinedDisposable(...disposables);
30
- }
31
-
32
- export { registerCellToolbarStickyScroll };
@@ -1,47 +0,0 @@
1
- import { Event } from "../../../../../../base/common/event.js";
2
- import { MenuId } from "../../../../../../platform/actions/common/actions.js";
3
- import { IMenuService } from "../../../../../../platform/actions/common/actions.service.js";
4
- import { IContextKeyService } from "../../../../../../platform/contextkey/common/contextkey.service.js";
5
- import { IContextMenuService } from "../../../../../../platform/contextview/browser/contextView.service.js";
6
- import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js";
7
- import { ICellViewModel, INotebookEditorDelegate } from "../../notebookBrowser.js";
8
- import { CellOverlayPart } from "../cellPart.js";
9
- export declare class BetweenCellToolbar extends CellOverlayPart {
10
- private readonly _notebookEditor;
11
- private readonly _bottomCellToolbarContainer;
12
- private readonly instantiationService;
13
- private readonly contextMenuService;
14
- private readonly contextKeyService;
15
- private readonly menuService;
16
- private _betweenCellToolbar;
17
- constructor(_notebookEditor: INotebookEditorDelegate, _titleToolbarContainer: HTMLElement, _bottomCellToolbarContainer: HTMLElement, instantiationService: IInstantiationService, contextMenuService: IContextMenuService, contextKeyService: IContextKeyService, menuService: IMenuService);
18
- private _initialize;
19
- didRenderCell(element: ICellViewModel): void;
20
- updateInternalLayoutNow(element: ICellViewModel): void;
21
- }
22
- export interface ICssClassDelegate {
23
- toggle: (className: string, force?: boolean) => void;
24
- }
25
- export declare class CellTitleToolbarPart extends CellOverlayPart {
26
- private readonly toolbarContainer;
27
- private readonly _rootClassDelegate;
28
- private readonly toolbarId;
29
- private readonly deleteToolbarId;
30
- private readonly _notebookEditor;
31
- private readonly contextKeyService;
32
- private readonly menuService;
33
- private readonly instantiationService;
34
- private _model;
35
- private _view;
36
- private readonly _onDidUpdateActions;
37
- readonly onDidUpdateActions: Event<void>;
38
- get hasActions(): boolean;
39
- constructor(toolbarContainer: HTMLElement, _rootClassDelegate: ICssClassDelegate, toolbarId: MenuId, deleteToolbarId: MenuId, _notebookEditor: INotebookEditorDelegate, contextKeyService: IContextKeyService, menuService: IMenuService, instantiationService: IInstantiationService);
40
- private _initializeModel;
41
- private _initialize;
42
- prepareRenderCell(element: ICellViewModel): void;
43
- didRenderCell(element: ICellViewModel): void;
44
- private updateContext;
45
- private setupChangeListeners;
46
- private updateActions;
47
- }