mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-16 22:15:01 +03:00
Allow disabling semantic highlighting for a specific lang.
This commit is contained in:
@@ -112,7 +112,9 @@ void LSPDocumentClient::refreshTag() {
|
||||
}
|
||||
|
||||
void LSPDocumentClient::requestSemanticHighlighting() {
|
||||
if ( !mServer || !mServer->getManager()->getPlugin()->semanticHighlightingEnabled() )
|
||||
if ( !mServer || !mServer->getManager()->getPlugin()->semanticHighlightingEnabled() ||
|
||||
!mServer->getManager()->getPlugin()->langSupportsSemanticHighlighting(
|
||||
mServer->getDefinition().language ) )
|
||||
return;
|
||||
const auto& cap = mServer->getCapabilities();
|
||||
if ( !cap.semanticTokenProvider.full && !cap.semanticTokenProvider.fullDelta &&
|
||||
@@ -143,7 +145,9 @@ void LSPDocumentClient::requestSemanticHighlighting() {
|
||||
}
|
||||
|
||||
void LSPDocumentClient::requestSemanticHighlightingDelayed() {
|
||||
if ( !mServer || !mServer->getManager()->getPlugin()->semanticHighlightingEnabled() )
|
||||
if ( !mServer || !mServer->getManager()->getPlugin()->semanticHighlightingEnabled() ||
|
||||
!mServer->getManager()->getPlugin()->langSupportsSemanticHighlighting(
|
||||
mServer->getDefinition().language ) )
|
||||
return;
|
||||
const auto& cap = mServer->getCapabilities();
|
||||
if ( !cap.semanticTokenProvider.full && !cap.semanticTokenProvider.fullDelta &&
|
||||
|
||||
Reference in New Issue
Block a user