Skip to content

Commit

Permalink
fix: Properly set project_root prefix (#474)
Browse files Browse the repository at this point in the history
It should be `file://` not `file:/`
  • Loading branch information
varungandhi-src authored May 3, 2024
1 parent b7ecba1 commit 16dd1b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexer/Driver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ class Driver {
scip::Metadata metadata;
auto projectRootUnixStyle = llvm::sys::path::convert_to_slash(
this->options.projectRootPath.asRef().asStringView());
metadata.set_project_root("file:/" + projectRootUnixStyle);
metadata.set_project_root("file://" + projectRootUnixStyle);
metadata.set_version(scip::UnspecifiedProtocolVersion);
metadata.set_text_document_encoding(scip::TextEncoding::UTF8);
*metadata.mutable_tool_info() = std::move(toolInfo);
Expand Down

0 comments on commit 16dd1b0

Please sign in to comment.