@codingame/monaco-vscode-issue-service-override 3.2.2 → 4.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-issue-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@4.0.0"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -4,15 +4,19 @@ import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/comm
|
|
|
4
4
|
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
5
5
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
6
6
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
7
|
+
import '../../../services/issue/browser/issueService.js';
|
|
8
|
+
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
7
9
|
import { BaseIssueContribution } from '../common/issue.contribution.js';
|
|
10
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
8
11
|
|
|
9
12
|
let WebIssueContribution = class WebIssueContribution extends BaseIssueContribution {
|
|
10
|
-
constructor(productService) {
|
|
11
|
-
super(productService);
|
|
13
|
+
constructor(productService, configurationService) {
|
|
14
|
+
super(productService, configurationService);
|
|
12
15
|
}
|
|
13
16
|
};
|
|
14
17
|
WebIssueContribution = ( __decorate([
|
|
15
|
-
( __param(0, IProductService))
|
|
18
|
+
( __param(0, IProductService)),
|
|
19
|
+
( __param(1, IConfigurationService))
|
|
16
20
|
], WebIssueContribution));
|
|
17
21
|
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(WebIssueContribution, 3 );
|
|
18
22
|
CommandsRegistry.registerCommand('_issues.getSystemStatus', (accessor) => {
|
|
@@ -5,6 +5,8 @@ import { MenuRegistry, MenuId } from 'vscode/vscode/vs/platform/actions/common/a
|
|
|
5
5
|
import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
6
6
|
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
7
7
|
import { IWorkbenchIssueService } from 'vscode/vscode/vs/workbench/services/issue/common/issue';
|
|
8
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
9
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
8
10
|
|
|
9
11
|
const OpenIssueReporterActionId = 'workbench.action.openIssueReporter';
|
|
10
12
|
const OpenIssueReporterApiId = 'vscode.openIssueReporter';
|
|
@@ -40,12 +42,13 @@ const OpenIssueReporterCommandMetadata = {
|
|
|
40
42
|
},
|
|
41
43
|
]
|
|
42
44
|
};
|
|
43
|
-
let BaseIssueContribution = class BaseIssueContribution {
|
|
44
|
-
constructor(productService) {
|
|
45
|
+
let BaseIssueContribution = class BaseIssueContribution extends Disposable {
|
|
46
|
+
constructor(productService, configurationService) {
|
|
47
|
+
super();
|
|
45
48
|
if (!productService.reportIssueUrl) {
|
|
46
49
|
return;
|
|
47
50
|
}
|
|
48
|
-
CommandsRegistry.registerCommand({
|
|
51
|
+
this._register(CommandsRegistry.registerCommand({
|
|
49
52
|
id: OpenIssueReporterActionId,
|
|
50
53
|
handler: function (accessor, args) {
|
|
51
54
|
const data = typeof args === 'string'
|
|
@@ -56,8 +59,8 @@ let BaseIssueContribution = class BaseIssueContribution {
|
|
|
56
59
|
return accessor.get(IWorkbenchIssueService).openReporter(data);
|
|
57
60
|
},
|
|
58
61
|
metadata: OpenIssueReporterCommandMetadata
|
|
59
|
-
});
|
|
60
|
-
CommandsRegistry.registerCommand({
|
|
62
|
+
}));
|
|
63
|
+
this._register(CommandsRegistry.registerCommand({
|
|
61
64
|
id: OpenIssueReporterApiId,
|
|
62
65
|
handler: function (accessor, args) {
|
|
63
66
|
const data = typeof args === 'string'
|
|
@@ -68,7 +71,7 @@ let BaseIssueContribution = class BaseIssueContribution {
|
|
|
68
71
|
return accessor.get(IWorkbenchIssueService).openReporter(data);
|
|
69
72
|
},
|
|
70
73
|
metadata: OpenIssueReporterCommandMetadata
|
|
71
|
-
});
|
|
74
|
+
}));
|
|
72
75
|
const reportIssue = {
|
|
73
76
|
id: OpenIssueReporterActionId,
|
|
74
77
|
title: ( localize2WithPath(
|
|
@@ -78,8 +81,8 @@ let BaseIssueContribution = class BaseIssueContribution {
|
|
|
78
81
|
)),
|
|
79
82
|
category: Categories.Help
|
|
80
83
|
};
|
|
81
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: reportIssue });
|
|
82
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
|
|
84
|
+
this._register(MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: reportIssue }));
|
|
85
|
+
this._register(MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
|
|
83
86
|
group: '3_feedback',
|
|
84
87
|
command: {
|
|
85
88
|
id: OpenIssueReporterActionId,
|
|
@@ -90,11 +93,12 @@ let BaseIssueContribution = class BaseIssueContribution {
|
|
|
90
93
|
))
|
|
91
94
|
},
|
|
92
95
|
order: 3
|
|
93
|
-
});
|
|
96
|
+
}));
|
|
94
97
|
}
|
|
95
98
|
};
|
|
96
99
|
BaseIssueContribution = ( __decorate([
|
|
97
|
-
( __param(0, IProductService))
|
|
100
|
+
( __param(0, IProductService)),
|
|
101
|
+
( __param(1, IConfigurationService))
|
|
98
102
|
], BaseIssueContribution));
|
|
99
103
|
|
|
100
104
|
export { BaseIssueContribution };
|