diff --git a/src/lsp.cc b/src/lsp.cc index 662f5026..1a05d033 100644 --- a/src/lsp.cc +++ b/src/lsp.cc @@ -6,6 +6,7 @@ #include "log.hh" #include +#include #include #include @@ -120,6 +121,8 @@ std::string DocumentUri::getPath() const { #endif if (g_config) normalizeFolder(ret); + if(std::filesystem::exists(ret)) + ret = std::filesystem::canonical(ret); return ret; }