mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
Misc. cleanup for PR
This commit is contained in:
@@ -492,7 +492,6 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
|
|||||||
Label = autoCompleteItem.Title,
|
Label = autoCompleteItem.Title,
|
||||||
Kind = CompletionItemKind.Variable,
|
Kind = CompletionItemKind.Variable,
|
||||||
Detail = autoCompleteItem.Title,
|
Detail = autoCompleteItem.Title,
|
||||||
// Documentation = autoCompleteItem.Description,
|
|
||||||
TextEdit = new TextEdit
|
TextEdit = new TextEdit
|
||||||
{
|
{
|
||||||
NewText = autoCompleteItem.Title,
|
NewText = autoCompleteItem.Title,
|
||||||
|
|||||||
@@ -427,7 +427,6 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
|
|||||||
scriptInfo.Binder = BinderProvider.CreateBinder(scriptInfo.MetadataProvider);
|
scriptInfo.Binder = BinderProvider.CreateBinder(scriptInfo.MetadataProvider);
|
||||||
scriptInfo.ServerConnection = new ServerConnection(sqlConn.GetUnderlyingConnection());
|
scriptInfo.ServerConnection = new ServerConnection(sqlConn.GetUnderlyingConnection());
|
||||||
scriptInfo.IsConnected = true;
|
scriptInfo.IsConnected = true;
|
||||||
//AddOrUpdateScriptParseInfo(info.OwnerUri, scriptInfo);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
|
|||||||
@@ -198,6 +198,6 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
|
|||||||
default:
|
default:
|
||||||
return TransactSqlVersion.Current;
|
return TransactSqlVersion.Current;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,7 +132,6 @@ namespace Microsoft.SqlTools.ServiceLayer.Utility
|
|||||||
internal class LogWriter : IDisposable
|
internal class LogWriter : IDisposable
|
||||||
{
|
{
|
||||||
private object logLock = new object();
|
private object logLock = new object();
|
||||||
|
|
||||||
private TextWriter textWriter;
|
private TextWriter textWriter;
|
||||||
private LogLevel minimumLogLevel = LogLevel.Verbose;
|
private LogLevel minimumLogLevel = LogLevel.Verbose;
|
||||||
|
|
||||||
@@ -173,7 +172,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Utility
|
|||||||
logLevel >= this.minimumLogLevel)
|
logLevel >= this.minimumLogLevel)
|
||||||
{
|
{
|
||||||
// System.IO is not thread safe
|
// System.IO is not thread safe
|
||||||
lock (logLock)
|
lock (this.logLock)
|
||||||
{
|
{
|
||||||
// Print the timestamp and log level
|
// Print the timestamp and log level
|
||||||
this.textWriter.WriteLine(
|
this.textWriter.WriteLine(
|
||||||
|
|||||||
Reference in New Issue
Block a user