@codingame/monaco-vscode-multi-diff-editor-service-override 9.0.2 → 10.0.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-multi-diff-editor-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.0.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
2
|
-
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
3
2
|
import { localize2 } from 'vscode/vscode/vs/nls';
|
|
4
3
|
import { Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
5
4
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
6
|
-
import { TextEditorSelectionRevealType } from 'vscode/vscode/vs/platform/editor/common/editor';
|
|
7
5
|
import { IListService } from 'vscode/vscode/vs/platform/list/browser/listService.service';
|
|
8
6
|
import { resolveCommandsContext } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorCommandsContext';
|
|
9
7
|
import { MultiDiffEditor } from './multiDiffEditor.js';
|
|
10
8
|
import { MultiDiffEditorInput } from 'vscode/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput';
|
|
11
9
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
12
10
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
11
|
+
import { ActiveEditorContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
13
12
|
|
|
14
13
|
class GoToFileAction extends Action2 {
|
|
15
14
|
constructor() {
|
|
16
15
|
super({
|
|
17
16
|
id: 'multiDiffEditor.goToFile',
|
|
18
|
-
title: ( localize2(
|
|
17
|
+
title: ( localize2(6172, 'Open File')),
|
|
19
18
|
icon: Codicon.goToFile,
|
|
20
|
-
precondition:
|
|
19
|
+
precondition: ( (ActiveEditorContext.isEqualTo(MultiDiffEditor.ID))),
|
|
21
20
|
menu: {
|
|
22
|
-
when:
|
|
21
|
+
when: ( (ActiveEditorContext.isEqualTo(MultiDiffEditor.ID))),
|
|
23
22
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
24
23
|
order: 22,
|
|
25
24
|
group: 'navigation',
|
|
@@ -47,7 +46,7 @@ class GoToFileAction extends Action2 {
|
|
|
47
46
|
resource: targetUri,
|
|
48
47
|
options: {
|
|
49
48
|
selection: selections?.[0],
|
|
50
|
-
selectionRevealType:
|
|
49
|
+
selectionRevealType: 1 ,
|
|
51
50
|
},
|
|
52
51
|
});
|
|
53
52
|
}
|
|
@@ -56,7 +55,7 @@ class CollapseAllAction extends Action2 {
|
|
|
56
55
|
constructor() {
|
|
57
56
|
super({
|
|
58
57
|
id: 'multiDiffEditor.collapseAll',
|
|
59
|
-
title: ( localize2(
|
|
58
|
+
title: ( localize2(6173, 'Collapse All Diffs')),
|
|
60
59
|
icon: Codicon.collapseAll,
|
|
61
60
|
precondition: ( (ContextKeyExpr.and(
|
|
62
61
|
(ContextKeyExpr.equals('activeEditor', MultiDiffEditor.ID)),
|
|
@@ -91,7 +90,7 @@ class ExpandAllAction extends Action2 {
|
|
|
91
90
|
constructor() {
|
|
92
91
|
super({
|
|
93
92
|
id: 'multiDiffEditor.expandAll',
|
|
94
|
-
title: ( localize2(
|
|
93
|
+
title: ( localize2(6174, 'Expand All Diffs')),
|
|
95
94
|
icon: Codicon.expandAll,
|
|
96
95
|
precondition: ( (ContextKeyExpr.and(
|
|
97
96
|
(ContextKeyExpr.equals('activeEditor', MultiDiffEditor.ID)),
|
package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor.contribution.js
CHANGED
|
@@ -4,14 +4,13 @@ import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/confi
|
|
|
4
4
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
5
5
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
6
6
|
import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
|
|
7
|
-
import { registerWorkbenchContribution2
|
|
7
|
+
import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
8
8
|
import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
|
|
9
9
|
import { MultiDiffEditor } from './multiDiffEditor.js';
|
|
10
10
|
import { MultiDiffEditorResolverContribution, MultiDiffEditorInput, MultiDiffEditorSerializer } from 'vscode/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput';
|
|
11
11
|
import { GoToFileAction, CollapseAllAction, ExpandAllAction } from './actions.js';
|
|
12
12
|
import 'vscode/vscode/vs/base/common/lifecycle';
|
|
13
13
|
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
14
|
-
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
15
14
|
import { OpenScmGroupAction, ScmMultiDiffSourceResolverContribution } from 'vscode/vscode/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver';
|
|
16
15
|
|
|
17
16
|
registerAction2(GoToFileAction);
|
|
@@ -27,10 +26,10 @@ registerAction2(ExpandAllAction);
|
|
|
27
26
|
},
|
|
28
27
|
}
|
|
29
28
|
});
|
|
30
|
-
registerWorkbenchContribution2(MultiDiffEditorResolverContribution.ID, MultiDiffEditorResolverContribution,
|
|
29
|
+
registerWorkbenchContribution2(MultiDiffEditorResolverContribution.ID, MultiDiffEditorResolverContribution, 1 );
|
|
31
30
|
( (Registry.as(EditorExtensions.EditorPane)))
|
|
32
|
-
.registerEditorPane(EditorPaneDescriptor.create(MultiDiffEditor, MultiDiffEditor.ID, ( localize(
|
|
31
|
+
.registerEditorPane(EditorPaneDescriptor.create(MultiDiffEditor, MultiDiffEditor.ID, ( localize(2710, "Multi Diff Editor"))), [( (new SyncDescriptor(MultiDiffEditorInput)))]);
|
|
33
32
|
( (Registry.as(EditorExtensions.EditorFactory)))
|
|
34
33
|
.registerEditorSerializer(MultiDiffEditorInput.ID, MultiDiffEditorSerializer);
|
|
35
34
|
registerAction2(OpenScmGroupAction);
|
|
36
|
-
registerWorkbenchContribution2(ScmMultiDiffSourceResolverContribution.ID, ScmMultiDiffSourceResolverContribution,
|
|
35
|
+
registerWorkbenchContribution2(ScmMultiDiffSourceResolverContribution.ID, ScmMultiDiffSourceResolverContribution, 1 );
|
|
@@ -11,6 +11,7 @@ import { MultiDiffEditorInput } from 'vscode/vscode/vs/workbench/contrib/multiDi
|
|
|
11
11
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
12
12
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
13
13
|
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
14
|
+
import { IEditorProgressService } from 'vscode/vscode/vs/platform/progress/common/progress.service';
|
|
14
15
|
|
|
15
16
|
var MultiDiffEditor_1;
|
|
16
17
|
let MultiDiffEditor = class MultiDiffEditor extends AbstractEditorWithViewState {
|
|
@@ -19,8 +20,9 @@ let MultiDiffEditor = class MultiDiffEditor extends AbstractEditorWithViewState
|
|
|
19
20
|
get viewModel() {
|
|
20
21
|
return this._viewModel;
|
|
21
22
|
}
|
|
22
|
-
constructor(group, instantiationService, telemetryService, themeService, storageService, editorService, editorGroupService, textResourceConfigurationService) {
|
|
23
|
+
constructor(group, instantiationService, telemetryService, themeService, storageService, editorService, editorGroupService, textResourceConfigurationService, editorProgressService) {
|
|
23
24
|
super(MultiDiffEditor_1.ID, group, 'multiDiffEditor', telemetryService, instantiationService, storageService, textResourceConfigurationService, themeService, editorService, editorGroupService);
|
|
25
|
+
this.editorProgressService = editorProgressService;
|
|
24
26
|
this._multiDiffEditorWidget = undefined;
|
|
25
27
|
}
|
|
26
28
|
createEditor(parent) {
|
|
@@ -89,6 +91,9 @@ let MultiDiffEditor = class MultiDiffEditor extends AbstractEditorWithViewState
|
|
|
89
91
|
const i2 = i;
|
|
90
92
|
return i2.multiDiffEditorItem;
|
|
91
93
|
}
|
|
94
|
+
async showWhile(promise) {
|
|
95
|
+
return this.editorProgressService.showWhile(promise);
|
|
96
|
+
}
|
|
92
97
|
};
|
|
93
98
|
MultiDiffEditor = MultiDiffEditor_1 = ( __decorate([
|
|
94
99
|
( __param(1, IInstantiationService)),
|
|
@@ -97,7 +102,8 @@ MultiDiffEditor = MultiDiffEditor_1 = ( __decorate([
|
|
|
97
102
|
( __param(4, IStorageService)),
|
|
98
103
|
( __param(5, IEditorService)),
|
|
99
104
|
( __param(6, IEditorGroupsService)),
|
|
100
|
-
( __param(7, ITextResourceConfigurationService))
|
|
105
|
+
( __param(7, ITextResourceConfigurationService)),
|
|
106
|
+
( __param(8, IEditorProgressService))
|
|
101
107
|
], MultiDiffEditor));
|
|
102
108
|
let WorkbenchUIElementFactory = class WorkbenchUIElementFactory {
|
|
103
109
|
constructor(_instantiationService) {
|