Formatting.MsBuildFormat(Diagnostic) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a string that contains all information about the given diagnostic in a format that is detected and processed as a diagnostic by VS and VS Code. The string contains one-based position information if the range information is not null, assuming the given position information is zero-based.
public static string MsBuildFormat (Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic msg);
static member MsBuildFormat : Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic -> string
Public Shared Function MsBuildFormat (msg As Diagnostic) As String
Parameters
- msg
- Diagnostic