@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,221 +0,0 @@
1
-
2
- import { Emitter } from '../../../../../../base/common/event.js';
3
- import { localize, localize2 } from '../../../../../../nls.js';
4
- import { registerAction2, Action2, MenuId } from '../../../../../../platform/actions/common/actions.js';
5
- import { IConfigurationService } from '../../../../../../platform/configuration/common/configuration.service.js';
6
- import { Extensions } from '../../../../../../platform/configuration/common/configurationRegistry.js';
7
- import { ContextKeyExpr } from '../../../../../../platform/contextkey/common/contextkey.js';
8
- import { Registry } from '../../../../../../platform/registry/common/platform.js';
9
- import { ActiveEditorContext } from '../../../../../common/contextkeys.js';
10
- import { NOTEBOOK_ACTIONS_CATEGORY, NotebookMultiCellAction } from '../../controller/coreActions.js';
11
- import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_CELL_LINE_NUMBERS } from '../../../common/notebookContextKeys.js';
12
- import { CellContentPart } from '../cellPart.js';
13
- import { NOTEBOOK_EDITOR_ID } from '../../../common/notebookCommon.js';
14
-
15
- class CellEditorOptions extends CellContentPart {
16
- set tabSize(value) {
17
- if (this._tabSize !== value) {
18
- this._tabSize = value;
19
- this._onDidChange.fire();
20
- }
21
- }
22
- get tabSize() {
23
- return this._tabSize;
24
- }
25
- set indentSize(value) {
26
- if (this._indentSize !== value) {
27
- this._indentSize = value;
28
- this._onDidChange.fire();
29
- }
30
- }
31
- get indentSize() {
32
- return this._indentSize;
33
- }
34
- set insertSpaces(value) {
35
- if (this._insertSpaces !== value) {
36
- this._insertSpaces = value;
37
- this._onDidChange.fire();
38
- }
39
- }
40
- get insertSpaces() {
41
- return this._insertSpaces;
42
- }
43
- constructor(base, notebookOptions, configurationService) {
44
- super();
45
- this.base = base;
46
- this.notebookOptions = notebookOptions;
47
- this.configurationService = configurationService;
48
- this._lineNumbers = "inherit";
49
- this._onDidChange = this._register(( new Emitter()));
50
- this.onDidChange = this._onDidChange.event;
51
- this._register(base.onDidChange(() => {
52
- this._recomputeOptions();
53
- }));
54
- this._value = this._computeEditorOptions();
55
- }
56
- updateState(element, e) {
57
- if (e.cellLineNumberChanged) {
58
- this.setLineNumbers(element.lineNumbers);
59
- }
60
- }
61
- _recomputeOptions() {
62
- this._value = this._computeEditorOptions();
63
- this._onDidChange.fire();
64
- }
65
- _computeEditorOptions() {
66
- const value = this.base.value;
67
- const cellEditorOverridesRaw = this.notebookOptions.getDisplayOptions().editorOptionsCustomizations;
68
- const indentSize = cellEditorOverridesRaw?.["editor.indentSize"];
69
- if (indentSize !== undefined) {
70
- this.indentSize = indentSize;
71
- }
72
- const insertSpaces = cellEditorOverridesRaw?.["editor.insertSpaces"];
73
- if (insertSpaces !== undefined) {
74
- this.insertSpaces = insertSpaces;
75
- }
76
- const tabSize = cellEditorOverridesRaw?.["editor.tabSize"];
77
- if (tabSize !== undefined) {
78
- this.tabSize = tabSize;
79
- }
80
- let cellRenderLineNumber = value.lineNumbers;
81
- switch (this._lineNumbers) {
82
- case "inherit":
83
- if (this.configurationService.getValue("notebook.lineNumbers") === "on") {
84
- if (value.lineNumbers === "off") {
85
- cellRenderLineNumber = "on";
86
- }
87
- } else {
88
- cellRenderLineNumber = "off";
89
- }
90
- break;
91
- case "on":
92
- if (value.lineNumbers === "off") {
93
- cellRenderLineNumber = "on";
94
- }
95
- break;
96
- case "off":
97
- cellRenderLineNumber = "off";
98
- break;
99
- }
100
- const overrides = {};
101
- if (value.lineNumbers !== cellRenderLineNumber) {
102
- overrides.lineNumbers = cellRenderLineNumber;
103
- }
104
- if (this.notebookOptions.getLayoutConfiguration().disableRulers) {
105
- overrides.rulers = [];
106
- }
107
- return {
108
- ...value,
109
- ...overrides
110
- };
111
- }
112
- getUpdatedValue(internalMetadata, cellUri) {
113
- const options = this.getValue(internalMetadata, cellUri);
114
- delete options.hover;
115
- return options;
116
- }
117
- getValue(internalMetadata, cellUri) {
118
- return {
119
- ...this._value,
120
- ...{
121
- padding: this.notebookOptions.computeEditorPadding(internalMetadata, cellUri)
122
- }
123
- };
124
- }
125
- getDefaultValue() {
126
- return {
127
- ...this._value,
128
- ...{
129
- padding: {
130
- top: 12,
131
- bottom: 12
132
- }
133
- }
134
- };
135
- }
136
- setLineNumbers(lineNumbers) {
137
- this._lineNumbers = lineNumbers;
138
- this._recomputeOptions();
139
- }
140
- }
141
- ( Registry.as(Extensions.Configuration)).registerConfiguration({
142
- id: "notebook",
143
- order: 100,
144
- type: "object",
145
- "properties": {
146
- "notebook.lineNumbers": {
147
- type: "string",
148
- enum: ["off", "on"],
149
- default: "off",
150
- markdownDescription: ( localize(14816, "Controls the display of line numbers in the cell editor."))
151
- }
152
- }
153
- });
154
- registerAction2(class ToggleLineNumberAction extends Action2 {
155
- constructor() {
156
- super({
157
- id: "notebook.toggleLineNumbers",
158
- title: ( localize2(14817, "Toggle Notebook Line Numbers")),
159
- shortTitle: ( localize2(14818, "Line Numbers")),
160
- precondition: NOTEBOOK_EDITOR_FOCUSED,
161
- menu: [{
162
- id: MenuId.NotebookToolbar,
163
- group: "notebookLayout",
164
- order: 2,
165
- when: ( ContextKeyExpr.equals("config.notebook.globalToolbar", true))
166
- }],
167
- category: NOTEBOOK_ACTIONS_CATEGORY,
168
- f1: true,
169
- toggled: {
170
- condition: ( ContextKeyExpr.notEquals("config.notebook.lineNumbers", "off")),
171
- title: ( localize(14819, "Line Numbers"))
172
- }
173
- });
174
- }
175
- async run(accessor) {
176
- const configurationService = accessor.get(IConfigurationService);
177
- const renderLiNumbers = configurationService.getValue("notebook.lineNumbers") === "on";
178
- if (renderLiNumbers) {
179
- configurationService.updateValue("notebook.lineNumbers", "off");
180
- } else {
181
- configurationService.updateValue("notebook.lineNumbers", "on");
182
- }
183
- }
184
- });
185
- registerAction2(class ToggleActiveLineNumberAction extends NotebookMultiCellAction {
186
- constructor() {
187
- super({
188
- id: "notebook.cell.toggleLineNumbers",
189
- title: ( localize(14820, "Show Cell Line Numbers")),
190
- precondition: ( ActiveEditorContext.isEqualTo(NOTEBOOK_EDITOR_ID)),
191
- menu: [{
192
- id: MenuId.NotebookCellTitle,
193
- group: "View",
194
- order: 1
195
- }],
196
- toggled: ( ContextKeyExpr.or(( NOTEBOOK_CELL_LINE_NUMBERS.isEqualTo("on")), ( ContextKeyExpr.and(( NOTEBOOK_CELL_LINE_NUMBERS.isEqualTo("inherit")), ( ContextKeyExpr.equals("config.notebook.lineNumbers", "on"))))))
197
- });
198
- }
199
- async runWithContext(accessor, context) {
200
- if (context.ui) {
201
- this.updateCell(accessor.get(IConfigurationService), context.cell);
202
- } else {
203
- const configurationService = accessor.get(IConfigurationService);
204
- context.selectedCells.forEach(cell => {
205
- this.updateCell(configurationService, cell);
206
- });
207
- }
208
- }
209
- updateCell(configurationService, cell) {
210
- const renderLineNumbers = configurationService.getValue("notebook.lineNumbers") === "on";
211
- const cellLineNumbers = cell.lineNumbers;
212
- const currentLineNumberIsOn = cellLineNumbers === "on" || (cellLineNumbers === "inherit" && renderLineNumbers);
213
- if (currentLineNumberIsOn) {
214
- cell.lineNumbers = "off";
215
- } else {
216
- cell.lineNumbers = "on";
217
- }
218
- }
219
- });
220
-
221
- export { CellEditorOptions };
@@ -1,17 +0,0 @@
1
- import { ICellViewModel, INotebookEditorDelegate } from "../../notebookBrowser.js";
2
- import { CellContentPart } from "../cellPart.js";
3
- import { INotebookExecutionStateService } from "../../../common/notebookExecutionStateService.service.js";
4
- import { CellViewModelStateChangeEvent } from "../../notebookViewEvents.js";
5
- export declare class CellExecutionPart extends CellContentPart {
6
- private readonly _notebookEditor;
7
- private readonly _executionOrderLabel;
8
- private readonly _notebookExecutionStateService;
9
- private readonly kernelDisposables;
10
- private readonly _executionOrderContent;
11
- constructor(_notebookEditor: INotebookEditorDelegate, _executionOrderLabel: HTMLElement, _notebookExecutionStateService: INotebookExecutionStateService);
12
- didRenderCell(element: ICellViewModel): void;
13
- updateState(element: ICellViewModel, e: CellViewModelStateChangeEvent): void;
14
- private updateExecutionOrder;
15
- updateInternalLayoutNow(element: ICellViewModel): void;
16
- private _updatePosition;
17
- }
@@ -1,142 +0,0 @@
1
-
2
- import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
3
- import { append, $, hide, show, clearNode } from '../../../../../../base/browser/dom.js';
4
- import { disposableTimeout } from '../../../../../../base/common/async.js';
5
- import { DisposableStore } from '../../../../../../base/common/lifecycle.js';
6
- import { clamp } from '../../../../../../base/common/numbers.js';
7
- import { ThemeIcon } from '../../../../../../base/common/themables.js';
8
- import { CellContentPart } from '../cellPart.js';
9
- import { CodeCellViewModel } from '../../viewModel/codeCellViewModel.js';
10
- import { INotebookExecutionStateService } from '../../../common/notebookExecutionStateService.service.js';
11
- import { executingStateIcon } from '../../notebookIcons.js';
12
- import { renderLabelWithIcons } from '../../../../../../base/browser/ui/iconLabel/iconLabels.js';
13
- import { hasKey } from '../../../../../../base/common/types.js';
14
-
15
- const UPDATE_EXECUTION_ORDER_GRACE_PERIOD = 200;
16
- let CellExecutionPart = class CellExecutionPart extends CellContentPart {
17
- constructor(_notebookEditor, _executionOrderLabel, _notebookExecutionStateService) {
18
- super();
19
- this._notebookEditor = _notebookEditor;
20
- this._executionOrderLabel = _executionOrderLabel;
21
- this._notebookExecutionStateService = _notebookExecutionStateService;
22
- this.kernelDisposables = this._register(( new DisposableStore()));
23
- this._executionOrderLabel.classList.add("cell-execution-order");
24
- this._executionOrderContent = append(this._executionOrderLabel, $("div"));
25
- this._register(this._notebookExecutionStateService.onDidChangeExecution(e => {
26
- if (this.currentCell && hasKey(e, {
27
- affectsCell: true
28
- }) && e.affectsCell(this.currentCell.uri)) {
29
- this._updatePosition();
30
- }
31
- }));
32
- this._register(this._notebookEditor.onDidChangeActiveKernel(() => {
33
- if (this.currentCell) {
34
- this.kernelDisposables.clear();
35
- if (this._notebookEditor.activeKernel) {
36
- this.kernelDisposables.add(this._notebookEditor.activeKernel.onDidChange(() => {
37
- if (this.currentCell) {
38
- this.updateExecutionOrder(this.currentCell.internalMetadata);
39
- }
40
- }));
41
- }
42
- this.updateExecutionOrder(this.currentCell.internalMetadata);
43
- }
44
- }));
45
- this._register(this._notebookEditor.onDidScroll(() => {
46
- this._updatePosition();
47
- }));
48
- }
49
- didRenderCell(element) {
50
- this.updateExecutionOrder(element.internalMetadata, true);
51
- }
52
- updateState(element, e) {
53
- if (e.internalMetadataChanged) {
54
- this.updateExecutionOrder(element.internalMetadata);
55
- }
56
- }
57
- updateExecutionOrder(internalMetadata, forceClear = false) {
58
- if (this._notebookEditor.activeKernel?.implementsExecutionOrder || (!this._notebookEditor.activeKernel && typeof internalMetadata.executionOrder === "number")) {
59
- if (typeof internalMetadata.executionOrder !== "number" && !forceClear && !!this._notebookExecutionStateService.getCellExecution(this.currentCell.uri)) {
60
- const renderingCell = this.currentCell;
61
- disposableTimeout(() => {
62
- if (this.currentCell === renderingCell) {
63
- this.updateExecutionOrder(this.currentCell.internalMetadata, true);
64
- this._updatePosition();
65
- }
66
- }, UPDATE_EXECUTION_ORDER_GRACE_PERIOD, this.cellDisposables);
67
- return;
68
- }
69
- const executionOrderLabel = typeof internalMetadata.executionOrder === "number" ? `[${internalMetadata.executionOrder}]` : "[ ]";
70
- this._executionOrderContent.innerText = executionOrderLabel;
71
- this._updatePosition();
72
- } else {
73
- this._executionOrderContent.innerText = "";
74
- }
75
- }
76
- updateInternalLayoutNow(element) {
77
- this._updatePosition();
78
- }
79
- _updatePosition() {
80
- if (!this.currentCell) {
81
- return;
82
- }
83
- if (this.currentCell.isInputCollapsed) {
84
- hide(this._executionOrderLabel);
85
- return;
86
- }
87
- const cellIsRunning = !!this._notebookExecutionStateService.getCellExecution(this.currentCell.uri);
88
- const wasSticky = this._executionOrderLabel.classList.contains("sticky");
89
- if (!cellIsRunning) {
90
- this._executionOrderLabel.classList.remove("sticky");
91
- if (wasSticky) {
92
- const executionOrder = this.currentCell.internalMetadata.executionOrder;
93
- const executionOrderLabel = typeof executionOrder === "number" ? `[${executionOrder}]` : "[ ]";
94
- this._executionOrderContent.innerText = executionOrderLabel;
95
- }
96
- }
97
- show(this._executionOrderLabel);
98
- let top = this.currentCell.layoutInfo.editorHeight - 22 + this.currentCell.layoutInfo.statusBarHeight;
99
- if (this.currentCell instanceof CodeCellViewModel) {
100
- const elementTop = this._notebookEditor.getAbsoluteTopOfElement(this.currentCell);
101
- const editorBottom = elementTop + this.currentCell.layoutInfo.outputContainerOffset;
102
- const scrollBottom = this._notebookEditor.scrollBottom;
103
- const lineHeight = 22;
104
- const statusBarVisible = this.currentCell.layoutInfo.statusBarHeight > 0;
105
- const offset = editorBottom - scrollBottom;
106
- top -= offset;
107
- top = clamp(top, lineHeight + 12,
108
- this.currentCell.layoutInfo.editorHeight - lineHeight + this.currentCell.layoutInfo.statusBarHeight);
109
- if (scrollBottom <= editorBottom && cellIsRunning) {
110
- const isAlreadyIcon = this._executionOrderContent.classList.contains("sticky-spinner");
111
- if (!isAlreadyIcon) {
112
- this._executionOrderLabel.classList.add("sticky-spinner");
113
- clearNode(this._executionOrderContent);
114
- const icon = ThemeIcon.modify(executingStateIcon, "spin");
115
- append(this._executionOrderContent, ...renderLabelWithIcons(`$(${icon.id})`));
116
- }
117
- } else if (!statusBarVisible && cellIsRunning) {
118
- const wasStickyHere = this._executionOrderLabel.classList.contains("sticky");
119
- this._executionOrderLabel.classList.remove("sticky");
120
- top = this.currentCell.layoutInfo.editorHeight - lineHeight;
121
- const iconIsPresent = this._executionOrderContent.querySelector(".codicon") !== null;
122
- if (wasStickyHere || iconIsPresent) {
123
- const executionOrder = this.currentCell.internalMetadata.executionOrder;
124
- const executionOrderLabel = typeof executionOrder === "number" ? `[${executionOrder}]` : "[ ]";
125
- this._executionOrderContent.innerText = executionOrderLabel;
126
- }
127
- } else {
128
- const currentlySticky = this._executionOrderLabel.classList.contains("sticky");
129
- this._executionOrderLabel.classList.remove("sticky");
130
- if (currentlySticky) {
131
- const executionOrder = this.currentCell.internalMetadata.executionOrder;
132
- const executionOrderLabel = typeof executionOrder === "number" ? `[${executionOrder}]` : "[ ]";
133
- this._executionOrderContent.innerText = executionOrderLabel;
134
- }
135
- }
136
- }
137
- this._executionOrderLabel.style.top = `${top}px`;
138
- }
139
- };
140
- CellExecutionPart = ( __decorate([( __param(2, INotebookExecutionStateService))], CellExecutionPart));
141
-
142
- export { CellExecutionPart };
@@ -1,5 +0,0 @@
1
- import { INotebookEditor } from "../../notebookBrowser.js";
2
- import { CellContentPart } from "../cellPart.js";
3
- export declare class CellFocusPart extends CellContentPart {
4
- constructor(containerElement: HTMLElement, focusSinkElement: HTMLElement | undefined, notebookEditor: INotebookEditor);
5
- }
@@ -1,23 +0,0 @@
1
-
2
- import { addDisposableListener, EventType } from '../../../../../../base/browser/dom.js';
3
- import { CellContentPart } from '../cellPart.js';
4
-
5
- class CellFocusPart extends CellContentPart {
6
- constructor(containerElement, focusSinkElement, notebookEditor) {
7
- super();
8
- this._register(addDisposableListener(containerElement, EventType.FOCUS, () => {
9
- if (this.currentCell) {
10
- notebookEditor.focusElement(this.currentCell);
11
- }
12
- }, true));
13
- if (focusSinkElement) {
14
- this._register(addDisposableListener(focusSinkElement, EventType.FOCUS, () => {
15
- if (this.currentCell && this.currentCell.outputsViewModels.length) {
16
- notebookEditor.focusNotebookCell(this.currentCell, 'output');
17
- }
18
- }));
19
- }
20
- }
21
- }
22
-
23
- export { CellFocusPart };
@@ -1,18 +0,0 @@
1
- import { FastDomNode } from "../../../../../../base/browser/fastDomNode.js";
2
- import { ICellViewModel, INotebookEditorDelegate } from "../../notebookBrowser.js";
3
- import { CellContentPart } from "../cellPart.js";
4
- import { CellTitleToolbarPart } from "./cellToolbars.js";
5
- export declare class CellFocusIndicator extends CellContentPart {
6
- readonly notebookEditor: INotebookEditorDelegate;
7
- readonly titleToolbar: CellTitleToolbarPart;
8
- readonly top: FastDomNode<HTMLElement>;
9
- readonly left: FastDomNode<HTMLElement>;
10
- readonly right: FastDomNode<HTMLElement>;
11
- readonly bottom: FastDomNode<HTMLElement>;
12
- codeFocusIndicator: FastDomNode<HTMLElement>;
13
- outputFocusIndicator: FastDomNode<HTMLElement>;
14
- constructor(notebookEditor: INotebookEditorDelegate, titleToolbar: CellTitleToolbarPart, top: FastDomNode<HTMLElement>, left: FastDomNode<HTMLElement>, right: FastDomNode<HTMLElement>, bottom: FastDomNode<HTMLElement>);
15
- updateInternalLayoutNow(element: ICellViewModel): void;
16
- private updateFocusIndicatorsForTitleMenu;
17
- private getIndicatorTopMargin;
18
- }
@@ -1,104 +0,0 @@
1
-
2
- import { append, $, addDisposableListener, EventType } from '../../../../../../base/browser/dom.js';
3
- import { FastDomNode } from '../../../../../../base/browser/fastDomNode.js';
4
- import { CellContentPart } from '../cellPart.js';
5
- import { CellKind } from '../../../common/notebookCommon.js';
6
-
7
- class CellFocusIndicator extends CellContentPart {
8
- constructor(notebookEditor, titleToolbar, top, left, right, bottom) {
9
- super();
10
- this.notebookEditor = notebookEditor;
11
- this.titleToolbar = titleToolbar;
12
- this.top = top;
13
- this.left = left;
14
- this.right = right;
15
- this.bottom = bottom;
16
- this.codeFocusIndicator = ( new FastDomNode(append(this.left.domNode, $(
17
- ".codeOutput-focus-indicator-container",
18
- undefined,
19
- $(".codeOutput-focus-indicator.code-focus-indicator")
20
- ))));
21
- this.outputFocusIndicator = ( new FastDomNode(append(this.left.domNode, $(
22
- ".codeOutput-focus-indicator-container",
23
- undefined,
24
- $(".codeOutput-focus-indicator.output-focus-indicator")
25
- ))));
26
- this._register(
27
- addDisposableListener(this.codeFocusIndicator.domNode, EventType.CLICK, () => {
28
- if (this.currentCell) {
29
- this.currentCell.isInputCollapsed = !this.currentCell.isInputCollapsed;
30
- }
31
- })
32
- );
33
- this._register(
34
- addDisposableListener(this.outputFocusIndicator.domNode, EventType.CLICK, () => {
35
- if (this.currentCell) {
36
- this.currentCell.isOutputCollapsed = !this.currentCell.isOutputCollapsed;
37
- }
38
- })
39
- );
40
- this._register(
41
- addDisposableListener(this.left.domNode, EventType.DBLCLICK, e => {
42
- if (!this.currentCell || !this.notebookEditor.hasModel()) {
43
- return;
44
- }
45
- if (e.target !== this.left.domNode) {
46
- return;
47
- }
48
- const clickedOnInput = e.offsetY < this.currentCell.layoutInfo.outputContainerOffset;
49
- if (clickedOnInput) {
50
- this.currentCell.isInputCollapsed = !this.currentCell.isInputCollapsed;
51
- } else {
52
- this.currentCell.isOutputCollapsed = !this.currentCell.isOutputCollapsed;
53
- }
54
- })
55
- );
56
- this._register(this.titleToolbar.onDidUpdateActions(() => {
57
- this.updateFocusIndicatorsForTitleMenu();
58
- }));
59
- }
60
- updateInternalLayoutNow(element) {
61
- if (element.cellKind === CellKind.Markup) {
62
- const indicatorPostion = this.notebookEditor.notebookOptions.computeIndicatorPosition(
63
- element.layoutInfo.totalHeight,
64
- element.layoutInfo.foldHintHeight,
65
- this.notebookEditor.textModel?.viewType
66
- );
67
- this.bottom.domNode.style.transform = `translateY(${indicatorPostion.bottomIndicatorTop + 6}px)`;
68
- this.left.setHeight(indicatorPostion.verticalIndicatorHeight);
69
- this.right.setHeight(indicatorPostion.verticalIndicatorHeight);
70
- this.codeFocusIndicator.setHeight(
71
- indicatorPostion.verticalIndicatorHeight - this.getIndicatorTopMargin() * 2 - element.layoutInfo.chatHeight
72
- );
73
- } else {
74
- const cell = element;
75
- const layoutInfo = this.notebookEditor.notebookOptions.getLayoutConfiguration();
76
- const bottomToolbarDimensions = this.notebookEditor.notebookOptions.computeBottomToolbarDimensions(this.notebookEditor.textModel?.viewType);
77
- const indicatorHeight = cell.layoutInfo.codeIndicatorHeight + cell.layoutInfo.outputIndicatorHeight + cell.layoutInfo.commentHeight;
78
- this.left.setHeight(indicatorHeight);
79
- this.right.setHeight(indicatorHeight);
80
- this.codeFocusIndicator.setHeight(cell.layoutInfo.codeIndicatorHeight);
81
- this.outputFocusIndicator.setHeight(Math.max(
82
- cell.layoutInfo.outputIndicatorHeight - cell.viewContext.notebookOptions.getLayoutConfiguration().focusIndicatorGap,
83
- 0
84
- ));
85
- this.bottom.domNode.style.transform = `translateY(${cell.layoutInfo.totalHeight - bottomToolbarDimensions.bottomToolbarGap - layoutInfo.cellBottomMargin}px)`;
86
- }
87
- this.updateFocusIndicatorsForTitleMenu();
88
- }
89
- updateFocusIndicatorsForTitleMenu() {
90
- const y = (this.currentCell?.layoutInfo.chatHeight ?? 0) + this.getIndicatorTopMargin();
91
- this.left.domNode.style.transform = `translateY(${y}px)`;
92
- this.right.domNode.style.transform = `translateY(${y}px)`;
93
- }
94
- getIndicatorTopMargin() {
95
- const layoutInfo = this.notebookEditor.notebookOptions.getLayoutConfiguration();
96
- if (this.titleToolbar.hasActions) {
97
- return layoutInfo.editorToolbarHeight + layoutInfo.cellTopMargin;
98
- } else {
99
- return layoutInfo.cellTopMargin;
100
- }
101
- }
102
- }
103
-
104
- export { CellFocusIndicator };
@@ -1,92 +0,0 @@
1
- import { FastDomNode } from "../../../../../../base/browser/fastDomNode.js";
2
- import { Disposable } from "../../../../../../base/common/lifecycle.js";
3
- import { IMenuService } from "../../../../../../platform/actions/common/actions.service.js";
4
- import { IContextKeyService } from "../../../../../../platform/contextkey/common/contextkey.service.js";
5
- import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js";
6
- import { IOpenerService } from "../../../../../../platform/opener/common/opener.service.js";
7
- import { IQuickInputService } from "../../../../../../platform/quickinput/common/quickInput.service.js";
8
- import { IExtensionsWorkbenchService } from "../../../../extensions/common/extensions.service.js";
9
- import { ICellOutputViewModel, IInsetRenderOutput, INotebookEditorDelegate } from "../../notebookBrowser.js";
10
- import { CellContentPart } from "../cellPart.js";
11
- import { CodeCellRenderTemplate } from "../notebookRenderingCommon.js";
12
- import { CodeCellViewModel } from "../../viewModel/codeCellViewModel.js";
13
- import { INotebookExecutionStateService } from "../../../common/notebookExecutionStateService.service.js";
14
- import { INotebookService } from "../../../common/notebookService.service.js";
15
- interface IRenderResult {
16
- initRenderIsSynchronous: false;
17
- }
18
- declare class CellOutputElement extends Disposable {
19
- private notebookEditor;
20
- private viewCell;
21
- private cellOutputContainer;
22
- private outputContainer;
23
- readonly output: ICellOutputViewModel;
24
- private readonly notebookService;
25
- private readonly quickInputService;
26
- private readonly menuService;
27
- private readonly extensionsWorkbenchService;
28
- private readonly instantiationService;
29
- private readonly toolbarDisposables;
30
- innerContainer?: HTMLElement;
31
- renderedOutputContainer: HTMLElement;
32
- renderResult?: IInsetRenderOutput;
33
- private readonly contextKeyService;
34
- private toolbarAttached;
35
- constructor(notebookEditor: INotebookEditorDelegate, viewCell: CodeCellViewModel, cellOutputContainer: CellOutputContainer, outputContainer: FastDomNode<HTMLElement>, output: ICellOutputViewModel, notebookService: INotebookService, quickInputService: IQuickInputService, parentContextKeyService: IContextKeyService, menuService: IMenuService, extensionsWorkbenchService: IExtensionsWorkbenchService, instantiationService: IInstantiationService);
36
- detach(): void;
37
- updateDOMTop(top: number): void;
38
- rerender(): void;
39
- private _generateInnerOutputContainer;
40
- render(previousSibling: HTMLElement | undefined): IRenderResult | undefined;
41
- private _renderMissingRenderer;
42
- private _renderSearchForMimetype;
43
- private _renderMessage;
44
- private shouldEnableCopy;
45
- private _attachToolbar;
46
- private _pickActiveMimeTypeRenderer;
47
- private _showJupyterExtension;
48
- private _generateRendererInfo;
49
- private _outputHeightTimer;
50
- private _validateFinalOutputHeight;
51
- private _relayoutCell;
52
- dispose(): void;
53
- }
54
- declare class OutputEntryViewHandler {
55
- readonly model: ICellOutputViewModel;
56
- readonly element: CellOutputElement;
57
- constructor(model: ICellOutputViewModel, element: CellOutputElement);
58
- }
59
- export declare class CellOutputContainer extends CellContentPart {
60
- private notebookEditor;
61
- private viewCell;
62
- private readonly templateData;
63
- private options;
64
- private readonly openerService;
65
- private readonly _notebookExecutionStateService;
66
- private readonly instantiationService;
67
- private _outputEntries;
68
- private _hasStaleOutputs;
69
- hasHiddenOutputs: import("../../../../../../base/common/observable.js").ISettableObservable<boolean, void>;
70
- checkForHiddenOutputs(): void;
71
- get renderedOutputEntries(): OutputEntryViewHandler[];
72
- constructor(notebookEditor: INotebookEditorDelegate, viewCell: CodeCellViewModel, templateData: CodeCellRenderTemplate, options: {
73
- limit: number;
74
- }, openerService: IOpenerService, _notebookExecutionStateService: INotebookExecutionStateService, instantiationService: IInstantiationService);
75
- updateInternalLayoutNow(viewCell: CodeCellViewModel): void;
76
- render(): void;
77
- /**
78
- * Notify that an output may have been swapped out without the model getting rendered.
79
- */
80
- flagAsStale(): void;
81
- private _doRender;
82
- viewUpdateShowOutputs(initRendering: boolean): void;
83
- viewUpdateHideOuputs(): void;
84
- private _outputHeightTimer;
85
- private _validateFinalOutputHeight;
86
- private _updateOutputs;
87
- private _renderNow;
88
- private _generateShowMoreElement;
89
- private _relayoutCell;
90
- dispose(): void;
91
- }
92
- export {};