mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 23:00:45 -04:00
lsp: re-analyze IR2 files when they change (#1841)
* lsp: re-analyze IR2 files when they change * tests: update ref tests
This commit is contained in:
@@ -17,11 +17,12 @@ void LSPSpec::from_json(const json& j, TextDocumentContentChangeEvent& obj) {
|
||||
}
|
||||
|
||||
void LSPSpec::to_json(json& j, const DidChangeTextDocumentParams& obj) {
|
||||
j = json{{"textDocument", obj.m_textDocument}};
|
||||
j = json{{"textDocument", obj.m_textDocument}, {"contentChanges", obj.m_contentChanges}};
|
||||
}
|
||||
|
||||
void LSPSpec::from_json(const json& j, DidChangeTextDocumentParams& obj) {
|
||||
j.at("textDocument").get_to(obj.m_textDocument);
|
||||
j.at("contentChanges").get_to(obj.m_contentChanges);
|
||||
}
|
||||
|
||||
void LSPSpec::to_json(json& j, const DidCloseTextDocumentParams& obj) {
|
||||
|
||||
Reference in New Issue
Block a user