mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
Require Swift 6 to build SourceKit-LSP
This significantly cleans up our `import` statements
This commit is contained in:
@@ -10,18 +10,11 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
import SKLogging
|
||||
import SwiftExtensions
|
||||
|
||||
#if compiler(>=6)
|
||||
package import BuildServerProtocol
|
||||
package import Foundation
|
||||
package import LanguageServerProtocol
|
||||
#else
|
||||
import BuildServerProtocol
|
||||
import Foundation
|
||||
import LanguageServerProtocol
|
||||
#endif
|
||||
import SKLogging
|
||||
import SwiftExtensions
|
||||
|
||||
func lastIndexStorePathArgument(in compilerArgs: [String]) -> String? {
|
||||
if let indexStorePathIndex = compilerArgs.lastIndex(of: "-index-store-path"),
|
||||
|
||||
Reference in New Issue
Block a user