@codingame/monaco-vscode-api 2.1.4 → 2.2.0-next.2

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 (194) hide show
  1. package/README.md +24 -0
  2. package/contributions.js +1 -0
  3. package/extensions.d.ts +7 -3
  4. package/extensions.js +28 -8
  5. package/lifecycle.js +11 -3
  6. package/localExtensionHost.js +13 -10
  7. package/missing-services.js +55 -10
  8. package/monaco.js +7 -3
  9. package/package.json +8 -8
  10. package/service-override/tools/views.d.ts +98 -0
  11. package/service-override/tools/views.js +249 -0
  12. package/services.d.ts +4 -2
  13. package/services.js +11 -9
  14. package/vscode/src/vs/base/browser/deviceAccess.js +60 -0
  15. package/vscode/src/vs/base/browser/dom.js +18 -1
  16. package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +178 -0
  17. package/vscode/src/vs/base/browser/ui/grid/grid.js +492 -0
  18. package/vscode/src/vs/base/browser/ui/grid/gridview.css.js +4 -0
  19. package/vscode/src/vs/base/browser/ui/grid/gridview.d.ts +1 -0
  20. package/vscode/src/vs/base/browser/ui/grid/gridview.js +1109 -0
  21. package/vscode/src/vs/base/browser/ui/sash/sash.js +9 -1
  22. package/vscode/src/vs/base/browser/ui/splitview/splitview.d.ts +348 -1
  23. package/vscode/src/vs/base/common/async.js +46 -2
  24. package/vscode/src/vs/base/common/codicons.d.ts +579 -0
  25. package/vscode/src/vs/base/common/event.js +11 -2
  26. package/vscode/src/vs/base/common/keybindingParser.js +87 -0
  27. package/vscode/src/vs/base/common/network.js +1 -2
  28. package/vscode/src/vs/base/common/observableInternal/utils.js +1 -1
  29. package/vscode/src/vs/base/common/platform.js +2 -1
  30. package/vscode/src/vs/base/common/scrollable.d.ts +28 -0
  31. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/colors.js +17 -0
  32. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/diffEditorItemTemplate.js +214 -0
  33. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorViewModel.js +84 -0
  34. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorWidget.js +54 -0
  35. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorWidgetImpl.js +324 -0
  36. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/objectPool.js +46 -0
  37. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/style.css.js +4 -0
  38. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/utils.js +11 -0
  39. package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.js +61 -1
  40. package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +10 -0
  41. package/vscode/src/vs/platform/log/browser/log.js +24 -0
  42. package/vscode/src/vs/platform/product/common/product.js +1 -2
  43. package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +772 -0
  44. package/vscode/src/vs/platform/userDataSync/common/userDataSyncStoreService.js +551 -0
  45. package/vscode/src/vs/platform/webview/common/mimeTypes.js +22 -0
  46. package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +62 -0
  47. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +788 -0
  48. package/vscode/src/vs/workbench/browser/actions/listCommands.js +763 -0
  49. package/vscode/src/vs/workbench/browser/layout.d.ts +26 -0
  50. package/vscode/src/vs/workbench/browser/media/style.css.js +1 -1
  51. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +610 -0
  52. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +4 -0
  53. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css.js +4 -0
  54. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +148 -0
  55. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +4 -0
  56. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +603 -0
  57. package/vscode/src/vs/workbench/browser/parts/compositePart.js +333 -0
  58. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +221 -0
  59. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +1406 -0
  60. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +184 -0
  61. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +509 -0
  62. package/vscode/src/vs/workbench/browser/parts/editor/editorPane.d.ts +112 -0
  63. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +1018 -0
  64. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +389 -0
  65. package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +4 -0
  66. package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +4 -0
  67. package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +4 -0
  68. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsActions.css.js +4 -0
  69. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsCenter.css.js +4 -0
  70. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsList.css.js +4 -0
  71. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsToasts.css.js +4 -0
  72. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +213 -0
  73. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +73 -0
  74. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +307 -0
  75. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +226 -0
  76. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +218 -0
  77. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +433 -0
  78. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +436 -0
  79. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +643 -0
  80. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +377 -0
  81. package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +66 -0
  82. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +144 -0
  83. package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +4 -0
  84. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +220 -0
  85. package/vscode/src/vs/workbench/browser/window.js +239 -5
  86. package/vscode/src/vs/workbench/common/configuration.js +11 -1
  87. package/vscode/src/vs/workbench/common/theme.js +3 -3
  88. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +298 -0
  89. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +363 -0
  90. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +133 -0
  91. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +4 -0
  92. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +90 -0
  93. package/vscode/src/vs/workbench/contrib/comments/browser/commentMenus.js +43 -0
  94. package/vscode/src/vs/workbench/contrib/comments/browser/commentService.js +317 -2
  95. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadRangeDecorator.js +107 -0
  96. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +395 -0
  97. package/vscode/src/vs/workbench/contrib/comments/browser/comments.js +3 -0
  98. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +1277 -0
  99. package/vscode/src/vs/workbench/contrib/comments/browser/commentsFilterOptions.js +17 -0
  100. package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +123 -0
  101. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +342 -0
  102. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +451 -0
  103. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +176 -0
  104. package/vscode/src/vs/workbench/contrib/comments/browser/media/panel.css.js +4 -0
  105. package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +35 -0
  106. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +16 -0
  107. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +143 -0
  108. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +212 -0
  109. package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +4 -0
  110. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +76 -0
  111. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +61 -0
  112. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +117 -0
  113. package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.js +62 -0
  114. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +5 -0
  115. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +77 -0
  116. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +72 -0
  117. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +254 -0
  118. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +97 -0
  119. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +442 -0
  120. package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +430 -0
  121. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +10 -10
  122. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +784 -0
  123. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +487 -0
  124. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +521 -0
  125. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +150 -0
  126. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +61 -0
  127. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveDocumentService.js +25 -1
  128. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +178 -0
  129. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveHistoryService.js +49 -0
  130. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +408 -0
  131. package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +4 -0
  132. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +145 -0
  133. package/vscode/src/vs/workbench/contrib/mappedEdits/common/mappedEdits.contribution.js +22 -0
  134. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +691 -0
  135. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +238 -0
  136. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +76 -0
  137. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +40 -0
  138. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +69 -0
  139. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +346 -0
  140. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +96 -0
  141. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +144 -0
  142. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +103 -0
  143. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +399 -0
  144. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +195 -0
  145. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/fixedZoneWidget.js +39 -0
  146. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +126 -0
  147. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +4 -0
  148. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +611 -0
  149. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +156 -0
  150. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +262 -0
  151. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +171 -0
  152. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +41 -0
  153. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +317 -0
  154. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +56 -0
  155. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +315 -0
  156. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +193 -0
  157. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +2 -1
  158. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +2 -2
  159. package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +37 -0
  160. package/vscode/src/vs/workbench/contrib/sash/browser/sash.js +39 -0
  161. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +138 -2
  162. package/vscode/src/vs/workbench/contrib/tags/browser/workspaceTagsService.js +12 -0
  163. package/vscode/src/vs/workbench/contrib/tags/common/workspaceTags.js +3 -0
  164. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +4 -0
  165. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +281 -0
  166. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +358 -0
  167. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +131 -0
  168. package/vscode/src/vs/workbench/contrib/update/common/update.js +2 -0
  169. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +288 -0
  170. package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +94 -0
  171. package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +86 -0
  172. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +77 -0
  173. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +646 -0
  174. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +63 -0
  175. package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +57 -0
  176. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +140 -0
  177. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +119 -0
  178. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +67 -0
  179. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +233 -0
  180. package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +16 -0
  181. package/vscode/src/vs/workbench/services/activity/browser/activityService.js +143 -0
  182. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +0 -3
  183. package/vscode/src/vs/workbench/services/driver/browser/driver.js +184 -0
  184. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +668 -0
  185. package/vscode/src/vs/workbench/services/history/browser/historyService.js +1482 -0
  186. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +17 -1
  187. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.js +8 -1
  188. package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +4 -0
  189. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +521 -0
  190. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +102 -0
  191. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +296 -0
  192. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +99 -0
  193. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +711 -0
  194. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +596 -0
