mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-17 01:25:40 -05:00
Fix/integrationtests (#391)
* fixed the problem with parsing sql2017 version
This commit is contained in:
@@ -605,6 +605,12 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection.ReliableConnection
|
||||
{
|
||||
// Remove filename from the filePath
|
||||
Uri pathUri;
|
||||
if (!Uri.IsWellFormedUriString(filePath, UriKind.Absolute))
|
||||
{
|
||||
// In linux "file://" is required otehrwise the Uri cannot parse the path
|
||||
//this should be fixed in dotenet core 2.0
|
||||
filePath = $"file://{filePath}";
|
||||
}
|
||||
if (!Uri.TryCreate(filePath, UriKind.Absolute, out pathUri))
|
||||
{
|
||||
// Invalid Uri
|
||||
|
||||
Reference in New Issue
Block a user