mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
Fleshing out the SqlProjects service bindings (#21984)
* starts of sqlprojectsservice * copy to mssql * adding all the boilerplate * updating service call structures * Fixing up test mocks * Adding comments to all the bindings * blank space * swapping for Promise; adding vscode-mssql type bindings * patching
This commit is contained in:
@@ -199,7 +199,7 @@ export class ProjectsController {
|
||||
}
|
||||
|
||||
const sqlProjectsService = await utils.getSqlProjectsService();
|
||||
await sqlProjectsService.newProject(newProjFilePath, sdkStyle, targetPlatform);
|
||||
await sqlProjectsService.createProject(newProjFilePath, sdkStyle, targetPlatform);
|
||||
|
||||
await this.addTemplateFiles(newProjFilePath, creationParams.projectTypeId);
|
||||
|
||||
|
||||
@@ -14,12 +14,14 @@ export interface TestUtils {
|
||||
export class MockVscodeMssqlIExtension implements vscodeMssql.IExtension {
|
||||
sqlToolsServicePath: string = '';
|
||||
dacFx: vscodeMssql.IDacFxService;
|
||||
sqlProjects: vscodeMssql.ISqlProjectsService;
|
||||
schemaCompare: vscodeMssql.ISchemaCompareService;
|
||||
azureAccountService: vscodeMssql.IAzureAccountService;
|
||||
azureResourceService: vscodeMssql.IAzureResourceService;
|
||||
|
||||
constructor() {
|
||||
this.dacFx = TypeMoq.Mock.ofType<vscodeMssql.IDacFxService>().object;
|
||||
this.sqlProjects = TypeMoq.Mock.ofType<vscodeMssql.ISqlProjectsService>().object;
|
||||
this.schemaCompare = TypeMoq.Mock.ofType<vscodeMssql.ISchemaCompareService>().object;
|
||||
this.azureAccountService = TypeMoq.Mock.ofType<vscodeMssql.IAzureAccountService>().object;
|
||||
this.azureResourceService = TypeMoq.Mock.ofType<vscodeMssql.IAzureResourceService>().object;
|
||||
|
||||
Reference in New Issue
Block a user