-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SwiftInterface textual interface generation fails #744
Comments
Tracked in Apple’s issue tracker as rdar://108891020 |
So I had a look into this further and it is seems it is only meant to generate the SwiftInterface textual view if you ask for the definition of the module ie right click on |
As an aside I am adding better handling of swiftinterface files in VS Code swiftlang/vscode-swift#538 |
That is correct. Loading the |
@ahoppen I've been looking into how this could be implemented. So far I have the textual interface being generated whenever a symbol returns a You can see what I've done so far here /~https://github.com/adam-fowler/sourcekit-lsp/blob/e30bdaca320626105012bd710fac7caaabeb4aeb/Sources/SourceKitLSP/SourceKitServer.swift#L1308 |
I assume that you are also implementing something in From there, you make a |
Yes the implementation is in I did run with |
Cursor info actually doesn't return any location in this case (though in the Clang-imported decl case it may return the location in the header). It includes its USR and the module name it's in. So you'll first need to run the open interface request to grab the generated interface and after that run As an aside I generally call "open interface" the "generated interface", which is separate to the
would generate an interface of:
|
I may be wrong here, but I assumed that #668 would generate a textual interface similar to Xcode when jumping to the definition for a file. It seems this is failing because the SymbolInfo request in
SourceKitServer.definition
is being returned with asymbol.kind
set to nil and not.module
. I replicated this by asking to jump to the definition ofString
in VS Code.The text was updated successfully, but these errors were encountered: