mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-06 18:24:36 +01:00
Adopt to path API changes
We are moving to a better model for TSC's path APIs in apple/swift-tools-support-core#353. The previous API is still available (but deprecated) as much as possible, but since SourceKit-LSP was using `resolveSymlinks` (which is now throwing) quite a bit, there are some changes necessary.
This commit is contained in:
@@ -275,8 +275,7 @@ extension BuildServerBuildSystem: BuildSystem {
|
||||
return .handled
|
||||
}
|
||||
|
||||
let realpath = resolveSymlinks(path)
|
||||
if realpath != path, projectRoot.isAncestorOfOrEqual(to: realpath) {
|
||||
if let realpath = try? resolveSymlinks(path), realpath != path, projectRoot.isAncestorOfOrEqual(to: realpath) {
|
||||
return .handled
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user