@codingame/monaco-vscode-issue-service-override 19.1.4 → 20.0.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 -3
- 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 +26 -8
- package/vscode/src/vs/workbench/contrib/issue/browser/issueReporterPage.js +32 -32
- 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": "
|
|
3
|
+
"version": "20.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - issue service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-89a82baf-8ded-5b2f-b8af-e5fbd72dc5ad-common": "
|
|
19
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-89a82baf-8ded-5b2f-b8af-e5fbd72dc5ad-common": "20.0.1",
|
|
19
|
+
"@codingame/monaco-vscode-api": "20.0.1"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -185,7 +185,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
185
185
|
const extensionsSelector = this.getElementById('extension-selector');
|
|
186
186
|
if (extensionsSelector) {
|
|
187
187
|
const { selectedExtension } = this.issueReporterModel.getData();
|
|
188
|
-
reset(extensionsSelector, this.makeOption('', ( localize(
|
|
188
|
+
reset(extensionsSelector, this.makeOption('', ( localize(7753, "Select extension")), true), ...( extensionOptions.map(extension => makeOption(extension, selectedExtension))));
|
|
189
189
|
if (!selectedExtension) {
|
|
190
190
|
extensionsSelector.selectedIndex = 0;
|
|
191
191
|
}
|
|
@@ -281,11 +281,11 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
281
281
|
const info = containingElement && containingElement.lastElementChild;
|
|
282
282
|
if (info && info.classList.contains('hidden')) {
|
|
283
283
|
show(info);
|
|
284
|
-
label.textContent = ( localize(
|
|
284
|
+
label.textContent = ( localize(7754, "hide"));
|
|
285
285
|
}
|
|
286
286
|
else {
|
|
287
287
|
hide(info);
|
|
288
|
-
label.textContent = ( localize(
|
|
288
|
+
label.textContent = ( localize(7755, "show"));
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
});
|
|
@@ -305,16 +305,16 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
305
305
|
}
|
|
306
306
|
const descriptionTextArea = this.getElementById('issue-title');
|
|
307
307
|
if (value === IssueSource.VSCode) {
|
|
308
|
-
descriptionTextArea.placeholder = ( localize(
|
|
308
|
+
descriptionTextArea.placeholder = ( localize(7756, "E.g Workbench is missing problems panel"));
|
|
309
309
|
}
|
|
310
310
|
else if (value === IssueSource.Extension) {
|
|
311
|
-
descriptionTextArea.placeholder = ( localize(
|
|
311
|
+
descriptionTextArea.placeholder = ( localize(7757, "E.g. Missing alt text on extension readme image"));
|
|
312
312
|
}
|
|
313
313
|
else if (value === IssueSource.Marketplace) {
|
|
314
|
-
descriptionTextArea.placeholder = ( localize(
|
|
314
|
+
descriptionTextArea.placeholder = ( localize(7758, "E.g Cannot disable installed extension"));
|
|
315
315
|
}
|
|
316
316
|
else {
|
|
317
|
-
descriptionTextArea.placeholder = ( localize(
|
|
317
|
+
descriptionTextArea.placeholder = ( localize(7759, "Please enter a title"));
|
|
318
318
|
}
|
|
319
319
|
let fileOnExtension, fileOnMarketplace, fileOnProduct = false;
|
|
320
320
|
if (value === IssueSource.Extension) {
|
|
@@ -421,21 +421,21 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
421
421
|
}
|
|
422
422
|
updatePreviewButtonState() {
|
|
423
423
|
if (!this.acknowledged && this.needsUpdate) {
|
|
424
|
-
this.previewButton.label = ( localize(
|
|
424
|
+
this.previewButton.label = ( localize(7760, "Confirm Version Acknowledgement"));
|
|
425
425
|
this.previewButton.enabled = false;
|
|
426
426
|
}
|
|
427
427
|
else if (this.isPreviewEnabled()) {
|
|
428
428
|
if (this.data.githubAccessToken) {
|
|
429
|
-
this.previewButton.label = ( localize(
|
|
429
|
+
this.previewButton.label = ( localize(7761, "Create on GitHub"));
|
|
430
430
|
}
|
|
431
431
|
else {
|
|
432
|
-
this.previewButton.label = ( localize(
|
|
432
|
+
this.previewButton.label = ( localize(7762, "Preview on GitHub"));
|
|
433
433
|
}
|
|
434
434
|
this.previewButton.enabled = true;
|
|
435
435
|
}
|
|
436
436
|
else {
|
|
437
437
|
this.previewButton.enabled = false;
|
|
438
|
-
this.previewButton.label = ( localize(
|
|
438
|
+
this.previewButton.label = ( localize(7763, "Loading data..."));
|
|
439
439
|
}
|
|
440
440
|
const issueRepoName = this.getElementById('show-repo-name');
|
|
441
441
|
const selectedExtension = this.issueReporterModel.getData().selectedExtension;
|
|
@@ -590,7 +590,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
590
590
|
if (results.length) {
|
|
591
591
|
const issues = $('div.issues-container');
|
|
592
592
|
const issuesText = $('div.list-title');
|
|
593
|
-
issuesText.textContent = ( localize(
|
|
593
|
+
issuesText.textContent = ( localize(7764, "Similar issues"));
|
|
594
594
|
this.numberOfSearchResultsDisplayed = results.length < 5 ? results.length : 5;
|
|
595
595
|
for (let i = 0; i < this.numberOfSearchResultsDisplayed; i++) {
|
|
596
596
|
const issue = results[i];
|
|
@@ -606,8 +606,8 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
606
606
|
const issueIcon = $('span.issue-icon');
|
|
607
607
|
issueIcon.appendChild(renderIcon(issue.state === 'open' ? Codicon.issueOpened : Codicon.issueClosed));
|
|
608
608
|
const issueStateLabel = $('span.issue-state.label');
|
|
609
|
-
issueStateLabel.textContent = issue.state === 'open' ? ( localize(
|
|
610
|
-
issueState.title = issue.state === 'open' ? ( localize(
|
|
609
|
+
issueStateLabel.textContent = issue.state === 'open' ? ( localize(7765, "Open")) : ( localize(7766, "Closed"));
|
|
610
|
+
issueState.title = issue.state === 'open' ? ( localize(7765, "Open")) : ( localize(7766, "Closed"));
|
|
611
611
|
issueState.appendChild(issueIcon);
|
|
612
612
|
issueState.appendChild(issueStateLabel);
|
|
613
613
|
item = $('div.issue', undefined, issueState, link);
|
|
@@ -625,7 +625,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
625
625
|
const makeOption = (issueType, description) => $('option', { 'value': issueType.valueOf() }, escape(description));
|
|
626
626
|
const typeSelect = this.getElementById('issue-type');
|
|
627
627
|
const { issueType } = this.issueReporterModel.getData();
|
|
628
|
-
reset(typeSelect, makeOption(IssueType.Bug, ( localize(
|
|
628
|
+
reset(typeSelect, makeOption(IssueType.Bug, ( localize(7767, "Bug Report"))), makeOption(IssueType.FeatureRequest, ( localize(7768, "Feature Request"))), makeOption(IssueType.PerformanceIssue, ( localize(7769, "Performance Issue (freeze, slow, crash)"))));
|
|
629
629
|
typeSelect.value = ( issueType.toString());
|
|
630
630
|
this.setSourceOptions();
|
|
631
631
|
}
|
|
@@ -655,14 +655,14 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
sourceSelect.innerText = '';
|
|
658
|
-
sourceSelect.append(this.makeOption('', ( localize(
|
|
659
|
-
sourceSelect.append(this.makeOption(IssueSource.VSCode, ( localize(
|
|
660
|
-
sourceSelect.append(this.makeOption(IssueSource.Extension, ( localize(
|
|
658
|
+
sourceSelect.append(this.makeOption('', ( localize(7770, "Select source")), true));
|
|
659
|
+
sourceSelect.append(this.makeOption(IssueSource.VSCode, ( localize(7771, "Visual Studio Code")), false));
|
|
660
|
+
sourceSelect.append(this.makeOption(IssueSource.Extension, ( localize(7772, "A VS Code extension")), false));
|
|
661
661
|
if (this.product.reportMarketplaceIssueUrl) {
|
|
662
|
-
sourceSelect.append(this.makeOption(IssueSource.Marketplace, ( localize(
|
|
662
|
+
sourceSelect.append(this.makeOption(IssueSource.Marketplace, ( localize(7773, "Extensions Marketplace")), false));
|
|
663
663
|
}
|
|
664
664
|
if (issueType !== IssueType.FeatureRequest) {
|
|
665
|
-
sourceSelect.append(this.makeOption(IssueSource.Unknown, ( localize(
|
|
665
|
+
sourceSelect.append(this.makeOption(IssueSource.Unknown, ( localize(7774, "Don't know")), false));
|
|
666
666
|
}
|
|
667
667
|
if (selected !== -1 && selected < sourceSelect.options.length) {
|
|
668
668
|
sourceSelect.selectedIndex = selected;
|
|
@@ -714,7 +714,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
714
714
|
const fileName = `extensionData_${formattedDate}_${formattedTime}.md`;
|
|
715
715
|
const handleLinkClick = async () => {
|
|
716
716
|
const downloadPath = await this.fileDialogService.showSaveDialog({
|
|
717
|
-
title: ( localize(
|
|
717
|
+
title: ( localize(7775, "Save Extension Data")),
|
|
718
718
|
availableFileSystems: [Schemas.file],
|
|
719
719
|
defaultUri: joinPath(await this.fileDialogService.defaultFilePath(Schemas.file), fileName),
|
|
720
720
|
});
|
|
@@ -730,13 +730,13 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
730
730
|
if (selectedExtension && this.nonGitHubIssueUrl) {
|
|
731
731
|
hide(titleTextArea);
|
|
732
732
|
hide(descriptionTextArea);
|
|
733
|
-
reset(descriptionTitle, ( localize(
|
|
733
|
+
reset(descriptionTitle, ( localize(7776, "This extension handles issues outside of VS Code")));
|
|
734
734
|
reset(descriptionSubtitle, ( localize(
|
|
735
|
-
|
|
735
|
+
7777,
|
|
736
736
|
"The '{0}' extension prefers to use an external issue reporter. To be taken to that issue reporting experience, click the button below.",
|
|
737
737
|
selectedExtension.displayName
|
|
738
738
|
)));
|
|
739
|
-
this.previewButton.label = ( localize(
|
|
739
|
+
this.previewButton.label = ( localize(7778, "Open External Issue Reporter"));
|
|
740
740
|
return;
|
|
741
741
|
}
|
|
742
742
|
if (fileOnExtension && selectedExtension?.data) {
|
|
@@ -763,9 +763,9 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
763
763
|
show(extensionsBlock);
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
|
-
reset(descriptionTitle, ( localize(
|
|
766
|
+
reset(descriptionTitle, ( localize(7779, "Steps to Reproduce")) + ' ', $('span.required-input', undefined, '*'));
|
|
767
767
|
reset(descriptionSubtitle, ( localize(
|
|
768
|
-
|
|
768
|
+
7780,
|
|
769
769
|
"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."
|
|
770
770
|
)));
|
|
771
771
|
}
|
|
@@ -783,16 +783,16 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
783
783
|
else if (!fileOnMarketplace) {
|
|
784
784
|
show(extensionsBlock);
|
|
785
785
|
}
|
|
786
|
-
reset(descriptionTitle, ( localize(
|
|
786
|
+
reset(descriptionTitle, ( localize(7779, "Steps to Reproduce")) + ' ', $('span.required-input', undefined, '*'));
|
|
787
787
|
reset(descriptionSubtitle, ( localize(
|
|
788
|
-
|
|
788
|
+
7781,
|
|
789
789
|
"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."
|
|
790
790
|
)));
|
|
791
791
|
}
|
|
792
792
|
else if (issueType === IssueType.FeatureRequest) {
|
|
793
|
-
reset(descriptionTitle, ( localize(
|
|
793
|
+
reset(descriptionTitle, ( localize(7782, "Description")) + ' ', $('span.required-input', undefined, '*'));
|
|
794
794
|
reset(descriptionSubtitle, ( localize(
|
|
795
|
-
|
|
795
|
+
7783,
|
|
796
796
|
"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."
|
|
797
797
|
)));
|
|
798
798
|
}
|
|
@@ -928,7 +928,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
928
928
|
throw ( new CancellationError());
|
|
929
929
|
}
|
|
930
930
|
return baseUrl + `&body=${encodeURIComponent(( localize(
|
|
931
|
-
|
|
931
|
+
7784,
|
|
932
932
|
"We have written the needed data into your clipboard because it was too large to send. Please paste."
|
|
933
933
|
)))}`;
|
|
934
934
|
}
|
|
@@ -1114,7 +1114,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
1114
1114
|
const target = this.window.document.querySelector('.block-extensions .block-info');
|
|
1115
1115
|
if (target) {
|
|
1116
1116
|
if (this.disableExtensions) {
|
|
1117
|
-
reset(target, ( localize(
|
|
1117
|
+
reset(target, ( localize(7785, "Extensions are disabled")));
|
|
1118
1118
|
return;
|
|
1119
1119
|
}
|
|
1120
1120
|
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(7786, "The --status argument is not yet supported in browsers.");
|
|
39
39
|
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
3
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
4
|
-
import { createElement
|
|
4
|
+
import { createElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
|
+
import { safeSetInnerHtml } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/domSanitize';
|
|
5
6
|
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
7
|
import { isWindows, isLinux } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
7
8
|
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
@@ -65,7 +66,24 @@ let IssueFormService = class IssueFormService {
|
|
|
65
66
|
div.classList.add('monaco-workbench');
|
|
66
67
|
auxiliaryWindow.container.remove();
|
|
67
68
|
auxiliaryWindow.window.document.body.appendChild(div);
|
|
68
|
-
|
|
69
|
+
safeSetInnerHtml(div, BaseHtml(), {
|
|
70
|
+
allowedTags: {
|
|
71
|
+
augment: [
|
|
72
|
+
'input',
|
|
73
|
+
'select',
|
|
74
|
+
'checkbox',
|
|
75
|
+
'textarea',
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
allowedAttributes: {
|
|
79
|
+
augment: [
|
|
80
|
+
'id',
|
|
81
|
+
'class',
|
|
82
|
+
'style',
|
|
83
|
+
'textarea',
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
});
|
|
69
87
|
this.issueReporterWindow = auxiliaryWindow.window;
|
|
70
88
|
}
|
|
71
89
|
else {
|
|
@@ -118,19 +136,19 @@ let IssueFormService = class IssueFormService {
|
|
|
118
136
|
await this.dialogService.prompt({
|
|
119
137
|
type: Severity.Warning,
|
|
120
138
|
message: ( localize(
|
|
121
|
-
|
|
139
|
+
7787,
|
|
122
140
|
"Your input will not be saved. Are you sure you want to close this window?"
|
|
123
141
|
)),
|
|
124
142
|
buttons: [
|
|
125
143
|
{
|
|
126
|
-
label: ( localize(
|
|
144
|
+
label: ( localize(7788, "&&Yes")),
|
|
127
145
|
run: () => {
|
|
128
146
|
this.closeReporter();
|
|
129
147
|
this.issueReporterWindow = null;
|
|
130
148
|
}
|
|
131
149
|
},
|
|
132
150
|
{
|
|
133
|
-
label: ( localize(
|
|
151
|
+
label: ( localize(7789, "Cancel")),
|
|
134
152
|
run: () => { }
|
|
135
153
|
}
|
|
136
154
|
]
|
|
@@ -141,16 +159,16 @@ let IssueFormService = class IssueFormService {
|
|
|
141
159
|
await this.dialogService.prompt({
|
|
142
160
|
type: Severity.Warning,
|
|
143
161
|
message: ( localize(
|
|
144
|
-
|
|
162
|
+
7790,
|
|
145
163
|
"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."
|
|
146
164
|
)),
|
|
147
165
|
buttons: [
|
|
148
166
|
{
|
|
149
|
-
label: ( localize(
|
|
167
|
+
label: ( localize(7791, "&&OK")),
|
|
150
168
|
run: () => { result = true; }
|
|
151
169
|
},
|
|
152
170
|
{
|
|
153
|
-
label: ( localize(
|
|
171
|
+
label: ( localize(7789, "Cancel")),
|
|
154
172
|
run: () => { result = false; }
|
|
155
173
|
}
|
|
156
174
|
]
|
|
@@ -2,18 +2,18 @@
|
|
|
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(7792, "Include my system information")));
|
|
6
|
+
const sendProcessInfoLabel = escape(( localize(7793, "Include my currently running processes")));
|
|
7
|
+
const sendWorkspaceInfoLabel = escape(( localize(7794, "Include my workspace metadata")));
|
|
8
|
+
const sendExtensionsLabel = escape(( localize(7795, "Include my enabled extensions")));
|
|
9
|
+
const sendExperimentsLabel = escape(( localize(7796, "Include A/B experiment info")));
|
|
10
|
+
const sendExtensionData = escape(( localize(7797, "Include additional extension info")));
|
|
11
11
|
const acknowledgementsLabel = escape(( localize(
|
|
12
|
-
|
|
12
|
+
7798,
|
|
13
13
|
"I acknowledge that my VS Code version is not updated and this issue may be closed."
|
|
14
14
|
)));
|
|
15
15
|
const reviewGuidanceLabel = ( localize(
|
|
16
|
-
|
|
16
|
+
7799,
|
|
17
17
|
'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>. Please complete the form in English.'
|
|
18
18
|
));
|
|
19
19
|
var BaseHtml = () => `
|
|
@@ -23,44 +23,44 @@ var BaseHtml = () => `
|
|
|
23
23
|
</span>
|
|
24
24
|
</div>
|
|
25
25
|
<div class="issue-reporter" id="issue-reporter">
|
|
26
|
-
<div id="english" class="input-group hidden">${escape(( localize(
|
|
26
|
+
<div id="english" class="input-group hidden">${escape(( localize(7800, "Please complete the form in English.")))}</div>
|
|
27
27
|
|
|
28
28
|
<div id="review-guidance-help-text" class="input-group">${reviewGuidanceLabel}</div>
|
|
29
29
|
|
|
30
30
|
<div class="section">
|
|
31
31
|
<div class="input-group">
|
|
32
|
-
<label class="inline-label" for="issue-type">${escape(( localize(
|
|
32
|
+
<label class="inline-label" for="issue-type">${escape(( localize(7801, "This is a")))}</label>
|
|
33
33
|
<select id="issue-type" class="inline-form-control">
|
|
34
34
|
<!-- To be dynamically filled -->
|
|
35
35
|
</select>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
<div class="input-group" id="problem-source">
|
|
39
|
-
<label class="inline-label" for="issue-source">${escape(( localize(
|
|
39
|
+
<label class="inline-label" for="issue-source">${escape(( localize(7802, "For")))} <span class="required-input">*</span></label>
|
|
40
40
|
<select id="issue-source" class="inline-form-control" required>
|
|
41
41
|
<!-- To be dynamically filled -->
|
|
42
42
|
</select>
|
|
43
|
-
<div id="issue-source-empty-error" class="validation-error hidden" role="alert">${escape(( localize(
|
|
43
|
+
<div id="issue-source-empty-error" class="validation-error hidden" role="alert">${escape(( localize(7803, "An issue source is required.")))}</div>
|
|
44
44
|
<div id="problem-source-help-text" class="instructions hidden">${escape(( localize(
|
|
45
|
-
|
|
45
|
+
7804,
|
|
46
46
|
"Try to reproduce the problem after {0}. If the problem only reproduces when extensions are active, it is likely an issue with an extension."
|
|
47
47
|
)))
|
|
48
|
-
.replace('{0}', () => `<span tabIndex=0 role="button" id="disableExtensions" class="workbenchCommand">${escape(( localize(
|
|
48
|
+
.replace('{0}', () => `<span tabIndex=0 role="button" id="disableExtensions" class="workbenchCommand">${escape(( localize(7805, "disabling all extensions and reloading the window")))}</span>`)}
|
|
49
49
|
</div>
|
|
50
50
|
|
|
51
51
|
<div id="extension-selection">
|
|
52
|
-
<label class="inline-label" for="extension-selector">${escape(( localize(
|
|
52
|
+
<label class="inline-label" for="extension-selector">${escape(( localize(7806, "Extension")))} <span class="required-input">*</span></label>
|
|
53
53
|
<select id="extension-selector" class="inline-form-control">
|
|
54
54
|
<!-- To be dynamically filled -->
|
|
55
55
|
</select>
|
|
56
56
|
<div id="extension-selection-validation-error" class="validation-error hidden" role="alert">${escape(( localize(
|
|
57
|
-
|
|
57
|
+
7807,
|
|
58
58
|
"The issue reporter is unable to create issues for this extension. Please visit {0} to report an issue."
|
|
59
59
|
)))
|
|
60
60
|
.replace('{0}', () => `<span tabIndex=0 role="button" id="extensionBugsLink" class="workbenchCommand"><!-- To be dynamically filled --></span>`)}</div>
|
|
61
61
|
<div id="extension-selection-validation-error-no-url" class="validation-error hidden" role="alert">
|
|
62
62
|
${escape(( localize(
|
|
63
|
-
|
|
63
|
+
7808,
|
|
64
64
|
"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."
|
|
65
65
|
)))}
|
|
66
66
|
</div>
|
|
@@ -68,10 +68,10 @@ var BaseHtml = () => `
|
|
|
68
68
|
</div>
|
|
69
69
|
|
|
70
70
|
<div id="issue-title-container" class="input-group">
|
|
71
|
-
<label class="inline-label" for="issue-title">${escape(( localize(
|
|
72
|
-
<input id="issue-title" type="text" class="inline-form-control" placeholder="${escape(( localize(
|
|
73
|
-
<div id="issue-title-empty-error" class="validation-error hidden" role="alert">${escape(( localize(
|
|
74
|
-
<div id="issue-title-length-validation-error" class="validation-error hidden" role="alert">${escape(( localize(
|
|
71
|
+
<label class="inline-label" for="issue-title">${escape(( localize(7809, "Title")))} <span class="required-input">*</span></label>
|
|
72
|
+
<input id="issue-title" type="text" class="inline-form-control" placeholder="${escape(( localize(7810, "Please enter a title.")))}" required>
|
|
73
|
+
<div id="issue-title-empty-error" class="validation-error hidden" role="alert">${escape(( localize(7811, "A title is required.")))}</div>
|
|
74
|
+
<div id="issue-title-length-validation-error" class="validation-error hidden" role="alert">${escape(( localize(7812, "The title is too long.")))}</div>
|
|
75
75
|
<small id="similar-issues">
|
|
76
76
|
<!-- To be dynamically filled -->
|
|
77
77
|
</small>
|
|
@@ -87,10 +87,10 @@ var BaseHtml = () => `
|
|
|
87
87
|
<!-- To be dynamically filled -->
|
|
88
88
|
</div>
|
|
89
89
|
<div class="block-info-text">
|
|
90
|
-
<textarea name="description" id="description" placeholder="${escape(( localize(
|
|
90
|
+
<textarea name="description" id="description" placeholder="${escape(( localize(7813, "Please enter details.")))}" required></textarea>
|
|
91
91
|
</div>
|
|
92
|
-
<div id="description-empty-error" class="validation-error hidden" role="alert">${escape(( localize(
|
|
93
|
-
<div id="description-short-error" class="validation-error hidden" role="alert">${escape(( localize(
|
|
92
|
+
<div id="description-empty-error" class="validation-error hidden" role="alert">${escape(( localize(7814, "A description is required.")))}</div>
|
|
93
|
+
<div id="description-short-error" class="validation-error hidden" role="alert">${escape(( localize(7815, "Please provide a longer description.")))}</div>
|
|
94
94
|
</div>
|
|
95
95
|
|
|
96
96
|
<div class="system-info" id="block-container">
|
|
@@ -99,10 +99,10 @@ var BaseHtml = () => `
|
|
|
99
99
|
<label class="extension-caption" id="extension-caption" for="includeExtensionData">
|
|
100
100
|
${sendExtensionData}
|
|
101
101
|
<span id="ext-loading" hidden></span>
|
|
102
|
-
<span class="ext-parens" hidden>(</span><a href="#" class="showInfo" id="extension-id">${escape(( localize(
|
|
103
|
-
<a id="extension-data-download">${escape(( localize(
|
|
102
|
+
<span class="ext-parens" hidden>(</span><a href="#" class="showInfo" id="extension-id">${escape(( localize(7816, "show")))}</a><span class="ext-parens" hidden>)</span>
|
|
103
|
+
<a id="extension-data-download">${escape(( localize(7817, "Download Extension Data")))}</a>
|
|
104
104
|
</label>
|
|
105
|
-
<pre class="block-info" id="extension-data" placeholder="${escape(( localize(
|
|
105
|
+
<pre class="block-info" id="extension-data" placeholder="${escape(( localize(7818, "Extension does not have additional data to include.")))}" style="white-space: pre-wrap; user-select: text;">
|
|
106
106
|
<!-- To be dynamically filled -->
|
|
107
107
|
</pre>
|
|
108
108
|
</div>
|
|
@@ -111,7 +111,7 @@ var BaseHtml = () => `
|
|
|
111
111
|
<input class="sendData" aria-label="${sendSystemInfoLabel}" type="checkbox" id="includeSystemInfo" checked/>
|
|
112
112
|
<label class="caption" for="includeSystemInfo">
|
|
113
113
|
${sendSystemInfoLabel}
|
|
114
|
-
(<a href="#" class="showInfo">${escape(( localize(
|
|
114
|
+
(<a href="#" class="showInfo">${escape(( localize(7816, "show")))}</a>)
|
|
115
115
|
</label>
|
|
116
116
|
<div class="block-info hidden" style="user-select: text;">
|
|
117
117
|
<!-- To be dynamically filled -->
|
|
@@ -121,7 +121,7 @@ var BaseHtml = () => `
|
|
|
121
121
|
<input class="sendData" aria-label="${sendProcessInfoLabel}" type="checkbox" id="includeProcessInfo" checked/>
|
|
122
122
|
<label class="caption" for="includeProcessInfo">
|
|
123
123
|
${sendProcessInfoLabel}
|
|
124
|
-
(<a href="#" class="showInfo">${escape(( localize(
|
|
124
|
+
(<a href="#" class="showInfo">${escape(( localize(7816, "show")))}</a>)
|
|
125
125
|
</label>
|
|
126
126
|
<pre class="block-info hidden" style="user-select: text;">
|
|
127
127
|
<code>
|
|
@@ -133,7 +133,7 @@ var BaseHtml = () => `
|
|
|
133
133
|
<input class="sendData" aria-label="${sendWorkspaceInfoLabel}" type="checkbox" id="includeWorkspaceInfo" checked/>
|
|
134
134
|
<label class="caption" for="includeWorkspaceInfo">
|
|
135
135
|
${sendWorkspaceInfoLabel}
|
|
136
|
-
(<a href="#" class="showInfo">${escape(( localize(
|
|
136
|
+
(<a href="#" class="showInfo">${escape(( localize(7816, "show")))}</a>)
|
|
137
137
|
</label>
|
|
138
138
|
<pre id="systemInfo" class="block-info hidden" style="user-select: text;">
|
|
139
139
|
<code>
|
|
@@ -145,7 +145,7 @@ var BaseHtml = () => `
|
|
|
145
145
|
<input class="sendData" aria-label="${sendExtensionsLabel}" type="checkbox" id="includeExtensions" checked/>
|
|
146
146
|
<label class="caption" for="includeExtensions">
|
|
147
147
|
${sendExtensionsLabel}
|
|
148
|
-
(<a href="#" class="showInfo">${escape(( localize(
|
|
148
|
+
(<a href="#" class="showInfo">${escape(( localize(7816, "show")))}</a>)
|
|
149
149
|
</label>
|
|
150
150
|
<div id="systemInfo" class="block-info hidden" style="user-select: text;">
|
|
151
151
|
<!-- To be dynamically filled -->
|
|
@@ -155,7 +155,7 @@ var BaseHtml = () => `
|
|
|
155
155
|
<input class="sendData" aria-label="${sendExperimentsLabel}" type="checkbox" id="includeExperiments" checked/>
|
|
156
156
|
<label class="caption" for="includeExperiments">
|
|
157
157
|
${sendExperimentsLabel}
|
|
158
|
-
(<a href="#" class="showInfo">${escape(( localize(
|
|
158
|
+
(<a href="#" class="showInfo">${escape(( localize(7816, "show")))}</a>)
|
|
159
159
|
</label>
|
|
160
160
|
<pre class="block-info hidden" style="user-select: text;">
|
|
161
161
|
<!-- To be dynamically filled -->
|
|
@@ -26,7 +26,7 @@ let IssueWebReporter = class IssueWebReporter extends BaseIssueReporterService {
|
|
|
26
26
|
this.issueReporterModel.update({ issueType: issueType });
|
|
27
27
|
const descriptionTextArea = this.getElementById('issue-title');
|
|
28
28
|
if (descriptionTextArea) {
|
|
29
|
-
descriptionTextArea.placeholder = ( localize(
|
|
29
|
+
descriptionTextArea.placeholder = ( localize(7819, "Please enter a title"));
|
|
30
30
|
}
|
|
31
31
|
this.updatePreviewButtonState();
|
|
32
32
|
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(7820, "Troubleshoot Issue")),
|
|
89
89
|
detail: ( localize(
|
|
90
|
-
|
|
90
|
+
7821,
|
|
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(7822, "&&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
|
+
7823,
|
|
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
|
+
7824,
|
|
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
|
+
7825,
|
|
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
|
+
7826,
|
|
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(7827, "I Can't Reproduce")),
|
|
186
186
|
run: () => c('good')
|
|
187
187
|
};
|
|
188
188
|
const badPrompt = {
|
|
189
|
-
label: ( localize(
|
|
189
|
+
label: ( localize(7828, "I Can Reproduce")),
|
|
190
190
|
run: () => c('bad')
|
|
191
191
|
};
|
|
192
192
|
const stop = {
|
|
193
|
-
label: ( localize(
|
|
193
|
+
label: ( localize(7829, "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(7820, "Troubleshoot Issue")),
|
|
207
207
|
detail: ( localize(
|
|
208
|
-
|
|
208
|
+
7830,
|
|
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(7820, "Troubleshoot Issue")),
|
|
232
|
+
primaryButton: ( localize(7831, "Download {0} Insiders", this.productService.nameLong)),
|
|
233
|
+
cancelButton: ( localize(7832, "Report Issue Anyway")),
|
|
234
234
|
detail: ( localize(
|
|
235
|
-
|
|
235
|
+
7833,
|
|
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(7820, "Troubleshoot Issue")),
|
|
253
253
|
buttons: [{
|
|
254
|
-
label: ( localize(
|
|
254
|
+
label: ( localize(7834, "I can't reproduce")),
|
|
255
255
|
run: () => 'good'
|
|
256
256
|
}, {
|
|
257
|
-
label: ( localize(
|
|
257
|
+
label: ( localize(7835, "I can reproduce")),
|
|
258
258
|
run: () => 'bad'
|
|
259
259
|
}],
|
|
260
260
|
cancelButton: {
|
|
261
|
-
label: ( localize(
|
|
261
|
+
label: ( localize(7836, "Stop")),
|
|
262
262
|
run: () => 'stop'
|
|
263
263
|
},
|
|
264
264
|
detail: ( localize(
|
|
265
|
-
|
|
265
|
+
7837,
|
|
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(7838, '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(7839, 'Stop Troubleshoot Issue')),
|
|
355
355
|
category: Categories.Help,
|
|
356
356
|
f1: true,
|
|
357
357
|
precondition: IssueTroubleshootUi.ctxIsTroubleshootActive
|
|
@@ -86,7 +86,7 @@ let BaseIssueContribution = class BaseIssueContribution extends Disposable {
|
|
|
86
86
|
}));
|
|
87
87
|
const reportIssue = {
|
|
88
88
|
id: OpenIssueReporterActionId,
|
|
89
|
-
title: ( localize2(
|
|
89
|
+
title: ( localize2(7840, "Report Issue...")),
|
|
90
90
|
category: Categories.Help
|
|
91
91
|
};
|
|
92
92
|
this._register(MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: reportIssue }));
|
|
@@ -94,7 +94,7 @@ let BaseIssueContribution = class BaseIssueContribution extends Disposable {
|
|
|
94
94
|
group: '3_feedback',
|
|
95
95
|
command: {
|
|
96
96
|
id: OpenIssueReporterActionId,
|
|
97
|
-
title: ( localize(
|
|
97
|
+
title: ( localize(7841, "Report &&Issue"))
|
|
98
98
|
},
|
|
99
99
|
order: 3
|
|
100
100
|
}));
|