Use create functions for more descriptors

For #81574

This applies the fix from #84878 to a number of other descriptor classes in our codebase
This commit is contained in:
Matt Bierner
2019-11-14 17:10:34 -08:00
parent bf93700404
commit 5370653cf8
31 changed files with 94 additions and 67 deletions

View File

@@ -446,7 +446,7 @@ export class MainThreadComments extends Disposable implements MainThreadComments
private registerPanel(commentsPanelAlreadyConstructed: boolean) {
if (!commentsPanelAlreadyConstructed) {
Registry.as<PanelRegistry>(PanelExtensions.Panels).registerPanel(new PanelDescriptor(
Registry.as<PanelRegistry>(PanelExtensions.Panels).registerPanel(PanelDescriptor.create(
CommentsPanel,
COMMENTS_PANEL_ID,
COMMENTS_PANEL_TITLE,