fix schema comparing empty project showing more differences than expected (#1727)

This commit is contained in:
Kim Santiago
2022-10-21 14:04:31 -07:00
committed by GitHub
parent 99dbbd5036
commit 6f198e9e5a
5 changed files with 85 additions and 4 deletions

View File

@@ -113,6 +113,9 @@ namespace Microsoft.SqlTools.ServiceLayer.SchemaCompare
this.Differences = new List<DiffEntry>();
if (this.ComparisonResult.Differences != null)
{
// filter out not included and not excludeable differences
(this.ComparisonResult.Differences as List<SchemaDifference>).RemoveAll(d => !d.Included && !d.IsExcludable);
foreach (SchemaDifference difference in this.ComparisonResult.Differences)
{
DiffEntry diffEntry = SchemaCompareUtils.CreateDiffEntry(difference, null);