|
30 | 30 | import jakarta.annotation.PostConstruct; |
31 | 31 | import jakarta.annotation.PreDestroy; |
32 | 32 | import lombok.RequiredArgsConstructor; |
33 | | -import lombok.extern.slf4j.Slf4j; |
34 | 33 | import org.eclipse.lsp4j.SemanticTokens; |
35 | 34 | import org.eclipse.lsp4j.SemanticTokensDelta; |
36 | 35 | import org.eclipse.lsp4j.SemanticTokensDeltaParams; |
|
62 | 61 | * |
63 | 62 | * @see <a href="https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_semanticTokens">Semantic Tokens specification</a> |
64 | 63 | */ |
65 | | -@Slf4j |
66 | 64 | @Component |
67 | 65 | @RequiredArgsConstructor |
68 | 66 | public class SemanticTokensProvider { |
@@ -147,24 +145,13 @@ public Either<SemanticTokens, SemanticTokensDelta> getSemanticTokensFullDelta( |
147 | 145 |
|
148 | 146 | // If previous data is not available or belongs to a different document, return full tokens |
149 | 147 | if (previousData == null || !previousData.uri().equals(documentContext.getUri())) { |
150 | | - LOGGER.info("Returning full tokens: previousData={}, uri match={}", |
151 | | - previousData != null, previousData != null && previousData.uri().equals(documentContext.getUri())); |
152 | 148 | cacheTokenData(resultId, documentContext.getUri(), currentData); |
153 | 149 | return Either.forLeft(new SemanticTokens(resultId, currentData)); |
154 | 150 | } |
155 | 151 |
|
156 | 152 | // Compute delta edits |
157 | 153 | List<SemanticTokensEdit> edits = computeEdits(previousData.data(), currentData); |
158 | 154 |
|
159 | | - // Log delta statistics for debugging |
160 | | - if (!edits.isEmpty()) { |
161 | | - var edit = edits.get(0); |
162 | | - LOGGER.info("Delta computed: previousSize={}, currentSize={}, start={}, deleteCount={}, dataSize={}", |
163 | | - previousData.data().size(), currentData.size(), |
164 | | - edit.getStart(), edit.getDeleteCount(), |
165 | | - edit.getData() != null ? edit.getData().size() : 0); |
166 | | - } |
167 | | - |
168 | 155 | // Cache the new data |
169 | 156 | cacheTokenData(resultId, documentContext.getUri(), currentData); |
170 | 157 |
|
|
0 commit comments