correct usage of "empty (list) of params"

lsp-mode was complaining that generated json was not properly parsed
This commit is contained in:
Felipe Lema 2021-06-22 15:25:30 -04:00
parent 000fd75af4
commit 03324a122e

View File

@ -243,11 +243,7 @@ void emitSkippedRanges(WorkingFile *wfile, QueryFile &file) {
void emitSemanticHighlightRefresh() { void emitSemanticHighlightRefresh() {
//// tried using `notify`, but won't compile std::vector<int> emptyParameters{}; // notification with no parameters (empty list)
//EmptyParam empty; pipeline::notify("workspace/semanticTokens/refresh", emptyParameters);
//pipeline::notify("workspace/semanticTokens/refresh", empty);
pipeline::notifyOrRequest(
"workspace/semanticTokens/refresh", false, [](JsonWriter &){});
} }
} // namespace ccls } // namespace ccls