Class DiagnosticPrefixAttribute
- Namespace
- RDCore.SDK.Extensibility
- Assembly
- RDCore.SDK.dll
Declares the prefix of the codes of the diagnostics an extension reports (Prefix): three letters A to Z, as in
XYZ00042 (RD-VBAL §1.1.4).
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
public sealed class DiagnosticPrefixAttribute : Attribute
- Inheritance
-
DiagnosticPrefixAttribute
- Inherited Members
Remarks
The prefix is written into the extension's manifest when the extension is described (Describe(string, string)), as
DiagnosticPrefix. The language server starts an extension only when its prefix is its own
(Discover()): RDC belongs to the core extension, the language's prefixes (VBC, VBR, VBA)
belong to no extension, and two extensions that declare the same prefix are both left unstarted. RDX, the first-party extensions' prefix, is the
one that several extensions may declare.
A finding the extension reports under another prefix is dropped. A finding under its own prefix is reported under the extension's name.
Constructors
DiagnosticPrefixAttribute(string)
Declares the prefix of the codes of the extension's diagnostics.
public DiagnosticPrefixAttribute(string prefix)
Parameters
prefixstringThree letters,
AtoZ.
Exceptions
- ArgumentException
prefixis not three lettersAtoZ.
Properties
Prefix
The prefix of the codes of the extension's diagnostics.
public string Prefix { get; }