@codingame/monaco-vscode-api 1.79.1 → 1.79.2-next.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 (467) hide show
  1. package/README.md +11 -2
  2. package/dist/api.js +10 -8
  3. package/dist/composite.d.ts +65 -0
  4. package/dist/configurationRegistry.d.ts +212 -0
  5. package/dist/contextkey.d.ts +1 -1
  6. package/dist/default-extensions/json.js +1 -0
  7. package/dist/default-extensions/theme-defaults.js +2 -2
  8. package/dist/editorBrowser.d.ts +272 -3
  9. package/dist/event.d.ts +6 -1
  10. package/dist/{extension-tools-0c4c1ad7.js → extension-tools-3c2bf0a4.js} +698 -507
  11. package/dist/extensions.d.ts +3 -2
  12. package/dist/extensions.d2.ts +6 -17
  13. package/dist/extensionsRegistry.d.ts +15 -9
  14. package/dist/files.d.ts +71 -7
  15. package/dist/jsonSchema.d.ts +1 -1
  16. package/dist/keybinding.d.ts +2 -2
  17. package/dist/languageFeatures.d.ts +703 -61
  18. package/dist/monaco.d.ts +5 -4
  19. package/dist/override/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +2 -0
  20. package/dist/override/vs/workbench/contrib/notebook/browser/notebookEditor.js +2 -0
  21. package/dist/override/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +2 -0
  22. package/dist/override/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -1
  23. package/dist/platform.d.ts +11 -0
  24. package/dist/rollup-extension-directory-plugin.js +1 -1
  25. package/dist/rollup-vsix-plugin.js +2 -2
  26. package/dist/service-override/configuration.d.ts +5 -206
  27. package/dist/service-override/dialogs.js +16 -1
  28. package/dist/service-override/files.d.ts +2 -2
  29. package/dist/service-override/files.js +1 -1
  30. package/dist/service-override/markers.d.ts +7 -0
  31. package/dist/service-override/markers.js +6 -0
  32. package/dist/service-override/output.d.ts +7 -0
  33. package/dist/service-override/output.js +22 -0
  34. package/dist/service-override/preferences.js +7 -1
  35. package/dist/service-override/quickaccess.js +0 -9
  36. package/dist/service-override/search.d.ts +7 -0
  37. package/dist/service-override/search.js +19 -0
  38. package/dist/service-override/terminal.d.ts +607 -0
  39. package/dist/service-override/terminal.js +98 -0
  40. package/dist/service-override/tools/editor.js +1 -1
  41. package/dist/service-override/views.d.ts +561 -335
  42. package/dist/service-override/views.js +51 -11
  43. package/dist/services.d.ts +2627 -108
  44. package/dist/services.js +3 -0
  45. package/dist/severity.d.ts +16 -0
  46. package/dist/uri.d.ts +22 -11
  47. package/dist/views.d.ts +270 -0
  48. package/dist/vscode/vs/base/common/processes.js +24 -0
  49. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/decorations.js +20 -0
  50. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/delegatingEditorImpl.js +106 -0
  51. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffEditorSash.js +59 -0
  52. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffEditorWidget2.contribution.js +41 -0
  53. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffEditorWidget2.js +369 -0
  54. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffModel.js +247 -0
  55. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/lineAlignment.js +179 -0
  56. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/overviewRulerPart.js +121 -0
  57. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/style.css.js +4 -0
  58. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/unchangedRanges.js +184 -0
  59. package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/utils.js +88 -0
  60. package/dist/vscode/vs/platform/extensionManagement/common/extensionManagement.js +38 -1
  61. package/dist/vscode/vs/platform/extensionManagement/common/extensionManagementUtil.js +5 -1
  62. package/dist/vscode/vs/platform/extensionResourceLoader/common/extensionResourceLoader.js +13 -5
  63. package/dist/vscode/vs/platform/files/common/fileService.js +43 -5
  64. package/dist/vscode/vs/platform/files/common/files.js +3 -1
  65. package/dist/vscode/vs/platform/languagePacks/common/languagePacks.js +4 -1
  66. package/dist/vscode/vs/platform/log/common/bufferLog.js +34 -0
  67. package/dist/vscode/vs/platform/log/common/fileLog.js +105 -0
  68. package/dist/vscode/vs/platform/quickinput/browser/quickPickPin.js +1 -1
  69. package/dist/vscode/vs/platform/remote/common/remoteAuthorityResolver.js +20 -1
  70. package/dist/vscode/vs/platform/request/browser/requestService.js +1 -1
  71. package/dist/vscode/vs/platform/request/common/request.js +3 -3
  72. package/dist/vscode/vs/platform/storage/common/storage.js +3 -0
  73. package/dist/vscode/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +39 -0
  74. package/dist/vscode/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +565 -0
  75. package/dist/vscode/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +27 -0
  76. package/dist/vscode/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +22 -0
  77. package/dist/vscode/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +46 -0
  78. package/dist/vscode/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +80 -0
  79. package/dist/vscode/vs/platform/terminal/common/environmentVariable.js +7 -0
  80. package/dist/vscode/vs/platform/terminal/common/environmentVariableCollection.js +196 -0
  81. package/dist/vscode/vs/platform/terminal/common/environmentVariableShared.js +23 -0
  82. package/dist/vscode/vs/platform/terminal/common/terminal.js +21 -1
  83. package/dist/vscode/vs/platform/terminal/common/terminalDataBuffering.js +45 -0
  84. package/dist/vscode/vs/platform/terminal/common/terminalEnvironment.js +37 -0
  85. package/dist/vscode/vs/platform/terminal/common/terminalPlatformConfiguration.js +622 -0
  86. package/dist/vscode/vs/platform/terminal/common/terminalProfiles.js +107 -0
  87. package/dist/vscode/vs/platform/terminal/common/terminalRecorder.js +66 -0
  88. package/dist/vscode/vs/platform/terminal/common/terminalStrings.js +16 -0
  89. package/dist/vscode/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +321 -0
  90. package/dist/vscode/vs/platform/userDataSync/common/settingsMerge.js +39 -1
  91. package/dist/vscode/vs/platform/userDataSync/common/userDataSync.js +19 -0
  92. package/dist/vscode/vs/platform/window/common/window.js +7 -1
  93. package/dist/vscode/vs/platform/workspace/common/canonicalUri.js +3 -0
  94. package/dist/vscode/vs/platform/workspace/common/virtualWorkspace.js +4 -1
  95. package/dist/vscode/vs/platform/workspaces/common/workspaces.js +2 -2
  96. package/dist/vscode/vs/workbench/api/browser/mainThreadCommands.js +2 -3
  97. package/dist/vscode/vs/workbench/api/browser/mainThreadEditorTabs.js +473 -0
  98. package/dist/vscode/vs/workbench/api/browser/mainThreadLanguageFeatures.js +45 -38
  99. package/dist/vscode/vs/workbench/api/browser/mainThreadSearch.js +146 -0
  100. package/dist/vscode/vs/workbench/api/browser/mainThreadStatusBar.js +33 -52
  101. package/dist/vscode/vs/workbench/api/browser/mainThreadTerminalService.js +395 -0
  102. package/dist/vscode/vs/workbench/api/browser/mainThreadTheming.js +22 -0
  103. package/dist/vscode/vs/workbench/api/browser/mainThreadTreeViews.js +10 -5
  104. package/dist/vscode/vs/workbench/api/browser/mainThreadWindow.js +11 -4
  105. package/dist/vscode/vs/workbench/api/browser/mainThreadWorkspace.js +34 -11
  106. package/dist/vscode/vs/workbench/api/browser/statusBarExtensionPoint.js +81 -0
  107. package/dist/vscode/vs/workbench/api/common/extHost.protocol.js +7 -2
  108. package/dist/vscode/vs/workbench/api/common/extHostDebugService.js +4 -13
  109. package/dist/vscode/vs/workbench/api/common/extHostExtensionService.js +30 -15
  110. package/dist/vscode/vs/workbench/api/common/extHostFileSystemConsumer.js +20 -6
  111. package/dist/vscode/vs/workbench/api/common/extHostLanguageFeatures.js +41 -8
  112. package/dist/vscode/vs/workbench/api/common/extHostManagedSockets.js +3 -0
  113. package/dist/vscode/vs/workbench/api/common/extHostSearch.js +109 -0
  114. package/dist/vscode/vs/workbench/api/common/extHostStatusBar.js +33 -6
  115. package/dist/vscode/vs/workbench/api/common/extHostTerminalService.js +879 -1
  116. package/dist/vscode/vs/workbench/api/common/extHostTheming.js +38 -0
  117. package/dist/vscode/vs/workbench/api/common/extHostTreeViews.js +8 -5
  118. package/dist/vscode/vs/workbench/api/common/extHostTypeConverters.js +15 -17
  119. package/dist/vscode/vs/workbench/api/common/extHostTypes.js +117 -4
  120. package/dist/vscode/vs/workbench/api/common/extHostWindow.js +28 -6
  121. package/dist/vscode/vs/workbench/api/common/extHostWorkspace.js +28 -0
  122. package/dist/vscode/vs/workbench/api/common/shared/dataTransferCache.js +11 -14
  123. package/dist/vscode/vs/workbench/api/node/extHostTerminalService.js +22 -0
  124. package/dist/vscode/vs/workbench/browser/actions/layoutActions.js +2 -1
  125. package/dist/vscode/vs/workbench/browser/actions/windowActions.js +2 -2
  126. package/dist/vscode/vs/workbench/browser/dnd.js +56 -2
  127. package/dist/vscode/vs/workbench/browser/parts/compositePart.js +1 -1
  128. package/dist/vscode/vs/workbench/browser/parts/dialogs/dialogHandler.js +2 -2
  129. package/dist/vscode/vs/workbench/browser/parts/editor/editor.contribution.js +1 -0
  130. package/dist/vscode/vs/workbench/browser/parts/editor/editor.js +1 -0
  131. package/dist/vscode/vs/workbench/browser/parts/editor/editorCommands.js +9 -10
  132. package/dist/vscode/vs/workbench/browser/parts/editor/editorGroupView.js +15 -9
  133. package/dist/vscode/vs/workbench/browser/parts/editor/editorGroupWatermark.js +13 -17
  134. package/dist/vscode/vs/workbench/browser/parts/editor/editorStatus.js +1 -1
  135. package/dist/vscode/vs/workbench/browser/parts/editor/editorsObserver.js +2 -2
  136. package/dist/vscode/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +1 -1
  137. package/dist/vscode/vs/workbench/browser/parts/editor/media/tabstitlecontrol.css.js +1 -1
  138. package/dist/vscode/vs/workbench/browser/parts/editor/noTabsTitleControl.js +3 -1
  139. package/dist/vscode/vs/workbench/browser/parts/editor/tabsTitleControl.js +60 -11
  140. package/dist/vscode/vs/workbench/browser/parts/editor/textDiffEditor.js +16 -10
  141. package/dist/vscode/vs/workbench/browser/parts/editor/textResourceEditor.js +1 -1
  142. package/dist/vscode/vs/workbench/browser/parts/statusbar/media/statusbarpart.css.js +1 -1
  143. package/dist/vscode/vs/workbench/browser/parts/views/checkbox.js +10 -0
  144. package/dist/vscode/vs/workbench/browser/parts/views/treeView.js +78 -14
  145. package/dist/vscode/vs/workbench/browser/parts/views/viewPaneContainer.js +1 -1
  146. package/dist/vscode/vs/workbench/browser/workbench.contribution.js +65 -6
  147. package/dist/vscode/vs/workbench/common/configuration.js +8 -1
  148. package/dist/vscode/vs/workbench/common/contextkeys.js +9 -1
  149. package/dist/vscode/vs/workbench/common/editor/editorGroupModel.js +5 -1
  150. package/dist/vscode/vs/workbench/common/editor/resourceEditorInput.js +6 -3
  151. package/dist/vscode/vs/workbench/common/editor/textResourceEditorInput.js +9 -6
  152. package/dist/vscode/vs/workbench/common/editor.js +1 -5
  153. package/dist/vscode/vs/workbench/common/resources.js +111 -34
  154. package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +1 -1
  155. package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.js +1 -1
  156. package/dist/vscode/vs/workbench/contrib/chat/browser/chat.js +3 -0
  157. package/dist/vscode/vs/workbench/contrib/chat/common/chatService.js +3 -0
  158. package/dist/vscode/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +6 -4
  159. package/dist/vscode/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css.js +4 -0
  160. package/dist/vscode/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +250 -0
  161. package/dist/vscode/vs/workbench/contrib/customEditor/browser/customEditorInput.js +290 -0
  162. package/dist/vscode/vs/workbench/contrib/customEditor/common/customEditor.js +3 -0
  163. package/dist/vscode/vs/workbench/contrib/debug/browser/debugActionViewItems.js +1 -0
  164. package/dist/vscode/vs/workbench/contrib/debug/browser/debugCommands.js +2 -1
  165. package/dist/vscode/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +20 -20
  166. package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorActions.js +5 -3
  167. package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorContribution.js +5 -2
  168. package/dist/vscode/vs/workbench/contrib/debug/browser/debugHover.js +33 -6
  169. package/dist/vscode/vs/workbench/contrib/debug/browser/debugSession.js +1 -1
  170. package/dist/vscode/vs/workbench/contrib/debug/browser/debugTaskRunner.js +1 -1
  171. package/dist/vscode/vs/workbench/contrib/debug/browser/repl.js +3 -3
  172. package/dist/vscode/vs/workbench/contrib/debug/common/debugModel.js +29 -17
  173. package/dist/vscode/vs/workbench/contrib/debug/common/debugStorage.js +11 -10
  174. package/dist/vscode/vs/workbench/contrib/debug/common/debugger.js +10 -6
  175. package/dist/vscode/vs/workbench/contrib/extensions/browser/extensionsActions.js +2514 -0
  176. package/dist/vscode/vs/workbench/contrib/extensions/browser/extensionsIcons.js +82 -0
  177. package/dist/vscode/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +4 -0
  178. package/dist/vscode/vs/workbench/contrib/extensions/common/extensions.js +6 -1
  179. package/dist/vscode/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +16 -0
  180. package/dist/vscode/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +2 -3
  181. package/dist/vscode/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +2 -0
  182. package/dist/vscode/vs/workbench/contrib/files/browser/explorerService.js +10 -6
  183. package/dist/vscode/vs/workbench/contrib/files/browser/explorerViewlet.js +3 -18
  184. package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.contribution.js +37 -2
  185. package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.js +65 -3
  186. package/dist/vscode/vs/workbench/contrib/files/browser/fileCommands.js +3 -3
  187. package/dist/vscode/vs/workbench/contrib/files/browser/fileConstants.js +3 -1
  188. package/dist/vscode/vs/workbench/contrib/files/browser/files.contribution.js +41 -6
  189. package/dist/vscode/vs/workbench/contrib/files/browser/files.js +1 -0
  190. package/dist/vscode/vs/workbench/contrib/files/browser/views/explorerView.js +3 -3
  191. package/dist/vscode/vs/workbench/contrib/files/browser/views/explorerViewer.js +6 -2
  192. package/dist/vscode/vs/workbench/contrib/files/common/explorerModel.js +16 -9
  193. package/dist/vscode/vs/workbench/contrib/files/common/files.js +1 -6
  194. package/dist/vscode/vs/workbench/contrib/interactive/browser/interactiveDocumentService.js +3 -0
  195. package/dist/vscode/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +200 -0
  196. package/dist/vscode/vs/workbench/contrib/interactive/browser/interactiveHistoryService.js +3 -0
  197. package/dist/vscode/vs/workbench/contrib/markers/browser/markers.contribution.js +586 -0
  198. package/dist/vscode/vs/workbench/contrib/markers/browser/markersFilterOptions.js +75 -0
  199. package/dist/vscode/vs/workbench/contrib/markers/browser/markersModel.js +201 -0
  200. package/dist/vscode/vs/workbench/contrib/markers/browser/markersTable.js +451 -0
  201. package/dist/vscode/vs/workbench/contrib/markers/browser/markersTreeViewer.js +670 -0
  202. package/dist/vscode/vs/workbench/contrib/markers/browser/markersView.js +857 -0
  203. package/dist/vscode/vs/workbench/contrib/markers/browser/markersViewActions.css.js +4 -0
  204. package/dist/vscode/vs/workbench/contrib/markers/browser/markersViewActions.js +132 -0
  205. package/dist/vscode/vs/workbench/contrib/markers/browser/media/markers.css.js +4 -0
  206. package/dist/vscode/vs/workbench/contrib/markers/browser/messages.js +171 -0
  207. package/dist/vscode/vs/workbench/contrib/markers/common/markers.js +15 -1
  208. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +135 -0
  209. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +421 -0
  210. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +5 -0
  211. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +55 -0
  212. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/editing.js +54 -0
  213. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +108 -0
  214. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +334 -0
  215. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +606 -0
  216. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +307 -0
  217. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.js +36 -0
  218. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +165 -0
  219. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/telemetry.js +78 -0
  220. package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/utils.js +68 -0
  221. package/dist/vscode/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +2 -0
  222. package/dist/vscode/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +70 -0
  223. package/dist/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css.js +4 -0
  224. package/dist/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +158 -0
  225. package/dist/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser.js +6 -1
  226. package/dist/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.js +3 -0
  227. package/dist/vscode/vs/workbench/contrib/notebook/common/notebookCommon.js +16 -1
  228. package/dist/vscode/vs/workbench/contrib/notebook/common/notebookService.js +3 -0
  229. package/dist/vscode/vs/workbench/contrib/output/browser/logViewer.js +64 -0
  230. package/dist/vscode/vs/workbench/contrib/output/browser/output.contribution.js +378 -0
  231. package/dist/vscode/vs/workbench/contrib/output/browser/outputServices.js +39 -3
  232. package/dist/vscode/vs/workbench/contrib/output/browser/outputView.js +220 -0
  233. package/dist/vscode/vs/workbench/contrib/output/common/outputChannelModel.js +12 -3
  234. package/dist/vscode/vs/workbench/contrib/output/common/outputLinkComputer.js +129 -0
  235. package/dist/vscode/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +270 -0
  236. package/dist/vscode/vs/workbench/contrib/preferences/browser/keybindingsEditor.js +1080 -0
  237. package/dist/vscode/vs/workbench/contrib/preferences/browser/media/keybindings.css.js +4 -0
  238. package/dist/vscode/vs/workbench/contrib/preferences/browser/media/keybindingsEditor.css.js +4 -0
  239. package/dist/vscode/vs/workbench/contrib/preferences/browser/media/preferences.css.js +4 -0
  240. package/dist/vscode/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css.js +4 -0
  241. package/dist/vscode/vs/workbench/contrib/preferences/browser/media/settingsWidgets.css.js +4 -0
  242. package/dist/vscode/vs/workbench/contrib/preferences/browser/preferences.contribution.js +1154 -0
  243. package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesActions.js +94 -0
  244. package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesEditor.js +47 -0
  245. package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesIcons.js +37 -0
  246. package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesRenderers.js +731 -0
  247. package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesSearch.js +271 -0
  248. package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +479 -0
  249. package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsEditor2.js +1465 -0
  250. package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsEditorSettingIndicators.js +506 -0
  251. package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsLayout.js +296 -0
  252. package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsSearchMenu.js +79 -0
  253. package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsTree.js +1984 -0
  254. package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +759 -0
  255. package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsWidgets.js +1008 -0
  256. package/dist/vscode/vs/workbench/contrib/preferences/browser/tocTree.js +196 -0
  257. package/dist/vscode/vs/workbench/contrib/preferences/common/preferences.js +68 -0
  258. package/dist/vscode/vs/workbench/contrib/preferences/common/preferencesContribution.js +157 -0
  259. package/dist/vscode/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +67 -0
  260. package/dist/vscode/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +16 -16
  261. package/dist/vscode/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +1 -2
  262. package/dist/vscode/vs/workbench/contrib/remote/browser/remoteExplorer.js +23 -2
  263. package/dist/vscode/vs/workbench/contrib/remote/browser/tunnelView.js +5 -5
  264. package/dist/vscode/vs/workbench/contrib/search/browser/media/searchview.css.js +4 -0
  265. package/dist/vscode/vs/workbench/contrib/search/browser/patternInputWidget.js +217 -0
  266. package/dist/vscode/vs/workbench/contrib/search/browser/replace.js +3 -0
  267. package/dist/vscode/vs/workbench/contrib/search/browser/replaceContributions.js +7 -0
  268. package/dist/vscode/vs/workbench/contrib/search/browser/replaceService.js +222 -0
  269. package/dist/vscode/vs/workbench/contrib/search/browser/search.contribution.js +54 -15
  270. package/dist/vscode/vs/workbench/contrib/search/browser/searchActionsBase.js +17 -0
  271. package/dist/vscode/vs/workbench/contrib/search/browser/searchFindInput.js +41 -0
  272. package/dist/vscode/vs/workbench/contrib/search/browser/searchIcons.js +35 -0
  273. package/dist/vscode/vs/workbench/contrib/search/browser/searchMessage.js +58 -0
  274. package/dist/vscode/vs/workbench/contrib/search/browser/searchModel.js +1842 -0
  275. package/dist/vscode/vs/workbench/contrib/search/browser/searchNotebookHelpers.js +49 -0
  276. package/dist/vscode/vs/workbench/contrib/search/browser/searchResultsView.js +379 -0
  277. package/dist/vscode/vs/workbench/contrib/search/browser/searchView.js +1867 -0
  278. package/dist/vscode/vs/workbench/contrib/search/browser/searchWidget.js +628 -0
  279. package/dist/vscode/vs/workbench/contrib/search/common/constants.js +30 -1
  280. package/dist/vscode/vs/workbench/contrib/search/common/search.js +9 -1
  281. package/dist/vscode/vs/workbench/contrib/search/common/searchHistoryService.js +42 -0
  282. package/dist/vscode/vs/workbench/contrib/searchEditor/browser/constants.js +11 -0
  283. package/dist/vscode/vs/workbench/contrib/searchEditor/browser/media/searchEditor.css.js +4 -0
  284. package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +477 -0
  285. package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditor.js +697 -0
  286. package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +188 -0
  287. package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +295 -0
  288. package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +135 -0
  289. package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +268 -0
  290. package/dist/vscode/vs/workbench/contrib/snippets/browser/tabCompletion.js +2 -2
  291. package/dist/vscode/vs/workbench/contrib/tasks/common/taskService.js +16 -1
  292. package/dist/vscode/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +119 -0
  293. package/dist/vscode/vs/workbench/contrib/terminal/browser/media/scrollbar.css.js +4 -0
  294. package/dist/vscode/vs/workbench/contrib/terminal/browser/media/terminal.css.js +4 -0
  295. package/dist/vscode/vs/workbench/contrib/terminal/browser/media/widgets.css.js +4 -0
  296. package/dist/vscode/vs/workbench/contrib/terminal/browser/media/xterm.css.js +4 -0
  297. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminal.contribution.js +238 -0
  298. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminal.js +4 -1
  299. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalActions.js +1930 -0
  300. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalCommands.js +22 -0
  301. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalConfigHelper.js +213 -0
  302. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +17 -0
  303. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalEditor.js +186 -0
  304. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +199 -0
  305. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalEditorService.js +239 -0
  306. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalExtensions.js +22 -0
  307. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalGroup.js +482 -0
  308. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalGroupService.js +372 -0
  309. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalIcon.js +60 -1
  310. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalIcons.js +37 -0
  311. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalInstance.js +2123 -0
  312. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalInstanceService.js +79 -0
  313. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalMainContribution.js +82 -0
  314. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalMenus.js +850 -0
  315. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy.js +142 -0
  316. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +618 -0
  317. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProfileQuickpick.js +278 -0
  318. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProfileResolverService.js +417 -0
  319. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProfileService.js +213 -0
  320. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +144 -0
  321. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +267 -0
  322. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalService.js +1063 -0
  323. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalStatusList.js +108 -0
  324. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalTabbedView.js +417 -0
  325. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalTabsList.js +680 -0
  326. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalTooltip.js +72 -0
  327. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalUri.js +39 -0
  328. package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalView.js +535 -0
  329. package/dist/vscode/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +36 -0
  330. package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +469 -0
  331. package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +97 -0
  332. package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +56 -0
  333. package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +416 -0
  334. package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +390 -0
  335. package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +587 -0
  336. package/dist/vscode/vs/workbench/contrib/terminal/common/environmentVariable.js +3 -0
  337. package/dist/vscode/vs/workbench/contrib/terminal/common/environmentVariableService.js +94 -0
  338. package/dist/vscode/vs/workbench/contrib/terminal/common/history.js +356 -0
  339. package/dist/vscode/vs/workbench/contrib/terminal/common/terminal.js +266 -0
  340. package/dist/vscode/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -16
  341. package/dist/vscode/vs/workbench/contrib/terminal/common/terminalConfiguration.js +965 -0
  342. package/dist/vscode/vs/workbench/contrib/terminal/common/terminalContextKey.js +157 -0
  343. package/dist/vscode/vs/workbench/contrib/terminal/common/terminalEnvironment.js +272 -0
  344. package/dist/vscode/vs/workbench/contrib/terminal/common/terminalExtensionPoints.js +27 -0
  345. package/dist/vscode/vs/workbench/contrib/terminal/common/terminalStrings.js +86 -0
  346. package/dist/vscode/vs/workbench/contrib/terminal/electron-sandbox/terminalProfileResolverService.js +46 -0
  347. package/dist/vscode/vs/workbench/contrib/terminalContrib/links/browser/links.js +3 -0
  348. package/dist/vscode/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkProviderService.js +26 -0
  349. package/dist/vscode/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.js +3 -0
  350. package/dist/vscode/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixService.js +143 -0
  351. package/dist/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput.js +85 -0
  352. package/dist/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.js +52 -0
  353. package/dist/vscode/vs/workbench/services/actions/common/menusExtensionPoint.js +14 -6
  354. package/dist/vscode/vs/workbench/services/assignment/common/assignmentService.js +3 -0
  355. package/dist/vscode/vs/workbench/services/configuration/browser/configurationService.js +13 -13
  356. package/dist/vscode/vs/workbench/services/configuration/common/configuration.js +2 -1
  357. package/dist/vscode/vs/workbench/services/configuration/common/configurationEditing.js +2 -2
  358. package/dist/vscode/vs/workbench/services/configuration/common/jsonEditingService.js +2 -2
  359. package/dist/vscode/vs/workbench/services/dialogs/browser/abstractFileDialogService.js +302 -0
  360. package/dist/vscode/vs/workbench/services/dialogs/browser/simpleFileDialog.js +971 -0
  361. package/dist/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.js +3 -2
  362. package/dist/vscode/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.js +4 -0
  363. package/dist/vscode/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +2 -0
  364. package/dist/vscode/vs/workbench/services/extensions/common/extensionManifestPropertiesService.js +3 -0
  365. package/dist/vscode/vs/workbench/services/extensions/common/extensions.js +14 -2
  366. package/dist/vscode/vs/workbench/services/extensions/common/extensionsApiProposals.js +10 -1
  367. package/dist/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +70 -3
  368. package/dist/vscode/vs/workbench/services/hover/browser/hoverService.js +1 -1
  369. package/dist/vscode/vs/workbench/services/hover/browser/hoverWidget.js +2 -1
  370. package/dist/vscode/vs/workbench/services/hover/browser/media/hover.css.js +1 -1
  371. package/dist/vscode/vs/workbench/services/keybinding/common/keybindingEditing.js +275 -0
  372. package/dist/vscode/vs/workbench/services/localization/common/locale.js +3 -0
  373. package/dist/vscode/vs/workbench/services/log/common/logConstants.js +2 -0
  374. package/dist/vscode/vs/workbench/services/output/common/output.js +4 -1
  375. package/dist/vscode/vs/workbench/services/preferences/common/preferences.js +22 -1
  376. package/dist/vscode/vs/workbench/services/preferences/common/preferencesModels.js +6 -0
  377. package/dist/vscode/vs/workbench/services/preferences/common/preferencesValidation.js +37 -1
  378. package/dist/vscode/vs/workbench/services/remote/common/remoteAgentService.js +69 -0
  379. package/dist/vscode/vs/workbench/services/remote/common/remoteExplorerService.js +66 -27
  380. package/dist/vscode/vs/workbench/services/search/common/fileSearchManager.js +265 -0
  381. package/dist/vscode/vs/workbench/services/search/common/queryBuilder.js +6 -0
  382. package/dist/vscode/vs/workbench/services/search/common/replace.js +203 -0
  383. package/dist/vscode/vs/workbench/services/search/common/search.js +227 -1
  384. package/dist/vscode/vs/workbench/services/search/common/searchExtTypes.js +6 -0
  385. package/dist/vscode/vs/workbench/services/search/common/searchHelpers.js +72 -0
  386. package/dist/vscode/vs/workbench/services/search/common/searchService.js +355 -0
  387. package/dist/vscode/vs/workbench/services/search/common/textSearchManager.js +309 -0
  388. package/dist/vscode/vs/workbench/services/suggest/browser/media/suggest.css.js +4 -0
  389. package/dist/vscode/vs/workbench/services/suggest/browser/simpleCompletionItem.js +10 -0
  390. package/dist/vscode/vs/workbench/services/suggest/browser/simpleCompletionModel.js +98 -0
  391. package/dist/vscode/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +399 -0
  392. package/dist/vscode/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +83 -0
  393. package/dist/vscode/vs/workbench/services/terminal/common/embedderTerminalService.js +3 -0
  394. package/dist/vscode/vs/workbench/services/textfile/browser/textFileService.js +1 -1
  395. package/dist/vscode/vs/workbench/services/textfile/common/textFileEditorModel.js +10 -3
  396. package/dist/vscode/vs/workbench/services/themes/browser/fileIconThemeData.js +3 -3
  397. package/dist/vscode/vs/workbench/services/themes/browser/productIconThemeData.js +3 -3
  398. package/dist/vscode/vs/workbench/services/themes/common/colorThemeData.js +3 -3
  399. package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorInput.js +6 -4
  400. package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorModel.js +3 -0
  401. package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.js +4 -0
  402. package/dist/vscode/vs/workbench/services/userActivity/common/userActivityRegistry.js +15 -0
  403. package/dist/vscode/vs/workbench/services/userActivity/common/userActivityService.js +37 -0
  404. package/dist/vscode/vs/workbench/services/userDataSync/common/userDataSync.js +7 -0
  405. package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService.js +40 -0
  406. package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyService.js +12 -0
  407. package/dist/vscode/vs/workbench/services/workspaces/common/canonicalUriService.js +19 -0
  408. package/dist/vscode-default-extensions/css/syntaxes/css.tmLanguage.json.extensionResource.js +1 -1
  409. package/dist/vscode-default-extensions/json/package.json.js +1 -1
  410. package/dist/vscode-default-extensions/json/syntaxes/JSONC.tmLanguage.json.extensionResource.js +1 -1
  411. package/dist/vscode-default-extensions/json/syntaxes/JSONL.tmLanguage.json.extensionResource.js +2 -0
  412. package/dist/vscode-default-extensions/latex/syntaxes/Bibtex.tmLanguage.json.extensionResource.js +1 -1
  413. package/dist/vscode-default-extensions/latex/syntaxes/LaTeX.tmLanguage.json.extensionResource.js +1 -1
  414. package/dist/vscode-default-extensions/latex/syntaxes/TeX.tmLanguage.json.extensionResource.js +1 -1
  415. package/dist/vscode-default-extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.extensionResource.js +1 -1
  416. package/dist/vscode-default-extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.extensionResource.js +1 -1
  417. package/dist/vscode-default-extensions/lua/syntaxes/lua.tmLanguage.json.extensionResource.js +1 -1
  418. package/dist/vscode-default-extensions/perl/package.json.js +1 -1
  419. package/dist/vscode-default-extensions/php/snippets/php.code-snippets.extensionResource.js +1 -1
  420. package/dist/vscode-default-extensions/sql/language-configuration.json.extensionResource.js +1 -1
  421. package/dist/vscode-default-extensions/theme-abyss/themes/abyss-color-theme.json.extensionResource.js +1 -1
  422. package/dist/vscode-default-extensions/theme-defaults/package.json.js +1 -1
  423. package/dist/vscode-default-extensions/theme-defaults/themes/dark_modern.json.extensionResource.js +2 -0
  424. package/dist/vscode-default-extensions/theme-defaults/themes/dark_vs.json.extensionResource.js +1 -1
  425. package/dist/vscode-default-extensions/theme-defaults/themes/hc_black.json.extensionResource.js +1 -1
  426. package/dist/vscode-default-extensions/theme-defaults/themes/hc_light.json.extensionResource.js +1 -1
  427. package/dist/vscode-default-extensions/theme-defaults/themes/light_modern.json.extensionResource.js +2 -0
  428. package/dist/vscode-default-extensions/theme-defaults/themes/light_vs.json.extensionResource.js +1 -1
  429. package/dist/vscode-default-extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json.extensionResource.js +1 -1
  430. package/dist/vscode-default-extensions/theme-monokai/themes/monokai-color-theme.json.extensionResource.js +1 -1
  431. package/dist/vscode-default-extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json.extensionResource.js +1 -1
  432. package/dist/vscode-default-extensions/theme-quietlight/themes/quietlight-color-theme.json.extensionResource.js +1 -1
  433. package/dist/vscode-default-extensions/theme-red/themes/Red-color-theme.json.extensionResource.js +1 -1
  434. package/dist/vscode-default-extensions/theme-seti/icons/vs-seti-icon-theme.json.extensionResource.js +1 -1
  435. package/dist/vscode-default-extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json.extensionResource.js +1 -1
  436. package/dist/vscode-default-extensions/theme-solarized-light/themes/solarized-light-color-theme.json.extensionResource.js +1 -1
  437. package/dist/vscode-default-extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-color-theme.json.extensionResource.js +1 -1
  438. package/dist/vscode-default-extensions/vb/language-configuration.json.extensionResource.js +1 -1
  439. package/dist/vscode-services/env.js +4 -2
  440. package/dist/vscode-services/extHost.js +32 -48
  441. package/dist/vscode-services/missing-services.js +407 -29
  442. package/dist/vscode-services/window.js +59 -65
  443. package/dist/vscode-services/workspace.js +19 -5
  444. package/dist/workers/outputLinkComputer.worker.d.ts +2 -0
  445. package/dist/workers/outputLinkComputer.worker.js +3 -0
  446. package/dist/workspace.d.ts +1 -1
  447. package/monaco-editor-treemending.patch +1305 -1184
  448. package/package.json +65 -19
  449. package/dist/activity.d.ts +0 -2802
  450. package/dist/collections.d.ts +0 -7
  451. package/dist/colorRegistry.d.ts +0 -710
  452. package/dist/vscode/vs/platform/product/common/product.js +0 -48
  453. package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionFollowups.js +0 -30
  454. package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionInputPart.js +0 -196
  455. package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionListRenderer.js +0 -622
  456. package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionOptions.js +0 -77
  457. package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionWidget.js +0 -311
  458. package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/media/interactiveSession.css.js +0 -4
  459. package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionContextKeys.js +0 -56
  460. package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionModel.js +0 -305
  461. package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionService.js +0 -13
  462. package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionServiceImpl.js +0 -379
  463. package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionViewModel.js +0 -207
  464. package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionWidgetHistoryService.js +0 -3
  465. package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionWordCounter.js +0 -25
  466. package/dist/vscode-default-extensions/theme-defaults/themes/dark_plus_experimental.json.extensionResource.js +0 -2
  467. package/dist/vscode-default-extensions/theme-defaults/themes/light_plus_experimental.json.extensionResource.js +0 -2
