@codingame/monaco-vscode-api 2.1.3 → 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.
- package/README.md +10 -0
- package/contributions.js +1 -0
- package/extensions.d.ts +6 -3
- package/extensions.js +18 -7
- package/lifecycle.js +11 -3
- package/missing-services.js +55 -10
- package/monaco.js +7 -3
- package/package.json +8 -8
- package/service-override/tools/editor.js +3 -1
- package/service-override/tools/views.d.ts +98 -0
- package/service-override/tools/views.js +249 -0
- package/services.d.ts +4 -2
- package/services.js +11 -9
- package/vscode/src/vs/base/browser/deviceAccess.js +60 -0
- package/vscode/src/vs/base/browser/dom.js +18 -1
- package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +178 -0
- package/vscode/src/vs/base/browser/ui/grid/grid.js +492 -0
- package/vscode/src/vs/base/browser/ui/grid/gridview.css.js +4 -0
- package/vscode/src/vs/base/browser/ui/grid/gridview.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/grid/gridview.js +1109 -0
- package/vscode/src/vs/base/browser/ui/sash/sash.js +9 -1
- package/vscode/src/vs/base/browser/ui/splitview/splitview.d.ts +348 -1
- package/vscode/src/vs/base/common/async.js +46 -2
- package/vscode/src/vs/base/common/codicons.d.ts +579 -0
- package/vscode/src/vs/base/common/event.js +11 -2
- package/vscode/src/vs/base/common/keybindingParser.js +87 -0
- package/vscode/src/vs/base/common/network.js +1 -2
- package/vscode/src/vs/base/common/observableInternal/utils.js +1 -1
- package/vscode/src/vs/base/common/platform.js +2 -1
- package/vscode/src/vs/base/common/scrollable.d.ts +28 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/colors.js +17 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/diffEditorItemTemplate.js +214 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorViewModel.js +84 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorWidget.js +54 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorWidgetImpl.js +324 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/objectPool.js +46 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/style.css.js +4 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/utils.js +11 -0
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.js +61 -1
- package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +10 -0
- package/vscode/src/vs/platform/log/browser/log.js +24 -0
- package/vscode/src/vs/platform/product/common/product.js +1 -2
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +772 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncStoreService.js +551 -0
- package/vscode/src/vs/platform/webview/common/mimeTypes.js +22 -0
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +62 -0
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +788 -0
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +763 -0
- package/vscode/src/vs/workbench/browser/layout.d.ts +26 -0
- package/vscode/src/vs/workbench/browser/media/style.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +610 -0
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +148 -0
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +603 -0
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +333 -0
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +221 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +1406 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +184 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +509 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPane.d.ts +112 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +1018 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +389 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsActions.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsCenter.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsList.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsToasts.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +213 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +73 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +307 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +226 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +218 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +433 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +436 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +643 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +377 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +66 -0
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +144 -0
- package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +220 -0
- package/vscode/src/vs/workbench/browser/window.js +239 -5
- package/vscode/src/vs/workbench/common/configuration.js +11 -1
- package/vscode/src/vs/workbench/common/theme.js +3 -3
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +298 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +363 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +133 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +90 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentMenus.js +43 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentService.js +317 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadRangeDecorator.js +107 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +395 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.js +3 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +1277 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsFilterOptions.js +17 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +123 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +342 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +451 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +176 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/media/panel.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +35 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +16 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +143 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +212 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +76 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +61 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +117 -0
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.js +62 -0
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +5 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +77 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +72 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +254 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +97 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +442 -0
- package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +430 -0
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +784 -0
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +487 -0
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +521 -0
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +150 -0
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +61 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveDocumentService.js +25 -1
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +178 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveHistoryService.js +49 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +408 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +145 -0
- package/vscode/src/vs/workbench/contrib/mappedEdits/common/mappedEdits.contribution.js +22 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +691 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +238 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +76 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +40 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +69 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +346 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +96 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +144 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +103 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +399 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +195 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/fixedZoneWidget.js +39 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +126 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +611 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +156 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +262 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +171 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +41 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +317 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +56 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +315 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +193 -0
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +2 -1
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +37 -0
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.js +39 -0
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +138 -2
- package/vscode/src/vs/workbench/contrib/tags/browser/workspaceTagsService.js +12 -0
- package/vscode/src/vs/workbench/contrib/tags/common/workspaceTags.js +3 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +281 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +358 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +131 -0
- package/vscode/src/vs/workbench/contrib/update/common/update.js +2 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +288 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +94 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +86 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +77 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +646 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +63 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +57 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +140 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +119 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +67 -0
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +233 -0
- package/vscode/src/vs/workbench/services/activity/browser/activityService.js +143 -0
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +0 -3
- package/vscode/src/vs/workbench/services/driver/browser/driver.js +184 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +668 -0
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +1482 -0
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +17 -1
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.js +8 -1
- package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +4 -0
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +521 -0
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +102 -0
- package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +296 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +99 -0
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +711 -0
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +596 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Disposable, dispose } from '../../../../base/common/lifecycle.js';
|
|
2
|
+
import { CommentThreadCollapsibleState } from '../../../../editor/common/languages.js';
|
|
3
|
+
import { ModelDecorationOptions } from '../../../../editor/common/model/textModel.js';
|
|
4
|
+
class CommentThreadRangeDecoration {
|
|
5
|
+
get id() {
|
|
6
|
+
return this._decorationId;
|
|
7
|
+
}
|
|
8
|
+
set id(id) {
|
|
9
|
+
this._decorationId = id;
|
|
10
|
+
}
|
|
11
|
+
constructor(range, options) {
|
|
12
|
+
this.range = range;
|
|
13
|
+
this.options = options;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
class CommentThreadRangeDecorator extends Disposable {
|
|
17
|
+
static { this.description = 'comment-thread-range-decorator'; }
|
|
18
|
+
constructor(commentService) {
|
|
19
|
+
super();
|
|
20
|
+
this.decorationIds = [];
|
|
21
|
+
this.activeDecorationIds = [];
|
|
22
|
+
this.threadCollapseStateListeners = [];
|
|
23
|
+
const decorationOptions = {
|
|
24
|
+
description: CommentThreadRangeDecorator.description,
|
|
25
|
+
isWholeLine: false,
|
|
26
|
+
zIndex: 20,
|
|
27
|
+
className: 'comment-thread-range',
|
|
28
|
+
shouldFillLineOnLineBreak: true
|
|
29
|
+
};
|
|
30
|
+
this.decorationOptions = ModelDecorationOptions.createDynamic(decorationOptions);
|
|
31
|
+
const activeDecorationOptions = {
|
|
32
|
+
description: CommentThreadRangeDecorator.description,
|
|
33
|
+
isWholeLine: false,
|
|
34
|
+
zIndex: 20,
|
|
35
|
+
className: 'comment-thread-range-current',
|
|
36
|
+
shouldFillLineOnLineBreak: true
|
|
37
|
+
};
|
|
38
|
+
this.activeDecorationOptions = ModelDecorationOptions.createDynamic(activeDecorationOptions);
|
|
39
|
+
this._register(commentService.onDidChangeCurrentCommentThread(thread => {
|
|
40
|
+
this.updateCurrent(thread);
|
|
41
|
+
}));
|
|
42
|
+
this._register(commentService.onDidUpdateCommentThreads(() => {
|
|
43
|
+
this.updateCurrent(undefined);
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
updateCurrent(thread) {
|
|
47
|
+
if (!this.editor || (thread?.resource && (thread.resource?.toString() !== this.editor.getModel()?.uri.toString()))) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
this.currentThreadCollapseStateListener?.dispose();
|
|
51
|
+
const newDecoration = [];
|
|
52
|
+
if (thread) {
|
|
53
|
+
const range = thread.range;
|
|
54
|
+
if (range && !((range.startLineNumber === range.endLineNumber) && (range.startColumn === range.endColumn))) {
|
|
55
|
+
if (thread.collapsibleState === CommentThreadCollapsibleState.Expanded) {
|
|
56
|
+
this.currentThreadCollapseStateListener = thread.onDidChangeCollapsibleState(state => {
|
|
57
|
+
if (state === CommentThreadCollapsibleState.Collapsed) {
|
|
58
|
+
this.updateCurrent(undefined);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
newDecoration.push(( new CommentThreadRangeDecoration(range, this.activeDecorationOptions)));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
this.editor.changeDecorations((changeAccessor) => {
|
|
66
|
+
this.activeDecorationIds = changeAccessor.deltaDecorations(this.activeDecorationIds, newDecoration);
|
|
67
|
+
newDecoration.forEach((decoration, index) => decoration.id = this.decorationIds[index]);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
update(editor, commentInfos) {
|
|
71
|
+
const model = editor?.getModel();
|
|
72
|
+
if (!editor || !model) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
dispose(this.threadCollapseStateListeners);
|
|
76
|
+
this.editor = editor;
|
|
77
|
+
const commentThreadRangeDecorations = [];
|
|
78
|
+
for (const info of commentInfos) {
|
|
79
|
+
info.threads.forEach(thread => {
|
|
80
|
+
if (thread.isDisposed) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const range = thread.range;
|
|
84
|
+
if (!range || (range.startLineNumber === range.endLineNumber) && (range.startColumn === range.endColumn)) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
this.threadCollapseStateListeners.push(thread.onDidChangeCollapsibleState(() => {
|
|
88
|
+
this.update(editor, commentInfos);
|
|
89
|
+
}));
|
|
90
|
+
if (thread.collapsibleState === CommentThreadCollapsibleState.Collapsed) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
commentThreadRangeDecorations.push(( new CommentThreadRangeDecoration(range, this.decorationOptions)));
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
editor.changeDecorations((changeAccessor) => {
|
|
97
|
+
this.decorationIds = changeAccessor.deltaDecorations(this.decorationIds, commentThreadRangeDecorations);
|
|
98
|
+
commentThreadRangeDecorations.forEach((decoration, index) => decoration.id = this.decorationIds[index]);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
dispose() {
|
|
102
|
+
dispose(this.threadCollapseStateListeners);
|
|
103
|
+
this.currentThreadCollapseStateListener?.dispose();
|
|
104
|
+
super.dispose();
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
export { CommentThreadRangeDecorator };
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
+
import { Color } from '../../../../base/common/color.js';
|
|
3
|
+
import { Emitter } from '../../../../base/common/event.js';
|
|
4
|
+
import { DisposableStore } from '../../../../base/common/lifecycle.js';
|
|
5
|
+
import { Range } from '../../../../editor/common/core/range.js';
|
|
6
|
+
import { CommentThreadCollapsibleState } from '../../../../editor/common/languages.js';
|
|
7
|
+
import { ZoneWidget } from '../../../../editor/contrib/zoneWidget/browser/zoneWidget.js';
|
|
8
|
+
import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
|
|
9
|
+
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
10
|
+
import { IThemeService } from '../../../../platform/theme/common/themeService.js';
|
|
11
|
+
import { CommentGlyphWidget } from './commentGlyphWidget.js';
|
|
12
|
+
import { ICommentService } from './commentService.js';
|
|
13
|
+
import { EDITOR_FONT_DEFAULTS } from '../../../../editor/common/config/editorOptions.js';
|
|
14
|
+
import { ServiceCollection } from '../../../../platform/instantiation/common/serviceCollection.js';
|
|
15
|
+
import { CommentThreadWidget } from './commentThreadWidget.js';
|
|
16
|
+
import { commentThreadStateColorVar, commentThreadStateBackgroundColorVar, getCommentThreadStateBorderColor } from './commentColors.js';
|
|
17
|
+
import { peekViewBorder } from '../../../../editor/contrib/peekView/browser/peekView.js';
|
|
18
|
+
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
|
|
19
|
+
import { StableEditorScrollState } from '../../../../editor/browser/stableEditorScroll.js';
|
|
20
|
+
function getCommentThreadWidgetStateColor(thread, theme) {
|
|
21
|
+
return getCommentThreadStateBorderColor(thread, theme) ?? theme.getColor(peekViewBorder);
|
|
22
|
+
}
|
|
23
|
+
function parseMouseDownInfoFromEvent(e) {
|
|
24
|
+
const range = e.target.range;
|
|
25
|
+
if (!range) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
if (!e.event.leftButton) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
if (e.target.type !== 4 ) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
const data = e.target.detail;
|
|
35
|
+
const gutterOffsetX = data.offsetX - data.glyphMarginWidth - data.lineNumbersWidth - data.glyphMarginLeft;
|
|
36
|
+
if (gutterOffsetX > 20) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return { lineNumber: range.startLineNumber };
|
|
40
|
+
}
|
|
41
|
+
function isMouseUpEventDragFromMouseDown(mouseDownInfo, e) {
|
|
42
|
+
if (!mouseDownInfo) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
const { lineNumber } = mouseDownInfo;
|
|
46
|
+
const range = e.target.range;
|
|
47
|
+
if (!range) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return lineNumber;
|
|
51
|
+
}
|
|
52
|
+
let ReviewZoneWidget = class ReviewZoneWidget extends ZoneWidget {
|
|
53
|
+
get owner() {
|
|
54
|
+
return this._owner;
|
|
55
|
+
}
|
|
56
|
+
get commentThread() {
|
|
57
|
+
return this._commentThread;
|
|
58
|
+
}
|
|
59
|
+
get expanded() {
|
|
60
|
+
return this._isExpanded;
|
|
61
|
+
}
|
|
62
|
+
constructor(editor, _owner, _commentThread, _pendingComment, _pendingEdits, instantiationService, themeService, commentService, contextKeyService, configurationService) {
|
|
63
|
+
super(editor, { keepEditorSelection: true, isAccessible: true });
|
|
64
|
+
this._owner = _owner;
|
|
65
|
+
this._commentThread = _commentThread;
|
|
66
|
+
this._pendingComment = _pendingComment;
|
|
67
|
+
this._pendingEdits = _pendingEdits;
|
|
68
|
+
this.themeService = themeService;
|
|
69
|
+
this.commentService = commentService;
|
|
70
|
+
this.configurationService = configurationService;
|
|
71
|
+
this._onDidClose = ( new Emitter());
|
|
72
|
+
this._onDidCreateThread = ( new Emitter());
|
|
73
|
+
this._globalToDispose = ( new DisposableStore());
|
|
74
|
+
this._commentThreadDisposables = [];
|
|
75
|
+
this._contextKeyService = contextKeyService.createScoped(this.domNode);
|
|
76
|
+
this._scopedInstantiationService = instantiationService.createChild(( new ServiceCollection([IContextKeyService, this._contextKeyService])));
|
|
77
|
+
const controller = this.commentService.getCommentController(this._owner);
|
|
78
|
+
if (controller) {
|
|
79
|
+
this._commentOptions = controller.options;
|
|
80
|
+
}
|
|
81
|
+
this._initialCollapsibleState = _pendingComment ? CommentThreadCollapsibleState.Expanded : _commentThread.initialCollapsibleState;
|
|
82
|
+
_commentThread.initialCollapsibleState = this._initialCollapsibleState;
|
|
83
|
+
this._isExpanded = this._initialCollapsibleState === CommentThreadCollapsibleState.Expanded;
|
|
84
|
+
this._commentThreadDisposables = [];
|
|
85
|
+
this.create();
|
|
86
|
+
this._globalToDispose.add(this.themeService.onDidColorThemeChange(this._applyTheme, this));
|
|
87
|
+
this._globalToDispose.add(this.editor.onDidChangeConfiguration(e => {
|
|
88
|
+
if (e.hasChanged(50 )) {
|
|
89
|
+
this._applyTheme(this.themeService.getColorTheme());
|
|
90
|
+
}
|
|
91
|
+
}));
|
|
92
|
+
this._applyTheme(this.themeService.getColorTheme());
|
|
93
|
+
}
|
|
94
|
+
get onDidClose() {
|
|
95
|
+
return this._onDidClose.event;
|
|
96
|
+
}
|
|
97
|
+
get onDidCreateThread() {
|
|
98
|
+
return this._onDidCreateThread.event;
|
|
99
|
+
}
|
|
100
|
+
getPosition() {
|
|
101
|
+
if (this.position) {
|
|
102
|
+
return this.position;
|
|
103
|
+
}
|
|
104
|
+
if (this._commentGlyph) {
|
|
105
|
+
return this._commentGlyph.getPosition().position ?? undefined;
|
|
106
|
+
}
|
|
107
|
+
return undefined;
|
|
108
|
+
}
|
|
109
|
+
revealRange() {
|
|
110
|
+
}
|
|
111
|
+
reveal(commentUniqueId, focus = false) {
|
|
112
|
+
if (!this._isExpanded) {
|
|
113
|
+
this.show(this.arrowPosition(this._commentThread.range), 2);
|
|
114
|
+
}
|
|
115
|
+
if (commentUniqueId !== undefined) {
|
|
116
|
+
const height = this.editor.getLayoutInfo().height;
|
|
117
|
+
const coords = this._commentThreadWidget.getCommentCoords(commentUniqueId);
|
|
118
|
+
if (coords) {
|
|
119
|
+
let scrollTop = 1;
|
|
120
|
+
if (this._commentThread.range) {
|
|
121
|
+
const commentThreadCoords = coords.thread;
|
|
122
|
+
const commentCoords = coords.comment;
|
|
123
|
+
scrollTop = this.editor.getTopForLineNumber(this._commentThread.range.startLineNumber) - height / 2 + commentCoords.top - commentThreadCoords.top;
|
|
124
|
+
}
|
|
125
|
+
this.editor.setScrollTop(scrollTop);
|
|
126
|
+
if (focus) {
|
|
127
|
+
this._commentThreadWidget.focus();
|
|
128
|
+
}
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
this.editor.revealRangeInCenter(this._commentThread.range ?? ( new Range(1, 1, 1, 1)));
|
|
133
|
+
if (focus) {
|
|
134
|
+
this._commentThreadWidget.focus();
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
getPendingComments() {
|
|
138
|
+
return {
|
|
139
|
+
newComment: this._commentThreadWidget.getPendingComment(),
|
|
140
|
+
edits: this._commentThreadWidget.getPendingEdits()
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
setPendingComment(comment) {
|
|
144
|
+
this._pendingComment = comment;
|
|
145
|
+
this.expand();
|
|
146
|
+
this._commentThreadWidget.setPendingComment(comment);
|
|
147
|
+
}
|
|
148
|
+
_fillContainer(container) {
|
|
149
|
+
this.setCssClass('review-widget');
|
|
150
|
+
this._commentThreadWidget = this._scopedInstantiationService.createInstance(CommentThreadWidget, container, this.editor, this._owner, this.editor.getModel().uri, this._contextKeyService, this._scopedInstantiationService, this._commentThread, this._pendingComment, this._pendingEdits, { editor: this.editor, codeBlockFontSize: '', codeBlockFontFamily: this.configurationService.getValue('editor').fontFamily || EDITOR_FONT_DEFAULTS.fontFamily }, this._commentOptions, {
|
|
151
|
+
actionRunner: async () => {
|
|
152
|
+
if (!this._commentThread.comments || !this._commentThread.comments.length) {
|
|
153
|
+
const newPosition = this.getPosition();
|
|
154
|
+
if (newPosition) {
|
|
155
|
+
const originalRange = this._commentThread.range;
|
|
156
|
+
if (!originalRange) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
let range;
|
|
160
|
+
if (newPosition.lineNumber !== originalRange.endLineNumber) {
|
|
161
|
+
const distance = newPosition.lineNumber - originalRange.endLineNumber;
|
|
162
|
+
range = ( new Range(
|
|
163
|
+
originalRange.startLineNumber + distance,
|
|
164
|
+
originalRange.startColumn,
|
|
165
|
+
originalRange.endLineNumber + distance,
|
|
166
|
+
originalRange.endColumn
|
|
167
|
+
));
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
range = ( new Range(
|
|
171
|
+
originalRange.startLineNumber,
|
|
172
|
+
originalRange.startColumn,
|
|
173
|
+
originalRange.endLineNumber,
|
|
174
|
+
originalRange.endColumn
|
|
175
|
+
));
|
|
176
|
+
}
|
|
177
|
+
await this.commentService.updateCommentThreadTemplate(this.owner, this._commentThread.commentThreadHandle, range);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
collapse: () => {
|
|
182
|
+
this.collapse();
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
this._disposables.add(this._commentThreadWidget);
|
|
186
|
+
}
|
|
187
|
+
arrowPosition(range) {
|
|
188
|
+
if (!range) {
|
|
189
|
+
return undefined;
|
|
190
|
+
}
|
|
191
|
+
return { lineNumber: range.endLineNumber, column: range.endLineNumber === range.startLineNumber ? (range.startColumn + range.endColumn + 1) / 2 : 1 };
|
|
192
|
+
}
|
|
193
|
+
deleteCommentThread() {
|
|
194
|
+
this.dispose();
|
|
195
|
+
this.commentService.disposeCommentThread(this.owner, this._commentThread.threadId);
|
|
196
|
+
}
|
|
197
|
+
collapse() {
|
|
198
|
+
this._commentThread.collapsibleState = CommentThreadCollapsibleState.Collapsed;
|
|
199
|
+
}
|
|
200
|
+
expand() {
|
|
201
|
+
this._commentThread.collapsibleState = CommentThreadCollapsibleState.Expanded;
|
|
202
|
+
}
|
|
203
|
+
getGlyphPosition() {
|
|
204
|
+
if (this._commentGlyph) {
|
|
205
|
+
return this._commentGlyph.getPosition().position.lineNumber;
|
|
206
|
+
}
|
|
207
|
+
return 0;
|
|
208
|
+
}
|
|
209
|
+
toggleExpand() {
|
|
210
|
+
if (this._isExpanded) {
|
|
211
|
+
this._commentThread.collapsibleState = CommentThreadCollapsibleState.Collapsed;
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
this._commentThread.collapsibleState = CommentThreadCollapsibleState.Expanded;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
async update(commentThread) {
|
|
218
|
+
if (this._commentThread !== commentThread) {
|
|
219
|
+
this._commentThreadDisposables.forEach(disposable => disposable.dispose());
|
|
220
|
+
this._commentThread = commentThread;
|
|
221
|
+
this._commentThreadDisposables = [];
|
|
222
|
+
this.bindCommentThreadListeners();
|
|
223
|
+
}
|
|
224
|
+
this._commentThreadWidget.updateCommentThread(commentThread);
|
|
225
|
+
const lineNumber = this._commentThread.range?.endLineNumber ?? 1;
|
|
226
|
+
let shouldMoveWidget = false;
|
|
227
|
+
if (this._commentGlyph) {
|
|
228
|
+
this._commentGlyph.setThreadState(commentThread.state);
|
|
229
|
+
if (this._commentGlyph.getPosition().position.lineNumber !== lineNumber) {
|
|
230
|
+
shouldMoveWidget = true;
|
|
231
|
+
this._commentGlyph.setLineNumber(lineNumber);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
if ((shouldMoveWidget && this._isExpanded) || (this._commentThread.collapsibleState === CommentThreadCollapsibleState.Expanded && !this._isExpanded)) {
|
|
235
|
+
this.show(this.arrowPosition(this._commentThread.range), 2);
|
|
236
|
+
}
|
|
237
|
+
else if (this._commentThread.collapsibleState !== CommentThreadCollapsibleState.Expanded) {
|
|
238
|
+
this.hide();
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
_onWidth(widthInPixel) {
|
|
242
|
+
this._commentThreadWidget.layout(widthInPixel);
|
|
243
|
+
}
|
|
244
|
+
_doLayout(heightInPixel, widthInPixel) {
|
|
245
|
+
this._commentThreadWidget.layout(widthInPixel);
|
|
246
|
+
}
|
|
247
|
+
display(range) {
|
|
248
|
+
if (range) {
|
|
249
|
+
this._commentGlyph = ( new CommentGlyphWidget(this.editor, range?.endLineNumber ?? -1));
|
|
250
|
+
this._commentGlyph.setThreadState(this._commentThread.state);
|
|
251
|
+
}
|
|
252
|
+
this._commentThreadWidget.display(this.editor.getOption(66 ));
|
|
253
|
+
this._disposables.add(this._commentThreadWidget.onDidResize(dimension => {
|
|
254
|
+
this._refresh(dimension);
|
|
255
|
+
}));
|
|
256
|
+
if ((this._commentThread.collapsibleState === CommentThreadCollapsibleState.Expanded) || (range === undefined)) {
|
|
257
|
+
this.show(this.arrowPosition(range), 2);
|
|
258
|
+
}
|
|
259
|
+
if (this._commentThread.canReply && this._commentThread.isTemplate && (!this._commentThread.comments || (this._commentThread.comments.length === 0))) {
|
|
260
|
+
this.reveal();
|
|
261
|
+
}
|
|
262
|
+
this.bindCommentThreadListeners();
|
|
263
|
+
}
|
|
264
|
+
bindCommentThreadListeners() {
|
|
265
|
+
this._commentThreadDisposables.push(this._commentThread.onDidChangeComments(async (_) => {
|
|
266
|
+
await this.update(this._commentThread);
|
|
267
|
+
}));
|
|
268
|
+
this._commentThreadDisposables.push(this._commentThread.onDidChangeRange(range => {
|
|
269
|
+
const lineNumber = this._commentThread.range?.startLineNumber ?? 1;
|
|
270
|
+
let shouldMoveWidget = false;
|
|
271
|
+
if (this._commentGlyph) {
|
|
272
|
+
if (this._commentGlyph.getPosition().position.lineNumber !== lineNumber) {
|
|
273
|
+
shouldMoveWidget = true;
|
|
274
|
+
this._commentGlyph.setLineNumber(lineNumber);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
if (shouldMoveWidget && this._isExpanded) {
|
|
278
|
+
this.show(this.arrowPosition(this._commentThread.range), 2);
|
|
279
|
+
}
|
|
280
|
+
}));
|
|
281
|
+
this._commentThreadDisposables.push(this._commentThread.onDidChangeCollapsibleState(state => {
|
|
282
|
+
if (state === CommentThreadCollapsibleState.Expanded && !this._isExpanded) {
|
|
283
|
+
this.show(this.arrowPosition(this._commentThread.range), 2);
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
if (state === CommentThreadCollapsibleState.Collapsed && this._isExpanded) {
|
|
287
|
+
this.hide();
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
}));
|
|
291
|
+
if (this._initialCollapsibleState === undefined) {
|
|
292
|
+
const onDidChangeInitialCollapsibleState = this._commentThread.onDidChangeInitialCollapsibleState(state => {
|
|
293
|
+
this._initialCollapsibleState = state;
|
|
294
|
+
this._commentThread.collapsibleState = this._initialCollapsibleState;
|
|
295
|
+
onDidChangeInitialCollapsibleState.dispose();
|
|
296
|
+
});
|
|
297
|
+
this._commentThreadDisposables.push(onDidChangeInitialCollapsibleState);
|
|
298
|
+
}
|
|
299
|
+
this._commentThreadDisposables.push(this._commentThread.onDidChangeState(() => {
|
|
300
|
+
const borderColor = getCommentThreadWidgetStateColor(this._commentThread.state, this.themeService.getColorTheme()) || Color.transparent;
|
|
301
|
+
this.style({
|
|
302
|
+
frameColor: borderColor,
|
|
303
|
+
arrowColor: borderColor,
|
|
304
|
+
});
|
|
305
|
+
this.container?.style.setProperty(commentThreadStateColorVar, `${borderColor}`);
|
|
306
|
+
this.container?.style.setProperty(commentThreadStateBackgroundColorVar, `${( borderColor.transparent(.1))}`);
|
|
307
|
+
}));
|
|
308
|
+
}
|
|
309
|
+
async submitComment() {
|
|
310
|
+
return this._commentThreadWidget.submitComment();
|
|
311
|
+
}
|
|
312
|
+
_refresh(dimensions) {
|
|
313
|
+
if (dimensions.height === 0 && dimensions.width === 0) {
|
|
314
|
+
this.commentThread.collapsibleState = CommentThreadCollapsibleState.Collapsed;
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
if (this._isExpanded) {
|
|
318
|
+
this._commentThreadWidget.layout();
|
|
319
|
+
const headHeight = Math.ceil(this.editor.getOption(66 ) * 1.2);
|
|
320
|
+
const lineHeight = this.editor.getOption(66 );
|
|
321
|
+
const arrowHeight = Math.round(lineHeight / 3);
|
|
322
|
+
const frameThickness = Math.round(lineHeight / 9) * 2;
|
|
323
|
+
const computedLinesNumber = Math.ceil(((headHeight + dimensions.height + arrowHeight + frameThickness + 8) ) / lineHeight);
|
|
324
|
+
if (this._viewZone?.heightInLines === computedLinesNumber) {
|
|
325
|
+
return;
|
|
326
|
+
}
|
|
327
|
+
const currentPosition = this.getPosition();
|
|
328
|
+
if (this._viewZone && currentPosition && currentPosition.lineNumber !== this._viewZone.afterLineNumber && this._viewZone.afterLineNumber !== 0) {
|
|
329
|
+
this._viewZone.afterLineNumber = currentPosition.lineNumber;
|
|
330
|
+
}
|
|
331
|
+
if (!this._commentThread.comments || !this._commentThread.comments.length) {
|
|
332
|
+
this._commentThreadWidget.focusCommentEditor();
|
|
333
|
+
}
|
|
334
|
+
const capture = StableEditorScrollState.capture(this.editor);
|
|
335
|
+
this._relayout(computedLinesNumber);
|
|
336
|
+
capture.restore(this.editor);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
_applyTheme(theme) {
|
|
340
|
+
const borderColor = getCommentThreadWidgetStateColor(this._commentThread.state, this.themeService.getColorTheme()) || Color.transparent;
|
|
341
|
+
this.style({
|
|
342
|
+
arrowColor: borderColor,
|
|
343
|
+
frameColor: borderColor
|
|
344
|
+
});
|
|
345
|
+
const fontInfo = this.editor.getOption(50 );
|
|
346
|
+
this._commentThreadWidget.applyTheme(theme, fontInfo);
|
|
347
|
+
}
|
|
348
|
+
show(rangeOrPos, heightInLines) {
|
|
349
|
+
const glyphPosition = this._commentGlyph?.getPosition();
|
|
350
|
+
let range = Range.isIRange(rangeOrPos) ? rangeOrPos : (rangeOrPos ? Range.fromPositions(rangeOrPos) : undefined);
|
|
351
|
+
if (glyphPosition?.position && range && glyphPosition.position.lineNumber !== range.endLineNumber) {
|
|
352
|
+
const distance = glyphPosition.position.lineNumber - range.endLineNumber;
|
|
353
|
+
range = ( new Range(
|
|
354
|
+
range.startLineNumber + distance,
|
|
355
|
+
range.startColumn,
|
|
356
|
+
range.endLineNumber + distance,
|
|
357
|
+
range.endColumn
|
|
358
|
+
));
|
|
359
|
+
}
|
|
360
|
+
this._isExpanded = true;
|
|
361
|
+
super.show(range ?? ( new Range(0, 0, 0, 0)), heightInLines);
|
|
362
|
+
this._commentThread.collapsibleState = CommentThreadCollapsibleState.Expanded;
|
|
363
|
+
this._refresh(this._commentThreadWidget.getDimensions());
|
|
364
|
+
}
|
|
365
|
+
hide() {
|
|
366
|
+
if (this._isExpanded) {
|
|
367
|
+
this._isExpanded = false;
|
|
368
|
+
if (this.editor.hasWidgetFocus()) {
|
|
369
|
+
this.editor.focus();
|
|
370
|
+
}
|
|
371
|
+
if (!this._commentThread.comments || !this._commentThread.comments.length) {
|
|
372
|
+
this.deleteCommentThread();
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
super.hide();
|
|
376
|
+
}
|
|
377
|
+
dispose() {
|
|
378
|
+
super.dispose();
|
|
379
|
+
if (this._commentGlyph) {
|
|
380
|
+
this._commentGlyph.dispose();
|
|
381
|
+
this._commentGlyph = undefined;
|
|
382
|
+
}
|
|
383
|
+
this._globalToDispose.dispose();
|
|
384
|
+
this._commentThreadDisposables.forEach(global => global.dispose());
|
|
385
|
+
this._onDidClose.fire(undefined);
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
ReviewZoneWidget = ( __decorate([
|
|
389
|
+
( __param(5, IInstantiationService)),
|
|
390
|
+
( __param(6, IThemeService)),
|
|
391
|
+
( __param(7, ICommentService)),
|
|
392
|
+
( __param(8, IContextKeyService)),
|
|
393
|
+
( __param(9, IConfigurationService))
|
|
394
|
+
], ReviewZoneWidget));
|
|
395
|
+
export { ReviewZoneWidget, isMouseUpEventDragFromMouseDown, parseMouseDownInfoFromEvent };
|