@@ -23,7 +23,7 @@ import { localize } from 'vs/nls';
23
23
import { isRemoteDiagnosticError , SystemInfo } from 'vs/platform/diagnostics/common/diagnostics' ;
24
24
import { ServiceCollection } from 'vs/platform/instantiation/common/serviceCollection' ;
25
25
import { IMainProcessService , MainProcessService } from 'vs/platform/ipc/electron-sandbox/mainProcessService' ;
26
- import { ISettingsSearchIssueReporterData , IssueReporterData , IssueReporterExtensionData , IssueReporterFeatures , IssueReporterStyles , IssueType } from 'vs/platform/issue/common/issue' ;
26
+ import { IssueReporterData , IssueReporterExtensionData , IssueReporterFeatures , IssueReporterStyles , IssueType } from 'vs/platform/issue/common/issue' ;
27
27
import { IWindowConfiguration } from 'vs/platform/windows/common/windows' ;
28
28
29
29
const MAX_URL_LENGTH = 2045 ;
@@ -148,10 +148,6 @@ export class IssueReporter extends Disposable {
148
148
applyZoom ( configuration . data . zoomLevel ) ;
149
149
this . applyStyles ( configuration . data . styles ) ;
150
150
this . handleExtensionData ( configuration . data . enabledExtensions ) ;
151
-
152
- if ( configuration . data . issueType === IssueType . SettingsSearchIssue ) {
153
- this . handleSettingsSearchData ( < ISettingsSearchIssueReporterData > configuration . data ) ;
154
- }
155
151
}
156
152
157
153
render ( ) : void {
@@ -244,7 +240,7 @@ export class IssueReporter extends Disposable {
244
240
content . push ( `.monaco-text-button:not(.disabled):hover, .monaco-text-button:focus { background-color: ${ styles . buttonHoverBackground } !important; }` ) ;
245
241
}
246
242
247
- styleTag . innerHTML = content . join ( '\n' ) ;
243
+ styleTag . textContent = content . join ( '\n' ) ;
248
244
document . head . appendChild ( styleTag ) ;
249
245
document . body . style . color = styles . color || '' ;
250
246
}
@@ -266,39 +262,6 @@ export class IssueReporter extends Disposable {
266
262
this . updateExtensionSelector ( installedExtensions ) ;
267
263
}
268
264
269
- private handleSettingsSearchData ( data : ISettingsSearchIssueReporterData ) : void {
270
- this . issueReporterModel . update ( {
271
- actualSearchResults : data . actualSearchResults ,
272
- query : data . query ,
273
- filterResultCount : data . filterResultCount
274
- } ) ;
275
- this . updateSearchedExtensionTable ( data . enabledExtensions ) ;
276
- this . updateSettingsSearchDetails ( data ) ;
277
- }
278
-
279
- private updateSettingsSearchDetails ( data : ISettingsSearchIssueReporterData ) : void {
280
- const target = document . querySelector < HTMLElement > ( '.block-settingsSearchResults .block-info' ) ;
281
- if ( target ) {
282
- const queryDiv = $ < HTMLDivElement > ( 'div' , undefined , `Query: "${ data . query } "` as string ) ;
283
- const countDiv = $ < HTMLElement > ( 'div' , undefined , `Literal match count: ${ data . filterResultCount } ` as string ) ;
284
- const detailsDiv = $ < HTMLDivElement > ( '.block-settingsSearchResults-details' , undefined , queryDiv , countDiv ) ;
285
-
286
- const table = $ ( 'table' , undefined ,
287
- $ ( 'tr' , undefined ,
288
- $ ( 'th' , undefined , 'Setting' ) ,
289
- $ ( 'th' , undefined , 'Extension' ) ,
290
- $ ( 'th' , undefined , 'Score' ) ,
291
- ) ,
292
- ...data . actualSearchResults . map ( setting => $ ( 'tr' , undefined ,
293
- $ ( 'td' , undefined , setting . key ) ,
294
- $ ( 'td' , undefined , setting . extensionId ) ,
295
- $ ( 'td' , undefined , String ( setting . score ) . slice ( 0 , 5 ) ) ,
296
- ) )
297
- ) ;
298
- reset ( target , detailsDiv , table ) ;
299
- }
300
- }
301
-
302
265
private initServices ( configuration : IssueReporterConfiguration ) : void {
303
266
const serviceCollection = new ServiceCollection ( ) ;
304
267
const mainProcessService = new MainProcessService ( configuration . windowId ) ;
@@ -498,10 +461,6 @@ export class IssueReporter extends Disposable {
498
461
return true ;
499
462
}
500
463
501
- if ( issueType === IssueType . SettingsSearchIssue ) {
502
- return true ;
503
- }
504
-
505
464
return false ;
506
465
}
507
466
@@ -668,16 +627,11 @@ export class IssueReporter extends Disposable {
668
627
669
628
const typeSelect = this . getElementById ( 'issue-type' ) ! as HTMLSelectElement ;
670
629
const { issueType } = this . issueReporterModel . getData ( ) ;
671
- if ( issueType === IssueType . SettingsSearchIssue ) {
672
- reset ( typeSelect , makeOption ( IssueType . SettingsSearchIssue , localize ( 'settingsSearchIssue' , "Settings Search Issue" ) ) ) ;
673
- typeSelect . disabled = true ;
674
- } else {
675
- reset ( typeSelect ,
676
- makeOption ( IssueType . Bug , localize ( 'bugReporter' , "Bug Report" ) ) ,
677
- makeOption ( IssueType . FeatureRequest , localize ( 'featureRequest' , "Feature Request" ) ) ,
678
- makeOption ( IssueType . PerformanceIssue , localize ( 'performanceIssue' , "Performance Issue" ) )
679
- ) ;
680
- }
630
+ reset ( typeSelect ,
631
+ makeOption ( IssueType . Bug , localize ( 'bugReporter' , "Bug Report" ) ) ,
632
+ makeOption ( IssueType . FeatureRequest , localize ( 'featureRequest' , "Feature Request" ) ) ,
633
+ makeOption ( IssueType . PerformanceIssue , localize ( 'performanceIssue' , "Performance Issue" ) )
634
+ ) ;
681
635
682
636
typeSelect . value = issueType . toString ( ) ;
683
637
@@ -791,13 +745,6 @@ export class IssueReporter extends Disposable {
791
745
if ( fileOnExtension ) {
792
746
show ( extensionSelector ) ;
793
747
}
794
- } else if ( issueType === IssueType . SettingsSearchIssue ) {
795
- show ( blockContainer ) ;
796
- show ( searchedExtensionsBlock ) ;
797
- show ( settingsSearchResultsBlock ) ;
798
-
799
- reset ( descriptionTitle , localize ( 'expectedResults' , "Expected Results" ) , $ ( 'span.required-input' , undefined , '*' ) ) ;
800
- reset ( descriptionSubtitle , localize ( 'settingsSearchResultsDescription' , "Please list the results that you were expecting to see when you searched with this query. We support GitHub-flavored Markdown. You will be able to edit your issue and add screenshots when we preview it on GitHub." ) ) ;
801
748
}
802
749
}
803
750
@@ -1135,20 +1082,6 @@ export class IssueReporter extends Disposable {
1135
1082
}
1136
1083
}
1137
1084
1138
- private updateSearchedExtensionTable ( extensions : IssueReporterExtensionData [ ] ) : void {
1139
- const target = document . querySelector < HTMLElement > ( '.block-searchedExtensions .block-info' ) ;
1140
- if ( target ) {
1141
- if ( ! extensions . length ) {
1142
- target . innerText = 'Extensions: none' ;
1143
- return ;
1144
- }
1145
-
1146
- const table = this . getExtensionTableHtml ( extensions ) ;
1147
- target . innerText = '' ;
1148
- target . appendChild ( table ) ;
1149
- }
1150
- }
1151
-
1152
1085
private getExtensionTableHtml ( extensions : IssueReporterExtensionData [ ] ) : HTMLTableElement {
1153
1086
return $ ( 'table' , undefined ,
1154
1087
$ ( 'tr' , undefined ,
0 commit comments