Rewrite diagnostics popup with new api
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user