/// <summary> /// Generates a Diagnostic message based on the given information code, /// with any message parameters appended on a new line to the message defined by the information code. /// The given source is listed as the file for which the error occurred. /// </summary> public void Log(InformationCode code, IEnumerable <string> args, string source = null, LSP.Range range = null, params string[] messageParam) => this.Log(new Diagnostic { Severity = DiagnosticSeverity.Information, Code = null, // do not show a code for infos Source = source, Message = $"{DiagnosticItem.Message(code, args ?? Enumerable.Empty<string>())}{Environment.NewLine}{string.Join(Environment.NewLine, messageParam)}", Range = range });
public static string Code(this InformationCode code) => Information((int)code);