Closed dangdennis closed 2 months ago
Would love to help solve this as I've enjoyed the Swift on Server ecosystem and tools so far.
Would love to help solve this as I've enjoyed the Swift on Server ecosystem and tools so far.
Thank you for the offer. This is a known issue with SourceKit-LSP. It is tracked in https://github.com/apple/sourcekit-lsp/issues/665 and https://github.com/apple/swift-package-manager/issues/6700.
I'm going to close this as a duplicate and also because it is not resolvable at the VSCode extension level.
Describe the bug
If you run one of the examples from swift-openapi-generator, vscode is not able to read the types generated by the plugin. The types are visible in
./build/plugins/outputs/<library-name>
. However, the compiler builds just fine.However, Xcode is able to understand the types used.
To Reproduce Steps to reproduce the behavior:
swift build
.Client
andAPIProtocol
on mouse hover.Expected behavior I expect vscode to be able to recognize the generated types.
Environment