@@ -1826,7 +1826,7 @@ fileprivate extension SourceKitD {
1826
1826
keys. syntacticOnly: 1 ,
1827
1827
keys. compilerArgs: compilerArguments as [ SKDRequestValue ] ,
1828
1828
] )
1829
- _ = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
1829
+ _ = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
1830
1830
return DocumentPositions ( markers: markers, textWithoutMarkers: textWithoutMarkers)
1831
1831
}
1832
1832
@@ -1840,7 +1840,7 @@ fileprivate extension SourceKitD {
1840
1840
keys. syntacticOnly: 1 ,
1841
1841
] )
1842
1842
1843
- _ = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
1843
+ _ = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
1844
1844
}
1845
1845
1846
1846
func closeDocument( _ name: String ) async throws {
@@ -1849,7 +1849,7 @@ fileprivate extension SourceKitD {
1849
1849
keys. name: name,
1850
1850
] )
1851
1851
1852
- _ = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
1852
+ _ = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
1853
1853
}
1854
1854
1855
1855
func completeImpl(
@@ -1884,7 +1884,7 @@ fileprivate extension SourceKitD {
1884
1884
keys. compilerArgs: compilerArguments as [ SKDRequestValue ] ? ,
1885
1885
] )
1886
1886
1887
- let res = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
1887
+ let res = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
1888
1888
return try CompletionResultSet ( res)
1889
1889
}
1890
1890
@@ -1942,7 +1942,7 @@ fileprivate extension SourceKitD {
1942
1942
keys. codeCompleteOptions: dictionary ( [ keys. useNewAPI: 1 ] ) ,
1943
1943
] )
1944
1944
1945
- _ = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
1945
+ _ = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
1946
1946
}
1947
1947
1948
1948
func completeDocumentation( id: Int ) async throws -> CompletionDocumentation {
@@ -1951,7 +1951,7 @@ fileprivate extension SourceKitD {
1951
1951
keys. identifier: id,
1952
1952
] )
1953
1953
1954
- let resp = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
1954
+ let resp = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
1955
1955
return CompletionDocumentation ( resp)
1956
1956
}
1957
1957
@@ -1960,7 +1960,7 @@ fileprivate extension SourceKitD {
1960
1960
keys. request: requests. codeCompleteDiagnostic,
1961
1961
keys. identifier: id,
1962
1962
] )
1963
- let resp = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
1963
+ let resp = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
1964
1964
1965
1965
return CompletionDiagnostic ( resp)
1966
1966
}
@@ -1969,7 +1969,7 @@ fileprivate extension SourceKitD {
1969
1969
let req = dictionary ( [
1970
1970
keys. request: requests. dependencyUpdated
1971
1971
] )
1972
- _ = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
1972
+ _ = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
1973
1973
}
1974
1974
1975
1975
func setPopularAPI( popular: [ String ] , unpopular: [ String ] ) async throws {
@@ -1980,7 +1980,7 @@ fileprivate extension SourceKitD {
1980
1980
keys. unpopular: unpopular as [ SKDRequestValue ] ,
1981
1981
] )
1982
1982
1983
- let resp = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
1983
+ let resp = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
1984
1984
XCTAssertEqual ( resp [ keys. useNewAPI] , 1 )
1985
1985
}
1986
1986
@@ -1997,7 +1997,7 @@ fileprivate extension SourceKitD {
1997
1997
keys. notoriousModules: notoriousModules as [ SKDRequestValue ] ,
1998
1998
] )
1999
1999
2000
- let resp = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
2000
+ let resp = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
2001
2001
XCTAssertEqual ( resp [ keys. useNewAPI] , 1 )
2002
2002
}
2003
2003
@@ -2021,7 +2021,7 @@ fileprivate extension SourceKitD {
2021
2021
keys. modulePopularity: modulePopularity as [ SKDRequestValue ] ,
2022
2022
] )
2023
2023
2024
- let resp = try await send ( req, timeout: . seconds ( defaultTimeout ) , fileContents: nil )
2024
+ let resp = try await send ( req, timeout: defaultTimeoutDuration , fileContents: nil )
2025
2025
XCTAssertEqual ( resp [ keys. useNewAPI] , 1 )
2026
2026
}
2027
2027
0 commit comments