Open
Description
Swift version
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Platform
arm64-apple-macosx14.0
Editor
VSCode
Does the issue reproduce with Swift 6?
Yes
Description
If I export a symbol from a library to include it in the public symbols of another library then SourceKit-LSP considers these to be separate symbols and will duplicate them in completion lists
Steps to Reproduce
- Create a package with a library called Duplicate using SwiftPM
- Add to source of package
@_exported import class Foundation.JSONDecoder
- Create another target that is dependent on the original library target
- Add the following lines
import Foundation
import Duplicate
- Compile
- Now when I type
JSON
into the file I get two completion entries forJSONDecoder
.
Logging
No response