mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-19 09:35:36 -05:00
Couple workarounds for OE refresh issues on RHEL (#365)
This commit is contained in:
@@ -149,14 +149,17 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.SmoModel
|
||||
|
||||
protected IEnumerable<T> GetSmoCollectionResult<T>(HashSet<string> urns, SmoCollectionBase retValue, SqlSmoObject parent) where T : SqlSmoObject
|
||||
{
|
||||
if (urns != null)
|
||||
{
|
||||
return new SmoCollectionWrapper<T>(retValue).Where(c => PassesFinalFilters(parent, c) && urns.Contains(c.Urn));
|
||||
}
|
||||
else
|
||||
{
|
||||
return new SmoCollectionWrapper<T>(retValue).Where(c => PassesFinalFilters(parent, c));
|
||||
}
|
||||
// the below code is filtering out tables on helsinki system
|
||||
return new SmoCollectionWrapper<T>(retValue);
|
||||
|
||||
// if (urns != null)
|
||||
// {
|
||||
// return new SmoCollectionWrapper<T>(retValue).Where(c => PassesFinalFilters(parent, c) && urns.Contains(c.Urn));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return new SmoCollectionWrapper<T>(retValue).Where(c => PassesFinalFilters(parent, c));
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user