mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-03 09:35:39 -05:00
fix schema comparing empty project showing more differences than expected (#1727)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user