@codingame/monaco-vscode-issue-service-override 18.4.0 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/workbench/contrib/issue/browser/baseIssueReporterService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/issue/browser/baseIssueReporterService.js +53 -47
- 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 +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": "19.0.0",
|
|
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": "19.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-api": "19.0.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -76,7 +76,7 @@ export declare class BaseIssueReporterService extends Disposable {
|
|
|
76
76
|
}): Promise<boolean>;
|
|
77
77
|
createIssue(): Promise<boolean>;
|
|
78
78
|
writeToClipboard(baseUrl: string, issueBody: string): Promise<string>;
|
|
79
|
-
addTemplateToUrl(owner?: string, repositoryName?: string): string;
|
|
79
|
+
addTemplateToUrl(baseUrl: string, owner?: string, repositoryName?: string): string;
|
|
80
80
|
getIssueUrl(): string;
|
|
81
81
|
parseGitHubUrl(url: string): undefined | {
|
|
82
82
|
repositoryName: string;
|
|
@@ -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(7626, "Select extension")), true), ...( extensionOptions.map(extension => makeOption(extension, selectedExtension))));
|
|
189
189
|
if (!selectedExtension) {
|
|
190
190
|
extensionsSelector.selectedIndex = 0;
|
|
191
191
|
}
|
|
@@ -240,7 +240,11 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
240
240
|
}
|
|
241
241
|
async sendReporterMenu(extension) {
|
|
242
242
|
try {
|
|
243
|
-
const
|
|
243
|
+
const timeoutPromise = ( new Promise((_, reject) => setTimeout(() => reject(( new Error('sendReporterMenu timed out'))), 10000)));
|
|
244
|
+
const data = await Promise.race([
|
|
245
|
+
this.issueFormService.sendReporterMenu(extension.id),
|
|
246
|
+
timeoutPromise
|
|
247
|
+
]);
|
|
244
248
|
return data;
|
|
245
249
|
}
|
|
246
250
|
catch (e) {
|
|
@@ -277,11 +281,11 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
277
281
|
const info = containingElement && containingElement.lastElementChild;
|
|
278
282
|
if (info && info.classList.contains('hidden')) {
|
|
279
283
|
show(info);
|
|
280
|
-
label.textContent = ( localize(
|
|
284
|
+
label.textContent = ( localize(7627, "hide"));
|
|
281
285
|
}
|
|
282
286
|
else {
|
|
283
287
|
hide(info);
|
|
284
|
-
label.textContent = ( localize(
|
|
288
|
+
label.textContent = ( localize(7628, "show"));
|
|
285
289
|
}
|
|
286
290
|
}
|
|
287
291
|
});
|
|
@@ -301,16 +305,16 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
301
305
|
}
|
|
302
306
|
const descriptionTextArea = this.getElementById('issue-title');
|
|
303
307
|
if (value === IssueSource.VSCode) {
|
|
304
|
-
descriptionTextArea.placeholder = ( localize(
|
|
308
|
+
descriptionTextArea.placeholder = ( localize(7629, "E.g Workbench is missing problems panel"));
|
|
305
309
|
}
|
|
306
310
|
else if (value === IssueSource.Extension) {
|
|
307
|
-
descriptionTextArea.placeholder = ( localize(
|
|
311
|
+
descriptionTextArea.placeholder = ( localize(7630, "E.g. Missing alt text on extension readme image"));
|
|
308
312
|
}
|
|
309
313
|
else if (value === IssueSource.Marketplace) {
|
|
310
|
-
descriptionTextArea.placeholder = ( localize(
|
|
314
|
+
descriptionTextArea.placeholder = ( localize(7631, "E.g Cannot disable installed extension"));
|
|
311
315
|
}
|
|
312
316
|
else {
|
|
313
|
-
descriptionTextArea.placeholder = ( localize(
|
|
317
|
+
descriptionTextArea.placeholder = ( localize(7632, "Please enter a title"));
|
|
314
318
|
}
|
|
315
319
|
let fileOnExtension, fileOnMarketplace, fileOnProduct = false;
|
|
316
320
|
if (value === IssueSource.Extension) {
|
|
@@ -417,21 +421,21 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
417
421
|
}
|
|
418
422
|
updatePreviewButtonState() {
|
|
419
423
|
if (!this.acknowledged && this.needsUpdate) {
|
|
420
|
-
this.previewButton.label = ( localize(
|
|
424
|
+
this.previewButton.label = ( localize(7633, "Confirm Version Acknowledgement"));
|
|
421
425
|
this.previewButton.enabled = false;
|
|
422
426
|
}
|
|
423
427
|
else if (this.isPreviewEnabled()) {
|
|
424
428
|
if (this.data.githubAccessToken) {
|
|
425
|
-
this.previewButton.label = ( localize(
|
|
429
|
+
this.previewButton.label = ( localize(7634, "Create on GitHub"));
|
|
426
430
|
}
|
|
427
431
|
else {
|
|
428
|
-
this.previewButton.label = ( localize(
|
|
432
|
+
this.previewButton.label = ( localize(7635, "Preview on GitHub"));
|
|
429
433
|
}
|
|
430
434
|
this.previewButton.enabled = true;
|
|
431
435
|
}
|
|
432
436
|
else {
|
|
433
437
|
this.previewButton.enabled = false;
|
|
434
|
-
this.previewButton.label = ( localize(
|
|
438
|
+
this.previewButton.label = ( localize(7636, "Loading data..."));
|
|
435
439
|
}
|
|
436
440
|
const issueRepoName = this.getElementById('show-repo-name');
|
|
437
441
|
const selectedExtension = this.issueReporterModel.getData().selectedExtension;
|
|
@@ -586,7 +590,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
586
590
|
if (results.length) {
|
|
587
591
|
const issues = $('div.issues-container');
|
|
588
592
|
const issuesText = $('div.list-title');
|
|
589
|
-
issuesText.textContent = ( localize(
|
|
593
|
+
issuesText.textContent = ( localize(7637, "Similar issues"));
|
|
590
594
|
this.numberOfSearchResultsDisplayed = results.length < 5 ? results.length : 5;
|
|
591
595
|
for (let i = 0; i < this.numberOfSearchResultsDisplayed; i++) {
|
|
592
596
|
const issue = results[i];
|
|
@@ -602,8 +606,8 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
602
606
|
const issueIcon = $('span.issue-icon');
|
|
603
607
|
issueIcon.appendChild(renderIcon(issue.state === 'open' ? Codicon.issueOpened : Codicon.issueClosed));
|
|
604
608
|
const issueStateLabel = $('span.issue-state.label');
|
|
605
|
-
issueStateLabel.textContent = issue.state === 'open' ? ( localize(
|
|
606
|
-
issueState.title = issue.state === 'open' ? ( localize(
|
|
609
|
+
issueStateLabel.textContent = issue.state === 'open' ? ( localize(7638, "Open")) : ( localize(7639, "Closed"));
|
|
610
|
+
issueState.title = issue.state === 'open' ? ( localize(7638, "Open")) : ( localize(7639, "Closed"));
|
|
607
611
|
issueState.appendChild(issueIcon);
|
|
608
612
|
issueState.appendChild(issueStateLabel);
|
|
609
613
|
item = $('div.issue', undefined, issueState, link);
|
|
@@ -621,7 +625,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
621
625
|
const makeOption = (issueType, description) => $('option', { 'value': issueType.valueOf() }, escape(description));
|
|
622
626
|
const typeSelect = this.getElementById('issue-type');
|
|
623
627
|
const { issueType } = this.issueReporterModel.getData();
|
|
624
|
-
reset(typeSelect, makeOption(IssueType.Bug, ( localize(
|
|
628
|
+
reset(typeSelect, makeOption(IssueType.Bug, ( localize(7640, "Bug Report"))), makeOption(IssueType.FeatureRequest, ( localize(7641, "Feature Request"))), makeOption(IssueType.PerformanceIssue, ( localize(7642, "Performance Issue (freeze, slow, crash)"))));
|
|
625
629
|
typeSelect.value = ( issueType.toString());
|
|
626
630
|
this.setSourceOptions();
|
|
627
631
|
}
|
|
@@ -651,14 +655,14 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
651
655
|
}
|
|
652
656
|
}
|
|
653
657
|
sourceSelect.innerText = '';
|
|
654
|
-
sourceSelect.append(this.makeOption('', ( localize(
|
|
655
|
-
sourceSelect.append(this.makeOption(IssueSource.VSCode, ( localize(
|
|
656
|
-
sourceSelect.append(this.makeOption(IssueSource.Extension, ( localize(
|
|
658
|
+
sourceSelect.append(this.makeOption('', ( localize(7643, "Select source")), true));
|
|
659
|
+
sourceSelect.append(this.makeOption(IssueSource.VSCode, ( localize(7644, "Visual Studio Code")), false));
|
|
660
|
+
sourceSelect.append(this.makeOption(IssueSource.Extension, ( localize(7645, "A VS Code extension")), false));
|
|
657
661
|
if (this.product.reportMarketplaceIssueUrl) {
|
|
658
|
-
sourceSelect.append(this.makeOption(IssueSource.Marketplace, ( localize(
|
|
662
|
+
sourceSelect.append(this.makeOption(IssueSource.Marketplace, ( localize(7646, "Extensions Marketplace")), false));
|
|
659
663
|
}
|
|
660
664
|
if (issueType !== IssueType.FeatureRequest) {
|
|
661
|
-
sourceSelect.append(this.makeOption(IssueSource.Unknown, ( localize(
|
|
665
|
+
sourceSelect.append(this.makeOption(IssueSource.Unknown, ( localize(7647, "Don't know")), false));
|
|
662
666
|
}
|
|
663
667
|
if (selected !== -1 && selected < sourceSelect.options.length) {
|
|
664
668
|
sourceSelect.selectedIndex = selected;
|
|
@@ -710,7 +714,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
710
714
|
const fileName = `extensionData_${formattedDate}_${formattedTime}.md`;
|
|
711
715
|
const handleLinkClick = async () => {
|
|
712
716
|
const downloadPath = await this.fileDialogService.showSaveDialog({
|
|
713
|
-
title: ( localize(
|
|
717
|
+
title: ( localize(7648, "Save Extension Data")),
|
|
714
718
|
availableFileSystems: [Schemas.file],
|
|
715
719
|
defaultUri: joinPath(await this.fileDialogService.defaultFilePath(Schemas.file), fileName),
|
|
716
720
|
});
|
|
@@ -726,13 +730,13 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
726
730
|
if (selectedExtension && this.nonGitHubIssueUrl) {
|
|
727
731
|
hide(titleTextArea);
|
|
728
732
|
hide(descriptionTextArea);
|
|
729
|
-
reset(descriptionTitle, ( localize(
|
|
733
|
+
reset(descriptionTitle, ( localize(7649, "This extension handles issues outside of VS Code")));
|
|
730
734
|
reset(descriptionSubtitle, ( localize(
|
|
731
|
-
|
|
735
|
+
7650,
|
|
732
736
|
"The '{0}' extension prefers to use an external issue reporter. To be taken to that issue reporting experience, click the button below.",
|
|
733
737
|
selectedExtension.displayName
|
|
734
738
|
)));
|
|
735
|
-
this.previewButton.label = ( localize(
|
|
739
|
+
this.previewButton.label = ( localize(7651, "Open External Issue Reporter"));
|
|
736
740
|
return;
|
|
737
741
|
}
|
|
738
742
|
if (fileOnExtension && selectedExtension?.data) {
|
|
@@ -759,9 +763,9 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
759
763
|
show(extensionsBlock);
|
|
760
764
|
}
|
|
761
765
|
}
|
|
762
|
-
reset(descriptionTitle, ( localize(
|
|
766
|
+
reset(descriptionTitle, ( localize(7652, "Steps to Reproduce")) + ' ', $('span.required-input', undefined, '*'));
|
|
763
767
|
reset(descriptionSubtitle, ( localize(
|
|
764
|
-
|
|
768
|
+
7653,
|
|
765
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."
|
|
766
770
|
)));
|
|
767
771
|
}
|
|
@@ -779,16 +783,16 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
779
783
|
else if (!fileOnMarketplace) {
|
|
780
784
|
show(extensionsBlock);
|
|
781
785
|
}
|
|
782
|
-
reset(descriptionTitle, ( localize(
|
|
786
|
+
reset(descriptionTitle, ( localize(7652, "Steps to Reproduce")) + ' ', $('span.required-input', undefined, '*'));
|
|
783
787
|
reset(descriptionSubtitle, ( localize(
|
|
784
|
-
|
|
788
|
+
7654,
|
|
785
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."
|
|
786
790
|
)));
|
|
787
791
|
}
|
|
788
792
|
else if (issueType === IssueType.FeatureRequest) {
|
|
789
|
-
reset(descriptionTitle, ( localize(
|
|
793
|
+
reset(descriptionTitle, ( localize(7655, "Description")) + ' ', $('span.required-input', undefined, '*'));
|
|
790
794
|
reset(descriptionSubtitle, ( localize(
|
|
791
|
-
|
|
795
|
+
7656,
|
|
792
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."
|
|
793
797
|
)));
|
|
794
798
|
}
|
|
@@ -904,10 +908,11 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
904
908
|
}
|
|
905
909
|
const baseUrl = this.getIssueUrlWithTitle(this.getElementById('issue-title').value, issueUrl);
|
|
906
910
|
let url = baseUrl + `&body=${encodeURIComponent(issueBody)}`;
|
|
907
|
-
url
|
|
911
|
+
url = this.addTemplateToUrl(url, gitHubDetails?.owner, gitHubDetails?.repositoryName);
|
|
908
912
|
if (url.length > MAX_URL_LENGTH) {
|
|
909
913
|
try {
|
|
910
|
-
url =
|
|
914
|
+
url = await this.writeToClipboard(baseUrl, issueBody);
|
|
915
|
+
url = this.addTemplateToUrl(url, gitHubDetails?.owner, gitHubDetails?.repositoryName);
|
|
911
916
|
}
|
|
912
917
|
catch (_) {
|
|
913
918
|
console.error('Writing to clipboard failed');
|
|
@@ -923,24 +928,25 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
923
928
|
throw ( new CancellationError());
|
|
924
929
|
}
|
|
925
930
|
return baseUrl + `&body=${encodeURIComponent(( localize(
|
|
926
|
-
|
|
931
|
+
7657,
|
|
927
932
|
"We have written the needed data into your clipboard because it was too large to send. Please paste."
|
|
928
933
|
)))}`;
|
|
929
934
|
}
|
|
930
|
-
addTemplateToUrl(owner, repositoryName) {
|
|
935
|
+
addTemplateToUrl(baseUrl, owner, repositoryName) {
|
|
931
936
|
const isVscode = this.issueReporterModel.getData().fileOnProduct;
|
|
932
|
-
const
|
|
933
|
-
const
|
|
934
|
-
if (
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
937
|
+
const isMicrosoft = owner?.toLowerCase() === 'microsoft';
|
|
938
|
+
const needsTemplate = isVscode || (isMicrosoft && (repositoryName === 'vscode' || repositoryName === 'vscode-python'));
|
|
939
|
+
if (needsTemplate) {
|
|
940
|
+
try {
|
|
941
|
+
const url = ( new URL(baseUrl));
|
|
942
|
+
url.searchParams.set('template', 'bug_report.md');
|
|
943
|
+
return ( url.toString());
|
|
944
|
+
}
|
|
945
|
+
catch {
|
|
946
|
+
return baseUrl + '&template=bug_report.md';
|
|
947
|
+
}
|
|
942
948
|
}
|
|
943
|
-
return
|
|
949
|
+
return baseUrl;
|
|
944
950
|
}
|
|
945
951
|
getIssueUrl() {
|
|
946
952
|
return this.issueReporterModel.fileOnExtension()
|
|
@@ -1108,7 +1114,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
1108
1114
|
const target = this.window.document.querySelector('.block-extensions .block-info');
|
|
1109
1115
|
if (target) {
|
|
1110
1116
|
if (this.disableExtensions) {
|
|
1111
|
-
reset(target, ( localize(
|
|
1117
|
+
reset(target, ( localize(7658, "Extensions are disabled")));
|
|
1112
1118
|
return;
|
|
1113
1119
|
}
|
|
1114
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(7659, "The --status argument is not yet supported in browsers.");
|
|
39
39
|
});
|
|
@@ -118,19 +118,19 @@ let IssueFormService = class IssueFormService {
|
|
|
118
118
|
await this.dialogService.prompt({
|
|
119
119
|
type: Severity.Warning,
|
|
120
120
|
message: ( localize(
|
|
121
|
-
|
|
121
|
+
7660,
|
|
122
122
|
"Your input will not be saved. Are you sure you want to close this window?"
|
|
123
123
|
)),
|
|
124
124
|
buttons: [
|
|
125
125
|
{
|
|
126
|
-
label: ( localize(
|
|
126
|
+
label: ( localize(7661, "&&Yes")),
|
|
127
127
|
run: () => {
|
|
128
128
|
this.closeReporter();
|
|
129
129
|
this.issueReporterWindow = null;
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
|
-
label: ( localize(
|
|
133
|
+
label: ( localize(7662, "Cancel")),
|
|
134
134
|
run: () => { }
|
|
135
135
|
}
|
|
136
136
|
]
|
|
@@ -141,16 +141,16 @@ let IssueFormService = class IssueFormService {
|
|
|
141
141
|
await this.dialogService.prompt({
|
|
142
142
|
type: Severity.Warning,
|
|
143
143
|
message: ( localize(
|
|
144
|
-
|
|
144
|
+
7663,
|
|
145
145
|
"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
146
|
)),
|
|
147
147
|
buttons: [
|
|
148
148
|
{
|
|
149
|
-
label: ( localize(
|
|
149
|
+
label: ( localize(7664, "&&OK")),
|
|
150
150
|
run: () => { result = true; }
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
|
-
label: ( localize(
|
|
153
|
+
label: ( localize(7662, "Cancel")),
|
|
154
154
|
run: () => { result = false; }
|
|
155
155
|
}
|
|
156
156
|
]
|
|
@@ -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(7665, "Include my system information")));
|
|
6
|
+
const sendProcessInfoLabel = escape(( localize(7666, "Include my currently running processes")));
|
|
7
|
+
const sendWorkspaceInfoLabel = escape(( localize(7667, "Include my workspace metadata")));
|
|
8
|
+
const sendExtensionsLabel = escape(( localize(7668, "Include my enabled extensions")));
|
|
9
|
+
const sendExperimentsLabel = escape(( localize(7669, "Include A/B experiment info")));
|
|
10
|
+
const sendExtensionData = escape(( localize(7670, "Include additional extension info")));
|
|
11
11
|
const acknowledgementsLabel = escape(( localize(
|
|
12
|
-
|
|
12
|
+
7671,
|
|
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
|
+
7672,
|
|
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(7673, "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(7674, "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(7675, "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(7676, "An issue source is required.")))}</div>
|
|
44
44
|
<div id="problem-source-help-text" class="instructions hidden">${escape(( localize(
|
|
45
|
-
|
|
45
|
+
7677,
|
|
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(7678, "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(7679, "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
|
+
7680,
|
|
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
|
+
7681,
|
|
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(7682, "Title")))} <span class="required-input">*</span></label>
|
|
72
|
+
<input id="issue-title" type="text" class="inline-form-control" placeholder="${escape(( localize(7683, "Please enter a title.")))}" required>
|
|
73
|
+
<div id="issue-title-empty-error" class="validation-error hidden" role="alert">${escape(( localize(7684, "A title is required.")))}</div>
|
|
74
|
+
<div id="issue-title-length-validation-error" class="validation-error hidden" role="alert">${escape(( localize(7685, "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(7686, "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(7687, "A description is required.")))}</div>
|
|
93
|
+
<div id="description-short-error" class="validation-error hidden" role="alert">${escape(( localize(7688, "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(7689, "show")))}</a><span class="ext-parens" hidden>)</span>
|
|
103
|
+
<a id="extension-data-download">${escape(( localize(7690, "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(7691, "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(7689, "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(7689, "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(7689, "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(7689, "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(7689, "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(7692, "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(7693, "Troubleshoot Issue")),
|
|
89
89
|
detail: ( localize(
|
|
90
|
-
|
|
90
|
+
7694,
|
|
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(7695, "&&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
|
+
7696,
|
|
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
|
+
7697,
|
|
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
|
+
7698,
|
|
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
|
+
7699,
|
|
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(7700, "I Can't Reproduce")),
|
|
186
186
|
run: () => c('good')
|
|
187
187
|
};
|
|
188
188
|
const badPrompt = {
|
|
189
|
-
label: ( localize(
|
|
189
|
+
label: ( localize(7701, "I Can Reproduce")),
|
|
190
190
|
run: () => c('bad')
|
|
191
191
|
};
|
|
192
192
|
const stop = {
|
|
193
|
-
label: ( localize(
|
|
193
|
+
label: ( localize(7702, "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(7693, "Troubleshoot Issue")),
|
|
207
207
|
detail: ( localize(
|
|
208
|
-
|
|
208
|
+
7703,
|
|
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(7693, "Troubleshoot Issue")),
|
|
232
|
+
primaryButton: ( localize(7704, "Download {0} Insiders", this.productService.nameLong)),
|
|
233
|
+
cancelButton: ( localize(7705, "Report Issue Anyway")),
|
|
234
234
|
detail: ( localize(
|
|
235
|
-
|
|
235
|
+
7706,
|
|
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(7693, "Troubleshoot Issue")),
|
|
253
253
|
buttons: [{
|
|
254
|
-
label: ( localize(
|
|
254
|
+
label: ( localize(7707, "I can't reproduce")),
|
|
255
255
|
run: () => 'good'
|
|
256
256
|
}, {
|
|
257
|
-
label: ( localize(
|
|
257
|
+
label: ( localize(7708, "I can reproduce")),
|
|
258
258
|
run: () => 'bad'
|
|
259
259
|
}],
|
|
260
260
|
cancelButton: {
|
|
261
|
-
label: ( localize(
|
|
261
|
+
label: ( localize(7709, "Stop")),
|
|
262
262
|
run: () => 'stop'
|
|
263
263
|
},
|
|
264
264
|
detail: ( localize(
|
|
265
|
-
|
|
265
|
+
7710,
|
|
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(7711, '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(7712, '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(7713, "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(7714, "Report &&Issue"))
|
|
98
98
|
},
|
|
99
99
|
order: 3
|
|
100
100
|
}));
|