DiagnosticTools.Copy(Diagnostic) Method

Definition

Returns a new Diagnostic, making a deep copy of message (in particular a deep copy of it's Range).

public static Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic? Copy (this Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic message);
static member Copy : Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic -> Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic
<Extension()>
Public Function Copy (message As Diagnostic) As Diagnostic

Parameters

message
Diagnostic

Returns

Diagnostic

The new diagnostic, or null if message is null.

Applies to