Skip to content

Commit

Permalink
move web reporter setting and check version (#213934)
Browse files Browse the repository at this point in the history
* move registry and check at run time

* remove whitespace
  • Loading branch information
justschen authored May 30, 2024
1 parent 0b240bc commit 1221742
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/vs/workbench/contrib/issue/browser/issue.contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ import 'vs/workbench/contrib/issue/browser/issueTroubleshoot';
class WebIssueContribution extends BaseIssueContribution {
constructor(@IProductService productService: IProductService, @IConfigurationService configurationService: IConfigurationService) {
super(productService, configurationService);
Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration).registerConfiguration({
properties: {
'issueReporter.experimental.webReporter': {
type: 'boolean',
default: productService.quality !== 'stable',
description: 'Enable experimental issue reporter for web.',
},
}
});
}
}

Expand All @@ -34,14 +43,3 @@ registerSingleton(IIssueMainService, IssueFormService, InstantiationType.Delayed
CommandsRegistry.registerCommand('_issues.getSystemStatus', (accessor) => {
return nls.localize('statusUnsupported', "The --status argument is not yet supported in browsers.");
});

Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration)
.registerConfiguration({
properties: {
'issueReporter.experimental.webReporter': {
type: 'boolean',
default: false,
description: 'Enable experimental issue reporter for web.',
},
}
});

0 comments on commit 1221742

Please sign in to comment.