@codingame/monaco-vscode-api 2.1.4 → 2.2.0-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 (190) hide show
  1. package/README.md +2 -0
  2. package/contributions.js +1 -0
  3. package/extensions.d.ts +6 -3
  4. package/extensions.js +18 -7
  5. package/lifecycle.js +11 -3
  6. package/missing-services.js +55 -10
  7. package/monaco.js +7 -3
  8. package/package.json +8 -8
  9. package/service-override/tools/views.d.ts +98 -0
  10. package/service-override/tools/views.js +249 -0
  11. package/services.d.ts +4 -2
  12. package/services.js +11 -9
  13. package/vscode/src/vs/base/browser/deviceAccess.js +60 -0
  14. package/vscode/src/vs/base/browser/dom.js +18 -1
  15. package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +178 -0
  16. package/vscode/src/vs/base/browser/ui/grid/grid.js +492 -0
  17. package/vscode/src/vs/base/browser/ui/grid/gridview.css.js +4 -0
  18. package/vscode/src/vs/base/browser/ui/grid/gridview.d.ts +1 -0
  19. package/vscode/src/vs/base/browser/ui/grid/gridview.js +1109 -0
  20. package/vscode/src/vs/base/browser/ui/sash/sash.js +9 -1
  21. package/vscode/src/vs/base/browser/ui/splitview/splitview.d.ts +348 -1
  22. package/vscode/src/vs/base/common/async.js +46 -2
  23. package/vscode/src/vs/base/common/codicons.d.ts +579 -0
  24. package/vscode/src/vs/base/common/event.js +11 -2
  25. package/vscode/src/vs/base/common/keybindingParser.js +87 -0
  26. package/vscode/src/vs/base/common/network.js +1 -2
  27. package/vscode/src/vs/base/common/observableInternal/utils.js +1 -1
  28. package/vscode/src/vs/base/common/platform.js +2 -1
  29. package/vscode/src/vs/base/common/scrollable.d.ts +28 -0
  30. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/colors.js +17 -0
  31. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/diffEditorItemTemplate.js +214 -0
  32. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorViewModel.js +84 -0
  33. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorWidget.js +54 -0
  34. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorWidgetImpl.js +324 -0
  35. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/objectPool.js +46 -0
  36. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/style.css.js +4 -0
  37. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/utils.js +11 -0
  38. package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.js +61 -1
  39. package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +10 -0
  40. package/vscode/src/vs/platform/log/browser/log.js +24 -0
  41. package/vscode/src/vs/platform/product/common/product.js +1 -2
  42. package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +772 -0
  43. package/vscode/src/vs/platform/userDataSync/common/userDataSyncStoreService.js +551 -0
  44. package/vscode/src/vs/platform/webview/common/mimeTypes.js +22 -0
  45. package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +62 -0
  46. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +788 -0
  47. package/vscode/src/vs/workbench/browser/actions/listCommands.js +763 -0
  48. package/vscode/src/vs/workbench/browser/layout.d.ts +26 -0
  49. package/vscode/src/vs/workbench/browser/media/style.css.js +1 -1
  50. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +610 -0
  51. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +4 -0
  52. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css.js +4 -0
  53. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +148 -0
  54. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +4 -0
  55. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +603 -0
  56. package/vscode/src/vs/workbench/browser/parts/compositePart.js +333 -0
  57. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +221 -0
  58. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +1406 -0
  59. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +184 -0
  60. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +509 -0
  61. package/vscode/src/vs/workbench/browser/parts/editor/editorPane.d.ts +112 -0
  62. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +1018 -0
  63. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +389 -0
  64. package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +4 -0
  65. package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +4 -0
  66. package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +4 -0
  67. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsActions.css.js +4 -0
  68. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsCenter.css.js +4 -0
  69. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsList.css.js +4 -0
  70. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsToasts.css.js +4 -0
  71. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +213 -0
  72. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +73 -0
  73. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +307 -0
  74. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +226 -0
  75. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +218 -0
  76. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +433 -0
  77. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +436 -0
  78. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +643 -0
  79. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +377 -0
  80. package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +66 -0
  81. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +144 -0
  82. package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +4 -0
  83. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +220 -0
  84. package/vscode/src/vs/workbench/browser/window.js +239 -5
  85. package/vscode/src/vs/workbench/common/configuration.js +11 -1
  86. package/vscode/src/vs/workbench/common/theme.js +3 -3
  87. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +298 -0
  88. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +363 -0
  89. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +133 -0
  90. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +4 -0
  91. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +90 -0
  92. package/vscode/src/vs/workbench/contrib/comments/browser/commentMenus.js +43 -0
  93. package/vscode/src/vs/workbench/contrib/comments/browser/commentService.js +317 -2
  94. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadRangeDecorator.js +107 -0
  95. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +395 -0
  96. package/vscode/src/vs/workbench/contrib/comments/browser/comments.js +3 -0
  97. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +1277 -0
  98. package/vscode/src/vs/workbench/contrib/comments/browser/commentsFilterOptions.js +17 -0
  99. package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +123 -0
  100. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +342 -0
  101. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +451 -0
  102. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +176 -0
  103. package/vscode/src/vs/workbench/contrib/comments/browser/media/panel.css.js +4 -0
  104. package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +35 -0
  105. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +16 -0
  106. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +143 -0
  107. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +212 -0
  108. package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +4 -0
  109. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +76 -0
  110. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +61 -0
  111. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +117 -0
  112. package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.js +62 -0
  113. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +5 -0
  114. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +77 -0
  115. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +72 -0
  116. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +254 -0
  117. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +97 -0
  118. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +442 -0
  119. package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +430 -0
  120. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +784 -0
  121. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +487 -0
  122. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +521 -0
  123. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +150 -0
  124. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +61 -0
  125. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveDocumentService.js +25 -1
  126. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +178 -0
  127. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveHistoryService.js +49 -0
  128. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +408 -0
  129. package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +4 -0
  130. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +145 -0
  131. package/vscode/src/vs/workbench/contrib/mappedEdits/common/mappedEdits.contribution.js +22 -0
  132. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +691 -0
  133. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +238 -0
  134. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +76 -0
  135. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +40 -0
  136. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +69 -0
  137. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +346 -0
  138. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +96 -0
  139. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +144 -0
  140. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +103 -0
  141. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +399 -0
  142. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +195 -0
  143. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/fixedZoneWidget.js +39 -0
  144. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +126 -0
  145. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +4 -0
  146. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +611 -0
  147. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +156 -0
  148. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +262 -0
  149. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +171 -0
  150. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +41 -0
  151. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +317 -0
  152. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +56 -0
  153. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +315 -0
  154. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +193 -0
  155. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +2 -1
  156. package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +37 -0
  157. package/vscode/src/vs/workbench/contrib/sash/browser/sash.js +39 -0
  158. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +138 -2
  159. package/vscode/src/vs/workbench/contrib/tags/browser/workspaceTagsService.js +12 -0
  160. package/vscode/src/vs/workbench/contrib/tags/common/workspaceTags.js +3 -0
  161. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +4 -0
  162. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +281 -0
  163. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +358 -0
  164. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +131 -0
  165. package/vscode/src/vs/workbench/contrib/update/common/update.js +2 -0
  166. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +288 -0
  167. package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +94 -0
  168. package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +86 -0
  169. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +77 -0
  170. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +646 -0
  171. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +63 -0
  172. package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +57 -0
  173. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +140 -0
  174. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +119 -0
  175. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +67 -0
  176. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +233 -0
  177. package/vscode/src/vs/workbench/services/activity/browser/activityService.js +143 -0
  178. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +0 -3
  179. package/vscode/src/vs/workbench/services/driver/browser/driver.js +184 -0
  180. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +668 -0
  181. package/vscode/src/vs/workbench/services/history/browser/historyService.js +1482 -0
  182. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +17 -1
  183. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.js +8 -1
  184. package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +4 -0
  185. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +521 -0
  186. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +102 -0
  187. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +296 -0
  188. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +99 -0
  189. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +711 -0
  190. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +596 -0
