@codingame/monaco-vscode-issue-service-override 13.0.0 → 13.1.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/package.json +3 -6
- 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": "13.
|
|
3
|
+
"version": "13.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - issue service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,12 +15,9 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-89a82baf-8ded-5b2f-b8af-e5fbd72dc5ad-common": "13.
|
|
18
|
+
"@codingame/monaco-vscode-89a82baf-8ded-5b2f-b8af-e5fbd72dc5ad-common": "13.1.1",
|
|
19
|
+
"@codingame/monaco-vscode-api": "13.1.1"
|
|
19
20
|
},
|
|
20
|
-
"peerDependencies": {
|
|
21
|
-
"@codingame/monaco-vscode-api": "13.0.0"
|
|
22
|
-
},
|
|
23
|
-
"peerDependenciesMeta": {},
|
|
24
21
|
"main": "index.js",
|
|
25
22
|
"module": "index.js",
|
|
26
23
|
"types": "index.d.ts",
|
|
@@ -237,7 +237,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
237
237
|
const extensionsSelector = this.getElementById('extension-selector');
|
|
238
238
|
if (extensionsSelector) {
|
|
239
239
|
const { selectedExtension } = this.issueReporterModel.getData();
|
|
240
|
-
reset(extensionsSelector, this.makeOption('', ( localize(
|
|
240
|
+
reset(extensionsSelector, this.makeOption('', ( localize(6862, "Select extension")), true), ...( extensionOptions.map(extension => makeOption(extension, selectedExtension))));
|
|
241
241
|
if (!selectedExtension) {
|
|
242
242
|
extensionsSelector.selectedIndex = 0;
|
|
243
243
|
}
|
|
@@ -318,11 +318,11 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
318
318
|
const info = containingElement && containingElement.lastElementChild;
|
|
319
319
|
if (info && info.classList.contains('hidden')) {
|
|
320
320
|
show(info);
|
|
321
|
-
label.textContent = ( localize(
|
|
321
|
+
label.textContent = ( localize(6863, "hide"));
|
|
322
322
|
}
|
|
323
323
|
else {
|
|
324
324
|
hide(info);
|
|
325
|
-
label.textContent = ( localize(
|
|
325
|
+
label.textContent = ( localize(6864, "show"));
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
});
|
|
@@ -342,16 +342,16 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
342
342
|
}
|
|
343
343
|
const descriptionTextArea = this.getElementById('issue-title');
|
|
344
344
|
if (value === IssueSource.VSCode) {
|
|
345
|
-
descriptionTextArea.placeholder = ( localize(
|
|
345
|
+
descriptionTextArea.placeholder = ( localize(6865, "E.g Workbench is missing problems panel"));
|
|
346
346
|
}
|
|
347
347
|
else if (value === IssueSource.Extension) {
|
|
348
|
-
descriptionTextArea.placeholder = ( localize(
|
|
348
|
+
descriptionTextArea.placeholder = ( localize(6866, "E.g. Missing alt text on extension readme image"));
|
|
349
349
|
}
|
|
350
350
|
else if (value === IssueSource.Marketplace) {
|
|
351
|
-
descriptionTextArea.placeholder = ( localize(
|
|
351
|
+
descriptionTextArea.placeholder = ( localize(6867, "E.g Cannot disable installed extension"));
|
|
352
352
|
}
|
|
353
353
|
else {
|
|
354
|
-
descriptionTextArea.placeholder = ( localize(
|
|
354
|
+
descriptionTextArea.placeholder = ( localize(6868, "Please enter a title"));
|
|
355
355
|
}
|
|
356
356
|
let fileOnExtension, fileOnMarketplace = false;
|
|
357
357
|
if (value === IssueSource.Extension) {
|
|
@@ -456,16 +456,16 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
456
456
|
updatePreviewButtonState() {
|
|
457
457
|
if (this.isPreviewEnabled()) {
|
|
458
458
|
if (this.data.githubAccessToken) {
|
|
459
|
-
this.previewButton.label = ( localize(
|
|
459
|
+
this.previewButton.label = ( localize(6869, "Create on GitHub"));
|
|
460
460
|
}
|
|
461
461
|
else {
|
|
462
|
-
this.previewButton.label = ( localize(
|
|
462
|
+
this.previewButton.label = ( localize(6870, "Preview on GitHub"));
|
|
463
463
|
}
|
|
464
464
|
this.previewButton.enabled = true;
|
|
465
465
|
}
|
|
466
466
|
else {
|
|
467
467
|
this.previewButton.enabled = false;
|
|
468
|
-
this.previewButton.label = ( localize(
|
|
468
|
+
this.previewButton.label = ( localize(6871, "Loading data..."));
|
|
469
469
|
}
|
|
470
470
|
const issueRepoName = this.getElementById('show-repo-name');
|
|
471
471
|
const selectedExtension = this.issueReporterModel.getData().selectedExtension;
|
|
@@ -584,7 +584,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
584
584
|
}
|
|
585
585
|
else {
|
|
586
586
|
const message = $('div.list-title');
|
|
587
|
-
message.textContent = ( localize(
|
|
587
|
+
message.textContent = ( localize(6872, "GitHub query limit exceeded. Please wait."));
|
|
588
588
|
similarIssues.appendChild(message);
|
|
589
589
|
const resetTime = response.headers.get('X-RateLimit-Reset');
|
|
590
590
|
const timeToWait = resetTime ? parseInt(resetTime) - Math.floor(Date.now() / 1000) : 1;
|
|
@@ -634,7 +634,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
634
634
|
if (results.length) {
|
|
635
635
|
const issues = $('div.issues-container');
|
|
636
636
|
const issuesText = $('div.list-title');
|
|
637
|
-
issuesText.textContent = ( localize(
|
|
637
|
+
issuesText.textContent = ( localize(6873, "Similar issues"));
|
|
638
638
|
this.numberOfSearchResultsDisplayed = results.length < 5 ? results.length : 5;
|
|
639
639
|
for (let i = 0; i < this.numberOfSearchResultsDisplayed; i++) {
|
|
640
640
|
const issue = results[i];
|
|
@@ -650,8 +650,8 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
650
650
|
const issueIcon = $('span.issue-icon');
|
|
651
651
|
issueIcon.appendChild(renderIcon(issue.state === 'open' ? Codicon.issueOpened : Codicon.issueClosed));
|
|
652
652
|
const issueStateLabel = $('span.issue-state.label');
|
|
653
|
-
issueStateLabel.textContent = issue.state === 'open' ? ( localize(
|
|
654
|
-
issueState.title = issue.state === 'open' ? ( localize(
|
|
653
|
+
issueStateLabel.textContent = issue.state === 'open' ? ( localize(6874, "Open")) : ( localize(6875, "Closed"));
|
|
654
|
+
issueState.title = issue.state === 'open' ? ( localize(6874, "Open")) : ( localize(6875, "Closed"));
|
|
655
655
|
issueState.appendChild(issueIcon);
|
|
656
656
|
issueState.appendChild(issueStateLabel);
|
|
657
657
|
item = $('div.issue', undefined, issueState, link);
|
|
@@ -666,7 +666,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
666
666
|
}
|
|
667
667
|
else {
|
|
668
668
|
const message = $('div.list-title');
|
|
669
|
-
message.textContent = ( localize(
|
|
669
|
+
message.textContent = ( localize(6876, "No similar issues found"));
|
|
670
670
|
similarIssues.appendChild(message);
|
|
671
671
|
}
|
|
672
672
|
}
|
|
@@ -674,7 +674,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
674
674
|
const makeOption = (issueType, description) => $('option', { 'value': issueType.valueOf() }, escape(description));
|
|
675
675
|
const typeSelect = this.getElementById('issue-type');
|
|
676
676
|
const { issueType } = this.issueReporterModel.getData();
|
|
677
|
-
reset(typeSelect, makeOption(IssueType.Bug, ( localize(
|
|
677
|
+
reset(typeSelect, makeOption(IssueType.Bug, ( localize(6877, "Bug Report"))), makeOption(IssueType.FeatureRequest, ( localize(6878, "Feature Request"))), makeOption(IssueType.PerformanceIssue, ( localize(6879, "Performance Issue (freeze, slow, crash)"))));
|
|
678
678
|
typeSelect.value = ( issueType.toString());
|
|
679
679
|
this.setSourceOptions();
|
|
680
680
|
}
|
|
@@ -704,14 +704,14 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
706
|
sourceSelect.innerText = '';
|
|
707
|
-
sourceSelect.append(this.makeOption('', ( localize(
|
|
708
|
-
sourceSelect.append(this.makeOption(IssueSource.VSCode, ( localize(
|
|
709
|
-
sourceSelect.append(this.makeOption(IssueSource.Extension, ( localize(
|
|
707
|
+
sourceSelect.append(this.makeOption('', ( localize(6880, "Select source")), true));
|
|
708
|
+
sourceSelect.append(this.makeOption(IssueSource.VSCode, ( localize(6881, "Visual Studio Code")), false));
|
|
709
|
+
sourceSelect.append(this.makeOption(IssueSource.Extension, ( localize(6882, "A VS Code extension")), false));
|
|
710
710
|
if (this.product.reportMarketplaceIssueUrl) {
|
|
711
|
-
sourceSelect.append(this.makeOption(IssueSource.Marketplace, ( localize(
|
|
711
|
+
sourceSelect.append(this.makeOption(IssueSource.Marketplace, ( localize(6883, "Extensions Marketplace")), false));
|
|
712
712
|
}
|
|
713
713
|
if (issueType !== IssueType.FeatureRequest) {
|
|
714
|
-
sourceSelect.append(this.makeOption(IssueSource.Unknown, ( localize(
|
|
714
|
+
sourceSelect.append(this.makeOption(IssueSource.Unknown, ( localize(6884, "Don't know")), false));
|
|
715
715
|
}
|
|
716
716
|
if (selected !== -1 && selected < sourceSelect.options.length) {
|
|
717
717
|
sourceSelect.selectedIndex = selected;
|
|
@@ -755,13 +755,13 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
755
755
|
if (selectedExtension && this.nonGitHubIssueUrl) {
|
|
756
756
|
hide(titleTextArea);
|
|
757
757
|
hide(descriptionTextArea);
|
|
758
|
-
reset(descriptionTitle, ( localize(
|
|
758
|
+
reset(descriptionTitle, ( localize(6885, "This extension handles issues outside of VS Code")));
|
|
759
759
|
reset(descriptionSubtitle, ( localize(
|
|
760
|
-
|
|
760
|
+
6886,
|
|
761
761
|
"The '{0}' extension prefers to use an external issue reporter. To be taken to that issue reporting experience, click the button below.",
|
|
762
762
|
selectedExtension.displayName
|
|
763
763
|
)));
|
|
764
|
-
this.previewButton.label = ( localize(
|
|
764
|
+
this.previewButton.label = ( localize(6887, "Open External Issue Reporter"));
|
|
765
765
|
return;
|
|
766
766
|
}
|
|
767
767
|
if (fileOnExtension && selectedExtension?.data) {
|
|
@@ -788,9 +788,9 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
788
788
|
show(extensionsBlock);
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
|
-
reset(descriptionTitle, ( localize(
|
|
791
|
+
reset(descriptionTitle, ( localize(6888, "Steps to Reproduce")) + ' ', $('span.required-input', undefined, '*'));
|
|
792
792
|
reset(descriptionSubtitle, ( localize(
|
|
793
|
-
|
|
793
|
+
6889,
|
|
794
794
|
"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."
|
|
795
795
|
)));
|
|
796
796
|
}
|
|
@@ -808,16 +808,16 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
808
808
|
else if (!fileOnMarketplace) {
|
|
809
809
|
show(extensionsBlock);
|
|
810
810
|
}
|
|
811
|
-
reset(descriptionTitle, ( localize(
|
|
811
|
+
reset(descriptionTitle, ( localize(6888, "Steps to Reproduce")) + ' ', $('span.required-input', undefined, '*'));
|
|
812
812
|
reset(descriptionSubtitle, ( localize(
|
|
813
|
-
|
|
813
|
+
6890,
|
|
814
814
|
"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."
|
|
815
815
|
)));
|
|
816
816
|
}
|
|
817
817
|
else if (issueType === IssueType.FeatureRequest) {
|
|
818
|
-
reset(descriptionTitle, ( localize(
|
|
818
|
+
reset(descriptionTitle, ( localize(6891, "Description")) + ' ', $('span.required-input', undefined, '*'));
|
|
819
819
|
reset(descriptionSubtitle, ( localize(
|
|
820
|
-
|
|
820
|
+
6892,
|
|
821
821
|
"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."
|
|
822
822
|
)));
|
|
823
823
|
}
|
|
@@ -951,7 +951,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
951
951
|
throw ( new CancellationError());
|
|
952
952
|
}
|
|
953
953
|
return baseUrl + `&body=${encodeURIComponent(( localize(
|
|
954
|
-
|
|
954
|
+
6893,
|
|
955
955
|
"We have written the needed data into your clipboard because it was too large to send. Please paste."
|
|
956
956
|
)))}`;
|
|
957
957
|
}
|
|
@@ -1121,7 +1121,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
1121
1121
|
const target = this.window.document.querySelector('.block-extensions .block-info');
|
|
1122
1122
|
if (target) {
|
|
1123
1123
|
if (this.disableExtensions) {
|
|
1124
|
-
reset(target, ( localize(
|
|
1124
|
+
reset(target, ( localize(6894, "Extensions are disabled")));
|
|
1125
1125
|
return;
|
|
1126
1126
|
}
|
|
1127
1127
|
const themeExclusionStr = numThemeExtensions ? `\n(${numThemeExtensions} theme extensions excluded)` : '';
|
|
@@ -35,5 +35,5 @@ WebIssueContribution = ( __decorate([
|
|
|
35
35
|
], WebIssueContribution));
|
|
36
36
|
( Registry.as(Extensions$1.Workbench)).registerWorkbenchContribution(WebIssueContribution, LifecyclePhase.Restored);
|
|
37
37
|
CommandsRegistry.registerCommand('_issues.getSystemStatus', (accessor) => {
|
|
38
|
-
return localize(
|
|
38
|
+
return localize(6895, "The --status argument is not yet supported in browsers.");
|
|
39
39
|
});
|
|
@@ -112,19 +112,19 @@ let IssueFormService = class IssueFormService {
|
|
|
112
112
|
await this.dialogService.prompt({
|
|
113
113
|
type: Severity.Warning,
|
|
114
114
|
message: ( localize(
|
|
115
|
-
|
|
115
|
+
6896,
|
|
116
116
|
"Your input will not be saved. Are you sure you want to close this window?"
|
|
117
117
|
)),
|
|
118
118
|
buttons: [
|
|
119
119
|
{
|
|
120
|
-
label: ( localize(
|
|
120
|
+
label: ( localize(6897, "&&Yes")),
|
|
121
121
|
run: () => {
|
|
122
122
|
this.closeReporter();
|
|
123
123
|
this.issueReporterWindow = null;
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
|
-
label: ( localize(
|
|
127
|
+
label: ( localize(6898, "Cancel")),
|
|
128
128
|
run: () => { }
|
|
129
129
|
}
|
|
130
130
|
]
|
|
@@ -135,16 +135,16 @@ let IssueFormService = class IssueFormService {
|
|
|
135
135
|
await this.dialogService.prompt({
|
|
136
136
|
type: Severity.Warning,
|
|
137
137
|
message: ( localize(
|
|
138
|
-
|
|
138
|
+
6899,
|
|
139
139
|
"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."
|
|
140
140
|
)),
|
|
141
141
|
buttons: [
|
|
142
142
|
{
|
|
143
|
-
label: ( localize(
|
|
143
|
+
label: ( localize(6900, "&&OK")),
|
|
144
144
|
run: () => { result = true; }
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
|
-
label: ( localize(
|
|
147
|
+
label: ( localize(6898, "Cancel")),
|
|
148
148
|
run: () => { result = false; }
|
|
149
149
|
}
|
|
150
150
|
]
|
|
@@ -2,56 +2,56 @@
|
|
|
2
2
|
import { escape } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
|
|
3
3
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
4
|
|
|
5
|
-
const sendSystemInfoLabel = escape(( localize(
|
|
6
|
-
const sendProcessInfoLabel = escape(( localize(
|
|
7
|
-
const sendWorkspaceInfoLabel = escape(( localize(
|
|
8
|
-
const sendExtensionsLabel = escape(( localize(
|
|
9
|
-
const sendExperimentsLabel = escape(( localize(
|
|
10
|
-
const sendExtensionData = escape(( localize(
|
|
5
|
+
const sendSystemInfoLabel = escape(( localize(6901, "Include my system information")));
|
|
6
|
+
const sendProcessInfoLabel = escape(( localize(6902, "Include my currently running processes")));
|
|
7
|
+
const sendWorkspaceInfoLabel = escape(( localize(6903, "Include my workspace metadata")));
|
|
8
|
+
const sendExtensionsLabel = escape(( localize(6904, "Include my enabled extensions")));
|
|
9
|
+
const sendExperimentsLabel = escape(( localize(6905, "Include A/B experiment info")));
|
|
10
|
+
const sendExtensionData = escape(( localize(6906, "Include additional extension info")));
|
|
11
11
|
const reviewGuidanceLabel = ( localize(
|
|
12
|
-
|
|
12
|
+
6907,
|
|
13
13
|
'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>.'
|
|
14
14
|
));
|
|
15
15
|
var BaseHtml = () => `
|
|
16
16
|
<div class="issue-reporter" id="issue-reporter">
|
|
17
|
-
<div id="english" class="input-group hidden">${escape(( localize(
|
|
17
|
+
<div id="english" class="input-group hidden">${escape(( localize(6908, "Please complete the form in English.")))}</div>
|
|
18
18
|
|
|
19
19
|
<div id="review-guidance-help-text" class="input-group">${reviewGuidanceLabel}</div>
|
|
20
20
|
|
|
21
21
|
<div class="section">
|
|
22
22
|
<div class="input-group">
|
|
23
|
-
<label class="inline-label" for="issue-type">${escape(( localize(
|
|
23
|
+
<label class="inline-label" for="issue-type">${escape(( localize(6909, "This is a")))}</label>
|
|
24
24
|
<select id="issue-type" class="inline-form-control">
|
|
25
25
|
<!-- To be dynamically filled -->
|
|
26
26
|
</select>
|
|
27
27
|
</div>
|
|
28
28
|
|
|
29
29
|
<div class="input-group" id="problem-source">
|
|
30
|
-
<label class="inline-label" for="issue-source">${escape(( localize(
|
|
30
|
+
<label class="inline-label" for="issue-source">${escape(( localize(6910, "For")))} <span class="required-input">*</span></label>
|
|
31
31
|
<select id="issue-source" class="inline-form-control" required>
|
|
32
32
|
<!-- To be dynamically filled -->
|
|
33
33
|
</select>
|
|
34
|
-
<div id="issue-source-empty-error" class="validation-error hidden" role="alert">${escape(( localize(
|
|
34
|
+
<div id="issue-source-empty-error" class="validation-error hidden" role="alert">${escape(( localize(6911, "An issue source is required.")))}</div>
|
|
35
35
|
<div id="problem-source-help-text" class="instructions hidden">${escape(( localize(
|
|
36
|
-
|
|
36
|
+
6912,
|
|
37
37
|
"Try to reproduce the problem after {0}. If the problem only reproduces when extensions are active, it is likely an issue with an extension."
|
|
38
38
|
)))
|
|
39
|
-
.replace('{0}', () => `<span tabIndex=0 role="button" id="disableExtensions" class="workbenchCommand">${escape(( localize(
|
|
39
|
+
.replace('{0}', () => `<span tabIndex=0 role="button" id="disableExtensions" class="workbenchCommand">${escape(( localize(6913, "disabling all extensions and reloading the window")))}</span>`)}
|
|
40
40
|
</div>
|
|
41
41
|
|
|
42
42
|
<div id="extension-selection">
|
|
43
|
-
<label class="inline-label" for="extension-selector">${escape(( localize(
|
|
43
|
+
<label class="inline-label" for="extension-selector">${escape(( localize(6914, "Extension")))} <span class="required-input">*</span></label>
|
|
44
44
|
<select id="extension-selector" class="inline-form-control">
|
|
45
45
|
<!-- To be dynamically filled -->
|
|
46
46
|
</select>
|
|
47
47
|
<div id="extension-selection-validation-error" class="validation-error hidden" role="alert">${escape(( localize(
|
|
48
|
-
|
|
48
|
+
6915,
|
|
49
49
|
"The issue reporter is unable to create issues for this extension. Please visit {0} to report an issue."
|
|
50
50
|
)))
|
|
51
51
|
.replace('{0}', () => `<span tabIndex=0 role="button" id="extensionBugsLink" class="workbenchCommand"><!-- To be dynamically filled --></span>`)}</div>
|
|
52
52
|
<div id="extension-selection-validation-error-no-url" class="validation-error hidden" role="alert">
|
|
53
53
|
${escape(( localize(
|
|
54
|
-
|
|
54
|
+
6916,
|
|
55
55
|
"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."
|
|
56
56
|
)))}
|
|
57
57
|
</div>
|
|
@@ -59,10 +59,10 @@ var BaseHtml = () => `
|
|
|
59
59
|
</div>
|
|
60
60
|
|
|
61
61
|
<div id="issue-title-container" class="input-group">
|
|
62
|
-
<label class="inline-label" for="issue-title">${escape(( localize(
|
|
63
|
-
<input id="issue-title" type="text" class="inline-form-control" placeholder="${escape(( localize(
|
|
64
|
-
<div id="issue-title-empty-error" class="validation-error hidden" role="alert">${escape(( localize(
|
|
65
|
-
<div id="issue-title-length-validation-error" class="validation-error hidden" role="alert">${escape(( localize(
|
|
62
|
+
<label class="inline-label" for="issue-title">${escape(( localize(6917, "Title")))} <span class="required-input">*</span></label>
|
|
63
|
+
<input id="issue-title" type="text" class="inline-form-control" placeholder="${escape(( localize(6918, "Please enter a title.")))}" required>
|
|
64
|
+
<div id="issue-title-empty-error" class="validation-error hidden" role="alert">${escape(( localize(6919, "A title is required.")))}</div>
|
|
65
|
+
<div id="issue-title-length-validation-error" class="validation-error hidden" role="alert">${escape(( localize(6920, "The title is too long.")))}</div>
|
|
66
66
|
<small id="similar-issues">
|
|
67
67
|
<!-- To be dynamically filled -->
|
|
68
68
|
</small>
|
|
@@ -78,10 +78,10 @@ var BaseHtml = () => `
|
|
|
78
78
|
<!-- To be dynamically filled -->
|
|
79
79
|
</div>
|
|
80
80
|
<div class="block-info-text">
|
|
81
|
-
<textarea name="description" id="description" placeholder="${escape(( localize(
|
|
81
|
+
<textarea name="description" id="description" placeholder="${escape(( localize(6921, "Please enter details.")))}" required></textarea>
|
|
82
82
|
</div>
|
|
83
|
-
<div id="description-empty-error" class="validation-error hidden" role="alert">${escape(( localize(
|
|
84
|
-
<div id="description-short-error" class="validation-error hidden" role="alert">${escape(( localize(
|
|
83
|
+
<div id="description-empty-error" class="validation-error hidden" role="alert">${escape(( localize(6922, "A description is required.")))}</div>
|
|
84
|
+
<div id="description-short-error" class="validation-error hidden" role="alert">${escape(( localize(6923, "Please provide a longer description.")))}</div>
|
|
85
85
|
</div>
|
|
86
86
|
|
|
87
87
|
<div class="system-info" id="block-container">
|
|
@@ -90,9 +90,9 @@ var BaseHtml = () => `
|
|
|
90
90
|
<label class="extension-caption" id="extension-caption" for="includeExtensionData">
|
|
91
91
|
${sendExtensionData}
|
|
92
92
|
<span id="ext-loading" hidden></span>
|
|
93
|
-
<span class="ext-parens" hidden>(</span><a href="#" class="showInfo" id="extension-id">${escape(( localize(
|
|
93
|
+
<span class="ext-parens" hidden>(</span><a href="#" class="showInfo" id="extension-id">${escape(( localize(6924, "show")))}</a><span class="ext-parens" hidden>)</span>
|
|
94
94
|
</label>
|
|
95
|
-
<pre class="block-info" id="extension-data" placeholder="${escape(( localize(
|
|
95
|
+
<pre class="block-info" id="extension-data" placeholder="${escape(( localize(6925, "Extension does not have additional data to include.")))}" style="white-space: pre-wrap; user-select: text;">
|
|
96
96
|
<!-- To be dynamically filled -->
|
|
97
97
|
</pre>
|
|
98
98
|
</div>
|
|
@@ -101,7 +101,7 @@ var BaseHtml = () => `
|
|
|
101
101
|
<input class="sendData" aria-label="${sendSystemInfoLabel}" type="checkbox" id="includeSystemInfo" checked/>
|
|
102
102
|
<label class="caption" for="includeSystemInfo">
|
|
103
103
|
${sendSystemInfoLabel}
|
|
104
|
-
(<a href="#" class="showInfo">${escape(( localize(
|
|
104
|
+
(<a href="#" class="showInfo">${escape(( localize(6924, "show")))}</a>)
|
|
105
105
|
</label>
|
|
106
106
|
<div class="block-info hidden" style="user-select: text;">
|
|
107
107
|
<!-- To be dynamically filled -->
|
|
@@ -111,7 +111,7 @@ var BaseHtml = () => `
|
|
|
111
111
|
<input class="sendData" aria-label="${sendProcessInfoLabel}" type="checkbox" id="includeProcessInfo" checked/>
|
|
112
112
|
<label class="caption" for="includeProcessInfo">
|
|
113
113
|
${sendProcessInfoLabel}
|
|
114
|
-
(<a href="#" class="showInfo">${escape(( localize(
|
|
114
|
+
(<a href="#" class="showInfo">${escape(( localize(6924, "show")))}</a>)
|
|
115
115
|
</label>
|
|
116
116
|
<pre class="block-info hidden" style="user-select: text;">
|
|
117
117
|
<code>
|
|
@@ -123,7 +123,7 @@ var BaseHtml = () => `
|
|
|
123
123
|
<input class="sendData" aria-label="${sendWorkspaceInfoLabel}" type="checkbox" id="includeWorkspaceInfo" checked/>
|
|
124
124
|
<label class="caption" for="includeWorkspaceInfo">
|
|
125
125
|
${sendWorkspaceInfoLabel}
|
|
126
|
-
(<a href="#" class="showInfo">${escape(( localize(
|
|
126
|
+
(<a href="#" class="showInfo">${escape(( localize(6924, "show")))}</a>)
|
|
127
127
|
</label>
|
|
128
128
|
<pre id="systemInfo" class="block-info hidden" style="user-select: text;">
|
|
129
129
|
<code>
|
|
@@ -135,7 +135,7 @@ var BaseHtml = () => `
|
|
|
135
135
|
<input class="sendData" aria-label="${sendExtensionsLabel}" type="checkbox" id="includeExtensions" checked/>
|
|
136
136
|
<label class="caption" for="includeExtensions">
|
|
137
137
|
${sendExtensionsLabel}
|
|
138
|
-
(<a href="#" class="showInfo">${escape(( localize(
|
|
138
|
+
(<a href="#" class="showInfo">${escape(( localize(6924, "show")))}</a>)
|
|
139
139
|
</label>
|
|
140
140
|
<div id="systemInfo" class="block-info hidden" style="user-select: text;">
|
|
141
141
|
<!-- To be dynamically filled -->
|
|
@@ -145,7 +145,7 @@ var BaseHtml = () => `
|
|
|
145
145
|
<input class="sendData" aria-label="${sendExperimentsLabel}" type="checkbox" id="includeExperiments" checked/>
|
|
146
146
|
<label class="caption" for="includeExperiments">
|
|
147
147
|
${sendExperimentsLabel}
|
|
148
|
-
(<a href="#" class="showInfo">${escape(( localize(
|
|
148
|
+
(<a href="#" class="showInfo">${escape(( localize(6924, "show")))}</a>)
|
|
149
149
|
</label>
|
|
150
150
|
<pre class="block-info hidden" style="user-select: text;">
|
|
151
151
|
<!-- To be dynamically filled -->
|
|
@@ -24,7 +24,7 @@ let IssueWebReporter = class IssueWebReporter extends BaseIssueReporterService {
|
|
|
24
24
|
this.issueReporterModel.update({ issueType: issueType });
|
|
25
25
|
const descriptionTextArea = this.getElementById('issue-title');
|
|
26
26
|
if (descriptionTextArea) {
|
|
27
|
-
descriptionTextArea.placeholder = ( localize(
|
|
27
|
+
descriptionTextArea.placeholder = ( localize(6926, "Please enter a title"));
|
|
28
28
|
}
|
|
29
29
|
this.updatePreviewButtonState();
|
|
30
30
|
this.setSourceOptions();
|
|
@@ -85,13 +85,13 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
85
85
|
throw ( new Error('invalid state'));
|
|
86
86
|
}
|
|
87
87
|
const res = await this.dialogService.confirm({
|
|
88
|
-
message: ( localize(
|
|
88
|
+
message: ( localize(6927, "Troubleshoot Issue")),
|
|
89
89
|
detail: ( localize(
|
|
90
|
-
|
|
90
|
+
6928,
|
|
91
91
|
"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
92
|
this.productService.nameLong
|
|
93
93
|
)),
|
|
94
|
-
primaryButton: ( localize(
|
|
94
|
+
primaryButton: ( localize(6929, "&&Troubleshoot Issue")),
|
|
95
95
|
custom: true
|
|
96
96
|
});
|
|
97
97
|
if (!res.confirmed) {
|
|
@@ -135,7 +135,7 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
135
135
|
return;
|
|
136
136
|
}
|
|
137
137
|
const result = await this.askToReproduceIssue(( localize(
|
|
138
|
-
|
|
138
|
+
6930,
|
|
139
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."
|
|
140
140
|
)));
|
|
141
141
|
if (result === 'good') {
|
|
@@ -153,7 +153,7 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
153
153
|
await this.userDataProfileManagementService.createAndEnterTransientProfile();
|
|
154
154
|
this.updateState(this.state);
|
|
155
155
|
const result = await this.askToReproduceIssue(( localize(
|
|
156
|
-
|
|
156
|
+
6931,
|
|
157
157
|
"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."
|
|
158
158
|
)));
|
|
159
159
|
if (result === 'stop') {
|
|
@@ -161,13 +161,13 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
161
161
|
}
|
|
162
162
|
if (result === 'good') {
|
|
163
163
|
await this.askToReportIssue(( localize(
|
|
164
|
-
|
|
164
|
+
6932,
|
|
165
165
|
"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."
|
|
166
166
|
)));
|
|
167
167
|
}
|
|
168
168
|
if (result === 'bad') {
|
|
169
169
|
await this.askToReportIssue(( localize(
|
|
170
|
-
|
|
170
|
+
6933,
|
|
171
171
|
"Issue troubleshooting has identified that the issue is with {0}.",
|
|
172
172
|
this.productService.nameLong
|
|
173
173
|
)));
|
|
@@ -182,15 +182,15 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
182
182
|
askToReproduceIssue(message) {
|
|
183
183
|
return (new Promise((c, e) => {
|
|
184
184
|
const goodPrompt = {
|
|
185
|
-
label: ( localize(
|
|
185
|
+
label: ( localize(6934, "I Can't Reproduce")),
|
|
186
186
|
run: () => c('good')
|
|
187
187
|
};
|
|
188
188
|
const badPrompt = {
|
|
189
|
-
label: ( localize(
|
|
189
|
+
label: ( localize(6935, "I Can Reproduce")),
|
|
190
190
|
run: () => c('bad')
|
|
191
191
|
};
|
|
192
192
|
const stop = {
|
|
193
|
-
label: ( localize(
|
|
193
|
+
label: ( localize(6936, "Stop")),
|
|
194
194
|
run: () => c('stop')
|
|
195
195
|
};
|
|
196
196
|
this.notificationHandle = this.notificationService.prompt(Severity.Info, message, [goodPrompt, badPrompt, stop], { sticky: true, priority: NotificationPriority.URGENT });
|
|
@@ -203,9 +203,9 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
203
203
|
if (res === 'good') {
|
|
204
204
|
await this.dialogService.prompt({
|
|
205
205
|
type: Severity.Info,
|
|
206
|
-
message: ( localize(
|
|
206
|
+
message: ( localize(6927, "Troubleshoot Issue")),
|
|
207
207
|
detail: ( localize(
|
|
208
|
-
|
|
208
|
+
6937,
|
|
209
209
|
"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.",
|
|
210
210
|
this.productService.nameLong
|
|
211
211
|
)),
|
|
@@ -228,11 +228,11 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
228
228
|
async askToReproduceIssueWithInsiders() {
|
|
229
229
|
const confirmRes = await this.dialogService.confirm({
|
|
230
230
|
type: 'info',
|
|
231
|
-
message: ( localize(
|
|
232
|
-
primaryButton: ( localize(
|
|
233
|
-
cancelButton: ( localize(
|
|
231
|
+
message: ( localize(6927, "Troubleshoot Issue")),
|
|
232
|
+
primaryButton: ( localize(6938, "Download {0} Insiders", this.productService.nameLong)),
|
|
233
|
+
cancelButton: ( localize(6939, "Report Issue Anyway")),
|
|
234
234
|
detail: ( localize(
|
|
235
|
-
|
|
235
|
+
6940,
|
|
236
236
|
"Please try to download and reproduce the issue in {0} insiders.",
|
|
237
237
|
this.productService.nameLong
|
|
238
238
|
)),
|
|
@@ -249,20 +249,20 @@ let TroubleshootIssueService = class TroubleshootIssueService extends Disposable
|
|
|
249
249
|
}
|
|
250
250
|
const res = await this.dialogService.prompt({
|
|
251
251
|
type: 'info',
|
|
252
|
-
message: ( localize(
|
|
252
|
+
message: ( localize(6927, "Troubleshoot Issue")),
|
|
253
253
|
buttons: [{
|
|
254
|
-
label: ( localize(
|
|
254
|
+
label: ( localize(6941, "I can't reproduce")),
|
|
255
255
|
run: () => 'good'
|
|
256
256
|
}, {
|
|
257
|
-
label: ( localize(
|
|
257
|
+
label: ( localize(6942, "I can reproduce")),
|
|
258
258
|
run: () => 'bad'
|
|
259
259
|
}],
|
|
260
260
|
cancelButton: {
|
|
261
|
-
label: ( localize(
|
|
261
|
+
label: ( localize(6943, "Stop")),
|
|
262
262
|
run: () => 'stop'
|
|
263
263
|
},
|
|
264
264
|
detail: ( localize(
|
|
265
|
-
|
|
265
|
+
6944,
|
|
266
266
|
"Please try to reproduce the issue in {0} insiders and confirm if the issue exists there.",
|
|
267
267
|
this.productService.nameLong
|
|
268
268
|
)),
|
|
@@ -337,7 +337,7 @@ registerAction2(class TroubleshootIssueAction extends Action2 {
|
|
|
337
337
|
constructor() {
|
|
338
338
|
super({
|
|
339
339
|
id: 'workbench.action.troubleshootIssue.start',
|
|
340
|
-
title: ( localize2(
|
|
340
|
+
title: ( localize2(6945, 'Troubleshoot Issue...')),
|
|
341
341
|
category: Categories.Help,
|
|
342
342
|
f1: true,
|
|
343
343
|
precondition: ( ContextKeyExpr.and(( IssueTroubleshootUi.ctxIsTroubleshootActive.negate()), ( RemoteNameContext.isEqualTo('')), ( IsWebContext.negate()))),
|
|
@@ -351,7 +351,7 @@ registerAction2(class extends Action2 {
|
|
|
351
351
|
constructor() {
|
|
352
352
|
super({
|
|
353
353
|
id: 'workbench.action.troubleshootIssue.stop',
|
|
354
|
-
title: ( localize2(
|
|
354
|
+
title: ( localize2(6946, 'Stop Troubleshoot Issue')),
|
|
355
355
|
category: Categories.Help,
|
|
356
356
|
f1: true,
|
|
357
357
|
precondition: IssueTroubleshootUi.ctxIsTroubleshootActive
|
|
@@ -75,7 +75,7 @@ let BaseIssueContribution = class BaseIssueContribution extends Disposable {
|
|
|
75
75
|
}));
|
|
76
76
|
const reportIssue = {
|
|
77
77
|
id: OpenIssueReporterActionId,
|
|
78
|
-
title: ( localize2(
|
|
78
|
+
title: ( localize2(6947, "Report Issue...")),
|
|
79
79
|
category: Categories.Help
|
|
80
80
|
};
|
|
81
81
|
this._register(MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: reportIssue }));
|
|
@@ -83,7 +83,7 @@ let BaseIssueContribution = class BaseIssueContribution extends Disposable {
|
|
|
83
83
|
group: '3_feedback',
|
|
84
84
|
command: {
|
|
85
85
|
id: OpenIssueReporterActionId,
|
|
86
|
-
title: ( localize(
|
|
86
|
+
title: ( localize(6948, "Report &&Issue"))
|
|
87
87
|
},
|
|
88
88
|
order: 3
|
|
89
89
|
}));
|