@@ -0,0 +1,857 @@
1
+ import { __decorate, __param } from '../../../../../../node_modules/tslib/tslib.es6.js';
2
+ import './media/markers.css.js';
3
+ import * as dom from 'monaco-editor/esm/vs/base/browser/dom.js';
4
+ import { Separator } from 'monaco-editor/esm/vs/base/common/actions.js';
5
+ import { ITelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
6
+ import { SIDE_GROUP, ACTIVE_GROUP, IEditorService } from '../../../services/editor/common/editorService.js';
7
+ import { MarkersModel, Marker, RelatedInformation, MarkerTableItem, ResourceMarkers, compareMarkersByUri } from './markersModel.js';
8
+ import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
9
+ import { MarkersFilters } from './markersViewActions.js';
10
+ import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
11
+ import Messages$1 from './messages.js';
12
+ import { RangeHighlightDecorations } from '../../../browser/codeeditor.js';
13
+ import { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
14
+ import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
15
+ import { localize } from 'monaco-editor/esm/vs/nls.js';
16
+ import { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
17
+ import { Iterable } from 'monaco-editor/esm/vs/base/common/iterator.js';
18
+ import { Event, Relay } from 'monaco-editor/esm/vs/base/common/event.js';
19
+ import { WorkbenchObjectTree, IListService } from 'monaco-editor/esm/vs/platform/list/browser/listService.js';
20
+ import { FilterOptions } from './markersFilterOptions.js';
21
+ import { deepClone } from 'monaco-editor/esm/vs/base/common/objects.js';
22
+ import { IWorkspaceContextService } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
23
+ import { MarkersViewModel, MarkersWidgetAccessibilityProvider, Filter, ResourceMarkersRenderer, MarkerRenderer, RelatedInformationRenderer, VirtualDelegate } from './markersTreeViewer.js';
24
+ import { IContextMenuService } from 'monaco-editor/esm/vs/platform/contextview/browser/contextView.js';
25
+ import { MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
26
+ import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
27
+ import { StandardKeyboardEvent } from 'monaco-editor/esm/vs/base/browser/keyboardEvent.js';
28
+ import { ResourceLabels } from '../../../browser/labels.js';
29
+ import { MarkerSeverity, IMarkerService } from 'monaco-editor/esm/vs/platform/markers/common/markers.js';
30
+ import { withUndefinedAsNull } from 'monaco-editor/esm/vs/base/common/types.js';
31
+ import { Memento } from '../../../common/memento.js';
32
+ import { FilterViewPane } from '../../../browser/parts/views/viewPane.js';
33
+ import { IViewDescriptorService } from '../../../common/views.js';
34
+ import { withSelection, IOpenerService } from 'monaco-editor/esm/vs/platform/opener/common/opener.js';
35
+ import { ActionViewItem } from 'monaco-editor/esm/vs/base/browser/ui/actionbar/actionViewItems.js';
36
+ import { IUriIdentityService } from 'monaco-editor/esm/vs/platform/uriIdentity/common/uriIdentity.js';
37
+ import { DisposableStore, toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
38
+ import { groupBy } from 'monaco-editor/esm/vs/base/common/arrays.js';
39
+ import { ResourceMap } from 'monaco-editor/esm/vs/base/common/map.js';
40
+ import { EditorResourceAccessor, SideBySideEditor } from '../../../common/editor.js';
41
+ import { ResourceListDnDHandler } from '../../../browser/dnd.js';
42
+ import { MarkersTable } from './markersTable.js';
43
+ import { Markers, MarkersContextKeys } from '../common/markers.js';
44
+ function createResourceMarkersIterator(resourceMarkers) {
45
+ return ( Iterable.map(resourceMarkers.markers, m => {
46
+ const relatedInformationIt = Iterable.from(m.relatedInformation);
47
+ const children = ( Iterable.map(relatedInformationIt, r => ({ element: r })));
48
+ return { element: m, children };
49
+ }));
50
+ }
51
+ let MarkersView = class MarkersView extends FilterViewPane {
52
+ constructor(options, instantiationService, viewDescriptorService, editorService, configurationService, telemetryService, markerService, contextKeyService, workspaceContextService, contextMenuService, uriIdentityService, keybindingService, storageService, openerService, themeService) {
53
+ const panelState = ( new Memento(Markers.MARKERS_VIEW_STORAGE_ID, storageService)).getMemento(1 , 1 );
54
+ super({
55
+ ...options,
56
+ filterOptions: {
57
+ ariaLabel: Messages$1.MARKERS_PANEL_FILTER_ARIA_LABEL,
58
+ placeholder: Messages$1.MARKERS_PANEL_FILTER_PLACEHOLDER,
59
+ focusContextKey: MarkersContextKeys.MarkerViewFilterFocusContextKey.key,
60
+ text: panelState['filter'] || '',
61
+ history: panelState['filterHistory'] || []
62
+ }
63
+ }, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService);
64
+ this.editorService = editorService;
65
+ this.markerService = markerService;
66
+ this.workspaceContextService = workspaceContextService;
67
+ this.uriIdentityService = uriIdentityService;
68
+ this.lastSelectedRelativeTop = 0;
69
+ this.currentActiveResource = null;
70
+ this.onVisibleDisposables = this._register(( new DisposableStore()));
71
+ this.widgetDisposables = this._register(( new DisposableStore()));
72
+ this.currentHeight = 0;
73
+ this.currentWidth = 0;
74
+ this.cachedFilterStats = undefined;
75
+ this.currentResourceGotAddedToMarkersData = false;
76
+ this.onDidChangeVisibility = this.onDidChangeBodyVisibility;
77
+ this.panelState = panelState;
78
+ this.markersModel = this._register(instantiationService.createInstance(MarkersModel));
79
+ this.markersViewModel = this._register(instantiationService.createInstance(MarkersViewModel, this.panelState['multiline'], this.panelState['viewMode'] ?? this.getDefaultViewMode()));
80
+ this._register(this.onDidChangeVisibility(visible => this.onDidChangeMarkersViewVisibility(visible)));
81
+ this._register(this.markersViewModel.onDidChangeViewMode(_ => this.onDidChangeViewMode()));
82
+ this.widgetAccessibilityProvider = instantiationService.createInstance(MarkersWidgetAccessibilityProvider);
83
+ this.widgetIdentityProvider = { getId(element) { return element.id; } };
84
+ this.setCurrentActiveEditor();
85
+ this.filter = ( new Filter(FilterOptions.EMPTY(uriIdentityService)));
86
+ this.rangeHighlightDecorations = this._register(this.instantiationService.createInstance(RangeHighlightDecorations));
87
+ this.filters = this._register(( new MarkersFilters({
88
+ filterHistory: this.panelState['filterHistory'] || [],
89
+ showErrors: this.panelState['showErrors'] !== false,
90
+ showWarnings: this.panelState['showWarnings'] !== false,
91
+ showInfos: this.panelState['showInfos'] !== false,
92
+ excludedFiles: !!this.panelState['useFilesExclude'],
93
+ activeFile: !!this.panelState['activeFile'],
94
+ }, this.contextKeyService)));
95
+ this._register(this.configurationService.onDidChangeConfiguration(e => {
96
+ if (this.filters.excludedFiles && e.affectsConfiguration('files.exclude')) {
97
+ this.updateFilter();
98
+ }
99
+ }));
100
+ }
101
+ renderBody(parent) {
102
+ super.renderBody(parent);
103
+ parent.classList.add('markers-panel');
104
+ this._register(dom.addDisposableListener(parent, 'keydown', e => {
105
+ if (this.keybindingService.mightProducePrintableCharacter(( new StandardKeyboardEvent(e)))) {
106
+ this.focusFilter();
107
+ }
108
+ }));
109
+ const panelContainer = dom.append(parent, dom.$('.markers-panel-container'));
110
+ this.createArialLabelElement(panelContainer);
111
+ this.createMessageBox(panelContainer);
112
+ this.widgetContainer = dom.append(panelContainer, dom.$('.widget-container'));
113
+ this.createWidget(this.widgetContainer);
114
+ this.updateFilter();
115
+ this.renderContent();
116
+ }
117
+ getTitle() {
118
+ return Messages$1.MARKERS_PANEL_TITLE_PROBLEMS;
119
+ }
120
+ layoutBodyContent(height = this.currentHeight, width = this.currentWidth) {
121
+ if (this.messageBoxContainer) {
122
+ this.messageBoxContainer.style.height = `${height}px`;
123
+ }
124
+ this.widget.layout(height, width);
125
+ this.currentHeight = height;
126
+ this.currentWidth = width;
127
+ }
128
+ focus() {
129
+ if (this.widget.getHTMLElement() === document.activeElement) {
130
+ return;
131
+ }
132
+ if (this.hasNoProblems()) {
133
+ this.messageBoxContainer.focus();
134
+ }
135
+ else {
136
+ this.widget.domFocus();
137
+ this.widget.setMarkerSelection();
138
+ }
139
+ }
140
+ focusFilter() {
141
+ this.filterWidget.focus();
142
+ }
143
+ updateBadge(total, filtered) {
144
+ this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize('showing filtered problems', "Showing {0} of {1}", filtered, total)));
145
+ }
146
+ checkMoreFilters() {
147
+ this.filterWidget.checkMoreFilters(!this.filters.showErrors || !this.filters.showWarnings || !this.filters.showInfos || this.filters.excludedFiles || this.filters.activeFile);
148
+ }
149
+ clearFilterText() {
150
+ this.filterWidget.setFilterText('');
151
+ }
152
+ showQuickFixes(marker) {
153
+ const viewModel = this.markersViewModel.getViewModel(marker);
154
+ if (viewModel) {
155
+ viewModel.quickFixAction.run();
156
+ }
157
+ }
158
+ openFileAtElement(element, preserveFocus, sideByside, pinned) {
159
+ const { resource, selection } = element instanceof Marker ? { resource: element.resource, selection: element.range } :
160
+ element instanceof RelatedInformation ? { resource: element.raw.resource, selection: element.raw } :
161
+ 'marker' in element ? { resource: element.marker.resource, selection: element.marker.range } :
162
+ { resource: null, selection: null };
163
+ if (resource && selection) {
164
+ this.editorService.openEditor({
165
+ resource,
166
+ options: {
167
+ selection,
168
+ preserveFocus,
169
+ pinned,
170
+ revealIfVisible: true
171
+ },
172
+ }, sideByside ? SIDE_GROUP : ACTIVE_GROUP).then(editor => {
173
+ if (editor && preserveFocus) {
174
+ this.rangeHighlightDecorations.highlightRange({ resource, range: selection }, editor.getControl());
175
+ }
176
+ else {
177
+ this.rangeHighlightDecorations.removeHighlightRange();
178
+ }
179
+ });
180
+ return true;
181
+ }
182
+ else {
183
+ this.rangeHighlightDecorations.removeHighlightRange();
184
+ }
185
+ return false;
186
+ }
187
+ refreshPanel(markerOrChange) {
188
+ if (this.isVisible()) {
189
+ const hasSelection = this.widget.getSelection().length > 0;
190
+ if (markerOrChange) {
191
+ if (markerOrChange instanceof Marker) {
192
+ this.widget.updateMarker(markerOrChange);
193
+ }
194
+ else {
195
+ if (markerOrChange.added.size || markerOrChange.removed.size) {
196
+ this.resetWidget();
197
+ }
198
+ else {
199
+ this.widget.update([...markerOrChange.updated]);
200
+ }
201
+ }
202
+ }
203
+ else {
204
+ this.resetWidget();
205
+ }
206
+ if (hasSelection) {
207
+ this.widget.setMarkerSelection();
208
+ }
209
+ this.cachedFilterStats = undefined;
210
+ const { total, filtered } = this.getFilterStats();
211
+ this.toggleVisibility(total === 0 || filtered === 0);
212
+ this.renderMessage();
213
+ this.updateBadge(total, filtered);
214
+ this.checkMoreFilters();
215
+ }
216
+ }
217
+ onDidChangeViewState(marker) {
218
+ this.refreshPanel(marker);
219
+ }
220
+ resetWidget() {
221
+ this.widget.reset(this.getResourceMarkers());
222
+ }
223
+ updateFilter() {
224
+ this.filter.options = ( new FilterOptions(
225
+ this.filterWidget.getFilterText(),
226
+ this.getFilesExcludeExpressions(),
227
+ this.filters.showWarnings,
228
+ this.filters.showErrors,
229
+ this.filters.showInfos,
230
+ this.uriIdentityService
231
+ ));
232
+ this.widget.filterMarkers(this.getResourceMarkers(), this.filter.options);
233
+ this.cachedFilterStats = undefined;
234
+ const { total, filtered } = this.getFilterStats();
235
+ this.toggleVisibility(total === 0 || filtered === 0);
236
+ this.renderMessage();
237
+ this.updateBadge(total, filtered);
238
+ this.checkMoreFilters();
239
+ }
240
+ getDefaultViewMode() {
241
+ switch (this.configurationService.getValue('problems.defaultViewMode')) {
242
+ case 'table':
243
+ return "table" ;
244
+ case 'tree':
245
+ return "tree" ;
246
+ default:
247
+ return "tree" ;
248
+ }
249
+ }
250
+ getFilesExcludeExpressions() {
251
+ if (!this.filters.excludedFiles) {
252
+ return [];
253
+ }
254
+ const workspaceFolders = this.workspaceContextService.getWorkspace().folders;
255
+ return workspaceFolders.length
256
+ ? ( workspaceFolders.map(
257
+ workspaceFolder => ({ root: workspaceFolder.uri, expression: this.getFilesExclude(workspaceFolder.uri) })
258
+ ))
259
+ : this.getFilesExclude();
260
+ }
261
+ getFilesExclude(resource) {
262
+ return deepClone(this.configurationService.getValue('files.exclude', { resource })) || {};
263
+ }
264
+ getResourceMarkers() {
265
+ if (!this.filters.activeFile) {
266
+ return this.markersModel.resourceMarkers;
267
+ }
268
+ let resourceMarkers = [];
269
+ if (this.currentActiveResource) {
270
+ const activeResourceMarkers = this.markersModel.getResourceMarkers(this.currentActiveResource);
271
+ if (activeResourceMarkers) {
272
+ resourceMarkers = [activeResourceMarkers];
273
+ }
274
+ }
275
+ return resourceMarkers;
276
+ }
277
+ createMessageBox(parent) {
278
+ this.messageBoxContainer = dom.append(parent, dom.$('.message-box-container'));
279
+ this.messageBoxContainer.setAttribute('aria-labelledby', 'markers-panel-arialabel');
280
+ }
281
+ createArialLabelElement(parent) {
282
+ this.ariaLabelElement = dom.append(parent, dom.$(''));
283
+ this.ariaLabelElement.setAttribute('id', 'markers-panel-arialabel');
284
+ }
285
+ createWidget(parent) {
286
+ this.widget = this.markersViewModel.viewMode === "table" ? this.createTable(parent) : this.createTree(parent);
287
+ this.widgetDisposables.add(this.widget);
288
+ const markerFocusContextKey = MarkersContextKeys.MarkerFocusContextKey.bindTo(this.widget.contextKeyService);
289
+ const relatedInformationFocusContextKey = MarkersContextKeys.RelatedInformationFocusContextKey.bindTo(this.widget.contextKeyService);
290
+ this.widgetDisposables.add(this.widget.onDidChangeFocus(focus => {
291
+ markerFocusContextKey.set(( focus.elements.some(e => e instanceof Marker)));
292
+ relatedInformationFocusContextKey.set(( focus.elements.some(e => e instanceof RelatedInformation)));
293
+ }));
294
+ this.widgetDisposables.add(Event.debounce(this.widget.onDidOpen, (last, event) => event, 75, true)(options => {
295
+ this.openFileAtElement(options.element, !!options.editorOptions.preserveFocus, options.sideBySide, !!options.editorOptions.pinned);
296
+ }));
297
+ this.widgetDisposables.add(Event.any(this.widget.onDidChangeSelection, this.widget.onDidChangeFocus)(() => {
298
+ const elements = [...this.widget.getSelection(), ...this.widget.getFocus()];
299
+ for (const element of elements) {
300
+ if (element instanceof Marker) {
301
+ const viewModel = this.markersViewModel.getViewModel(element);
302
+ viewModel?.showLightBulb();
303
+ }
304
+ }
305
+ }));
306
+ this.widgetDisposables.add(this.widget.onContextMenu(this.onContextMenu, this));
307
+ this.widgetDisposables.add(this.widget.onDidChangeSelection(this.onSelected, this));
308
+ }
309
+ createTable(parent) {
310
+ const table = this.instantiationService.createInstance(MarkersTable, dom.append(parent, dom.$('.markers-table-container')), this.markersViewModel, this.getResourceMarkers(), this.filter.options, {
311
+ accessibilityProvider: this.widgetAccessibilityProvider,
312
+ dnd: this.instantiationService.createInstance(ResourceListDnDHandler, (element) => {
313
+ if (element instanceof MarkerTableItem) {
314
+ return withSelection(element.resource, element.range);
315
+ }
316
+ return null;
317
+ }),
318
+ horizontalScrolling: false,
319
+ identityProvider: this.widgetIdentityProvider,
320
+ multipleSelectionSupport: true,
321
+ selectionNavigation: true
322
+ });
323
+ return table;
324
+ }
325
+ createTree(parent) {
326
+ const onDidChangeRenderNodeCount = ( new Relay());
327
+ const treeLabels = this.instantiationService.createInstance(ResourceLabels, this);
328
+ const virtualDelegate = ( new VirtualDelegate(this.markersViewModel));
329
+ const renderers = [
330
+ this.instantiationService.createInstance(ResourceMarkersRenderer, treeLabels, onDidChangeRenderNodeCount.event),
331
+ this.instantiationService.createInstance(MarkerRenderer, this.markersViewModel),
332
+ this.instantiationService.createInstance(RelatedInformationRenderer)
333
+ ];
334
+ const tree = this.instantiationService.createInstance(MarkersTree, 'MarkersView', dom.append(parent, dom.$('.tree-container.show-file-icons')), virtualDelegate, renderers, {
335
+ filter: this.filter,
336
+ accessibilityProvider: this.widgetAccessibilityProvider,
337
+ identityProvider: this.widgetIdentityProvider,
338
+ dnd: this.instantiationService.createInstance(ResourceListDnDHandler, (element) => {
339
+ if (element instanceof ResourceMarkers) {
340
+ return element.resource;
341
+ }
342
+ if (element instanceof Marker) {
343
+ return withSelection(element.resource, element.range);
344
+ }
345
+ if (element instanceof RelatedInformation) {
346
+ return withSelection(element.raw.resource, element.raw);
347
+ }
348
+ return null;
349
+ }),
350
+ expandOnlyOnTwistieClick: (e) => e instanceof Marker && e.relatedInformation.length > 0,
351
+ overrideStyles: {
352
+ listBackground: this.getBackgroundColor()
353
+ },
354
+ selectionNavigation: true,
355
+ multipleSelectionSupport: true,
356
+ });
357
+ onDidChangeRenderNodeCount.input = tree.onDidChangeRenderNodeCount;
358
+ return tree;
359
+ }
360
+ collapseAll() {
361
+ this.widget.collapseMarkers();
362
+ }
363
+ setMultiline(multiline) {
364
+ this.markersViewModel.multiline = multiline;
365
+ }
366
+ setViewMode(viewMode) {
367
+ this.markersViewModel.viewMode = viewMode;
368
+ }
369
+ onDidChangeMarkersViewVisibility(visible) {
370
+ this.onVisibleDisposables.clear();
371
+ if (visible) {
372
+ for (const disposable of this.reInitialize()) {
373
+ this.onVisibleDisposables.add(disposable);
374
+ }
375
+ this.refreshPanel();
376
+ }
377
+ }
378
+ reInitialize() {
379
+ const disposables = [];
380
+ const readMarkers = (resource) => this.markerService.read({ resource, severities: MarkerSeverity.Error | MarkerSeverity.Warning | MarkerSeverity.Info });
381
+ this.markersModel.setResourceMarkers(( groupBy(readMarkers(), compareMarkersByUri).map(group => [group[0].resource, group])));
382
+ disposables.push(Event.debounce(this.markerService.onMarkerChanged, (resourcesMap, resources) => {
383
+ resourcesMap = resourcesMap || ( new ResourceMap());
384
+ resources.forEach(resource => resourcesMap.set(resource, resource));
385
+ return resourcesMap;
386
+ }, 64)(resourcesMap => {
387
+ this.markersModel.setResourceMarkers(( [...( resourcesMap.values())].map(resource => [resource, readMarkers(resource)])));
388
+ }));
389
+ disposables.push(Event.any(this.markersModel.onDidChange, this.editorService.onDidActiveEditorChange)(changes => {
390
+ if (changes) {
391
+ this.onDidChangeModel(changes);
392
+ }
393
+ else {
394
+ this.onActiveEditorChanged();
395
+ }
396
+ }));
397
+ disposables.push(toDisposable(() => this.markersModel.reset()));
398
+ this.markersModel.resourceMarkers.forEach(resourceMarker => resourceMarker.markers.forEach(marker => this.markersViewModel.add(marker)));
399
+ disposables.push(this.markersViewModel.onDidChange(marker => this.onDidChangeViewState(marker)));
400
+ disposables.push(toDisposable(() => this.markersModel.resourceMarkers.forEach(resourceMarker => this.markersViewModel.remove(resourceMarker.resource))));
401
+ disposables.push(this.filters.onDidChange((event) => {
402
+ if (event.activeFile) {
403
+ this.refreshPanel();
404
+ }
405
+ else if (event.excludedFiles || event.showWarnings || event.showErrors || event.showInfos) {
406
+ this.updateFilter();
407
+ }
408
+ }));
409
+ disposables.push(this.filterWidget.onDidChangeFilterText(e => this.updateFilter()));
410
+ disposables.push(toDisposable(() => { this.cachedFilterStats = undefined; }));
411
+ disposables.push(toDisposable(() => this.rangeHighlightDecorations.removeHighlightRange()));
412
+ return disposables;
413
+ }
414
+ onDidChangeModel(change) {
415
+ const resourceMarkers = [...change.added, ...change.removed, ...change.updated];
416
+ const resources = [];
417
+ for (const { resource } of resourceMarkers) {
418
+ this.markersViewModel.remove(resource);
419
+ const resourceMarkers = this.markersModel.getResourceMarkers(resource);
420
+ if (resourceMarkers) {
421
+ for (const marker of resourceMarkers.markers) {
422
+ this.markersViewModel.add(marker);
423
+ }
424
+ }
425
+ resources.push(resource);
426
+ }
427
+ this.currentResourceGotAddedToMarkersData = this.currentResourceGotAddedToMarkersData || this.isCurrentResourceGotAddedToMarkersData(resources);
428
+ this.refreshPanel(change);
429
+ this.updateRangeHighlights();
430
+ if (this.currentResourceGotAddedToMarkersData) {
431
+ this.autoReveal();
432
+ this.currentResourceGotAddedToMarkersData = false;
433
+ }
434
+ }
435
+ onDidChangeViewMode() {
436
+ if (this.widgetContainer && this.widget) {
437
+ this.widgetContainer.textContent = '';
438
+ this.widgetDisposables.clear();
439
+ }
440
+ const selection = ( new Set());
441
+ for (const marker of this.widget.getSelection()) {
442
+ if (marker instanceof ResourceMarkers) {
443
+ marker.markers.forEach(m => selection.add(m));
444
+ }
445
+ else if (marker instanceof Marker || marker instanceof MarkerTableItem) {
446
+ selection.add(marker);
447
+ }
448
+ }
449
+ const focus = ( new Set());
450
+ for (const marker of this.widget.getFocus()) {
451
+ if (marker instanceof Marker || marker instanceof MarkerTableItem) {
452
+ focus.add(marker);
453
+ }
454
+ }
455
+ this.createWidget(this.widgetContainer);
456
+ this.refreshPanel();
457
+ if (selection.size > 0) {
458
+ this.widget.setMarkerSelection(Array.from(selection), Array.from(focus));
459
+ this.widget.domFocus();
460
+ }
461
+ }
462
+ isCurrentResourceGotAddedToMarkersData(changedResources) {
463
+ const currentlyActiveResource = this.currentActiveResource;
464
+ if (!currentlyActiveResource) {
465
+ return false;
466
+ }
467
+ const resourceForCurrentActiveResource = this.getResourceForCurrentActiveResource();
468
+ if (resourceForCurrentActiveResource) {
469
+ return false;
470
+ }
471
+ return ( changedResources.some(r => ( r.toString()) === ( currentlyActiveResource.toString())));
472
+ }
473
+ onActiveEditorChanged() {
474
+ this.setCurrentActiveEditor();
475
+ if (this.filters.activeFile) {
476
+ this.refreshPanel();
477
+ }
478
+ this.autoReveal();
479
+ }
480
+ setCurrentActiveEditor() {
481
+ const activeEditor = this.editorService.activeEditor;
482
+ this.currentActiveResource = activeEditor ? withUndefinedAsNull(EditorResourceAccessor.getOriginalUri(activeEditor, { supportSideBySide: SideBySideEditor.PRIMARY })) : null;
483
+ }
484
+ onSelected() {
485
+ const selection = this.widget.getSelection();
486
+ if (selection && selection.length > 0) {
487
+ this.lastSelectedRelativeTop = this.widget.getRelativeTop(selection[0]) || 0;
488
+ }
489
+ }
490
+ hasNoProblems() {
491
+ const { total, filtered } = this.getFilterStats();
492
+ return total === 0 || filtered === 0;
493
+ }
494
+ renderContent() {
495
+ this.cachedFilterStats = undefined;
496
+ this.resetWidget();
497
+ this.toggleVisibility(this.hasNoProblems());
498
+ this.renderMessage();
499
+ }
500
+ renderMessage() {
501
+ if (!this.messageBoxContainer || !this.ariaLabelElement) {
502
+ return;
503
+ }
504
+ dom.clearNode(this.messageBoxContainer);
505
+ const { total, filtered } = this.getFilterStats();
506
+ if (filtered === 0) {
507
+ this.messageBoxContainer.style.display = 'block';
508
+ this.messageBoxContainer.setAttribute('tabIndex', '0');
509
+ if (this.filters.activeFile) {
510
+ this.renderFilterMessageForActiveFile(this.messageBoxContainer);
511
+ }
512
+ else {
513
+ if (total > 0) {
514
+ this.renderFilteredByFilterMessage(this.messageBoxContainer);
515
+ }
516
+ else {
517
+ this.renderNoProblemsMessage(this.messageBoxContainer);
518
+ }
519
+ }
520
+ }
521
+ else {
522
+ this.messageBoxContainer.style.display = 'none';
523
+ if (filtered === total) {
524
+ this.setAriaLabel(( localize('No problems filtered', "Showing {0} problems", total)));
525
+ }
526
+ else {
527
+ this.setAriaLabel(( localize('problems filtered', "Showing {0} of {1} problems", filtered, total)));
528
+ }
529
+ this.messageBoxContainer.removeAttribute('tabIndex');
530
+ }
531
+ }
532
+ renderFilterMessageForActiveFile(container) {
533
+ if (this.currentActiveResource && this.markersModel.getResourceMarkers(this.currentActiveResource)) {
534
+ this.renderFilteredByFilterMessage(container);
535
+ }
536
+ else {
537
+ this.renderNoProblemsMessageForActiveFile(container);
538
+ }
539
+ }
540
+ renderFilteredByFilterMessage(container) {
541
+ const span1 = dom.append(container, dom.$('span'));
542
+ span1.textContent = Messages$1.MARKERS_PANEL_NO_PROBLEMS_FILTERS;
543
+ const link = dom.append(container, dom.$('a.messageAction'));
544
+ link.textContent = ( localize('clearFilter', "Clear Filters"));
545
+ link.setAttribute('tabIndex', '0');
546
+ const span2 = dom.append(container, dom.$('span'));
547
+ span2.textContent = '.';
548
+ dom.addStandardDisposableListener(link, dom.EventType.CLICK, () => this.clearFilters());
549
+ dom.addStandardDisposableListener(link, dom.EventType.KEY_DOWN, (e) => {
550
+ if (e.equals(3 ) || e.equals(10 )) {
551
+ this.clearFilters();
552
+ e.stopPropagation();
553
+ }
554
+ });
555
+ this.setAriaLabel(Messages$1.MARKERS_PANEL_NO_PROBLEMS_FILTERS);
556
+ }
557
+ renderNoProblemsMessageForActiveFile(container) {
558
+ const span = dom.append(container, dom.$('span'));
559
+ span.textContent = Messages$1.MARKERS_PANEL_NO_PROBLEMS_ACTIVE_FILE_BUILT;
560
+ this.setAriaLabel(Messages$1.MARKERS_PANEL_NO_PROBLEMS_ACTIVE_FILE_BUILT);
561
+ }
562
+ renderNoProblemsMessage(container) {
563
+ const span = dom.append(container, dom.$('span'));
564
+ span.textContent = Messages$1.MARKERS_PANEL_NO_PROBLEMS_BUILT;
565
+ this.setAriaLabel(Messages$1.MARKERS_PANEL_NO_PROBLEMS_BUILT);
566
+ }
567
+ setAriaLabel(label) {
568
+ this.widget.setAriaLabel(label);
569
+ this.ariaLabelElement.setAttribute('aria-label', label);
570
+ }
571
+ clearFilters() {
572
+ this.filterWidget.setFilterText('');
573
+ this.filters.excludedFiles = false;
574
+ this.filters.showErrors = true;
575
+ this.filters.showWarnings = true;
576
+ this.filters.showInfos = true;
577
+ }
578
+ autoReveal(focus = false) {
579
+ if (this.filters.activeFile) {
580
+ return;
581
+ }
582
+ const autoReveal = this.configurationService.getValue('problems.autoReveal');
583
+ if (typeof autoReveal === 'boolean' && autoReveal) {
584
+ const currentActiveResource = this.getResourceForCurrentActiveResource();
585
+ this.widget.revealMarkers(currentActiveResource, focus, this.lastSelectedRelativeTop);
586
+ }
587
+ }
588
+ getResourceForCurrentActiveResource() {
589
+ return this.currentActiveResource ? this.markersModel.getResourceMarkers(this.currentActiveResource) : null;
590
+ }
591
+ updateRangeHighlights() {
592
+ this.rangeHighlightDecorations.removeHighlightRange();
593
+ if (this.widget.getHTMLElement() === document.activeElement) {
594
+ this.highlightCurrentSelectedMarkerRange();
595
+ }
596
+ }
597
+ highlightCurrentSelectedMarkerRange() {
598
+ const selections = this.widget.getSelection() ?? [];
599
+ if (selections.length !== 1) {
600
+ return;
601
+ }
602
+ const selection = selections[0];
603
+ if (!(selection instanceof Marker)) {
604
+ return;
605
+ }
606
+ this.rangeHighlightDecorations.highlightRange(selection);
607
+ }
608
+ onContextMenu(e) {
609
+ const element = e.element;
610
+ if (!element) {
611
+ return;
612
+ }
613
+ e.browserEvent.preventDefault();
614
+ e.browserEvent.stopPropagation();
615
+ this.contextMenuService.showContextMenu({
616
+ getAnchor: () => e.anchor,
617
+ menuId: MenuId.ProblemsPanelContext,
618
+ contextKeyService: this.widget.contextKeyService,
619
+ getActions: () => this.getMenuActions(element),
620
+ getActionViewItem: (action) => {
621
+ const keybinding = this.keybindingService.lookupKeybinding(action.id);
622
+ if (keybinding) {
623
+ return ( new ActionViewItem(action, action, { label: true, keybinding: keybinding.getLabel() }));
624
+ }
625
+ return undefined;
626
+ },
627
+ onHide: (wasCancelled) => {
628
+ if (wasCancelled) {
629
+ this.widget.domFocus();
630
+ }
631
+ }
632
+ });
633
+ }
634
+ getMenuActions(element) {
635
+ const result = [];
636
+ if (element instanceof Marker) {
637
+ const viewModel = this.markersViewModel.getViewModel(element);
638
+ if (viewModel) {
639
+ const quickFixActions = viewModel.quickFixAction.quickFixes;
640
+ if (quickFixActions.length) {
641
+ result.push(...quickFixActions);
642
+ result.push(( new Separator()));
643
+ }
644
+ }
645
+ }
646
+ return result;
647
+ }
648
+ getFocusElement() {
649
+ return this.widget.getFocus()[0] ?? undefined;
650
+ }
651
+ getFocusedSelectedElements() {
652
+ const focus = this.getFocusElement();
653
+ if (!focus) {
654
+ return null;
655
+ }
656
+ const selection = this.widget.getSelection();
657
+ if (selection.includes(focus)) {
658
+ const result = [];
659
+ for (const selected of selection) {
660
+ if (selected) {
661
+ result.push(selected);
662
+ }
663
+ }
664
+ return result;
665
+ }
666
+ else {
667
+ return [focus];
668
+ }
669
+ }
670
+ getAllResourceMarkers() {
671
+ return this.markersModel.resourceMarkers;
672
+ }
673
+ getFilterStats() {
674
+ if (!this.cachedFilterStats) {
675
+ this.cachedFilterStats = {
676
+ total: this.markersModel.total,
677
+ filtered: this.widget?.getVisibleItemCount() ?? 0
678
+ };
679
+ }
680
+ return this.cachedFilterStats;
681
+ }
682
+ toggleVisibility(hide) {
683
+ this.widget.toggleVisibility(hide);
684
+ this.layoutBodyContent();
685
+ }
686
+ saveState() {
687
+ this.panelState['filter'] = this.filterWidget.getFilterText();
688
+ this.panelState['filterHistory'] = this.filters.filterHistory;
689
+ this.panelState['showErrors'] = this.filters.showErrors;
690
+ this.panelState['showWarnings'] = this.filters.showWarnings;
691
+ this.panelState['showInfos'] = this.filters.showInfos;
692
+ this.panelState['useFilesExclude'] = this.filters.excludedFiles;
693
+ this.panelState['activeFile'] = this.filters.activeFile;
694
+ this.panelState['multiline'] = this.markersViewModel.multiline;
695
+ this.panelState['viewMode'] = this.markersViewModel.viewMode;
696
+ super.saveState();
697
+ }
698
+ dispose() {
699
+ super.dispose();
700
+ }
701
+ };
702
+ MarkersView = ( __decorate([
703
+ ( __param(1, IInstantiationService)),
704
+ ( __param(2, IViewDescriptorService)),
705
+ ( __param(3, IEditorService)),
706
+ ( __param(4, IConfigurationService)),
707
+ ( __param(5, ITelemetryService)),
708
+ ( __param(6, IMarkerService)),
709
+ ( __param(7, IContextKeyService)),
710
+ ( __param(8, IWorkspaceContextService)),
711
+ ( __param(9, IContextMenuService)),
712
+ ( __param(10, IUriIdentityService)),
713
+ ( __param(11, IKeybindingService)),
714
+ ( __param(12, IStorageService)),
715
+ ( __param(13, IOpenerService)),
716
+ ( __param(14, IThemeService))
717
+ ], MarkersView));
718
+ let MarkersTree = class MarkersTree extends WorkbenchObjectTree {
719
+ constructor(user, container, delegate, renderers, options, instantiationService, contextKeyService, listService, themeService, configurationService) {
720
+ super(user, container, delegate, renderers, options, instantiationService, contextKeyService, listService, configurationService);
721
+ this.container = container;
722
+ this.visibilityContextKey = MarkersContextKeys.MarkersTreeVisibilityContextKey.bindTo(contextKeyService);
723
+ }
724
+ collapseMarkers() {
725
+ this.collapseAll();
726
+ this.setSelection([]);
727
+ this.setFocus([]);
728
+ this.getHTMLElement().focus();
729
+ this.focusFirst();
730
+ }
731
+ filterMarkers() {
732
+ this.refilter();
733
+ }
734
+ getVisibleItemCount() {
735
+ let filtered = 0;
736
+ const root = this.getNode();
737
+ for (const resourceMarkerNode of root.children) {
738
+ for (const markerNode of resourceMarkerNode.children) {
739
+ if (resourceMarkerNode.visible && markerNode.visible) {
740
+ filtered++;
741
+ }
742
+ }
743
+ }
744
+ return filtered;
745
+ }
746
+ isVisible() {
747
+ return !this.container.classList.contains('hidden');
748
+ }
749
+ toggleVisibility(hide) {
750
+ this.visibilityContextKey.set(!hide);
751
+ this.container.classList.toggle('hidden', hide);
752
+ }
753
+ reset(resourceMarkers) {
754
+ this.setChildren(null, ( Iterable.map(
755
+ resourceMarkers,
756
+ m => ({ element: m, children: createResourceMarkersIterator(m) })
757
+ )));
758
+ }
759
+ revealMarkers(activeResource, focus, lastSelectedRelativeTop) {
760
+ if (activeResource) {
761
+ if (this.hasElement(activeResource)) {
762
+ if (!this.isCollapsed(activeResource) && this.hasSelectedMarkerFor(activeResource)) {
763
+ this.reveal(this.getSelection()[0], lastSelectedRelativeTop);
764
+ if (focus) {
765
+ this.setFocus(this.getSelection());
766
+ }
767
+ }
768
+ else {
769
+ this.expand(activeResource);
770
+ this.reveal(activeResource, 0);
771
+ if (focus) {
772
+ this.setFocus([activeResource]);
773
+ this.setSelection([activeResource]);
774
+ }
775
+ }
776
+ }
777
+ }
778
+ else if (focus) {
779
+ this.setSelection([]);
780
+ this.focusFirst();
781
+ }
782
+ }
783
+ setAriaLabel(label) {
784
+ this.ariaLabel = label;
785
+ }
786
+ setMarkerSelection(selection, focus) {
787
+ if (this.isVisible()) {
788
+ if (selection && selection.length > 0) {
789
+ this.setSelection(( selection.map(m => this.findMarkerNode(m))));
790
+ if (focus && focus.length > 0) {
791
+ this.setFocus(( focus.map(f => this.findMarkerNode(f))));
792
+ }
793
+ else {
794
+ this.setFocus([this.findMarkerNode(selection[0])]);
795
+ }
796
+ this.reveal(this.findMarkerNode(selection[0]));
797
+ }
798
+ else if (this.getSelection().length === 0) {
799
+ const firstVisibleElement = this.firstVisibleElement;
800
+ const marker = firstVisibleElement ?
801
+ firstVisibleElement instanceof ResourceMarkers ? firstVisibleElement.markers[0] :
802
+ firstVisibleElement instanceof Marker ? firstVisibleElement : undefined
803
+ : undefined;
804
+ if (marker) {
805
+ this.setSelection([marker]);
806
+ this.setFocus([marker]);
807
+ this.reveal(marker);
808
+ }
809
+ }
810
+ }
811
+ }
812
+ update(resourceMarkers) {
813
+ for (const resourceMarker of resourceMarkers) {
814
+ this.setChildren(resourceMarker, createResourceMarkersIterator(resourceMarker));
815
+ this.rerender(resourceMarker);
816
+ }
817
+ }
818
+ updateMarker(marker) {
819
+ this.rerender(marker);
820
+ }
821
+ findMarkerNode(marker) {
822
+ for (const resourceNode of this.getNode().children) {
823
+ for (const markerNode of resourceNode.children) {
824
+ if (markerNode.element instanceof Marker && markerNode.element.marker === marker.marker) {
825
+ return markerNode.element;
826
+ }
827
+ }
828
+ }
829
+ return null;
830
+ }
831
+ hasSelectedMarkerFor(resource) {
832
+ const selectedElement = this.getSelection();
833
+ if (selectedElement && selectedElement.length > 0) {
834
+ if (selectedElement[0] instanceof Marker) {
835
+ if (( resource.has(selectedElement[0].marker.resource))) {
836
+ return true;
837
+ }
838
+ }
839
+ }
840
+ return false;
841
+ }
842
+ dispose() {
843
+ super.dispose();
844
+ }
845
+ layout(height, width) {
846
+ this.container.style.height = `${height}px`;
847
+ super.layout(height, width);
848
+ }
849
+ };
850
+ MarkersTree = ( __decorate([
851
+ ( __param(5, IInstantiationService)),
852
+ ( __param(6, IContextKeyService)),
853
+ ( __param(7, IListService)),
854
+ ( __param(8, IThemeService)),
855
+ ( __param(9, IConfigurationService))
856
+ ], MarkersTree));
857
+ export { MarkersView };