set includeCompositeObjects to true if there are database references (#12641)

This commit is contained in:
Kim Santiago
2020-09-30 10:58:35 -07:00
committed by GitHub
parent b3578d058f
commit 5681d6b9e3
3 changed files with 29 additions and 9 deletions

View File

@@ -8,6 +8,7 @@ import * as os from 'os';
import * as constants from './constants';
import * as path from 'path';
import * as glob from 'fast-glob';
import * as mssql from '../../../mssql';
import { promises as fs } from 'fs';
/**
@@ -228,3 +229,13 @@ export async function getSqlProjectFilesInFolder(folderPath: string): Promise<st
return results;
}
/**
* Returns the default deployment options from DacFx
*/
export async function GetDefaultDeploymentOptions(): Promise<mssql.DeploymentOptions> {
const service = (vscode.extensions.getExtension(mssql.extension.name)!.exports as mssql.IExtension).schemaCompare;
const result = await service.schemaCompareGetDefaultOptions();
return result.defaultDeploymentOptions;
}