Skip to content

Commit 1221742

Browse files
authored
move web reporter setting and check version (microsoft#213934)
* move registry and check at run time * remove whitespace
1 parent 0b240bc commit 1221742

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/vs/workbench/contrib/issue/browser/issue.contribution.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ import 'vs/workbench/contrib/issue/browser/issueTroubleshoot';
2323
class WebIssueContribution extends BaseIssueContribution {
2424
constructor(@IProductService productService: IProductService, @IConfigurationService configurationService: IConfigurationService) {
2525
super(productService, configurationService);
26+
Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration).registerConfiguration({
27+
properties: {
28+
'issueReporter.experimental.webReporter': {
29+
type: 'boolean',
30+
default: productService.quality !== 'stable',
31+
description: 'Enable experimental issue reporter for web.',
32+
},
33+
}
34+
});
2635
}
2736
}
2837

@@ -34,14 +43,3 @@ registerSingleton(IIssueMainService, IssueFormService, InstantiationType.Delayed
3443
CommandsRegistry.registerCommand('_issues.getSystemStatus', (accessor) => {
3544
return nls.localize('statusUnsupported', "The --status argument is not yet supported in browsers.");
3645
});
37-
38-
Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration)
39-
.registerConfiguration({
40-
properties: {
41-
'issueReporter.experimental.webReporter': {
42-
type: 'boolean',
43-
default: false,
44-
description: 'Enable experimental issue reporter for web.',
45-
},
46-
}
47-
});

0 commit comments

Comments
 (0)