Skip to content

Add support for jump to definition for stdlib/Foundation symbols #618

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

Closed
adam-fowler opened this issue Aug 28, 2022 · 3 comments
Closed

Comments

@adam-fowler
Copy link
Contributor

This work involves generating an interface view for a module.
Working out the location of the symbol within this generated file.
Somehow passing all of this in a response.

How this is all done and how much of it should be up to sourcekit-lsp is undefined at this point in time. I've basically added this as a placeholder for work to be done in the future, once we have a better idea what that work should be.

@adam-fowler
Copy link
Contributor Author

I see SourceKit-LSP already supplies the path to the .swiftinterface file in the textDocument\definition response. If SourceKit-LSP could provide an actual position in that file and we had a method of combining the .swiftinterface and the related .swiftdoc we could possibly do a lot of the work for this on the VS Code side.

@ahoppen
Copy link
Member

ahoppen commented Aug 30, 2022

rdar://99329577

@adam-fowler
Copy link
Contributor Author

See swiftlang/vscode-swift#408 for update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants