diff options
Diffstat (limited to 'src/main/lsp/diagnostics.h')
| -rw-r--r-- | src/main/lsp/diagnostics.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main/lsp/diagnostics.h b/src/main/lsp/diagnostics.h index 4357b8e..a5bb5d9 100644 --- a/src/main/lsp/diagnostics.h +++ b/src/main/lsp/diagnostics.h @@ -2,6 +2,7 @@ #define _DIAGNOSTICS_H #include "dged/command.h" +#include "dged/text.h" #include "main/lsp/types.h" struct lsp_server; @@ -10,11 +11,17 @@ struct lsp_notification; struct lsp_diagnostics; +struct lsp_buffer_diagnostics { + struct buffer *buffer; + layer_id layer; + diagnostic_vec diagnostics; +}; + struct lsp_diagnostics *diagnostics_create(void); void diagnostics_destroy(struct lsp_diagnostics *); -diagnostic_vec *diagnostics_for_buffer(struct lsp_diagnostics *, - struct buffer *); +struct lsp_buffer_diagnostics *diagnostics_for_buffer(struct lsp_diagnostics *, + struct buffer *); void handle_publish_diagnostics(struct lsp_server *, struct buffers *, struct lsp_notification *); |
