Skip to content

Commit 1122526

Browse files
committed
Make response of workspace/_sourceKitOptions request non-optional
The response was not specified as being optional and shouldn’t be.
1 parent f4e015b commit 1122526

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/LanguageServerProtocol/Requests/SourceKitOptionsRequest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/// **(LSP Extension)**.
2020
public struct SourceKitOptionsRequest: RequestType, Hashable {
2121
public static let method: String = "workspace/_sourceKitOptions"
22-
public typealias Response = SourceKitOptionsResponse?
22+
public typealias Response = SourceKitOptionsResponse
2323

2424
/// The document to get options for
2525
public var textDocument: TextDocumentIdentifier

Tests/BuildSystemIntegrationTests/BuildServerBuildSystemTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ final class BuildServerBuildSystemTests: XCTestCase {
421421
allowFallbackSettings: false
422422
)
423423
)
424-
XCTAssertEqual(options?.data, LSPAny.dictionary(["custom": .string("value")]))
424+
XCTAssertEqual(options.data, LSPAny.dictionary(["custom": .string("value")]))
425425
}
426426

427427
func testBuildSettingsForFilePartOfMultipleTargets() async throws {

0 commit comments

Comments
 (0)