Remove typings and replace missing methods with vscodes (#8217)

* remove typings and replace missing methods with vscodes

* fix strict-null-checks

* fix tests
This commit is contained in:
Anthony Dresser
2019-11-05 13:03:20 -08:00
committed by GitHub
parent 4645a8ba6b
commit 22a427f934
184 changed files with 634 additions and 43388 deletions

View File

@@ -8,6 +8,7 @@ import * as platform from 'vs/platform/registry/common/platform';
import { IJSONSchema } from 'vs/base/common/jsonSchema';
import * as nls from 'vs/nls';
import { IInsightData } from 'sql/workbench/parts/charts/browser/interfaces';
import { values } from 'vs/base/common/collections';
export type InsightIdentifier = string;
@@ -107,7 +108,7 @@ class InsightRegistry implements IInsightRegistry {
}
public getAllCtors(): Array<Type<IInsightsView>> {
return Object.values(this._idToCtor);
return values(this._idToCtor);
}
public getAllIds(): Array<string> {

View File

@@ -7,6 +7,7 @@ import { ModelComponentTypes } from 'sql/workbench/api/common/sqlExtHostTypes';
import * as platform from 'vs/platform/registry/common/platform';
import { IComponent } from 'sql/workbench/browser/modelComponents/interfaces';
import { values } from 'vs/base/common/collections';
export type ComponentIdentifier = string;
@@ -46,7 +47,7 @@ class ComponentRegistry implements IComponentRegistry {
}
public getAllCtors(): Array<Type<IComponent>> {
return Object.values(this._idToCtor);
return values(this._idToCtor);
}
public getAllIds(): Array<string> {