@@ -34,4 +34,20 @@ const positionsByString = {
34
34
  function positionFromString(str) {
35
35
  return positionsByString[str];
36
36
  }
37
- export { IWorkbenchLayoutService, Parts, Position, positionFromString, positionToString };
37
+ function panelOpensMaximizedSettingToString(setting) {
38
+ switch (setting) {
39
+ case 0 : return 'always';
40
+ case 1 : return 'never';
41
+ case 2 : return 'preserve';
42
+ default: return 'preserve';
43
+ }
44
+ }
45
+ const panelOpensMaximizedByString = {
46
+ [panelOpensMaximizedSettingToString(0 )]: 0 ,
47
+ [panelOpensMaximizedSettingToString(1 )]: 1 ,
48
+ [panelOpensMaximizedSettingToString(2 )]: 2
49
+ };
50
+ function panelOpensMaximizedFromString(str) {
51
+ return panelOpensMaximizedByString[str];
52
+ }
53
+ export { IWorkbenchLayoutService, Parts, Position, panelOpensMaximizedFromString, positionFromString, positionToString };
@@ -1,5 +1,12 @@
1
1
  import { createDecorator } from '../../../../platform/instantiation/common/instantiation.js';
2
2
  const ILifecycleService = ( createDecorator('lifecycleService'));
3
+ function StartupKindToString(startupKind) {
4
+ switch (startupKind) {
5
+ case 1 : return 'NewWindow';
6
+ case 3 : return 'ReloadedWindow';
7
+ case 4 : return 'ReopenedWindow';
8
+ }
9
+ }
3
10
  function LifecyclePhaseToString(phase) {
4
11
  switch (phase) {
5
12
  case 1 : return 'Starting';
@@ -8,4 +15,4 @@ function LifecyclePhaseToString(phase) {
8
15
  case 4 : return 'Eventually';
9
16
  }
10
17
  }
11
- export { ILifecycleService, LifecyclePhaseToString };
18
+ export { ILifecycleService, LifecyclePhaseToString, StartupKindToString };
@@ -0,0 +1,4 @@
1
+ import n from '../../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
2
+ var css = ".monaco-workbench .progress-badge>.badge-content:before{background-color:currentColor;background-repeat:no-repeat;bottom:0;content:\"\";height:14px;left:0;margin:auto;mask:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMiAyIDE0IDE0Ij48cGF0aCBmaWxsPSIjZmZmIiBkPSJNOSAxNmMtMy44NiAwLTctMy4xNC03LTdzMy4xNC03IDctN2MzLjg1OSAwIDcgMy4xNDEgNyA3cy0zLjE0MSA3LTcgN3pNOSAzLjRDNS45MTIgMy40IDMuNCA1LjkxMyAzLjQgOXMyLjUxMiA1LjYgNS42IDUuNiA1LjYtMi41MTIgNS42LTUuNlMxMi4wODggMy40IDkgMy40em0zLjg2IDcuMUw5LjcgOC42MDRWNC44SDguM3Y0LjU5NmwzLjg0IDIuMzA1LjcyLTEuMjAxeiIvPjwvc3ZnPg==\") no-repeat;-webkit-mask:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMiAyIDE0IDE0Ij48cGF0aCBmaWxsPSIjZmZmIiBkPSJNOSAxNmMtMy44NiAwLTctMy4xNC03LTdzMy4xNC03IDctN2MzLjg1OSAwIDcgMy4xNDEgNyA3cy0zLjE0MSA3LTcgN3pNOSAzLjRDNS45MTIgMy40IDMuNCA1LjkxMyAzLjQgOXMyLjUxMiA1LjYgNS42IDUuNiA1LjYtMi41MTIgNS42LTUuNlMxMi4wODggMy40IDkgMy40em0zLjg2IDcuMUw5LjcgOC42MDRWNC44SDguM3Y0LjU5NmwzLjg0IDIuMzA1LjcyLTEuMjAxeiIvPjwvc3ZnPg==\") no-repeat;position:absolute;right:0;top:0;width:14px}";
3
+ n(css,{});
4
+ export { css, css as default };
@@ -0,0 +1,521 @@
1
+ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import './media/progressService.css.js';
3
+ import { localizeWithPath } from '../../../../nls.js';
4
+ import { Disposable, dispose, DisposableStore, toDisposable } from '../../../../base/common/lifecycle.js';
5
+ import { Progress } from '../../../../platform/progress/common/progress.js';
6
+ import { IStatusbarService } from '../../statusbar/browser/statusbar.js';
7
+ import { timeout, RunOnceScheduler, DeferredPromise } from '../../../../base/common/async.js';
8
+ import { ProgressBadge, IActivityService } from '../../activity/common/activity.js';
9
+ import { NotificationPriority, NotificationsFilter, isNotificationSource, INotificationService, Severity } from '../../../../platform/notification/common/notification.js';
10
+ import { Action } from '../../../../base/common/actions.js';
11
+ import { Emitter, Event } from '../../../../base/common/event.js';
12
+ import { ILayoutService } from '../../../../platform/layout/browser/layoutService.js';
13
+ import { Dialog } from '../../../../base/browser/ui/dialog/dialog.js';
14
+ import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.js';
15
+ import { EventHelper } from '../../../../base/browser/dom.js';
16
+ import { parseLinkedText } from '../../../../base/common/linkedText.js';
17
+ import { IViewDescriptorService } from '../../../common/views.js';
18
+ import { IViewsService } from '../../views/common/viewsService.js';
19
+ import { IPaneCompositePartService } from '../../panecomposite/browser/panecomposite.js';
20
+ import { stripIcons } from '../../../../base/common/iconLabels.js';
21
+ import { defaultButtonStyles, defaultCheckboxStyles, defaultInputBoxStyles, defaultDialogStyles } from '../../../../platform/theme/browser/defaultStyles.js';
22
+ let ProgressService = class ProgressService extends Disposable {
23
+ constructor(activityService, paneCompositeService, viewDescriptorService, viewsService, notificationService, statusbarService, layoutService, keybindingService) {
24
+ super();
25
+ this.activityService = activityService;
26
+ this.paneCompositeService = paneCompositeService;
27
+ this.viewDescriptorService = viewDescriptorService;
28
+ this.viewsService = viewsService;
29
+ this.notificationService = notificationService;
30
+ this.statusbarService = statusbarService;
31
+ this.layoutService = layoutService;
32
+ this.keybindingService = keybindingService;
33
+ this.windowProgressStack = [];
34
+ this.windowProgressStatusEntry = undefined;
35
+ }
36
+ async withProgress(options, task, onDidCancel) {
37
+ const { location } = options;
38
+ const handleStringLocation = (location) => {
39
+ const viewContainer = this.viewDescriptorService.getViewContainerById(location);
40
+ if (viewContainer) {
41
+ const viewContainerLocation = this.viewDescriptorService.getViewContainerLocation(viewContainer);
42
+ if (viewContainerLocation !== null) {
43
+ return this.withPaneCompositeProgress(location, viewContainerLocation, task, { ...options, location });
44
+ }
45
+ }
46
+ if (this.viewDescriptorService.getViewDescriptorById(location) !== null) {
47
+ return this.withViewProgress(location, task, { ...options, location });
48
+ }
49
+ throw new Error(`Bad progress location: ${location}`);
50
+ };
51
+ if (typeof location === 'string') {
52
+ return handleStringLocation(location);
53
+ }
54
+ switch (location) {
55
+ case 15 : {
56
+ let priority = options.priority;
57
+ if (priority !== NotificationPriority.URGENT) {
58
+ if (this.notificationService.getFilter() === NotificationsFilter.ERROR) {
59
+ priority = NotificationPriority.SILENT;
60
+ }
61
+ else if (isNotificationSource(options.source) && this.notificationService.getFilter(options.source) === NotificationsFilter.ERROR) {
62
+ priority = NotificationPriority.SILENT;
63
+ }
64
+ }
65
+ return this.withNotificationProgress({ ...options, location, priority }, task, onDidCancel);
66
+ }
67
+ case 10 : {
68
+ const type = options.type;
69
+ if (options.command) {
70
+ return this.withWindowProgress({ ...options, location, type }, task);
71
+ }
72
+ return this.withNotificationProgress({ delay: 150 , ...options, priority: NotificationPriority.SILENT, location: 15 , type }, task, onDidCancel);
73
+ }
74
+ case 1 :
75
+ return this.withPaneCompositeProgress('workbench.view.explorer', 0 , task, { ...options, location });
76
+ case 3 :
77
+ return handleStringLocation('workbench.scm');
78
+ case 5 :
79
+ return this.withPaneCompositeProgress('workbench.view.extensions', 0 , task, { ...options, location });
80
+ case 20 :
81
+ return this.withDialogProgress(options, task, onDidCancel);
82
+ default:
83
+ throw new Error(`Bad progress location: ${location}`);
84
+ }
85
+ }
86
+ withWindowProgress(options, callback) {
87
+ const task = [options, ( new Progress(() => this.updateWindowProgress()))];
88
+ const promise = callback(task[1]);
89
+ let delayHandle = setTimeout(() => {
90
+ delayHandle = undefined;
91
+ this.windowProgressStack.unshift(task);
92
+ this.updateWindowProgress();
93
+ Promise.all([
94
+ timeout(150),
95
+ promise
96
+ ]).finally(() => {
97
+ const idx = this.windowProgressStack.indexOf(task);
98
+ this.windowProgressStack.splice(idx, 1);
99
+ this.updateWindowProgress();
100
+ });
101
+ }, 150);
102
+ return promise.finally(() => clearTimeout(delayHandle));
103
+ }
104
+ updateWindowProgress(idx = 0) {
105
+ if (idx < this.windowProgressStack.length) {
106
+ const [options, progress] = this.windowProgressStack[idx];
107
+ const progressTitle = options.title;
108
+ const progressMessage = progress.value && progress.value.message;
109
+ const progressCommand = options.command;
110
+ let text;
111
+ let title;
112
+ const source = options.source && typeof options.source !== 'string' ? options.source.label : options.source;
113
+ if (progressTitle && progressMessage) {
114
+ text = ( localizeWithPath(
115
+ 'vs/workbench/services/progress/browser/progressService',
116
+ 'progress.text2',
117
+ "{0}: {1}",
118
+ progressTitle,
119
+ progressMessage
120
+ ));
121
+ title = source ? ( localizeWithPath(
122
+ 'vs/workbench/services/progress/browser/progressService',
123
+ 'progress.title3',
124
+ "[{0}] {1}: {2}",
125
+ source,
126
+ progressTitle,
127
+ progressMessage
128
+ )) : text;
129
+ }
130
+ else if (progressTitle) {
131
+ text = progressTitle;
132
+ title = source ? ( localizeWithPath(
133
+ 'vs/workbench/services/progress/browser/progressService',
134
+ 'progress.title2',
135
+ "[{0}]: {1}",
136
+ source,
137
+ progressTitle
138
+ )) : text;
139
+ }
140
+ else if (progressMessage) {
141
+ text = progressMessage;
142
+ title = source ? ( localizeWithPath(
143
+ 'vs/workbench/services/progress/browser/progressService',
144
+ 'progress.title2',
145
+ "[{0}]: {1}",
146
+ source,
147
+ progressMessage
148
+ )) : text;
149
+ }
150
+ else {
151
+ this.updateWindowProgress(idx + 1);
152
+ return;
153
+ }
154
+ const statusEntryProperties = {
155
+ name: ( localizeWithPath(
156
+ 'vs/workbench/services/progress/browser/progressService',
157
+ 'status.progress',
158
+ "Progress Message"
159
+ )),
160
+ text,
161
+ showProgress: options.type || true,
162
+ ariaLabel: text,
163
+ tooltip: title,
164
+ command: progressCommand
165
+ };
166
+ if (this.windowProgressStatusEntry) {
167
+ this.windowProgressStatusEntry.update(statusEntryProperties);
168
+ }
169
+ else {
170
+ this.windowProgressStatusEntry = this.statusbarService.addEntry(statusEntryProperties, 'status.progress', 0 );
171
+ }
172
+ }
173
+ else {
174
+ this.windowProgressStatusEntry?.dispose();
175
+ this.windowProgressStatusEntry = undefined;
176
+ }
177
+ }
178
+ withNotificationProgress(options, callback, onDidCancel) {
179
+ const progressStateModel = new (class extends Disposable {
180
+ get step() { return this._step; }
181
+ get done() { return this._done; }
182
+ constructor() {
183
+ super();
184
+ this._onDidReport = this._register(( new Emitter()));
185
+ this.onDidReport = this._onDidReport.event;
186
+ this._onWillDispose = this._register(( new Emitter()));
187
+ this.onWillDispose = this._onWillDispose.event;
188
+ this._step = undefined;
189
+ this._done = false;
190
+ this.promise = callback(this);
191
+ this.promise.finally(() => {
192
+ this.dispose();
193
+ });
194
+ }
195
+ report(step) {
196
+ this._step = step;
197
+ this._onDidReport.fire(step);
198
+ }
199
+ cancel(choice) {
200
+ onDidCancel?.(choice);
201
+ this.dispose();
202
+ }
203
+ dispose() {
204
+ this._done = true;
205
+ this._onWillDispose.fire();
206
+ super.dispose();
207
+ }
208
+ });
209
+ const createWindowProgress = () => {
210
+ const promise = ( new DeferredPromise());
211
+ this.withWindowProgress({
212
+ location: 10 ,
213
+ title: options.title ? ( parseLinkedText(options.title).toString()) : undefined,
214
+ command: 'notifications.showList',
215
+ type: options.type
216
+ }, progress => {
217
+ function reportProgress(step) {
218
+ if (step.message) {
219
+ progress.report({
220
+ message: ( parseLinkedText(step.message).toString())
221
+ });
222
+ }
223
+ }
224
+ if (progressStateModel.step) {
225
+ reportProgress(progressStateModel.step);
226
+ }
227
+ const onDidReportListener = progressStateModel.onDidReport(step => reportProgress(step));
228
+ promise.p.finally(() => onDidReportListener.dispose());
229
+ Event.once(progressStateModel.onWillDispose)(() => promise.complete());
230
+ return promise.p;
231
+ });
232
+ return toDisposable(() => promise.complete());
233
+ };
234
+ const createNotification = (message, priority, increment) => {
235
+ const notificationDisposables = ( new DisposableStore());
236
+ const primaryActions = options.primaryActions ? Array.from(options.primaryActions) : [];
237
+ const secondaryActions = options.secondaryActions ? Array.from(options.secondaryActions) : [];
238
+ if (options.buttons) {
239
+ options.buttons.forEach((button, index) => {
240
+ const buttonAction = new (class extends Action {
241
+ constructor() {
242
+ super(`progress.button.${button}`, button, undefined, true);
243
+ }
244
+ async run() {
245
+ progressStateModel.cancel(index);
246
+ }
247
+ });
248
+ notificationDisposables.add(buttonAction);
249
+ primaryActions.push(buttonAction);
250
+ });
251
+ }
252
+ if (options.cancellable) {
253
+ const cancelAction = new (class extends Action {
254
+ constructor() {
255
+ super('progress.cancel', ( localizeWithPath(
256
+ 'vs/workbench/services/progress/browser/progressService',
257
+ 'cancel',
258
+ "Cancel"
259
+ )), undefined, true);
260
+ }
261
+ async run() {
262
+ progressStateModel.cancel();
263
+ }
264
+ });
265
+ notificationDisposables.add(cancelAction);
266
+ primaryActions.push(cancelAction);
267
+ }
268
+ const notification = this.notificationService.notify({
269
+ severity: Severity.Info,
270
+ message: stripIcons(message),
271
+ source: options.source,
272
+ actions: { primary: primaryActions, secondary: secondaryActions },
273
+ progress: typeof increment === 'number' && increment >= 0 ? { total: 100, worked: increment } : { infinite: true },
274
+ priority
275
+ });
276
+ let windowProgressDisposable = undefined;
277
+ const onVisibilityChange = (visible) => {
278
+ dispose(windowProgressDisposable);
279
+ if (!visible && !progressStateModel.done) {
280
+ windowProgressDisposable = createWindowProgress();
281
+ }
282
+ };
283
+ notificationDisposables.add(notification.onDidChangeVisibility(onVisibilityChange));
284
+ if (priority === NotificationPriority.SILENT) {
285
+ onVisibilityChange(false);
286
+ }
287
+ Event.once(notification.onDidClose)(() => notificationDisposables.dispose());
288
+ return notification;
289
+ };
290
+ const updateProgress = (notification, increment) => {
291
+ if (typeof increment === 'number' && increment >= 0) {
292
+ notification.progress.total(100);
293
+ notification.progress.worked(increment);
294
+ }
295
+ else {
296
+ notification.progress.infinite();
297
+ }
298
+ };
299
+ let notificationHandle;
300
+ let notificationTimeout;
301
+ let titleAndMessage;
302
+ const updateNotification = (step) => {
303
+ if (step?.message && options.title) {
304
+ titleAndMessage = `${options.title}: ${step.message}`;
305
+ }
306
+ else {
307
+ titleAndMessage = options.title || step?.message;
308
+ }
309
+ if (!notificationHandle && titleAndMessage) {
310
+ if (typeof options.delay === 'number' && options.delay > 0) {
311
+ if (typeof notificationTimeout !== 'number') {
312
+ notificationTimeout = setTimeout(() => notificationHandle = createNotification(titleAndMessage, options.priority, step?.increment), options.delay);
313
+ }
314
+ }
315
+ else {
316
+ notificationHandle = createNotification(titleAndMessage, options.priority, step?.increment);
317
+ }
318
+ }
319
+ if (notificationHandle) {
320
+ if (titleAndMessage) {
321
+ notificationHandle.updateMessage(titleAndMessage);
322
+ }
323
+ if (typeof step?.increment === 'number') {
324
+ updateProgress(notificationHandle, step.increment);
325
+ }
326
+ }
327
+ };
328
+ updateNotification(progressStateModel.step);
329
+ const listener = progressStateModel.onDidReport(step => updateNotification(step));
330
+ Event.once(progressStateModel.onWillDispose)(() => listener.dispose());
331
+ (async () => {
332
+ try {
333
+ if (typeof options.delay === 'number' && options.delay > 0) {
334
+ await progressStateModel.promise;
335
+ }
336
+ else {
337
+ await Promise.all([timeout(800), progressStateModel.promise]);
338
+ }
339
+ }
340
+ finally {
341
+ clearTimeout(notificationTimeout);
342
+ notificationHandle?.close();
343
+ }
344
+ })();
345
+ return progressStateModel.promise;
346
+ }
347
+ withPaneCompositeProgress(paneCompositeId, viewContainerLocation, task, options) {
348
+ const progressIndicator = this.paneCompositeService.getProgressIndicator(paneCompositeId, viewContainerLocation);
349
+ const promise = progressIndicator ? this.withCompositeProgress(progressIndicator, task, options) : task({ report: () => { } });
350
+ if (viewContainerLocation === 0 ) {
351
+ this.showOnActivityBar(paneCompositeId, options, promise);
352
+ }
353
+ return promise;
354
+ }
355
+ withViewProgress(viewId, task, options) {
356
+ const progressIndicator = this.viewsService.getViewProgressIndicator(viewId);
357
+ const promise = progressIndicator ? this.withCompositeProgress(progressIndicator, task, options) : task({ report: () => { } });
358
+ const location = this.viewDescriptorService.getViewLocationById(viewId);
359
+ if (location !== 0 ) {
360
+ return promise;
361
+ }
362
+ const viewletId = this.viewDescriptorService.getViewContainerByViewId(viewId)?.id;
363
+ if (viewletId === undefined) {
364
+ return promise;
365
+ }
366
+ this.showOnActivityBar(viewletId, options, promise);
367
+ return promise;
368
+ }
369
+ showOnActivityBar(viewletId, options, promise) {
370
+ let activityProgress;
371
+ let delayHandle = setTimeout(() => {
372
+ delayHandle = undefined;
373
+ const handle = this.activityService.showViewContainerActivity(viewletId, { badge: ( new ProgressBadge(() => '')), priority: 100 });
374
+ const startTimeVisible = Date.now();
375
+ const minTimeVisible = 300;
376
+ activityProgress = {
377
+ dispose() {
378
+ const d = Date.now() - startTimeVisible;
379
+ if (d < minTimeVisible) {
380
+ setTimeout(() => handle.dispose(), minTimeVisible - d);
381
+ }
382
+ else {
383
+ handle.dispose();
384
+ }
385
+ }
386
+ };
387
+ }, options.delay || 300);
388
+ promise.finally(() => {
389
+ clearTimeout(delayHandle);
390
+ dispose(activityProgress);
391
+ });
392
+ }
393
+ withCompositeProgress(progressIndicator, task, options) {
394
+ let discreteProgressRunner = undefined;
395
+ function updateProgress(stepOrTotal) {
396
+ let total = undefined;
397
+ let increment = undefined;
398
+ if (typeof stepOrTotal !== 'undefined') {
399
+ if (typeof stepOrTotal === 'number') {
400
+ total = stepOrTotal;
401
+ }
402
+ else if (typeof stepOrTotal.increment === 'number') {
403
+ total = stepOrTotal.total ?? 100;
404
+ increment = stepOrTotal.increment;
405
+ }
406
+ }
407
+ if (typeof total === 'number') {
408
+ if (!discreteProgressRunner) {
409
+ discreteProgressRunner = progressIndicator.show(total, options.delay);
410
+ promise.catch(() => undefined ).finally(() => discreteProgressRunner?.done());
411
+ }
412
+ if (typeof increment === 'number') {
413
+ discreteProgressRunner.worked(increment);
414
+ }
415
+ }
416
+ else {
417
+ discreteProgressRunner?.done();
418
+ progressIndicator.showWhile(promise, options.delay);
419
+ }
420
+ return discreteProgressRunner;
421
+ }
422
+ const promise = task({
423
+ report: progress => {
424
+ updateProgress(progress);
425
+ }
426
+ });
427
+ updateProgress(options.total);
428
+ return promise;
429
+ }
430
+ withDialogProgress(options, task, onDidCancel) {
431
+ const disposables = ( new DisposableStore());
432
+ const allowableCommands = [
433
+ 'workbench.action.quit',
434
+ 'workbench.action.reloadWindow',
435
+ 'copy',
436
+ 'cut',
437
+ 'editor.action.clipboardCopyAction',
438
+ 'editor.action.clipboardCutAction'
439
+ ];
440
+ let dialog;
441
+ const createDialog = (message) => {
442
+ const buttons = options.buttons || [];
443
+ if (!options.sticky) {
444
+ buttons.push(options.cancellable ? ( localizeWithPath(
445
+ 'vs/workbench/services/progress/browser/progressService',
446
+ 'cancel',
447
+ "Cancel"
448
+ )) : ( localizeWithPath(
449
+ 'vs/workbench/services/progress/browser/progressService',
450
+ 'dismiss',
451
+ "Dismiss"
452
+ )));
453
+ }
454
+ dialog = ( new Dialog(this.layoutService.activeContainer, message, buttons, {
455
+ type: 'pending',
456
+ detail: options.detail,
457
+ cancelId: buttons.length - 1,
458
+ disableCloseAction: options.sticky,
459
+ disableDefaultAction: options.sticky,
460
+ keyEventProcessor: (event) => {
461
+ const resolved = this.keybindingService.softDispatch(event, this.layoutService.activeContainer);
462
+ if (resolved.kind === 2 && resolved.commandId) {
463
+ if (!allowableCommands.includes(resolved.commandId)) {
464
+ EventHelper.stop(event, true);
465
+ }
466
+ }
467
+ },
468
+ buttonStyles: defaultButtonStyles,
469
+ checkboxStyles: defaultCheckboxStyles,
470
+ inputBoxStyles: defaultInputBoxStyles,
471
+ dialogStyles: defaultDialogStyles
472
+ }));
473
+ disposables.add(dialog);
474
+ dialog.show().then(dialogResult => {
475
+ onDidCancel?.(dialogResult.button);
476
+ dispose(dialog);
477
+ });
478
+ return dialog;
479
+ };
480
+ let delay = options.delay ?? 0;
481
+ let latestMessage = undefined;
482
+ const scheduler = disposables.add(( new RunOnceScheduler(() => {
483
+ delay = 0;
484
+ if (latestMessage && !dialog) {
485
+ dialog = createDialog(latestMessage);
486
+ }
487
+ else if (latestMessage) {
488
+ dialog.updateMessage(latestMessage);
489
+ }
490
+ }, 0)));
491
+ const updateDialog = function (message) {
492
+ latestMessage = message;
493
+ if (!scheduler.isScheduled()) {
494
+ scheduler.schedule(delay);
495
+ }
496
+ };
497
+ const promise = task({
498
+ report: progress => {
499
+ updateDialog(progress.message);
500
+ }
501
+ });
502
+ promise.finally(() => {
503
+ dispose(disposables);
504
+ });
505
+ if (options.title) {
506
+ updateDialog(options.title);
507
+ }
508
+ return promise;
509
+ }
510
+ };
511
+ ProgressService = ( __decorate([
512
+ ( __param(0, IActivityService)),
513
+ ( __param(1, IPaneCompositePartService)),
514
+ ( __param(2, IViewDescriptorService)),
515
+ ( __param(3, IViewsService)),
516
+ ( __param(4, INotificationService)),
517
+ ( __param(5, IStatusbarService)),
518
+ ( __param(6, ILayoutService)),
519
+ ( __param(7, IKeybindingService))
520
+ ], ProgressService));
521
+ export { ProgressService };
@@ -0,0 +1,102 @@
1
+ import { localizeWithPath } from '../../../../nls.js';
2
+ import { ExtensionsRegistry } from '../../extensions/common/extensionsRegistry.js';
3
+ import { languagesExtPoint } from '../../language/common/languageService.js';
4
+ const grammarsExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
5
+ extensionPoint: 'grammars',
6
+ deps: [languagesExtPoint],
7
+ jsonSchema: {
8
+ description: ( localizeWithPath(
9
+ 'vs/workbench/services/textMate/common/TMGrammars',
10
+ 'vscode.extension.contributes.grammars',
11
+ 'Contributes textmate tokenizers.'
12
+ )),
13
+ type: 'array',
14
+ defaultSnippets: [{ body: [{ language: '${1:id}', scopeName: 'source.${2:id}', path: './syntaxes/${3:id}.tmLanguage.' }] }],
15
+ items: {
16
+ type: 'object',
17
+ defaultSnippets: [{ body: { language: '${1:id}', scopeName: 'source.${2:id}', path: './syntaxes/${3:id}.tmLanguage.' } }],
18
+ properties: {
19
+ language: {
20
+ description: ( localizeWithPath(
21
+ 'vs/workbench/services/textMate/common/TMGrammars',
22
+ 'vscode.extension.contributes.grammars.language',
23
+ 'Language identifier for which this syntax is contributed to.'
24
+ )),
25
+ type: 'string'
26
+ },
27
+ scopeName: {
28
+ description: ( localizeWithPath(
29
+ 'vs/workbench/services/textMate/common/TMGrammars',
30
+ 'vscode.extension.contributes.grammars.scopeName',
31
+ 'Textmate scope name used by the tmLanguage file.'
32
+ )),
33
+ type: 'string'
34
+ },
35
+ path: {
36
+ description: ( localizeWithPath(
37
+ 'vs/workbench/services/textMate/common/TMGrammars',
38
+ 'vscode.extension.contributes.grammars.path',
39
+ 'Path of the tmLanguage file. The path is relative to the extension folder and typically starts with \'./syntaxes/\'.'
40
+ )),
41
+ type: 'string'
42
+ },
43
+ embeddedLanguages: {
44
+ description: ( localizeWithPath(
45
+ 'vs/workbench/services/textMate/common/TMGrammars',
46
+ 'vscode.extension.contributes.grammars.embeddedLanguages',
47
+ 'A map of scope name to language id if this grammar contains embedded languages.'
48
+ )),
49
+ type: 'object'
50
+ },
51
+ tokenTypes: {
52
+ description: ( localizeWithPath(
53
+ 'vs/workbench/services/textMate/common/TMGrammars',
54
+ 'vscode.extension.contributes.grammars.tokenTypes',
55
+ 'A map of scope name to token types.'
56
+ )),
57
+ type: 'object',
58
+ additionalProperties: {
59
+ enum: ['string', 'comment', 'other']
60
+ }
61
+ },
62
+ injectTo: {
63
+ description: ( localizeWithPath(
64
+ 'vs/workbench/services/textMate/common/TMGrammars',
65
+ 'vscode.extension.contributes.grammars.injectTo',
66
+ 'List of language scope names to which this grammar is injected to.'
67
+ )),
68
+ type: 'array',
69
+ items: {
70
+ type: 'string'
71
+ }
72
+ },
73
+ balancedBracketScopes: {
74
+ description: ( localizeWithPath(
75
+ 'vs/workbench/services/textMate/common/TMGrammars',
76
+ 'vscode.extension.contributes.grammars.balancedBracketScopes',
77
+ 'Defines which scope names contain balanced brackets.'
78
+ )),
79
+ type: 'array',
80
+ items: {
81
+ type: 'string'
82
+ },
83
+ default: ['*'],
84
+ },
85
+ unbalancedBracketScopes: {
86
+ description: ( localizeWithPath(
87
+ 'vs/workbench/services/textMate/common/TMGrammars',
88
+ 'vscode.extension.contributes.grammars.unbalancedBracketScopes',
89
+ 'Defines which scope names do not contain balanced brackets.'
90
+ )),
91
+ type: 'array',
92
+ items: {
93
+ type: 'string'
94
+ },
95
+ default: [],
96
+ },
97
+ },
98
+ required: ['scopeName', 'path']
99
+ }
100
+ }
101
+ }));
102
+ export { grammarsExtPoint };