File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ add_executable(cxx ${SOURCES})
2323
2424target_link_libraries (cxx cxx-parser cxx-lsp)
2525
26+ target_compile_definitions (cxx PRIVATE
27+ CXX_VERSION="${CMAKE_PROJECT_VERSION} "
28+ )
29+
2630if (EMSCRIPTEN)
2731 target_link_options (cxx PUBLIC
2832 "SHELL:-s EXIT_RUNTIME=1"
Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ class Server {
372372
373373 withUnsafeJson ([&](json storage) {
374374 InitializeResult result (storage);
375- result.serverInfo <ServerInfo>().name (" cxx-lsp" ).version (" 0.0.1 " );
375+ result.serverInfo <ServerInfo>().name (" cxx-lsp" ).version (CXX_VERSION );
376376 result.capabilities ().textDocumentSync (TextDocumentSyncKind::kFull );
377377
378378 sendToClient (result, request.id ());
You can’t perform that action at this time.
0 commit comments