mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-07-16 07:52:50 +03:00
Closes SpartanJ/ecode#61.
This commit is contained in:
@@ -55,7 +55,8 @@ std::string LSPClientServerManager::findRootPath( const LSPDefinition& lsp,
|
||||
const std::shared_ptr<TextDocument>& doc ) {
|
||||
if ( lsp.rootIndicationFileNames.empty() || !doc->hasFilepath() )
|
||||
return "";
|
||||
std::string rootPath( doc->getFileInfo().getDirectoryPath() );
|
||||
std::string oriRootPath( doc->getFileInfo().getDirectoryPath() );
|
||||
std::string rootPath( oriRootPath );
|
||||
std::string lRootPath;
|
||||
FileSystem::dirAddSlashAtEnd( rootPath );
|
||||
|
||||
@@ -73,7 +74,7 @@ std::string LSPClientServerManager::findRootPath( const LSPDefinition& lsp,
|
||||
rootPath = FileSystem::removeLastFolderFromPath( rootPath );
|
||||
}
|
||||
|
||||
return "";
|
||||
return oriRootPath;
|
||||
}
|
||||
|
||||
void LSPClientServerManager::tryRunServer( const std::shared_ptr<TextDocument>& doc ) {
|
||||
|
||||
Reference in New Issue
Block a user