@codingame/monaco-vscode-issue-service-override 11.0.2 → 11.1.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 +2 -2
- package/vscode/src/vs/workbench/contrib/issue/browser/baseIssueReporterService.js +32 -32
- package/vscode/src/vs/workbench/contrib/issue/browser/issue.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/issue/browser/issueFormService.js +6 -6
- package/vscode/src/vs/workbench/contrib/issue/browser/issueReporterPage.js +30 -30
- package/vscode/src/vs/workbench/contrib/issue/browser/issueReporterService.js +1 -1
- package/vscode/src/vs/workbench/contrib/issue/browser/issueTroubleshoot.js +23 -23
- package/vscode/src/vs/workbench/contrib/issue/common/issue.contribution.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-issue-service-override",
|
|
3
|
-
"version": "11.0
|
|
3
|
+
"version": "11.1.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@11.0
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.1.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -234,7 +234,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
234
234
|
const extensionsSelector = this.getElementById('extension-selector');
|
|
235
235
|
if (extensionsSelector) {
|
|
236
236
|
const { selectedExtension } = this.issueReporterModel.getData();
|
|
237
|
-
reset(extensionsSelector, this.makeOption('', ( localize(
|
|
237
|
+
reset(extensionsSelector, this.makeOption('', ( localize(10441, "Select extension")), true), ...( (extensionOptions.map(extension => makeOption(extension, selectedExtension)))));
|
|
238
238
|
if (!selectedExtension) {
|
|
239
239
|
extensionsSelector.selectedIndex = 0;
|
|
240
240
|
}
|
|
@@ -315,11 +315,11 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
315
315
|
const info = containingElement && containingElement.lastElementChild;
|
|
316
316
|
if (info && info.classList.contains('hidden')) {
|
|
317
317
|
show(info);
|
|
318
|
-
label.textContent = ( localize(
|
|
318
|
+
label.textContent = ( localize(10442, "hide"));
|
|
319
319
|
}
|
|
320
320
|
else {
|
|
321
321
|
hide(info);
|
|
322
|
-
label.textContent = ( localize(
|
|
322
|
+
label.textContent = ( localize(10443, "show"));
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
});
|
|
@@ -339,16 +339,16 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
339
339
|
}
|
|
340
340
|
const descriptionTextArea = this.getElementById('issue-title');
|
|
341
341
|
if (value === IssueSource.VSCode) {
|
|
342
|
-
descriptionTextArea.placeholder = ( localize(
|
|
342
|
+
descriptionTextArea.placeholder = ( localize(10444, "E.g Workbench is missing problems panel"));
|
|
343
343
|
}
|
|
344
344
|
else if (value === IssueSource.Extension) {
|
|
345
|
-
descriptionTextArea.placeholder = ( localize(
|
|
345
|
+
descriptionTextArea.placeholder = ( localize(10445, "E.g. Missing alt text on extension readme image"));
|
|
346
346
|
}
|
|
347
347
|
else if (value === IssueSource.Marketplace) {
|
|
348
|
-
descriptionTextArea.placeholder = ( localize(
|
|
348
|
+
descriptionTextArea.placeholder = ( localize(10446, "E.g Cannot disable installed extension"));
|
|
349
349
|
}
|
|
350
350
|
else {
|
|
351
|
-
descriptionTextArea.placeholder = ( localize(
|
|
351
|
+
descriptionTextArea.placeholder = ( localize(10447, "Please enter a title"));
|
|
352
352
|
}
|
|
353
353
|
let fileOnExtension, fileOnMarketplace = false;
|
|
354
354
|
if (value === IssueSource.Extension) {
|
|
@@ -453,16 +453,16 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
453
453
|
updatePreviewButtonState() {
|
|
454
454
|
if (this.isPreviewEnabled()) {
|
|
455
455
|
if (this.data.githubAccessToken) {
|
|
456
|
-
this.previewButton.label = ( localize(
|
|
456
|
+
this.previewButton.label = ( localize(10448, "Create on GitHub"));
|
|
457
457
|
}
|
|
458
458
|
else {
|
|
459
|
-
this.previewButton.label = ( localize(
|
|
459
|
+
this.previewButton.label = ( localize(10449, "Preview on GitHub"));
|
|
460
460
|
}
|
|
461
461
|
this.previewButton.enabled = true;
|
|
462
462
|
}
|
|
463
463
|
else {
|
|
464
464
|
this.previewButton.enabled = false;
|
|
465
|
-
this.previewButton.label = ( localize(
|
|
465
|
+
this.previewButton.label = ( localize(10450, "Loading data..."));
|
|
466
466
|
}
|
|
467
467
|
const issueRepoName = this.getElementById('show-repo-name');
|
|
468
468
|
const selectedExtension = this.issueReporterModel.getData().selectedExtension;
|
|
@@ -581,7 +581,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
581
581
|
}
|
|
582
582
|
else {
|
|
583
583
|
const message = $('div.list-title');
|
|
584
|
-
message.textContent = ( localize(
|
|
584
|
+
message.textContent = ( localize(10451, "GitHub query limit exceeded. Please wait."));
|
|
585
585
|
similarIssues.appendChild(message);
|
|
586
586
|
const resetTime = response.headers.get('X-RateLimit-Reset');
|
|
587
587
|
const timeToWait = resetTime ? parseInt(resetTime) - Math.floor(Date.now() / 1000) : 1;
|
|
@@ -631,7 +631,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
631
631
|
if (results.length) {
|
|
632
632
|
const issues = $('div.issues-container');
|
|
633
633
|
const issuesText = $('div.list-title');
|
|
634
|
-
issuesText.textContent = ( localize(
|
|
634
|
+
issuesText.textContent = ( localize(10452, "Similar issues"));
|
|
635
635
|
this.numberOfSearchResultsDisplayed = results.length < 5 ? results.length : 5;
|
|
636
636
|
for (let i = 0; i < this.numberOfSearchResultsDisplayed; i++) {
|
|
637
637
|
const issue = results[i];
|
|
@@ -647,8 +647,8 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
647
647
|
const issueIcon = $('span.issue-icon');
|
|
648
648
|
issueIcon.appendChild(renderIcon(issue.state === 'open' ? Codicon.issueOpened : Codicon.issueClosed));
|
|
649
649
|
const issueStateLabel = $('span.issue-state.label');
|
|
650
|
-
issueStateLabel.textContent = issue.state === 'open' ? ( localize(
|
|
651
|
-
issueState.title = issue.state === 'open' ? ( localize(
|
|
650
|
+
issueStateLabel.textContent = issue.state === 'open' ? ( localize(10453, "Open")) : ( localize(10454, "Closed"));
|
|
651
|
+
issueState.title = issue.state === 'open' ? ( localize(10453, "Open")) : ( localize(10454, "Closed"));
|
|
652
652
|
issueState.appendChild(issueIcon);
|
|
653
653
|
issueState.appendChild(issueStateLabel);
|
|
654
654
|
item = $('div.issue', undefined, issueState, link);
|
|
@@ -663,7 +663,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
663
663
|
}
|
|
664
664
|
else {
|
|
665
665
|
const message = $('div.list-title');
|
|
666
|
-
message.textContent = ( localize(
|
|
666
|
+
message.textContent = ( localize(10455, "No similar issues found"));
|
|
667
667
|
similarIssues.appendChild(message);
|
|
668
668
|
}
|
|
669
669
|
}
|
|
@@ -671,7 +671,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
671
671
|
const makeOption = (issueType, description) => $('option', { 'value': issueType.valueOf() }, escape(description));
|
|
672
672
|
const typeSelect = this.getElementById('issue-type');
|
|
673
673
|
const { issueType } = this.issueReporterModel.getData();
|
|
674
|
-
reset(typeSelect, makeOption(0 , ( localize(
|
|
674
|
+
reset(typeSelect, makeOption(0 , ( localize(10456, "Bug Report"))), makeOption(2 , ( localize(10457, "Feature Request"))), makeOption(1 , ( localize(10458, "Performance Issue (freeze, slow, crash)"))));
|
|
675
675
|
typeSelect.value = ( (issueType.toString()));
|
|
676
676
|
this.setSourceOptions();
|
|
677
677
|
}
|
|
@@ -701,14 +701,14 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
703
|
sourceSelect.innerText = '';
|
|
704
|
-
sourceSelect.append(this.makeOption('', ( localize(
|
|
705
|
-
sourceSelect.append(this.makeOption(IssueSource.VSCode, ( localize(
|
|
706
|
-
sourceSelect.append(this.makeOption(IssueSource.Extension, ( localize(
|
|
704
|
+
sourceSelect.append(this.makeOption('', ( localize(10459, "Select source")), true));
|
|
705
|
+
sourceSelect.append(this.makeOption(IssueSource.VSCode, ( localize(10460, "Visual Studio Code")), false));
|
|
706
|
+
sourceSelect.append(this.makeOption(IssueSource.Extension, ( localize(10461, "A VS Code extension")), false));
|
|
707
707
|
if (this.product.reportMarketplaceIssueUrl) {
|
|
708
|
-
sourceSelect.append(this.makeOption(IssueSource.Marketplace, ( localize(
|
|
708
|
+
sourceSelect.append(this.makeOption(IssueSource.Marketplace, ( localize(10462, "Extensions Marketplace")), false));
|
|
709
709
|
}
|
|
710
710
|
if (issueType !== 2 ) {
|
|
711
|
-
sourceSelect.append(this.makeOption(IssueSource.Unknown, ( localize(
|
|
711
|
+
sourceSelect.append(this.makeOption(IssueSource.Unknown, ( localize(10463, "Don't know")), false));
|
|
712
712
|
}
|
|
713
713
|
if (selected !== -1 && selected < sourceSelect.options.length) {
|
|
714
714
|
sourceSelect.selectedIndex = selected;
|
|
@@ -752,13 +752,13 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
752
752
|
if (selectedExtension && this.nonGitHubIssueUrl) {
|
|
753
753
|
hide(titleTextArea);
|
|
754
754
|
hide(descriptionTextArea);
|
|
755
|
-
reset(descriptionTitle, ( localize(
|
|
755
|
+
reset(descriptionTitle, ( localize(10464, "This extension handles issues outside of VS Code")));
|
|
756
756
|
reset(descriptionSubtitle, ( localize(
|
|
757
|
-
|
|
757
|
+
10465,
|
|
758
758
|
"The '{0}' extension prefers to use an external issue reporter. To be taken to that issue reporting experience, click the button below.",
|
|
759
759
|
selectedExtension.displayName
|
|
760
760
|
)));
|
|
761
|
-
this.previewButton.label = ( localize(
|
|
761
|
+
this.previewButton.label = ( localize(10466, "Open External Issue Reporter"));
|
|
762
762
|
return;
|
|
763
763
|
}
|
|
764
764
|
if (fileOnExtension && selectedExtension?.data) {
|
|
@@ -785,9 +785,9 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
785
785
|
show(extensionsBlock);
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
|
-
reset(descriptionTitle, ( localize(
|
|
788
|
+
reset(descriptionTitle, ( localize(10467, "Steps to Reproduce")) + ' ', $('span.required-input', undefined, '*'));
|
|
789
789
|
reset(descriptionSubtitle, ( localize(
|
|
790
|
-
|
|
790
|
+
10468,
|
|
791
791
|
"Share the steps needed to reliably reproduce the problem. Please include actual and expected results. We support GitHub-flavored Markdown. You will be able to edit your issue and add screenshots when we preview it on GitHub."
|
|
792
792
|
)));
|
|
793
793
|
}
|
|
@@ -805,16 +805,16 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
805
805
|
else if (!fileOnMarketplace) {
|
|
806
806
|
show(extensionsBlock);
|
|
807
807
|
}
|
|
808
|
-
reset(descriptionTitle, ( localize(
|
|
808
|
+
reset(descriptionTitle, ( localize(10467, "Steps to Reproduce")) + ' ', $('span.required-input', undefined, '*'));
|
|
809
809
|
reset(descriptionSubtitle, ( localize(
|
|
810
|
-
|
|
810
|
+
10469,
|
|
811
811
|
"When did this performance issue happen? Does it occur on startup or after a specific series of actions? We support GitHub-flavored Markdown. You will be able to edit your issue and add screenshots when we preview it on GitHub."
|
|
812
812
|
)));
|
|
813
813
|
}
|
|
814
814
|
else if (issueType === 2 ) {
|
|
815
|
-
reset(descriptionTitle, ( localize(
|
|
815
|
+
reset(descriptionTitle, ( localize(10470, "Description")) + ' ', $('span.required-input', undefined, '*'));
|
|
816
816
|
reset(descriptionSubtitle, ( localize(
|
|
817
|
-
|
|
817
|
+
10471,
|
|
818
818
|
"Please describe the feature you would like to see. We support GitHub-flavored Markdown. You will be able to edit your issue and add screenshots when we preview it on GitHub."
|
|
819
819
|
)));
|
|
820
820
|
}
|
|
@@ -948,7 +948,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
948
948
|
throw ( (new CancellationError()));
|
|
949
949
|
}
|
|
950
950
|
return baseUrl + `&body=${encodeURIComponent(( localize(
|
|
951
|
-
|
|
951
|
+
10472,
|
|
952
952
|
"We have written the needed data into your clipboard because it was too large to send. Please paste."
|
|
953
953
|
)))}`;
|
|
954
954
|
}
|
|
@@ -1118,7 +1118,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
1118
1118
|
const target = this.window.document.querySelector('.block-extensions .block-info');
|
|
1119
1119
|
if (target) {
|
|
1120
1120
|
if (this.disableExtensions) {
|
|
1121
|
-
reset(target, ( localize(
|
|
1121
|
+
reset(target, ( localize(10473, "Extensions are disabled")));
|
|
1122
1122
|
return;
|
|
1123
1123
|
}
|
|
1124
1124
|
const themeExclusionStr = numThemeExtensions ? `\n(${numThemeExtensions} theme extensions excluded)` : '';
|
|
@@ -32,5 +32,5 @@ WebIssueContribution = ( (__decorate([
|
|
|
32
32
|
], WebIssueContribution)));
|
|
33
33
|
( (Registry.as(Extensions$1.Workbench))).registerWorkbenchContribution(WebIssueContribution, 3 );
|
|
34
34
|
CommandsRegistry.registerCommand('_issues.getSystemStatus', (accessor) => {
|
|
35
|
-
return ( localize(
|
|
35
|
+
return ( localize(2702, "The --status argument is not yet supported in browsers."));
|
|
36
36
|
});
|
|
@@ -111,19 +111,19 @@ let IssueFormService = class IssueFormService {
|
|
|
111
111
|
await this.dialogService.prompt({
|
|
112
112
|
type: Severity$1.Warning,
|
|
113
113
|
message: ( localize(
|
|
114
|
-
|
|
114
|
+
2697,
|
|
115
115
|
"Your input will not be saved. Are you sure you want to close this window?"
|
|
116
116
|
)),
|
|
117
117
|
buttons: [
|
|
118
118
|
{
|
|
119
|
-
label: ( localize(
|
|
119
|
+
label: ( localize(2698, "&&Yes")),
|
|
120
120
|
run: () => {
|
|
121
121
|
this.closeReporter();
|
|
122
122
|
this.issueReporterWindow = null;
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
|
-
label: ( localize(
|
|
126
|
+
label: ( localize(2699, "Cancel")),
|
|
127
127
|
run: () => { }
|
|
128
128
|
}
|
|
129
129
|
]
|
|
@@ -134,16 +134,16 @@ let IssueFormService = class IssueFormService {
|
|
|
134
134
|
await this.dialogService.prompt({
|
|
135
135
|
type: Severity$1.Warning,
|
|
136
136
|
message: ( localize(
|
|
137
|
-
|
|
137
|
+
2700,
|
|
138
138
|
"There is too much data to send to GitHub directly. The data will be copied to the clipboard, please paste it into the GitHub issue page that is opened."
|
|
139
139
|
)),
|
|
140
140
|
buttons: [
|
|
141
141
|
{
|
|
142
|
-
label: ( localize(
|
|
142
|
+
label: ( localize(2701, "&&OK")),
|
|
143
143
|
run: () => { result = true; }
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
|
-
label: ( localize(
|
|
146
|
+
label: ( localize(2699, "Cancel")),
|
|
147
147
|
run: () => { result = false; }
|
|
148
148
|
}
|
|
149
149
|
]
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import { escape } from 'vscode/vscode/vs/base/common/strings';
|
|
2
2
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
3
|
|
|
4
|
-
const sendSystemInfoLabel = escape(( localize(
|
|
5
|
-
const sendProcessInfoLabel = escape(( localize(
|
|
6
|
-
const sendWorkspaceInfoLabel = escape(( localize(
|
|
7
|
-
const sendExtensionsLabel = escape(( localize(
|
|
8
|
-
const sendExperimentsLabel = escape(( localize(
|
|
9
|
-
const sendExtensionData = escape(( localize(
|
|
4
|
+
const sendSystemInfoLabel = escape(( localize(6153, "Include my system information")));
|
|
5
|
+
const sendProcessInfoLabel = escape(( localize(6154, "Include my currently running processes")));
|
|
6
|
+
const sendWorkspaceInfoLabel = escape(( localize(6155, "Include my workspace metadata")));
|
|
7
|
+
const sendExtensionsLabel = escape(( localize(6156, "Include my enabled extensions")));
|
|
8
|
+
const sendExperimentsLabel = escape(( localize(6157, "Include A/B experiment info")));
|
|
9
|
+
const sendExtensionData = escape(( localize(6158, "Include additional extension info")));
|
|
10
10
|
const reviewGuidanceLabel = ( localize(
|
|
11
|
-
|
|
11
|
+
6159,
|
|
12
12
|
'Before you report an issue here please <a href="https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions" target="_blank">review the guidance we provide</a>.'
|
|
13
13
|
));
|
|
14
14
|
var BaseHtml = () => `
|
|
15
15
|
<div class="issue-reporter" id="issue-reporter">
|
|
16
|
-
<div id="english" class="input-group hidden">${escape(( localize(
|
|
16
|
+
<div id="english" class="input-group hidden">${escape(( localize(6160, "Please complete the form in English.")))}</div>
|
|
17
17
|
|
|
18
18
|
<div id="review-guidance-help-text" class="input-group">${reviewGuidanceLabel}</div>
|
|
19
19
|
|
|
20
20
|
<div class="section">
|
|
21
21
|
<div class="input-group">
|
|
22
|
-
<label class="inline-label" for="issue-type">${escape(( localize(
|
|
22
|
+
<label class="inline-label" for="issue-type">${escape(( localize(6161, "This is a")))}</label>
|
|
23
23
|
<select id="issue-type" class="inline-form-control">
|
|
24
24
|
<!-- To be dynamically filled -->
|
|
25
25
|
</select>
|
|
26
26
|
</div>
|
|
27
27
|
|
|
28
28
|
<div class="input-group" id="problem-source">
|
|
29
|
-
<label class="inline-label" for="issue-source">${escape(( localize(
|
|
29
|
+
<label class="inline-label" for="issue-source">${escape(( localize(6162, "For")))} <span class="required-input">*</span></label>
|
|
30
30
|
<select id="issue-source" class="inline-form-control" required>
|
|
31
31
|
<!-- To be dynamically filled -->
|
|
32
32
|
</select>
|
|
33
|
-
<div id="issue-source-empty-error" class="validation-error hidden" role="alert">${escape(( localize(
|
|
33
|
+
<div id="issue-source-empty-error" class="validation-error hidden" role="alert">${escape(( localize(6163, "An issue source is required.")))}</div>
|
|
34
34
|
<div id="problem-source-help-text" class="instructions hidden">${escape(( localize(
|
|
35
|
-
|
|
35
|
+
6164,
|
|
36
36
|
"Try to reproduce the problem after {0}. If the problem only reproduces when extensions are active, it is likely an issue with an extension."
|
|
37
37
|
)))
|
|
38
|
-
.replace('{0}', () => `<span tabIndex=0 role="button" id="disableExtensions" class="workbenchCommand">${escape(( localize(
|
|
38
|
+
.replace('{0}', () => `<span tabIndex=0 role="button" id="disableExtensions" class="workbenchCommand">${escape(( localize(6165, "disabling all extensions and reloading the window")))}</span>`)}
|
|
39
39
|
</div>
|
|
40
40
|
|
|
41
41
|
<div id="extension-selection">
|
|
42
|
-
<label class="inline-label" for="extension-selector">${escape(( localize(
|
|
42
|
+
<label class="inline-label" for="extension-selector">${escape(( localize(6166, "Extension")))} <span class="required-input">*</span></label>
|
|
43
43
|
<select id="extension-selector" class="inline-form-control">
|
|
44
44
|
<!-- To be dynamically filled -->
|
|
45
45
|
</select>
|
|
46
46
|
<div id="extension-selection-validation-error" class="validation-error hidden" role="alert">${escape(( localize(
|
|
47
|
-
|
|
47
|
+
6167,
|
|
48
48
|
"The issue reporter is unable to create issues for this extension. Please visit {0} to report an issue."
|
|
49
49
|
)))
|
|
50
50
|
.replace('{0}', () => `<span tabIndex=0 role="button" id="extensionBugsLink" class="workbenchCommand"><!-- To be dynamically filled --></span>`)}</div>
|
|
51
51
|
<div id="extension-selection-validation-error-no-url" class="validation-error hidden" role="alert">
|
|
52
52
|
${escape(( localize(
|
|
53
|
-
|
|
53
|
+
6168,
|
|
54
54
|
"The issue reporter is unable to create issues for this extension, as it does not specify a URL for reporting issues. Please check the marketplace page of this extension to see if other instructions are available."
|
|
55
55
|
)))}
|
|
56
56
|
</div>
|
|
@@ -58,10 +58,10 @@ var BaseHtml = () => `
|
|
|
58
58
|
</div>
|
|
59
59
|
|
|
60
60
|
<div id="issue-title-container" class="input-group">
|
|
61
|
-
<label class="inline-label" for="issue-title">${escape(( localize(
|
|
62
|
-
<input id="issue-title" type="text" class="inline-form-control" placeholder="${escape(( localize(
|
|
63
|
-
<div id="issue-title-empty-error" class="validation-error hidden" role="alert">${escape(( localize(
|
|
64
|
-
<div id="issue-title-length-validation-error" class="validation-error hidden" role="alert">${escape(( localize(
|
|
61
|
+
<label class="inline-label" for="issue-title">${escape(( localize(6169, "Title")))} <span class="required-input">*</span></label>
|
|
62
|
+
<input id="issue-title" type="text" class="inline-form-control" placeholder="${escape(( localize(6170, "Please enter a title.")))}" required>
|
|
63
|
+
<div id="issue-title-empty-error" class="validation-error hidden" role="alert">${escape(( localize(6171, "A title is required.")))}</div>
|
|
64
|
+
<div id="issue-title-length-validation-error" class="validation-error hidden" role="alert">${escape(( localize(6172, "The title is too long.")))}</div>
|
|
65
65
|
<small id="similar-issues">
|
|
66
66
|
<!-- To be dynamically filled -->
|
|
67
67
|
</small>
|
|
@@ -77,10 +77,10 @@ var BaseHtml = () => `
|
|
|
77
77
|
<!-- To be dynamically filled -->
|
|
78
78
|
</div>
|
|
79
79
|
<div class="block-info-text">
|
|
80
|
-
<textarea name="description" id="description" placeholder="${escape(( localize(
|
|
80
|
+
<textarea name="description" id="description" placeholder="${escape(( localize(6173, "Please enter details.")))}" required></textarea>
|
|
81
81
|
</div>
|
|
82
|
-
<div id="description-empty-error" class="validation-error hidden" role="alert">${escape(( localize(
|
|
83
|
-
<div id="description-short-error" class="validation-error hidden" role="alert">${escape(( localize(
|
|
82
|
+
<div id="description-empty-error" class="validation-error hidden" role="alert">${escape(( localize(6174, "A description is required.")))}</div>
|
|
83
|
+
<div id="description-short-error" class="validation-error hidden" role="alert">${escape(( localize(6175, "Please provide a longer description.")))}</div>
|
|
84
84
|
</div>
|
|
85
85
|
|
|
86
86
|
<div class="system-info" id="block-container">
|
|
@@ -89,9 +89,9 @@ var BaseHtml = () => `
|
|
|
89
89
|
<label class="extension-caption" id="extension-caption" for="includeExtensionData">
|
|
90
90
|
${sendExtensionData}
|
|
91
91
|
<span id="ext-loading" hidden></span>
|
|
92
|
-
<span class="ext-parens" hidden>(</span><a href="#" class="showInfo" id="extension-id">${escape(( localize(
|
|
92
|
+
<span class="ext-parens" hidden>(</span><a href="#" class="showInfo" id="extension-id">${escape(( localize(6176, "show")))}</a><span class="ext-parens" hidden>)</span>
|
|
93
93
|
</label>
|
|
94
|
-
<pre class="block-info" id="extension-data" placeholder="${escape(( localize(
|
|
94
|
+
<pre class="block-info" id="extension-data" placeholder="${escape(( localize(6177, "Extension does not have additional data to include.")))}" style="white-space: pre-wrap; user-select: text;">
|
|
95
95
|
<!-- To be dynamically filled -->
|
|
96
96
|
</pre>
|
|
97
97
|
</div>
|
|
@@ -100,7 +100,7 @@ var BaseHtml = () => `
|
|
|
100
100
|
<input class="sendData" aria-label="${sendSystemInfoLabel}" type="checkbox" id="includeSystemInfo" checked/>
|
|
101
101
|
<label class="caption" for="includeSystemInfo">
|
|
102
102
|
${sendSystemInfoLabel}
|
|
103
|
-
(<a href="#" class="showInfo">${escape(( localize(
|
|
103
|
+
(<a href="#" class="showInfo">${escape(( localize(6176, "show")))}</a>)
|
|
104
104
|
</label>
|
|
105
105
|
<div class="block-info hidden">
|
|
106
106
|
<!-- To be dynamically filled -->
|
|
@@ -110,7 +110,7 @@ var BaseHtml = () => `
|
|
|
110
110
|
<input class="sendData" aria-label="${sendProcessInfoLabel}" type="checkbox" id="includeProcessInfo" checked/>
|
|
111
111
|
<label class="caption" for="includeProcessInfo">
|
|
112
112
|
${sendProcessInfoLabel}
|
|
113
|
-
(<a href="#" class="showInfo">${escape(( localize(
|
|
113
|
+
(<a href="#" class="showInfo">${escape(( localize(6176, "show")))}</a>)
|
|
114
114
|
</label>
|
|
115
115
|
<pre class="block-info hidden">
|
|
116
116
|
<code>
|
|
@@ -122,7 +122,7 @@ var BaseHtml = () => `
|
|
|
122
122
|
<input class="sendData" aria-label="${sendWorkspaceInfoLabel}" type="checkbox" id="includeWorkspaceInfo" checked/>
|
|
123
123
|
<label class="caption" for="includeWorkspaceInfo">
|
|
124
124
|
${sendWorkspaceInfoLabel}
|
|
125
|
-
(<a href="#" class="showInfo">${escape(( localize(
|
|
125
|
+
(<a href="#" class="showInfo">${escape(( localize(6176, "show")))}</a>)
|
|
126
126
|
</label>
|
|
127
127
|
<pre id="systemInfo" class="block-info hidden">
|
|
128
128
|
<code>
|
|
@@ -134,7 +134,7 @@ var BaseHtml = () => `
|
|
|
134
134
|
<input class="sendData" aria-label="${sendExtensionsLabel}" type="checkbox" id="includeExtensions" checked/>
|
|
135
135
|
<label class="caption" for="includeExtensions">
|
|
136
136
|
${sendExtensionsLabel}
|
|
137
|
-
(<a href="#" class="showInfo">${escape(( localize(
|
|
137
|
+
(<a href="#" class="showInfo">${escape(( localize(6176, "show")))}</a>)
|
|
138
138
|
</label>
|
|
139
139
|
<div id="systemInfo" class="block-info hidden">
|
|
140
140
|
<!-- To be dynamically filled -->
|
|
@@ -144,7 +144,7 @@ var BaseHtml = () => `
|
|
|
144
144
|
<input class="sendData" aria-label="${sendExperimentsLabel}" type="checkbox" id="includeExperiments" checked/>
|
|
145
145
|
<label class="caption" for="includeExperiments">
|
|
146
146
|
${sendExperimentsLabel}
|
|
147
|
-
(<a href="#" class="showInfo">${escape(( localize(
|
|
147
|
+
(<a href="#" class="showInfo">${escape(( localize(6176, "show")))}</a>)
|
|
148
148
|
</label>
|
|
149
149
|
<pre class="block-info hidden">
|
|
150
150
|
<!-- To be dynamically filled -->
|
|
@@ -23,7 +23,7 @@ let IssueWebReporter = class IssueWebReporter extends BaseIssueReporterService {
|
|
|
23
23
|
this.issueReporterModel.update({ issueType: issueType });
|
|
24
24
|
const descriptionTextArea = this.getElementById('issue-title');
|
|
25
25
|
if (descriptionTextArea) {
|
|
26
|
-
descriptionTextArea.placeholder = ( localize(
|
|
26
|
+
descriptionTextArea.placeholder = ( localize(6178, "Please enter a title"));
|
|
27
27
|
}
|
|
28
28
|
this.updatePreviewButtonState();
|
|
29
29
|
this.setSourceOptions();
|
|
@@ -82,13 +82,13 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
82
82
|
throw ( (new Error('invalid state')));
|
|
83
83
|
}
|
|
84
84
|
const res = await this.dialogService.confirm({
|
|
85
|
-
message: ( localize(
|
|
85
|
+
message: ( localize(2677, "Troubleshoot Issue")),
|
|
86
86
|
detail: ( localize(
|
|
87
|
-
|
|
87
|
+
2678,
|
|
88
88
|
"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.",
|
|
89
89
|
this.productService.nameLong
|
|
90
90
|
)),
|
|
91
|
-
primaryButton: ( localize(
|
|
91
|
+
primaryButton: ( localize(2679, "&&Troubleshoot Issue")),
|
|
92
92
|
custom: true
|
|
93
93
|
});
|
|
94
94
|
if (!res.confirmed) {
|
|
@@ -132,7 +132,7 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
132
132
|
return;
|
|
133
133
|
}
|
|
134
134
|
const result = await this.askToReproduceIssue(( localize(
|
|
135
|
-
|
|
135
|
+
2680,
|
|
136
136
|
"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."
|
|
137
137
|
)));
|
|
138
138
|
if (result === 'good') {
|
|
@@ -150,7 +150,7 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
150
150
|
await this.userDataProfileManagementService.createAndEnterTransientProfile();
|
|
151
151
|
this.updateState(this.state);
|
|
152
152
|
const result = await this.askToReproduceIssue(( localize(
|
|
153
|
-
|
|
153
|
+
2681,
|
|
154
154
|
"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."
|
|
155
155
|
)));
|
|
156
156
|
if (result === 'stop') {
|
|
@@ -158,13 +158,13 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
158
158
|
}
|
|
159
159
|
if (result === 'good') {
|
|
160
160
|
await this.askToReportIssue(( localize(
|
|
161
|
-
|
|
161
|
+
2682,
|
|
162
162
|
"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."
|
|
163
163
|
)));
|
|
164
164
|
}
|
|
165
165
|
if (result === 'bad') {
|
|
166
166
|
await this.askToReportIssue(( localize(
|
|
167
|
-
|
|
167
|
+
2683,
|
|
168
168
|
"Issue troubleshooting has identified that the issue is with {0}.",
|
|
169
169
|
this.productService.nameLong
|
|
170
170
|
)));
|
|
@@ -180,15 +180,15 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
180
180
|
return (
|
|
181
181
|
(new Promise((c, e) => {
|
|
182
182
|
const goodPrompt = {
|
|
183
|
-
label: ( localize(
|
|
183
|
+
label: ( localize(2684, "I Can't Reproduce")),
|
|
184
184
|
run: () => c('good')
|
|
185
185
|
};
|
|
186
186
|
const badPrompt = {
|
|
187
|
-
label: ( localize(
|
|
187
|
+
label: ( localize(2685, "I Can Reproduce")),
|
|
188
188
|
run: () => c('bad')
|
|
189
189
|
};
|
|
190
190
|
const stop = {
|
|
191
|
-
label: ( localize(
|
|
191
|
+
label: ( localize(2686, "Stop")),
|
|
192
192
|
run: () => c('stop')
|
|
193
193
|
};
|
|
194
194
|
this.notificationHandle = this.notificationService.prompt(Severity$1.Info, message, [goodPrompt, badPrompt, stop], { sticky: true, priority: NotificationPriority.URGENT });
|
|
@@ -202,9 +202,9 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
202
202
|
if (res === 'good') {
|
|
203
203
|
await this.dialogService.prompt({
|
|
204
204
|
type: Severity$1.Info,
|
|
205
|
-
message: ( localize(
|
|
205
|
+
message: ( localize(2677, "Troubleshoot Issue")),
|
|
206
206
|
detail: ( localize(
|
|
207
|
-
|
|
207
|
+
2687,
|
|
208
208
|
"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.",
|
|
209
209
|
this.productService.nameLong
|
|
210
210
|
)),
|
|
@@ -227,11 +227,11 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
227
227
|
async askToReproduceIssueWithInsiders() {
|
|
228
228
|
const confirmRes = await this.dialogService.confirm({
|
|
229
229
|
type: 'info',
|
|
230
|
-
message: ( localize(
|
|
231
|
-
primaryButton: ( localize(
|
|
232
|
-
cancelButton: ( localize(
|
|
230
|
+
message: ( localize(2677, "Troubleshoot Issue")),
|
|
231
|
+
primaryButton: ( localize(2688, "Download {0} Insiders", this.productService.nameLong)),
|
|
232
|
+
cancelButton: ( localize(2689, "Report Issue Anyway")),
|
|
233
233
|
detail: ( localize(
|
|
234
|
-
|
|
234
|
+
2690,
|
|
235
235
|
"Please try to download and reproduce the issue in {0} insiders.",
|
|
236
236
|
this.productService.nameLong
|
|
237
237
|
)),
|
|
@@ -248,20 +248,20 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
248
248
|
}
|
|
249
249
|
const res = await this.dialogService.prompt({
|
|
250
250
|
type: 'info',
|
|
251
|
-
message: ( localize(
|
|
251
|
+
message: ( localize(2677, "Troubleshoot Issue")),
|
|
252
252
|
buttons: [{
|
|
253
|
-
label: ( localize(
|
|
253
|
+
label: ( localize(2691, "I can't reproduce")),
|
|
254
254
|
run: () => 'good'
|
|
255
255
|
}, {
|
|
256
|
-
label: ( localize(
|
|
256
|
+
label: ( localize(2692, "I can reproduce")),
|
|
257
257
|
run: () => 'bad'
|
|
258
258
|
}],
|
|
259
259
|
cancelButton: {
|
|
260
|
-
label: ( localize(
|
|
260
|
+
label: ( localize(2693, "Stop")),
|
|
261
261
|
run: () => 'stop'
|
|
262
262
|
},
|
|
263
263
|
detail: ( localize(
|
|
264
|
-
|
|
264
|
+
2694,
|
|
265
265
|
"Please try to reproduce the issue in {0} insiders and confirm if the issue exists there.",
|
|
266
266
|
this.productService.nameLong
|
|
267
267
|
)),
|
|
@@ -336,7 +336,7 @@ registerAction2(class TroubleshootIssueAction extends Action2 {
|
|
|
336
336
|
constructor() {
|
|
337
337
|
super({
|
|
338
338
|
id: 'workbench.action.troubleshootIssue.start',
|
|
339
|
-
title: ( localize2(
|
|
339
|
+
title: ( localize2(2695, 'Troubleshoot Issue...')),
|
|
340
340
|
category: Categories.Help,
|
|
341
341
|
f1: true,
|
|
342
342
|
precondition: ( (ContextKeyExpr.and(
|
|
@@ -354,7 +354,7 @@ registerAction2(class extends Action2 {
|
|
|
354
354
|
constructor() {
|
|
355
355
|
super({
|
|
356
356
|
id: 'workbench.action.troubleshootIssue.stop',
|
|
357
|
-
title: ( localize2(
|
|
357
|
+
title: ( localize2(2696, 'Stop Troubleshoot Issue')),
|
|
358
358
|
category: Categories.Help,
|
|
359
359
|
f1: true,
|
|
360
360
|
precondition: IssueTroubleshootUi.ctxIsTroubleshootActive
|
|
@@ -74,7 +74,7 @@ let BaseIssueContribution = class BaseIssueContribution extends Disposable {
|
|
|
74
74
|
}));
|
|
75
75
|
const reportIssue = {
|
|
76
76
|
id: OpenIssueReporterActionId,
|
|
77
|
-
title: ( localize2(
|
|
77
|
+
title: ( localize2(6179, "Report Issue...")),
|
|
78
78
|
category: Categories.Help
|
|
79
79
|
};
|
|
80
80
|
this._register(MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: reportIssue }));
|
|
@@ -82,7 +82,7 @@ let BaseIssueContribution = class BaseIssueContribution extends Disposable {
|
|
|
82
82
|
group: '3_feedback',
|
|
83
83
|
command: {
|
|
84
84
|
id: OpenIssueReporterActionId,
|
|
85
|
-
title: ( localize(
|
|
85
|
+
title: ( localize(6180, "Report &&Issue"))
|
|
86
86
|
},
|
|
87
87
|
order: 3
|
|
88
88
|
}));
|