@codingame/monaco-vscode-api 1.85.0 → 1.85.1

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 (239) hide show
  1. package/README.md +19 -10
  2. package/contributions.js +1 -0
  3. package/missing-services.js +91 -5
  4. package/monaco-editor-treemending.patch +957 -950
  5. package/package.json +6 -6
  6. package/vscode/src/vs/base/common/jsonFormatter.js +8 -1
  7. package/vscode/src/vs/platform/actions/browser/buttonbar.js +128 -0
  8. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -1
  9. package/vscode/src/vs/platform/layout/browser/zIndexRegistry.js +58 -0
  10. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +56 -1
  11. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +186 -4
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +191 -0
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +238 -2
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +75 -0
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +205 -1
  16. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +168 -0
  17. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +35 -0
  18. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +340 -0
  19. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +1195 -0
  20. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +115 -0
  21. package/vscode/src/vs/workbench/contrib/chat/browser/chatOptions.js +81 -0
  22. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.css.js +4 -0
  23. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.js +62 -0
  24. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +583 -0
  25. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css.js +4 -0
  26. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +290 -0
  27. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +167 -0
  28. package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +4 -0
  29. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +6 -1
  30. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +562 -0
  31. package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +31 -1
  32. package/vscode/src/vs/workbench/contrib/chat/common/chatProvider.js +24 -1
  33. package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +193 -0
  34. package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +22 -1
  35. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +52 -1
  36. package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +258 -0
  37. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js +37 -0
  38. package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.js +25 -0
  39. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css.js +4 -0
  40. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +388 -0
  41. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +61 -0
  42. package/vscode/src/vs/workbench/contrib/comments/browser/commentFormActions.js +49 -0
  43. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +647 -0
  44. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +300 -0
  45. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.js +60 -0
  46. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +249 -0
  47. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +107 -0
  48. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +333 -0
  49. package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +4 -0
  50. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +99 -0
  51. package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +55 -0
  52. package/vscode/src/vs/workbench/contrib/comments/common/commentsConfiguration.js +2 -0
  53. package/vscode/src/vs/workbench/contrib/contextmenu/browser/contextmenu.contribution.js +20 -0
  54. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +855 -0
  55. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +410 -0
  56. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +1591 -0
  57. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +178 -0
  58. package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +4 -0
  59. package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackEditorContribution.css.js +4 -0
  60. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +1485 -0
  61. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +125 -0
  62. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +29 -0
  63. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +41 -0
  64. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +102 -0
  65. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.css.js +4 -0
  66. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +988 -0
  67. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatLivePreviewWidget.js +431 -0
  68. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +417 -0
  69. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +806 -0
  70. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +915 -0
  71. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +19 -0
  72. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +129 -10
  73. package/vscode/src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.js +205 -0
  74. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +150 -0
  75. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +480 -0
  76. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +5 -0
  77. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +90 -0
  78. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/editing.js +54 -0
  79. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +108 -0
  80. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +258 -0
  81. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +614 -0
  82. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +307 -0
  83. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.js +44 -0
  84. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +165 -0
  85. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/telemetry.js +78 -0
  86. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +169 -0
  87. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +64 -0
  88. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/cellOutputClipboard.js +49 -0
  89. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +70 -0
  90. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +120 -0
  91. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +416 -0
  92. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css.js +4 -0
  93. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +663 -0
  94. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +593 -0
  95. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +72 -0
  96. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +326 -0
  97. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +539 -0
  98. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +265 -0
  99. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +348 -0
  100. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebook.css.js +4 -0
  101. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css.js +4 -0
  102. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellEditorHint.css.js +4 -0
  103. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellInsertToolbar.css.js +4 -0
  104. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellOutput.css.js +4 -0
  105. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellStatusBar.css.js +4 -0
  106. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellTitleToolbar.css.js +4 -0
  107. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookDnd.css.js +4 -0
  108. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookEditorStickyScroll.css.js +4 -0
  109. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFocusIndicator.css.js +4 -0
  110. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFolding.css.js +4 -0
  111. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookKernelActionViewItem.css.js +4 -0
  112. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookOutline.css.js +4 -0
  113. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookToolbar.css.js +4 -0
  114. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.js +95 -3
  115. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +437 -0
  116. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorExtensions.js +29 -0
  117. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +2730 -0
  118. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +139 -0
  119. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookLogger.js +17 -0
  120. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +564 -0
  121. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookViewEvents.js +27 -0
  122. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.js +119 -0
  123. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +27 -0
  124. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +135 -0
  125. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.js +178 -0
  126. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDecorations.js +35 -0
  127. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.js +377 -0
  128. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDragRenderer.js +97 -0
  129. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +194 -0
  130. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.js +71 -0
  131. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocus.js +20 -0
  132. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocusIndicator.js +85 -0
  133. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +652 -0
  134. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.js +59 -0
  135. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +303 -0
  136. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.js +24 -0
  137. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +228 -0
  138. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatActions.js +302 -0
  139. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatController.js +438 -0
  140. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatPart.js +45 -0
  141. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +435 -0
  142. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +95 -0
  143. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +107 -0
  144. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellInput.js +29 -0
  145. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +59 -0
  146. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +67 -0
  147. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +430 -0
  148. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.js +54 -0
  149. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +1131 -0
  150. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +21 -0
  151. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +1591 -0
  152. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +341 -0
  153. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +2155 -0
  154. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewThemeMapping.js +65 -0
  155. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.js +95 -0
  156. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +507 -0
  157. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +85 -0
  158. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel.js +47 -0
  159. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellSelectionCollection.js +40 -0
  160. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +435 -0
  161. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher.js +31 -0
  162. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.js +257 -0
  163. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +239 -0
  164. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +103 -0
  165. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js +211 -0
  166. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +808 -0
  167. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/viewContext.js +8 -0
  168. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +381 -0
  169. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +527 -0
  170. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.js +163 -0
  171. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +651 -0
  172. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +173 -0
  173. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.js +98 -0
  174. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +62 -0
  175. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel.js +101 -0
  176. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +346 -0
  177. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +152 -1
  178. package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +39 -0
  179. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +296 -0
  180. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +261 -0
  181. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.js +3 -1
  182. package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.js +2 -1
  183. package/vscode/src/vs/workbench/contrib/notebook/common/notebookKeymapService.js +3 -0
  184. package/vscode/src/vs/workbench/contrib/notebook/common/notebookLoggingService.js +3 -0
  185. package/vscode/src/vs/workbench/contrib/notebook/common/notebookPerformance.js +16 -0
  186. package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.js +66 -0
  187. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWorkerService.js +4 -0
  188. package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +130 -0
  189. package/vscode/src/vs/workbench/contrib/remote/browser/media/tunnelView.css.js +4 -0
  190. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +847 -0
  191. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +89 -0
  192. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +1942 -0
  193. package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.js +107 -0
  194. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +49 -0
  195. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +387 -0
  196. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +2 -2
  197. package/vscode/src/vs/workbench/contrib/search/common/constants.js +66 -0
  198. package/vscode/src/vs/workbench/contrib/searchEditor/browser/constants.js +11 -0
  199. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +24 -0
  200. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +95 -0
  201. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.js +4 -1
  202. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +2 -1
  203. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/featuredExtensionService.js +159 -0
  204. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +375 -0
  205. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +563 -0
  206. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +932 -0
  207. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +15 -1
  208. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +2 -2
  209. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +190 -2
  210. package/vscode/src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.js +77 -0
  211. package/assets/break.mp3 +0 -0
  212. package/assets/chatRequestSent.mp3 +0 -0
  213. package/assets/chatResponsePending.mp3 +0 -0
  214. package/assets/chatResponseReceived1.mp3 +0 -0
  215. package/assets/chatResponseReceived2.mp3 +0 -0
  216. package/assets/chatResponseReceived3.mp3 +0 -0
  217. package/assets/chatResponseReceived4.mp3 +0 -0
  218. package/assets/clear.mp3 +0 -0
  219. package/assets/defaultIcon.png +0 -0
  220. package/assets/diffLineDeleted.mp3 +0 -0
  221. package/assets/diffLineInserted.mp3 +0 -0
  222. package/assets/diffLineModified.mp3 +0 -0
  223. package/assets/error.mp3 +0 -0
  224. package/assets/fake.html +0 -10
  225. package/assets/foldedAreas.mp3 +0 -0
  226. package/assets/format.mp3 +0 -0
  227. package/assets/index-no-csp.html +0 -1226
  228. package/assets/index.html +0 -1227
  229. package/assets/quickFixes.mp3 +0 -0
  230. package/assets/save.mp3 +0 -0
  231. package/assets/service-worker.js +0 -457
  232. package/assets/taskCompleted.mp3 +0 -0
  233. package/assets/taskFailed.mp3 +0 -0
  234. package/assets/terminalBell.mp3 +0 -0
  235. package/assets/warning.mp3 +0 -0
  236. package/assets/webWorkerExtensionHostIframe.html +0 -123
  237. package/override/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +0 -2
  238. package/override/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +0 -2
  239. package/override/vs/workbench/contrib/notebook/common/notebookEditorInput.js +0 -5
