Skip to content

Commit a0bbbcf

Browse files
committed
add diagnostic dynamic long description
1 parent 0a5a2f9 commit a0bbbcf

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

_specifications/lsp/3.18/types/diagnostic.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,19 @@ export interface DiagnosticRelatedInformation {
151151
*/
152152
export interface CodeDescription {
153153
/**
154-
* An URI to open with more information about the diagnostic error.
154+
* An URI to open with general information about the diagnostic error (e.g.
155+
* paragraphs of a description, code examples, exceptions, links to sources).
156+
* The URI can start with "file:", "https:", or other.
155157
*/
156-
href: URI;
158+
href?: URI;
159+
160+
/**
161+
* A string with unique information about this particular instance of the
162+
* diagnostic error (e.g. a warning that mentions your variable name
163+
* specifcally and the function it was defined in).
164+
*
165+
* @since 3.18.0
166+
*/
167+
dynamicDescription?: string;
157168
}
158-
```
169+
```

0 commit comments

Comments
 (0)