mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-06 18:24:36 +01:00
Merge pull request #637 from compnerd/resolution
SKCore: use `resolvingSymlinks` to resolve symlinks
This commit is contained in:
@@ -162,7 +162,7 @@ public struct JSONCompilationDatabase: CompilationDatabase, Equatable {
|
||||
let url = command.url
|
||||
pathToCommands[url, default: []].append(commands.count)
|
||||
|
||||
let canonical = url.resolvingSymlinksInPath()
|
||||
let canonical = URL(fileURLWithPath: resolveSymlinks(AbsolutePath(url.path)).pathString)
|
||||
if canonical != url {
|
||||
pathToCommands[canonical, default: []].append(commands.count)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user