From 6460da488b6a8d5045cac68d5216541c3e0cfe1c Mon Sep 17 00:00:00 2001 From: Varun Gandhi Date: Thu, 20 Jul 2023 17:49:35 +0800 Subject: [PATCH] fix: Add extra slash in URI for project root --- scip_indexer/SCIPIndexer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scip_indexer/SCIPIndexer.cc b/scip_indexer/SCIPIndexer.cc index 17abc689c..57bb384f2 100644 --- a/scip_indexer/SCIPIndexer.cc +++ b/scip_indexer/SCIPIndexer.cc @@ -1275,7 +1275,7 @@ class SCIPSemanticExtension : public SemanticExtension { // NOTE: We are not respecting the path prefix option here. Should we do that? // FIXME(varun): 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_project_root("file://" + filesystem::current_path().string()); metadata.set_text_document_encoding(scip::TextEncoding::UTF8); vector allStates;