diff --git a/Sources/LanguageServerProtocol/BaseProtocol.swift b/Sources/LanguageServerProtocol/BaseProtocol.swift index ec62f4a..30cf30b 100644 --- a/Sources/LanguageServerProtocol/BaseProtocol.swift +++ b/Sources/LanguageServerProtocol/BaseProtocol.swift @@ -71,7 +71,10 @@ public extension ValueSet where T: CaseIterable { } } -public enum LanguageIdentifier: String, Codable, CaseIterable { +extension ValueSet: Sendable where T: Sendable { +} + +public enum LanguageIdentifier: String, Codable, CaseIterable, Sendable { case abap case windowsbat = "bat" case bibtex @@ -131,7 +134,7 @@ public enum LanguageIdentifier: String, Codable, CaseIterable { case yaml } -public struct DocumentFilter: Codable, Hashable { +public struct DocumentFilter: Codable, Hashable, Sendable { public let language: LanguageIdentifier? public let scheme: String? public let pattern: String? diff --git a/Sources/LanguageServerProtocol/BasicStructures.swift b/Sources/LanguageServerProtocol/BasicStructures.swift index bb34c71..5e30056 100644 --- a/Sources/LanguageServerProtocol/BasicStructures.swift +++ b/Sources/LanguageServerProtocol/BasicStructures.swift @@ -108,12 +108,12 @@ extension VersionedTextDocumentIdentifier: CustomStringConvertible { } } -public struct Location: Codable, Hashable { +public struct Location: Codable, Hashable, Sendable { public let uri: DocumentUri public let range: LSPRange } -public struct Command: Codable, Hashable { +public struct Command: Codable, Hashable, Sendable { public let title: String public let command: String public let arguments: [LSPAny]? @@ -148,7 +148,7 @@ public enum SymbolKind: Int, CaseIterable, Hashable, Codable, Sendable { case typeParameter = 26 } -public enum MarkupKind: String, Codable, Hashable { +public enum MarkupKind: String, Codable, Hashable, Sendable { case plaintext case markdown } diff --git a/Sources/LanguageServerProtocol/ClientCapabilities.swift b/Sources/LanguageServerProtocol/ClientCapabilities.swift index dfabcc7..24266c7 100644 --- a/Sources/LanguageServerProtocol/ClientCapabilities.swift +++ b/Sources/LanguageServerProtocol/ClientCapabilities.swift @@ -1,6 +1,6 @@ import Foundation -public struct DynamicRegistrationClientCapabilities: Codable, Hashable { +public struct DynamicRegistrationClientCapabilities: Codable, Hashable, Sendable { public var dynamicRegistration: Bool? public init(dynamicRegistration: Bool) { @@ -8,7 +8,7 @@ public struct DynamicRegistrationClientCapabilities: Codable, Hashable { } } -public struct DynamicRegistrationLinkSupportClientCapabilities: Codable, Hashable { +public struct DynamicRegistrationLinkSupportClientCapabilities: Codable, Hashable, Sendable { public var dynamicRegistration: Bool? public var linkSupport: Bool? @@ -18,20 +18,20 @@ public struct DynamicRegistrationLinkSupportClientCapabilities: Codable, Hashabl } } -public enum ResourceOperationKind: String, Codable, Hashable { +public enum ResourceOperationKind: String, Codable, Hashable, Sendable { case create case rename case delete } -public enum FailureHandlingKind: String, Codable, Hashable { +public enum FailureHandlingKind: String, Codable, Hashable, Sendable { case abort case transactional case textOnlyTransactional case undo } -public struct WorkspaceClientCapabilityEdit: Codable, Hashable { +public struct WorkspaceClientCapabilityEdit: Codable, Hashable, Sendable { public let documentChanges: Bool? public let resourceOperations: [ResourceOperationKind] public let failureHandling: FailureHandlingKind? @@ -47,12 +47,12 @@ public typealias DidChangeConfigurationClientCapabilities = GenericDynamicRegist public typealias DidChangeWatchedFilesClientCapabilities = GenericDynamicRegistration -public struct ShowDocumentClientCapabilities: Hashable, Codable { +public struct ShowDocumentClientCapabilities: Hashable, Codable, Sendable { public var support: Bool } -public struct ShowMessageRequestClientCapabilities: Hashable, Codable { - public struct MessageActionItemCapabilities: Hashable, Codable { +public struct ShowMessageRequestClientCapabilities: Hashable, Codable, Sendable { + public struct MessageActionItemCapabilities: Hashable, Codable, Sendable { public var additionalPropertiesSupport: Bool } @@ -63,7 +63,7 @@ public struct ShowMessageRequestClientCapabilities: Hashable, Codable { } } -public struct WindowClientCapabilities: Hashable, Codable { +public struct WindowClientCapabilities: Hashable, Codable, Sendable { public var workDoneProgress: Bool public var showMessage: ShowMessageRequestClientCapabilities public var showDocument: ShowDocumentClientCapabilities @@ -75,7 +75,7 @@ public struct WindowClientCapabilities: Hashable, Codable { } } -public struct RegularExpressionsClientCapabilities: Hashable, Codable { +public struct RegularExpressionsClientCapabilities: Hashable, Codable, Sendable { public var engine: String public var version: String? @@ -85,7 +85,7 @@ public struct RegularExpressionsClientCapabilities: Hashable, Codable { } } -public struct MarkdownClientCapabilities: Hashable, Codable { +public struct MarkdownClientCapabilities: Hashable, Codable, Sendable { public var parser: String public var version: String? public var allowedTags: [String]? @@ -97,7 +97,7 @@ public struct MarkdownClientCapabilities: Hashable, Codable { } } -public struct GeneralClientCapabilities: Hashable, Codable { +public struct GeneralClientCapabilities: Hashable, Codable, Sendable { public var regularExpressions: RegularExpressionsClientCapabilities? public var markdown: MarkdownClientCapabilities? @@ -107,7 +107,7 @@ public struct GeneralClientCapabilities: Hashable, Codable { } } -public struct TextDocumentSyncClientCapabilities: Codable, Hashable { +public struct TextDocumentSyncClientCapabilities: Codable, Hashable, Sendable { public let dynamicRegistration: Bool? public let willSave: Bool? public let willSaveWaitUntil: Bool? @@ -121,7 +121,7 @@ public struct TextDocumentSyncClientCapabilities: Codable, Hashable { } } -public struct TextDocumentClientCapabilities: Codable, Hashable { +public struct TextDocumentClientCapabilities: Codable, Hashable, Sendable { public var synchronization: TextDocumentSyncClientCapabilities? public var completion: CompletionClientCapabilities? public var hover: HoverClientCapabilities? @@ -204,9 +204,9 @@ public struct TextDocumentClientCapabilities: Codable, Hashable { } } -public struct ClientCapabilities: Codable, Hashable { - public struct Workspace: Codable, Hashable { - public struct FileOperations: Codable, Hashable { +public struct ClientCapabilities: Codable, Hashable, Sendable { + public struct Workspace: Codable, Hashable, Sendable { + public struct FileOperations: Codable, Hashable, Sendable { public var dynamicRegistration: Bool? public var didCreate: Bool? public var willCreate: Bool? diff --git a/Sources/LanguageServerProtocol/General.swift b/Sources/LanguageServerProtocol/General.swift index a695047..c60f693 100644 --- a/Sources/LanguageServerProtocol/General.swift +++ b/Sources/LanguageServerProtocol/General.swift @@ -1,12 +1,12 @@ import Foundation -public enum Tracing: String, Codable, Hashable { +public enum Tracing: String, Codable, Hashable, Sendable { case off case messages case verbose } -public struct InitializeParams: Codable { +public struct InitializeParams: Codable, Hashable, Sendable { public struct ClientInfo: Codable, Hashable, Sendable { public let name: String public let version: String? diff --git a/Sources/LanguageServerProtocol/LanguageFeatures/CodeAction.swift b/Sources/LanguageServerProtocol/LanguageFeatures/CodeAction.swift index 500bc4c..5cba0f8 100644 --- a/Sources/LanguageServerProtocol/LanguageFeatures/CodeAction.swift +++ b/Sources/LanguageServerProtocol/LanguageFeatures/CodeAction.swift @@ -13,8 +13,8 @@ extension CodeActionKind { public static var SourceOrganizeImports: CodeActionKind = "source.organizeImports" } -public struct CodeActionClientCapabilities: Codable, Hashable { - public struct CodeActionLiteralSupport: Codable, Hashable { +public struct CodeActionClientCapabilities: Codable, Hashable, Sendable { + public struct CodeActionLiteralSupport: Codable, Hashable, Sendable { public var codeActionKind: ValueSet public init(codeActionKind: ValueSet) { @@ -22,7 +22,7 @@ public struct CodeActionClientCapabilities: Codable, Hashable { } } - public struct ResolveSupport: Codable, Hashable { + public struct ResolveSupport: Codable, Hashable, Sendable { public var properties: [String] public init(properties: [String]) { diff --git a/Sources/LanguageServerProtocol/LanguageFeatures/CodeLens.swift b/Sources/LanguageServerProtocol/LanguageFeatures/CodeLens.swift index 9eeaca2..10d3ba9 100644 --- a/Sources/LanguageServerProtocol/LanguageFeatures/CodeLens.swift +++ b/Sources/LanguageServerProtocol/LanguageFeatures/CodeLens.swift @@ -2,7 +2,7 @@ import Foundation public typealias CodeLensClientCapabilities = DynamicRegistrationClientCapabilities -public struct CodeLensWorkspaceClientCapabilities: Codable, Hashable { +public struct CodeLensWorkspaceClientCapabilities: Codable, Hashable, Sendable { public var refreshSupport: Bool? public init(refreshSupport: Bool? = nil) { @@ -10,18 +10,18 @@ public struct CodeLensWorkspaceClientCapabilities: Codable, Hashable { } } -public struct CodeLensOptions: Codable, Hashable { +public struct CodeLensOptions: Codable, Hashable, Sendable { public var workDoneProgress: Bool? public var resolveProvider: Bool? } -public struct CodeLensRegistrationOptions: Codable, Hashable { +public struct CodeLensRegistrationOptions: Codable, Hashable, Sendable { public var documentSelector: DocumentSelector? public var workDoneProgress: Bool? public var resolveProvider: Bool? } -public struct CodeLensParams: Codable, Hashable { +public struct CodeLensParams: Codable, Hashable, Sendable { public var textDocument: TextDocumentIdentifier public var workDoneToken: ProgressToken? public var partialResultToken: ProgressToken? @@ -33,7 +33,7 @@ public struct CodeLensParams: Codable, Hashable { } } -public struct CodeLens: Codable { +public struct CodeLens: Codable, Sendable { public var range: LSPRange public var command: Command? public var data: LSPAny? diff --git a/Sources/LanguageServerProtocol/LanguageFeatures/Completion.swift b/Sources/LanguageServerProtocol/LanguageFeatures/Completion.swift index 755846e..da1288b 100644 --- a/Sources/LanguageServerProtocol/LanguageFeatures/Completion.swift +++ b/Sources/LanguageServerProtocol/LanguageFeatures/Completion.swift @@ -1,9 +1,9 @@ import Foundation import JSONRPC -public struct CompletionClientCapabilities: Codable, Hashable { - public struct CompletionItem: Codable, Hashable { - public struct ResolveSupport: Codable, Hashable { +public struct CompletionClientCapabilities: Codable, Hashable, Sendable { + public struct CompletionItem: Codable, Hashable, Sendable { + public struct ResolveSupport: Codable, Hashable, Sendable { public var properties: [String] public init(properties: [String]) { @@ -45,7 +45,7 @@ public struct CompletionClientCapabilities: Codable, Hashable { } } - public struct CompletionList: Codable, Hashable { + public struct CompletionList: Codable, Hashable, Sendable { public var itemDefaults: [String]? public init(itemDefaults: [String]? = nil) { @@ -81,7 +81,7 @@ public enum CompletionTriggerKind: Int, Codable, Hashable { case triggerForIncompleteCompletions = 3 } -public enum CompletionItemKind: Int, CaseIterable, Codable, Hashable { +public enum CompletionItemKind: Int, CaseIterable, Codable, Hashable, Sendable { case text = 1 case method = 2 case function = 3 @@ -109,7 +109,7 @@ public enum CompletionItemKind: Int, CaseIterable, Codable, Hashable { case typeParameter = 25 } -public enum CompletionItemTag: Int, CaseIterable, Codable, Hashable { +public enum CompletionItemTag: Int, CaseIterable, Codable, Hashable, Sendable { case deprecated = 1 } @@ -235,7 +235,7 @@ public struct CompletionRegistrationOptions: Codable { public let resolveProvider: Bool? } -public enum InsertTextMode: Int, CaseIterable, Codable, Hashable { +public enum InsertTextMode: Int, CaseIterable, Codable, Hashable, Sendable { case asIs = 1 case adjustIndentation = 2 } diff --git a/Sources/LanguageServerProtocol/LanguageFeatures/Diagnostics.swift b/Sources/LanguageServerProtocol/LanguageFeatures/Diagnostics.swift index e4204dd..8237e79 100644 --- a/Sources/LanguageServerProtocol/LanguageFeatures/Diagnostics.swift +++ b/Sources/LanguageServerProtocol/LanguageFeatures/Diagnostics.swift @@ -1,6 +1,6 @@ import Foundation -public struct PublishDiagnosticsClientCapabilities: Codable, Hashable { +public struct PublishDiagnosticsClientCapabilities: Codable, Hashable, Sendable { public var relatedInformation: Bool? public var tagSupport: ValueSet? public var versionSupport: Bool? @@ -16,26 +16,26 @@ public struct PublishDiagnosticsClientCapabilities: Codable, Hashable { } } -public struct DiagnosticRelatedInformation: Codable, Hashable { +public struct DiagnosticRelatedInformation: Codable, Hashable, Sendable { public let location: Location public let message: String } public typealias DiagnosticCode = TwoTypeOption -public enum DiagnosticSeverity: Int, CaseIterable, Codable, Hashable { +public enum DiagnosticSeverity: Int, CaseIterable, Codable, Hashable, Sendable { case error = 1 case warning = 2 case information = 3 case hint = 4 } -public enum DiagnosticTag: Int, CaseIterable, Codable, Hashable { +public enum DiagnosticTag: Int, CaseIterable, Codable, Hashable, Sendable { case unnecessary = 1 case deprecated = 2 } -public struct Diagnostic: Codable, Hashable { +public struct Diagnostic: Codable, Hashable, Sendable { public let range: LSPRange public let severity: DiagnosticSeverity? public let code: DiagnosticCode? @@ -45,7 +45,7 @@ public struct Diagnostic: Codable, Hashable { public let relatedInformation: [DiagnosticRelatedInformation]? } -public struct PublishDiagnosticsParams: Codable, Hashable { +public struct PublishDiagnosticsParams: Codable, Hashable, Sendable { public let uri: DocumentUri public let version: Int? public let diagnostics: [Diagnostic] diff --git a/Sources/LanguageServerProtocol/LanguageFeatures/DocumentLink.swift b/Sources/LanguageServerProtocol/LanguageFeatures/DocumentLink.swift index 1e4bef8..9990be6 100644 --- a/Sources/LanguageServerProtocol/LanguageFeatures/DocumentLink.swift +++ b/Sources/LanguageServerProtocol/LanguageFeatures/DocumentLink.swift @@ -7,7 +7,7 @@ import Foundation -public struct DocumentLinkClientCapabilities: Codable, Hashable { +public struct DocumentLinkClientCapabilities: Codable, Hashable, Sendable { public var dynamicRegistration: Bool? public var tooltipSupport: Bool? @@ -17,12 +17,12 @@ public struct DocumentLinkClientCapabilities: Codable, Hashable { } } -public struct DocumentLinkOptions: Codable, Hashable { +public struct DocumentLinkOptions: Codable, Hashable, Sendable { public var workDoneProgress: Bool? public var resolveProvider: Bool? } -public struct DocumentLinkRegistrationOptions: Codable, Hashable { +public struct DocumentLinkRegistrationOptions: Codable, Hashable, Sendable { public var workDoneProgress: Bool? public var documentSelector: DocumentSelector? public var resolveProvider: Bool? @@ -34,12 +34,12 @@ public struct DocumentLinkRegistrationOptions: Codable, Hashable { } } -public struct DocumentLinkParams: Codable, Hashable { +public struct DocumentLinkParams: Codable, Hashable, Sendable { public var workDoneToken: ProgressToken? public var partialResultToken: ProgressToken? } -public struct DocumentLink: Codable, Hashable { +public struct DocumentLink: Codable, Hashable, Sendable { public var range: LSPRange public var target: DocumentUri? public var tooltip: String? diff --git a/Sources/LanguageServerProtocol/LanguageFeatures/DocumentSymbol.swift b/Sources/LanguageServerProtocol/LanguageFeatures/DocumentSymbol.swift index 303c3d3..d4babd4 100644 --- a/Sources/LanguageServerProtocol/LanguageFeatures/DocumentSymbol.swift +++ b/Sources/LanguageServerProtocol/LanguageFeatures/DocumentSymbol.swift @@ -1,6 +1,6 @@ import Foundation -public struct DocumentSymbolClientCapabilities: Codable, Hashable { +public struct DocumentSymbolClientCapabilities: Codable, Hashable, Sendable { public var dynamicRegistration: Bool? public var symbolKind: ValueSet? public var hierarchicalDocumentSymbolSupport: Bool? diff --git a/Sources/LanguageServerProtocol/LanguageFeatures/FoldingRange.swift b/Sources/LanguageServerProtocol/LanguageFeatures/FoldingRange.swift index 590de8e..ffdabe0 100644 --- a/Sources/LanguageServerProtocol/LanguageFeatures/FoldingRange.swift +++ b/Sources/LanguageServerProtocol/LanguageFeatures/FoldingRange.swift @@ -1,6 +1,6 @@ import Foundation -public struct FoldingRangeClientCapabilities: Codable, Hashable { +public struct FoldingRangeClientCapabilities: Codable, Hashable, Sendable { public var dynamicRegistration: Bool? public var rangeLimit: Int? public var lineFoldingOnly: Bool? @@ -12,7 +12,7 @@ public struct FoldingRangeClientCapabilities: Codable, Hashable { } } -public struct FoldingRangeParams: Codable, Hashable { +public struct FoldingRangeParams: Codable, Hashable, Sendable { public let textDocument: TextDocumentIdentifier public init(textDocument: TextDocumentIdentifier) { @@ -20,13 +20,13 @@ public struct FoldingRangeParams: Codable, Hashable { } } -public enum FoldingRangeKind: String, CaseIterable, Codable, Hashable { +public enum FoldingRangeKind: String, CaseIterable, Codable, Hashable, Sendable { case comment case imports case region } -public struct FoldingRange: Codable, Hashable { +public struct FoldingRange: Codable, Hashable, Sendable { public let startLine: Int public let startCharacter: Int? public let endLine: Int diff --git a/Sources/LanguageServerProtocol/LanguageFeatures/Hover.swift b/Sources/LanguageServerProtocol/LanguageFeatures/Hover.swift index 60274c4..363991b 100644 --- a/Sources/LanguageServerProtocol/LanguageFeatures/Hover.swift +++ b/Sources/LanguageServerProtocol/LanguageFeatures/Hover.swift @@ -1,6 +1,6 @@ import Foundation -public struct HoverClientCapabilities: Codable, Hashable { +public struct HoverClientCapabilities: Codable, Hashable, Sendable { public var dynamicRegistration: Bool? public var contentFormat: [MarkupKind]? diff --git a/Sources/LanguageServerProtocol/LanguageFeatures/Rename.swift b/Sources/LanguageServerProtocol/LanguageFeatures/Rename.swift index 3b31559..ab68a90 100644 --- a/Sources/LanguageServerProtocol/LanguageFeatures/Rename.swift +++ b/Sources/LanguageServerProtocol/LanguageFeatures/Rename.swift @@ -1,10 +1,10 @@ import Foundation -public enum PrepareSupportDefaultBehavior: Int, CaseIterable, Codable, Hashable { +public enum PrepareSupportDefaultBehavior: Int, CaseIterable, Codable, Hashable, Sendable { case Identifier = 1 } -public struct RenameClientCapabilities: Codable, Hashable { +public struct RenameClientCapabilities: Codable, Hashable, Sendable { public let dynamicRegistration: Bool? public let prepareSupport: Bool? public let prepareSupportDefaultBehavior: PrepareSupportDefaultBehavior? @@ -19,14 +19,14 @@ public struct RenameClientCapabilities: Codable, Hashable { } -public struct RenameOptions: Codable, Hashable { +public struct RenameOptions: Codable, Hashable, Sendable { public var workDoneProgress: Bool? public var prepareProvider: Bool? } public typealias PrepareRenameParams = TextDocumentPositionParams -public struct RenameParams: Codable, Hashable { +public struct RenameParams: Codable, Hashable, Sendable { public let textDocument: TextDocumentIdentifier public let position: Position public let newName: String @@ -38,12 +38,12 @@ public struct RenameParams: Codable, Hashable { } } -public struct RangeWithPlaceholder: Codable, Hashable { +public struct RangeWithPlaceholder: Codable, Hashable, Sendable { public let range: LSPRange public let placeholder: String } -public struct PrepareRenameDefaultBehavior: Codable { +public struct PrepareRenameDefaultBehavior: Codable, Hashable, Sendable { public let defaultBehavior: Bool } diff --git a/Sources/LanguageServerProtocol/LanguageFeatures/SemanticTokens.swift b/Sources/LanguageServerProtocol/LanguageFeatures/SemanticTokens.swift index 5a8906f..d2dc3b8 100644 --- a/Sources/LanguageServerProtocol/LanguageFeatures/SemanticTokens.swift +++ b/Sources/LanguageServerProtocol/LanguageFeatures/SemanticTokens.swift @@ -1,6 +1,6 @@ import Foundation -public struct SemanticTokensWorkspaceClientCapabilities: Codable, Hashable { +public struct SemanticTokensWorkspaceClientCapabilities: Codable, Hashable, Sendable { public var refreshSupport: Bool? public init(refreshSupport: Bool) { @@ -8,18 +8,18 @@ public struct SemanticTokensWorkspaceClientCapabilities: Codable, Hashable { } } -public enum TokenFormat: String, Codable, Hashable { +public enum TokenFormat: String, Codable, Hashable, Sendable { case relative = "relative" public static let Relative = TokenFormat.relative } -public struct SemanticTokensClientCapabilities: Codable, Hashable { - public struct Requests: Codable, Hashable { - public struct Range: Codable, Hashable { +public struct SemanticTokensClientCapabilities: Codable, Hashable, Sendable { + public struct Requests: Codable, Hashable, Sendable { + public struct Range: Codable, Hashable, Sendable { } - public struct Full: Codable, Hashable { + public struct Full: Codable, Hashable, Sendable { public var delta: Bool? public init(delta: Bool = true) { diff --git a/Sources/LanguageServerProtocol/LanguageFeatures/SignatureHelp.swift b/Sources/LanguageServerProtocol/LanguageFeatures/SignatureHelp.swift index bda5df5..ae2c723 100644 --- a/Sources/LanguageServerProtocol/LanguageFeatures/SignatureHelp.swift +++ b/Sources/LanguageServerProtocol/LanguageFeatures/SignatureHelp.swift @@ -1,8 +1,8 @@ import Foundation -public struct SignatureHelpClientCapabilities: Codable, Hashable { - public struct SignatureInformation: Codable, Hashable { - public struct ParameterInformation: Codable, Hashable { +public struct SignatureHelpClientCapabilities: Codable, Hashable, Sendable { + public struct SignatureInformation: Codable, Hashable, Sendable { + public struct ParameterInformation: Codable, Hashable, Sendable { public var labelOffsetSupport: Bool? public init(labelOffsetSupport: Bool? = nil) { diff --git a/Sources/LanguageServerProtocol/Utility.swift b/Sources/LanguageServerProtocol/Utility.swift index 59ccf50..aa0679e 100644 --- a/Sources/LanguageServerProtocol/Utility.swift +++ b/Sources/LanguageServerProtocol/Utility.swift @@ -1,6 +1,6 @@ import Foundation -public struct GenericDynamicRegistration: Codable, Hashable { +public struct GenericDynamicRegistration: Codable, Hashable, Sendable { public let dynamicRegistration: Bool? public init(dynamicRegistration: Bool) { diff --git a/Sources/LanguageServerProtocol/Workspace.swift b/Sources/LanguageServerProtocol/Workspace.swift index 906d73e..beac86e 100644 --- a/Sources/LanguageServerProtocol/Workspace.swift +++ b/Sources/LanguageServerProtocol/Workspace.swift @@ -52,7 +52,7 @@ public struct DidChangeWatchedFilesParams: Codable, Hashable { } } -public struct WorkspaceFolder: Codable, Hashable { +public struct WorkspaceFolder: Codable, Hashable, Sendable { public let uri: String public let name: String diff --git a/Sources/LanguageServerProtocol/Workspace/Symbol.swift b/Sources/LanguageServerProtocol/Workspace/Symbol.swift index 4c5dd12..36087d1 100644 --- a/Sources/LanguageServerProtocol/Workspace/Symbol.swift +++ b/Sources/LanguageServerProtocol/Workspace/Symbol.swift @@ -1,7 +1,7 @@ import Foundation -public struct WorkspaceSymbolClientCapabilities: Codable, Hashable { - public struct Properties: Codable, Hashable { +public struct WorkspaceSymbolClientCapabilities: Codable, Hashable, Sendable { + public struct Properties: Codable, Hashable, Sendable { public var properties: [String] } @@ -25,14 +25,14 @@ public struct WorkspaceSymbolClientCapabilities: Codable, Hashable { } } -public struct WorkspaceSymbolOptions: Codable, Hashable { +public struct WorkspaceSymbolOptions: Codable, Hashable, Sendable { public var workDoneProgress: Bool? public var resolveProvider: Bool? } public typealias WorkspaceSymbolRegistrationOptions = WorkspaceSymbolOptions -public struct WorkspaceSymbolParams: Codable, Hashable { +public struct WorkspaceSymbolParams: Codable, Hashable, Sendable { public var workDoneToken: ProgressToken? public var partialResultToken: ProgressToken? public var query: String @@ -44,7 +44,7 @@ public struct WorkspaceSymbolParams: Codable, Hashable { } } -public struct WorkspaceSymbol: Codable, Hashable { +public struct WorkspaceSymbol: Codable, Hashable, Sendable { public var name: String public var kind: SymbolKind public var tags: [SymbolTag]?