ExpandVariables() public static method

public static ExpandVariables ( string format, dynamic variables, bool underscoredOnly = true ) : string
format string
variables dynamic
underscoredOnly bool
return 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));
        }
示例#2
0
        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);
        }