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