diff --git a/scip_indexer/SCIPIndexer.cc b/scip_indexer/SCIPIndexer.cc index 4473385273..b92f55f2c5 100644 --- a/scip_indexer/SCIPIndexer.cc +++ b/scip_indexer/SCIPIndexer.cc @@ -1046,7 +1046,9 @@ class SCIPSemanticExtension : public SemanticExtension { scip::Metadata metadata; metadata.set_version(scip::UnspecifiedProtocolVersion); *metadata.mutable_tool_info() = toolInfo; - metadata.set_project_root("file://Users/varun/Code/scip-ruby"); // FIXME(varun): Remove hard-coded string + // NOTE: We are not respecting the path prefix option here. Should we do that? + // FIXME: filesystem::current_path() returns the path in 'native' format, so this won't work on Windows. + metadata.set_project_root("file:/" + filesystem::current_path().string()); metadata.set_text_document_encoding(scip::TextEncoding::UTF8); vector allStates;