diff --git a/src/Microsoft.SqlTools.ServiceLayer/Connection/ConnectionService.cs b/src/Microsoft.SqlTools.ServiceLayer/Connection/ConnectionService.cs index a47f8460..86050aed 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/Connection/ConnectionService.cs +++ b/src/Microsoft.SqlTools.ServiceLayer/Connection/ConnectionService.cs @@ -328,7 +328,10 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection } catch (ObjectDisposedException) { - // Ignore + // If ObjectDisposedException was thrown, then execution has already exited the + // "using" statment and source was disposed, meaning that the openTask completed + // successfully. This results in a ObjectDisposedException when trying to access + // source.Token and should be ignored. } });