Rewrite diagnostics popup with new api

This commit is contained in:
2026-02-11 19:51:45 +00:00
parent 5b66f503e4
commit e9d164d769
10 changed files with 239 additions and 231 deletions

View File

@@ -2,12 +2,12 @@
#define EDITOR_H
#include "editor/indents.h"
#include "extentions/diagnostics.h"
#include "extentions/hover.h"
#include "io/knot.h"
#include "io/sysio.h"
#include "syntax/extras.h"
#include "syntax/parser.h"
#include "ui/diagnostics.h"
#include "utils/utils.h"
#include "windows/decl.h"
@@ -39,7 +39,7 @@ struct Editor : Window {
std::shared_mutex lsp_mtx;
std::atomic<struct LSPInstance *> lsp = nullptr;
HoverBox *hover_popup = init_hover();
bool diagnostics_active = false;
DiagnosticBox *diagnostic_popup = init_diagnostic();
std::atomic<int> lsp_version = 1;
IndentationEngine indents = {};
Parser *parser = nullptr;