Fix some issues with Script As Select (#474)

This commit is contained in:
Karl Burtram
2017-10-03 14:39:29 -07:00
committed by GitHub
parent 8e78ecf9a4
commit 9091df8f62
5 changed files with 150 additions and 125 deletions

View File

@@ -16,6 +16,7 @@ using System.Threading.Tasks;
using Microsoft.SqlTools.Hosting.Protocol;
using Microsoft.SqlTools.ServiceLayer.Connection.Contracts;
using Microsoft.SqlTools.ServiceLayer.Connection.ReliableConnection;
using Microsoft.SqlTools.ServiceLayer.LanguageServices;
using Microsoft.SqlTools.ServiceLayer.LanguageServices.Contracts;
using Microsoft.SqlTools.ServiceLayer.SqlContext;
using Microsoft.SqlTools.ServiceLayer.Workspace;
@@ -64,6 +65,8 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection
private readonly object cancellationTokenSourceLock = new object();
private ConnectedBindingQueue connectionQueue = new ConnectedBindingQueue(needsMetadata: false);
/// <summary>
/// Map from script URIs to ConnectionInfo objects
/// This is internal for testing access only
@@ -86,6 +89,17 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection
set;
}
/// <summary>
/// Gets the connection queue
/// </summary>
internal ConnectedBindingQueue ConnectionQueue
{
get
{
return this.connectionQueue;
}
}
/// <summary>
/// Default constructor should be private since it's a singleton class, but we need a constructor
/// for use in unit test mocking.