@@ -1826,7 +1826,7 @@ fileprivate extension SourceKitD {
18261826 keys. syntacticOnly: 1 ,
18271827 keys. compilerArgs: compilerArguments as [ SKDRequestValue ] ,
18281828 ] )
1829- _ = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
1829+ _ = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
18301830 return DocumentPositions ( markers: markers, textWithoutMarkers: textWithoutMarkers)
18311831 }
18321832
@@ -1840,7 +1840,7 @@ fileprivate extension SourceKitD {
18401840 keys. syntacticOnly: 1 ,
18411841 ] )
18421842
1843- _ = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
1843+ _ = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
18441844 }
18451845
18461846 func closeDocument( _ name: String ) async throws {
@@ -1849,7 +1849,7 @@ fileprivate extension SourceKitD {
18491849 keys. name: name,
18501850 ] )
18511851
1852- _ = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
1852+ _ = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
18531853 }
18541854
18551855 func completeImpl(
@@ -1884,7 +1884,7 @@ fileprivate extension SourceKitD {
18841884 keys. compilerArgs: compilerArguments as [ SKDRequestValue ] ? ,
18851885 ] )
18861886
1887- let res = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
1887+ let res = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
18881888 return try CompletionResultSet ( res)
18891889 }
18901890
@@ -1942,7 +1942,7 @@ fileprivate extension SourceKitD {
19421942 keys. codeCompleteOptions: dictionary ( [ keys. useNewAPI: 1 ] ) ,
19431943 ] )
19441944
1945- _ = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
1945+ _ = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
19461946 }
19471947
19481948 func completeDocumentation( id: Int ) async throws -> CompletionDocumentation {
@@ -1951,7 +1951,7 @@ fileprivate extension SourceKitD {
19511951 keys. identifier: id,
19521952 ] )
19531953
1954- let resp = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
1954+ let resp = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
19551955 return CompletionDocumentation ( resp)
19561956 }
19571957
@@ -1960,7 +1960,7 @@ fileprivate extension SourceKitD {
19601960 keys. request: requests. codeCompleteDiagnostic,
19611961 keys. identifier: id,
19621962 ] )
1963- let resp = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
1963+ let resp = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
19641964
19651965 return CompletionDiagnostic ( resp)
19661966 }
@@ -1969,7 +1969,7 @@ fileprivate extension SourceKitD {
19691969 let req = dictionary ( [
19701970 keys. request: requests. dependencyUpdated
19711971 ] )
1972- _ = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
1972+ _ = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
19731973 }
19741974
19751975 func setPopularAPI( popular: [ String ] , unpopular: [ String ] ) async throws {
@@ -1980,7 +1980,7 @@ fileprivate extension SourceKitD {
19801980 keys. unpopular: unpopular as [ SKDRequestValue ] ,
19811981 ] )
19821982
1983- let resp = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
1983+ let resp = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
19841984 XCTAssertEqual ( resp [ keys. useNewAPI] , 1 )
19851985 }
19861986
@@ -1997,7 +1997,7 @@ fileprivate extension SourceKitD {
19971997 keys. notoriousModules: notoriousModules as [ SKDRequestValue ] ,
19981998 ] )
19991999
2000- let resp = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
2000+ let resp = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
20012001 XCTAssertEqual ( resp [ keys. useNewAPI] , 1 )
20022002 }
20032003
@@ -2021,7 +2021,7 @@ fileprivate extension SourceKitD {
20212021 keys. modulePopularity: modulePopularity as [ SKDRequestValue ] ,
20222022 ] )
20232023
2024- let resp = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
2024+ let resp = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
20252025 XCTAssertEqual ( resp [ keys. useNewAPI] , 1 )
20262026 }
20272027
0 commit comments