mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
eepp:
Don't instantiate a tooltip until it's really required by the widget (setting the tooltip text won't instantiate the tooltip). ecode: Closes SpartanJ/ecode#64 (Fix LSP rootPath initialization).
This commit is contained in:
@@ -942,7 +942,9 @@ void LSPClientServer::initialize() {
|
||||
{ "capabilities", capabilities },
|
||||
{ "initializationOptions", mLSP.initializationOptions } };
|
||||
|
||||
URI rootPath( String::startsWith( mRootPath, "file://" ) ? mRootPath : "file://" + mRootPath );
|
||||
URI rootPath( String::startsWith( mRootPath, "file://" ) && mRootPath != "file://"
|
||||
? mRootPath
|
||||
: ( !mRootPath.empty() ? "file://" + mRootPath : "" ) );
|
||||
if ( rootPath.empty() ) {
|
||||
if ( !mManager->getLSPWorkspaceFolder().uri.empty() ) {
|
||||
rootPath = mManager->getLSPWorkspaceFolder().uri;
|
||||
|
||||
Reference in New Issue
Block a user