Http now can consume ThreadPool for async requests.

Minor clean up.
This commit is contained in:
Martín Lucas Golini
2024-02-02 10:53:15 -03:00
parent d56406a3a2
commit 7da6093507
6 changed files with 52 additions and 27 deletions

View File

@@ -206,8 +206,7 @@ UISceneNode* LSPDocumentClient::getUISceneNode() {
return server->getManager()->getPluginManager()->getUISceneNode();
}
static SyntaxStyleType semanticTokenTypeToSyntaxType( const std::string& type,
const SyntaxDefinition& ) {
static SyntaxStyleType semanticTokenTypeToSyntaxType( const std::string& type ) {
switch ( String::hash( type ) ) {
case SemanticTokenTypes::Namespace:
case SemanticTokenTypes::Type:
@@ -323,9 +322,7 @@ void LSPDocumentClient::highlight() {
auto* line = &tokenizerLines[currentLine];
if ( type >= 0 && type < (int)caps.legend.tokenTypes.size() ) {
const auto& ltype = caps.legend.tokenTypes[type];
line->tokens.push_back(
{ semanticTokenTypeToSyntaxType( ltype, mDoc->getSyntaxDefinition() ), start,
len } );
line->tokens.push_back( { semanticTokenTypeToSyntaxType( ltype ), start, len } );
} else {
line->tokens.push_back( { SyntaxStyleTypes::Normal, start, len } );
}