mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 18:47:57 -05:00
Fixing String.Format to string.Format
This commit is contained in:
@@ -210,7 +210,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Hosting.Protocol
|
|||||||
}
|
}
|
||||||
catch (MessageParseException e)
|
catch (MessageParseException e)
|
||||||
{
|
{
|
||||||
string message = String.Format("Exception occurred while parsing message: {0}", e.Message);
|
string message = string.Format("Exception occurred while parsing message: {0}", e.Message);
|
||||||
Logger.Write(LogLevel.Error, message);
|
Logger.Write(LogLevel.Error, message);
|
||||||
await MessageWriter.WriteEvent(HostingErrorEvent.Type, new HostingErrorParams
|
await MessageWriter.WriteEvent(HostingErrorEvent.Type, new HostingErrorParams
|
||||||
{
|
{
|
||||||
@@ -228,7 +228,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Hosting.Protocol
|
|||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
// Log the error and send an error event to the client
|
// Log the error and send an error event to the client
|
||||||
string message = String.Format("Exception occurred while receiving message: {0}", e.Message);
|
string message = string.Format("Exception occurred while receiving message: {0}", e.Message);
|
||||||
Logger.Write(LogLevel.Error, message);
|
Logger.Write(LogLevel.Error, message);
|
||||||
await MessageWriter.WriteEvent(HostingErrorEvent.Type, new HostingErrorParams
|
await MessageWriter.WriteEvent(HostingErrorEvent.Type, new HostingErrorParams
|
||||||
{
|
{
|
||||||
@@ -244,7 +244,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Hosting.Protocol
|
|||||||
if (newMessage != null)
|
if (newMessage != null)
|
||||||
{
|
{
|
||||||
// Verbose logging
|
// Verbose logging
|
||||||
string logMessage = String.Format("Received message of type[{0}] and method[{1}]",
|
string logMessage = string.Format("Received message of type[{0}] and method[{1}]",
|
||||||
newMessage.MessageType, newMessage.Method);
|
newMessage.MessageType, newMessage.Method);
|
||||||
Logger.Write(LogLevel.Verbose, logMessage);
|
Logger.Write(LogLevel.Verbose, logMessage);
|
||||||
|
|
||||||
|
|||||||
@@ -337,7 +337,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
|
|||||||
{
|
{
|
||||||
Logger.Write(
|
Logger.Write(
|
||||||
LogLevel.Error,
|
LogLevel.Error,
|
||||||
String.Format(
|
string.Format(
|
||||||
"Exception while cancelling analysis task:\n\n{0}",
|
"Exception while cancelling analysis task:\n\n{0}",
|
||||||
e.ToString()));
|
e.ToString()));
|
||||||
|
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Workspace
|
|||||||
foreach (var textChange in textChangeParams.ContentChanges)
|
foreach (var textChange in textChangeParams.ContentChanges)
|
||||||
{
|
{
|
||||||
string fileUri = textChangeParams.Uri ?? textChangeParams.TextDocument.Uri;
|
string fileUri = textChangeParams.Uri ?? textChangeParams.TextDocument.Uri;
|
||||||
msg.AppendLine(String.Format(" File: {0}", fileUri));
|
msg.AppendLine(string.Format(" File: {0}", fileUri));
|
||||||
|
|
||||||
ScriptFile changedFile = Workspace.GetFile(fileUri);
|
ScriptFile changedFile = Workspace.GetFile(fileUri);
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.QueryExecution
|
|||||||
Dictionary<string, string> rowDictionary = new Dictionary<string, string>();
|
Dictionary<string, string> rowDictionary = new Dictionary<string, string>();
|
||||||
for (int column = 0; column < columns; column++)
|
for (int column = 0; column < columns; column++)
|
||||||
{
|
{
|
||||||
rowDictionary.Add(String.Format("column{0}", column), String.Format("val{0}{1}", column, row));
|
rowDictionary.Add(string.Format("column{0}", column), string.Format("val{0}{1}", column, row));
|
||||||
}
|
}
|
||||||
output[row] = rowDictionary;
|
output[row] = rowDictionary;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user