mirror of
https://github.com/MaskRay/ccls.git
synced 2025-03-18 23:11:31 +00:00
correct usage of "empty (list) of params"
lsp-mode was complaining that generated json was not properly parsed
This commit is contained in:
parent
000fd75af4
commit
03324a122e
@ -243,11 +243,7 @@ void emitSkippedRanges(WorkingFile *wfile, QueryFile &file) {
|
||||
|
||||
|
||||
void emitSemanticHighlightRefresh() {
|
||||
//// tried using `notify`, but won't compile
|
||||
//EmptyParam empty;
|
||||
//pipeline::notify("workspace/semanticTokens/refresh", empty);
|
||||
|
||||
pipeline::notifyOrRequest(
|
||||
"workspace/semanticTokens/refresh", false, [](JsonWriter &){});
|
||||
std::vector<int> emptyParameters{}; // notification with no parameters (empty list)
|
||||
pipeline::notify("workspace/semanticTokens/refresh", emptyParameters);
|
||||
}
|
||||
} // namespace ccls
|
||||
|
Loading…
Reference in New Issue
Block a user