Skip to content

Commit 1348fc7

Browse files
committed
add longMessage field to Diagnostic
1 parent d586f84 commit 1348fc7

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

_specifications/lsp/3.18/types/diagnostic.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,22 @@ export interface Diagnostic {
3434
source?: string;
3535

3636
/**
37-
* The diagnostic's message.
37+
* The diagnostic's message, e.g. 'Unknown type name "int_8_t"'.
3838
*/
3939
message: string;
4040

41+
/**
42+
* An optional property to describe this diagnostic's message with more
43+
* details. For example:
44+
* The type name "int_8_t" is unknown. Did you mean any of these types?
45+
* - int
46+
* - int8_t
47+
* Read more about the built-in types [here](file:///path/to/docs.md).
48+
*
49+
* @since 3.18.0
50+
*/
51+
longMessage?: string | MarkupContent;
52+
4153
/**
4254
* Additional metadata about the diagnostic.
4355
*
@@ -155,4 +167,4 @@ export interface CodeDescription {
155167
*/
156168
href: URI;
157169
}
158-
```
170+
```

0 commit comments

Comments
 (0)