Try fix a weird crash with fold service.

This commit is contained in:
Martín Lucas Golini
2024-07-08 21:16:29 -03:00
parent 82d9448693
commit 1cbdf3ba0c
7 changed files with 25 additions and 12 deletions

View File

@@ -1308,6 +1308,10 @@ bool LSPClientServer::isRunning() {
: ( mUsingSocket && mSocket != nullptr );
}
bool LSPClientServer::isReady() const {
return mReady;
}
void LSPClientServer::removeDoc( TextDocument* doc ) {
Lock l( mClientsMutex );
if ( mClients.erase( doc ) > 0 ) {