@codingame/monaco-vscode-issue-service-override 6.0.3 → 7.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-issue-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@7.0.1"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -189,22 +189,6 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
setEventHandlers() {
|
|
192
|
-
this.addEventListener('issue-type', 'change', (event) => {
|
|
193
|
-
const issueType = parseInt(event.target.value);
|
|
194
|
-
this.issueReporterModel.update({ issueType: issueType });
|
|
195
|
-
if (issueType === IssueType.PerformanceIssue && !this.receivedPerformanceInfo) {
|
|
196
|
-
this.issueMainService.$getPerformanceInfo().then(info => {
|
|
197
|
-
this.updatePerformanceInfo(info);
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
const descriptionTextArea = this.getElementById('issue-title');
|
|
201
|
-
if (descriptionTextArea) {
|
|
202
|
-
descriptionTextArea.placeholder = ( localizeWithPath(_moduleId, 0, "Please enter a title"));
|
|
203
|
-
}
|
|
204
|
-
this.updatePreviewButtonState();
|
|
205
|
-
this.setSourceOptions();
|
|
206
|
-
this.render();
|
|
207
|
-
});
|
|
208
192
|
['includeSystemInfo', 'includeProcessInfo', 'includeWorkspaceInfo', 'includeExtensions', 'includeExperiments', 'includeExtensionData'].forEach(elementId => {
|
|
209
193
|
this.addEventListener(elementId, 'click', (event) => {
|
|
210
194
|
event.stopPropagation();
|
|
@@ -222,11 +206,11 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
222
206
|
const info = containingElement && containingElement.lastElementChild;
|
|
223
207
|
if (info && info.classList.contains('hidden')) {
|
|
224
208
|
show(info);
|
|
225
|
-
label.textContent = ( localizeWithPath(_moduleId,
|
|
209
|
+
label.textContent = ( localizeWithPath(_moduleId, 0, "hide"));
|
|
226
210
|
}
|
|
227
211
|
else {
|
|
228
212
|
hide(info);
|
|
229
|
-
label.textContent = ( localizeWithPath(_moduleId,
|
|
213
|
+
label.textContent = ( localizeWithPath(_moduleId, 1, "show"));
|
|
230
214
|
}
|
|
231
215
|
}
|
|
232
216
|
});
|
|
@@ -246,16 +230,16 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
246
230
|
}
|
|
247
231
|
const descriptionTextArea = this.getElementById('issue-title');
|
|
248
232
|
if (value === IssueSource.VSCode) {
|
|
249
|
-
descriptionTextArea.placeholder = ( localizeWithPath(_moduleId,
|
|
233
|
+
descriptionTextArea.placeholder = ( localizeWithPath(_moduleId, 2, "E.g Workbench is missing problems panel"));
|
|
250
234
|
}
|
|
251
235
|
else if (value === IssueSource.Extension) {
|
|
252
|
-
descriptionTextArea.placeholder = ( localizeWithPath(_moduleId,
|
|
236
|
+
descriptionTextArea.placeholder = ( localizeWithPath(_moduleId, 3, "E.g. Missing alt text on extension readme image"));
|
|
253
237
|
}
|
|
254
238
|
else if (value === IssueSource.Marketplace) {
|
|
255
|
-
descriptionTextArea.placeholder = ( localizeWithPath(_moduleId,
|
|
239
|
+
descriptionTextArea.placeholder = ( localizeWithPath(_moduleId, 4, "E.g Cannot disable installed extension"));
|
|
256
240
|
}
|
|
257
241
|
else {
|
|
258
|
-
descriptionTextArea.placeholder = ( localizeWithPath(_moduleId,
|
|
242
|
+
descriptionTextArea.placeholder = ( localizeWithPath(_moduleId, 5, "Please enter a title"));
|
|
259
243
|
}
|
|
260
244
|
let fileOnExtension, fileOnMarketplace = false;
|
|
261
245
|
if (value === IssueSource.Extension) {
|
|
@@ -925,7 +909,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
925
909
|
const showLoading = this.getElementById('ext-loading');
|
|
926
910
|
show(showLoading);
|
|
927
911
|
while (showLoading.firstChild) {
|
|
928
|
-
showLoading.
|
|
912
|
+
showLoading.firstChild.remove();
|
|
929
913
|
}
|
|
930
914
|
showLoading.append(element);
|
|
931
915
|
this.renderBlocks();
|
|
@@ -941,7 +925,7 @@ let BaseIssueReporterService = class BaseIssueReporterService extends Disposable
|
|
|
941
925
|
const hideLoading = this.getElementById('ext-loading');
|
|
942
926
|
hide(hideLoading);
|
|
943
927
|
if (hideLoading.firstChild) {
|
|
944
|
-
|
|
928
|
+
element.remove();
|
|
945
929
|
}
|
|
946
930
|
this.renderBlocks();
|
|
947
931
|
}
|
|
@@ -47,6 +47,17 @@ let IssueWebReporter = class IssueWebReporter extends BaseIssueReporterService {
|
|
|
47
47
|
}
|
|
48
48
|
setEventHandlers() {
|
|
49
49
|
super.setEventHandlers();
|
|
50
|
+
this.addEventListener('issue-type', 'change', (event) => {
|
|
51
|
+
const issueType = parseInt(event.target.value);
|
|
52
|
+
this.issueReporterModel.update({ issueType: issueType });
|
|
53
|
+
const descriptionTextArea = this.getElementById('issue-title');
|
|
54
|
+
if (descriptionTextArea) {
|
|
55
|
+
descriptionTextArea.placeholder = ( localizeWithPath(_moduleId, 0, "Please enter a title"));
|
|
56
|
+
}
|
|
57
|
+
this.updatePreviewButtonState();
|
|
58
|
+
this.setSourceOptions();
|
|
59
|
+
this.render();
|
|
60
|
+
});
|
|
50
61
|
this.previewButton.onDidClick(async () => {
|
|
51
62
|
this.delayedSubmit.trigger(async () => {
|
|
52
63
|
this.createIssue();
|
|
@@ -123,7 +134,7 @@ let IssueWebReporter = class IssueWebReporter extends BaseIssueReporterService {
|
|
|
123
134
|
const extensionsSelector = this.getElementById('extension-selector');
|
|
124
135
|
if (extensionsSelector) {
|
|
125
136
|
const { selectedExtension } = this.issueReporterModel.getData();
|
|
126
|
-
reset(extensionsSelector, this.makeOption('', ( localizeWithPath(_moduleId,
|
|
137
|
+
reset(extensionsSelector, this.makeOption('', ( localizeWithPath(_moduleId, 1, "Select extension")), true), ...( (extensionOptions.map(extension => makeOption(extension, selectedExtension)))));
|
|
127
138
|
if (!selectedExtension) {
|
|
128
139
|
extensionsSelector.selectedIndex = 0;
|
|
129
140
|
}
|