mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-17 02:51:45 -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
|
protected IEnumerable<T> GetSmoCollectionResult<T>(HashSet<string> urns, SmoCollectionBase retValue, SqlSmoObject parent) where T : SqlSmoObject
|
||||||
{
|
{
|
||||||
if (urns != null)
|
// the below code is filtering out tables on helsinki system
|
||||||
{
|
return new SmoCollectionWrapper<T>(retValue);
|
||||||
return new SmoCollectionWrapper<T>(retValue).Where(c => PassesFinalFilters(parent, c) && urns.Contains(c.Urn));
|
|
||||||
}
|
// if (urns != null)
|
||||||
else
|
// {
|
||||||
{
|
// return new SmoCollectionWrapper<T>(retValue).Where(c => PassesFinalFilters(parent, c) && urns.Contains(c.Urn));
|
||||||
return new SmoCollectionWrapper<T>(retValue).Where(c => PassesFinalFilters(parent, c));
|
// }
|
||||||
}
|
// else
|
||||||
|
// {
|
||||||
|
// return new SmoCollectionWrapper<T>(retValue).Where(c => PassesFinalFilters(parent, c));
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ namespace Microsoft.SqlTools.ServiceLayer.SqlContext
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class ObjectExplorerSettings
|
public class ObjectExplorerSettings
|
||||||
{
|
{
|
||||||
public static int DefaultCreateSessionTimeout = 10;
|
public static int DefaultCreateSessionTimeout = 300;
|
||||||
public static int DefaultExpandTimeout = 10;
|
public static int DefaultExpandTimeout = 300;
|
||||||
|
|
||||||
public ObjectExplorerSettings()
|
public ObjectExplorerSettings()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user