@@ -0,0 +1,346 @@
1
+ import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
2
+ import { hash, StringSHA1 } from 'monaco-editor/esm/vs/base/common/hash.js';
3
+ import { Disposable, DisposableStore, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
4
+ import * as UUID from 'monaco-editor/esm/vs/base/common/uuid.js';
5
+ import { Range } from 'monaco-editor/esm/vs/editor/common/core/range.js';
6
+ import { PieceTreeTextBuffer } from 'monaco-editor/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.js';
7
+ import { PieceTreeTextBufferBuilder } from 'monaco-editor/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBufferBuilder.js';
8
+ import { PLAINTEXT_LANGUAGE_ID } from 'monaco-editor/esm/vs/editor/common/languages/modesRegistry.js';
9
+ import { NotebookCellOutputTextModel } from './notebookCellOutputTextModel.js';
10
+ class NotebookCellTextModel extends Disposable {
11
+ get outputs() {
12
+ return this._outputs;
13
+ }
14
+ get metadata() {
15
+ return this._metadata;
16
+ }
17
+ set metadata(newMetadata) {
18
+ this._metadata = newMetadata;
19
+ this._hash = null;
20
+ this._onDidChangeMetadata.fire();
21
+ }
22
+ get internalMetadata() {
23
+ return this._internalMetadata;
24
+ }
25
+ set internalMetadata(newInternalMetadata) {
26
+ const lastRunSuccessChanged = this._internalMetadata.lastRunSuccess !== newInternalMetadata.lastRunSuccess;
27
+ newInternalMetadata = {
28
+ ...newInternalMetadata,
29
+ ...{ runStartTimeAdjustment: computeRunStartTimeAdjustment(this._internalMetadata, newInternalMetadata) }
30
+ };
31
+ this._internalMetadata = newInternalMetadata;
32
+ this._hash = null;
33
+ this._onDidChangeInternalMetadata.fire({ lastRunSuccessChanged });
34
+ }
35
+ get language() {
36
+ return this._language;
37
+ }
38
+ set language(newLanguage) {
39
+ if (this._textModel
40
+ && this._textModel.getLanguageId() === this._languageService.getLanguageIdByLanguageName(newLanguage)
41
+ && this._textModel.getLanguageId() === this._languageService.getLanguageIdByLanguageName(this.language)) {
42
+ return;
43
+ }
44
+ const newLanguageId = this._languageService.getLanguageIdByLanguageName(newLanguage);
45
+ if (newLanguageId === null) {
46
+ return;
47
+ }
48
+ if (this._textModel) {
49
+ const languageId = this._languageService.createById(newLanguageId);
50
+ this._textModel.setLanguage(languageId.languageId);
51
+ }
52
+ if (this._language === newLanguage) {
53
+ return;
54
+ }
55
+ this._language = newLanguage;
56
+ this._hash = null;
57
+ this._onDidChangeLanguage.fire(newLanguage);
58
+ this._onDidChangeContent.fire('language');
59
+ }
60
+ get mime() {
61
+ return this._mime;
62
+ }
63
+ set mime(newMime) {
64
+ if (this._mime === newMime) {
65
+ return;
66
+ }
67
+ this._mime = newMime;
68
+ this._hash = null;
69
+ this._onDidChangeContent.fire('mime');
70
+ }
71
+ get textBuffer() {
72
+ if (this._textBuffer) {
73
+ return this._textBuffer;
74
+ }
75
+ const builder = ( new PieceTreeTextBufferBuilder());
76
+ builder.acceptChunk(this._source);
77
+ const bufferFactory = builder.finish(true);
78
+ const { textBuffer, disposable } = bufferFactory.create(1 );
79
+ this._textBuffer = textBuffer;
80
+ this._register(disposable);
81
+ this._register(this._textBuffer.onDidChangeContent(() => {
82
+ this._hash = null;
83
+ if (!this._textModel) {
84
+ this._onDidChangeContent.fire('content');
85
+ }
86
+ }));
87
+ return this._textBuffer;
88
+ }
89
+ get alternativeId() {
90
+ return this._alternativeId;
91
+ }
92
+ get textModel() {
93
+ return this._textModel;
94
+ }
95
+ set textModel(m) {
96
+ if (this._textModel === m) {
97
+ return;
98
+ }
99
+ this._textModelDisposables.clear();
100
+ this._textModel = m;
101
+ if (this._textModel) {
102
+ this.setRegisteredLanguage(this._languageService, this._textModel.getLanguageId(), this.language);
103
+ this._textModelDisposables.add(this._textModel.onDidChangeLanguage((e) => this.setRegisteredLanguage(this._languageService, e.newLanguage, this.language)));
104
+ this._textModelDisposables.add(this._textModel.onWillDispose(() => this.textModel = undefined));
105
+ this._textModelDisposables.add(this._textModel.onDidChangeContent(() => {
106
+ if (this._textModel) {
107
+ this._versionId = this._textModel.getVersionId();
108
+ this._alternativeId = this._textModel.getAlternativeVersionId();
109
+ }
110
+ this._onDidChangeContent.fire('content');
111
+ }));
112
+ this._textModel._overwriteVersionId(this._versionId);
113
+ this._textModel._overwriteAlternativeVersionId(this._versionId);
114
+ }
115
+ }
116
+ setRegisteredLanguage(languageService, newLanguage, currentLanguage) {
117
+ const isFallBackLanguage = (newLanguage === PLAINTEXT_LANGUAGE_ID || newLanguage === 'jupyter');
118
+ if (!languageService.isRegisteredLanguageId(currentLanguage) && isFallBackLanguage) {
119
+ this._onDidChangeLanguage.fire(currentLanguage);
120
+ }
121
+ else {
122
+ this.language = newLanguage;
123
+ }
124
+ }
125
+ constructor(uri, handle, _source, _language, _mime, cellKind, outputs, metadata, internalMetadata, collapseState, transientOptions, _languageService) {
126
+ super();
127
+ this.uri = uri;
128
+ this.handle = handle;
129
+ this._source = _source;
130
+ this._language = _language;
131
+ this._mime = _mime;
132
+ this.cellKind = cellKind;
133
+ this.collapseState = collapseState;
134
+ this.transientOptions = transientOptions;
135
+ this._languageService = _languageService;
136
+ this._onDidChangeOutputs = this._register(( new Emitter()));
137
+ this.onDidChangeOutputs = this._onDidChangeOutputs.event;
138
+ this._onDidChangeOutputItems = this._register(( new Emitter()));
139
+ this.onDidChangeOutputItems = this._onDidChangeOutputItems.event;
140
+ this._onDidChangeContent = this._register(( new Emitter()));
141
+ this.onDidChangeContent = this._onDidChangeContent.event;
142
+ this._onDidChangeMetadata = this._register(( new Emitter()));
143
+ this.onDidChangeMetadata = this._onDidChangeMetadata.event;
144
+ this._onDidChangeInternalMetadata = this._register(( new Emitter()));
145
+ this.onDidChangeInternalMetadata = this._onDidChangeInternalMetadata.event;
146
+ this._onDidChangeLanguage = this._register(( new Emitter()));
147
+ this.onDidChangeLanguage = this._onDidChangeLanguage.event;
148
+ this._textBufferHash = null;
149
+ this._hash = null;
150
+ this._versionId = 1;
151
+ this._alternativeId = 1;
152
+ this._textModelDisposables = this._register(( new DisposableStore()));
153
+ this._textModel = undefined;
154
+ this._outputs = ( outputs.map(op => ( new NotebookCellOutputTextModel(op))));
155
+ this._metadata = metadata ?? {};
156
+ this._internalMetadata = internalMetadata ?? {};
157
+ }
158
+ resetTextBuffer(textBuffer) {
159
+ this._textBuffer = textBuffer;
160
+ }
161
+ getValue() {
162
+ const fullRange = this.getFullModelRange();
163
+ const eol = this.textBuffer.getEOL();
164
+ if (eol === '\n') {
165
+ return this.textBuffer.getValueInRange(fullRange, 1 );
166
+ }
167
+ else {
168
+ return this.textBuffer.getValueInRange(fullRange, 2 );
169
+ }
170
+ }
171
+ getTextBufferHash() {
172
+ if (this._textBufferHash !== null) {
173
+ return this._textBufferHash;
174
+ }
175
+ const shaComputer = ( new StringSHA1());
176
+ const snapshot = this.textBuffer.createSnapshot(false);
177
+ let text;
178
+ while ((text = snapshot.read())) {
179
+ shaComputer.update(text);
180
+ }
181
+ this._textBufferHash = shaComputer.digest();
182
+ return this._textBufferHash;
183
+ }
184
+ getHashValue() {
185
+ if (this._hash !== null) {
186
+ return this._hash;
187
+ }
188
+ this._hash = hash([hash(this.language), this.getTextBufferHash(), this._getPersisentMetadata(), this.transientOptions.transientOutputs ? [] : ( this._outputs.map(op => ({
189
+ outputs: ( op.outputs.map(output => ({
190
+ mime: output.mime,
191
+ data: Array.from(output.data.buffer)
192
+ }))),
193
+ metadata: op.metadata
194
+ })))]);
195
+ return this._hash;
196
+ }
197
+ _getPersisentMetadata() {
198
+ const filteredMetadata = {};
199
+ const transientCellMetadata = this.transientOptions.transientCellMetadata;
200
+ const keys = ( new Set([...( Object.keys(this.metadata))]));
201
+ for (const key of keys) {
202
+ if (!(transientCellMetadata[key])) {
203
+ filteredMetadata[key] = this.metadata[key];
204
+ }
205
+ }
206
+ return filteredMetadata;
207
+ }
208
+ getTextLength() {
209
+ return this.textBuffer.getLength();
210
+ }
211
+ getFullModelRange() {
212
+ const lineCount = this.textBuffer.getLineCount();
213
+ return ( new Range(1, 1, lineCount, this.textBuffer.getLineLength(lineCount) + 1));
214
+ }
215
+ spliceNotebookCellOutputs(splice) {
216
+ if (splice.deleteCount > 0 && splice.newOutputs.length > 0) {
217
+ const commonLen = Math.min(splice.deleteCount, splice.newOutputs.length);
218
+ for (let i = 0; i < commonLen; i++) {
219
+ const currentOutput = this.outputs[splice.start + i];
220
+ const newOutput = splice.newOutputs[i];
221
+ this.replaceOutput(currentOutput.outputId, newOutput);
222
+ }
223
+ this.outputs.splice(splice.start + commonLen, splice.deleteCount - commonLen, ...splice.newOutputs.slice(commonLen));
224
+ this._onDidChangeOutputs.fire({ start: splice.start + commonLen, deleteCount: splice.deleteCount - commonLen, newOutputs: splice.newOutputs.slice(commonLen) });
225
+ }
226
+ else {
227
+ this.outputs.splice(splice.start, splice.deleteCount, ...splice.newOutputs);
228
+ this._onDidChangeOutputs.fire(splice);
229
+ }
230
+ }
231
+ replaceOutput(outputId, newOutputItem) {
232
+ const outputIndex = this.outputs.findIndex(output => output.outputId === outputId);
233
+ if (outputIndex < 0) {
234
+ return false;
235
+ }
236
+ const output = this.outputs[outputIndex];
237
+ output.replaceData(newOutputItem);
238
+ this._onDidChangeOutputItems.fire();
239
+ return true;
240
+ }
241
+ changeOutputItems(outputId, append, items) {
242
+ const outputIndex = this.outputs.findIndex(output => output.outputId === outputId);
243
+ if (outputIndex < 0) {
244
+ return false;
245
+ }
246
+ const output = this.outputs[outputIndex];
247
+ if (append) {
248
+ output.appendData(items);
249
+ }
250
+ else {
251
+ output.replaceData({ outputId: outputId, outputs: items, metadata: output.metadata });
252
+ }
253
+ this._onDidChangeOutputItems.fire();
254
+ return true;
255
+ }
256
+ _outputNotEqualFastCheck(left, right) {
257
+ if (left.length !== right.length) {
258
+ return false;
259
+ }
260
+ for (let i = 0; i < this.outputs.length; i++) {
261
+ const l = left[i];
262
+ const r = right[i];
263
+ if (l.outputs.length !== r.outputs.length) {
264
+ return false;
265
+ }
266
+ for (let k = 0; k < l.outputs.length; k++) {
267
+ if (l.outputs[k].mime !== r.outputs[k].mime) {
268
+ return false;
269
+ }
270
+ if (l.outputs[k].data.byteLength !== r.outputs[k].data.byteLength) {
271
+ return false;
272
+ }
273
+ }
274
+ }
275
+ return true;
276
+ }
277
+ equal(b) {
278
+ if (this.language !== b.language) {
279
+ return false;
280
+ }
281
+ if (this.getTextLength() !== b.getTextLength()) {
282
+ return false;
283
+ }
284
+ if (!this.transientOptions.transientOutputs) {
285
+ if (!this._outputNotEqualFastCheck(this.outputs, b.outputs)) {
286
+ return false;
287
+ }
288
+ }
289
+ return this.getHashValue() === b.getHashValue();
290
+ }
291
+ fastEqual(b) {
292
+ if (this.language !== b.language) {
293
+ return false;
294
+ }
295
+ if (this.mime !== b.mime) {
296
+ return false;
297
+ }
298
+ if (this.cellKind !== b.cellKind) {
299
+ return false;
300
+ }
301
+ if (this.internalMetadata?.executionOrder !== b.internalMetadata?.executionOrder
302
+ || this.internalMetadata?.lastRunSuccess !== b.internalMetadata?.lastRunSuccess
303
+ || this.internalMetadata?.runStartTime !== b.internalMetadata?.runStartTime
304
+ || this.internalMetadata?.runStartTimeAdjustment !== b.internalMetadata?.runStartTimeAdjustment
305
+ || this.internalMetadata?.runEndTime !== b.internalMetadata?.runEndTime) {
306
+ return false;
307
+ }
308
+ if (this._textBuffer && this.getValue() !== b.source) {
309
+ return false;
310
+ }
311
+ else if (this._source !== b.source) {
312
+ return false;
313
+ }
314
+ return true;
315
+ }
316
+ dispose() {
317
+ dispose(this._outputs);
318
+ const emptyDisposedTextBuffer = ( new PieceTreeTextBuffer([], '', '\n', false, false, true, true));
319
+ emptyDisposedTextBuffer.dispose();
320
+ this._textBuffer = emptyDisposedTextBuffer;
321
+ super.dispose();
322
+ }
323
+ }
324
+ function cloneNotebookCellTextModel(cell) {
325
+ return {
326
+ source: cell.getValue(),
327
+ language: cell.language,
328
+ mime: cell.mime,
329
+ cellKind: cell.cellKind,
330
+ outputs: ( cell.outputs.map(output => ({
331
+ outputs: output.outputs,
332
+ outputId: UUID.generateUuid()
333
+ }))),
334
+ metadata: {}
335
+ };
336
+ }
337
+ function computeRunStartTimeAdjustment(oldMetadata, newMetadata) {
338
+ if (oldMetadata.runStartTime !== newMetadata.runStartTime && typeof newMetadata.runStartTime === 'number') {
339
+ const offset = Date.now() - newMetadata.runStartTime;
340
+ return offset < 0 ? Math.abs(offset) : 0;
341
+ }
342
+ else {
343
+ return newMetadata.runStartTimeAdjustment;
344
+ }
345
+ }
346
+ export { NotebookCellTextModel, cloneNotebookCellTextModel };
@@ -1,17 +1,56 @@
1
1
  import { encodeBase64, VSBuffer, decodeBase64 } from 'monaco-editor/esm/vs/base/common/buffer.js';
2
+ import * as glob from 'monaco-editor/esm/vs/base/common/glob.js';
3
+ import { Iterable } from 'monaco-editor/esm/vs/base/common/iterator.js';
4
+ import { Mimes } from 'monaco-editor/esm/vs/base/common/mime.js';
2
5
  import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
6
+ import { isWindows } from 'monaco-editor/esm/vs/base/common/platform.js';
7
+ import { RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
3
8
  const NOTEBOOK_EDITOR_ID = 'workbench.editor.notebook';
9
+ const NOTEBOOK_DIFF_EDITOR_ID = 'workbench.editor.notebookTextDiffEditor';
10
+ const INTERACTIVE_WINDOW_EDITOR_ID = 'workbench.editor.interactive';
4
11
  var CellKind;
5
12
  ( (function(CellKind) {
6
13
  CellKind[CellKind["Markup"] = 1] = "Markup";
7
14
  CellKind[CellKind["Code"] = 2] = "Code";
8
15
  })(CellKind || (CellKind = {})));
16
+ const NOTEBOOK_DISPLAY_ORDER = [
17
+ 'application/json',
18
+ 'application/javascript',
19
+ 'text/html',
20
+ 'image/svg+xml',
21
+ Mimes.latex,
22
+ Mimes.markdown,
23
+ 'image/png',
24
+ 'image/jpeg',
25
+ Mimes.text
26
+ ];
27
+ const ACCESSIBLE_NOTEBOOK_DISPLAY_ORDER = [
28
+ Mimes.latex,
29
+ Mimes.markdown,
30
+ 'application/json',
31
+ 'text/html',
32
+ 'image/svg+xml',
33
+ 'image/png',
34
+ 'image/jpeg',
35
+ Mimes.text,
36
+ ];
37
+ const RENDERER_EQUIVALENT_EXTENSIONS = ( new Map([
38
+ ['ms-toolsai.jupyter', ( new Set(['jupyter-notebook', 'interactive']))],
39
+ ['ms-toolsai.jupyter-renderers', ( new Set(['jupyter-notebook', 'interactive']))],
40
+ ]));
41
+ const RENDERER_NOT_AVAILABLE = '_notAvailable';
9
42
  var NotebookCellExecutionState;
10
43
  ( (function(NotebookCellExecutionState) {
11
44
  NotebookCellExecutionState[NotebookCellExecutionState["Unconfirmed"] = 1] = "Unconfirmed";
12
45
  NotebookCellExecutionState[NotebookCellExecutionState["Pending"] = 2] = "Pending";
13
46
  NotebookCellExecutionState[NotebookCellExecutionState["Executing"] = 3] = "Executing";
14
47
  })(NotebookCellExecutionState || (NotebookCellExecutionState = {})));
48
+ var NotebookExecutionState;
49
+ ( (function(NotebookExecutionState) {
50
+ NotebookExecutionState[NotebookExecutionState["Unconfirmed"] = 1] = "Unconfirmed";
51
+ NotebookExecutionState[NotebookExecutionState["Pending"] = 2] = "Pending";
52
+ NotebookExecutionState[NotebookExecutionState["Executing"] = 3] = "Executing";
53
+ })(NotebookExecutionState || (NotebookExecutionState = {})));
15
54
  var NotebookCellsChangeType;
16
55
  ( (function(NotebookCellsChangeType) {
17
56
  NotebookCellsChangeType[NotebookCellsChangeType["ModelChange"] = 1] = "ModelChange";
@@ -102,6 +141,118 @@ var CellUri;
102
141
  }
103
142
  CellUri.parseCellPropertyUri = parseCellPropertyUri;
104
143
  })(CellUri || (CellUri = {})));
144
+ const normalizeSlashes = (str) => isWindows ? str.replace(/\//g, '\\') : str;
145
+ class MimeTypeDisplayOrder {
146
+ constructor(initialValue = [], defaultOrder = NOTEBOOK_DISPLAY_ORDER) {
147
+ this.defaultOrder = defaultOrder;
148
+ this.order = ( [...( new Set(initialValue))].map(pattern => ({
149
+ pattern,
150
+ matches: glob.parse(normalizeSlashes(pattern))
151
+ })));
152
+ }
153
+ sort(mimetypes) {
154
+ const remaining = ( new Map(( Iterable.map(mimetypes, m => [m, normalizeSlashes(m)]))));
155
+ let sorted = [];
156
+ for (const { matches } of this.order) {
157
+ for (const [original, normalized] of remaining) {
158
+ if (matches(normalized)) {
159
+ sorted.push(original);
160
+ remaining.delete(original);
161
+ break;
162
+ }
163
+ }
164
+ }
165
+ if (remaining.size) {
166
+ sorted = sorted.concat([...( remaining.keys())].sort((a, b) => this.defaultOrder.indexOf(a) - this.defaultOrder.indexOf(b)));
167
+ }
168
+ return sorted;
169
+ }
170
+ prioritize(chosenMimetype, otherMimetypes) {
171
+ const chosenIndex = this.findIndex(chosenMimetype);
172
+ if (chosenIndex === -1) {
173
+ this.order.unshift({ pattern: chosenMimetype, matches: glob.parse(normalizeSlashes(chosenMimetype)) });
174
+ return;
175
+ }
176
+ const uniqueIndicies = ( new Set(( otherMimetypes.map(m => this.findIndex(m, chosenIndex)))));
177
+ uniqueIndicies.delete(-1);
178
+ const otherIndices = Array.from(uniqueIndicies).sort();
179
+ this.order.splice(chosenIndex + 1, 0, ...( otherIndices.map(i => this.order[i])));
180
+ for (let oi = otherIndices.length - 1; oi >= 0; oi--) {
181
+ this.order.splice(otherIndices[oi], 1);
182
+ }
183
+ }
184
+ toArray() {
185
+ return ( this.order.map(o => o.pattern));
186
+ }
187
+ findIndex(mimeType, maxIndex = this.order.length) {
188
+ const normalized = normalizeSlashes(mimeType);
189
+ for (let i = 0; i < maxIndex; i++) {
190
+ if (this.order[i].matches(normalized)) {
191
+ return i;
192
+ }
193
+ }
194
+ return -1;
195
+ }
196
+ }
197
+ function diff(before, after, contains, equal = (a, b) => a === b) {
198
+ const result = [];
199
+ function pushSplice(start, deleteCount, toInsert) {
200
+ if (deleteCount === 0 && toInsert.length === 0) {
201
+ return;
202
+ }
203
+ const latest = result[result.length - 1];
204
+ if (latest && latest.start + latest.deleteCount === start) {
205
+ latest.deleteCount += deleteCount;
206
+ latest.toInsert.push(...toInsert);
207
+ }
208
+ else {
209
+ result.push({ start, deleteCount, toInsert });
210
+ }
211
+ }
212
+ let beforeIdx = 0;
213
+ let afterIdx = 0;
214
+ while (true) {
215
+ if (beforeIdx === before.length) {
216
+ pushSplice(beforeIdx, 0, after.slice(afterIdx));
217
+ break;
218
+ }
219
+ if (afterIdx === after.length) {
220
+ pushSplice(beforeIdx, before.length - beforeIdx, []);
221
+ break;
222
+ }
223
+ const beforeElement = before[beforeIdx];
224
+ const afterElement = after[afterIdx];
225
+ if (equal(beforeElement, afterElement)) {
226
+ beforeIdx += 1;
227
+ afterIdx += 1;
228
+ continue;
229
+ }
230
+ if (contains(afterElement)) {
231
+ pushSplice(beforeIdx, 1, []);
232
+ beforeIdx += 1;
233
+ }
234
+ else {
235
+ pushSplice(beforeIdx, 0, [afterElement]);
236
+ afterIdx += 1;
237
+ }
238
+ }
239
+ return result;
240
+ }
241
+ const NOTEBOOK_EDITOR_CURSOR_BOUNDARY = ( new RawContextKey('notebookEditorCursorAtBoundary', 'none'));
242
+ const NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY = ( new RawContextKey('notebookEditorCursorAtLineBoundary', 'none'));
243
+ var NotebookEditorPriority;
244
+ ( (function(NotebookEditorPriority) {
245
+ NotebookEditorPriority["default"] = "default";
246
+ NotebookEditorPriority["option"] = "option";
247
+ })(NotebookEditorPriority || (NotebookEditorPriority = {})));
248
+ function isDocumentExcludePattern(filenamePattern) {
249
+ const arg = filenamePattern;
250
+ if ((typeof arg.include === 'string' || glob.isRelativePattern(arg.include))
251
+ && (typeof arg.exclude === 'string' || glob.isRelativePattern(arg.exclude))) {
252
+ return true;
253
+ }
254
+ return false;
255
+ }
105
256
  const NotebookSetting = {
106
257
  displayOrder: 'notebook.displayOrder',
107
258
  cellToolbarLocation: 'notebook.cellToolbarLocation',
@@ -228,4 +379,4 @@ function formatStreamText(buffer) {
228
379
  }
229
380
  return VSBuffer.fromString(fixCarriageReturn(fixBackspace(textDecoder.decode(buffer.buffer))));
230
381
  }
231
- export { CellKind, CellUri, MOVE_CURSOR_1_LINE_COMMAND, NOTEBOOK_EDITOR_ID, NotebookCellExecutionState, NotebookCellsChangeType, NotebookSetting, NotebookWorkingCopyTypeIdentifier, SelectionStateType, compressOutputItemStreams, isTextStreamMime };
382
+ export { ACCESSIBLE_NOTEBOOK_DISPLAY_ORDER, CellKind, CellUri, INTERACTIVE_WINDOW_EDITOR_ID, MOVE_CURSOR_1_LINE_COMMAND, MimeTypeDisplayOrder, NOTEBOOK_DIFF_EDITOR_ID, NOTEBOOK_DISPLAY_ORDER, NOTEBOOK_EDITOR_CURSOR_BOUNDARY, NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY, NOTEBOOK_EDITOR_ID, NotebookCellExecutionState, NotebookCellsChangeType, NotebookEditorPriority, NotebookExecutionState, NotebookSetting, NotebookWorkingCopyTypeIdentifier, RENDERER_EQUIVALENT_EXTENSIONS, RENDERER_NOT_AVAILABLE, SelectionStateType, compressOutputItemStreams, diff, isDocumentExcludePattern, isTextStreamMime };
@@ -0,0 +1,39 @@
1
+ import { RawContextKey, ContextKeyExpr } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
2
+ import { NOTEBOOK_EDITOR_ID, INTERACTIVE_WINDOW_EDITOR_ID } from './notebookCommon.js';
3
+ const HAS_OPENED_NOTEBOOK = ( new RawContextKey('userHasOpenedNotebook', false));
4
+ const KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED = ( new RawContextKey('notebookFindWidgetFocused', false));
5
+ const InteractiveWindowOpen = ( new RawContextKey('interactiveWindowOpen', false));
6
+ const NOTEBOOK_IS_ACTIVE_EDITOR = ( ContextKeyExpr.equals('activeEditor', NOTEBOOK_EDITOR_ID));
7
+ const INTERACTIVE_WINDOW_IS_ACTIVE_EDITOR = ( ContextKeyExpr.equals('activeEditor', INTERACTIVE_WINDOW_EDITOR_ID));
8
+ const NOTEBOOK_EDITOR_FOCUSED = ( new RawContextKey('notebookEditorFocused', false));
9
+ const NOTEBOOK_CELL_LIST_FOCUSED = ( new RawContextKey('notebookCellListFocused', false));
10
+ const NOTEBOOK_OUTPUT_FOCUSED = ( new RawContextKey('notebookOutputFocused', false));
11
+ const NOTEBOOK_OUPTUT_INPUT_FOCUSED = ( new RawContextKey('notebookOutputInputFocused', false));
12
+ const NOTEBOOK_EDITOR_EDITABLE = ( new RawContextKey('notebookEditable', true));
13
+ const NOTEBOOK_HAS_RUNNING_CELL = ( new RawContextKey('notebookHasRunningCell', false));
14
+ const NOTEBOOK_HAS_SOMETHING_RUNNING = ( new RawContextKey('notebookHasSomethingRunning', false));
15
+ const NOTEBOOK_USE_CONSOLIDATED_OUTPUT_BUTTON = ( new RawContextKey('notebookUseConsolidatedOutputButton', false));
16
+ const NOTEBOOK_CELL_TOOLBAR_LOCATION = ( new RawContextKey('notebookCellToolbarLocation', 'left'));
17
+ const NOTEBOOK_CURSOR_NAVIGATION_MODE = ( new RawContextKey('notebookCursorNavigationMode', false));
18
+ const NOTEBOOK_LAST_CELL_FAILED = ( new RawContextKey('notebookLastCellFailed', false));
19
+ const NOTEBOOK_VIEW_TYPE = ( new RawContextKey('notebookType', undefined));
20
+ const NOTEBOOK_CELL_TYPE = ( new RawContextKey('notebookCellType', undefined));
21
+ const NOTEBOOK_CELL_EDITABLE = ( new RawContextKey('notebookCellEditable', false));
22
+ const NOTEBOOK_CELL_FOCUSED = ( new RawContextKey('notebookCellFocused', false));
23
+ const NOTEBOOK_CELL_EDITOR_FOCUSED = ( new RawContextKey('notebookCellEditorFocused', false));
24
+ const NOTEBOOK_CELL_MARKDOWN_EDIT_MODE = ( new RawContextKey('notebookCellMarkdownEditMode', false));
25
+ const NOTEBOOK_CELL_LINE_NUMBERS = ( new RawContextKey('notebookCellLineNumbers', 'inherit'));
26
+ const NOTEBOOK_CELL_EXECUTION_STATE = ( new RawContextKey('notebookCellExecutionState', undefined));
27
+ const NOTEBOOK_CELL_EXECUTING = ( new RawContextKey('notebookCellExecuting', false));
28
+ const NOTEBOOK_CELL_HAS_OUTPUTS = ( new RawContextKey('notebookCellHasOutputs', false));
29
+ const NOTEBOOK_CELL_INPUT_COLLAPSED = ( new RawContextKey('notebookCellInputIsCollapsed', false));
30
+ const NOTEBOOK_CELL_OUTPUT_COLLAPSED = ( new RawContextKey('notebookCellOutputIsCollapsed', false));
31
+ const NOTEBOOK_CELL_RESOURCE = ( new RawContextKey('notebookCellResource', ''));
32
+ const NOTEBOOK_KERNEL = ( new RawContextKey('notebookKernel', undefined));
33
+ const NOTEBOOK_KERNEL_COUNT = ( new RawContextKey('notebookKernelCount', 0));
34
+ const NOTEBOOK_KERNEL_SOURCE_COUNT = ( new RawContextKey('notebookKernelSourceCount', 0));
35
+ const NOTEBOOK_KERNEL_SELECTED = ( new RawContextKey('notebookKernelSelected', false));
36
+ const NOTEBOOK_INTERRUPTIBLE_KERNEL = ( new RawContextKey('notebookInterruptibleKernel', false));
37
+ const NOTEBOOK_MISSING_KERNEL_EXTENSION = ( new RawContextKey('notebookMissingKernelExtension', false));
38
+ const NOTEBOOK_HAS_OUTPUTS = ( new RawContextKey('notebookHasOutputs', false));
39
+ export { HAS_OPENED_NOTEBOOK, INTERACTIVE_WINDOW_IS_ACTIVE_EDITOR, InteractiveWindowOpen, KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED, NOTEBOOK_CELL_EDITABLE, NOTEBOOK_CELL_EDITOR_FOCUSED, NOTEBOOK_CELL_EXECUTING, NOTEBOOK_CELL_EXECUTION_STATE, NOTEBOOK_CELL_FOCUSED, NOTEBOOK_CELL_HAS_OUTPUTS, NOTEBOOK_CELL_INPUT_COLLAPSED, NOTEBOOK_CELL_LINE_NUMBERS, NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, NOTEBOOK_CELL_OUTPUT_COLLAPSED, NOTEBOOK_CELL_RESOURCE, NOTEBOOK_CELL_TOOLBAR_LOCATION, NOTEBOOK_CELL_TYPE, NOTEBOOK_CURSOR_NAVIGATION_MODE, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_HAS_OUTPUTS, NOTEBOOK_HAS_RUNNING_CELL, NOTEBOOK_HAS_SOMETHING_RUNNING, NOTEBOOK_INTERRUPTIBLE_KERNEL, NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_KERNEL, NOTEBOOK_KERNEL_COUNT, NOTEBOOK_KERNEL_SELECTED, NOTEBOOK_KERNEL_SOURCE_COUNT, NOTEBOOK_LAST_CELL_FAILED, NOTEBOOK_MISSING_KERNEL_EXTENSION, NOTEBOOK_OUPTUT_INPUT_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_USE_CONSOLIDATED_OUTPUT_BUTTON, NOTEBOOK_VIEW_TYPE };