mirror of
https://github.com/open-goal/jak-project
synced 2026-06-12 13:35:39 -04:00
53277a65ad
- Integrate the AST into the LSP, this makes parsing and tokenizing the files much easier - Consolidate most of the symbol info tracking in `goalc` to a single map. Fixed some issues where the old map would never evict symbols when re-compiling files. There is still some more to cleanup, but this now can be used as an incrementally updated source-of-truth for the LSP - re-compile files when they are saved. Ideally this would be done everytime they are changed but that: - may be too aggressive - goalc doesn't compile incrementally yet so it likely would be a worse UX Features added, see https://github.com/open-goal/opengoal-vscode/issues/256 - Hover   - LSP Status fixed - Type Hierarchy  - Document Color  - Document Symbols  - Completions  --------- Co-authored-by: Hat Kid <6624576+Hat-Kid@users.noreply.github.com>
22 lines
654 B
C++
22 lines
654 B
C++
#pragma once
|
|
|
|
#include <optional>
|
|
|
|
#include "common/util/json_util.h"
|
|
|
|
#include "lsp/protocol/document_diagnostics.h"
|
|
#include "lsp/protocol/document_synchronization.h"
|
|
#include "lsp/state/workspace.h"
|
|
|
|
namespace lsp_handlers {
|
|
|
|
void did_open(Workspace& workspace, json raw_params);
|
|
void did_change(Workspace& workspace, json raw_params);
|
|
void did_close(Workspace& workspace, json raw_params);
|
|
void will_save(Workspace& workspace, json raw_params);
|
|
|
|
std::optional<json> did_open_push_diagnostics(Workspace& workspace, json raw_params);
|
|
std::optional<json> did_change_push_diagnostics(Workspace& workspace, json raw_params);
|
|
|
|
} // namespace lsp_handlers
|