removing th oe binding context on closing session (#529)

This commit is contained in:
Leila Lali
2017-10-26 10:54:34 -07:00
committed by Karl Burtram
parent cc9beed835
commit 76e26268ec
2 changed files with 21 additions and 5 deletions

View File

@@ -118,6 +118,15 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
}
}
public void RemoveBindigContext(ConnectionInfo connInfo)
{
string connectionKey = GetConnectionContextKey(connInfo);
if (BindingContextExists(connectionKey))
{
RemoveBindingContext(connectionKey);
}
}
/// <summary>
/// Use a ConnectionInfo item to create a connected binding context
/// </summary>