Skip to content

Commit

Permalink
add longMessage field to Diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbyCBennett committed Oct 16, 2023
1 parent d586f84 commit 1348fc7
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions _specifications/lsp/3.18/types/diagnostic.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,22 @@ export interface Diagnostic {
source?: string;

/**
* The diagnostic's message.
* The diagnostic's message, e.g. 'Unknown type name "int_8_t"'.
*/
message: string;

/**
* An optional property to describe this diagnostic's message with more
* details. For example:
* The type name "int_8_t" is unknown. Did you mean any of these types?
* - int
* - int8_t
* Read more about the built-in types [here](file:///path/to/docs.md).
*
* @since 3.18.0
*/
longMessage?: string | MarkupContent;

/**
* Additional metadata about the diagnostic.
*
Expand Down Expand Up @@ -155,4 +167,4 @@ export interface CodeDescription {
*/
href: URI;
}
```
```

0 comments on commit 1348fc7

Please sign in to comment.