mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-05 01:25:45 -05:00
Add support for Dedicated Administrator Connection (#466)
* Prototype support for admin connection * Added test and used correct default for ADMIN connection casing
This commit is contained in:
@@ -834,6 +834,11 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
|
||||
{
|
||||
await Task.Run(() =>
|
||||
{
|
||||
if (ConnectionService.IsDedicatedAdminConnection(info.ConnectionDetails))
|
||||
{
|
||||
// Intellisense cannot be run on these connections as only 1 SqlConnection can be opened on them at a time
|
||||
return;
|
||||
}
|
||||
ScriptParseInfo scriptInfo = GetScriptParseInfo(info.OwnerUri, createIfNotExists: true);
|
||||
if (Monitor.TryEnter(scriptInfo.BuildingMetadataLock, LanguageService.OnConnectionWaitTimeout))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user