mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 01:25:37 -05:00
Componenet -> Component (#12934)
This commit is contained in:
@@ -11,12 +11,12 @@ export const Extensions = {
|
||||
|
||||
export const HideInputTag = 'hide_input';
|
||||
|
||||
export interface ICellComponenetRegistry {
|
||||
export interface ICellComponentRegistry {
|
||||
registerComponent(component: any): void;
|
||||
getComponents(): Array<any>;
|
||||
}
|
||||
|
||||
class CellComponenetRegistry implements ICellComponenetRegistry {
|
||||
class CellComponentRegistry implements ICellComponentRegistry {
|
||||
private components = new Array<any>();
|
||||
|
||||
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 {
|
||||
|
||||
@@ -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<ICellComponenetRegistry>(OutputComponentExtensions.CellComponentContributions);
|
||||
const outputComponentRegistry = Registry.as<ICellComponentRegistry>(OutputComponentExtensions.CellComponentContributions);
|
||||
|
||||
export const NotebookModule = (params, selector: string, instantiationService: IInstantiationService): any => {
|
||||
let outputComponents = Registry.as<IMimeComponentRegistry>(Extensions.MimeComponentContribution).getAllCtors();
|
||||
|
||||
Reference in New Issue
Block a user