@@ -0,0 +1,133 @@
1
+ import { CallHierarchyModel } from '../common/callHierarchy.js';
2
+ import { CancellationToken } from '../../../../base/common/cancellation.js';
3
+ import { createMatches } from '../../../../base/common/filters.js';
4
+ import { IconLabel } from '../../../../base/browser/ui/iconLabel/iconLabel.js';
5
+ import { SymbolKinds } from '../../../../editor/common/languages.js';
6
+ import { compare } from '../../../../base/common/strings.js';
7
+ import { Range } from '../../../../editor/common/core/range.js';
8
+ import { localizeWithPath } from '../../../../nls.js';
9
+ import { ThemeIcon } from '../../../../base/common/themables.js';
10
+ class Call {
11
+ constructor(item, locations, model, parent) {
12
+ this.item = item;
13
+ this.locations = locations;
14
+ this.model = model;
15
+ this.parent = parent;
16
+ }
17
+ static compare(a, b) {
18
+ let res = compare(( a.item.uri.toString()), ( b.item.uri.toString()));
19
+ if (res === 0) {
20
+ res = Range.compareRangesUsingStarts(a.item.range, b.item.range);
21
+ }
22
+ return res;
23
+ }
24
+ }
25
+ class DataSource {
26
+ constructor(getDirection) {
27
+ this.getDirection = getDirection;
28
+ }
29
+ hasChildren() {
30
+ return true;
31
+ }
32
+ async getChildren(element) {
33
+ if (element instanceof CallHierarchyModel) {
34
+ return ( element.roots.map(root => ( new Call(root, undefined, element, undefined))));
35
+ }
36
+ const { model, item } = element;
37
+ if (this.getDirection() === "outgoingCalls" ) {
38
+ return ( (await model.resolveOutgoingCalls(item, CancellationToken.None)).map(call => {
39
+ return ( new Call(call.to, ( call.fromRanges.map(range => ({ range, uri: item.uri }))), model, element));
40
+ }));
41
+ }
42
+ else {
43
+ return ( (await model.resolveIncomingCalls(item, CancellationToken.None)).map(call => {
44
+ return ( new Call(call.from, ( call.fromRanges.map(range => ({ range, uri: call.from.uri }))), model, element));
45
+ }));
46
+ }
47
+ }
48
+ }
49
+ class Sorter {
50
+ compare(element, otherElement) {
51
+ return Call.compare(element, otherElement);
52
+ }
53
+ }
54
+ class IdentityProvider {
55
+ constructor(getDirection) {
56
+ this.getDirection = getDirection;
57
+ }
58
+ getId(element) {
59
+ let res = this.getDirection() + JSON.stringify(element.item.uri) + JSON.stringify(element.item.range);
60
+ if (element.parent) {
61
+ res += this.getId(element.parent);
62
+ }
63
+ return res;
64
+ }
65
+ }
66
+ class CallRenderingTemplate {
67
+ constructor(icon, label) {
68
+ this.icon = icon;
69
+ this.label = label;
70
+ }
71
+ }
72
+ class CallRenderer {
73
+ constructor() {
74
+ this.templateId = CallRenderer.id;
75
+ }
76
+ static { this.id = 'CallRenderer'; }
77
+ renderTemplate(container) {
78
+ container.classList.add('callhierarchy-element');
79
+ const icon = document.createElement('div');
80
+ container.appendChild(icon);
81
+ const label = ( new IconLabel(container, { supportHighlights: true }));
82
+ return ( new CallRenderingTemplate(icon, label));
83
+ }
84
+ renderElement(node, _index, template) {
85
+ const { element, filterData } = node;
86
+ const deprecated = element.item.tags?.includes(1 );
87
+ template.icon.className = '';
88
+ template.icon.classList.add('inline', ...ThemeIcon.asClassNameArray(SymbolKinds.toIcon(element.item.kind)));
89
+ template.label.setLabel(element.item.name, element.item.detail, { labelEscapeNewLines: true, matches: createMatches(filterData), strikethrough: deprecated });
90
+ }
91
+ disposeTemplate(template) {
92
+ template.label.dispose();
93
+ }
94
+ }
95
+ class VirtualDelegate {
96
+ getHeight(_element) {
97
+ return 22;
98
+ }
99
+ getTemplateId(_element) {
100
+ return CallRenderer.id;
101
+ }
102
+ }
103
+ class AccessibilityProvider {
104
+ constructor(getDirection) {
105
+ this.getDirection = getDirection;
106
+ }
107
+ getWidgetAriaLabel() {
108
+ return ( localizeWithPath(
109
+ 'vs/workbench/contrib/callHierarchy/browser/callHierarchyTree',
110
+ 'tree.aria',
111
+ "Call Hierarchy"
112
+ ));
113
+ }
114
+ getAriaLabel(element) {
115
+ if (this.getDirection() === "outgoingCalls" ) {
116
+ return ( localizeWithPath(
117
+ 'vs/workbench/contrib/callHierarchy/browser/callHierarchyTree',
118
+ 'from',
119
+ "calls from {0}",
120
+ element.item.name
121
+ ));
122
+ }
123
+ else {
124
+ return ( localizeWithPath(
125
+ 'vs/workbench/contrib/callHierarchy/browser/callHierarchyTree',
126
+ 'to',
127
+ "callers of {0}",
128
+ element.item.name
129
+ ));
130
+ }
131
+ }
132
+ }
133
+ export { AccessibilityProvider, Call, CallRenderer, DataSource, IdentityProvider, Sorter, VirtualDelegate };
@@ -0,0 +1,4 @@
1
+ import n from '../../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
2
+ var css = ".monaco-workbench .call-hierarchy .message,.monaco-workbench .call-hierarchy .results{display:none}.monaco-workbench .call-hierarchy[data-state=data] .results{display:inherit;height:100%}.monaco-workbench .call-hierarchy[data-state=message] .message{align-items:center;display:flex;height:100%;justify-content:center}.monaco-workbench .call-hierarchy .editor,.monaco-workbench .call-hierarchy .tree{height:100%}.monaco-editor .call-hierarchy .tree{background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-fileForeground)}.monaco-workbench .call-hierarchy .tree .callhierarchy-element{align-items:center;display:flex;flex:1;flex-flow:row nowrap}.monaco-workbench .call-hierarchy .tree .callhierarchy-element .monaco-icon-label{padding-left:4px}.monaco-editor .call-hierarchy .tree .monaco-list:focus .monaco-list-rows>.monaco-list-row.selected:not(.highlighted){background-color:var(--vscode-peekViewResult-selectionBackground);color:var(--vscode-peekViewResult-selectionForeground)!important}.monaco-editor .call-hierarchy .call-decoration{background-color:var(--vscode-peekViewEditor-matchHighlightBackground);border:2px solid var(--vscode-peekViewEditor-matchHighlightBorder);box-sizing:border-box}.monaco-editor .call-hierarchy .editor .monaco-editor .inputarea.ime-input,.monaco-editor .call-hierarchy .editor .monaco-editor .monaco-editor-background{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor .call-hierarchy .editor .monaco-editor .margin{background-color:var(--vscode-peekViewEditorGutter-background)}";
3
+ n(css,{});
4
+ export { css, css as default };
@@ -0,0 +1,90 @@
1
+ import { localizeWithPath } from '../../../../nls.js';
2
+ import { Color } from '../../../../base/common/color.js';
3
+ import { OverviewRulerLane } from '../../../../editor/common/model.js';
4
+ import { ModelDecorationOptions } from '../../../../editor/common/model/textModel.js';
5
+ import { registerColor, opaque, darken, editorForeground, editorBackground, listInactiveSelectionBackground } from '../../../../platform/theme/common/colorRegistry.js';
6
+ import { themeColorFromId } from '../../../../platform/theme/common/themeService.js';
7
+ import { CommentThreadState } from '../../../../editor/common/languages.js';
8
+ const overviewRulerCommentingRangeForeground = registerColor('editorGutter.commentRangeForeground', { dark: opaque(listInactiveSelectionBackground, editorBackground), light: ( darken(opaque(listInactiveSelectionBackground, editorBackground), .05)), hcDark: Color.white, hcLight: Color.black }, ( localizeWithPath(
9
+ 'vs/workbench/contrib/comments/browser/commentGlyphWidget',
10
+ 'editorGutterCommentRangeForeground',
11
+ 'Editor gutter decoration color for commenting ranges. This color should be opaque.'
12
+ )));
13
+ const overviewRulerCommentForeground = registerColor('editorOverviewRuler.commentForeground', { dark: overviewRulerCommentingRangeForeground, light: overviewRulerCommentingRangeForeground, hcDark: overviewRulerCommentingRangeForeground, hcLight: overviewRulerCommentingRangeForeground }, ( localizeWithPath(
14
+ 'vs/workbench/contrib/comments/browser/commentGlyphWidget',
15
+ 'editorOverviewRuler.commentForeground',
16
+ 'Editor overview ruler decoration color for resolved comments. This color should be opaque.'
17
+ )));
18
+ const overviewRulerCommentUnresolvedForeground = registerColor('editorOverviewRuler.commentUnresolvedForeground', { dark: overviewRulerCommentForeground, light: overviewRulerCommentForeground, hcDark: overviewRulerCommentForeground, hcLight: overviewRulerCommentForeground }, ( localizeWithPath(
19
+ 'vs/workbench/contrib/comments/browser/commentGlyphWidget',
20
+ 'editorOverviewRuler.commentUnresolvedForeground',
21
+ 'Editor overview ruler decoration color for unresolved comments. This color should be opaque.'
22
+ )));
23
+ const editorGutterCommentGlyphForeground = registerColor('editorGutter.commentGlyphForeground', { dark: editorForeground, light: editorForeground, hcDark: Color.black, hcLight: Color.white }, ( localizeWithPath(
24
+ 'vs/workbench/contrib/comments/browser/commentGlyphWidget',
25
+ 'editorGutterCommentGlyphForeground',
26
+ 'Editor gutter decoration color for commenting glyphs.'
27
+ )));
28
+ registerColor('editorGutter.commentUnresolvedGlyphForeground', { dark: editorGutterCommentGlyphForeground, light: editorGutterCommentGlyphForeground, hcDark: editorGutterCommentGlyphForeground, hcLight: editorGutterCommentGlyphForeground }, ( localizeWithPath(
29
+ 'vs/workbench/contrib/comments/browser/commentGlyphWidget',
30
+ 'editorGutterCommentUnresolvedGlyphForeground',
31
+ 'Editor gutter decoration color for commenting glyphs for unresolved comment threads.'
32
+ )));
33
+ class CommentGlyphWidget {
34
+ static { this.description = 'comment-glyph-widget'; }
35
+ constructor(editor, lineNumber) {
36
+ this._commentsOptions = this.createDecorationOptions();
37
+ this._editor = editor;
38
+ this._commentsDecorations = this._editor.createDecorationsCollection();
39
+ this.setLineNumber(lineNumber);
40
+ }
41
+ createDecorationOptions() {
42
+ const unresolved = this._threadState === CommentThreadState.Unresolved;
43
+ const decorationOptions = {
44
+ description: CommentGlyphWidget.description,
45
+ isWholeLine: true,
46
+ overviewRuler: {
47
+ color: themeColorFromId(unresolved ? overviewRulerCommentUnresolvedForeground : overviewRulerCommentForeground),
48
+ position: OverviewRulerLane.Center
49
+ },
50
+ collapseOnReplaceEdit: true,
51
+ linesDecorationsClassName: `comment-range-glyph comment-thread${unresolved ? '-unresolved' : ''}`
52
+ };
53
+ return ModelDecorationOptions.createDynamic(decorationOptions);
54
+ }
55
+ setThreadState(state) {
56
+ if (this._threadState !== state) {
57
+ this._threadState = state;
58
+ this._commentsOptions = this.createDecorationOptions();
59
+ this._updateDecorations();
60
+ }
61
+ }
62
+ _updateDecorations() {
63
+ const commentsDecorations = [{
64
+ range: {
65
+ startLineNumber: this._lineNumber, startColumn: 1,
66
+ endLineNumber: this._lineNumber, endColumn: 1
67
+ },
68
+ options: this._commentsOptions
69
+ }];
70
+ this._commentsDecorations.set(commentsDecorations);
71
+ }
72
+ setLineNumber(lineNumber) {
73
+ this._lineNumber = lineNumber;
74
+ this._updateDecorations();
75
+ }
76
+ getPosition() {
77
+ const range = (this._commentsDecorations.length > 0 ? this._commentsDecorations.getRange(0) : null);
78
+ return {
79
+ position: {
80
+ lineNumber: range ? range.endLineNumber : this._lineNumber,
81
+ column: 1
82
+ },
83
+ preference: [0 ]
84
+ };
85
+ }
86
+ dispose() {
87
+ this._commentsDecorations.clear();
88
+ }
89
+ }
90
+ export { CommentGlyphWidget, overviewRulerCommentingRangeForeground };
@@ -0,0 +1,43 @@
1
+ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import { MenuId, IMenuService } from '../../../../platform/actions/common/actions.js';
3
+ import { createAndFillInContextMenuActions } from '../../../../platform/actions/browser/menuEntryActionViewItem.js';
4
+ let CommentMenus = class CommentMenus {
5
+ constructor(menuService) {
6
+ this.menuService = menuService;
7
+ }
8
+ getCommentThreadTitleActions(contextKeyService) {
9
+ return this.getMenu(MenuId.CommentThreadTitle, contextKeyService);
10
+ }
11
+ getCommentThreadActions(contextKeyService) {
12
+ return this.getMenu(MenuId.CommentThreadActions, contextKeyService);
13
+ }
14
+ getCommentEditorActions(contextKeyService) {
15
+ return this.getMenu(MenuId.CommentEditorActions, contextKeyService);
16
+ }
17
+ getCommentThreadAdditionalActions(contextKeyService) {
18
+ return this.getMenu(MenuId.CommentThreadAdditionalActions, contextKeyService);
19
+ }
20
+ getCommentTitleActions(comment, contextKeyService) {
21
+ return this.getMenu(MenuId.CommentTitle, contextKeyService);
22
+ }
23
+ getCommentActions(comment, contextKeyService) {
24
+ return this.getMenu(MenuId.CommentActions, contextKeyService);
25
+ }
26
+ getCommentThreadTitleContextActions(contextKeyService) {
27
+ return this.getMenu(MenuId.CommentThreadTitleContext, contextKeyService);
28
+ }
29
+ getMenu(menuId, contextKeyService) {
30
+ const menu = this.menuService.createMenu(menuId, contextKeyService);
31
+ const primary = [];
32
+ const secondary = [];
33
+ const result = { primary, secondary };
34
+ createAndFillInContextMenuActions(menu, { shouldForwardArgs: true }, result, 'inline');
35
+ return menu;
36
+ }
37
+ dispose() {
38
+ }
39
+ };
40
+ CommentMenus = ( __decorate([
41
+ ( __param(0, IMenuService))
42
+ ], CommentMenus));
43
+ export { CommentMenus };
@@ -1,3 +1,318 @@
1
- import { createDecorator } from '../../../../platform/instantiation/common/instantiation.js';
1
+ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import { createDecorator, IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
3
+ import { Emitter, Event } from '../../../../base/common/event.js';
4
+ import { Disposable, DisposableStore } from '../../../../base/common/lifecycle.js';
5
+ import { Range } from '../../../../editor/common/core/range.js';
6
+ import { CancellationToken } from '../../../../base/common/cancellation.js';
7
+ import { CommentMenus } from './commentMenus.js';
8
+ import { IWorkbenchLayoutService } from '../../../services/layout/browser/layoutService.js';
9
+ import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
10
+ import { COMMENTS_SECTION } from '../common/commentsConfiguration.js';
11
+ import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
12
+ import { IStorageService } from '../../../../platform/storage/common/storage.js';
13
+ import { CommentContextKeys } from '../common/commentContextKeys.js';
14
+ import { ILogService } from '../../../../platform/log/common/log.js';
15
+ import { CommentsModel } from './commentsModel.js';
2
16
  const ICommentService = ( createDecorator('commentService'));
3
- export { ICommentService };
17
+ const CONTINUE_ON_COMMENTS = 'comments.continueOnComments';
18
+ let CommentService = class CommentService extends Disposable {
19
+ constructor(instantiationService, layoutService, configurationService, contextKeyService, storageService, logService) {
20
+ super();
21
+ this.instantiationService = instantiationService;
22
+ this.layoutService = layoutService;
23
+ this.configurationService = configurationService;
24
+ this.storageService = storageService;
25
+ this.logService = logService;
26
+ this._onDidSetDataProvider = this._register(( new Emitter()));
27
+ this.onDidSetDataProvider = this._onDidSetDataProvider.event;
28
+ this._onDidDeleteDataProvider = this._register(( new Emitter()));
29
+ this.onDidDeleteDataProvider = this._onDidDeleteDataProvider.event;
30
+ this._onDidSetResourceCommentInfos = this._register(( new Emitter()));
31
+ this.onDidSetResourceCommentInfos = this._onDidSetResourceCommentInfos.event;
32
+ this._onDidSetAllCommentThreads = this._register(( new Emitter()));
33
+ this.onDidSetAllCommentThreads = this._onDidSetAllCommentThreads.event;
34
+ this._onDidUpdateCommentThreads = this._register(( new Emitter()));
35
+ this.onDidUpdateCommentThreads = this._onDidUpdateCommentThreads.event;
36
+ this._onDidUpdateNotebookCommentThreads = this._register(( new Emitter()));
37
+ this.onDidUpdateNotebookCommentThreads = this._onDidUpdateNotebookCommentThreads.event;
38
+ this._onDidUpdateCommentingRanges = this._register(( new Emitter()));
39
+ this.onDidUpdateCommentingRanges = this._onDidUpdateCommentingRanges.event;
40
+ this._onDidChangeActiveCommentThread = this._register(( new Emitter()));
41
+ this.onDidChangeActiveCommentThread = this._onDidChangeActiveCommentThread.event;
42
+ this._onDidChangeCurrentCommentThread = this._register(( new Emitter()));
43
+ this.onDidChangeCurrentCommentThread = this._onDidChangeCurrentCommentThread.event;
44
+ this._onDidChangeCommentingEnabled = this._register(( new Emitter()));
45
+ this.onDidChangeCommentingEnabled = this._onDidChangeCommentingEnabled.event;
46
+ this._onDidChangeActiveCommentingRange = this._register(( new Emitter()));
47
+ this.onDidChangeActiveCommentingRange = this._onDidChangeActiveCommentingRange.event;
48
+ this._commentControls = ( new Map());
49
+ this._commentMenus = ( new Map());
50
+ this._isCommentingEnabled = true;
51
+ this._continueOnComments = ( new Map());
52
+ this._continueOnCommentProviders = ( new Set());
53
+ this._commentsModel = this._register(( new CommentsModel()));
54
+ this.commentsModel = this._commentsModel;
55
+ this._handleConfiguration();
56
+ this._handleZenMode();
57
+ this._workspaceHasCommenting = CommentContextKeys.WorkspaceHasCommenting.bindTo(contextKeyService);
58
+ const storageListener = this._register(( new DisposableStore()));
59
+ const storageEvent = Event.debounce(this.storageService.onDidChangeValue(1 , CONTINUE_ON_COMMENTS, storageListener), (last, event) => last?.external ? last : event, 500);
60
+ storageListener.add(storageEvent(v => {
61
+ if (!v.external) {
62
+ return;
63
+ }
64
+ const commentsToRestore = this.storageService.getObject(CONTINUE_ON_COMMENTS, 1 );
65
+ if (!commentsToRestore) {
66
+ return;
67
+ }
68
+ this.logService.debug(`Comments: URIs of continue on comments from storage ${( commentsToRestore.map(thread => ( thread.uri.toString()))).join(', ')}.`);
69
+ const changedOwners = this._addContinueOnComments(commentsToRestore, this._continueOnComments);
70
+ for (const owner of changedOwners) {
71
+ const control = this._commentControls.get(owner);
72
+ if (!control) {
73
+ continue;
74
+ }
75
+ const evt = {
76
+ owner,
77
+ ownerLabel: control.label,
78
+ pending: this._continueOnComments.get(owner) || [],
79
+ added: [],
80
+ removed: [],
81
+ changed: []
82
+ };
83
+ this.updateModelThreads(evt);
84
+ }
85
+ }));
86
+ this._register(storageService.onWillSaveState(() => {
87
+ const map = ( new Map());
88
+ for (const provider of this._continueOnCommentProviders) {
89
+ const pendingComments = provider.provideContinueOnComments();
90
+ this._addContinueOnComments(pendingComments, map);
91
+ }
92
+ this._saveContinueOnComments(map);
93
+ }));
94
+ }
95
+ _handleConfiguration() {
96
+ this._isCommentingEnabled = this._defaultCommentingEnablement;
97
+ this._register(this.configurationService.onDidChangeConfiguration(e => {
98
+ if (e.affectsConfiguration('comments.visible')) {
99
+ this.enableCommenting(this._defaultCommentingEnablement);
100
+ }
101
+ }));
102
+ }
103
+ _handleZenMode() {
104
+ let preZenModeValue = this._isCommentingEnabled;
105
+ this._register(this.layoutService.onDidChangeZenMode(e => {
106
+ if (e) {
107
+ preZenModeValue = this._isCommentingEnabled;
108
+ this.enableCommenting(false);
109
+ }
110
+ else {
111
+ this.enableCommenting(preZenModeValue);
112
+ }
113
+ }));
114
+ }
115
+ get _defaultCommentingEnablement() {
116
+ return !!this.configurationService.getValue(COMMENTS_SECTION)?.visible;
117
+ }
118
+ get isCommentingEnabled() {
119
+ return this._isCommentingEnabled;
120
+ }
121
+ enableCommenting(enable) {
122
+ if (enable !== this._isCommentingEnabled) {
123
+ this._isCommentingEnabled = enable;
124
+ this._onDidChangeCommentingEnabled.fire(enable);
125
+ }
126
+ }
127
+ setCurrentCommentThread(commentThread) {
128
+ this._onDidChangeCurrentCommentThread.fire(commentThread);
129
+ }
130
+ setActiveCommentThread(commentThread) {
131
+ this._onDidChangeActiveCommentThread.fire(commentThread);
132
+ }
133
+ setDocumentComments(resource, commentInfos) {
134
+ if (commentInfos.length) {
135
+ this._workspaceHasCommenting.set(true);
136
+ }
137
+ this._onDidSetResourceCommentInfos.fire({ resource, commentInfos });
138
+ }
139
+ setModelThreads(ownerId, ownerLabel, commentThreads) {
140
+ this._commentsModel.setCommentThreads(ownerId, ownerLabel, commentThreads);
141
+ this._onDidSetAllCommentThreads.fire({ ownerId, ownerLabel, commentThreads });
142
+ }
143
+ updateModelThreads(event) {
144
+ this._commentsModel.updateCommentThreads(event);
145
+ this._onDidUpdateCommentThreads.fire(event);
146
+ }
147
+ setWorkspaceComments(owner, commentsByResource) {
148
+ if (commentsByResource.length) {
149
+ this._workspaceHasCommenting.set(true);
150
+ }
151
+ const control = this._commentControls.get(owner);
152
+ if (control) {
153
+ this.setModelThreads(owner, control.label, commentsByResource);
154
+ }
155
+ }
156
+ removeWorkspaceComments(owner) {
157
+ const control = this._commentControls.get(owner);
158
+ if (control) {
159
+ this.setModelThreads(owner, control.label, []);
160
+ }
161
+ }
162
+ registerCommentController(owner, commentControl) {
163
+ this._commentControls.set(owner, commentControl);
164
+ this._onDidSetDataProvider.fire();
165
+ }
166
+ unregisterCommentController(owner) {
167
+ if (owner) {
168
+ this._commentControls.delete(owner);
169
+ }
170
+ else {
171
+ this._commentControls.clear();
172
+ }
173
+ this._commentsModel.deleteCommentsByOwner(owner);
174
+ this._onDidDeleteDataProvider.fire(owner);
175
+ }
176
+ getCommentController(owner) {
177
+ return this._commentControls.get(owner);
178
+ }
179
+ async createCommentThreadTemplate(owner, resource, range) {
180
+ const commentController = this._commentControls.get(owner);
181
+ if (!commentController) {
182
+ return;
183
+ }
184
+ return commentController.createCommentThreadTemplate(resource, range);
185
+ }
186
+ async updateCommentThreadTemplate(owner, threadHandle, range) {
187
+ const commentController = this._commentControls.get(owner);
188
+ if (!commentController) {
189
+ return;
190
+ }
191
+ await commentController.updateCommentThreadTemplate(threadHandle, range);
192
+ }
193
+ disposeCommentThread(owner, threadId) {
194
+ const controller = this.getCommentController(owner);
195
+ controller?.deleteCommentThreadMain(threadId);
196
+ }
197
+ getCommentMenus(owner) {
198
+ if (this._commentMenus.get(owner)) {
199
+ return this._commentMenus.get(owner);
200
+ }
201
+ const menu = this.instantiationService.createInstance(CommentMenus);
202
+ this._commentMenus.set(owner, menu);
203
+ return menu;
204
+ }
205
+ updateComments(ownerId, event) {
206
+ const control = this._commentControls.get(ownerId);
207
+ if (control) {
208
+ const evt = Object.assign({}, event, { owner: ownerId, ownerLabel: control.label });
209
+ this.updateModelThreads(evt);
210
+ }
211
+ }
212
+ updateNotebookComments(ownerId, event) {
213
+ const evt = Object.assign({}, event, { owner: ownerId });
214
+ this._onDidUpdateNotebookCommentThreads.fire(evt);
215
+ }
216
+ updateCommentingRanges(ownerId) {
217
+ this._workspaceHasCommenting.set(true);
218
+ this._onDidUpdateCommentingRanges.fire({ owner: ownerId });
219
+ }
220
+ async toggleReaction(owner, resource, thread, comment, reaction) {
221
+ const commentController = this._commentControls.get(owner);
222
+ if (commentController) {
223
+ return commentController.toggleReaction(resource, thread, comment, reaction, CancellationToken.None);
224
+ }
225
+ else {
226
+ throw new Error('Not supported');
227
+ }
228
+ }
229
+ hasReactionHandler(owner) {
230
+ const commentProvider = this._commentControls.get(owner);
231
+ if (commentProvider) {
232
+ return !!commentProvider.features.reactionHandler;
233
+ }
234
+ return false;
235
+ }
236
+ async getDocumentComments(resource) {
237
+ const commentControlResult = [];
238
+ for (const control of ( this._commentControls.values())) {
239
+ commentControlResult.push(control.getDocumentComments(resource, CancellationToken.None)
240
+ .then(documentComments => {
241
+ for (const documentCommentThread of documentComments.threads) {
242
+ if (documentCommentThread.comments?.length === 0 && documentCommentThread.range) {
243
+ this.removeContinueOnComment({ range: documentCommentThread.range, uri: resource, owner: documentComments.owner });
244
+ }
245
+ }
246
+ const pendingComments = this._continueOnComments.get(documentComments.owner);
247
+ documentComments.pendingCommentThreads = pendingComments?.filter(pendingComment => ( pendingComment.uri.toString()) === ( resource.toString()));
248
+ return documentComments;
249
+ })
250
+ .catch(_ => {
251
+ return null;
252
+ }));
253
+ }
254
+ return Promise.all(commentControlResult);
255
+ }
256
+ async getNotebookComments(resource) {
257
+ const commentControlResult = [];
258
+ this._commentControls.forEach(control => {
259
+ commentControlResult.push(control.getNotebookComments(resource, CancellationToken.None)
260
+ .catch(_ => {
261
+ return null;
262
+ }));
263
+ });
264
+ return Promise.all(commentControlResult);
265
+ }
266
+ registerContinueOnCommentProvider(provider) {
267
+ this._continueOnCommentProviders.add(provider);
268
+ return {
269
+ dispose: () => {
270
+ this._continueOnCommentProviders.delete(provider);
271
+ }
272
+ };
273
+ }
274
+ _saveContinueOnComments(map) {
275
+ const commentsToSave = [];
276
+ for (const pendingComments of ( map.values())) {
277
+ commentsToSave.push(...pendingComments);
278
+ }
279
+ this.logService.debug(`Comments: URIs of continue on comments to add to storage ${( commentsToSave.map(thread => ( thread.uri.toString()))).join(', ')}.`);
280
+ this.storageService.store(CONTINUE_ON_COMMENTS, commentsToSave, 1 , 0 );
281
+ }
282
+ removeContinueOnComment(pendingComment) {
283
+ const pendingComments = this._continueOnComments.get(pendingComment.owner);
284
+ if (pendingComments) {
285
+ const commentIndex = pendingComments.findIndex(comment => ( comment.uri.toString()) === ( pendingComment.uri.toString()) && Range.equalsRange(comment.range, pendingComment.range) && (pendingComment.isReply === undefined || comment.isReply === pendingComment.isReply));
286
+ if (commentIndex > -1) {
287
+ return pendingComments.splice(commentIndex, 1)[0];
288
+ }
289
+ }
290
+ return undefined;
291
+ }
292
+ _addContinueOnComments(pendingComments, map) {
293
+ const changedOwners = ( new Set());
294
+ for (const pendingComment of pendingComments) {
295
+ if (!( map.has(pendingComment.owner))) {
296
+ map.set(pendingComment.owner, [pendingComment]);
297
+ changedOwners.add(pendingComment.owner);
298
+ }
299
+ else {
300
+ const commentsForOwner = map.get(pendingComment.owner);
301
+ if (commentsForOwner.every(comment => (( comment.uri.toString()) !== ( pendingComment.uri.toString())) || !Range.equalsRange(comment.range, pendingComment.range))) {
302
+ commentsForOwner.push(pendingComment);
303
+ changedOwners.add(pendingComment.owner);
304
+ }
305
+ }
306
+ }
307
+ return changedOwners;
308
+ }
309
+ };
310
+ CommentService = ( __decorate([
311
+ ( __param(0, IInstantiationService)),
312
+ ( __param(1, IWorkbenchLayoutService)),
313
+ ( __param(2, IConfigurationService)),
314
+ ( __param(3, IContextKeyService)),
315
+ ( __param(4, IStorageService)),
316
+ ( __param(5, ILogService))
317
+ ], CommentService));
318
+ export { CommentService, ICommentService };