Skip to content

Commit 2c48c95

Browse files
Copilotnixel2007
andcommitted
Удалён отладочный вывод из SemanticTokensProvider
Co-authored-by: nixel2007 <[email protected]>
1 parent a973c76 commit 2c48c95

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/main/java/com/github/_1c_syntax/bsl/languageserver/providers/SemanticTokensProvider.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import jakarta.annotation.PostConstruct;
3131
import jakarta.annotation.PreDestroy;
3232
import lombok.RequiredArgsConstructor;
33-
import lombok.extern.slf4j.Slf4j;
3433
import org.eclipse.lsp4j.SemanticTokens;
3534
import org.eclipse.lsp4j.SemanticTokensDelta;
3635
import org.eclipse.lsp4j.SemanticTokensDeltaParams;
@@ -62,7 +61,6 @@
6261
*
6362
* @see <a href="https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_semanticTokens">Semantic Tokens specification</a>
6463
*/
65-
@Slf4j
6664
@Component
6765
@RequiredArgsConstructor
6866
public class SemanticTokensProvider {
@@ -147,24 +145,13 @@ public Either<SemanticTokens, SemanticTokensDelta> getSemanticTokensFullDelta(
147145

148146
// If previous data is not available or belongs to a different document, return full tokens
149147
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()));
152148
cacheTokenData(resultId, documentContext.getUri(), currentData);
153149
return Either.forLeft(new SemanticTokens(resultId, currentData));
154150
}
155151

156152
// Compute delta edits
157153
List<SemanticTokensEdit> edits = computeEdits(previousData.data(), currentData);
158154

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-
168155
// Cache the new data
169156
cacheTokenData(resultId, documentContext.getUri(), currentData);
170157

0 commit comments

Comments
 (0)