mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 17:22:48 -05:00
* Revert "Revert "Remove typings and replace missing methods with vscodes (#8217)" (#8240)"
This reverts commit e801a04bcf.
* fix runtime error
* add tests for chartview
This commit is contained in:
@@ -11,6 +11,7 @@ import { MainThreadModelViewShape } from 'sql/workbench/api/common/sqlExtHost.pr
|
||||
import { IMainContext } from 'vs/workbench/api/common/extHost.protocol';
|
||||
import { IComponentShape, IItemConfig, ComponentEventType, IComponentEventArgs, ModelComponentTypes } from 'sql/workbench/api/common/sqlExtHostTypes';
|
||||
import { TitledFormItemLayout } from 'sql/workbench/browser/modelComponents/formContainer.component';
|
||||
import { assign } from 'vs/base/common/objects';
|
||||
|
||||
interface InternalItemConfig {
|
||||
toIItemConfig(): IItemConfig;
|
||||
@@ -188,7 +189,7 @@ suite('ExtHostModelView Validation Tests', () => {
|
||||
topLevelInputFormComponent,
|
||||
{
|
||||
components: [
|
||||
Object.assign(groupInputFormComponent, { layout: groupInputLayout }),
|
||||
assign(groupInputFormComponent, { layout: groupInputLayout }),
|
||||
groupDropdownFormComponent
|
||||
],
|
||||
title: groupTitle
|
||||
|
||||
@@ -9,6 +9,7 @@ import * as TypeMoq from 'typemoq';
|
||||
|
||||
import { MainThreadObjectExplorerShape } from 'sql/workbench/api/common/sqlExtHost.protocol';
|
||||
import { ExtHostObjectExplorerNode } from 'sql/workbench/api/common/extHostObjectExplorer';
|
||||
import { find } from 'vs/base/common/arrays';
|
||||
|
||||
const nodes: { [nodeName: string]: azdata.NodeInfo } =
|
||||
{
|
||||
@@ -74,7 +75,7 @@ suite('ExtHostObjectExplorer Tests', () => {
|
||||
mockProxy.setup(p =>
|
||||
p.$getNode(TypeMoq.It.isAny(), TypeMoq.It.isAny()))
|
||||
.returns((connectionId, nodePath) => {
|
||||
return Promise.resolve<azdata.NodeInfo>(nodes[Object.keys(nodes).find(key =>
|
||||
return Promise.resolve<azdata.NodeInfo>(nodes[find(Object.keys(nodes), key =>
|
||||
nodes[key].nodePath === nodePath)]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user