mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-16 05:55:06 +03:00
Try fix a weird crash with fold service.
This commit is contained in:
@@ -18,6 +18,18 @@ LSPDocumentClient::LSPDocumentClient( LSPClientServer* server, TextDocument* doc
|
||||
notifyOpen();
|
||||
requestSymbolsDelayed();
|
||||
requestSemanticHighlightingDelayed();
|
||||
if ( mServer->isReady() )
|
||||
setupFoldRangeService();
|
||||
}
|
||||
|
||||
void LSPDocumentClient::onServerInitialized() {
|
||||
requestSymbols();
|
||||
requestSemanticHighlighting();
|
||||
setupFoldRangeService();
|
||||
// requestCodeLens();
|
||||
}
|
||||
|
||||
void LSPDocumentClient::setupFoldRangeService() {
|
||||
mDoc->getFoldRangeService().setProvider( [this]( auto, bool requestFolds ) -> bool {
|
||||
return tryRequestFoldRanges( requestFolds );
|
||||
} );
|
||||
@@ -122,13 +134,6 @@ int LSPDocumentClient::getVersion() const {
|
||||
return mVersion;
|
||||
}
|
||||
|
||||
void LSPDocumentClient::onServerInitialized() {
|
||||
requestSymbols();
|
||||
requestSemanticHighlighting();
|
||||
mDoc->getFoldRangeService().findRegions();
|
||||
// requestCodeLens();
|
||||
}
|
||||
|
||||
void LSPDocumentClient::refreshTag() {
|
||||
String::HashType oldTag = mTag;
|
||||
mTag = String::hash( mDoc->getURI().toString() );
|
||||
|
||||
Reference in New Issue
Block a user