@codingame/monaco-vscode-issue-service-override 38.1.2 → 39.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 +2 -2
- package/vscode/src/vs/workbench/contrib/issue/browser/baseIssueReporterService.js +38 -38
- package/vscode/src/vs/workbench/contrib/issue/browser/issue.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/issue/browser/issueFormService.d.ts +4 -11
- package/vscode/src/vs/workbench/contrib/issue/browser/issueFormService.js +197 -175
- package/vscode/src/vs/workbench/contrib/issue/browser/issueReporterMedia.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/issue/browser/issueReporterMedia.js +38 -0
- 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/issueService.js +1 -0
- 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/vscode/src/vs/workbench/contrib/issue/common/issue.d.ts +39 -16
- package/vscode/src/vs/workbench/contrib/issue/common/issueReporterTarget.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/issue/common/issueReporterTarget.js +157 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-issue-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "39.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - issue service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "39.0.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -123,7 +123,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
123
123
|
fileOnMarketplace,
|
|
124
124
|
fileOnProduct
|
|
125
125
|
});
|
|
126
|
-
this.createAction = this._register(( new Action("issueReporter.create", ( localize(
|
|
126
|
+
this.createAction = this._register(( new Action("issueReporter.create", ( localize(20844, "Create on GitHub")), undefined, true, async () => {
|
|
127
127
|
this.delayedSubmit.trigger(async () => {
|
|
128
128
|
this.setSubmittingState(true);
|
|
129
129
|
try {
|
|
@@ -133,7 +133,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
})));
|
|
136
|
-
this.previewAction = this._register(( new Action("issueReporter.preview", ( localize(
|
|
136
|
+
this.previewAction = this._register(( new Action("issueReporter.preview", ( localize(20845, "Preview on GitHub")), undefined, true, async () => {
|
|
137
137
|
this.delayedSubmit.trigger(async () => {
|
|
138
138
|
this.setSubmittingState(true);
|
|
139
139
|
try {
|
|
@@ -143,7 +143,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
145
|
})));
|
|
146
|
-
this.privateAction = this._register(( new Action("issueReporter.privateCreate", ( localize(
|
|
146
|
+
this.privateAction = this._register(( new Action("issueReporter.privateCreate", ( localize(20846, "Create Internally")), undefined, true, async () => {
|
|
147
147
|
this.delayedSubmit.trigger(async () => {
|
|
148
148
|
this.setSubmittingState(true);
|
|
149
149
|
try {
|
|
@@ -248,7 +248,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
248
248
|
filingNote.classList.add("internal-preview-message");
|
|
249
249
|
container.appendChild(filingNote);
|
|
250
250
|
}
|
|
251
|
-
filingNote.textContent = escape(( localize(
|
|
251
|
+
filingNote.textContent = escape(( localize(20847, "If your copilot debug logs contain private information:")));
|
|
252
252
|
}
|
|
253
253
|
updatePublicGithubButton(container) {
|
|
254
254
|
const issueReporterElement = this.getElementById("issue-reporter");
|
|
@@ -260,7 +260,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
260
260
|
}
|
|
261
261
|
if (!this.acknowledged && this.needsUpdate) {
|
|
262
262
|
this.publicGithubButton = this._register(( new Button(container, unthemedButtonStyles)));
|
|
263
|
-
this.publicGithubButton.label = ( localize(
|
|
263
|
+
this.publicGithubButton.label = ( localize(20848, "Confirm Version Acknowledgement"));
|
|
264
264
|
this.publicGithubButton.enabled = false;
|
|
265
265
|
} else if (this.data.githubAccessToken && this.isPreviewEnabled()) {
|
|
266
266
|
this.publicGithubButton = this._register(( new ButtonWithDropdown(container, {
|
|
@@ -272,21 +272,21 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
272
272
|
this._register(this.publicGithubButton.onDidClick(() => {
|
|
273
273
|
this.createAction.run();
|
|
274
274
|
}));
|
|
275
|
-
this.publicGithubButton.label = ( localize(
|
|
275
|
+
this.publicGithubButton.label = ( localize(20849, "Create on GitHub"));
|
|
276
276
|
this.publicGithubButton.enabled = true;
|
|
277
277
|
} else if (this.data.githubAccessToken && !this.isPreviewEnabled()) {
|
|
278
278
|
this.publicGithubButton = this._register(( new Button(container, unthemedButtonStyles)));
|
|
279
279
|
this._register(this.publicGithubButton.onDidClick(() => {
|
|
280
280
|
this.createAction.run();
|
|
281
281
|
}));
|
|
282
|
-
this.publicGithubButton.label = ( localize(
|
|
282
|
+
this.publicGithubButton.label = ( localize(20849, "Create on GitHub"));
|
|
283
283
|
this.publicGithubButton.enabled = true;
|
|
284
284
|
} else {
|
|
285
285
|
this.publicGithubButton = this._register(( new Button(container, unthemedButtonStyles)));
|
|
286
286
|
this._register(this.publicGithubButton.onDidClick(() => {
|
|
287
287
|
this.previewAction.run();
|
|
288
288
|
}));
|
|
289
|
-
this.publicGithubButton.label = ( localize(
|
|
289
|
+
this.publicGithubButton.label = ( localize(20850, "Preview on GitHub"));
|
|
290
290
|
this.publicGithubButton.enabled = true;
|
|
291
291
|
}
|
|
292
292
|
const repoLink = this.getElementById("show-repo-name");
|
|
@@ -339,7 +339,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
339
339
|
}));
|
|
340
340
|
this.internalGithubButton.element.id = "internal-create-btn";
|
|
341
341
|
this.internalGithubButton.element.classList.add("internal-create-subtle");
|
|
342
|
-
this.internalGithubButton.label = ( localize(
|
|
342
|
+
this.internalGithubButton.label = ( localize(20851, "Create Internally"));
|
|
343
343
|
this.internalGithubButton.enabled = true;
|
|
344
344
|
this.internalGithubButton.setTitle(this.data.privateUri.path.slice(1));
|
|
345
345
|
}
|
|
@@ -375,7 +375,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
375
375
|
if (submitting) {
|
|
376
376
|
const currentLabel = this.publicGithubButton instanceof ButtonWithDropdown ? this.publicGithubButton.primaryButton.label : this.publicGithubButton.label;
|
|
377
377
|
this.preSubmitButtonLabel = typeof currentLabel === "string" ? currentLabel : "";
|
|
378
|
-
this.publicGithubButton.label = ( localize(
|
|
378
|
+
this.publicGithubButton.label = ( localize(20852, "Submitting..."));
|
|
379
379
|
const spinnerIcon = renderIcon(ThemeIcon.modify(Codicon.loading, "spin"));
|
|
380
380
|
buttonEl.prepend(spinnerIcon);
|
|
381
381
|
} else {
|
|
@@ -447,7 +447,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
447
447
|
const {
|
|
448
448
|
selectedExtension
|
|
449
449
|
} = this.issueReporterModel.getData();
|
|
450
|
-
reset(extensionsSelector, this.makeOption("", ( localize(
|
|
450
|
+
reset(extensionsSelector, this.makeOption("", ( localize(20853, "Select extension")), true), ...extensionOptions.map(extension => makeOption(extension, selectedExtension)));
|
|
451
451
|
if (!selectedExtension) {
|
|
452
452
|
extensionsSelector.selectedIndex = 0;
|
|
453
453
|
}
|
|
@@ -551,10 +551,10 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
551
551
|
const info = containingElement && containingElement.lastElementChild;
|
|
552
552
|
if (info && info.classList.contains("hidden")) {
|
|
553
553
|
show(info);
|
|
554
|
-
label.textContent = ( localize(
|
|
554
|
+
label.textContent = ( localize(20854, "hide"));
|
|
555
555
|
} else {
|
|
556
556
|
hide(info);
|
|
557
|
-
label.textContent = ( localize(
|
|
557
|
+
label.textContent = ( localize(20855, "show"));
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
});
|
|
@@ -575,13 +575,13 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
575
575
|
}
|
|
576
576
|
const descriptionTextArea = this.getElementById("issue-title");
|
|
577
577
|
if (value === IssueSource.VSCode) {
|
|
578
|
-
descriptionTextArea.placeholder = ( localize(
|
|
578
|
+
descriptionTextArea.placeholder = ( localize(20856, "E.g Workbench is missing problems panel"));
|
|
579
579
|
} else if (value === IssueSource.Extension) {
|
|
580
|
-
descriptionTextArea.placeholder = ( localize(
|
|
580
|
+
descriptionTextArea.placeholder = ( localize(20857, "E.g. Missing alt text on extension readme image"));
|
|
581
581
|
} else if (value === IssueSource.Marketplace) {
|
|
582
|
-
descriptionTextArea.placeholder = ( localize(
|
|
582
|
+
descriptionTextArea.placeholder = ( localize(20858, "E.g Cannot disable installed extension"));
|
|
583
583
|
} else {
|
|
584
|
-
descriptionTextArea.placeholder = ( localize(
|
|
584
|
+
descriptionTextArea.placeholder = ( localize(20859, "Please enter a title"));
|
|
585
585
|
}
|
|
586
586
|
let fileOnExtension, fileOnMarketplace, fileOnProduct = false;
|
|
587
587
|
if (value === IssueSource.Extension) {
|
|
@@ -844,7 +844,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
844
844
|
if (results.length) {
|
|
845
845
|
const issues = $("div.issues-container");
|
|
846
846
|
const issuesText = $("div.list-title");
|
|
847
|
-
issuesText.textContent = ( localize(
|
|
847
|
+
issuesText.textContent = ( localize(20860, "Similar issues"));
|
|
848
848
|
this.numberOfSearchResultsDisplayed = results.length < 5 ? results.length : 5;
|
|
849
849
|
for (let i = 0; i < this.numberOfSearchResultsDisplayed; i++) {
|
|
850
850
|
const issue = results[i];
|
|
@@ -864,8 +864,8 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
864
864
|
renderIcon(issue.state === "open" ? Codicon.issueOpened : Codicon.issueClosed)
|
|
865
865
|
);
|
|
866
866
|
const issueStateLabel = $("span.issue-state.label");
|
|
867
|
-
issueStateLabel.textContent = issue.state === "open" ? ( localize(
|
|
868
|
-
issueState.title = issue.state === "open" ? ( localize(
|
|
867
|
+
issueStateLabel.textContent = issue.state === "open" ? ( localize(20861, "Open")) : ( localize(20862, "Closed"));
|
|
868
|
+
issueState.title = issue.state === "open" ? ( localize(20861, "Open")) : ( localize(20862, "Closed"));
|
|
869
869
|
issueState.appendChild(issueIcon);
|
|
870
870
|
issueState.appendChild(issueStateLabel);
|
|
871
871
|
item = $("div.issue", undefined, issueState, link);
|
|
@@ -886,7 +886,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
886
886
|
const {
|
|
887
887
|
issueType
|
|
888
888
|
} = this.issueReporterModel.getData();
|
|
889
|
-
reset(typeSelect, makeOption(IssueType.Bug, ( localize(
|
|
889
|
+
reset(typeSelect, makeOption(IssueType.Bug, ( localize(20863, "Bug Report"))), makeOption(IssueType.FeatureRequest, ( localize(20864, "Feature Request"))), makeOption(IssueType.PerformanceIssue, ( localize(20865, "Performance Issue (freeze, slow, crash)"))));
|
|
890
890
|
typeSelect.value = ( issueType.toString());
|
|
891
891
|
this.setSourceOptions();
|
|
892
892
|
}
|
|
@@ -919,14 +919,14 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
921
|
sourceSelect.innerText = "";
|
|
922
|
-
sourceSelect.append(this.makeOption("", ( localize(
|
|
923
|
-
sourceSelect.append(this.makeOption(IssueSource.VSCode, ( localize(
|
|
924
|
-
sourceSelect.append(this.makeOption(IssueSource.Extension, ( localize(
|
|
922
|
+
sourceSelect.append(this.makeOption("", ( localize(20866, "Select source")), true));
|
|
923
|
+
sourceSelect.append(this.makeOption(IssueSource.VSCode, ( localize(20867, "Visual Studio Code")), false));
|
|
924
|
+
sourceSelect.append(this.makeOption(IssueSource.Extension, ( localize(20868, "A VS Code extension")), false));
|
|
925
925
|
if (this.product.reportMarketplaceIssueUrl) {
|
|
926
|
-
sourceSelect.append(this.makeOption(IssueSource.Marketplace, ( localize(
|
|
926
|
+
sourceSelect.append(this.makeOption(IssueSource.Marketplace, ( localize(20869, "Extensions Marketplace")), false));
|
|
927
927
|
}
|
|
928
928
|
if (issueType !== IssueType.FeatureRequest) {
|
|
929
|
-
sourceSelect.append(this.makeOption(IssueSource.Unknown, ( localize(
|
|
929
|
+
sourceSelect.append(this.makeOption(IssueSource.Unknown, ( localize(20870, "Don't know")), false));
|
|
930
930
|
}
|
|
931
931
|
if (selected !== -1 && selected < sourceSelect.options.length) {
|
|
932
932
|
sourceSelect.selectedIndex = selected;
|
|
@@ -982,7 +982,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
982
982
|
const fileName = `extensionData_${formattedDate}_${formattedTime}.md`;
|
|
983
983
|
const handleLinkClick = async () => {
|
|
984
984
|
const downloadPath = await this.fileDialogService.showSaveDialog({
|
|
985
|
-
title: ( localize(
|
|
985
|
+
title: ( localize(20871, "Save Extension Data")),
|
|
986
986
|
availableFileSystems: [Schemas.file],
|
|
987
987
|
defaultUri: joinPath(await this.fileDialogService.defaultFilePath(Schemas.file), fileName)
|
|
988
988
|
});
|
|
@@ -998,13 +998,13 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
998
998
|
if (selectedExtension && this.nonGitHubIssueUrl) {
|
|
999
999
|
hide(titleTextArea);
|
|
1000
1000
|
hide(descriptionTextArea);
|
|
1001
|
-
reset(descriptionTitle, ( localize(
|
|
1001
|
+
reset(descriptionTitle, ( localize(20872, "This extension handles issues outside of VS Code")));
|
|
1002
1002
|
reset(descriptionSubtitle, ( localize(
|
|
1003
|
-
|
|
1003
|
+
20873,
|
|
1004
1004
|
"The '{0}' extension prefers to use an external issue reporter. To be taken to that issue reporting experience, click the button below.",
|
|
1005
1005
|
selectedExtension.displayName
|
|
1006
1006
|
)));
|
|
1007
|
-
this.publicGithubButton.label = ( localize(
|
|
1007
|
+
this.publicGithubButton.label = ( localize(20874, "Open External Issue Reporter"));
|
|
1008
1008
|
return;
|
|
1009
1009
|
}
|
|
1010
1010
|
if (fileOnExtension && selectedExtension?.data) {
|
|
@@ -1031,9 +1031,9 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
1031
1031
|
show(extensionsBlock);
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
|
-
reset(descriptionTitle, ( localize(
|
|
1034
|
+
reset(descriptionTitle, ( localize(20875, "Steps to Reproduce")) + " ", $("span.required-input", undefined, "*"));
|
|
1035
1035
|
reset(descriptionSubtitle, ( localize(
|
|
1036
|
-
|
|
1036
|
+
20876,
|
|
1037
1037
|
"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."
|
|
1038
1038
|
)));
|
|
1039
1039
|
} else if (issueType === IssueType.PerformanceIssue) {
|
|
@@ -1049,15 +1049,15 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
1049
1049
|
} else if (!fileOnMarketplace) {
|
|
1050
1050
|
show(extensionsBlock);
|
|
1051
1051
|
}
|
|
1052
|
-
reset(descriptionTitle, ( localize(
|
|
1052
|
+
reset(descriptionTitle, ( localize(20875, "Steps to Reproduce")) + " ", $("span.required-input", undefined, "*"));
|
|
1053
1053
|
reset(descriptionSubtitle, ( localize(
|
|
1054
|
-
|
|
1054
|
+
20877,
|
|
1055
1055
|
"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."
|
|
1056
1056
|
)));
|
|
1057
1057
|
} else if (issueType === IssueType.FeatureRequest) {
|
|
1058
|
-
reset(descriptionTitle, ( localize(
|
|
1058
|
+
reset(descriptionTitle, ( localize(20878, "Description")) + " ", $("span.required-input", undefined, "*"));
|
|
1059
1059
|
reset(descriptionSubtitle, ( localize(
|
|
1060
|
-
|
|
1060
|
+
20879,
|
|
1061
1061
|
"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."
|
|
1062
1062
|
)));
|
|
1063
1063
|
}
|
|
@@ -1188,7 +1188,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
1188
1188
|
throw ( new CancellationError());
|
|
1189
1189
|
}
|
|
1190
1190
|
return baseUrl + `&body=${encodeURIComponent(( localize(
|
|
1191
|
-
|
|
1191
|
+
20880,
|
|
1192
1192
|
"We have written the needed data into your clipboard because it was too large to send. Please paste."
|
|
1193
1193
|
)))}`;
|
|
1194
1194
|
}
|
|
@@ -1377,7 +1377,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
1377
1377
|
const target = this.window.document.querySelector(".block-extensions .block-info");
|
|
1378
1378
|
if (target) {
|
|
1379
1379
|
if (this.disableExtensions) {
|
|
1380
|
-
reset(target, ( localize(
|
|
1380
|
+
reset(target, ( localize(20881, "Extensions are disabled")));
|
|
1381
1381
|
return;
|
|
1382
1382
|
}
|
|
1383
1383
|
const themeExclusionStr = numThemeExtensions ? `\n(${numThemeExtensions} theme extensions excluded)` : "";
|
|
@@ -33,5 +33,5 @@ let WebIssueContribution = class WebIssueContribution extends BaseIssueContribut
|
|
|
33
33
|
WebIssueContribution = ( __decorate([( __param(0, IProductService)), ( __param(1, IConfigurationService))], WebIssueContribution));
|
|
34
34
|
( Registry.as(Extensions$1.Workbench)).registerWorkbenchContribution(WebIssueContribution, LifecyclePhase.Restored);
|
|
35
35
|
CommandsRegistry.registerCommand("_issues.getSystemStatus", accessor => {
|
|
36
|
-
return localize(
|
|
36
|
+
return localize(20882, "The --status argument is not yet supported in browsers.");
|
|
37
37
|
});
|
|
@@ -5,12 +5,12 @@ import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
5
5
|
import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
6
6
|
import { ExtensionIdentifierSet } from "@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions";
|
|
7
7
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
8
|
-
import { IGitHubService } from "@codingame/monaco-vscode-api/vscode/vs/platform/github/common/githubService.service";
|
|
9
8
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
10
9
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
11
10
|
import { IRectangle } from "@codingame/monaco-vscode-api/vscode/vs/platform/window/common/window";
|
|
12
11
|
import { IAuxiliaryWindowService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.service";
|
|
13
12
|
import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
|
|
13
|
+
import { IWorkbenchGitHubService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/github/common/githubService.service";
|
|
14
14
|
import { IIssueSubmissionHost, ISimilarIssue, IssueReporterData } from "../common/issue.js";
|
|
15
15
|
import { IIssueFormService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/issue/common/issue.service";
|
|
16
16
|
import { IGitHubUploadService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/issue/browser/githubUploadService.service";
|
|
@@ -44,22 +44,15 @@ export declare class IssueFormService extends Disposable implements IIssueFormSe
|
|
|
44
44
|
protected type: string;
|
|
45
45
|
/** Bounded cache of already-uploaded attachments to avoid re-uploading on retry within a session. Uses a content hash so large data URLs aren't retained as keys. */
|
|
46
46
|
private readonly uploadCache;
|
|
47
|
-
private readonly
|
|
48
|
-
constructor(instantiationService: IInstantiationService, auxiliaryWindowService: IAuxiliaryWindowService, menuService: IMenuService, contextKeyService: IContextKeyService, logService: ILogService, dialogService: IDialogService, hostService: IHostService, openerService: IOpenerService, fileService: IFileService, githubUploadService: IGitHubUploadService, editorService: IEditorService, clipboardService: IClipboardService, gitHubService:
|
|
47
|
+
private readonly disposeSignal;
|
|
48
|
+
constructor(instantiationService: IInstantiationService, auxiliaryWindowService: IAuxiliaryWindowService, menuService: IMenuService, contextKeyService: IContextKeyService, logService: ILogService, dialogService: IDialogService, hostService: IHostService, openerService: IOpenerService, fileService: IFileService, githubUploadService: IGitHubUploadService, editorService: IEditorService, clipboardService: IClipboardService, gitHubService: IWorkbenchGitHubService);
|
|
49
49
|
searchGitHubIssues(repo: string, title: string, signal: AbortSignal): Promise<readonly ISimilarIssue[]>;
|
|
50
50
|
openReporter(data: IssueReporterData): Promise<void>;
|
|
51
|
-
submitIssue(host: IIssueSubmissionHost, data: IssueReporterData, title: string, body: string): Promise<boolean>;
|
|
51
|
+
submitIssue(host: IIssueSubmissionHost, data: IssueReporterData, title: string, body: string, signal?: AbortSignal): Promise<boolean>;
|
|
52
52
|
private tryCreateBodyWithIssueDataAttachment;
|
|
53
53
|
private uploadIssueDataFile;
|
|
54
54
|
private createBodyWithIssueDataLink;
|
|
55
55
|
private createIssuePreviewUrl;
|
|
56
|
-
private getIssueTarget;
|
|
57
|
-
private getSelectedExtension;
|
|
58
|
-
private getExtensionIssueUrl;
|
|
59
|
-
private isGitHubUrl;
|
|
60
|
-
private parseGitHubUrl;
|
|
61
|
-
private getIssueUrlWithTitle;
|
|
62
|
-
private addTemplateToUrl;
|
|
63
56
|
private dataUrlToBytes;
|
|
64
57
|
/** Opens the classic non-wizard reporter in an auxiliary window. */
|
|
65
58
|
openAuxIssueReporterLegacy(data: IssueReporterData): Promise<void>;
|