Add some more logging to ModelView components (#13387)

* Add some more logging to ModelView components

* Remove catch

* remove unused
This commit is contained in:
Charles Gagnon
2020-11-13 10:30:40 -08:00
committed by GitHub
parent b3d99117ca
commit cbe2ba0901
35 changed files with 149 additions and 75 deletions

View File

@@ -9,13 +9,14 @@ import { ComponentBase, ContainerBase, ItemDescriptor } from 'sql/workbench/brow
import { ModelStore } from 'sql/workbench/browser/modelComponents/modelStore';
import { ChangeDetectorRef } from '@angular/core';
import { IComponentDescriptor, IModelStore, ComponentEventType } from 'sql/platform/dashboard/browser/interfaces';
import { NullLogService } from 'vs/platform/log/common/log';
class TestComponent extends ComponentBase<azdata.ComponentProperties> {
public descriptor: IComponentDescriptor;
constructor(public modelStore: IModelStore, id: string) {
super(undefined, undefined);
super(undefined, undefined, new NullLogService());
this.descriptor = modelStore.createComponentDescriptor('TestComponent', id);
this.baseInit();
}
@@ -32,7 +33,7 @@ class TestContainer extends ContainerBase<TestComponent> {
public descriptor: IComponentDescriptor;
constructor(public modelStore: IModelStore, id: string) {
super(undefined, undefined);
super(undefined, undefined, new NullLogService());
this.descriptor = modelStore.createComponentDescriptor('TestContainer', id);
this._changeRef = {
detectChanges: () => undefined