@codingame/monaco-vscode-issue-service-override 4.5.1 → 4.5.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.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/issue/browser/issue.contribution.js +7 -10
- package/vscode/src/vs/workbench/contrib/issue/common/issue.contribution.js +7 -14
- package/vscode/src/vs/workbench/services/issue/browser/issueService.js +3 -3
- package/vscode/src/vs/workbench/services/issue/browser/issueTroubleshoot.js +85 -129
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-issue-service-override",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.2",
|
|
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@4.5.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@4.5.2"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -9,20 +9,17 @@ import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
|
9
9
|
import { BaseIssueContribution } from '../common/issue.contribution.js';
|
|
10
10
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
11
11
|
|
|
12
|
+
const _moduleId = "vs/workbench/contrib/issue/browser/issue.contribution";
|
|
12
13
|
let WebIssueContribution = class WebIssueContribution extends BaseIssueContribution {
|
|
13
14
|
constructor(productService, configurationService) {
|
|
14
15
|
super(productService, configurationService);
|
|
15
16
|
}
|
|
16
17
|
};
|
|
17
|
-
WebIssueContribution = ( __decorate([
|
|
18
|
-
( __param(0, IProductService)),
|
|
19
|
-
( __param(1, IConfigurationService))
|
|
20
|
-
], WebIssueContribution));
|
|
21
|
-
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(WebIssueContribution, 3 );
|
|
18
|
+
WebIssueContribution = ( (__decorate([
|
|
19
|
+
( (__param(0, IProductService))),
|
|
20
|
+
( (__param(1, IConfigurationService)))
|
|
21
|
+
], WebIssueContribution)));
|
|
22
|
+
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(WebIssueContribution, 3 );
|
|
22
23
|
CommandsRegistry.registerCommand('_issues.getSystemStatus', (accessor) => {
|
|
23
|
-
return ( localizeWithPath(
|
|
24
|
-
'vs/workbench/contrib/issue/browser/issue.contribution',
|
|
25
|
-
'statusUnsupported',
|
|
26
|
-
"The --status argument is not yet supported in browsers."
|
|
27
|
-
));
|
|
24
|
+
return ( localizeWithPath(_moduleId, 0, "The --status argument is not yet supported in browsers."));
|
|
28
25
|
});
|
|
@@ -8,6 +8,7 @@ import { IWorkbenchIssueService } from 'vscode/vscode/vs/workbench/services/issu
|
|
|
8
8
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
9
9
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
10
10
|
|
|
11
|
+
const _moduleId = "vs/workbench/contrib/issue/common/issue.contribution";
|
|
11
12
|
const OpenIssueReporterActionId = 'workbench.action.openIssueReporter';
|
|
12
13
|
const OpenIssueReporterApiId = 'vscode.openIssueReporter';
|
|
13
14
|
const OpenIssueReporterCommandMetadata = {
|
|
@@ -74,11 +75,7 @@ let BaseIssueContribution = class BaseIssueContribution extends Disposable {
|
|
|
74
75
|
}));
|
|
75
76
|
const reportIssue = {
|
|
76
77
|
id: OpenIssueReporterActionId,
|
|
77
|
-
title: ( localize2WithPath(
|
|
78
|
-
'vs/workbench/contrib/issue/common/issue.contribution',
|
|
79
|
-
{ key: 'reportIssueInEnglish', comment: ['Translate this to "Report Issue in English" in all languages please!'] },
|
|
80
|
-
"Report Issue..."
|
|
81
|
-
)),
|
|
78
|
+
title: ( localize2WithPath(_moduleId, 0, "Report Issue...")),
|
|
82
79
|
category: Categories.Help
|
|
83
80
|
};
|
|
84
81
|
this._register(MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: reportIssue }));
|
|
@@ -86,19 +83,15 @@ let BaseIssueContribution = class BaseIssueContribution extends Disposable {
|
|
|
86
83
|
group: '3_feedback',
|
|
87
84
|
command: {
|
|
88
85
|
id: OpenIssueReporterActionId,
|
|
89
|
-
title: ( localizeWithPath(
|
|
90
|
-
'vs/workbench/contrib/issue/common/issue.contribution',
|
|
91
|
-
{ key: 'miReportIssue', comment: ['&& denotes a mnemonic', 'Translate this to "Report Issue in English" in all languages please!'] },
|
|
92
|
-
"Report &&Issue"
|
|
93
|
-
))
|
|
86
|
+
title: ( localizeWithPath(_moduleId, 1, "Report &&Issue"))
|
|
94
87
|
},
|
|
95
88
|
order: 3
|
|
96
89
|
}));
|
|
97
90
|
}
|
|
98
91
|
};
|
|
99
|
-
BaseIssueContribution = ( __decorate([
|
|
100
|
-
( __param(0, IProductService)),
|
|
101
|
-
( __param(1, IConfigurationService))
|
|
102
|
-
], BaseIssueContribution));
|
|
92
|
+
BaseIssueContribution = ( (__decorate([
|
|
93
|
+
( (__param(0, IProductService))),
|
|
94
|
+
( (__param(1, IConfigurationService)))
|
|
95
|
+
], BaseIssueContribution)));
|
|
103
96
|
|
|
104
97
|
export { BaseIssueContribution };
|
|
@@ -27,7 +27,7 @@ let WebIssueService = class WebIssueService {
|
|
|
27
27
|
windowOpenNoOpener(uri);
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
|
-
throw new Error(`No issue reporting URL configured for ${this.productService.nameLong}.`);
|
|
30
|
+
throw ( new Error(`No issue reporting URL configured for ${this.productService.nameLong}.`));
|
|
31
31
|
}
|
|
32
32
|
if (( this._handlers.has(extensionId))) {
|
|
33
33
|
try {
|
|
@@ -42,7 +42,7 @@ let WebIssueService = class WebIssueService {
|
|
|
42
42
|
const selectedExtension = this.extensionService.extensions.filter(ext => ext.identifier.value === options.extensionId)[0];
|
|
43
43
|
const extensionGitHubUrl = this.getExtensionGitHubUrl(selectedExtension);
|
|
44
44
|
if (!extensionGitHubUrl) {
|
|
45
|
-
throw new Error(`Unable to find issue reporting url for ${extensionId}`);
|
|
45
|
+
throw ( new Error(`Unable to find issue reporting url for ${extensionId}`));
|
|
46
46
|
}
|
|
47
47
|
const uri = this.getIssueUriFromStaticContent(`${extensionGitHubUrl}/issues/new`, selectedExtension);
|
|
48
48
|
windowOpenNoOpener(uri);
|
|
@@ -58,7 +58,7 @@ let WebIssueService = class WebIssueService {
|
|
|
58
58
|
async getIssueUriFromHandler(extensionId, token) {
|
|
59
59
|
const handler = this._handlers.get(extensionId);
|
|
60
60
|
if (!handler) {
|
|
61
|
-
throw new Error(`No handler registered for extension ${extensionId}`);
|
|
61
|
+
throw ( new Error(`No handler registered for extension ${extensionId}`));
|
|
62
62
|
}
|
|
63
63
|
const result = await handler.provideIssueUrl(token);
|
|
64
64
|
return ( result.toString(true));
|
|
@@ -27,11 +27,12 @@ import { ITroubleshootIssueService } from 'vscode/vscode/vs/workbench/services/i
|
|
|
27
27
|
import Severity$1 from 'vscode/vscode/vs/base/common/severity';
|
|
28
28
|
|
|
29
29
|
var TroubleshootIssueService_1, IssueTroubleshootUi_1;
|
|
30
|
+
const _moduleId = "vs/workbench/services/issue/browser/issueTroubleshoot";
|
|
30
31
|
var TroubleshootStage;
|
|
31
|
-
( (function(TroubleshootStage) {
|
|
32
|
+
( ((function(TroubleshootStage) {
|
|
32
33
|
TroubleshootStage[TroubleshootStage["EXTENSIONS"] = 1] = "EXTENSIONS";
|
|
33
34
|
TroubleshootStage[TroubleshootStage["WORKBENCH"] = 2] = "WORKBENCH";
|
|
34
|
-
})(TroubleshootStage || (TroubleshootStage = {})));
|
|
35
|
+
})(TroubleshootStage || (TroubleshootStage = {}))));
|
|
35
36
|
class TroubleShootState {
|
|
36
37
|
static fromJSON(raw) {
|
|
37
38
|
if (!raw) {
|
|
@@ -41,7 +42,9 @@ class TroubleShootState {
|
|
|
41
42
|
const data = JSON.parse(raw);
|
|
42
43
|
if ((data.stage === TroubleshootStage.EXTENSIONS || data.stage === TroubleshootStage.WORKBENCH)
|
|
43
44
|
&& typeof data.profile === 'string') {
|
|
44
|
-
return (
|
|
45
|
+
return (
|
|
46
|
+
(new TroubleShootState(data.stage, data.profile))
|
|
47
|
+
);
|
|
45
48
|
}
|
|
46
49
|
}
|
|
47
50
|
catch { }
|
|
@@ -77,25 +80,17 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
77
80
|
}
|
|
78
81
|
async start() {
|
|
79
82
|
if (this.isActive()) {
|
|
80
|
-
throw new Error('invalid state');
|
|
83
|
+
throw ( (new Error('invalid state')));
|
|
81
84
|
}
|
|
82
85
|
const res = await this.dialogService.confirm({
|
|
83
|
-
message: ( localizeWithPath(
|
|
84
|
-
'vs/workbench/services/issue/browser/issueTroubleshoot',
|
|
85
|
-
'troubleshoot issue',
|
|
86
|
-
"Troubleshoot Issue"
|
|
87
|
-
)),
|
|
86
|
+
message: ( localizeWithPath(_moduleId, 0, "Troubleshoot Issue")),
|
|
88
87
|
detail: ( localizeWithPath(
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
_moduleId,
|
|
89
|
+
1,
|
|
91
90
|
"Issue troubleshooting is a process to help you identify the cause for an issue. The cause for an issue can be a misconfiguration, due to an extension, or be {0} itself.\n\nDuring the process the window reloads repeatedly. Each time you must confirm if you are still seeing the issue.",
|
|
92
91
|
this.productService.nameLong
|
|
93
92
|
)),
|
|
94
|
-
primaryButton: ( localizeWithPath(
|
|
95
|
-
'vs/workbench/services/issue/browser/issueTroubleshoot',
|
|
96
|
-
{ key: 'msg', comment: ['&& denotes a mnemonic'] },
|
|
97
|
-
"&&Troubleshoot Issue"
|
|
98
|
-
)),
|
|
93
|
+
primaryButton: ( localizeWithPath(_moduleId, 2, "&&Troubleshoot Issue")),
|
|
99
94
|
custom: true
|
|
100
95
|
});
|
|
101
96
|
if (!res.confirmed) {
|
|
@@ -103,7 +98,7 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
103
98
|
}
|
|
104
99
|
const originalProfile = this.userDataProfileService.currentProfile;
|
|
105
100
|
await this.userDataProfileImportExportService.createTroubleshootProfile();
|
|
106
|
-
this.state = ( new TroubleShootState(TroubleshootStage.EXTENSIONS, originalProfile.id));
|
|
101
|
+
this.state = ( (new TroubleShootState(TroubleshootStage.EXTENSIONS, originalProfile.id)));
|
|
107
102
|
await this.resume();
|
|
108
103
|
}
|
|
109
104
|
async resume() {
|
|
@@ -135,12 +130,12 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
135
130
|
}
|
|
136
131
|
async reproduceIssueWithExtensionsDisabled() {
|
|
137
132
|
if (!(await this.extensionManagementService.getInstalled(1 )).length) {
|
|
138
|
-
this.state = ( new TroubleShootState(TroubleshootStage.WORKBENCH, this.state.profile));
|
|
133
|
+
this.state = ( (new TroubleShootState(TroubleshootStage.WORKBENCH, this.state.profile)));
|
|
139
134
|
return;
|
|
140
135
|
}
|
|
141
136
|
const result = await this.askToReproduceIssue(( localizeWithPath(
|
|
142
|
-
|
|
143
|
-
|
|
137
|
+
_moduleId,
|
|
138
|
+
3,
|
|
144
139
|
"Issue troubleshooting is active and has temporarily disabled all installed extensions. Check if you can still reproduce the problem and proceed by selecting from these options."
|
|
145
140
|
)));
|
|
146
141
|
if (result === 'good') {
|
|
@@ -148,7 +143,7 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
148
143
|
await this.reproduceIssueWithExtensionsBisect(profile);
|
|
149
144
|
}
|
|
150
145
|
if (result === 'bad') {
|
|
151
|
-
this.state = ( new TroubleShootState(TroubleshootStage.WORKBENCH, this.state.profile));
|
|
146
|
+
this.state = ( (new TroubleShootState(TroubleshootStage.WORKBENCH, this.state.profile)));
|
|
152
147
|
}
|
|
153
148
|
if (result === 'stop') {
|
|
154
149
|
await this.stop();
|
|
@@ -158,8 +153,8 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
158
153
|
await this.userDataProfileManagementService.createAndEnterTransientProfile();
|
|
159
154
|
this.updateState(this.state);
|
|
160
155
|
const result = await this.askToReproduceIssue(( localizeWithPath(
|
|
161
|
-
|
|
162
|
-
|
|
156
|
+
_moduleId,
|
|
157
|
+
4,
|
|
163
158
|
"Issue troubleshooting is active and has temporarily reset your configurations to defaults. Check if you can still reproduce the problem and proceed by selecting from these options."
|
|
164
159
|
)));
|
|
165
160
|
if (result === 'stop') {
|
|
@@ -167,15 +162,15 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
167
162
|
}
|
|
168
163
|
if (result === 'good') {
|
|
169
164
|
await this.askToReportIssue(( localizeWithPath(
|
|
170
|
-
|
|
171
|
-
|
|
165
|
+
_moduleId,
|
|
166
|
+
5,
|
|
172
167
|
"Issue troubleshooting has identified that the issue is caused by your configurations. Please report the issue by exporting your configurations using \"Export Profile\" command and share the file in the issue report."
|
|
173
168
|
)));
|
|
174
169
|
}
|
|
175
170
|
if (result === 'bad') {
|
|
176
171
|
await this.askToReportIssue(( localizeWithPath(
|
|
177
|
-
|
|
178
|
-
|
|
172
|
+
_moduleId,
|
|
173
|
+
6,
|
|
179
174
|
"Issue troubleshooting has identified that the issue is with {0}.",
|
|
180
175
|
this.productService.nameLong
|
|
181
176
|
)));
|
|
@@ -188,29 +183,23 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
188
183
|
await this.hostService.reload();
|
|
189
184
|
}
|
|
190
185
|
askToReproduceIssue(message) {
|
|
191
|
-
return (
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
'
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
)
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
const stop = {
|
|
209
|
-
label: ( localizeWithPath('vs/workbench/services/issue/browser/issueTroubleshoot', 'Stop', "Stop")),
|
|
210
|
-
run: () => c('stop')
|
|
211
|
-
};
|
|
212
|
-
this.notificationHandle = this.notificationService.prompt(Severity$1.Info, message, [goodPrompt, badPrompt, stop], { sticky: true, priority: NotificationPriority.URGENT });
|
|
213
|
-
}));
|
|
186
|
+
return (
|
|
187
|
+
(new Promise((c, e) => {
|
|
188
|
+
const goodPrompt = {
|
|
189
|
+
label: ( localizeWithPath(_moduleId, 7, "I Can't Reproduce")),
|
|
190
|
+
run: () => c('good')
|
|
191
|
+
};
|
|
192
|
+
const badPrompt = {
|
|
193
|
+
label: ( localizeWithPath(_moduleId, 8, "I Can Reproduce")),
|
|
194
|
+
run: () => c('bad')
|
|
195
|
+
};
|
|
196
|
+
const stop = {
|
|
197
|
+
label: ( localizeWithPath(_moduleId, 9, "Stop")),
|
|
198
|
+
run: () => c('stop')
|
|
199
|
+
};
|
|
200
|
+
this.notificationHandle = this.notificationService.prompt(Severity$1.Info, message, [goodPrompt, badPrompt, stop], { sticky: true, priority: NotificationPriority.URGENT });
|
|
201
|
+
}))
|
|
202
|
+
);
|
|
214
203
|
}
|
|
215
204
|
async askToReportIssue(message) {
|
|
216
205
|
let isCheckedInInsiders = false;
|
|
@@ -219,14 +208,10 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
219
208
|
if (res === 'good') {
|
|
220
209
|
await this.dialogService.prompt({
|
|
221
210
|
type: Severity$1.Info,
|
|
222
|
-
message: ( localizeWithPath(
|
|
223
|
-
'vs/workbench/services/issue/browser/issueTroubleshoot',
|
|
224
|
-
'troubleshoot issue',
|
|
225
|
-
"Troubleshoot Issue"
|
|
226
|
-
)),
|
|
211
|
+
message: ( localizeWithPath(_moduleId, 0, "Troubleshoot Issue")),
|
|
227
212
|
detail: ( localizeWithPath(
|
|
228
|
-
|
|
229
|
-
|
|
213
|
+
_moduleId,
|
|
214
|
+
10,
|
|
230
215
|
"This likely means that the issue has been addressed already and will be available in an upcoming release. You can safely use {0} insiders until the new stable version is available.",
|
|
231
216
|
this.productService.nameLong
|
|
232
217
|
)),
|
|
@@ -249,25 +234,12 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
249
234
|
async askToReproduceIssueWithInsiders() {
|
|
250
235
|
const confirmRes = await this.dialogService.confirm({
|
|
251
236
|
type: 'info',
|
|
252
|
-
message: ( localizeWithPath(
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
"Troubleshoot Issue"
|
|
256
|
-
)),
|
|
257
|
-
primaryButton: ( localizeWithPath(
|
|
258
|
-
'vs/workbench/services/issue/browser/issueTroubleshoot',
|
|
259
|
-
'download insiders',
|
|
260
|
-
"Download {0} Insiders",
|
|
261
|
-
this.productService.nameLong
|
|
262
|
-
)),
|
|
263
|
-
cancelButton: ( localizeWithPath(
|
|
264
|
-
'vs/workbench/services/issue/browser/issueTroubleshoot',
|
|
265
|
-
'report anyway',
|
|
266
|
-
"Report Issue Anyway"
|
|
267
|
-
)),
|
|
237
|
+
message: ( localizeWithPath(_moduleId, 0, "Troubleshoot Issue")),
|
|
238
|
+
primaryButton: ( localizeWithPath(_moduleId, 11, "Download {0} Insiders", this.productService.nameLong)),
|
|
239
|
+
cancelButton: ( localizeWithPath(_moduleId, 12, "Report Issue Anyway")),
|
|
268
240
|
detail: ( localizeWithPath(
|
|
269
|
-
|
|
270
|
-
|
|
241
|
+
_moduleId,
|
|
242
|
+
13,
|
|
271
243
|
"Please try to download and reproduce the issue in {0} insiders.",
|
|
272
244
|
this.productService.nameLong
|
|
273
245
|
)),
|
|
@@ -278,39 +250,27 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
278
250
|
if (!confirmRes.confirmed) {
|
|
279
251
|
return undefined;
|
|
280
252
|
}
|
|
281
|
-
const opened = await this.openerService.open(( URI.parse('https://aka.ms/vscode-insiders')));
|
|
253
|
+
const opened = await this.openerService.open(( (URI.parse('https://aka.ms/vscode-insiders'))));
|
|
282
254
|
if (!opened) {
|
|
283
255
|
return undefined;
|
|
284
256
|
}
|
|
285
257
|
const res = await this.dialogService.prompt({
|
|
286
258
|
type: 'info',
|
|
287
|
-
message: ( localizeWithPath(
|
|
288
|
-
'vs/workbench/services/issue/browser/issueTroubleshoot',
|
|
289
|
-
'troubleshoot issue',
|
|
290
|
-
"Troubleshoot Issue"
|
|
291
|
-
)),
|
|
259
|
+
message: ( localizeWithPath(_moduleId, 0, "Troubleshoot Issue")),
|
|
292
260
|
buttons: [{
|
|
293
|
-
label: ( localizeWithPath(
|
|
294
|
-
'vs/workbench/services/issue/browser/issueTroubleshoot',
|
|
295
|
-
'good',
|
|
296
|
-
"I can't reproduce"
|
|
297
|
-
)),
|
|
261
|
+
label: ( localizeWithPath(_moduleId, 14, "I can't reproduce")),
|
|
298
262
|
run: () => 'good'
|
|
299
263
|
}, {
|
|
300
|
-
label: ( localizeWithPath(
|
|
301
|
-
'vs/workbench/services/issue/browser/issueTroubleshoot',
|
|
302
|
-
'bad',
|
|
303
|
-
"I can reproduce"
|
|
304
|
-
)),
|
|
264
|
+
label: ( localizeWithPath(_moduleId, 15, "I can reproduce")),
|
|
305
265
|
run: () => 'bad'
|
|
306
266
|
}],
|
|
307
267
|
cancelButton: {
|
|
308
|
-
label: ( localizeWithPath(
|
|
268
|
+
label: ( localizeWithPath(_moduleId, 16, "Stop")),
|
|
309
269
|
run: () => 'stop'
|
|
310
270
|
},
|
|
311
271
|
detail: ( localizeWithPath(
|
|
312
|
-
|
|
313
|
-
|
|
272
|
+
_moduleId,
|
|
273
|
+
17,
|
|
314
274
|
"Please try to reproduce the issue in {0} insiders and confirm if the issue exists there.",
|
|
315
275
|
this.productService.nameLong
|
|
316
276
|
)),
|
|
@@ -340,25 +300,25 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
340
300
|
}
|
|
341
301
|
}
|
|
342
302
|
};
|
|
343
|
-
TroubleshootIssueService = TroubleshootIssueService_1 = ( __decorate([
|
|
344
|
-
( __param(0, IUserDataProfileService)),
|
|
345
|
-
( __param(1, IUserDataProfilesService)),
|
|
346
|
-
( __param(2, IUserDataProfileManagementService)),
|
|
347
|
-
( __param(3, IUserDataProfileImportExportService)),
|
|
348
|
-
( __param(4, IDialogService)),
|
|
349
|
-
( __param(5, IExtensionBisectService)),
|
|
350
|
-
( __param(6, INotificationService)),
|
|
351
|
-
( __param(7, IExtensionManagementService)),
|
|
352
|
-
( __param(8, IWorkbenchExtensionEnablementService)),
|
|
353
|
-
( __param(9, IWorkbenchIssueService)),
|
|
354
|
-
( __param(10, IProductService)),
|
|
355
|
-
( __param(11, IHostService)),
|
|
356
|
-
( __param(12, IStorageService)),
|
|
357
|
-
( __param(13, IOpenerService))
|
|
358
|
-
], TroubleshootIssueService));
|
|
303
|
+
TroubleshootIssueService = TroubleshootIssueService_1 = ( (__decorate([
|
|
304
|
+
( (__param(0, IUserDataProfileService))),
|
|
305
|
+
( (__param(1, IUserDataProfilesService))),
|
|
306
|
+
( (__param(2, IUserDataProfileManagementService))),
|
|
307
|
+
( (__param(3, IUserDataProfileImportExportService))),
|
|
308
|
+
( (__param(4, IDialogService))),
|
|
309
|
+
( (__param(5, IExtensionBisectService))),
|
|
310
|
+
( (__param(6, INotificationService))),
|
|
311
|
+
( (__param(7, IExtensionManagementService))),
|
|
312
|
+
( (__param(8, IWorkbenchExtensionEnablementService))),
|
|
313
|
+
( (__param(9, IWorkbenchIssueService))),
|
|
314
|
+
( (__param(10, IProductService))),
|
|
315
|
+
( (__param(11, IHostService))),
|
|
316
|
+
( (__param(12, IStorageService))),
|
|
317
|
+
( (__param(13, IOpenerService)))
|
|
318
|
+
], TroubleshootIssueService)));
|
|
359
319
|
let IssueTroubleshootUi = class IssueTroubleshootUi extends Disposable {
|
|
360
320
|
static { IssueTroubleshootUi_1 = this; }
|
|
361
|
-
static { this.ctxIsTroubleshootActive = ( new RawContextKey('isIssueTroubleshootActive', false)); }
|
|
321
|
+
static { this.ctxIsTroubleshootActive = ( (new RawContextKey('isIssueTroubleshootActive', false))); }
|
|
362
322
|
constructor(contextKeyService, troubleshootIssueService, storageService) {
|
|
363
323
|
super();
|
|
364
324
|
this.contextKeyService = contextKeyService;
|
|
@@ -367,7 +327,7 @@ let IssueTroubleshootUi = class IssueTroubleshootUi extends Disposable {
|
|
|
367
327
|
if (troubleshootIssueService.isActive()) {
|
|
368
328
|
troubleshootIssueService.resume();
|
|
369
329
|
}
|
|
370
|
-
this._register(storageService.onDidChangeValue(0 , TroubleshootIssueService.storageKey, this._register(( new DisposableStore())))(() => {
|
|
330
|
+
this._register(storageService.onDidChangeValue(0 , TroubleshootIssueService.storageKey, this._register(( (new DisposableStore()))))(() => {
|
|
371
331
|
this.updateContext();
|
|
372
332
|
}));
|
|
373
333
|
}
|
|
@@ -375,24 +335,24 @@ let IssueTroubleshootUi = class IssueTroubleshootUi extends Disposable {
|
|
|
375
335
|
IssueTroubleshootUi_1.ctxIsTroubleshootActive.bindTo(this.contextKeyService).set(this.troubleshootIssueService.isActive());
|
|
376
336
|
}
|
|
377
337
|
};
|
|
378
|
-
IssueTroubleshootUi = IssueTroubleshootUi_1 = ( __decorate([
|
|
379
|
-
( __param(0, IContextKeyService)),
|
|
380
|
-
( __param(1, ITroubleshootIssueService)),
|
|
381
|
-
( __param(2, IStorageService))
|
|
382
|
-
], IssueTroubleshootUi));
|
|
383
|
-
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(IssueTroubleshootUi, 3 );
|
|
338
|
+
IssueTroubleshootUi = IssueTroubleshootUi_1 = ( (__decorate([
|
|
339
|
+
( (__param(0, IContextKeyService))),
|
|
340
|
+
( (__param(1, ITroubleshootIssueService))),
|
|
341
|
+
( (__param(2, IStorageService)))
|
|
342
|
+
], IssueTroubleshootUi)));
|
|
343
|
+
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(IssueTroubleshootUi, 3 );
|
|
384
344
|
registerAction2(class TroubleshootIssueAction extends Action2 {
|
|
385
345
|
constructor() {
|
|
386
346
|
super({
|
|
387
347
|
id: 'workbench.action.troubleshootIssue.start',
|
|
388
|
-
title: ( localize2WithPath(
|
|
389
|
-
'vs/workbench/services/issue/browser/issueTroubleshoot',
|
|
390
|
-
'troubleshootIssue',
|
|
391
|
-
'Troubleshoot Issue...'
|
|
392
|
-
)),
|
|
348
|
+
title: ( localize2WithPath(_moduleId, 18, 'Troubleshoot Issue...')),
|
|
393
349
|
category: Categories.Help,
|
|
394
350
|
f1: true,
|
|
395
|
-
precondition: ( ContextKeyExpr.and(
|
|
351
|
+
precondition: ( (ContextKeyExpr.and(
|
|
352
|
+
(IssueTroubleshootUi.ctxIsTroubleshootActive.negate()),
|
|
353
|
+
(RemoteNameContext.isEqualTo('')),
|
|
354
|
+
(IsWebContext.negate())
|
|
355
|
+
))),
|
|
396
356
|
});
|
|
397
357
|
}
|
|
398
358
|
run(accessor) {
|
|
@@ -403,11 +363,7 @@ registerAction2(class extends Action2 {
|
|
|
403
363
|
constructor() {
|
|
404
364
|
super({
|
|
405
365
|
id: 'workbench.action.troubleshootIssue.stop',
|
|
406
|
-
title: ( localize2WithPath(
|
|
407
|
-
'vs/workbench/services/issue/browser/issueTroubleshoot',
|
|
408
|
-
'title.stop',
|
|
409
|
-
'Stop Troubleshoot Issue'
|
|
410
|
-
)),
|
|
366
|
+
title: ( localize2WithPath(_moduleId, 19, 'Stop Troubleshoot Issue')),
|
|
411
367
|
category: Categories.Help,
|
|
412
368
|
f1: true,
|
|
413
369
|
precondition: IssueTroubleshootUi.ctxIsTroubleshootActive
|