@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,231 +0,0 @@
1
-
2
- import { Extensions } from '../../../../../platform/jsonschemas/common/jsonContributionRegistry.js';
3
- import { Registry } from '../../../../../platform/registry/common/platform.js';
4
-
5
- const toolsParametersSchemaSchemaId = "vscode://schemas/toolsParameters";
6
- const toolsParametersSchemaSchema = {
7
- definitions: {
8
- schemaArray: {
9
- type: "array",
10
- minItems: 1,
11
- items: {
12
- $ref: "#"
13
- }
14
- },
15
- nonNegativeInteger: {
16
- type: "integer",
17
- minimum: 0
18
- },
19
- nonNegativeIntegerDefault0: {
20
- allOf: [{
21
- $ref: "#/definitions/nonNegativeInteger"
22
- }, {
23
- default: 0
24
- }]
25
- },
26
- simpleTypes: {
27
- enum: ["array", "boolean", "integer", "null", "number", "object", "string"]
28
- },
29
- stringArray: {
30
- type: "array",
31
- items: {
32
- type: "string"
33
- },
34
- uniqueItems: true,
35
- default: []
36
- }
37
- },
38
- type: ["object"],
39
- properties: {
40
- $id: {
41
- type: "string",
42
- format: "uri-reference"
43
- },
44
- $schema: {
45
- type: "string",
46
- format: "uri"
47
- },
48
- $ref: {
49
- type: "string",
50
- format: "uri-reference"
51
- },
52
- $comment: {
53
- type: "string"
54
- },
55
- title: {
56
- type: "string"
57
- },
58
- description: {
59
- type: "string"
60
- },
61
- readOnly: {
62
- type: "boolean",
63
- default: false
64
- },
65
- writeOnly: {
66
- type: "boolean",
67
- default: false
68
- },
69
- multipleOf: {
70
- type: "number",
71
- exclusiveMinimum: 0
72
- },
73
- maximum: {
74
- type: "number"
75
- },
76
- exclusiveMaximum: {
77
- type: "number"
78
- },
79
- minimum: {
80
- type: "number"
81
- },
82
- exclusiveMinimum: {
83
- type: "number"
84
- },
85
- maxLength: {
86
- $ref: "#/definitions/nonNegativeInteger"
87
- },
88
- minLength: {
89
- $ref: "#/definitions/nonNegativeIntegerDefault0"
90
- },
91
- pattern: {
92
- type: "string",
93
- format: "regex"
94
- },
95
- additionalItems: {
96
- $ref: "#"
97
- },
98
- items: {
99
- anyOf: [{
100
- $ref: "#"
101
- }, {
102
- $ref: "#/definitions/schemaArray"
103
- }],
104
- default: true
105
- },
106
- maxItems: {
107
- $ref: "#/definitions/nonNegativeInteger"
108
- },
109
- minItems: {
110
- $ref: "#/definitions/nonNegativeIntegerDefault0"
111
- },
112
- uniqueItems: {
113
- type: "boolean",
114
- default: false
115
- },
116
- contains: {
117
- $ref: "#"
118
- },
119
- maxProperties: {
120
- $ref: "#/definitions/nonNegativeInteger"
121
- },
122
- minProperties: {
123
- $ref: "#/definitions/nonNegativeIntegerDefault0"
124
- },
125
- required: {
126
- $ref: "#/definitions/stringArray"
127
- },
128
- additionalProperties: {
129
- $ref: "#"
130
- },
131
- definitions: {
132
- type: "object",
133
- additionalProperties: {
134
- $ref: "#"
135
- },
136
- default: {}
137
- },
138
- properties: {
139
- type: "object",
140
- additionalProperties: {
141
- $ref: "#"
142
- },
143
- default: {}
144
- },
145
- patternProperties: {
146
- type: "object",
147
- additionalProperties: {
148
- $ref: "#"
149
- },
150
- propertyNames: {
151
- format: "regex"
152
- },
153
- default: {}
154
- },
155
- dependencies: {
156
- type: "object",
157
- additionalProperties: {
158
- anyOf: [{
159
- $ref: "#"
160
- }, {
161
- $ref: "#/definitions/stringArray"
162
- }]
163
- }
164
- },
165
- propertyNames: {
166
- $ref: "#"
167
- },
168
- enum: {
169
- type: "array",
170
- minItems: 1,
171
- uniqueItems: true
172
- },
173
- type: {
174
- anyOf: [{
175
- $ref: "#/definitions/simpleTypes"
176
- }, {
177
- type: "array",
178
- items: {
179
- $ref: "#/definitions/simpleTypes"
180
- },
181
- minItems: 1,
182
- uniqueItems: true
183
- }]
184
- },
185
- format: {
186
- type: "string"
187
- },
188
- contentMediaType: {
189
- type: "string"
190
- },
191
- contentEncoding: {
192
- type: "string"
193
- },
194
- if: {
195
- $ref: "#"
196
- },
197
- then: {
198
- $ref: "#"
199
- },
200
- else: {
201
- $ref: "#"
202
- },
203
- allOf: {
204
- $ref: "#/definitions/schemaArray"
205
- },
206
- anyOf: {
207
- $ref: "#/definitions/schemaArray"
208
- },
209
- oneOf: {
210
- $ref: "#/definitions/schemaArray"
211
- },
212
- not: {
213
- $ref: "#"
214
- }
215
- },
216
- defaultSnippets: [{
217
- body: {
218
- type: "object",
219
- properties: {
220
- "${1:paramName}": {
221
- type: "string",
222
- description: "${2:description}"
223
- }
224
- }
225
- }
226
- }]
227
- };
228
- const contributionRegistry = ( Registry.as(Extensions.JSONContribution));
229
- contributionRegistry.registerSchema(toolsParametersSchemaSchemaId, toolsParametersSchemaSchema);
230
-
231
- export { toolsParametersSchemaSchemaId };
@@ -1,20 +0,0 @@
1
- /**
2
- * Terminal-related tool IDs shared between chat infrastructure and terminal
3
- * contrib. The canonical enum lives here so that `chat/common` can reference
4
- * the IDs without depending on `terminalContrib/`.
5
- *
6
- * `terminalContrib/chatAgentTools/browser/tools/toolIds.ts` re-exports this
7
- * enum so existing imports in that layer continue to work.
8
- */
9
- export declare enum TerminalToolId {
10
- RunInTerminal = "run_in_terminal",
11
- SendToTerminal = "send_to_terminal",
12
- GetTerminalOutput = "get_terminal_output",
13
- KillTerminal = "kill_terminal",
14
- TerminalSelection = "terminal_selection",
15
- TerminalLastCommand = "terminal_last_command",
16
- ConfirmTerminalCommand = "vscode_get_terminal_confirmation",
17
- CreateAndRunTask = "create_and_run_task",
18
- GetTaskOutput = "get_task_output",
19
- RunTask = "run_task"
20
- }
@@ -1,17 +0,0 @@
1
-
2
-
3
- var TerminalToolId;
4
- (function (TerminalToolId) {
5
- TerminalToolId["RunInTerminal"] = "run_in_terminal";
6
- TerminalToolId["SendToTerminal"] = "send_to_terminal";
7
- TerminalToolId["GetTerminalOutput"] = "get_terminal_output";
8
- TerminalToolId["KillTerminal"] = "kill_terminal";
9
- TerminalToolId["TerminalSelection"] = "terminal_selection";
10
- TerminalToolId["TerminalLastCommand"] = "terminal_last_command";
11
- TerminalToolId["ConfirmTerminalCommand"] = "vscode_get_terminal_confirmation";
12
- TerminalToolId["CreateAndRunTask"] = "create_and_run_task";
13
- TerminalToolId["GetTaskOutput"] = "get_task_output";
14
- TerminalToolId["RunTask"] = "run_task";
15
- })(TerminalToolId || (TerminalToolId = {}));
16
-
17
- export { TerminalToolId };
@@ -1,6 +0,0 @@
1
- import { ICellOutputViewModel, INotebookEditor } from "../notebookBrowser.js";
2
- export declare const COPY_OUTPUT_COMMAND_ID = "notebook.cellOutput.copy";
3
- export declare function getOutputViewModelFromId(outputId: string, notebookEditor: INotebookEditor): ICellOutputViewModel | undefined;
4
- export declare const OPEN_OUTPUT_COMMAND_ID = "notebook.cellOutput.openInTextEditor";
5
- export declare const SAVE_OUTPUT_IMAGE_COMMAND_ID = "notebook.cellOutput.saveImage";
6
- export declare const OPEN_OUTPUT_IN_OUTPUT_PREVIEW_COMMAND_ID = "notebook.cellOutput.openInOutputPreview";
@@ -1,283 +0,0 @@
1
-
2
- import { localize } from '../../../../../nls.js';
3
- import { registerAction2, Action2, MenuId } from '../../../../../platform/actions/common/actions.js';
4
- import { IClipboardService } from '../../../../../platform/clipboard/common/clipboardService.service.js';
5
- import { IOpenerService } from '../../../../../platform/opener/common/opener.service.js';
6
- import { NOTEBOOK_ACTIONS_CATEGORY } from './coreActions.js';
7
- import { NOTEBOOK_CELL_HAS_OUTPUTS, NOTEBOOK_CELL_HAS_HIDDEN_OUTPUTS, NOTEBOOK_CELL_OUTPUT_MIMETYPE } from '../../common/notebookContextKeys.js';
8
- import { copyIcon, saveIcon } from '../notebookIcons.js';
9
- import { ILogService } from '../../../../../platform/log/common/log.service.js';
10
- import { copyCellOutput } from '../viewModel/cellOutputTextHelper.js';
11
- import { IEditorService } from '../../../../services/editor/common/editorService.service.js';
12
- import { getNotebookEditorFromEditorPane } from '../notebookBrowser.js';
13
- import { CellKind, CellUri } from '../../common/notebookCommon.js';
14
- import { ContextKeyExpr } from '../../../../../platform/contextkey/common/contextkey.js';
15
- import { INotebookEditorModelResolverService } from '../../common/notebookEditorModelResolverService.service.js';
16
- import { IFileDialogService } from '../../../../../platform/dialogs/common/dialogs.service.js';
17
- import { IFileService } from '../../../../../platform/files/common/files.service.js';
18
- import { URI } from '../../../../../base/common/uri.js';
19
-
20
- const COPY_OUTPUT_COMMAND_ID = "notebook.cellOutput.copy";
21
- registerAction2(class ShowAllOutputsAction extends Action2 {
22
- constructor() {
23
- super({
24
- id: "notebook.cellOuput.showEmptyOutputs",
25
- title: ( localize(14469, "Show Empty Outputs")),
26
- menu: {
27
- id: MenuId.NotebookOutputToolbar,
28
- when: ( ContextKeyExpr.and(NOTEBOOK_CELL_HAS_OUTPUTS, NOTEBOOK_CELL_HAS_HIDDEN_OUTPUTS))
29
- },
30
- f1: false,
31
- category: NOTEBOOK_ACTIONS_CATEGORY
32
- });
33
- }
34
- run(accessor, context) {
35
- const cell = context.cell;
36
- if (cell && cell.cellKind === CellKind.Code) {
37
- for (let i = 1; i < cell.outputsViewModels.length; i++) {
38
- if (!cell.outputsViewModels[i].visible.get()) {
39
- cell.outputsViewModels[i].setVisible(true, true);
40
- cell.updateOutputHeight(i, 1, "command");
41
- }
42
- }
43
- }
44
- }
45
- });
46
- registerAction2(class CopyCellOutputAction extends Action2 {
47
- constructor() {
48
- super({
49
- id: COPY_OUTPUT_COMMAND_ID,
50
- title: ( localize(14470, "Copy Cell Output")),
51
- menu: {
52
- id: MenuId.NotebookOutputToolbar,
53
- when: NOTEBOOK_CELL_HAS_OUTPUTS
54
- },
55
- category: NOTEBOOK_ACTIONS_CATEGORY,
56
- icon: copyIcon
57
- });
58
- }
59
- async run(accessor, outputContext) {
60
- const editorService = accessor.get(IEditorService);
61
- const clipboardService = accessor.get(IClipboardService);
62
- const logService = accessor.get(ILogService);
63
- const notebookEditor = getNotebookEditorFromContext(editorService, outputContext);
64
- if (!notebookEditor) {
65
- return;
66
- }
67
- const outputViewModel = getOutputViewModelFromContext(outputContext, notebookEditor);
68
- if (!outputViewModel) {
69
- return;
70
- }
71
- const mimeType = outputViewModel.pickedMimeType?.mimeType;
72
- if (mimeType?.startsWith("image/")) {
73
- const focusOptions = {
74
- skipReveal: true,
75
- outputId: outputViewModel.model.outputId,
76
- altOutputId: outputViewModel.model.alternativeOutputId
77
- };
78
- await notebookEditor.focusNotebookCell(outputViewModel.cellViewModel, "output", focusOptions);
79
- notebookEditor.copyOutputImage(outputViewModel);
80
- } else {
81
- copyCellOutput(mimeType, outputViewModel, clipboardService, logService);
82
- }
83
- }
84
- });
85
- function getOutputViewModelFromId(outputId, notebookEditor) {
86
- const notebookViewModel = notebookEditor.getViewModel();
87
- if (notebookViewModel) {
88
- const codeCells = notebookViewModel.viewCells.filter(cell => cell.cellKind === CellKind.Code);
89
- for (const cell of codeCells) {
90
- const output = cell.outputsViewModels.find(
91
- output => output.model.outputId === outputId || output.model.alternativeOutputId === outputId
92
- );
93
- if (output) {
94
- return output;
95
- }
96
- }
97
- }
98
- return undefined;
99
- }
100
- function getNotebookEditorFromContext(editorService, outputContext) {
101
- if (outputContext && "notebookEditor" in outputContext) {
102
- return outputContext.notebookEditor;
103
- }
104
- return getNotebookEditorFromEditorPane(editorService.activeEditorPane);
105
- }
106
- function getOutputViewModelFromContext(outputContext, notebookEditor) {
107
- let outputViewModel;
108
- if (outputContext && "outputId" in outputContext && typeof outputContext.outputId === "string") {
109
- outputViewModel = getOutputViewModelFromId(outputContext.outputId, notebookEditor);
110
- } else if (outputContext && "outputViewModel" in outputContext) {
111
- outputViewModel = outputContext.outputViewModel;
112
- }
113
- if (!outputViewModel) {
114
- const activeCell = notebookEditor.getActiveCell();
115
- if (!activeCell) {
116
- return undefined;
117
- }
118
- if (activeCell.focusedOutputId !== undefined) {
119
- outputViewModel = activeCell.outputsViewModels.find(output => {
120
- return output.model.outputId === activeCell.focusedOutputId;
121
- });
122
- } else {
123
- outputViewModel = activeCell.outputsViewModels.find(output => output.pickedMimeType?.isTrusted);
124
- }
125
- }
126
- return outputViewModel;
127
- }
128
- const OPEN_OUTPUT_COMMAND_ID = "notebook.cellOutput.openInTextEditor";
129
- registerAction2(class OpenCellOutputInEditorAction extends Action2 {
130
- constructor() {
131
- super({
132
- id: OPEN_OUTPUT_COMMAND_ID,
133
- title: ( localize(14471, "Open Cell Output in Text Editor")),
134
- f1: false,
135
- category: NOTEBOOK_ACTIONS_CATEGORY,
136
- icon: copyIcon
137
- });
138
- }
139
- async run(accessor, outputContext) {
140
- const editorService = accessor.get(IEditorService);
141
- const notebookModelService = accessor.get(INotebookEditorModelResolverService);
142
- const openerService = accessor.get(IOpenerService);
143
- const notebookEditor = getNotebookEditorFromContext(editorService, outputContext);
144
- if (!notebookEditor) {
145
- return;
146
- }
147
- const outputViewModel = getOutputViewModelFromContext(outputContext, notebookEditor);
148
- if (outputViewModel?.model.outputId && notebookEditor.textModel?.uri) {
149
- const ref = await notebookModelService.resolve(notebookEditor.textModel.uri);
150
- await openerService.open(
151
- CellUri.generateCellOutputUriWithId(notebookEditor.textModel.uri, outputViewModel.model.outputId)
152
- );
153
- ref.dispose();
154
- }
155
- }
156
- });
157
- const SAVE_OUTPUT_IMAGE_COMMAND_ID = "notebook.cellOutput.saveImage";
158
- registerAction2(class SaveCellOutputImageAction extends Action2 {
159
- constructor() {
160
- super({
161
- id: SAVE_OUTPUT_IMAGE_COMMAND_ID,
162
- title: ( localize(14472, "Save Image")),
163
- menu: {
164
- id: MenuId.NotebookOutputToolbar,
165
- when: ( ContextKeyExpr.regex(NOTEBOOK_CELL_OUTPUT_MIMETYPE.key, /^image\//))
166
- },
167
- f1: false,
168
- category: NOTEBOOK_ACTIONS_CATEGORY,
169
- icon: saveIcon
170
- });
171
- }
172
- async run(accessor, outputContext) {
173
- const editorService = accessor.get(IEditorService);
174
- const fileDialogService = accessor.get(IFileDialogService);
175
- const fileService = accessor.get(IFileService);
176
- const logService = accessor.get(ILogService);
177
- const notebookEditor = getNotebookEditorFromContext(editorService, outputContext);
178
- if (!notebookEditor) {
179
- return;
180
- }
181
- const outputViewModel = getOutputViewModelFromContext(outputContext, notebookEditor);
182
- if (!outputViewModel) {
183
- return;
184
- }
185
- const mimeType = outputViewModel.pickedMimeType?.mimeType;
186
- if (!mimeType?.startsWith("image/")) {
187
- return;
188
- }
189
- const outputItem = outputViewModel.model.outputs.find(output => output.mime === mimeType);
190
- if (!outputItem) {
191
- logService.error("Could not find output item with mime type", mimeType);
192
- return;
193
- }
194
- const mimeToExt = {
195
- "image/png": "png",
196
- "image/jpeg": "jpg",
197
- "image/jpg": "jpg",
198
- "image/gif": "gif",
199
- "image/svg+xml": "svg",
200
- "image/webp": "webp",
201
- "image/bmp": "bmp",
202
- "image/tiff": "tiff"
203
- };
204
- const extension = mimeToExt[mimeType] || "png";
205
- const defaultFileName = `image.${extension}`;
206
- const defaultUri = notebookEditor.textModel?.uri ? URI.joinPath(URI.file(notebookEditor.textModel.uri.fsPath), "..", defaultFileName) : undefined;
207
- const uri = await fileDialogService.showSaveDialog({
208
- defaultUri,
209
- filters: [{
210
- name: ( localize(14473, "Image Files")),
211
- extensions: [extension]
212
- }]
213
- });
214
- if (!uri) {
215
- return;
216
- }
217
- try {
218
- const imageData = outputItem.data;
219
- await fileService.writeFile(uri, imageData);
220
- logService.info("Saved image output to", ( uri.toString()));
221
- } catch (error) {
222
- logService.error("Failed to save image output", error);
223
- }
224
- }
225
- });
226
- const OPEN_OUTPUT_IN_OUTPUT_PREVIEW_COMMAND_ID = "notebook.cellOutput.openInOutputPreview";
227
- registerAction2(class OpenCellOutputInNotebookOutputEditorAction extends Action2 {
228
- constructor() {
229
- super({
230
- id: OPEN_OUTPUT_IN_OUTPUT_PREVIEW_COMMAND_ID,
231
- title: ( localize(14474, "Open in Output Preview")),
232
- menu: {
233
- id: MenuId.NotebookOutputToolbar,
234
- when: ( ContextKeyExpr.and(NOTEBOOK_CELL_HAS_OUTPUTS, ( ContextKeyExpr.equals("config.notebook.output.openInPreviewEditor.enabled", true))))
235
- },
236
- f1: false,
237
- category: NOTEBOOK_ACTIONS_CATEGORY
238
- });
239
- }
240
- async run(accessor, outputContext) {
241
- const editorService = accessor.get(IEditorService);
242
- const openerService = accessor.get(IOpenerService);
243
- const notebookEditor = getNotebookEditorFromContext(editorService, outputContext);
244
- if (!notebookEditor) {
245
- return;
246
- }
247
- const outputViewModel = getOutputViewModelFromContext(outputContext, notebookEditor);
248
- if (!outputViewModel) {
249
- return;
250
- }
251
- const genericCellViewModel = outputViewModel.cellViewModel;
252
- if (!genericCellViewModel) {
253
- return;
254
- }
255
- const cellViewModel = notebookEditor.getCellByHandle(genericCellViewModel.handle);
256
- if (!cellViewModel) {
257
- return;
258
- }
259
- const cellIndex = notebookEditor.getCellIndex(cellViewModel);
260
- if (cellIndex === undefined) {
261
- return;
262
- }
263
- const outputIndex = genericCellViewModel.outputsViewModels.indexOf(outputViewModel);
264
- if (outputIndex === -1) {
265
- return;
266
- }
267
- if (!notebookEditor.textModel) {
268
- return;
269
- }
270
- const outputURI = CellUri.generateOutputEditorUri(
271
- notebookEditor.textModel.uri,
272
- cellViewModel.id,
273
- cellIndex,
274
- outputViewModel.model.outputId,
275
- outputIndex
276
- );
277
- openerService.open(outputURI, {
278
- openToSide: true
279
- });
280
- }
281
- });
282
-
283
- export { COPY_OUTPUT_COMMAND_ID, OPEN_OUTPUT_COMMAND_ID, OPEN_OUTPUT_IN_OUTPUT_PREVIEW_COMMAND_ID, SAVE_OUTPUT_IMAGE_COMMAND_ID, getOutputViewModelFromId };
@@ -1,91 +0,0 @@
1
- import { UriComponents } from "../../../../../base/common/uri.js";
2
- import { Action2, IAction2Options } from "../../../../../platform/actions/common/actions.js";
3
- import { ServicesAccessor } from "../../../../../platform/instantiation/common/instantiation.js";
4
- import { KeybindingWeight } from "../../../../../platform/keybinding/common/keybindingsRegistry.js";
5
- import { IActiveNotebookEditor, ICellViewModel, ICellOutputViewModel } from "../notebookBrowser.js";
6
- import { IEditorService } from "../../../../services/editor/common/editorService.service.js";
7
- import { TypeConstraint } from "../../../../../base/common/types.js";
8
- import { IJSONSchema } from "../../../../../base/common/jsonSchema.js";
9
- import { ICodeEditor } from "../../../../../editor/browser/editorBrowser.js";
10
- export declare const SELECT_KERNEL_ID = "_notebook.selectKernel";
11
- export declare const NOTEBOOK_ACTIONS_CATEGORY: import("../../../../../nls.js").ILocalizedString;
12
- export declare const CELL_TITLE_CELL_GROUP_ID = "inline/cell";
13
- export declare const CELL_TITLE_OUTPUT_GROUP_ID = "inline/output";
14
- export declare const NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT = KeybindingWeight.EditorContrib;
15
- export declare const NOTEBOOK_OUTPUT_WEBVIEW_ACTION_WEIGHT: number;
16
- export declare enum CellToolbarOrder {
17
- RunSection = 0,
18
- EditCell = 1,
19
- ExecuteAboveCells = 2,
20
- ExecuteCellAndBelow = 3,
21
- SaveCell = 4,
22
- SplitCell = 5,
23
- ClearCellOutput = 6
24
- }
25
- export declare enum CellOverflowToolbarGroups {
26
- Copy = "1_copy",
27
- Insert = "2_insert",
28
- Edit = "3_edit",
29
- Share = "4_share"
30
- }
31
- export interface INotebookActionContext {
32
- readonly cell?: ICellViewModel;
33
- readonly notebookEditor: IActiveNotebookEditor;
34
- readonly ui?: boolean;
35
- readonly selectedCells?: readonly ICellViewModel[];
36
- readonly autoReveal?: boolean;
37
- }
38
- export interface INotebookCellToolbarActionContext extends INotebookActionContext {
39
- readonly ui: true;
40
- readonly cell: ICellViewModel;
41
- }
42
- export interface INotebookCommandContext extends INotebookActionContext {
43
- readonly ui: false;
44
- readonly selectedCells: readonly ICellViewModel[];
45
- }
46
- export interface INotebookCellActionContext extends INotebookActionContext {
47
- cell: ICellViewModel;
48
- }
49
- export interface INotebookOutputActionContext extends INotebookCellActionContext {
50
- outputViewModel: ICellOutputViewModel;
51
- }
52
- export declare function getContextFromActiveEditor(editorService: IEditorService): INotebookActionContext | undefined;
53
- export declare function getContextFromUri(accessor: ServicesAccessor, context?: any): {
54
- notebookEditor: IActiveNotebookEditor;
55
- } | undefined;
56
- export declare function findTargetCellEditor(context: INotebookCellActionContext, targetCell: ICellViewModel): ICodeEditor | undefined;
57
- export declare abstract class NotebookAction extends Action2 {
58
- constructor(desc: IAction2Options);
59
- run(accessor: ServicesAccessor, context?: any, ...additionalArgs: any[]): Promise<void>;
60
- abstract runWithContext(accessor: ServicesAccessor, context: INotebookActionContext): Promise<void>;
61
- private isNotebookActionContext;
62
- getEditorContextFromArgsOrActive(accessor: ServicesAccessor, context?: any, ...additionalArgs: any[]): INotebookActionContext | undefined;
63
- }
64
- export declare abstract class NotebookMultiCellAction extends Action2 {
65
- constructor(desc: IAction2Options);
66
- parseArgs(accessor: ServicesAccessor, ...args: unknown[]): INotebookCommandContext | undefined;
67
- abstract runWithContext(accessor: ServicesAccessor, context: INotebookCommandContext | INotebookCellToolbarActionContext): Promise<void>;
68
- /**
69
- * The action/command args are resolved in following order
70
- * `run(accessor, cellToolbarContext)` from cell toolbar
71
- * `run(accessor, ...args)` from command service with arguments
72
- * `run(accessor, undefined)` from keyboard shortcuts, command palatte, etc
73
- */
74
- run(accessor: ServicesAccessor, ...additionalArgs: any[]): Promise<void>;
75
- }
76
- export declare abstract class NotebookCellAction<T = INotebookCellActionContext> extends NotebookAction {
77
- protected isCellActionContext(context?: unknown): context is INotebookCellActionContext;
78
- protected getCellContextFromArgs(accessor: ServicesAccessor, context?: T, ...additionalArgs: any[]): INotebookCellActionContext | undefined;
79
- run(accessor: ServicesAccessor, context?: INotebookCellActionContext, ...additionalArgs: any[]): Promise<void>;
80
- abstract runWithContext(accessor: ServicesAccessor, context: INotebookCellActionContext): Promise<void>;
81
- }
82
- export declare const executeNotebookCondition: import("../../../../../platform/contextkey/common/contextkey.js").ContextKeyExpression | undefined;
83
- export declare function getEditorFromArgsOrActivePane(accessor: ServicesAccessor, context?: UriComponents): IActiveNotebookEditor | undefined;
84
- export declare function parseMultiCellExecutionArgs(accessor: ServicesAccessor, ...args: any[]): INotebookCommandContext | undefined;
85
- export declare const cellExecutionArgs: ReadonlyArray<{
86
- readonly name: string;
87
- readonly isOptional?: boolean;
88
- readonly description?: string;
89
- readonly constraint?: TypeConstraint;
90
- readonly schema?: IJSONSchema;
91
- }>;