From c7e4cf7ca46f0a8efa18db228fbb1fd7c39c181c Mon Sep 17 00:00:00 2001 From: Tony Xia Date: Fri, 16 Oct 2020 04:47:47 +1100 Subject: [PATCH] Componenet -> Component (#12934) --- src/sql/platform/notebooks/common/outputRegistry.ts | 6 +++--- .../workbench/contrib/notebook/browser/notebook.module.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/sql/platform/notebooks/common/outputRegistry.ts b/src/sql/platform/notebooks/common/outputRegistry.ts index 76335ae287..a566116e53 100644 --- a/src/sql/platform/notebooks/common/outputRegistry.ts +++ b/src/sql/platform/notebooks/common/outputRegistry.ts @@ -11,12 +11,12 @@ export const Extensions = { export const HideInputTag = 'hide_input'; -export interface ICellComponenetRegistry { +export interface ICellComponentRegistry { registerComponent(component: any): void; getComponents(): Array; } -class CellComponenetRegistry implements ICellComponenetRegistry { +class CellComponentRegistry implements ICellComponentRegistry { private components = new Array(); registerComponent(component: any): void { @@ -28,7 +28,7 @@ class CellComponenetRegistry implements ICellComponenetRegistry { } } -const componentRegistry = new CellComponenetRegistry(); +const componentRegistry = new CellComponentRegistry(); Registry.add(Extensions.CellComponentContributions, componentRegistry); export function registerCellComponent(component: any): void { diff --git a/src/sql/workbench/contrib/notebook/browser/notebook.module.ts b/src/sql/workbench/contrib/notebook/browser/notebook.module.ts index ae0ad455b4..15c4877736 100644 --- a/src/sql/workbench/contrib/notebook/browser/notebook.module.ts +++ b/src/sql/workbench/contrib/notebook/browser/notebook.module.ts @@ -28,12 +28,12 @@ import { IMimeComponentRegistry, Extensions } from 'sql/workbench/contrib/notebo import { Registry } from 'vs/platform/registry/common/platform'; import { LinkHandlerDirective } from 'sql/workbench/contrib/notebook/browser/cellViews/linkHandler.directive'; import { IBootstrapParams, ISelector } from 'sql/workbench/services/bootstrap/common/bootstrapParams'; -import { ICellComponenetRegistry, Extensions as OutputComponentExtensions } from 'sql/platform/notebooks/common/outputRegistry'; +import { ICellComponentRegistry, Extensions as OutputComponentExtensions } from 'sql/platform/notebooks/common/outputRegistry'; import { CollapseComponent } from 'sql/workbench/contrib/notebook/browser/cellViews/collapse.component'; import { MarkdownToolbarComponent } from 'sql/workbench/contrib/notebook/browser/cellViews/markdownToolbar.component'; import { CellToolbarComponent } from 'sql/workbench/contrib/notebook/browser/cellViews/cellToolbar.component'; -const outputComponentRegistry = Registry.as(OutputComponentExtensions.CellComponentContributions); +const outputComponentRegistry = Registry.as(OutputComponentExtensions.CellComponentContributions); export const NotebookModule = (params, selector: string, instantiationService: IInstantiationService): any => { let outputComponents = Registry.as(Extensions.MimeComponentContribution).getAllCtors();