From 8ff108061948822dafd4f2fb3b065eb4b20ddd54 Mon Sep 17 00:00:00 2001 From: Kattouf Date: Wed, 29 Apr 2026 12:18:01 +0700 Subject: [PATCH] align optionality of SemanticTokens fields on protocol spec --- .../LanguageFeatures/SemanticTokens.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/LanguageServerProtocol/LanguageFeatures/SemanticTokens.swift b/Sources/LanguageServerProtocol/LanguageFeatures/SemanticTokens.swift index 9dbaa95..4249bd4 100644 --- a/Sources/LanguageServerProtocol/LanguageFeatures/SemanticTokens.swift +++ b/Sources/LanguageServerProtocol/LanguageFeatures/SemanticTokens.swift @@ -30,8 +30,8 @@ public struct SemanticTokensClientCapabilities: Codable, Hashable, Sendable { public typealias RangeOption = TwoTypeOption public typealias FullOption = TwoTypeOption - public var range: RangeOption - public var full: FullOption + public var range: RangeOption? + public var full: FullOption? public init(range: Bool = true, delta: Bool = true) { self.range = .optionA(range)