public static ExpandVariables ( string format, dynamic variables, bool underscoredOnly = true ) : string | ||
format | string | |
variables | dynamic | |
underscoredOnly | bool | |
리턴 | string |
public void SetErrorResponse(Response response, int id, string format, dynamic arguments = null, bool user = true, bool telemetry = false) { var msg = new Message(id, format, arguments, user, telemetry); var message = Utilities.ExpandVariables(msg.format, msg.variables); response.SetErrorBody(message, new ErrorResponseBody(msg)); }
void SendErrorResponse(string command, int seq, int id, string format, dynamic arguments = null, bool user = true, bool telemetry = false) { var response = new Response(command, seq); var msg = new Message(id, format, arguments, user, telemetry); var message = Utilities.ExpandVariables(msg.format, msg.variables); response.SetErrorBody(message, new ErrorResponseBody(msg)); toVSCode.SendMessage(response); }