-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add Swift Documentation Preview Support #562
Comments
You can use the command |
Yeah. VSCode has a build-in Markdown preview panel. But I'd like to know if it was possible to render a HTML directly in a associated-panel(The same as Markdown file and Markdown-Preview panel) via the VSCode plugin SDK. |
You can do it. But managing the preview server, associating the current page with the correct page on the server isn't simple. It is all possible, just complex. I have looked into to it a bit and got it displaying a page served by preview server I was running separately. But it is far away from a finished feature. |
Any updates on this issue? |
No update on this. I haven't had anymore time to look into it. |
@adam-fowler Can we grab this one? If so, do you have your prototype changes in a fork somewhere? |
@daveyc123 its all yours. I had some basic code setup to display the documentation but there was a loads of issues managing the preview server and updating the documentation. Don't think I kept any of the code around though. |
Thanks for digging that up @adam-fowler |
I just posted a general overview of how this feature could be implemented on the Swift forums: https://forums.swift.org/t/rfc-swift-docc-integration/75537 Please check it out and leave any feedback/suggestions that you might have! |
Add `resources`, `ignored`, and `other` files to `BuildTarget` for use by SourceKit-LSP. This is tracked by rdar://139431738 as part of swiftlang/vscode-swift#562 ### Motivation: SourceKit-LSP needs to be able to determine which target contains a given DocC catalog in order to fulfill documentation related requests. However, the catalog is not listed as one of the `sources` or `headers`. Rather, it is part of `other` files in most cases. Expose all file types to SourceKit-LSP so that it can properly determine which target a given file belongs to. ### Modifications: Added three new properties to `BuildTarget`: `resources`, `ignored`, and `other` which are arrays of `URL` pointing to the given file types in the target. ### Result: SourceKit-LSP will be able to see all files contained within a given target.
Is your feature request related to a problem? Please describe.
When user actives documentation preview panel and is currently on a .swift, .h or .markdown file, preview the documentation on the right panel.
Describe the solution you'd like
It can be achieved by using the existing ConvertService API provided by DocC.
No Xcode magic is required.
Benefits
Improve the doc-writing experience on non-Xcode IDE.
Additional context
Inspiration: Xcode 15's documentation preview feature
See more info https://developer.apple.com/videos/play/wwdc2023/10244/
The text was updated successfully, but these errors were encountered: