mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-16 05:55:06 +03:00
Performance improvements due to not debouncing some function calls.
Adjust JSX and TS syntax definitions.
This commit is contained in:
@@ -195,8 +195,8 @@ void LSPDocumentClient::requestSemanticHighlightingDelayed( bool reqFull ) {
|
||||
if ( sceneNode ) {
|
||||
mWaitingSemanticTokensResponse = true;
|
||||
sceneNode->removeActionsByTag( mTagSemanticTokens );
|
||||
sceneNode->runOnMainThread( [this, reqFull]() { requestSemanticHighlighting( reqFull ); },
|
||||
Seconds( 0.5f ), mTagSemanticTokens );
|
||||
sceneNode->debounce( [this, reqFull]() { requestSemanticHighlighting( reqFull ); },
|
||||
Seconds( 0.5f ), mTagSemanticTokens );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -451,7 +451,7 @@ void LSPDocumentClient::requestSymbolsDelayed() {
|
||||
LSPDocumentClient* docClient = this;
|
||||
URI uri = mDoc->getURI();
|
||||
LSPClientServer* server = mServer;
|
||||
sceneNode->runOnMainThread(
|
||||
sceneNode->debounce(
|
||||
[docClient, server, uri]() {
|
||||
if ( server->hasDocument( uri ) )
|
||||
docClient->requestSymbols();
|
||||
|
||||
Reference in New Issue
Block a user