Skip to content

Commit cca6828

Browse files
committed
Log 'did not update syntactic tokens' at debug level
These occur commonly when the edit range is empty and don't indicate an issue.
1 parent da867a1 commit cca6828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SourceKitLSP/Swift/SwiftLanguageServer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public final class SwiftLanguageServer: ToolchainLanguageServer {
191191
let start: Position = snapshot.positionOf(utf8Offset: offset),
192192
let end: Position = snapshot.positionOf(utf8Offset: offset + length) else {
193193
// This e.g. happens in the case of empty edits
194-
log("did not update lexical/syntactic tokens, no range found", level: .warning)
194+
log("did not update lexical/syntactic tokens, no range found", level: .debug)
195195
return docTokens
196196
}
197197

0 commit comments

Comments
 (0)